@charset "utf-8";

:root{ --header-height: clamp(80rem, calc(100 / var(--inr) * 100vw), 100rem); }

/* 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: relative; z-index: 10; height: var(--header-height);
	.inr{ display: flex; align-items: center; justify-content: space-between; height: 100%; }
	.logo{ position: relative; display: inline-block; }
	.logo__img{ display: block; width: auto; height: clamp(31rem, calc(39 / var(--inr) * 100vw), 39rem); }
	.gnb{ position: relative; display: flex; }
	.gnb [data-gnb="1"]{ display: flex; align-items: center; height: var(--header-height); padding: 0 45.3rem; font: 500 18rem var(--font-gmk); color: #222; }
	.mGnb-open-btn{ justify-self: end; position: relative; width: 26rem; height: 26rem; background: 0; color: #000; z-index: 1; }
	.mGnb-open-btn .bar{ display: block; margin-left: auto; width: 100%; height: 2px; background: currentcolor; }
	.mGnb-open-btn .bar + .bar{ margin-top: 7rem; }
	@media(min-width:1280px){
		.inr{ display: grid; grid-template-columns: 1fr auto 1fr; }
		.logo{ margin-left: 20rem; }
		.mGnb-open-btn{ margin-right: 30rem; }
	}
	@media(max-width:1279px){
		nav{ display: none; }
	}
}

/* 모바일 메뉴 */
.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 .mGnb-close-btn{ position: relative; margin-right: 15px; display: block; width: 22px; height: 22px; background: 0; font-size: 0; }
body:not(.mGnb-open) .mGnb-close-btn{ margin-right: -100vw; }
.mGnb .mGnb-close-btn::before,
.mGnb .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 .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; inset: 0; width: 100%; height: 100%; 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 .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 39rem; background: #222; color: #fff;
	.inr{ display: grid; gap: 10rem 1ch; }
	.address{ display: flex; flex-wrap: wrap; gap: 20rem 46rem; max-width: 1100rem; font-weight: 300; }
	.address b{ margin-right: 1.2ch; font-weight: 500; }
	.copyright{ margin-top: 30rem; font: 300 15rem var(--font-pre); }
	.top-btn{ justify-self: end; width: 62rem; aspect-ratio: 1; background: url('/images/common/footer-top.png') no-repeat 50% / cover; border-radius: 50%; }
	@media(min-width:768px){
		.inr{ grid-template-columns: 1fr auto; }
		.top-btn{ translate: 0 4rem; }
	}
	@media(max-width:767px){
		.address{ flex-direction: column; }
	}
}