@charset "utf-8";

#toss_header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #f2f4f6;
    z-index: 1000;
}

.header_container {
    max-width: 1140px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

#toss_logo img {
    height: 30px;
    width: auto;
}

.desktop_only { display: block; }
.mobile_only { display: none; }

.gnb_list {
    display: flex;
    gap: 40px;
    height: 100%;
    align-items: center;
}

.gnb_li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.gnb_li::after {
    content: "";
    position: absolute;
    top: 54px;
    left: -12px;
    right: -12px;
    height: 32px;
    background: transparent;
}

.main_a {
    font-size: 16px;
    font-weight: 600;
    color: #4e5968;
    transition: color 0.2s ease;
    padding: 10px 0;
}

.gnb_li:hover > .main_a,
.gnb_li.is-active > .main_a {
    color: #d00000;
}

.sub_menu_box {
    display: none;
    position: absolute;
    top: 78px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #e5e8eb;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    z-index: 1001;
}

.gnb_li:hover .sub_menu_box { display: block; }

.sub_menu_list {
    display: flex;
    gap: 6px;
    white-space: nowrap;
}

.sub_menu_list li a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    color: #6b7684;
    transition: 0.2s;
}

.sub_menu_list li a:hover {
    color: #d00000;
    background: #fff5f5;
}

.sub_menu_list li.is-sub-active a {
    color: #d00000;
    font-weight: 700;
}

.btn_header_cta {
    background: #d00000;
    color: #fff;
    padding: 10px 22px;
    border-radius: 10px;
    border: 0;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .desktop_only { display: none !important; }
    .mobile_only { display: block; }

    .m_menu_btn {
        background: none;
        border: 0;
        width: 24px;
        height: 20px;
        position: relative;
        cursor: pointer;
        z-index: 10002;
    }

    .m_menu_btn span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        border-radius: 2px;
        background: #191f28;
        transition: 0.3s;
    }

    .m_menu_btn span:nth-child(1) { top: 0; }
    .m_menu_btn span:nth-child(2) { top: 8px; }
    .m_menu_btn span:nth-child(3) { top: 16px; }

    .m_menu_btn.open span:nth-child(1) { top: 8px; transform: rotate(45deg); }
    .m_menu_btn.open span:nth-child(2) { opacity: 0; }
    .m_menu_btn.open span:nth-child(3) { top: 8px; transform: rotate(-45deg); }

    #mobile_menu_layer {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #fff;
        z-index: 10001;
        padding: 96px 24px 40px;
        transition: right 0.35s ease;
        overflow-y: auto;
    }

    #mobile_menu_layer.active { right: 0; }

    .m_gnb_li { border-bottom: 1px solid #f2f4f6; }

    .m_main_a {
        display: block;
        position: relative;
        padding: 20px 0;
        font-size: 22px;
        font-weight: 700;
        color: #191f28;
    }

    .m_main_a::after {
        content: "∨";
        position: absolute;
        right: 0;
        color: #b0b8c1;
        font-size: 14px;
        transition: 0.3s;
    }

    .m_main_a.active::after {
        transform: rotate(180deg);
        color: #d00000;
    }

    .m_sub_list {
        display: none;
        padding: 0 0 18px 8px;
    }

    .m_sub_list li a {
        display: block;
        padding: 10px 0;
        color: #6b7684;
        font-size: 17px;
    }

    .m_menu_bottom { margin-top: 36px; }

    .m_btn_contact {
        display: block;
        width: 100%;
        padding: 16px;
        border-radius: 16px;
        border: 0;
        background: #d00000;
        color: #fff;
        text-align: center;
        font-size: 18px;
        font-weight: 700;
        cursor: pointer;
    }
}