@charset "utf-8";


/* 헤더 ***********************************************/
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9;
    background: rgba(20, 20, 20, 0.35);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.header .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    padding: 0 60px;
    height: 70px;
    position: relative;
}

@media (max-width:768px) {
    .header .header-inner {
        padding: 0 20px;
    }
}


/* ▶ GNB 메뉴 */
.header .gnb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 30px;
}

.header .gnb>li {
    position: relative;
}

.header .gnb>li>a {
    height: 70px;
    padding: 0 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 1.1rem;
    color: #fff;
    white-space: nowrap;
}

.header .gnb .arrow {
    margin-left: 4px;
    display: inline-block;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid #fff;
    border-bottom: 1.5px solid #fff;
    transform: translateY(-2px) rotate(45deg);
    margin-top: 2px;
}

/* ▶ 서브 메뉴 */
.header .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    display: none;
    flex-direction: column;
    padding: 8px 0;
}

.header .gnb li:hover .sub-menu {
    display: flex;
}

.header .sub-menu li a {
    display: block;
    padding: 10px 16px;
    margin: 0 10px;
    font-size: 14px;
    white-space: nowrap;
    color: #333;
}

.header .sub-menu li a:hover {
    background: #f9f9f9;
}

/* ▶ 우측 버튼 */
.header .gnb-right ul {
    display: flex;
    gap: 12px;
}

.header .gnb-right ul li a {
    display: inline-block;
    font-size: 14.5px;
    padding: 8px 14px;
    border-radius: 8px;
}

.header .gnb-right ul li:nth-child(2) a {
    border: 1px solid #c6c6c6;
    color: #505050;
}

.header .gnb-right ul li:nth-child(1) a {
    background: var(--primary);
    color: #fff;
    font-weight: bold;
}

/* ============================================================
   모바일 슬라이드 네비 (max-width: 1400px)
   (이전 /css/style.css 에서 이전)
============================================================ */

@media (min-width: 1401px) {

    .mb-nav-toggle,
    .mb-dim,
    .mb-nav {
        display: none;
    }

    body.mb-nav-open {
        overflow: visible;
    }
}

@media (max-width: 1400px) {

    .header nav,
    .header .gnb-right {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        white-space: nowrap !important;
        border: 0 !important;
    }

    .mb-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 44px;
        height: 44px;
        margin-left: auto;
        padding: 0;
        border: none;
        background: transparent;
        cursor: pointer;
        position: relative;
        z-index: 10;
    }

    .mb-nav-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        background: #fff;
        border-radius: 1px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .mb-nav-toggle::before,
    .mb-nav-toggle::after {
        content: "";
        position: absolute;
        left: 50%;
        width: 22px;
        height: 2px;
        background: #fff;
        border-radius: 1px;
        transform: translateX(-50%);
        transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease;
    }

    .mb-nav-toggle::before {
        top: 14px;
    }

    .mb-nav-toggle::after {
        bottom: 14px;
    }

    body.mb-nav-open .mb-nav-toggle span {
        opacity: 0;
    }

    body.mb-nav-open .mb-nav-toggle::before {
        top: 21px;
        transform: translateX(-50%) rotate(45deg);
    }

    body.mb-nav-open .mb-nav-toggle::after {
        bottom: 21px;
        transform: translateX(-50%) rotate(-45deg);
    }

    .mb-dim {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 10000;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    body.mb-nav-open .mb-dim {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .mb-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 400px;
        max-width: 100vw;
        height: 100vh;
        height: 100dvh;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        z-index: 10001;
        background: #f4f6f9;
        box-shadow: -8px 0 32px rgba(15, 23, 42, 0.12);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        overscroll-behavior: contain;
        display: flex;
        flex-direction: column;
    }

    body.mb-nav-open .mb-nav {
        transform: translateX(0);
    }

    .mb-nav-inner {
        display: flex;
        flex-direction: column;
        min-height: 100%;
        padding: 20px 20px 28px;
    }

    .mb-nav-top {
        display: flex;
        justify-content: flex-end;
        margin-bottom: 16px;
    }

    .mb-nav-close {
        display: flex;
        align-items: center;
        justify-content: center;
 
        padding: 0;
        border: none;
        background: transparent;
        color: #1f2937;
        font-size: 28px;
        line-height: 1;
        cursor: pointer;
    }

    .mb-nav-close:hover,
    .mb-nav-close:focus-visible {
        color: #111827;
    }

    .mb-nav-close::before {
        content: "\00d7";
    }

    .mb-menu {
        flex: 1;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .mb-item {
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    }

    .mb-item.has-sub>.mb-link {
        width: 100%;
        text-align: left;
        border: none;
        background: transparent;
        cursor: pointer;
    }

    .mb-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 16px 4px;
        font-size: 1rem;
        font-weight: 500;
        color: #1f2937;
        text-decoration: none;
    }

    .mb-link:hover,
    .mb-link:focus-visible {
        color: #111827;
    }

    .mb-item.has-sub>.mb-link::after {
        content: "";
        width: 8px;
        height: 8px;
        border-right: 2px solid rgba(55, 65, 81, 0.55);
        border-bottom: 2px solid rgba(55, 65, 81, 0.55);
        transform: rotate(45deg);
        flex-shrink: 0;
        transition: transform 0.3s ease;
    }

    .mb-item.has-sub>.mb-link:hover::after,
    .mb-item.has-sub>.mb-link:focus-visible::after {
        border-right-color: rgba(17, 24, 39, 0.75);
        border-bottom-color: rgba(17, 24, 39, 0.75);
    }

    .mb-item.has-sub.active>.mb-link {
        color: #111827;
        font-weight: 600;
    }

    .mb-item.has-sub.active>.mb-link::after {
        transform: rotate(225deg);
        margin-top: 4px;
        border-right-color: rgba(17, 24, 39, 0.8);
        border-bottom-color: rgba(17, 24, 39, 0.8);
    }

    .mb-sub {
        list-style: none;
        margin: 0;
        padding: 0 0 8px 12px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .mb-item.has-sub.active>.mb-sub {
        max-height: 480px;
    }

    .mb-sub li a {
        display: block;
        padding: 10px 8px;
        font-size: 0.95rem;
        color: #4b5563;
        text-decoration: none;
    }

    .mb-sub li a:hover,
    .mb-sub li a:focus-visible {
        color: #111827;
    }

    .mb-nav-actions {
        margin-top: auto;
        padding-top: 24px;
        border-top: 1px solid rgba(15, 23, 42, 0.1);
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .mb-nav-actions a {
        display: block;
        text-align: center;
        padding: 12px 16px;
        border-radius: 8px;
        font-size: 0.95rem;
        text-decoration: none;
    }

    .mb-nav-actions .mb-cta {
        background: var(--primary, #2563eb);
        color: #fff;
        font-weight: 700;
    }

    .mb-nav-actions .mb-login {
        border: 1px solid rgba(55, 65, 81, 0.25);
        color: #374151;
        background: #fff;
    }

    .mb-nav-actions .mb-login:hover,
    .mb-nav-actions .mb-login:focus-visible {
        border-color: rgba(55, 65, 81, 0.45);
        color: #111827;
        background: #fafbfc;
    }
}