/* ===== header-container ===== */
.header-container { --gnb-depth2-height: 360px; position: relative; top: 0; left: 0; width: 100%; z-index: 100; background: #fff; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.header-container::after { content: ''; position: absolute; top: 100%; left: 0; width: 100%; height: var(--gnb-depth2-height); background: #fff; border-top: 1px solid var(--theme); box-shadow: 0 4px 10px rgba(0,0,0,0.1); opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.header-container:has(.gnb-area:hover)::after { opacity: 1; }

/* ===== header-wrap ===== */
.header-wrap { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; height: 110px; width: 1800px; margin: 0 auto; max-width: 100%; padding: 0 20px; }

/* ===== logo-area ===== */
.header-wrap .logo-area .logo { width: 370px; }
.header-wrap .logo-area .logo a { display: flex; }
.header-wrap .logo-area .logo a img { width: 100%; height: auto; }

/* ===== gnb-area ===== */
.header-wrap .gnb-area { position: relative; height: 100%; display: flex; align-items: center; }
.header-wrap .gnb-area .gnb-list { display: flex; align-items: stretch; height: 100%; }
.header-wrap .gnb-area .gnb-list > li { width: 200px; position: relative; flex: 0 0 auto; transition: width 0.2s; }
.header-wrap .gnb-area .gnb-list > li > a { display: flex; align-items: center; justify-content: center; height: 100%; padding: 0 16px; font-size: 1.7rem; font-weight: 600; color: #222; text-align: center; white-space: nowrap; transition: color 0.2s; }
.header-wrap .gnb-area .gnb-list > li:hover > a { color: var(--theme); }
.header-wrap .gnb-area .gnb-list:hover li { width: 230px;}

.header-wrap .gnb-area .gnb-list > li > .depth2-list { display: none; position: absolute; top: 100%; left: 0; z-index: 3; width: fit-content; height: var(--gnb-depth2-height); padding: 28px 20px 32px; background: #fff; border-left: 1px solid var(--line); border-top: 1px solid var(--theme); }
.header-wrap .gnb-area .gnb-list > li:last-child > .depth2-list { border-right: 1px solid var(--line); }
.header-wrap .gnb-area:hover .gnb-list > li > .depth2-list { display: block; }
.header-wrap .gnb-area .gnb-list > li:hover > .depth2-list { background: #f2f5f9; }
.header-wrap .gnb-area .gnb-list > li > .depth2-list > li + li { margin-top: 12px; }
.header-wrap .gnb-area .gnb-list > li > .depth2-list > li > a { display: block; font-size: 1.6rem; font-weight: 500; line-height: 1.5; color: #111; white-space: nowrap; transition: color 0.2s; }
.header-wrap .gnb-area .gnb-list > li > .depth2-list > li > a:hover { color: var(--theme); font-weight: 700; }

/* ===== util-area ===== */
.header-wrap .util-area .btn-util { display: inline-flex; align-items: center; height: 40px; background: var(--dark); color: #fff; font-size: 1.4rem; font-weight: 500; border-radius: 20px; min-width: 120px; word-break: keep-all; justify-content: center; }
.header-wrap .util-area .btn-util:active { transform: translateY(1px); }

/* ===== btn-hamburger ===== */
.header-container .btn-hamburger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: auto; height: auto; padding: 0; background: none; border: none; cursor: pointer; }
.header-container .btn-hamburger span { display: block; width: 20px; height: 2px; background: #333; border-radius: 2px; transition: transform 0.3s, opacity 0.3s; transform-origin: center; }
.header-container .btn-hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.header-container .btn-hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.header-container .btn-hamburger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ===== mobile-overlay ===== */
.mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 200; }
.mobile-overlay.open { display: block; }

/* ===== mobile-menu ===== */
.mobile-menu { position: fixed; top: 0; right: -360px; width: 320px; height: 100dvh; background: #fff; z-index: 250; overflow-y: auto; visibility: hidden; transition: right 0.32s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.32s; box-shadow: -6px 0 32px rgba(0,0,0,0.1); }
.mobile-menu.open { right: 0; visibility: visible; transition: right 0.32s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s; }

/* ===== mobile-menu-head ===== */
.mobile-menu .mobile-menu-head { display: flex; align-items: center; justify-content: flex-end; height: 64px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.mobile-menu .btn-menu-close { display: flex; align-items: center; justify-content: center; position: relative; width: 36px; height: 36px; background: #f2f5f9; border: none; border-radius: 50%; cursor: pointer; flex-shrink: 0; transition: background 0.2s; }
.mobile-menu .btn-menu-close:hover { background: #e4e9f5; }
.mobile-menu .btn-menu-close span { position: absolute; top: 50%; left: 50%; width: 16px; height: 2px; background: #555; border-radius: 2px; }
.mobile-menu .btn-menu-close span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.mobile-menu .btn-menu-close span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

/* ===== mobile-gnb ===== */
.mobile-menu .mobile-gnb-list { list-style: none; padding: 15px 10px; margin: 0; }
.mobile-menu .mobile-gnb-list > li { border-radius: 14px; overflow: hidden; margin-bottom: 4px; }
.mobile-menu .mobile-depth1-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 15px 16px; font-size: 1.55rem; font-weight: 600; color: #222; background: none; border: none; border-radius: 14px; cursor: pointer; text-align: left; transition: background 0.18s, color 0.18s; }
.mobile-menu .mobile-depth1-btn:hover { background: #ebf1f9; }
.mobile-menu .mobile-depth1-btn::after { content: ''; display: block; width: 7px; height: 7px; border-right: 2px solid var(--line); border-bottom: 2px solid var(--line); transform: rotate(45deg); transition: transform 0.25s, border-color 0.2s; margin-top: -3px; flex-shrink: 0; }
.mobile-menu .mobile-depth1-btn.open { background: #dae2ed; color: var(--dark); border-radius: 14px 14px 0 0; }
.mobile-menu .mobile-depth1-btn.open::after { transform: rotate(-135deg); margin-top: 3px; border-color: var(--dark); }
.mobile-menu .mobile-depth2-list { display: none; padding: 6px 10px 10px; background: #ebf1f9; border-radius: 0 0 14px 14px; }
.mobile-menu .mobile-depth2-list.open { display: block; }
.mobile-menu .mobile-depth2-list li a { display: block; padding: 9px 12px; font-size: 1.4rem; color: #555; border-radius: 10px; transition: background 0.15s, color 0.15s; }
.mobile-menu .mobile-depth2-list li a:hover { background: #dae2ed; color: var(--dark); }

/* ===== mobile-util ===== */
.mobile-menu .mobile-util { padding: 16px 20px 0; }
.mobile-menu .mobile-util .btn-util { display: flex; align-items: center; justify-content: center; width: 100%; height: 50px; padding: 0; background: var(--dark); color: #fff; font-size: 1.5rem; font-weight: 600; border-radius: 16px; transition: opacity 0.2s; }
.mobile-menu .mobile-util .btn-util:active { opacity: 0.85; transform: translateY(1px); }

/* ===== responsive ===== */
@media (min-width: 1920px) {
	.header-wrap { width: 100%; padding: 0 120px; }
    .header-wrap .logo-area .logo { width: 420px;}
    .header-wrap .gnb-area .gnb-list > li > a { font-size: 1.9rem;}
}

@media (max-width: 1680px) {
	.header-wrap .logo-area .logo { width: 330px; }
	.header-wrap .gnb-area .gnb-list > li { width: 155px; }
	.header-wrap .gnb-area .gnb-list:hover li { width: 170px; }
	.header-wrap .gnb-area .gnb-list > li > a { padding: 0 10px; white-space: normal; word-break: keep-all; line-height: 1.3; }
	.header-wrap .gnb-area .gnb-list > li > .depth2-list { padding: 20px 14px 24px; }
	.header-wrap .gnb-area .gnb-list > li > .depth2-list > li > a { font-size: 1.3rem; }
	.header-wrap .util-area .btn-util { height: 34px; padding: 0 16px; font-size: 1.3rem; }
}

@media (max-width: 1280px) {
	.header-container { padding: 0 20px; }
	.header-container::after { display: none; }
	.header-wrap { width: 100%; padding: 24px 0; height: auto; }
	.header-wrap .gnb-area { display: none; }
	.header-wrap .util-area { display: none; }
	.header-container .btn-hamburger { display: flex; }
	.header-wrap .logo-area .logo { width: 300px; }
}

@media (max-width: 480px) {
	.mobile-menu { width: 100%; right: -100%; border-radius: 0; }
}


@media (max-width: 380px) {
	.header-wrap .logo-area .logo { width: 270px; }
}
