@charset "utf-8";

/*브랜드 컬러 노랑 #fdc30f  남색 #214084*/

/*전체설정*/

* {
    margin: 0;
    padding: 0;
    text-align: center;
    text-decoration: none;
    list-style: none;
    font-family: 'Noto Sans KR', sans-serif;

}


/************************************************/
.hidden {
    visibility: hidden;
    height: 0;
    width: 0;
    font-size: 0;
    line-height: 0;
    overflow: hidden;

}

#wrap {
    width: 100%;
}

#header {
    display: none;
}

#pc_lnb {
    display: none;
}

#cont_h3 {
    margin-bottom: 20px;
    font-weight: bold;
    /*소제목들 여백*/
}

/**************lnb******************/

#lnb {
    background-color: #214084;
    width: 100%;
    height: 60px;
    position: relative;
    position: sticky;
    top: 0px;
    z-index: 2;

}

#lnb > div {
    max-width: 1200px;
    height: 60px;
    margin: 0 auto;

}

#logo {
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    margin: 0 auto;


}

#logo img {
    width: 150px;
    padding-top: 10px;

}

/*햄버거메뉴m*/
.button {
    width: 40px;
    height: 40px;
    position: relative;
    top: 10px;
    cursor: pointer;

}

.button > span {
    background-color: #fff;
    width: 25px;
    height: 2px;
    position: absolute;
    left: 7px;
    transition: all 0.3s ease-in-out;
}

.line1 {
    transform: translateY(10px);
}

.line2 {
    transform: translateY(20px);
}

.line3 {
    transform: translateY(30px);
}

/*메뉴클릭시 엑스모양*/
.deg45 {
    transform: translateY(15px) rotate(45deg) scale(1.3, 1);
}

.opacity {
    opacity: 0;
}

.deg-45 {
    transform: translateY(15px) rotate(-45deg) scale(1.3, 1);
}

.menu {
    max-width: 50%;
    width: 100%;
    position: absolute;
    top: 60px;
    display: none;



}

.menu li a {
    background-color: #fdc30f;
    text-align: left;
    display: block;
    height: 50px;
    color: #fff;
    font: bold 1em/50px 'Noto Sans KR', sans-serif;
    padding-left: 20px;
    position: relative;

}

.btn_m {
    position: absolute;
    top: 11px;
    right: 15px;
    width: 25px;
    height: 25px;
    transition: all 0.3s ease-in-out;
}

/**************section******************/
#contentwrap {
    width: 100%;
    height: 100%;
    font: 200 16px/1.2 'Noto Sans KR', sans-serif;
    ;

}

/*배너*/
#main_banner {
    width: 100%; 
    overflow: hidden;
    position: relative;
    vertical-align: top;



}

.slide {
    width: 300%;
    position: relative;
    left: 0;
}

.slide > li {
    width: 33.3333%;
    float: left;
}

.slide  img {
    width: 100%;
    
}

.ms_btn {
    width: 50px;
    height: 15px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 15px;
}

.ms_btn > li {
    width: 10px;
    height: 10px;
   
    margin: 0 10px 0 0;
    background-color: #fff;
    float: left;
    cursor: pointer;
}

.ms_btn > li:nth-child(3) {
    margin: 0;
}

.ms_btn > li.check {
    background-color: #fdc30f;
}

/**********************************/
article:not(#main_banner, #p_img, #e_img, #s_img) {
    max-width: 1200px;
    overflow: hidden;
    margin: 20px auto 50px;
    padding: 0 10px;
    box-sizing: border-box;


}

article #about,
#room {
    margin: 20px auto 0px;


}

article > p {

    line-height: 1.5;
}

/*상단 문구*/
#cont_h2 {
    line-height: 2;
    font-weight: bold;
}

/*베스트*/

#best {
    width: 100%;
    overflow: hidden;
    display: grid;
    grid-template-columns: auto auto;
    grid-gap: 15px;


}

#best > li {
    height: 100%;
    width: 100%;
    border: 1px solid #d0d0d0;
    border-radius: 25px;
    box-sizing: border-box;
    overflow: hidden;


}

#best > li > a {
    display: block;


}

#best > li:nth-child(1) a {
    background: url(../img/best_product1.png) center;
    background-size: cover;

}

#best > li:nth-child(2) a {
    background: url(../img/best_product2.png) center;
    background-size: cover;

}

#best > li:nth-child(3) a {
    background: url(../img/best_product3.png) center;
    background-size: cover;

}

#best > li:nth-child(4) a {
    background: url(../img/best_product4.png) center;
    background-size: cover;

}

#best > li:nth-child(5) a {
    background: url(../img/best_product5.png) center;
    background-size: cover;


}

#best > li:nth-child(6) a {
    background: url(../img/best_product6.png) center;
    background-size: cover;


}

#best > li:nth-child(7) a {
    background: url(../img/best_product7.png) center;
    background-size: cover;


}

#best > li:nth-child(8) a {
    background: url(../img/best_product8.png) center;
    background-size: cover;


}


#best > li > a::after {
    content: "";
    display: block;
    padding-bottom: 100%;
}

.best_text {
    width: 100%;
    overflow: hidden;
    margin: 10px 0 20px 0;
    position: relative;


}

.best_text > li {
    text-align: center;
    font: 0.8em/1.5 'Noto Sans KR', sans-serif;
    ;

}

/*상품1*/
.best_text > li:nth-child(1) {
    font: 0.8em/1.2 'Noto Sans KR', sans-serif;
    ;
    padding-top: 10px;
}

/*가격2-*/
.best_text > li:nth-child(2) {
    font: 0.8em/2 'Noto Sans KR', sans-serif;
    ;
    letter-spacing: 0.x;
    text-decoration: line-through;
    color: #aaa;
    margin-top: 6px;
}

/*가격2*/
.best_text > li:nth-child(3) {
    font: 0.8em/1.5 'Noto Sans KR', sans-serif;
    ;
    padding-bottom: 10px;
}

#best > li > a {
    position: relative;

}

#best > li:nth-child(5),
#best > li:nth-child(6),
#best > li:nth-child(7),
#best > li:nth-child(8) {
    display: none;
    /*모바일에서는 다섯번째 ~ 여덟번째 안보이게*/
}


/*스토리*/
#story {}

#story_img {
    max-width: 100%;
}

/*룸메이트*/
#room_mates {
    max-width: 1200px;
    height: 580px;
    overflow: hidden;
    position: relative;
    display: grid;
    grid-template-columns: auto;



}

#mates {
    display: grid;
    grid-gap: 15px;
    grid-template-columns: auto;

}

#mates > li {
    float: left;
    margin-bottom: 50px;
}

#mates > li > p {
    width: 350px;
    margin: 0 auto;


}

/*이름*/
#mates li > p:nth-child(2) {
    font: bold 1em/1.2 'Noto Sans KR', sans-serif;
    ;
    line-height: 2;

}

#mates li > p:nth-child(3) {
    font: 0.7em/1.2 'Noto Sans KR', sans-serif;
    ;
    line-height: 2;

}

#mates li > p:nth-child(4) {
    font: 0.9em/2 'Noto Sans KR', sans-serif;
    ;



}

/*모바일넘김버튼*/
.left_btn {

    width: 50px;
    height: 50px;
    position: absolute;
    top: 30%;
    font: bold 2em/1.2 'Noto Sans KR', sans-serif;
    ;
    z-index: 1;
    cursor: pointer;
}

.right_btn {

    width: 50px;
    height: 50px;
    position: absolute;
    top: 30%;
    right: 2%;
    z-index: 1;
    cursor: pointer;

    font: bold 2em/1.2 'Noto Sans KR', sans-serif;
    ;
}






/**************푸터******************/

#footer {
    width: 100%;
    overflow: hidden;
    padding-bottom: 30px;
    background-color: #214084;
    color: #fff;

}

#footer div {
    max-width: 1200px;
    overflow: hidden;
    margin: 0 auto 10px;

}

.footer1 {
    width: 30%;



}

.footer1 > img {
    width: 90%;
    padding: 10px 10px 10px 0;



}

.footer1 {
    float: left;
}

.footer2 {
    width: 70%;
    float: left;

}

.footer2 > ul > li {
    width: 50%;
    text-align: left;
    float: left;
    /*pc버전가서는 w20%loat: left*/

}

.footer2 > ul > li > a {
    color: #fff;
    font: 0.8em/3 'Noto Sans KR', sans-serif;

    display: block;
}

address {
    font: 0.6em/1.5 'Noto Sans KR', sans-serif;
    ;
    color: #fff;

}






/******************************************************************************************************************/

/*********태블릿***********/
@media all and (min-width:768px) {
    /*공통*/

    /*베스트*/
    #best {
        grid-template-columns: auto auto auto;

    }

    .best_text {
        width: 225px;
        margin: 0 auto;


    }

    #best > li:nth-child(4) {
        display: none;
        /*태블릿에서는 네번째 , 다섯번째 안보이게*/
    }

    /*룸메이트*/

    .left_btn,
    .right_btn {
        display: none;
        /*태블릿에서는 보이지 페이지 넘기기x 보이지 않게*/
    }

    #room_mates {
        height: 1600px;
    }

    #mates {
        grid-template-columns: auto auto;


    }

    #mates > li {
        margin-bottom: 0px;
        border: 1px solid #d0d0d0;
        border-radius: 25px;
    }

    #mates > li > p {
        width: 350px;
        margin: 0px auto;



    }


    /*태블릿 푸터*/
    #footer {
        width: 100%;
        overflow: hidden;
        padding-bottom: 30px;
        background-color: #214084;
        color: #fff;

    }

    #footer div {
        max-width: 1200px;
        overflow: hidden;
        margin: 0 auto 10px;
    }

    .footer2 > ul > li {
        width: 20%;
        text-align: left;
        float: left;
    }








    /*********PC웹***********/
    @media all and (min-width:1200px) {

        /*공통*/
        #lnb {
            display: none;
        }

        #header {
            width: 100%;
            height: 20px;
            padding: 30px 0 10px 0;
            position: relative;
            z-index: 5;
            background-color: #fdc30f;
            display: block;

        }

        #gnb {
            max-width: 1200px;
            margin: 0 auto;
        }

        #gnb > ul {
            width: 280px;
            float: right;
            text-align: right;
            position: relative;

        }

        #gnb > ul > li > a {
            float: left;
            font: 300 0.6em/1.2 'Noto Sans KR', sans-serif;


            color: #000;
        }

        #gnb > ul > li > a::before {
            content: "";
            border-left: 1px solid #000;
            margin: 0 10px;
            line-height: ;



        }

        #gnb > ul > li:nth-child(1) a::before {
            content: none;

        }

        #pc_lnb {
            width: 100%;
            height: 50px;
            position: relative;
            background-color: #fdc30f;
            display: block;

        }



        #pc_lnb > ul {
            max-width: 1200px;
            height: 70px;
            margin: 0 auto;

        }

        #pc_lnb > ul > li {
            width: 19%;
            height: 50px;

            line-height: 50px;
            text-align: center;
            position: relative;
            float: left;
        }

        #pc_lnb > ul > li:nth-child(1) {
            width: 24%;
        }

        #pc_lnb a {
            height: 100%;
            width: 100%;
            font-weight: bold;
            color: #000;
            display: block;

        }

        #pc_lnb a:not(#logo > a):hover {
            color: #fff;
            background-color: #214084;

        }

        #logo {

            transform: translate(0);
            top: -20%;
            left: 0%;
            margin: 0 auto;


        }

        #logo img {
            width: 250px;


        }


        /*베스트*/
        #best {
            grid-template-columns: auto auto auto auto;

        }


        #best > li:nth-child(4),
        #best > li:nth-child(5),
        #best > li:nth-child(6),
        #best > li:nth-child(7),
        #best > li:nth-child(8) {
            display: block;
            /*피씨에서는 숨긴 4~8번 다 보이기*/
        }

        /*룸메이트*/
        #mates {
            grid-template-columns: auto auto auto;
        }

        #room_mates {
            height: 1100px;
            width: 100%;
        }


        /*푸터*/
        #footer {
            background-color: #fdc30f;

        }

        #footer a,
        address {
            color: #000;
        }

        .footer1 > img:nth-child(1) {
            display: none;

        }

    }