/* 공통 레이아웃 */
.inner { max-width: 1200px; margin: 0 auto; }
.header { position: relative; width: 100%; background: #fff; border-bottom: 1px solid var(--color-border); z-index: 1000; }

/* util */
.header-util { border-bottom: 1px solid var(--color-border); }
.header-util .inner { height: 4.4rem; display: flex; align-items: center; justify-content: flex-end; }
.util-link { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 4rem; color: var(--color-text-subtle); font-size: 1.5rem; }
.util-link::before { content: ""; width: 1.6rem; height: 1.6rem; background: url("../images_new/main/myinfo.svg") no-repeat center / contain; }

/* main */
.header-main { position: relative; }
.header-main .inner { height: 7.2rem; padding: 0.8rem 0; display: flex; align-items: center; justify-content: space-between; }
.logo { width: 19.5rem; height: 4.8rem; margin: 0; flex-shrink: 0; }
.logo a { display: block; width: 100%; height: 100%; background: url("../images_new/main/logo.png") no-repeat left center / contain; }

/* gnb */
.gnb { position: relative; z-index: 30; }
.gnb-list { display: flex; align-items: flex-start; margin: 0; padding: 0; }
.gnb-list > li { position: relative; width: 19.2rem; text-align: center; }
.gnb-list > li > a { display: flex; align-items: center; justify-content: center; height: 7.2rem; color: var(--color-text-subtle); font-size: 1.9rem; font-weight: 700; letter-spacing: -0.7px; }
.gnb-list > li > a:hover, .gnb-list > li > a:focus-visible, .gnb-list > li.is-active > a { color: var(--color-primary-50); }

/* 2depth */
.gnb-depth2 { display: none; position: absolute; top: 7.2rem; left: 0; width: 19.2rem; padding: 1.6rem 0; margin: 0; z-index: 40; }
.gnb-depth2 a { display: block; padding: 1.6rem 0.8rem; color: var(--color-text-subtle); font-size: 1.7rem; font-weight: 500; text-align: center; white-space: nowrap; border-radius: 0.4rem; }
.gnb-depth2 a:hover, .gnb-depth2 a:focus-visible { text-decoration: underline; text-underline-offset: 0.5rem; color: var(--color-primary-50); }

.gnb-bg { display: none; position: absolute; top: 7.2rem; left: 0; width: 100%; height: 15rem; background: #fff; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); z-index: 20; }
.header-main.is-open .gnb-depth2, .header-main.is-open .gnb-bg { display: block; }

/* 모바일 메뉴 */
.btn-menu-open, .btn-menu-close { display: none; }

/* 푸터 */
.footer { background: var(--color-gray-5); font-size: 1.5rem; color: var(--color-text-subtle); }
.footer-link { background: #fff; border-bottom: 1px solid var(--color-border); }
.footer-link a { display: inline-block; padding: 1.5rem 0; }
.footer-info { padding: 4rem 0; }
.footer-logo { margin-bottom: 2rem; }
.footer-logo a { display: block; max-width: 18rem; }
.footer p { margin-top: 1.2rem; }



/* 반응형 - 1200px */
@media (max-width:1200px) {
	.header-main .inner { padding: 0.8rem 4rem }
	.inner { padding: 0 4rem;}
	.gnb-list > li, .gnb-depth2 { width: 16rem; }
	.gnb-list > li > a { font-size: 1.7rem; letter-spacing: -1px; }
}

/* 반응형 - 980px */
@media (max-width:980px) {
	.logo { width: 15rem; }
	.header-util { display: none; }
	.header-main .inner { height: 6.4rem; padding: 0.8rem 2rem; }
	.header-main .gnb { position: fixed; top: 0; right: -40rem; display: block; width: 32rem; max-width: 85vw; height: 100vh; padding-top: 6.4rem; background: #fff; z-index: 1001; transition: right 0.3s ease; overflow-y: auto; box-shadow: -0.4rem 0 1.6rem rgba(0, 0, 0, 0.15); }
	.header-main.is-mobile-open .gnb { right: 0; }
	
	.gnb-list { display: block; }
	.gnb-list > li { width: 100%; text-align: left; }
	.gnb-list > li > a { height: auto; padding: 1.8rem 2rem; justify-content: flex-start; font-size: 1.8rem; }
	.gnb-depth2 { display: block; position: static; width: 100%; background: var(--color-gray-5); }
	.gnb-depth2 a { text-align: left; padding: 1.2rem 2.4rem; }
	
	.gnb-bg { display: none !important; }
	  
	.btn-menu-open { display: inline-flex; align-items: center; justify-content: center; flex-direction: column; width: 5.6rem; height: 5.6rem; border: 0; cursor: pointer; }
	.btn-menu-open span { position: relative; height: auto; background: transparent; color: var(--color-gray-90); font-size: 1.4rem; }
	.ico-menu { width: 2.4rem; height: 2.4rem; }
	.btn-menu-close { display: block; position: absolute; top: 1.6rem; right: 1.6rem; width: 4rem; height: 4rem; border: 0; background: transparent; cursor: pointer; }
	.btn-menu-close::before, .btn-menu-close::after { content: ""; position: absolute; top: 50%; left: 50%; width: 2.4rem; height: 0.2rem; background: #222; }
	.btn-menu-close::before { transform: translate(-50%, -50%) rotate(45deg); }
	.btn-menu-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
	.header-main::after { content: ""; display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 1000; }
	.header-main.is-mobile-open::after { display: block; }
}

/* 반응형 - 600px */
@media (max-width: 600px) {
	.inner { padding: 0 2.8rem; }
	.footer-logo img { max-width:16rem; }
}
