@charset "utf-8";

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

/* 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); color: #fff; z-index: 10;
	.isScrolled &{ background: #fff; color: var(--black); }
	& > .inr{ display: flex; justify-content: space-between; align-items: center; height: 100%; }
	.logo{ position: relative; display: inline-block; }
	.logo__svg{ display: block; width: auto; height: clamp(30rem, calc( 35 / var(--inr) * 100vw ), 35rem); fill: currentColor; }
	.gnb{ margin-right: -40rem; display: flex;
		[data-gnb="1"]{ display: flex; align-items: center; height: var(--header-height); padding: 0 40rem; font-weight: 500; font-size: 20rem; letter-spacing: .03em; }
		.text-secondary{ color: var(--secondary); }
		.isScrolled & .text-secondary{ color: var(--primary); }
	}
	.mGnb-open-btn{ position: relative; width: 25rem; height: 25rem; background: 0; color: inherit; z-index: 1;
		.mGnb-open &{  }
		.bar{ display: block; margin-left: auto; width: 100%; height: 1px; background: currentcolor; }
		.bar + .bar{ margin-top: 7rem; }
	}
	@media(prefers-reduced-motion:no-preference){
		&, .text-secondary, .bar{ transition: .3s; }
	}
	@media(min-width:1280px){
		.mGnb-open-btn{ display: none; }
	}
	@media(max-width:1279px){
		nav{ 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; }

.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; }
}

/* quick */
.quick{ position: sticky; bottom: 0; z-index: 9;
	.quick-wrapper{ --distance: clamp(10rem, calc( 40 / var(--inr) * 100vw ), 40rem); position: absolute; right: var(--distance); bottom: var(--distance); display: grid; gap: clamp(10rem, calc( 15 / var(--inr) * 100vw ), 15rem); }
	.btn{ display: block; width: clamp(52rem, calc( 70 / var(--inr) * 100vw ), 70rem); aspect-ratio: 1; background: no-repeat 50% / cover; border-radius: 50%; }
	.kakao-btn{ background-image: url('/images/common/kakao-btn.png'); }
	.top-btn{ background-image: url('/images/common/top-btn.png'); }
}

/* footer */
footer{ padding: 80rem 0 79rem; background: #292929; color: #bbb;
	.top-group{ margin-bottom: 36rem; display: flex; align-items: center; justify-content: space-between; gap: 20rem; padding-bottom: 40rem; border-bottom: 1px solid #6a6a6a; }
	.logo{ width: auto; height: 35rem; fill: #fff; }
	.links{ display: flex; align-items: center; font: 500 17rem var(--font-pre); color: #eee; }
	.links > li + li::before{ content: 'ㅣ'; margin: 0 2ch; font-weight: 300; }
	.address{ display: flex; flex-wrap: wrap; gap: 6rem 36rem; font-weight: 300; }
	.copyright{ margin-top: 29rem; font: 300 14rem var(--font-pre); color: #888; }
	@media(min-width:768px){
		.address span:nth-child(3){ flex: 1 50%; }
	}
	@media(max-width:767px){
		.top-group, .address{ flex-direction: column; }
	}
}