/* inner */
.wrapper{ position: relative; margin: 0 auto; max-width: calc(var(--inr) * 1rem); width: calc(var(--inr-width) * 100%); }
.inr{ 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 */
:root{ --header-height: 100rem; }
header{ position: absolute; inset: 0 0 auto; border-bottom: 1px solid color-mix(in srgb, currentColor 20%, #0000); color: var(--white); z-index: 10; }
header .inr{ display: flex; justify-content: space-between; align-items: center; height: var(--header-height); }
.logo{ position: relative; display: inline-block; z-index: 50;}
.logo__img{ display: block; width: auto; height: 34rem; }

@media(min-width:1280px){
	.logo__img{ translate: 0px 1px; }
}
@media(max-width:767px){
	.logo__img {height: 30rem;}
}

/* gnb */
header nav{ position: relative; display: flex; align-items: center; height: 100%; translate: -6.6%; }
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 45rem; font-weight: 500; font-size: 18rem; letter-spacing: -.01em; }
header .gnb .sub_menu{ visibility: hidden; position: absolute; top: 75%; left: 50%; transform: translateX(-50%); min-width: 160px; width: max-content; background: #0795c3; opacity: 0; }
header .gnb li:hover .sub_menu{ visibility: visible; top: 80%; opacity: 1; }
header .gnb [data-gnb="2"]{ display: block; padding: 16rem 10rem; color: #fff; opacity: 0.6; font-size: 15px; text-align: center; }
header .gnb [data-gnb="2"]:hover{ opacity: 1;}


/* mobile-menu */
.menu-btn{ position: relative; width: 30px; height: 30px; background: 0; color: inherit; z-index: 1; }
.menu-btn .bar{ position: absolute; top: calc( 50% - 1px ); display: block; width: 100%; height: 2px; background: currentcolor; }
.menu-btn .bar:nth-child(1){ translate: 0 -5px; }
.menu-btn .bar:nth-child(2){ translate: 0 5px; }
@media(prefers-reduced-motion:no-preference){
	.gnb .sub_menu,
	.btn-menu .bar{ transition: .4s; }
}
@media(max-width: 1279px){
	:root{ --header-height: 80rem; }
	header nav{ display: none; }
	
}

/* 모바일 메뉴 */
.mGnb{ overflow: hidden auto; position: fixed; top: 0; right: 0; width: 100%; height: 100%; background: #222; text-align: center; z-index: 5; transition: all 0.4s ease-out; }
.mGnb__ul {max-width: 1700rem; margin:150rem auto 0; display: grid; grid-template-columns: repeat(4, 1fr);}
.mGnb__ul > li {padding: 60rem 40rem; border-left: 1px solid rgba(255, 255, 255, 0.1);}
.mGnb__ul > li:nth-child(1) {border-left: 0;}
body:not(.mGnb-open) .mGnb{ transform: translateX(100%); visibility: hidden; }
.mGnb__header{ display: grid; align-items: center; justify-content: flex-end; margin: 0 auto; width: calc(var(--inr-width) * 100%); height: var(--header-height); }
.mGnb .close-btn{ position: relative; margin-right: 0; display: block; width: 30px; height: 30px; background: 0; font-size: 0; z-index: 5; }
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(--white); transform: translateY(-50%) rotate(45deg); }
.mGnb .close-btn::after{ transform: translateY(-50%) rotate(-45deg); }
.mGnb [data-gnb="1"]{ position: relative; display: block; width: 100%; font-size: var(--fs40); font-weight: 600; color: #fff; margin-bottom: 40rem; pointer-events: none;}
.mGnb [data-gnb="1"]:has(+[aria-expanded]){ display: none; }
.mGnb [data-gnb="1"][aria-expanded="true"]::before{ transform: translateY(-50%) rotate(180deg); }
.mGnb [data-gnb="2"]{ position: relative; display: block; font-size: var(--fs22); color: #fff; opacity: .3; padding: 10rem 0; transition: .3s;}
.mGnb [data-gnb="2"]:hover {opacity: 1;}
.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; }
/* .mGnb-open .logo {position: fixed;} */

@media(prefers-reduced-motion: no-preference){
	.mGnb{ transition: .5s ease-out, visibility 0s .5s; }
	.mGnb-open .mGnb{ transition-delay: 0s; }
	.mGnb .close-btn{ transition: .5s; }
	.mGnb [data-gnb="1"]{ transition: .3s; }
	.mGnb [data-gnb="1"][aria-expanded]::before{ transition: .4s; }
	.cover{ transition: .4s; }
}

@media(max-width: 767px){
	.mGnb {text-align: left;}
	.mGnb__ul{grid-template-columns: repeat(1, 1fr); margin:20% auto 0;}
	.mGnb__ul > li {padding: 0 40rem;}
	.mGnb__ul > li + li {margin-top: 35rem;}
	.mGnb [data-gnb="1"] {margin-bottom: 0; text-align: left; pointer-events: initial;}
	.mGnb [data-gnb="2"] {padding: 6rem 0;}
	.mGnb__ul .sub_menu {display: none; margin-top: 15rem;}
}


/* footer */
footer{
	&{ padding: 80rem 0 101rem; background: #313131; color: #aaa; }
	.inr{ display: grid; gap: 40rem; }
	.links{ display: flex; gap: 11rem; font-size: 14rem; color: #aaa; }
	[data-gnb="1"]{ display: block; min-width: 88rem; padding: 7rem 11rem 6rem; background: color-mix(in srgb, #000 30%, #0000); border-radius: 2rem; text-align: center; }
	.address{ display: flex; flex-wrap: wrap; gap: 1em 49rem; font-size: 15rem; }
	.copyright{ margin-top: 15rem; text-transform: uppercase; font-size: 15rem; color: #888; }
	@media(min-width:1280px){
		.inr{ grid-template-columns: 1fr auto; }
		.links{ order: 2; }
		.info{ translate: 0 -4rem; }
	}
}

/* aside */
aside{
	&{ position: fixed; right: 20rem; bottom: 20rem; display: grid; gap: 15rem; z-index: 9; }
	.btn{ display: grid; place-content: center; width: 62rem; height: 62rem; border-radius: 50%; }
	.inquiry-btn{ background: var(--primary); }
	.top-btn{ background: var(--white); box-shadow: 0 10rem 20rem rgba(85, 85, 85, 0.1); }
	.pencil{ width: 16rem; height: auto; fill: var(--white); }
	.arrow{ width: 8rem; height: auto; fill: #000; }

}