/* 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; height: var(--header-height); color: var(--white); z-index: 10; }
header::before{ content: ''; position: absolute; inset: 0; border-bottom: 1px solid currentColor; opacity: .3; pointer-events: none; }
header .inr{ display: flex; justify-content: space-between; align-items: center; height: 100%; }
.logo{ position: relative; display: inline-block; }
.logo__img{ display: block; width: auto; height: 30rem; fill: currentColor; }

/* gnb */
header nav{ position: relative; display: flex; align-items: center; height: 100%; }
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 49.4rem; font-size: 20rem; font-weight: 500; }
header .gnb .sub_menu{ position: absolute; top: 83%; left: 50%; transform: translateX(-50%); display: grid; gap: 8rem; min-width: 150rem; width: max-content; padding: 25rem 15rem 24rem; background: #fff; text-align: center; }
header .gnb li:not(:hover) .sub_menu{ visibility: hidden; top: 78%; opacity: 0; }
header .gnb [data-gnb="2"]{ color: #333; font-size: 18rem; }
header .gnb [data-gnb="2"]:not(:hover){ color: #777; }

/* mobile-menu */
.menu-btn{ position: relative; width: 25px; height: 25px; background: 0; color: inherit; z-index: 1; }
.menu-btn span{ display: block; margin-left: auto; width: 100%; height:2px; background: currentcolor; }
.menu-btn span + span{ margin-top: 7px; }
.mGnb-open .menu-btn{  }
@media(prefers-reduced-motion:no-preference){
	header,
	.gnb .sub_menu,
	.menu-btn span{ transition: .4s; }
}
@media(min-width:1280px){
	header nav{ translate: 49.4rem; }
	.menu-btn{ display: none; }
}
@media(min-width:1900px){
	.logo{ translate: -28.2%; }
}
@media(max-width: 1279px){
	:root{ --header-height: 80rem; }
	header{ position: fixed; }
	.isScrolled header{ background: var(--white); color: var(--black); }
	header nav{ display: none; }
}
@media(max-width:767px){
    :root{ --header-height:70rem; }
    .logo__img{height:25rem;}
}

/* 모바일 메뉴 */
.mGnb{ overflow: hidden auto; position: fixed; top: 0; right: 0; max-width: 280px; width: 100%; height: 100%; background: var(--white); z-index: 3; }
body:not(.mGnb-open) .mGnb{ transform: translateX(100%); visibility: hidden; }
.mGnb__header{ display: grid; 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: 15px 25px; border-bottom: 1px solid #eaeaea; text-align: left; font-size: 16px; color: #424242; }
.mGnb > ul > li:first-child > [data-gnb="1"]{ border-top: 1px solid #eaeaea; }
.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: 10px; display: block; width: 11px; height: 7px; 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{ background: #efefef; }
.mGnb .sub_menu:not(.isVisible){ display: none; }
.mGnb .sub_menu > li{ border-bottom: 1px solid #dedede; }
.mGnb [data-gnb="2"]{ position: relative; display: block; padding: 15px 25px; font-size: 14px; color: var(--black); }

.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; }
}

/* footer */
footer{
	&{ padding: 56rem 0 57rem; background: #222; color: #999; }
	.inr{ display: grid; }
	.logo__img{ grid-area: logo; fill: color-mix(in srgb, var(--white) 60%, #0000); }
	.links{ grid-area: links; display: flex; gap: 50rem; padding-bottom: 20rem; border-bottom: 1px solid #656565; font-weight: 500; color: #eee; }
	.address{ margin-top: 21rem; grid-area: address; display: flex; flex-wrap: wrap; gap: 8rem 27rem; font-size: 13rem; color: #aaa; }
	.address b{ font-weight: 600; color: #ddd; }
	.copyright{ grid-area: copyright; align-self: end; margin-top: 26rem; text-transform: uppercase; font-size: 12rem; color: #999999; }
	@media(hover:hover){
		[data-gnb="1"]:hover{ opacity: .6; }
		@media(prefers-reduced-motion:no-preference){
			[data-gnb="1"]{ transition: .2s; }
		}
	}
	@media(min-width:1280px){
		.inr{ grid-template: 'logo links links' ' logo address copyright'; }
		.logo__img{ margin-right: 161rem; translate: 0 5rem; }
	}
	@media(max-width:1279px){
		.logo__img{ margin-bottom: 40rem; }
		@media(min-width:768px){
			.inr{ grid-template: 'logo logo' 'links links' ' address copyright'; }
		}
	}
	@media(max-width:767px){
		.inr{ grid-template: 'logo' 'links' 'address' 'copyright'; }
	}
}

/* btn-top */
.aside{
	&{ position: sticky; right: 0; bottom: 0; font-size: 16rem; font-weight: 700; line-height: 1; z-index: 8; }
	.top-btn{ --distance: clamp(15rem, calc( 50 / var(--inr) * 100vw ), 50rem); float: right; position: absolute; right: var(--distance); bottom: var(--distance); display: grid; place-content: center; width: 50rem; height: 50rem; background: #acacac80; border-radius: 50%; }
	.arrow{ width: 17rem; height: auto; fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px; }
	@media(prefers-reduced-motion:no-preference){
		.top-btn{ transition: .4s; }
	}
}
body:not(.isScrolled) .top-btn{ opacity: 0; visibility: hidden; }