@charset "utf-8";

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

/* 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{ position: absolute; inset: 0 0 auto; height: var(--header-height); z-index: 10;
	.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: 45rem; }
	nav{ display: flex; align-items: center; text-transform: uppercase; }
	.gnb{ display: flex; gap: 81rem; }
	.gnb [data-gnb="1"]{ translate: 0 1rem; display: flex; align-items: center; height: var(--header-height); font: 500 19rem / 1.5 var(--font-work); letter-spacing: .016em; }
	.instagram{ margin-left: 80rem; display: block; width: 21rem; height: 21rem; background: url('/images/common/insta.svg') no-repeat 50% / contain; }
	.youtube{ translate: -1rem; margin-left: 36rem; display: block; width: 25rem; height: 18rem; background: url('/images/common/youtube.svg') no-repeat 50% / contain; }
	@media(max-width: 1279px){
		.gnb{ display: none; }
	}
}
@media(max-width:1279px){
	.isScrolled header{ background: rgba(255, 255, 255, 0.80); backdrop-filter: blur(3px); }
}

.menu-btn{ position: relative; margin-left: 36rem; width: 25rem; height: 25rem; background: 0; color: inherit; z-index: 1;
	.bar{ display: block; margin-left: auto; width: 100%; height: 1px; background: currentcolor; }
	.bar + .bar{ margin-top: 7rem; }
	@media(min-width:1280px){
		&{ display: none; }
	}
}

/* 모바일 메뉴 */
.mGnb{ overflow: hidden auto; position: fixed; top: 0; right: 0; max-width: 280px; width: 100%; height: 100%; background: var(--white); z-index: 12; }
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: 1px; 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: 11; }
.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: 46rem 0 40rem; background: #333; color: #aaa;
	.inr{ display: flex; flex-direction: column; align-items: flex-start; gap: 40rem; }
	.logo{ width: 167rem; height: auto; }
	.links{ display: flex; gap: 26rem; }
	.address{ display: flex; flex-wrap: wrap; gap: 9rem 35rem; max-width: 800rem; }
	.address b{ font-weight: 800; }
	.copyright{ margin-top: 10rem; font: 300 15rem / 1.5 var(--font-pre); color: #888; }
	@media(min-width:768px){
		.inr{ display: flex; flex-direction: row-reverse; align-items: start; justify-content: space-between; }
		.logo{ translate: 0 8%; }
	}
}