@charset "utf-8";
/* CSS Document */
/* ==================== 서브 네비 공통 ==================== */
/* 상단 네비 */
:root {
    --sub-nav-top: 80px;
}

body.header-scrolled {
    --sub-nav-top: 64px;
}

@media (max-width: 1100px) {
    :root {
        --sub-nav-top: 64px;
    }

    body.header-scrolled {
        --sub-nav-top: 64px;
    }
}

#sub_nav {
    position: sticky;
    top: var(--sub-nav-top);
    z-index: 900;
    margin-top: clamp(50px, 3vw, 80px);
    margin-bottom: clamp(20px, 3vw, 40px);
    overflow: visible;
    background: var(--gray_f);
    transition:
        top 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        margin 0.32s ease;
}

#sub_nav::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 100vw;
    height: 100%;
    transform: translateX(-50%);
    border-bottom: 1px solid rgba(var(--point_rgb), 0.14);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.24s ease,
        border-color 0.24s ease,
        box-shadow 0.24s ease;
}

#sub_nav.is-stuck::before {
    opacity: 1;
}

#sub_nav .sub_menu_group {
    position: relative;
    z-index: 1;
    padding: 15px 0;
    transition:
        padding 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

#sub_nav .sub_menu_group + .sub_menu_group {
    margin-top: clamp(14px, 1.5vw, 20px);
}

#sub_nav .sub_menu_tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sub-tab-gap);
    transition: gap 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

#sub_nav .sub_menu_tabs a,
#sub_nav .sub_menu_tabs button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(50px, 5.4vw, 78px);
    padding: var(--sub-tab-py) var(--sub-tab-px);
    border-radius: var(--br_10);
    font-size: var(--sub-tab-fs);
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    background: var(--gray_f);
    color: var(--point);
    border: 1px solid var(--sub_light);
    font-weight: bold;
    width: 100%;
    min-width: 230px;
    max-width: fit-content;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        min-height 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        padding 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        font-size 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        max-width 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

#sub_nav .sub_menu_tabs a:hover,
#sub_nav .sub_menu_tabs button:hover {
    transform: translateY(-1px);
    background: var(--point_dark);
    color: var(--gray_f);
    border-color: transparent;
}

#sub_nav .sub_menu_tabs a.is-active,
#sub_nav .sub_menu_tabs button.is-active {
    background: var(--point);
    color: var(--gray_f);
    border-color: transparent;
}

/* 기본 링크 폰트 */
#sub_nav .sub_menu_tabs a {
    font-size: var(--fs_24);
    padding: clamp(14px, 2vw, 30px) clamp(18px, 2.2vw, 30px);
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        min-height 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        padding 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        font-size 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        max-width 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

/* PC에서 sticky 시 자연스럽게 축소 */
@media screen and (min-width: 1101px) {
    #sub_nav.is-stuck .sub_menu_group {
        padding: 13px 0;
    }

    #sub_nav.is-stuck .sub_menu_tabs {
        gap: clamp(8px, 0.8vw, 14px);
    }

    #sub_nav.is-stuck .sub_menu_tabs a,
    #sub_nav.is-stuck .sub_menu_tabs button {
        min-height: clamp(42px, 4.2vw, 58px);
        padding: clamp(10px, 1.1vw, 16px) clamp(14px, 1.5vw, 22px);
        font-size: var(--fs_20);
        max-width: 210px;
    }
}
@media (max-width: 991px) {
    #sub_nav .sub_menu_tabs a,
    #sub_nav .sub_menu_tabs button {
        font-size: var(--fs_19);
        min-height: 45px;
        padding: 13px;
        line-height: 1.2;
        flex: 1 1 0;
        width: auto;
        max-width: none;
        text-align: center;
        min-width: unset;
    }
}
@media (max-width: 767px) {
    #sub_nav .sub_menu_group {
        padding: 10px 0;
    }

    #sub_nav .sub_menu_tabs {
        gap: 8px;
        align-items: stretch;
    }

    #sub_nav .sub_menu_tabs a,
    #sub_nav .sub_menu_tabs button {
        font-size: var(--fs_16);
        min-height: 40px;
        padding: 10px;
        line-height: 1.2;
        /* flex: 1 1 0;
        width: auto;
        max-width: none;
        text-align: center; */
    }
}

/* 공통 컨텐츠 */
.sub_content_wrap {
    width: 100%;
    padding-bottom: 85px;
}

.sub_tab_panel {
    display: none;
}

.sub_tab_panel.is-active {
    display: block;
}