/* ==========================================================================
   モバイルハンバーガーメニュー専用CSS
   ========================================================================== */

/* ハンバーガーボタン */
.mobile-menu-button {
    display: none;
    width: 40px;
    height: 40px;
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 9999;
    background: #1a1a2e;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-button span {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    margin: 5px auto;
    transition: all 0.3s;
}

/* ×印に変形 */
.mobile-menu-button.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-button.is-active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* モバイルメニュー本体 */
.mobile-nav-wrapper {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9998;
}

/* 背景オーバーレイ */
.mobile-nav-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

/* メニューパネル */
.mobile-nav-panel {
    position: absolute;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease;
    overflow-y: auto;
}

/* メニューがアクティブの時 */
.mobile-nav-wrapper.is-active {
    display: block;
}

.mobile-nav-wrapper.is-active .mobile-nav-panel {
    right: 0;
}

/* メニューコンテンツ */
.mobile-nav-header {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 18px;
    font-weight: bold;
}

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-menu li {
    border-bottom: 1px solid #eee;
}

.mobile-nav-menu a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.2s;
}

.mobile-nav-menu a:hover {
    background: #f5f5f5;
}

/* タブレット以下で表示 */
@media (max-width: 768px) {
    .mobile-menu-button {
        display: block;
    }

    /* 既存のナビを非表示 */
    .forth-nav {
        display: none !important;
    }

    /* ヘッダーの調整 */
    .forth-header {
        padding-right: 60px;
    }
}