/* ============================================================
   優勝記録・歴史ページ専用スタイル
   ============================================================ */

/* ============================================================
   コンテナ
   ============================================================ */
.history-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ============================================================
   現在の大会セクション
   ============================================================ */
.current-tournament {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 15px;
    padding: 40px 30px;
    margin-bottom: 40px;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    text-align: center;
}

.current-year {
    font-size: 1.4em;
    color: #856404;
    font-weight: bold;
    margin-bottom: 20px;
}

.trophy-icon {
    font-size: 5em;
    margin-bottom: 20px;
}

.current-status {
    font-size: 1.5em;
    color: #856404;
    font-weight: 500;
}

/* ============================================================
   統計セクション
   ============================================================ */
.stats-section {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 3em;
    font-weight: bold;
    color: #003366;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1em;
    color: #666;
}

/* ============================================================
   歴代優勝記録テーブル
   ============================================================ */
.history-table-wrapper {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.history-table-wrapper .section-title {
    padding: 20px 20px 15px;
}

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

.history-table thead {
    background: #003366;
    color: white;
}

.history-table th {
    padding: 15px;
    text-align: left;
    font-weight: bold;
    font-size: 1em;
}

.history-table th:first-child {
    width: 100px;
}

.history-table th:nth-child(2) {
    width: 150px;
}

.history-table th:last-child {
    width: 150px;
}

.history-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.3s;
}

.history-table tbody tr:hover {
    background: #f8f9fa;
}

.history-table tbody tr:last-child {
    border-bottom: none;
}

.history-table td {
    padding: 15px;
    font-size: 1em;
}

.year-cell {
    font-weight: bold;
    color: #003366;
    font-size: 1.1em;
}

.region-cell {
    color: #666;
}

.winner-cell {
    font-weight: 500;
    color: #333;
}

/* ============================================================
   優勝バッジ
   ============================================================ */
.winner-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.9em;
    font-weight: bold;
}

.winner-badge.inba {
    background: #ffd700;
    color: #856404;
}

.winner-badge.tonan {
    background: #e3f2fd;
    color: #1565c0;
}

.winner-badge.chubu {
    background: #f3e5f5;
    color: #6a1b9a;
}

.winner-badge.nanbu {
    background: #e8f5e9;
    color: #2e7d32;
}

.winner-badge.tobu {
    background: #fff3e0;
    color: #e65100;
}

.cancelled {
    color: #999;
    font-style: italic;
}

/* ============================================================
   レスポンシブ対応
   ============================================================ */
@media (max-width: 768px) {
    .history-container {
        padding: 20px 15px;
    }
    
    .current-tournament {
        padding: 30px 20px;
    }
    
    .current-year {
        font-size: 1.2em;
    }
    
    .trophy-icon {
        font-size: 4em;
    }
    
    .current-status {
        font-size: 1.2em;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-value {
        font-size: 2.5em;
    }
    
    .history-table-wrapper {
        overflow-x: auto;
    }
    
    .history-table {
        min-width: 600px;
    }
}