
/*******************************************************************
*   Header CSS - 정리된 버전
********************************************************************/
:root { --color: #1f5b9f; }

/* ============================================
   2. Scroll Header & Logo
   ============================================ */
.scroll-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
}
.scroll-header .header {
    height: 90px;
    background-color: #fff;
    display: flex;
    align-items: center;
    transition: 0.25s ease;
	border-bottom: 1px solid #f2f2f2;
}
.scroll-header.on .header {
    box-shadow: 0 10px 10px rgba(0, 0, 0, .05);
    border-bottom: 1px solid #f2f2f2;
}
.scroll-header.change .header {
    
}
.scroll-header .header .auto {
    /* width: calc(100% - 120px);
    max-width: 1600px; */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.scroll-header .header .auto:after{
	display: none;
}

/* Logo */
.scroll-header .header .logo {
    width: 280px;
    height: auto;
}
.logo img {
    height: 100%;
}

/* Header 반응형 */
@media (max-width: 1600px) {
    .scroll-header .header .auto {
        width: 100%;
        margin: 0px 60px;
    }
}
@media (max-width: 1400px) {
    .scroll-header .header .auto {
        width: 100%;
        margin: 0;
    }
    .scroll-header .header .logo {
        width: 280px;
    }
}
@media (max-width: 768px) {
    .scroll-header .header {
        height: 70px;
    }
    #sub_visual {
        margin-top: 140px;
    }
	.scroll-header .header .logo {
        width: 220px;
    }
}


/* ============================================
   3. GNB (PC 메인 네비게이션)
   ============================================ */
.gnb {
    display: flex;
    align-items: center;
    gap: 60px;
}
.gnb > div > a {
    font-family: var(--font-type02);
    font-size: 1.24rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--black);
    display: flex;
    align-items: center;
    height: 90px;
    position: relative;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.gnb > div > a:hover {
    color: var(--color);
}
.gnb > div > a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color);
    width: 10px;
    height: 10px;
    border-radius: 50px;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 100000;
}
.gnb > div > a:hover::after {
    visibility: visible;
    opacity: 1;
}

/* GNB 반응형 */
@media (max-width: 1400px) {
    .gnb {
        display: none;
        gap: 40px;
    }
}


/* ============================================
   4. Dropdown Menu (드롭다운 메뉴)
   ============================================ */
.gnb .dropdown {
    display: none;
    border-top: 1px solid #ddd;
    position: absolute;
    top: 89px;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0;
    flex-direction: row;
    gap: 0;
}
.gnb > div:hover ~ .dropdown,
.gnb:hover .dropdown {
    display: flex;
}

/* Left Info */
.gnb .dropdown .left-info {
    background-color: var(--color);
    color: var(--black);
    flex: 1 0 calc((100vw - 860px) / 2);
    background: url(/images/main/left-info-bg-2.png) no-repeat left calc((100vw - 1400px) / 2) bottom 41px;
    border-right: 1px solid #ddd;
    min-height: 350px;
}
.gnb .dropdown .left-info > div {
    margin-left: calc((100vw - 1600px) / 2);
    height: 100%;
    background-image: url(/assets/images/gnb-character.png);
    background-position: right bottom;
    background-repeat: no-repeat;
    background-size: auto;
}
.gnb .dropdown .left-info img {
    margin: 0;
    padding: 0;
    border-top: 0;
    margin-top: 30px;
    margin-bottom: 24px;
}
.gnb .dropdown .left-info p {
    line-height: 1.5;
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--black);
}

.gnb .dropdown .left-info .img-fix{
    margin-bottom: 16px;
    padding-top: 40px;
}
.gnb .dropdown .left-info .img-fix b{
    display: block;
    font-family: var(--font-type02);
    font-size: 2rem;
    font-weight: 600;
    color: var(--color);
    margin-bottom: 4px;
}
.gnb .dropdown .left-info .img-fix p{
    font-family: var(--font-type02);
    font-size: var(--txt-font04);
    font-weight: 700;
    color: var(--color);
}


/* Right Menus (2depth) */
.gnb .dropdown .right-menus {
    display: grid;
    gap: 40px;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    padding: 30px calc((100% - 1600px) / 2 + 226px) 30px 60px;
    width: 100%;
    height: 100%;
    justify-items: center;
    justify-content: center;
}
.gnb .dropdown .right-menus > div {
    height: auto;
    background-position: right top 8px;
    background-repeat: no-repeat;
}
.gnb .dropdown .right-menus > div > a {
    display: block;
    font-size: 1.13rem;
    color: var(--black);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding-left: 10px;
    margin-bottom: 16px;
    justify-content: space-between;
    border-radius: 10px;
    position: relative;
    width: 100%;
}
.gnb .dropdown .right-menus > div > a h3 {
    font-family: var(--font-type02);
    font-size: 1.2rem;
    font-weight: 500;
    color: #222;
}
.gnb .dropdown .right-menus > div > a:hover h3 {
    color: var(--color);
}
.gnb .dropdown .right-menus > div > a img {
    position: relative;
    top: 2px;
}
.gnb .dropdown .right-menus > div > a::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 20px;
    background: var(--color);
    border-radius: 8px 2px 2px 8px;
    left: 0;
}
.gnb .dropdown .right-menus > div > a:hover {
    background-color: #ffffff;
    color: var(--color);
}
.gnb .dropdown .right-menus > div > a:hover::after {
    background-color: var(--color);
}
.gnb .dropdown .right-menus a .xi-angle-down-min {
    font-size: 24px;
}

/* Right Menus Depths (3depth) */
.gnb .dropdown .right-menus-dephs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 0;
}
.gnb .dropdown .right-menus-dephs a {
    font-size: 1.08rem;
    font-weight: 400;
    color: var(--black);
    height: auto;
    margin-left: 4px;
    padding-left: 10px;
    position: relative;
    display: block;
    word-break: keep-all;
    line-height: 1.4;
	white-space: nowrap;
}
.gnb .dropdown .right-menus-dephs a::after {
    position: absolute;
    left: 0;
    top: 11px;
    width: 3px;
    height: 3px;
    background: #666;
    content: '';
    border-radius: 100px;
}
.gnb .dropdown .right-menus-dephs a:hover {
    color: var(--color);
}
.gnb .dropdown .right-menus-dephs a:hover::after {
    background-color: var(--color);
}

/* Dropdown 반응형 */
@media (max-width: 1720px) {
    .gnb .dropdown .left-info {
        padding-left: 20px;
    }
}
@media (max-width: 1600px) {
    .gnb .dropdown .left-info {
        display: none;
    }
    .gnb .dropdown .right-menus {
        padding: 30px 60px;
        justify-items: stretch;
    }
}


/* ============================================
   5. Right Space (우측 영역 - 로그인, 사이트맵 버튼)
   ============================================ */
.right-space-inner {
    display: flex;
    align-items: center;
    gap: 50px;
}
.right-wrap {
    display: flex;
    gap: var(--gap-small04);
    align-items: center;
    justify-content: flex-end;
}

/* Link Button */
.link-btn {
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    color: #fff;
    font-size: 18px;
    position: relative;
    font-weight: 700;
    width: 155px;
    height: 55px;
    background-color: var(--color);
    text-decoration: none;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}
.link-btn img {
    margin-left: 10px;
    transition: all 0.3s ease;
}
.link-btn:hover {
    background-color: #fff;
    color: var(--color);
    border-color: var(--color);
}
.link-btn:hover img {
    filter: invert(25%) sepia(96%) saturate(7386%) hue-rotate(325deg) brightness(98%) contrast(102%);
}

/* Login Button */
.login-btn a {
    display: flex;
    gap: var(--gap-tiny02);
    padding: var(--gap-tiny01) var(--gap-small02);
    border-radius: 200px;
    border: 1px solid var(--pink);
	background: var(--pink);
    transition: all 0.1s ease;
}
.login-btn img {
    width: fit-content;
}
.login-btn p {
    font-size: var(--txt-font01);
    font-weight: 500;
    color: var(--white);
    transition: all 0.1s ease;
}
.login-btn a:hover {
    border: 1px solid #c4105b;
    background: #c4105b;
}
.login-btn a:hover p {
    color: #fff;
}
.login-btn a:hover img {
    filter: brightness(999) saturate(0) hue-rotate(45deg) contrast(999);
}

/* Sitemap Button */
.sitemap-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 23px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}
.sitemap-btn span {
    display: block;
    height: 2px;
    background-color: var(--black);
    transition: all 0.3s ease-in-out;
}

/* Right Space 반응형 */
@media (max-width: 1600px) {
    .right-wrap {
        gap: 30px;
    }
}
@media (max-width: 1400px) {
    .link-btn {
        display: none;
    }
    .login-btn a {
        padding: 2px 30px;
    }
    .right-wrap {
        display: flex;
        gap: 24px;
    }
    /* 사이트맵 버튼 X 애니메이션 */
    .no-scroll .sitemap-btn span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }
    .no-scroll .sitemap-btn span:nth-child(2),
    .no-scroll .sitemap-btn span:nth-child(4) {
        opacity: 0;
    }
    .no-scroll .sitemap-btn span:nth-child(3) {
        transform: translateY(-4px) rotate(-45deg);
    }
}
@media (max-width: 768px) {
    .right-space-inner {
        gap: 20px;
    }
}
@media (max-width: 520px) {
    .right-wrap .login-btn {
        display: none;
    }
}


/* ============================================
   6. Sitemap Modal (PC용 사이트맵)
   ============================================ */
#sitemap {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    z-index: 10000;
    overflow-y: hidden;
}
#sitemap.on,
#sitemap.active {
    display: block;
}

/* Scroll Area */
#sitemap .scroll {
    height: 70vh;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    position: relative;
    overflow: hidden;
}
.scroll-content {
    padding: 30px 0;
    height: 100%;
    overflow-y: scroll;
    padding-right: 20px;
    box-sizing: content-box;
}
.scroll-content::-webkit-scrollbar {
    width: 6px;
    height: 6px;
    background-color: #fff;
}
.scroll-content::-webkit-scrollbar-thumb {
    width: 6px;
    height: 3px;
    background-color: #aaa;
    background-clip: padding-box;
    border: 1px solid transparent;
    transition: all 0.3s;
}
.scroll-content::-webkit-scrollbar-thumb:hover {
    background-color: var(--color);
}
.scroll-bar {
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background-color: #f1f1f1;
}
.cs_scroll-bar-thumb {
    background-color: #888;
    width: 100%;
    border-radius: 10px;
    cursor: pointer;
    position: absolute;
}

/* Sitemap Content */
.sitemap-content {
    background-color: #fff;
    color: var(--black);
    margin: 50px auto;
    padding: 50px 40px 0 40px;
    width: 80%;
    height: 90vh;
    max-width: 1340px;
    border-radius: 10px;
    position: relative;
}
.sitemap-content h2 {
    font-size: 30px;
    font-weight: 700;
    padding-bottom: 30px;
}
.sitemap-content .menu-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #ddd;
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 10px;
    align-items: center;
}
.sitemap-content .menu-section:last-child {
    border-bottom: 0;
}
.sitemap-content .menu-section h3 {
    font-size: 1.3rem;
    font-weight: 500;
    color: #fff;
    background-color: var(--color);
    padding: 36px 24px;
    border-radius: 15px;
    background: var(--color) url(/assets/images/menu-section-h3-bg.png) no-repeat right -8px bottom -4px;
    background-size: 36%;
    height: 100%;
}
.sitemap-content .menu-section > ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    padding: 0px 0 20px;
}
.sitemap-content .menu-section > ul > li {
    margin: 0px 0;
    border-right: 1px solid #eee;
    padding-left: 20px;
    padding: 25px 0 10px 20px;
}
.sitemap-content .menu-section > ul > li:nth-child(4n) {
    border-right: 0;
}
.sitemap-content .menu-section ul li > a {
    color: var(--black);
    text-decoration: none;
    font-size: 1.16rem;
    font-weight: 500;
    display: block;
    line-height: 1.5;
}
.sitemap-content .menu-section ul li > a:hover {
    color: var(--color);
}
.sitemap-content .menu-section .submenu {
    margin-top: 16px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.sitemap-content .menu-section .submenu a {
    font-size: 16px;
    color: #333;
    font-weight: 400;
    position: relative;
    padding-left: 10px;
}
.sitemap-content .menu-section .submenu a::after {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 10px;
    background: #333;
    content: '';
    left: 0;
    top: 11px;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 40px;
    right: 36px;
    z-index: 1000;
    background: none;
    border: none;
    font-size: 34px;
    cursor: pointer;
    color: var(--black);
}

/* Sitemap 반응형 */
@media (max-width: 1400px) {
    #sitemap {
        display: none !important;
    }
}


/* ============================================
   7. Mobile GNB (모바일 네비게이션)
   ============================================ */
.mobile-gnb {
    width: 100%;
    height: calc(100vh - 69px);
    left: -100%;
    top: 69px;
    background: #fff;
    border-top: 1px solid #d9d9d9;
    position: fixed;
    transition: left 0.3s ease-in-out;
    z-index: 8888;
    overflow: hidden;
}
.mobile-gnb > div {
    display: flex;
    height: 100%;
}
.mobile-gnb.show {
    left: 0;
}

/* Tab1 (메인 메뉴) */
.mobile-gnb .tab1 {
    background: #1a77b9;
    height: 100%;
    width: 134px;
    overflow-y: auto;
}
.mobile-gnb .tab1 a {
    color: #fff;
    font-weight: 700;
    display: flex;
    padding: 15px 10px;
    font-size: 15px;
    line-height: 1.5;
    box-sizing: border-box;
    min-height: 54px;
}
.mobile-gnb .tab1 a:hover,
.mobile-gnb .tab1 a.active {
    background: var(--color);
}

/* Tab2 (서브 메뉴) */
.mobile-gnb .tab2 {
    width: calc(100% - 133px);
    overflow-y: auto;
    display: none;
}
.mobile-gnb .tab2[id="tab1-1"] {
    display: block;
}
.mobile-gnb .tab2.show {
    display: block !important;
}
.mobile-gnb .tab2 .drop-menu > a {
    border-bottom: 1px solid #d9d9d9;
    display: flex;
    width: 100%;
    font-size: 15px;
    color: var(--black);
    padding: 15px;
    justify-content: space-between;
    box-sizing: border-box;
    min-height: 54px;
    position: relative;
    align-items: center;
}

/* Drop Menu Icon */
.mobile-gnb .drop-menu > a .icon {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-left: 10px;
    position: relative;
}
.mobile-gnb .drop-menu > a .icon::before,
.mobile-gnb .drop-menu > a .icon::after {
    content: '';
    position: absolute;
    background-color: #666;
    transition: all 0.3s ease;
}
.mobile-gnb .drop-menu > a .icon::before {
    width: 100%;
    height: 1px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}
.mobile-gnb .drop-menu > a .icon::after {
    width: 1px;
    height: 100%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}
.mobile-gnb .drop-menu2.show + .drop-menu > a .icon::after {
    display: none;
}
.mobile-gnb .drop-menu2.show + .drop-menu > a .icon::before {
    transform: rotate(90deg);
}

/* Drop Menu 2 (3depth) */
.mobile-gnb .tab2 .drop-menu2 {
    background: #ebf2f8;
    padding: 5px 10px;
    display: none;
}
.mobile-gnb .tab2 .drop-menu2.show {
    display: block;
}
.mobile-gnb .tab2 .drop-menu2 a {
    color: #666;
    position: relative;
    display: block;
    padding: 6px;
    padding-left: 15px;
}
.mobile-gnb .tab2 .drop-menu2 a::after {
    position: absolute;
    left: 6px;
    top: 18px;
    width: 3px;
    height: 3px;
    background: #666;
    border-radius: 10px;
    content: '';
}

/* Mobile GNB 반응형 */
.pc .mobile-gnb {
    display: none;
}
@media (min-width: 1400px) {
    .mobile-gnb {
        display: none;
    }
}
@media (min-width: 768px) {
    .mobile-gnb {
        top: 89px;
    }
}


/* ============================================
   8. Top Button (상단 이동 버튼)
   ============================================ */
.top-button {
    width: 55px;
    height: 55px;
    background-color: #222;
    color: #fff;
    border-radius: 100px;
    border: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    opacity: 0;
    visibility: hidden;
    z-index: 11;
}
.top-button.visible {
    opacity: 1;
    visibility: visible;
}
.top-button.hidden {
    opacity: 0;
    visibility: hidden;
}

@media (max-width: 768px) {
    .top-button {
        display: flex;
    }
}


/* ============================================
   10. Utility Classes
   ============================================ */
html.no-scroll,
body.no-scroll {
    overflow: hidden;
    height: 100%;
}

.gnb-item.legal-menu {
    display: none;
}








