@charset "utf-8";

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

/* 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; }
.logo__img{ display: block; width: auto; height: 39rem; }
@media(min-width:1280px){
	:root{ --inr-width: .94; }
	header .inr{ display: grid; grid-template-columns: 1fr auto 1fr; }
	.logo{ justify-content: start; }
}

/* gnb */
header .gnb{ display: flex; }
header .gnb > li{ position: relative; }
header .gnb [data-gnb="1"]{ display: flex; align-items: center; height: var(--header-height); padding: 0 51rem; font-size: 18rem; font-weight: 500; }
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){
	.gnb .sub_menu{ transition: .4s; }
}
@media(max-width: 1279px){
	header nav{ display: none; }
}

/* mobile-menu */
.mGnb-open-btn{ position: relative; width: 25rem; height: 25rem; 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(prefers-reduced-motion:no-preference){
	.mGnb-open-btn .bar{ transition: .4s; }
}
@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; }
}

/* footer */
footer{ padding: 67rem 0 54rem; background: #101b21; font-size: 14rem; color: #aaa;
	.links{ display: flex; gap: 8rem; color: #c1c1c1;
		a{ display: inline-block; padding: 4rem 15rem; background: #172228; border: 1px solid #272f33; border-radius: 5rem; }
		.admin{ padding: 4rem 11rem; background: var(--primary); border-color: #0000; color: #fff; }
	}
	.address{ margin-top: 38rem; display: flex; flex-wrap: wrap; gap: 13rem 16rem; max-width: 740rem; }
	.address b{ margin-right: .2ch; font-weight: 500; color: #666; }
	.copyright{ margin-top: 134rem; font: 13rem var(--font-play); color: rgba(204, 204, 204, 0.36); }
	@media(max-width:767px){
		.address{ flex-direction: column; }
	}
}