/* ======== スケジュールページ専用スタイル ======== */

/* ヒーローイメージ */
.schedule-hero {
    background-color: var(--main-color);
    color: var(--white);
    text-align: center;
    padding: 40px 20px;
    background-image: url('../../images/header/schedule-hero.jpg'); /* スケジュールページ用の背景画像 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.schedule-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* 背景画像の上に半透明の黒いオーバーレイ */
    z-index: 1;
}

.schedule-hero-title,
.schedule-hero-subtitle {
    position: relative;
    z-index: 2;
}

.schedule-hero-title {
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.schedule-hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 年月フィルター */
.schedule-filter {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background-color: var(--white);
    border-radius: 8px;
    margin-bottom: 30px;
    border-bottom: 3px solid var(--accent-color);
}

.schedule-filter .year {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--main-color);
}

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

.schedule-filter .months a {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--light-text);
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.schedule-filter .months a:hover {
    background-color: var(--light-bg);
}

.schedule-filter .months a.active {
    background-color: var(--accent-color);
    color: var(--white);
}

/* 試合リスト */
.schedule-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.schedule-item {
    display: grid;
    grid-template-columns: 1fr 3fr 1.5fr;
    align-items: center;
    gap: 15px;
    background-color: var(--white);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    transition: box-shadow 0.3s;
}

.schedule-item-empty {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 20px;
}

.schedule-item-empty p {
    color: var(--light-text);
    font-size: 1.1rem;
}

.schedule-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* 日付 */
.schedule-date {
    text-align: center;
    border-right: 1px solid var(--border-color);
    padding-right: 15px;
}

.schedule-date .day {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--main-color);
    display: block;
}

.schedule-date .weekday {
    font-size: 1rem;
    font-weight: 600;
    color: var(--light-text);
}

/* 試合情報 */
.schedule-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.schedule-tournament {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 3px;
}

.schedule-tournament .tournament-link {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s, text-decoration 0.3s;
}

.schedule-tournament .tournament-link:hover {
    color: #c00;
    text-decoration: underline;
}


.schedule-tag {
    display: inline-block;
    width: 60px;
    text-align: center;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--white);
}

.schedule-tag.home {
    background-color: var(--accent-color); /* HOME (赤) */
}

.schedule-tag.away {
    background-color: #337ab7; /* AWAY (青系) */
}

.schedule-opponent {
    font-size: 1.2rem;
    font-weight: 700;
}

.schedule-venue {
    font-size: 0.9rem;
    color: var(--light-text);
}

/* 結果 */
.schedule-result {
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.schedule-result .youtube-link {
    color: #FF0000;
    text-decoration: none;
    transition: opacity 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.schedule-result .youtube-link:hover {
    opacity: 0.8;
}

.schedule-result .youtube-icon {
    font-size: 1.8rem;
    vertical-align: middle;
}

.schedule-result .schedule-score {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.schedule-result .result-tag {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.schedule-score {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--main-color);
    display: block;
}

.result-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--white);
}

.result-tag.win {
    background-color: var(--accent-color);
}
.result-tag.loss {
    background-color: #777;
}
.result-tag.draw {
    background-color: #aaa;
}

.result-tag.upcoming {
    background-color: #666;
}

/* ======== スケジュール (レスポンシブ) ======== */
@media (max-width: 768px) {
    .schedule-hero-title {
        font-size: 2rem;
    }
    .schedule-hero-subtitle {
        font-size: 1rem;
    }

    .schedule-filter {
        flex-direction: column;
        align-items: flex-start;
    }

    .schedule-item {
        grid-template-columns: 1fr; /* 1カラムに */
        gap: 10px;
        text-align: center; /* モバイルでは中央寄せ */
    }

    .schedule-date {
        border-right: none;
        border-bottom: 1px dashed var(--border-color);
        padding-right: 0;
        padding-bottom: 10px;
        margin-bottom: 10px;
    }

    .schedule-info {
        align-items: center; /* 中央寄せ */
    }

    .schedule-result {
        text-align: center; /* 中央寄せ */
    }
}