/* ========================================
   ハンバーガーメニュー - スタイル
   ======================================== */

/* ハンバーガーボタン */
.hamburger-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 64px;
    height: 64px;
    background-color: #FFFFFF;
    color: #121212;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.5rem;
    border: 1px solid #121212;
    box-shadow: 6px 6px 0px #FF2E97;
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hamburger-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0px #FF2E97;
}

/* ボタンアクティブ時（メニュー開いている時） */
.hamburger-btn.active {
    background-color: #FF2E97;
    color: #FFFFFF;
    box-shadow: 6px 6px 0px #FFFFFF;
    transform: rotate(90deg);
}

.hamburger-btn.active:hover {
    box-shadow: 8px 8px 0px #FFFFFF;
    transform: rotate(90deg) translate(-2px, -2px);
}

/* オーバーレイ（背景暗くする） */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ナビゲーションパネル */
.nav-panel {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 320px;
    max-height: 70vh;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 12px 12px 0px #FF2E97;
    z-index: 950;
    overflow: hidden;
    transform: translateY(30px) scale(0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Shippori Mincho', serif;
}

.nav-panel.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

/* パネルヘッダー */
.nav-panel-header {
    padding: 24px 28px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-panel-header span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: #FF2E97;
    text-transform: uppercase;
}

/* メニューリスト */
.nav-menu-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.nav-menu-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-menu-list li:last-child {
    border-bottom: none;
}

.nav-menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 28px;
    color: #FFFFFF;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 46, 151, 0.15), transparent);
    transition: width 0.4s ease;
}

.nav-menu-item:hover::before {
    width: 100%;
}

.nav-menu-item:hover {
    padding-left: 36px;
}

.nav-menu-item .menu-number {
    font-size: 10px;
    font-weight: 700;
    color: #FF2E97;
    letter-spacing: 0.1em;
    min-width: 28px;
    font-family: 'Noto Serif JP', serif;
}

.nav-menu-item .menu-label {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-family: 'Noto Serif JP', serif;
}

.nav-menu-item .menu-label-jp {
    font-size: 11px;
    opacity: 0.5;
    margin-left: auto;
    font-family: 'Shippori Mincho', serif;
}

.nav-menu-item .menu-arrow {
    margin-left: auto;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.nav-menu-item:hover .menu-arrow {
    color: #FF2E97;
    transform: translateX(4px);
}

/* パネルフッター */
.nav-panel-footer {
    padding: 16px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-panel-footer .footer-text {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.3;
}

.nav-panel-footer .footer-socials {
    display: flex;
    gap: 12px;
}

.nav-panel-footer .footer-socials a {
    color: rgba(255, 255, 255, 0.4);
    font-size: 16px;
    transition: all 0.3s ease;
}

.nav-panel-footer .footer-socials a:hover {
    color: #FF2E97;
    transform: translateY(-2px);
}

/* メニューアイテムのアニメーション（順次表示） */
.nav-panel.active .nav-menu-item {
    animation: slideIn 0.3s ease forwards;
    opacity: 0;
    transform: translateX(20px);
}

.nav-menu-list li:nth-child(1) .nav-menu-item { animation-delay: 0.05s; }
.nav-menu-list li:nth-child(2) .nav-menu-item { animation-delay: 0.1s; }
.nav-menu-list li:nth-child(3) .nav-menu-item { animation-delay: 0.15s; }
.nav-menu-list li:nth-child(4) .nav-menu-item { animation-delay: 0.2s; }
.nav-menu-list li:nth-child(5) .nav-menu-item { animation-delay: 0.25s; }
.nav-menu-list li:nth-child(6) .nav-menu-item { animation-delay: 0.3s; }

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* レスポンシブ対応 */
@media (max-width: 480px) {
    .nav-panel {
        right: 12px;
        bottom: 96px;
        width: calc(100vw - 24px);
        max-height: 60vh;
    }

    .hamburger-btn {
        bottom: 16px;
        right: 12px;
        width: 56px;
        height: 56px;
    }
}
