/* --- 基本設定・共通変数 --- */
:root {
    --bg-color: #0b0b14;
    --bg-card: #121222;
    --text-main: #ffffff;
    --text-sub: #8a8a9e;
    --accent-red: #e61f35;
    --accent-yellow: #ffc824;
    --font-english: 'Oswald', sans-serif;
    --font-japanese: 'Noto Sans JP', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-japanese);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* --- ヘッダー --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
}

.logo {
    font-family: var(--font-english);
    font-size: 1.1rem;
    color: var(--accent-red);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
    font-size: 0.8rem;
    color: var(--text-sub);
}

.nav-links a:hover {
    color: var(--text-main);
}

/* --- ボタン共通 --- */
.btn {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-main);
    padding: 12px 24px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--text-main);
    color: var(--bg-color);
}

/* --- セクション共通見出し --- */
.section-tag {
    font-family: var(--font-english);
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: var(--text-sub);
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.section-title-eng {
    font-family: var(--font-english);
    font-size: 0.85rem;
    color: var(--accent-red);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 40px;
}

/* --- 動画コンポーネント (YouTubeモック) --- */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #000000;
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    background-color: var(--accent-red);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.video-wrapper:hover .play-button {
    background-color: #ff0000;
}

.play-button::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent #ffffff;
    margin-left: 4px;
}


/* ==========================================
   1. メインビジュアル (ヒーローセクション)
========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 60px;
}

.hero-content {
    max-width: 600px;
}

.hero-tag {
    font-family: var(--font-english);
    color: var(--accent-yellow);
    letter-spacing: 4px;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.hero-title {
    font-family: var(--font-english);
    font-size: 5.5rem;
    line-height: 0.95;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-title span {
    display: block;
}

.hero-title .white-text {
    color: var(--text-main);
}

.hero-title .red-text {
    color: var(--accent-red);
}

.hero-title .yellow-text {
    color: var(--accent-yellow);
    font-family: var(--font-japanese);
    font-size: 3.5rem;
    margin-top: 10px;
    letter-spacing: 2px;
}

.hero-desc {
    color: var(--text-sub);
    font-size: 0.95rem;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}


/* ==========================================
   2. W杯の歴史 セクション
========================================== */
.history-section {
    padding: 100px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tabs {
    display: flex;
    gap: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 48px;
}

.tab {
    padding-bottom: 12px;
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--text-sub);
    cursor: pointer;
    position: relative;
}

.tab.active {
    color: var(--text-main);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-red);
}

.history-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
}

.history-left h3 {
    color: var(--accent-yellow);
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.history-left p {
    color: var(--text-sub);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
}

.history-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.history-table td {
    padding: 16px 0;
    font-size: 0.9rem;
}

.history-table td:first-child {
    color: var(--text-sub);
}

.history-table td:last-child {
    text-align: right;
    font-weight: bold;
}


/* ==========================================
   3. 日本の成績・名場面 セクション
========================================== */
.japan-section {
    padding: 100px 0;
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.stat-card {
    background-color: var(--bg-card);
    padding: 24px;
    border-radius: 4px;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-sub);
    margin-bottom: 8px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-yellow);
    line-height: 1.2;
}

.stat-subvalue {
    font-size: 0.8rem;
    color: var(--text-sub);
    margin-top: 4px;
}

/* マッチごとのレイアウト */
.match-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.match-row.reverse {
    grid-template-columns: 1fr 1.2fr;
}

.match-meta {
    font-family: var(--font-english);
    font-size: 0.8rem;
    color: var(--accent-red);
    letter-spacing: 2px;
    margin-bottom: 8px;
    display: block;
}

.match-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.match-result {
    color: var(--accent-yellow);
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.match-desc {
    color: var(--text-sub);
    font-size: 0.9rem;
}


/* ==========================================
   4. 大会の名場面 セクション
========================================== */
.highlights-section {
    padding: 100px 0;
}

.highlights-desc {
    color: var(--text-sub);
    font-size: 0.9rem;
    margin-top: -24px;
    margin-bottom: 40px;
    max-width: 600px;
}

.scenes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.scene-card {
    background-color: var(--bg-card);
    padding: 32px;
    border-radius: 4px;
}

.scene-meta {
    font-family: var(--font-english);
    font-size: 0.75rem;
    color: var(--text-sub);
    letter-spacing: 2px;
    margin-bottom: 8px;
    display: block;
}

.scene-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.scene-card .video-wrapper {
    margin-bottom: 20px;
}

.scene-desc {
    color: var(--text-sub);
    font-size: 0.85rem;
}


/* --- フッター --- */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    font-size: 0.75rem;
    color: var(--text-sub);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-family: var(--font-english);
    color: var(--accent-red);
    font-weight: bold;
    letter-spacing: 1px;
}


/* ==========================================
   レスポンシブ対応 (スマホ・タブレット用)
========================================= */
@media (max-width: 992px) {
    .history-grid, .match-row, .match-row.reverse {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .stats-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    .scenes-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 4rem;
    }
    .hero-title .yellow-text {
        font-size: 2.8rem;
    }
}

@media (max-width: 600px) {
    header {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
    .nav-links {
        display: none;
    }
    .container {
        padding: 0 20px;
    }
    .hero-title {
        font-size: 3rem;
    }
    .hero-title .yellow-text {
        font-size: 2.2rem;
    }
    .stats-summary {
        grid-template-columns: 1fr;
    }
    .footer-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* --- 大会の名場面カード内の動画サイズを正しい比率に修正 --- */
.scenes-grid .video-wrapper {
    padding-top: 0;      /* 縦に伸びる原因になっていたパーセント指定をリセット */
    aspect-ratio: 16 / 9; /* 縦横の比率を 16:9 に強制固定 */
    width: 100%;
}