﻿/* スケジュールセクション基本設定 */
.schedule-section {
    padding: 100px 0;
    position: relative;
    background-color: var(--dark-color);
    color: var(--light-color);
    overflow: hidden;
}

    .schedule-section .section-header {
        margin-bottom: 60px;
        text-align: center;
    }

.schedule-flow-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* リーグ・部門セクション */
.league-block {
    width: 100%;
    margin-bottom: 20px;
}

/* 部門表示ブロック */
.divisions-block {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.division-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* リーグヘッダーリンク */
.division-header-link {
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    transition: transform 0.3s ease;
}

    .division-header-link:hover {
        transform: translateY(-3px);
    }

.view-details {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    opacity: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 6px;
    border-radius: 4px;
}

.division-header-link:hover .view-details {
    opacity: 1;
}

.division-header {
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    margin: 0;
    transition: all 0.3s ease;
}

.division-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.division-item {
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

    .division-item:hover {
        transform: translateY(-3px);
        background: rgba(255, 255, 255, 0.15);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }

/* リーグ別のカラー定義 */
.division-column.japan .division-header,
.finalist-item.japan .finalist-league,
.schedule-league-link.japan {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.7), rgba(180, 0, 0, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.division-column.colosseum .division-header,
.finalist-item.colosseum .finalist-league,
.schedule-league-link.colosseum {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.7), rgba(218, 165, 32, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.schedule-league-link.colosseum,
.finalist-item.colosseum .finalist-league {
    color: #000;
}

.division-column.fresh .division-header,
.special-item.fresh .special-league,
.schedule-league-link.fresh {
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.7), rgba(180, 0, 180, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.division-column.bigbang .division-header,
.special-item.bigbang .special-league,
.schedule-league-link.bigbang {
    background: linear-gradient(135deg, rgba(16, 35, 255, 0.7), rgba(0, 20, 200, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.finalist-item.revival .finalist-league {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.7), rgba(192, 57, 43, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* リーグ別の部門アイテムのスタイル */
.division-column.japan .division-item {
    border-bottom: 2px solid rgba(255, 0, 0, 0.5);
}

.division-column.colosseum .division-item {
    border-bottom: 2px solid rgba(255, 215, 0, 0.5);
}

.division-column.fresh .division-item {
    border-bottom: 2px solid rgba(255, 0, 255, 0.5);
}

.division-column.bigbang .division-item {
    border-bottom: 2px solid rgba(16, 35, 255, 0.5);
}

/* 流れの接続線 */
.flow-connector-vertical {
    height: 50px;
    width: 2px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 20px 0;
}

.connector-line {
    height: 100%;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.2);
}

.final-connector {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(255, 215, 0, 0.4));
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

/* フェーズブロック - 審査ステップ */
.phase-block {
    width: 80%;
    max-width: 700px;
    margin: 0 auto;
}

.phase-content {
    padding: 25px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

    .phase-content:hover {
        transform: translateY(-5px);
        background: rgba(255, 255, 255, 0.05);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    }

/* フェーズアイコン */
.phase-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .phase-icon i {
        font-size: 24px;
        color: var(--dark-color);
    }

.phase-block.primary .phase-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}

.phase-block.secondary .phase-icon {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    box-shadow: 0 10px 20px rgba(155, 89, 182, 0.3);
}

.phase-block.revival .phase-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 10px 20px rgba(231, 76, 60, 0.3);
}

.phase-text {
    flex: 1;
}

    .phase-text h4 {
        margin: 0 0 10px;
        font-size: 1.3rem;
        font-weight: 700;
        color: var(--light-color);
    }

    .phase-text p {
        margin: 0;
        font-size: 1rem;
        opacity: 0.9;
    }

.phase-note {
    display: block;
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 8px;
    font-style: italic;
}

/* 決勝大会ブロック */
.finals-block {
    width: 100%;
    padding: 40px 30px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .finals-block::before {
        content: '';
        position: absolute;
        top: -3px;
        left: -3px;
        right: -3px;
        bottom: -3px;
        border-radius: 22px;
        background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0) 50%);
        z-index: -1;
    }

.finals-trophy {
    width: 90px;
    height: 90px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.3);
}

    .finals-trophy i {
        font-size: 40px;
        color: var(--dark-color);
    }

.finals-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--light-color);
    margin: 0 0 30px;
}

/* 決勝進出枠 */
.finalists-block {
    width: 100%;
    padding: 25px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    margin: 0 0 30px;
}

.finalists-title {
    margin: 0 0 20px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-gold);
}

.finalists-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.finalist-item {
    padding: 15px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

    .finalist-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    }

.finalist-league {
    padding: 8px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 0.95rem;
}

.finalist-count {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 特別枠 */
.special-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.special-item {
    padding: 20px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

    .special-item:hover {
        transform: translateY(-5px);
        background: rgba(255, 255, 255, 0.05);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    }

    .special-item .finalists-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

.special-role {
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    text-align: center;
}

.role-league {
    padding: 8px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 0.95rem;
}

    .role-league.bigbang {
        background: rgba(16, 35, 255, 0.5);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .role-league.fresh {
        background: rgba(255, 0, 255, 0.5);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .role-band {
        font-size: 0.9rem;
        opacity: 0.8;
    }

/* スケジュールナビゲーション */
.schedule-nav {
    width: 100%;
    max-width: 900px;
    margin: 60px auto 0;
    padding: 30px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.schedule-nav-title {
    margin: 0 0 25px;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--light-color);
}

.schedule-nav-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.schedule-league-link {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .schedule-league-link::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.1);
        transform: skewX(-15deg);
        transition: all 0.5s ease;
    }

    .schedule-league-link:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    }

        .schedule-league-link:hover::after {
            left: 100%;
        }

.league-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.league-action {
    font-size: 0.9rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.schedule-league-link:hover .league-action {
    opacity: 1;
}

/* レスポンシブ対応 */
@media (max-width: 992px) {
    .divisions-block {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .phase-block {
        width: 90%;
    }

    .special-slots {
        grid-template-columns: repeat(2, 1fr);
    }

    .schedule-nav {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .schedule-section {
        padding: 80px 0;
    }

    .divisions-block {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .phase-content {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }

    .phase-icon {
        margin-bottom: 15px;
    }

    .finalists-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
        margin: 0 auto;
    }

    .finals-block {
        width: 95%;
        padding: 30px 20px;
    }

    .special-slots {
        grid-template-columns: 1fr;
    }

    .schedule-nav-links {
        grid-template-columns: 1fr;
    }

    .view-details {
        opacity: 1;
        position: static;
        transform: none;
        margin-top: 5px;
        justify-content: center;
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .schedule-section {
        padding: 60px 0;
    }

    .division-item {
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    .phase-block {
        width: 95%;
    }

    .phase-text h4 {
        font-size: 1.2rem;
    }

    .phase-text p {
        font-size: 0.9rem;
    }

    .finals-block {
        padding: 25px 15px;
    }

    .finals-trophy {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }

        .finals-trophy i {
            font-size: 32px;
        }

    .finals-title {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    .finalists-title {
        font-size: 1.2rem;
    }

    .schedule-nav-title {
        font-size: 1.1rem;
    }

    .league-name {
        font-size: 1.1rem;
    }
}
