@charset "utf-8";

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

/* inner */
#wrap {overflow-x: hidden;}
: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; height: var(--header-height); z-index: 10; }
header .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: 46rem; }

/* gnb */
header nav {position: relative; display: flex; align-items: center; height: 100%; color: var(--black); }
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 42rem; font-size: 19rem; color: var(--white); font-weight: 400; }
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; }
header .header__utill {display: flex; align-items: center; gap: 30rem;}
header .online-menu {font-size: 15rem; font-weight: 300; display: block; padding:13rem 30rem; border: 1rem solid rgba(255, 255, 255, 0.5); border-radius: 25rem; color: var(--white); transition: all .3s; }
header .online-menu:hover {background: rgba(255, 255, 255, 0.2);}
@media(prefers-reduced-motion:no-preference){
	.gnb .sub_menu{ transition: .4s; }
}
@media(max-width: 1279px){
	header nav{ display: none; }
}
/* mobile-menu */
.menu-btn {display: none; }

@media(prefers-reduced-motion:no-preference){
	.btn-menu .bar{ transition: .4s; }
}
@media(max-width: 1279px){
	header .online-menu {font-size: 13rem; padding:10rem 22rem;}
	.menu-btn {display: block; 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: var(--white); }
	.menu-btn .bar + .bar{margin-top: 7rem;}
}

@media(max-width: 767px){
	.logo__img {height: 38rem;}
	header .online-menu {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: 55rem 0 50rem; background: #24262a; color:rgba(255, 255, 255, 0.6); font-weight: 300;
	.links{ display: flex; gap: 26rem; }
	.inr {display: flex; flex-wrap: wrap; gap: 20rem; justify-content: space-between; align-items: flex-start;}
	.info {width: 910rem;}
	.info b {display: inline-block; margin-right: 8rem; font-weight: 500;}
	.address{ display: flex; flex-wrap: wrap; gap: 10rem 40rem; }
	.copyright{ margin-top: 15rem; color:rgba(255, 255, 255, 0.5);}
	.footer__logo {width: 200rem; opacity: 0.18;}

	@media(max-width: 767px){
		.footer__logo {width: 150rem; }
	}
}

