/* info css */

a:hover {
    transition: all 0.15s ease-in;
    opacity: 0.8;
}

/*  */

div.month_nav {
    border: none;
}

/*  */

#content_wrap {
    width: 1280px;
    margin-inline: auto;
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

@media (max-width: 1280px) {
    #content_wrap {
        padding-left: 20px;
    }
}

#content_main {
    max-width: 1008px;
    width: 78%;

    & .monthly_day_block {
        display: flex;

        & .monthly_day_header {
            width: 134px;
            flex-shrink: 0;

            & .monthly_day_date {
                margin: 0;

                & time {
                    display: inline-block;
                    font-family: var(--ffDIN_cond_med);
                    font-size: 2.2rem;
                    font-weight: 500;
                    color: var(--main_blue);
                    font-feature-settings: "palt" 1;
                    letter-spacing: 0.06em;
                    padding-left: 0.2em;
                    padding-top: 0.3em;
                    line-height: 1;
                }
            }
        }

        & .monthly_entry_list {
            margin: 0;
            padding: 0;
            list-style: none;

            & .monthly_entry_item {
                font-size: 1.8rem;
                line-height: 1.6;

                &+.monthly_entry_item {
                    margin-top: 1em;
                }

                & a {
                    text-decoration: none;
                    color: var(--main_bk);

                    &:hover {
                        color: var(--main_blue);
                    }
                }
            }
        }
    }

    & .monthly_day_block:not(:first-child) {
        margin-top: 2.6em;
        padding-top: 2.6em;
        border-top: 1px solid #ccc;
    }
}


/*  */

#content_side {
    width: 224px;

    /* 各セクションのタイトル */
    & .side_title {
        font-size: 1.8rem;
        font-weight: 500;
        position: relative;

        &::after {
            content: "";
            position: relative;
            top: -0.3em;
            display: inline-block;
            width: 1.4em;
            height: 1.8px;
            background-color: var(--main_blue);
            transform: translateY(-50%) rotate(-60deg);
            transform-origin: center;
        }
    }

    /* ====== 月グリッド共通（2026ブロック＆年リスト両方で使う） ====== */
    & .archive_month_grid {
        margin-top: 12px;

        & ul {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 6px;
            padding: 0;
            margin: 0;
            list-style: none;

            & li {
                & a {
                    display: block;
                    text-align: center;
                    padding: 6px;
                    border-radius: 4px;
                    background: #80D6FE;
                    color: rgba(255, 255, 255, 0.35);
                    text-decoration: none;
                    font-size: 1.6rem;
                }

                &.is_current a {
                    background: #fff;
                    color: #222;
                }

                & a:hover {
                    opacity: 1;
                }

                &.is_current a:hover {
                    pointer-events: none;
                }

                &:not(.is_current)>a:hover {
                    color: #fff;
                    background: #60cdff;
                }
            }
        }
    }

    /* ====== アーカイブ 年月 ====== */
    & #archive_yearmonth {

        /* 年（2026など） */
        & .archive_year_block {
            background: #25B9FE;
            border-radius: 4px;
            margin-top: 10px;
            padding: 14px;

            & .archive_year_heading {
                font-family: var(--ffDIN_cond_reg);
                font-size: 3.2rem;
                font-weight: 100;
                color: #fff;
                line-height: 1;
            }

            /* 中の .archive_month_grid は上の共通指定が効く */
        }

        /* ====== アーカイブ 年リスト（2025, 2024, ...） ====== */
        & .archive_year_list {
            & ul {
                list-style: none;
                padding: 0;
                margin: 0;

                & .archive_year_item {
                    margin-top: 8px;

                    /* 年のボタン */
                    & button {
                        width: 100%;
                        text-align: left;
                        padding: 10px 14px 6px 14px;
                        line-height: 1;
                        font-family: var(--ffDIN_cond_reg);
                        font-size: 2.4rem;
                        color: #444;
                        background: #EEE;
                        border-radius: 4px;
                        border: none;
                        cursor: pointer;
                        display: flex;
                        justify-content: space-between;
                        align-items: center;
                    }

                    /* ＋ アイコン（回転対象） */
                    & .archive_year_toggle {
                        font-weight: 400;
                        color: #23B7FE;
                        position: relative;
                        top: 2px;
                        display: inline-block;
                        transition: transform 0.25s ease;
                        font-size: 2.4rem;
                    }

                    /* ▼ 月リスト（閉じた状態） */
                    & .archive_month_grid {
                        /* 上の共通スタイルに加えて「開閉用」の指定 */
                        /* max-height: 0; */
                        height: 0;
                        margin-top: 0;
                        overflow: hidden;
                        opacity: 0;
                        transition:
                            max-height 0.25s ease,
                            opacity 0.25s ease,
                            padding-top 0.25s ease,
                            padding-bottom 0.25s ease;
                    }

                    & .archive_year_month_list li {
                        margin-top: 4px;
                    }

                    & .archive_year_month_list a {
                        display: block;
                        font-size: 1.4rem;
                        color: #555;
                        text-decoration: none;
                        padding: 4px 0;
                    }

                    & .archive_year_month_list a:hover {
                        /* text-decoration: underline; */
                        color: #fff;
                    }

                    /* ▼ 開いた状態（.is_active） */
                    &.is_active {

                        /* 開いているときのボタンの見た目 */
                        &>button {
                            background: #E8F7FF;
                            color: #00A5DF;
                            font-weight: 700;
                        }

                        /* ＋ を回転（45度） */
                        &>button .archive_year_toggle {
                            transform: rotate(45deg);
                            top: 0;
                        }

                        /* 月リスト表示 */
                        &>.archive_month_grid {
                            /* max-height: 320px; */
                            height: auto;
                            opacity: 1;
                            padding: 0 14px 14px 14px;
                            background: #E8F7FF;
                            margin-top: 0;
                        }
                    }

                }

                & .archive_year_item.is_grouped {
                    & button {
                        font-size: 1.8rem;
                        padding: 13px 14px 9px 14px;
                    }
                }

            }
        }
    }

    /* ====== カテゴリタグ ====== */
    & #archive_category {
        margin-top: 40px;

        & .category_tag_list {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            padding: 0;
            margin-top: 10px;
            list-style: none;

            & li {
                & a {
                    display: inline-block;
                    padding: 8px 12px 10px 12px;
                    border-radius: 14px;
                    background: #f2f2f2;
                    font-size: 1.4rem;
                    text-decoration: none;
                    color: #444444;
                    line-height: 1;
                    white-space: nowrap;
                }

                & a:hover {
                    background: #EEEEEE;
                }
            }
        }
    }

    /* ====== 試合一覧用の ====== */
    & .archive_competition_nav {
        margin-top: 10px;

        & .archive_competition_list {
            list-style: none;
            padding: 0;
            margin: 0;
            display: grid;
            gap: 8px;
        }

        & .archive_competition_item {

            & a {
                display: block;
                padding: 10px 12px 12px;
                background: #ffffff;
                border-radius: 4px;
                text-decoration: none;
                font-size: 1.4rem;
                font-weight: 500;
                line-height: 1.4;
                color: var(--main_bk);
                transition:
                    background-color 0.15s ease,
                    color 0.15s ease,
                    opacity 0.15s ease;
            }

            & a:hover {
                background: #E8F7FF;
                color: #00A5DF;
                opacity: 1;
            }

            &.is_current a,
            & a[aria-current="page"] {
                background: #ffffff;
                cursor: default;

            }

            &.is_current a:hover,
            & a[aria-current="page"]:hover {
                opacity: 1;
            }

            & a[aria-current="page"]:hover {
                /* color: #222; */
                color: var(--main_bk);
            }
        }
    }
}


/* =========================================================
   archive_list_games
========================================================= */

body.archive_list_games {

    /* =========================
       見出し（タイトル＋リード）
    ========================= */

    #content_main {

        width: 1008px;

        .info_page_header {
            text-align: center;
            margin-top: 28px;
        }

        .info_page_title {
            font-size: 3.2rem;
            font-weight: bold;
            font-weight: 700;
            letter-spacing: 0.02em;
        }

        .info_page_title::after {
            content: '';
            display: block;
            margin-inline: auto;
            width: 5em;
            height: 5px;
            margin-top: 12px;
            background-color: #020202;
        }

        .info_page_lead {
            margin: 10px 0 0;
            font-size: 1.8rem;
            line-height: 1.6;
            font-weight: 500;
        }
    }

    /* =========================
       一覧ヘッダー（年／開催日／H/A／節／対戦／）
    ========================= */

    .match_list_head {
        display: grid;
        grid-template-columns: 64px 160px 96px 120px 1fr 64px;
        align-items: end;
        padding: 16px 0 8px;
        border-bottom: 1px solid #CCCCCC;
        font-size: 1.4rem;
        margin-top: 50px;

        .match_list_col {
            text-align: center;
        }

        .col_vs {
            padding-left: 0;

        }

        .col_toggle {
            padding-left: 0;
        }
    }

    /* =========================
       試合一覧本体
    ========================= */

    .match_list {}

    .match_item {
        border-bottom: 1px solid #CCCCCC;
    }

    .match_row {
        display: grid;
        grid-template-columns: 64px 160px 96px 120px 1fr 64px;
        align-items: center;
        min-height: 99px;
        padding-top: 9px;
    }

    .has_news .match_row:hover {
        cursor: pointer;
        transition: all 0.15s ease-in;
        background-color: #E8F7FF;
    }

    .match_cell {
        text-align: center;
        font-size: 1.8rem;
        margin-bottom: 0.4em;
    }

    .match_cell.col_year {}

    .match_year {
        font-family: var(--ffDIN_cond_med);
        font-size: 2.2rem;
    }

    .match_cell.col_date {
        padding-left: 8px;
        margin-bottom: 0;
        /* padding-top: 12px; */
    }

    .match_date {
        display: inline-flex;
        /* gap: 6px; */
        align-items: center;
    }

    .match_monthday {
        font-family: var(--ffDIN_cond_reg);
        font-size: 6.4rem;
        line-height: 1;
        letter-spacing: 0.02em;
    }

    .match_date.match_date_text {
        display: inline-block;

        & .match_monthday {
            font-size: 4.4rem;
        }

        & .or {
            margin-right: 0.2em;
        }

        & .match_week {
            font-size: 1.4rem;
            display: inline-block;
        }
    }

    .match_week {
        font-weight: 600;
        /* margin-left: -0.4em; */
        margin-right: -0.2em;
    }

    .match_cell.col_ha {
        padding-left: 8px;
    }

    .match_ha {
        font-weight: 500;
    }

    .match_ha.is_home {
        color: var(--main_blue);
    }

    .match_ha.is_away {
        color: var(--main_red);
    }

    .match_cell.col_section {}

    .match_cell.col_vs {}

    /* =========================
       ＋／× トグル
    ========================= */

    .match_cell.col_toggle {
        padding-left: 0;
        display: flex;
        justify-content: center;
        margin-top: 10px;
    }

    .match_toggle {
        width: 36px;
        height: 36px;
        border: none;
        background: transparent;
        cursor: pointer;
        padding: 0;
        display: grid;
        place-items: center;
    }

    .match_toggle_icon {
        font-family: var(--ffDIN_cond_reg);
        font-size: 3.6rem;
        line-height: 1;
        color: var(--main_blue);
        display: inline-block;
    }

    .match_toggle_icon.is_close {
        transform: rotate(45deg);
    }

    .match_toggle:hover {
        opacity: 0.75;
    }

    .no_news .col_toggle {
        /* display: none; */
        opacity: 0.4;

        & .match_toggle_icon {
            color: #ccc;
        }

        & .match_toggle:hover {
            cursor: default;
            opacity: 1;
        }

    }

    /* スクリーンリーダー用（既存classを使う前提） */
    .visually_hidden {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    /* =========================
       展開パネル（お知らせ）
    ========================= */

    .match_panel {
        background: #EEEEEE;
        overflow: hidden;
        height: 0;
        opacity: 0;
        transition: height 0.28s ease, opacity 0.22s ease;
        will-change: height, opacity;
    }

    /* 開いている状態（JSが付ける） */
    .match_panel.is_open {
        opacity: 1;
        margin-bottom: 20px;
    }

    /* hiddenは最終的にdisplay:noneになるので、アニメ中は付けない運用（JSで制御） */
    .match_panel[hidden] {
        display: none;
    }

    .match_panel[hidden] {
        display: none;
    }

    .match_panel_inner {
        padding: 36px 38px;
    }

    .match_news_list {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .match_news_item {
        display: grid;
        grid-template-columns: 120px 1fr;
        gap: 12px;
        align-items: start;
    }

    .match_news_item+.match_news_item {
        margin-top: 16px;
    }

    .match_news_date {
        font-family: var(--ffDIN_cond_reg);
        font-size: 2.2rem;
        color: var(--main_blue);
        letter-spacing: 0.03em;
    }

    .match_news_link {
        font-size: 1.8rem;
        line-height: 1.6;
        color: var(--main_bk);
        text-decoration: none;
    }

    .match_news_link:hover {
        color: var(--main_blue);
    }

}

/* =========================================================
   archive_list_category
========================================================= */

div.category_header_block {
    text-align: center;
    margin-top: 48px;
    margin-bottom: 50px;

    & .category_title {
        font-size: 3.2rem;
        font-weight: bold;
        font-weight: 700;
        letter-spacing: 0.02em;
    }

    & .category_title::after {
        content: '';
        display: block;
        margin-inline: auto;
        width: 5em;
        height: 5px;
        margin-top: 12px;
        background-color: #020202;
    }

}

body.archive_list_category {

    /* ひとまず非表示 */
    & .pagination {
        display: none;
    }

}


/*  */