@charset "utf-8";

:root{ --header-height: 116rem; }
@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 */
header{ position: fixed; inset: 0 0 auto; height: var(--header-height); z-index: 10; color: #fff; }
header .inr{ display: grid; align-items: center; height: 100%; }
.logo{ justify-self: center; position: relative; display: inline-block; }
.logo__svg{ display: block; width: auto; height: calc(var(--header-height) * .47413793); fill: currentColor; }

/* gnb */
header nav{ position: relative; width: 100%; height: 100%; }
header .gnb{ position: relative; display: flex; justify-content: center; height: 100%; translate: 0.8%; }
header .gnb > li{ position: relative; display: inline-block; height: 100%; }
header .gnb [data-gnb="1"]{ display: flex; align-items: center; height: 100%; padding: 0 75rem; font-size: 20rem; font-weight: 500; letter-spacing: 0; }
header .gnb .sub_menu{ visibility: hidden; position: absolute; top: 75%; left: 50%; transform: translateX(-50%); min-width: 120px; width: max-content; background: #fff; border: 1px solid #ddd; opacity: 0; }
header .gnb li:hover .sub_menu{ visibility: visible; top: 80%; opacity: 1; }
header .gnb [data-gnb="2"]{ display: block; padding: 14px; color: #333; border-top: 1px solid #ddd; font-size: 14px; text-align: center; }
header .gnb [data-gnb="2"]:hover{ background: var(--primary); color: #fff; }
header .gnb .sub_menu li:first-child [data-gnb="2"]{ border-top: 0; }
@media(prefers-reduced-motion:no-preference){
	header{ transition: .2s; }
	.logo__svg{ transition: height .4s; }
	.gnb .sub_menu{ transition: .4s; }
}
@media(min-width:1280px){
	header{ position: absolute; }
	.logo{ overflow: hidden; position: absolute; width: 0; height: 0; }
	.logo__a{ margin: 0 123rem; display: flex; align-items: center; height: 100%; }
}
@media(max-width: 1279px){
	:root:has(.isScrolled){ --header-height: 70rem; }
	.isScrolled header{ background: #fff; color: var(--black); }
	header .inr{ display: grid; grid-template-columns: auto 1fr auto; }
	header .inr::before{ content: ''; }
	header nav{ display: none; }
}

/* mobile-menu */
.mGnb-open-btn{ position: relative; width: 25px; aspect-ratio: 1; background: 0; color: inherit; z-index: 1; }
.mGnb-open-btn .bar{ display: block; margin-left: auto; width: 100%; height: 1px; background: currentcolor; }
.mGnb-open-btn .bar + .bar{ margin-top: 7rem; }
.mGnb-open .mGnb-open-btn{  }
@media(min-width:1280px){
	.mGnb-open-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 .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; }
}

/* top btn */
.top-btn-group{ position: relative; z-index: 9;
	.top-btn{ position: absolute; right: min(4vw, 40rem); bottom: 0; translate: 0 12.5%; width: clamp(70rem, calc( 80 / var(--inr) * 100vw ), 80rem); aspect-ratio: 1; background: rgba(64, 64, 64, 0.4) url('/images/common/top-btn-arrow.png') no-repeat 50% / 15rem; border-radius: 50%; }
}

/* footer */
footer{ padding: 25rem 0 69rem; background: #191919; color: #fff;
	.links{ display: flex; font-weight: 500; color: #ececec; }
	.links li + li::before{ content: ''; translate: 0 2rem; margin: 0 19rem; display: inline-block; width: 1px; height: 15rem; background: #fff; opacity: .4; }
	.address{ margin-top: 51rem; display: flex; flex-wrap: wrap; gap: 1lh 27rem; font: 300 15rem var(--font-pre); color: #aaa; }
	.office{ flex: 1 100%; margin-bottom: 7rem; display: flex; align-items: center; gap: 1em; font: 600 20rem var(--font-pre); color: #fff; }
	.office::before{ content: ''; display: inline-block; width: 3em; aspect-ratio: 100/43; background: url('/images/common/logo_w.svg') 50% / contain no-repeat; }
	.address b{ color: #ececec; text-transform: uppercase; }
	.copyright{ margin-top: 40rem; font: 300 13rem var(--font-pre); color: #777; }
}