@charset "utf-8";

:root{ --header-height: 110rem; }
#wrap{ padding-top: var(--header-height); }
@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, gnb */
header{ position: absolute; inset: 0 0 auto; height: var(--header-height); background: #fff; 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: 60rem; }
	nav{ position: relative; display: flex; align-items: center; height: 100%; color: var(--black); translate: 2.65625vw; }
	.gnb{ position: relative; display: flex; height: 100%; }
	.gnb > li{ position: relative; display: inline-block; height: 100%; }
	.gnb [data-gnb="1"]{ display: flex; align-items: center; justify-content: center; width: 174rem; height: 100%; font-size: 22rem; font-weight: 500; }
	.gnb .sub_menu{ visibility: hidden; position: absolute; top: 72%; left: 50%; transform: translateX(-50%); display: grid; gap: 9rem; min-width: 200rem; width: max-content; padding: 28rem 0 29rem; background: #fff; border: 1px solid #ddd; opacity: 0; }
	.gnb li:hover .sub_menu{ visibility: visible; top: 77%; opacity: 1; }
	.gnb [data-gnb="2"]{ display: block; text-align: center; font-weight: 500; font-size: 18rem; color: #666; }
	.gnb [data-gnb="2"]:hover{ color: var(--primary); }
	@media(prefers-reduced-motion:no-preference){
		.gnb .sub_menu{ transition: .4s; }
	}
	@media(max-width: 1279px){
		&{ position: fixed; }
		.logo__img{ height: 43rem; }
		nav{ display: none; }
	}
}

/* mobile-menu */
.menu-btn{ position: relative; width: 25rem; height: 25rem; background: 0; color: inherit; z-index: 1; }
.menu-btn .bar{ display: block; margin-left: auto; width: 100%; height: 1rem; background: currentcolor; }
.menu-btn .bar + .bar{ margin-top: 7rem; }
@media(prefers-reduced-motion:no-preference){
	.btn-menu .bar{ transition: .4s; }
}
@media(min-width:1280px){
	.menu-btn{ 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 .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: 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: 88rem 0 94rem; background: #191919; color: #fff;
	.inr{ display: grid; gap: 50rem clamp(20rem, calc( 140 / var(--inr) * 100vw ), 140rem); }
	.head{ margin-bottom: 0.73333333em; font: 600 var(--fs30) / 1.5 var(--font-mon); }
	.links{ display: flex; gap: 10.5rem 2ch; font: 300 17rem / 1.5 var(--font-pre); color: color-mix(in srgb, currentColor 70%, #0000); }
	.address{ display: flex; flex-wrap: wrap; gap: 6rem 28rem; max-width: 750rem; font: 300 15rem / 1.5 var(--font-pre); color: color-mix(in srgb, currentColor 50%, #0000); }
	.copyright{ margin-top: 20rem; font: 300 13rem / 1.5 var(--font-pre); color: color-mix(in srgb, currentColor 35%, #0000); }
	.font-gul{ font-family: var(--font-gul); }
	.top-btn{ aspect-ratio: 1; width: clamp(100rem, calc( 120 / var(--inr) * 100vw ), 120rem); background: color-mix(in srgb, #fff 15%, #0000) url('/images/common/top-arrow.webp') no-repeat 50% / 27rem; }
	@media(min-width:768px){
		.inr{ grid-template-columns: auto 1fr auto; }
		.links{ flex-direction: column; }
		.address{ max-width: 750rem; }
		.top-btn{ translate: 0 10%; }
	}
	@media(max-width:767px){
		.inr{ grid-template-columns: 1fr auto; }
		.guide{ grid-column: 1 / 3; }
		.top-btn{ place-self: end; }
	}
}