@charset "utf-8";

:root{ --header-height: 100rem; }
@media(max-width: 1279px){
	:root{ --header-height:120rem; }
}

/* inner */
:where(.inr, .wrapper){ position: relative; margin: 0 auto; max-width: calc(var(--inr) * 1rem); width: calc(var(--inr-width) * 100%); }
.inr-wide{ max-width: calc(var(--inr-wide) * 1rem); }
.inr-narrow{ max-width: calc(var(--inr-narrow) * 1rem); }

/* header */
header{position:absolute; inset:0 0 auto; height:var(--header-height); z-index:10;}
header .inr{display:flex; justify-content:space-between; align-items:center; height:100%;}
.logo{position:relative; display:inline-block; height:60rem;}
.logo__img{display:block; position:absolute; left:0; top:0; width:auto; height:100%; transition:0.2s ease;}
.logo__imgB{opacity:0;}

/* gnb */
header nav{position:relative; display:flex; align-items:center; height:100%; color:var(--black);}
header .gnb{position:relative; display:flex; height:100%; }
header .gnb > li{position: relative; display: inline-block; height: 100%; }
header .gnb [data-gnb="1"]{display: flex; align-items: center; height: 100%; padding: 0 50rem; font-size:20rem; font-weight:500; color:#fff;}
header .gnb [data-gnb="1"]:last-child{padding-right:0;}
header .gnb .sub_menu{visibility:hidden; position:absolute; padding:20rem 0; top:75%; left:50%; transform:translateX(-50%); min-width:120rem; width:max-content; background:rgba(32,39,41,0.9); opacity:0;}
header .gnb li:hover .sub_menu{visibility: visible; top: 80%; opacity: 1; }
header .gnb [data-gnb="2"]{display:block; padding:0 20rem; color:#ffd8be; font-size:17rem; text-align: center; transition:0.2s;}
header .gnb .sub_menu li+li{margin-top:15rem;}
header .gnb [data-gnb="2"]:hover{opacity:0.6;}
header .gnb .sub_menu li:first-child [data-gnb="2"]{border-top: 0; }
@media(prefers-reduced-motion:no-preference){
	.gnb .sub_menu{transition: .4s; }
}

/* mobile-menu */
.menu-btn{display:none; position: relative; width: 25rem; height: 25rem; background: 0; color: inherit; z-index: 1; }
.menu-btn .bar{ display: block; margin-left: auto; width: 100%; height:2px; background:#fff; transition:0.2s ease;}
.menu-btn .bar + .bar{ margin-top: 7rem; }
.mGnb-open .menu-btn{  }
@media(prefers-reduced-motion:no-preference){
	.btn-menu .bar{ transition: .4s; }
}

/* 모바일 메뉴 */
.mGnb{ overflow: hidden auto; position: fixed; top: 0; right: 0; max-width: 280rem; width: 100%; height: 100%; background: var(--white); z-index: 3; }
body:not(.mGnb-open) .mGnb{ transform: translateX(100%); visibility: hidden; }
.mGnb__header{ display: grid; margin-bottom:20rem; align-items: center; justify-content: flex-end; height: var(--header-height); }
.mGnb .close-btn{ position: relative; margin-right: 15px; display: block; width: 22px; height: 22px; background: 0; font-size: 0; }
body:not(.mGnb-open) .close-btn{ margin-right: -100vw; }
.mGnb .close-btn::before,
.mGnb .close-btn::after{ content: ''; position: absolute; top: 50%; left: 0; display: block;  width: 100%; height:2px; background: var(--black); transform: translateY(-50%) rotate(45deg); }
.mGnb .close-btn::after{ transform: translateY(-50%) rotate(-45deg); }

.mGnb [data-gnb="1"]{ position: relative; display: block; width: 100%; padding:0 25rem; text-align:left; font-size:22rem; color: #111; font-weight:500;}
.mGnb > ul > li+li{margin-top:30rem;}
.mGnb [data-gnb="1"]:has(+[aria-expanded]){ display: none; }
.mGnb [data-gnb="1"][aria-expanded]::before{ content: ''; position: absolute; top: 50%; transform: translateY(-50%); right: 15px; display: block; width: 15rem; height: 10rem; background: url('/images/common/menu_button.svg') no-repeat 50% 0 / contain; }
.mGnb [data-gnb="1"][aria-expanded="true"]::before{ transform: translateY(-50%) rotate(180deg); }
.mGnb .sub_menu{margin-top:20rem; padding:25rem 0; background: #efefef; }
.mGnb .sub_menu:not(.isVisible){ display: none; }
.mGnb .sub_menu > li+li{margin-top:20rem;}
.mGnb [data-gnb="2"]{position: relative; display: block; padding:0 25rem; font-size:18rem; color:#444; }

.cover{ position: fixed; width: 100%; height: 100%; left: 0; top: 0; background: rgba(0, 0, 0, .4); visibility: hidden; opacity: 0; z-index: 2; }
.mGnb-open .cover{ visibility: visible; opacity: 1; }
@media(prefers-reduced-motion: no-preference){
	.mGnb{ transition: .5s ease-out, visibility 0s .5s; }
	.mGnb-open .mGnb{ transition-delay: 0s; }
	.mGnb .close-btn{ transition: .8s; }
	.mGnb [data-gnb="1"]{ transition: .3s; }
	.mGnb [data-gnb="1"][aria-expanded]::before{transition:.4s;}
	.cover{ transition: .4s; }
}

@media(max-width:1279px){
    :root {
        --header-height: 80rem;
    }
    
    header{position:fixed; transition:0.2s ease;}
    .logo{height:52rem;}
    header nav{display:none;}
    .menu-btn{display:block;}
    
    header.fixed{border-bottom:1px solid #ededed; background:#fff;}
    header.fixed .menu-btn .bar{background:#222;}
    header.fixed .logo__imgW{opacity:0;}
    header.fixed .logo__imgB{opacity:1;}
}
@media(max-width:767px){
    :root {
        --header-height: 66rem;
    }
    
    .logo{height:40rem;}
}
@media(max-width:767px){
    :root {
        --header-height: 70rem;
    }
    
    .logo{height:44rem;}
}
@media(max-width:620px){
    .mGnb{max-width:none; width:70%;}
}


/* footer */
footer{padding:70rem 0; background:#202729;}
footer .inr{display:flex;}
.ftLogo{display:block; height:60rem;}
.ftLogo img{display:block; height:100%;}
.ftLinks{margin:0 80rem 0 150rem;}
.ftLinks li+li{margin-top:15rem;}
.ftLinks a{font-size:16rem; color:#eee; line-height:1; transition:0.2s ease;}
.ftInfo address{font-size:0;}
.ftInfo span{display:inline-block; margin-right:25rem; margin-bottom:5rem; font-size:15rem; color:#afafaf;}
.ftInfo em{display:inline-block; margin-right:3rem; font-weight:600; color:#ddd;}
.ftInfo p{display:block; margin-top:20rem; font-size:14rem; color:#a1a1a1;}
.ftInfo p b{color:#ddd;} 
@media(hover:hover){
    .ftLinks a:hover{opacity:0.6;}
}
@media(max-width:1279px){
    footer{padding:55rem 0;}
    .ftLogo{height:46rem;}
    .ftLinks{margin:0 50rem 0 70rem;}
}
@media(max-width:767px){
    footer .inr{display:block;}
    .ftLogo{height:40rem;}
    .ftLinks{display:flex; margin:30rem 0 30rem;}
    .ftLinks li+li{margin-top:0; margin-left:20rem;}
}








