:root {
    --primary-color: #0057b8; /* サッカー日本代表カラー */
    --primary-light: #3b7bc7;
    --primary-dark: #003f82;
    --secondary-color: #777;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f5f5f5;
    --button-color: #0057b8;
    --button-hover-color: #003d82;
    --card-bg: #fff;
    --border-color: #ddd;
    --accent-color: #ff9800;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 5px 15px rgba(0, 0, 0, 0.15);
    --card-radius: 12px;
    --header-bg: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    --gradient-bg: linear-gradient(to right, #f5f7fa, #eef2f7);
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
    --font-main: 'Helvetica Neue', Arial, sans-serif;
    --animation-speed: 0.3s;
    
    /* 代表カテゴリーの色 */
    --category-a-color: #0057b8; /* A代表 */
    --category-u23-color: #ff6600; /* U-23 */
    --category-u20-color: #009933; /* U-20 */
    --category-u17-color: #9900cc; /* U-17 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background: var(--gradient-bg);
    padding: 0;
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

header {
    background: var(--header-bg);
    color: white;
    padding: 30px 20px;
    text-align: center;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,20 C60,40 40,10 0,30 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 100% 100%;
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
}

header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    position: relative;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 15px;
    font-weight: 300;
    position: relative;
}

.filters {
    background: white;
    border-radius: var(--card-radius);
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: none;
}

.filters::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    border-radius: var(--card-radius) 0 0 var(--card-radius);
}

.filter-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--border-color);
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-section h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.filter-section h3::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    margin-right: 8px;
    border-radius: 50%;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    margin-right: 10px;
    margin-bottom: 8px;
    font-size: 14px;
    background: #f5f5f5;
    padding: 6px 12px;
    border-radius: 20px;
    transition: all var(--animation-speed);
}

.filter-checkbox:hover {
    background: #e9e9e9;
}

.filter-checkbox input {
    margin-right: 6px;
    accent-color: var(--primary-color);
}

.schedule-container {
    position: relative;
    margin-top: 20px;
    min-height: 300px;
}

.schedule-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.match-card {
    position: relative;
    background-color: var(--card-bg);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: all var(--animation-speed);
    overflow: hidden;
}

.match-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.match-date {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1rem;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--border-color);
    display: flex;
    align-items: center;
}

.match-date::before {
    content: '';
    margin-right: 0;
    font-size: 1.1rem;
}

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-weight: bold;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 12px;
}

.team-name {
    flex: 1;
    text-align: center;
    padding: 5px;
    font-size: 0.95rem;
    color: var(--text-color);
    transition: all var(--animation-speed);
}

.team-name.highlight {
    color: var(--primary-color);
    font-weight: 900;
    transform: scale(1.05);
    text-shadow: 0 0 1px rgba(0, 87, 184, 0.3);
}

.vs {
    font-size: 0.8rem;
    color: var(--secondary-color);
    margin: 0 10px;
    background: #ececec;
    padding: 5px 10px;
    border-radius: 50px;
}

.match-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-light);
}

.match-tournament {
    display: inline-block;
    padding: 3px 10px;
    background-color: rgba(0, 87, 184, 0.1);
    border-radius: 20px;
    font-size: 0.8rem;
    margin-left: 5px;
    border: 1px solid rgba(0, 87, 184, 0.2);
}

.player-tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px dashed #eee;
}

.player-item {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    background: #f5f5f5;
    padding: 5px 10px;
    border-radius: 50px;
    color: var(--text-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all var(--animation-speed);
}

.player-item:hover {
    background: #efefef;
    transform: translateY(-2px);
}

/* クリック可能な選手タグのスタイル */
.player-item.clickable {
    cursor: pointer;
    border: 1px solid rgba(0, 87, 184, 0.2);
}

.player-item.clickable:hover {
    background: rgba(0, 87, 184, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.player-item.clickable:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* フィルターメッセージのスタイル */
.filter-message {
    background-color: rgba(0, 87, 184, 0.1);
    padding: 10px 15px;
    border-radius: var(--card-radius);
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(0, 87, 184, 0.2);
}

.filter-message p {
    font-weight: bold;
    color: var(--primary-dark);
    margin: 0;
}

#reset-filter-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

#reset-filter-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.player-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    background: #e9e9e9;
    color: var(--text-light);
    padding: 5px 10px;
    border-radius: 50px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.country-tag {
    display: inline-block;
    padding: 2px 6px;
    background-color: #f0f0f0;
    border-radius: 3px;
    font-size: 0.75rem;
    margin-right: 5px;
    color: var(--text-light);
}

.category-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    background-color: #ccc;
}

.category-indicator.category-a {
    background-color: var(--primary-color);
}

.category-indicator.category-u23 {
    background-color: var(--accent-color);
}

.category-indicator.category-u20 {
    background-color: var(--success-color);
}

.category-indicator.category-u17 {
    background-color: var(--danger-color);
}

.loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 87, 184, 0.2);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.data-note {
    text-align: center;
    margin-top: 30px;
    padding: 15px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.data-note a {
    color: var(--primary-color);
    text-decoration: none;
}

.data-note a:hover {
    text-decoration: underline;
}

.update-time {
    font-style: italic;
    color: var(--text-light);
    font-size: 0.8rem;
    margin-top: 10px;
}

.filter-toggle {
    text-align: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 10;
}

#filter-toggle-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

#filter-toggle-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.filters.hidden {
    display: none;
    max-height: unset;
    padding: 20px;
    margin-bottom: 30px;
    border-color: var(--border-color);
    opacity: 1;
}

/* 過去と未来の試合スタイル */
.match-card.past-match {
    border-left: 1px solid var(--border-color);
    opacity: 0.7;
    box-shadow: var(--card-shadow);
}

/* 過去の試合ページでは過去の試合を通常の透明度で表示 */
.past-matches-page .match-card.past-match,
.past-matches-page .match-card.today-match.finished-match {
    opacity: 1;
    border-left: none;
}

.match-card.future-match {
    border-left: none;
}

/* 本日の試合の特別強調 */
.match-card.today-match {
    /* 特別なスタイルを削除し、通常の試合と同じにする */
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    background: var(--card-bg);
}

.match-card.today-match::before {
    /* グラデーションを通常の試合と同じに戻す */
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    height: 4px;
}

.match-card.today-match .match-date {
    /* オレンジ色を通常の青色に戻す */
    color: var(--primary-color);
    font-weight: bold;
}

/* 終了した今日の試合 - 過去の試合のように表示（これは維持） */
.match-card.today-match.finished-match {
    opacity: 0.7;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    background: var(--card-bg);
}

.match-card.today-match.finished-match::before {
    background: linear-gradient(to right, var(--secondary-color), var(--border-color));
    height: 4px;
}

.match-card.today-match.finished-match .match-date {
    color: var(--text-light);
}

.match-card.today-match .match-date::before {
    content: '';
}

.no-matches {
    grid-column: 1 / -1;
    text-align: center;
    background: white;
    padding: 30px;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    color: var(--text-light);
    font-size: 1.1rem;
}

/* 新しいUI要素 */
.section-heading {
    font-size: 1.5rem;
    margin: 25px 0 15px;
    color: var(--primary-dark);
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 8px;
    position: relative;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background-color: var(--primary-color);
}

/* レスポンシブデザインの改善 */
@media (max-width: 768px) {
    .filters {
        padding: 15px;
        margin-bottom: 20px;
    }
    .filter-section {
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
    .filter-toggle {
        margin-bottom: 12px;
        display: block; /* モバイルでは常に表示 */
    }
    #filter-toggle-button {
        width: 100%;
        max-width: 300px;
    }
    .match-teams {
        flex-direction: row; /* 横並びに変更 */
        gap: 5px;
        padding: 6px;
        margin-bottom: 8px;
        font-size: 0.85rem;
        min-height: 0;
    }
    .team-name {
        font-size: 0.8rem;
        padding: 2px;
    }
    .vs {
        margin: 0 3px;
        padding: 2px 6px;
        font-size: 0.7rem;
    }
    .match-info {
        flex-direction: row;
        gap: 5px;
        margin-bottom: 8px;
        font-size: 0.75rem;
    }
    .match-tournament {
        padding: 2px 6px;
        font-size: 0.7rem;
    }
    .country-tag {
        font-size: 0.7rem;
        padding: 2px 5px;
    }
    .player-tag-container {
        justify-content: flex-start;
        flex-wrap: wrap;
        margin-top: 0;
    }
    .player-item {
        font-size: 0.7rem;
        padding: 1px 4px;
        margin: 1px;
    }
    .player-more {
        font-size: 0.7rem;
    }
    .match-card {
        padding: 8px;
    }
    .match-card::before {
        height: 3px;
    }
    .match-date {
        font-size: 0.75rem;
        margin-bottom: 6px;
        padding-bottom: 4px;
    }
    header {
        padding: 20px 15px;
        border-radius: 0 0 15px 15px;
    }
    header h1 {
        font-size: 1.8rem;
    }
    .subtitle {
        font-size: 1rem;
    }
    .schedule-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    /* カテゴリー表示の調整 */
    .category-indicator {
        width: 5px;
        height: 5px;
        margin-right: 3px;
    }
    /* 進行中の試合表示の調整 */
    .match-card.ongoing-match .match-date::before {
        font-size: 0.7rem;
        padding: 1px 5px;
    }
    .filter-message {
        flex-direction: column;
        gap: 8px;
        padding: 8px;
        text-align: center;
    }
    .filter-message p {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    #reset-filter-btn {
        padding: 4px 10px;
        font-size: 0.8rem;
        width: 100%;
    }
}

/* ダークモードサポート */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #e0e0e0;
        --text-light: #aaa;
        --border-color: #444;
        --card-bg: #222;
        --header-bg: linear-gradient(135deg, #00468c, #002c57);
        --gradient-bg: linear-gradient(to right, #1a1a1a, #2a2a2a);
    }
    
    .filter-checkbox {
        background: #333;
    }
    
    .filter-checkbox:hover {
        background: #444;
    }
    
    .match-teams {
        background: #2a2a2a;
    }
    
    .vs {
        background: #3a3a3a;
    }
    
    .player-item {
        background: #333;
        color: #ddd;
    }
    
    .player-item:hover {
        background: #444;
    }
    
    .player-more {
        background: #3a3a3a;
        color: #bbb;
    }
    
    .match-tournament {
        background-color: rgba(0, 87, 184, 0.2);
        border: 1px solid rgba(0, 87, 184, 0.3);
    }
    
    .loading {
        background-color: rgba(30, 30, 30, 0.8);
    }
    
    /* ダークモードでの過去の試合スタイル */
    .match-card.past-match {
        opacity: 0.55;
        border-left-color: var(--border-color);
    }
    
    /* ダークモードでも過去の試合ページでは通常の透明度で表示 */
    .past-matches-page .match-card.past-match,
    .past-matches-page .match-card.today-match.finished-match {
        opacity: 1;
        border-left: none;
    }
    
    /* ダークモードでの進行中の試合スタイル */
    .match-card.ongoing-match .match-date {
        color: var(--primary-light);
    }
    
    .match-card.ongoing-match .match-date::before {
        background-color: var(--primary-dark);
        color: white;
    }
}

.page-navigation {
    margin: 15px 0 5px;
    text-align: center;
    position: relative;
}

.nav-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all var(--animation-speed);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 進行中の試合のスタイル */
.match-card.ongoing-match .match-date::before {
    content: '試合中';
    margin-right: 8px;
    font-size: 0.9rem;
    background-color: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
}

.match-card.ongoing-match .match-date {
    color: var(--primary-dark);
    font-weight: bold;
}

/* 広告関連のスタイル */
.ad-container {
    text-align: center;
    margin: 20px auto;
    max-width: 100%;
    overflow: hidden;
    clear: both;
    min-height: 100px;
    position: relative;
    z-index: 1;
}

.ad-infeed {
    margin: 15px 0;
    padding: 12px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    display: flex;
    justify-content: center;
    align-items: center;
}

.adsbygoogle {
    display: block;
    width: 100%;
    overflow: hidden;
}

.ad-infeed::before {
    content: "広告";
    font-size: 10px;
    color: #999;
    display: block;
    text-align: center;
    margin-bottom: 5px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #f9f9f9;
    padding: 0 5px;
}

@media (max-width: 768px) {
    .ad-container {
        margin: 12px auto;
    }
    
    .ad-infeed {
        padding: 10px;
    }
}

/* 過去の試合ページ専用スタイル */
.past-match {
    position: relative;
    border-left: 4px solid #d9534f; /* 過去の試合は赤系の色で区別 */
}

.past-match .match-result {
    font-weight: bold;
    font-size: 1.2em;
    color: #d9534f;
    text-align: center;
    margin: 5px 0;
}

/* 日付表示のスタイル統一 */
.match-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

/* 順位表用スタイル */
.standings-container {
    margin: 20px 0;
    padding: 15px;
    background-color: var(--card-bg);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
}

.league-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 15px;
}

.league-tab {
    padding: 8px 15px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all var(--animation-speed);
    display: flex;
    align-items: center;
    gap: 6px;
}

.league-tab.active {
    background-color: var(--primary-color);
    color: white;
}

/* 国旗絵文字のスタイル */
.flag-emoji {
    font-size: 1.2em;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
}

/* 国旗が絵文字で表示されない環境用のフォールバック */
.no-emoji .flag-emoji {
    width: 1.2em;
    height: 1em;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.no-emoji .flag-emoji:empty::before {
    content: "🌍";
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.standings-table th,
.standings-table td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.standings-table th {
    background-color: rgba(0, 0, 0, 0.05);
    font-weight: bold;
}

.standings-table td:nth-child(2) {
    text-align: left;
    font-weight: bold;
}

.standings-table tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.highlight-team {
    background-color: rgba(0, 87, 184, 0.1) !important;
}

/* 日本国旗のスタイル */
.japan-flag {
    display: inline-block;
    margin-right: 5px;
    font-size: 0.9em;
    vertical-align: middle;
}

/* 国旗が絵文字で表示されない環境用のフォールバック */
.no-emoji .japan-flag::before {
    content: "🇯🇵";
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 900 600"><rect fill="%23fff" width="900" height="600"/><circle fill="%23bc002d" cx="450" cy="300" r="180"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    width: 1.2em;
    height: 1em;
    display: inline-block;
}

.note {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-light);
    text-align: right;
}

.loading-standings {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: var(--text-light);
}

.error-message {
    padding: 15px;
    background-color: #ffebee;
    color: #c62828;
    border-radius: 5px;
    margin: 10px 0;
}

/* レスポンシブ対応 - 順位表 */
@media (max-width: 768px) {
    .standings-table {
        font-size: 14px;
    }
    
    .standings-table th,
    .standings-table td {
        padding: 8px 5px;
    }
    
    .mobile-hide {
        display: none;
    }
    
    .league-tab {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
}

/* ダークモード対応 - 順位表 */
@media (prefers-color-scheme: dark) {
    .league-tab {
        background-color: #333;
        color: #ddd;
    }
    
    .league-tab.active {
        background-color: var(--primary-color);
    }
    
    .highlight-team {
        background-color: rgba(0, 87, 184, 0.2) !important;
    }
    
    .standings-table th {
        background-color: rgba(255, 255, 255, 0.05);
    }
    
    .standings-table tr:hover {
        background-color: rgba(255, 255, 255, 0.03);
    }
}

/* ナビゲーションメニューのスタイル */
nav {
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
    font-weight: bold;
    display: inline-block;
    position: relative;
    z-index: 2;
    cursor: pointer;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

nav ul li a.active {
    background-color: white;
    color: var(--primary-color);
}

/* モバイル対応 */
@media (max-width: 768px) {
    nav ul {
        gap: 10px;
        flex-wrap: wrap;
    }

    nav ul li a {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}