/* === モバイルメニュー視認性向上 === */

@media (max-width: 768px) {
    /* メニューボタンの強化 */
    .menu-toggle {
        background: rgba(28, 46, 64, 0.8) !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
        border-radius: 8px !important;
        padding: 8px 10px !important;
        color: #ffffff !important;
        font-size: 1.6rem !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
        transition: all 0.3s ease !important;
    }
    
    .menu-toggle:hover,
    .menu-toggle:focus {
        background: rgba(28, 46, 64, 0.95) !important;
        border-color: rgba(255, 255, 255, 0.5) !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
    }
    
    /* アクティブ時のメニューボタン */
    .menu-toggle[aria-expanded="true"] {
        background: rgba(185, 156, 80, 0.9) !important;
        border-color: rgba(255, 255, 255, 0.7) !important;
        color: #ffffff !important;
    }
    
    /* ナビゲーションメニューの強化 */
    .main-nav {
        background: linear-gradient(135deg, rgba(28, 46, 64, 0.98) 0%, rgba(21, 35, 47, 0.98) 100%) !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 0 0 15px 15px !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
        margin-top: 5px !important;
    }
    
    .main-nav.active {
        animation: slideDownFade 0.3s ease-out forwards !important;
    }
    
    /* メニューリストの強化 */
    .main-nav ul {
        padding: 15px 0 !important;
        margin: 0 !important;
    }
    
    .main-nav li {
        margin: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    .main-nav li:last-child {
        border-bottom: none !important;
    }
    
    /* メニューリンクの強化 */
    .main-nav a {
        display: block !important;
        padding: 15px 25px !important;
        color: #ffffff !important;
        font-size: 1rem !important;
        font-weight: 500 !important;
        text-decoration: none !important;
        transition: all 0.3s ease !important;
        position: relative !important;
    }
    
    .main-nav a::before {
        content: "" !important;
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        height: 100% !important;
        width: 0 !important;
        background: linear-gradient(90deg, rgba(185, 156, 80, 0.2), rgba(185, 156, 80, 0.1)) !important;
        transition: width 0.3s ease !important;
    }
    
    .main-nav a:hover,
    .main-nav a:focus {
        background: rgba(185, 156, 80, 0.15) !important;
        color: #ffffff !important;
        transform: translateX(5px) !important;
        font-weight: 600 !important;
    }
    
    .main-nav a:hover::before,
    .main-nav a:focus::before {
        width: 4px !important;
    }
    
    /* 現在のページ表示 */
    .main-nav a[aria-current="page"] {
        background: rgba(185, 156, 80, 0.25) !important;
        color: #ffffff !important;
        font-weight: 700 !important;
        border-left: 4px solid #B99C50 !important;
        padding-left: 21px !important;
    }
    
    /* アニメーション */
    @keyframes slideDownFade {
        0% {
            opacity: 0;
            transform: translateY(-10px);
            max-height: 0;
        }
        100% {
            opacity: 1;
            transform: translateY(0);
            max-height: 400px;
        }
    }
    
    /* ヘッダー全体の調整 */
    header {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    /* ロゴの視認性向上 */
    .logo a {
        color: #ffffff !important;
        font-weight: 700 !important;
        font-size: 1.4rem !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
    }
}

/* ===============================================
   スマホメニューボタン視認性向上
   =============================================== */

@media (max-width: 768px) {
    .menu-toggle {
        display: block !important;
        background: rgba(0, 0, 0, 0.5) !important;
        border: 2px solid rgba(255, 255, 255, 0.8) !important;
        border-radius: 8px !important;
        padding: 8px 12px !important;
        color: #ffffff !important;
        font-size: 1.8rem !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.4) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
    }
    
    .menu-toggle:hover,
    .menu-toggle:focus {
        background: rgba(185, 156, 80, 0.8) !important;
        border-color: rgba(255, 255, 255, 1) !important;
        color: #ffffff !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6) !important;
    }
    
    .menu-toggle[aria-expanded="true"] {
        background: rgba(185, 156, 80, 0.9) !important;
        border-color: rgba(255, 255, 255, 1) !important;
        color: #ffffff !important;
    }
    
    /* アイコンも確実に白色に */
    .menu-toggle .material-symbols-outlined {
        color: #ffffff !important;
        font-weight: 500 !important;
    }
}
