
/* 햄버거 버튼 숨기기 (PC) */
.hamburger {
    position: relative;
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1101;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.hamburger span {
    display: block;
    height: 3.5px;
    width: 100%;
    background: #223366;
    border-radius: 2px;
    transition: 0.35s cubic-bezier(.68, -0.55, .27, 1.55);
    position: relative;
}

/* 햄버거가 열렸을 때 X자로 변신 */
.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background: #FF8800;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background: #FF8800;
}

/* 모바일 메뉴 기본 숨김 */
.gnb {
    display: flex;
    gap: 28px;
}



@media (max-width: 900px) {
    .hamburger {
        display: flex;
    }

    .gnb {
        position: fixed;
        top: 0;
        right: -100vw;
        /* 처음엔 화면 밖 */
        flex-direction: column;
        width: 70vw;
        max-width: 320px;
        height: 100vh;
        background: #fff;
        gap: 0;
        padding: 70px 0 0 0;
        box-shadow: -2px 0 12px rgba(20, 30, 60, 0.09);
        transition: right 0.27s;
        z-index: 1001;
    }

    .gnb.active {
        right: 0;
    }

    .header nav ul {
        gap: 0;
    }

    .header nav ul li {
        width: 100%;
    }

    .header nav ul li a,
    .header nav ul li .btn {
        display: block;
        width: 100%;
        padding: 20px 30px;
        border-radius: 0;
        text-align: left;
        font-size: 18px;
        color: #223366;
        font-weight: 600;
    }

    .header nav ul li .btn {
        margin-top: 40px;
        background: #FF8800;
        color: #fff !important;
        text-align: center;
    }

    body.menu-open {
        overflow: hidden;
    }
}