@charset "utf-8";

:root{ --header-height: 120rem; }
@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: absolute; inset: 0 0 auto; z-index: 10; height: var(--header-height); color: #fff; }
header .inr{ display: flex; justify-content: space-between; align-items: center; height: 100%; }
.logo{ position: relative; display: inline-block; flex: 1; }
.logo__a{ display: block; width: fit-content; }
.logo__img{ display: block; width: auto; height: calc(var(--header-height) * .39166667); }

/* gnb */
header nav{ position: relative; margin-right: 44.8rem; 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 39.2rem; font-size: 20rem; font-weight: 500; text-align: center; }
header .gnb .sub_menu{ visibility: hidden; position: absolute; top: 75%; left: 50%; transform: translateX(-50%); min-width: 160px; width: max-content; background: var(--white); color: #444; border-radius: 4rem; padding: 8rem 0; opacity: 0; box-shadow: 0px 8px 20px 0px rgba(0, 0, 0, 0.12); }
header .gnb li:hover .sub_menu{ visibility: visible; top: 80%; opacity: 1; }
header .gnb [data-gnb="2"]{ display: block; padding:8px 12px; font-size: 15px; text-align: center; }
header .gnb [data-gnb="2"]:hover {opacity: 0.8; }
header .gnb .sub_menu li:first-child [data-gnb="2"]{ border-top: 0; }
@media(prefers-reduced-motion:no-preference){
	.gnb .sub_menu{ transition: .4s; }
}
@media(max-width: 1279px){
	header nav{ display: none; }
}

.util{ display: flex; gap: 2ch;
	.lang{ display: inline-flex; align-items: center; gap: 12rem; font: 300 18rem var(--font-rem); }
	.lang::before{ content: ''; display: block; width: 22rem; height: 22rem; background: url('/images/common/lang.svg') no-repeat 50% / contain; }
	@media(min-width:1280px){
		.lang{ translate: 0 3rem; }
	}
}

/* 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: 1px; background: currentcolor; }
.menu-btn .bar + .bar{ margin-top: 7rem; }
.mGnb-open .menu-btn{  }
@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; 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 .close-btn{ transition: .8s; }
	.mGnb [data-gnb="1"]{ transition: .3s; }
	.mGnb [data-gnb="1"][aria-expanded]::before{ transition: .4s; }
	.cover{ transition: .4s; }
}

/* quick */
.quick{ position: fixed; top: 50%; right: 0; translate: 0 -50%; z-index: 9; display: grid; gap: 5rem;
	.link{ justify-self: end; display: flex; align-items: center; justify-content: center; width: 65rem; height: 60rem; padding-inline: 22rem; background: var(--primary); font: 500 15rem var(--font-pre); color: #fff; }
	.icon{ display: block; width: 21rem; height: 20rem; object-fit: scale-down; }
	.txt{ contain: content; display: block; width: 6ch; height: 1lh; }
	@media(prefers-reduced-motion:no-preference){
		.link{ transition: .3s; }
		.txt{ transition: .15s; }
	}
	@media(hover){
		.link:hover{ width: calc(50rem + 21rem + 12rem + 6ch); gap: 12rem; padding-inline: 25rem; }
		.link:not(:hover) .txt{ width: 0; }
	}
	@media(hover:none){
		.link{ width: 51rem; height: 51rem; padding: 0; }
		.txt{ display: none; }
	}
}

@media(max-width:767px){
	.quick {display: none;}
}
/* footer */
footer{ padding: 51rem 0 55rem; background: #1b1b1b; font-weight: 300; color: #aaa;
	[lang="ko"] &{ text-transform: uppercase; }
	.footer-logo{ width: 195rem; height: 43rem; }
	.address{ display: flex; flex-wrap: wrap; gap: 7rem 39rem; }
	.copyright{ margin-top: 20rem; }
	@media(min-width:1280px){
		.inr{ display: flex; flex-direction: row-reverse; justify-content: space-between; }
		.footer-logo{ translate: 0 4rem; }
	}
	@media(max-width:1279px){
		.info{ margin-top: 30rem; }
	}
}