/*****************************************************************************************************************************************
  「★PC版 CSS★」ブラウザの幅が751px以上ならここの記述が有効になる
*****************************************************************************************************************************************/
@media all and (min-width: 751px) {

    /*****************
    ここからdata
    ******************/
    #data {
        background-image: linear-gradient(90deg, #a80000, #dd2b2b 50%, #a80000);
        width: 100%;
        height: auto;
        padding: 196px 0;
        margin: -169px 0;
        position: relative;

        /* ★モーダルを #data 内に張るための土台 */
        overflow: hidden;
        isolation: isolate;
    }

    /* SVG柄レイヤー（repeat） */
    #data::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: url("../images/data_repeat.svg");
        background-repeat: repeat;
        pointer-events: none;
        transform-origin: center;
    }

    /* data内の中身を必ず前面へ */
    #data>* {
        position: relative;
        z-index: 1;
    }

    /* ★モーダルだけは #data 全面に乗せたいので最前面へ */
    #data #dataModal {
        z-index: 9999;
    }

    /* 文字帯 共通 */
    #data .ticker {
        position: absolute;
        left: 0;
        width: 100%;
        height: 44px;
        overflow: hidden;
        z-index: 5;
        pointer-events: none;
        transform: none;
    }

    /* 偶数の文字だけ薄く */
    #data .ticker__set span:nth-child(even) {
        opacity: .8;
    }

    /* 上下位置 */
    #data .ticker--top {
        top: 93px;
        transform: skewY(-5deg);
    }

    #data .ticker--bottom {
        bottom: 70px;
        transform: skewY(-5deg);
    }

    /* track：中身を横並びにして流す */
    #data .ticker__track {
        display: inline-flex;
        width: auto;
        will-change: transform;
        white-space: nowrap;
        transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        position: relative;
        z-index: 1;
    }

    /* set：文字列ユニット */
    #data .ticker__set {
        display: inline-flex;
        align-items: center;
        gap: 18px;
        padding-right: 18px;
        flex: 0 0 auto;
        white-space: nowrap;
    }

    #data .ticker__set span {
        font-family: "Roboto", sans-serif;
        font-weight: 900;
        font-size: 18px;
        letter-spacing: .06em;
        color: #C2A78F;
        text-transform: uppercase;
        display: inline-block;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }

    /* 上：右へ（右に流れる＝中身が右方向へ移動） */
    #data .ticker--top .ticker__track {
        animation: tickerRight 30s linear infinite;
    }

    /* 下：左へ */
    #data .ticker--bottom .ticker__track {
        animation: tickerLeft 30s linear infinite;
    }

    @keyframes tickerLeft {
        from {
            transform: translate3d(0, 0, 0);
        }

        to {
            transform: translate3d(calc(-1 * var(--ticker-set-width, 0px)), 0, 0);
        }
    }

    @keyframes tickerRight {
        from {
            transform: translate3d(calc(-1 * var(--ticker-set-width, 0px)), 0, 0);
        }

        to {
            transform: translate3d(0, 0, 0);
        }
    }

    /* 動き苦手な人用 */
    @media (prefers-reduced-motion: reduce) {
        #data .ticker__track {
            animation: none;
        }
    }

    /* タイトルロゴ
    ------------------------------------------------------------*/
    .data_tit_wrap {
        width: 1320px;
        height: 177px;
        display: flex;
        margin: 0 auto;
        justify-content: space-between;
        align-items: flex-end;
    }

    .data_tit {
        background: url(../images/data_tit_pc.svg) no-repeat center / cover;
        width: 570px;
        height: 177px;
        position: relative;
    }

    .data_read {
        background: url(../images/data_read_pc.png) no-repeat center / cover;
        width: 629px;
        height: 91px;
        position: relative;
        padding: 10px;
    }

    .data_read p {
        font-size: 18px;
        font-weight: bold;
        margin: 16px 53px;
    }

    /* ===== グリッド ===== */
    .data_grid {
        width: 1503px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
        margin: 30px auto;
    }

    /* ===== カード ===== */
    .data_card {
        position: relative;
        border: 2px solid #c9c9c9;
        border-radius: 16px;
        background: #fff;
        padding: 18px 18px 16px;
        text-align: left;
        cursor: pointer;
        box-shadow: 0 10px 0 rgba(0, 0, 0, .18);

        /* ★横に少し伸びるホバー用 */
        transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
        will-change: transform;

        height: 355px;
    }

    /* modal を基準にする */
    #data .modal {
        position: absolute;
        /* すでに設定済み */
        inset: 0;
    }

    /* ===== 矢印（カードの外） ===== */
    .modal_arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 56px;
        height: 56px;
        border-radius: 50%;
        border: none;
        background: rgba(0, 0, 0, .55);
        color: #fff;
        font-size: 54px;
        line-height: 39px;
        cursor: pointer;
        z-index: 10001;
    }

    /* パネルの外側に出す */
    .modal_arrow.prev {
        left: 384px;
    }

    .modal_arrow.next {
        right: 384px;
    }

    .modal_arrow:disabled {
        opacity: .3;
        pointer-events: none;
    }

    /* ===== モーダル中身を画像表示 ===== */
    #data .modal_image {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* =========================
   ageだけ：flex無効 + 画像横スクロール
   ========================= */
    #dataModal.is-age .modal_body {
        display: block;
        /* ← これで flex を無効化 */
        padding: 18px 24px 24px;
        /* 好みで */
    }

    /* 画像を横スクロール領域にする */
    #dataModal.is-age .modal_image {
        width: 100%;
        display: block;
        /* 念のため */
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        /* スクロールバーとの隙間 */
    }

    /* 画像を横スクロール領域にする */
    #dataModal.is-age .modal_text p {
        width: 970px;
    }

    /* 画像は「縮めず」横にそのまま出す（必要に応じて数値調整） */
    #dataModal.is-age .modal_image img {
        width: auto;
        /* 70%指定を打ち消す */
        max-width: none;
        /* 省略可 */
        height: auto;
        display: block;
        border-radius: 14px;

        /* ここが横スクロールの肝：パネルより大きい幅にする */
        min-width: 980px;
        /* ← グラフ画像の想定幅に合わせて変更 */
    }

    /* テキストは通常表示 */
    #dataModal.is-age .modal_text {
        margin-top: 14px;
    }


    #data .modal_image img {
        width: 70%;
        height: 100%;
        display: block;
        border-radius: 14px;
    }

    #data .modal_text p {
        margin: 0;
        width: 550px;
        font-size: 20px;
    }

    /* 画像時は余白を消す（必要に応じて） */
    #data .modal_body {
        padding: 0;
    }


    .data_card:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 0 rgba(0, 0, 0, .18);
        filter: brightness(1.02);
    }

    /* ★キーボードでも同じ */
    .data_card:focus-visible {
        outline: 3px solid rgba(106, 93, 245, .35);
        outline-offset: 3px;
        transform: translateY(-3px) scaleX(1.03);
    }

    .card_label {
        margin: 0;
        font-size: 29px;
        font-weight: 800;
        color: #5a3b22;
        text-align: center;
    }

    .card_dash {
        margin: 10px 0 10px;
        height: 0;
        border-top: 2px dashed #7b5a42;
        opacity: .8;
    }

    .card_body {
        display: flex;
        align-items: flex-end;
        justify-content: center;
        gap: 0px;
        min-height: 240px;
        flex-wrap: wrap;
        top: -7px;
        position: relative;
    }

    .card_kpi {
        margin: 0;
        color: #6a5df5;
        font-weight: 900;
        line-height: 1;
        min-width: 323px;
        text-align: center;
    }

    .card_kpi .big {
        font-size: 109px;
        font-family: "ff-din-paneuropean", sans-serif;
        font-weight: 700;
        font-style: normal;
        letter-spacing: -4px;
    }

    .card_kpi .small {
        font-size: 36px;
    }

    .card_kpi .unit {
        font-size: 35px;
        color: #5a3b22;
        font-weight: 800;
        margin-left: 2px;
    }

    .kpi_sub .buri {
        margin-left: 2px;
        opacity: 0.85;
    }

    /* ===== 34 + 年ぶり ===== */
    .kpi_sub {
        display: flex;
        align-items: flex-end;
        gap: 6px;
    }

    .card_buri {
        display: flex;
        justify-content: center;
    }

    .kpi_sub .num {
        font-family: "ff-din-paneuropean", sans-serif;
        font-size: 70px;
        font-weight: 700;
        color: #6a63ff;
    }

    /* 年 / ぶり を縦に */
    .kpi_sub .stack {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 2px;
        transform: translateY(-4px);
        align-items: flex-start;
    }

    .kpi_sub .stack span {
        font-size: 25px;
        font-weight: 700;
        color: #6b4a2b;
        line-height: 1;
    }

    .card_icon {
        width: 190px;
        height: 110px;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: .55;
    }

    .card_icon img {
        max-width: 100%;
        max-height: 100%;
        display: block;
    }

    /* 右下の三角（装飾） */
    .card_corner {
        position: absolute;
        right: 0;
        bottom: 0;
        width: 0;
        height: 0;
        border-left: 80px solid transparent;
        border-bottom: 80px solid rgba(255, 88, 88, .22);
        border-bottom-right-radius: 14px;
    }

    .data_card::after {
        content: "";
        position: absolute;
        right: 14px;
        bottom: 14px;
        width: 0;
        height: 0;
        border-left: 12px solid rgba(255, 255, 255, .9);
        border-top: 7px solid transparent;
        border-bottom: 7px solid transparent;
        opacity: .85;
    }

    /* 歴代優勝者年齢カード用 */
    .card_kpi.card_age {
        display: grid;
        margin: 0;
        position: relative;
        top: -4px;
    }

    /* 1行（最年長/最年少） */
    .card_kpi.card_age .age_row {
        display: grid;
        grid-template-columns: 140px 1fr;
        /* 左（ラベル＋アイコン）/右（数値） */
        align-items: center;
    }

    /* 左側：ラベル＋アイコン */
    .card_kpi.card_age .age_left {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        align-content: center;
    }

    .card_kpi.card_age .age_label {
        margin: 0;
        color: #6b4a2b;
        font-weight: 900;
        font-size: 23px;
        letter-spacing: .02em;
    }

    .card_kpi.card_age .age_icon {
        width: 142px;
        height: 55px;
    }

    .card_kpi.card_age .age_icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

    /* 右側：デカ数字＋単位 */
    .card_kpi.card_age .age_right {
        display: flex;
        align-items: baseline;
        justify-content: flex-start;
        gap: 8px;
        line-height: 1;
        top: -10px;
        position: relative;
    }

    .card_kpi.card_age .age_num {
        font-family: "ff-din-paneuropean", "Roboto", sans-serif;
        font-weight: 800;
        font-size: 111px;
        color: #6a63ff;
        letter-spacing: -0.02em;
    }

    .card_kpi.card_age .age_unit {
        color: #6b4a2b;
        font-weight: 900;
        font-size: 32px;
    }

    /* SP調整（必要なら） */
    @media (max-width: 750px) {
        .card_kpi.card_age .age_row {
            grid-template-columns: 120px 1fr;
        }

        .card_kpi.card_age .age_num {
            font-size: 64px;
        }
    }

    /* =========================================================================================
       ★ モーダル（#data 内 “全面” で乗る版）
       - ブラウザ全体ではなく #data の範囲内だけを覆う
       - なので position: fixed → absolute に変更
    ========================================================================================= */
    #data .modal {
        position: absolute;
        /* ★ここが重要 */
        inset: 0;
        /* #data 全面 */
        display: none;
        z-index: 9999;
    }

    #data .modal.is-open {
        display: block;
    }

    #data .modal_backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, .62);
        backdrop-filter: blur(2px);
    }

    /* 中央パネル：#data の中央に固定 */
    #data .modal_panel {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: min(1020px, calc(100% - 40px));
        max-height: calc(100% - 40px);
        /* #data内に収める */

        margin: 0;
        background: #fff;
        border-radius: 18px;
        box-shadow: 0 18px 60px rgba(0, 0, 0, .35);
        overflow: hidden;
        animation: modalInCenter .22s ease both;
    }

    @keyframes modalInCenter {
        from {
            transform: translate(-50%, -48%);
            opacity: 0;
        }

        to {
            transform: translate(-50%, -50%);
            opacity: 1;
        }
    }

    #data .modal_close {
        position: absolute;
        right: 12px;
        top: 10px;
        width: 44px;
        height: 44px;
        border: 0;
        background: transparent;
        font-size: 30px;
        cursor: pointer;
        color: #333;
        z-index: 2;
    }

    #data .modal_head {
        padding: 20px 24px 10px;
        border-bottom: 2px dashed #7b5a42;
    }

    #data .modal_label {
        margin: 0 0 6px;
        font-weight: 900;
        color: #5a3b22;
        letter-spacing: .06em;
    }

    #data .modal_title {
        margin: 0;
        font-size: 29px;
        font-weight: 800;
        color: #5a3b22;
        text-align: center;
    }

    /* 中身だけスクロール */
    #data .modal_body {
        padding: 38px 24px 38px;
        color: #2b1c12;
        line-height: 1.75;

        overflow: auto;
        max-height: calc(100% - 120px);
        /* ヘッダぶんを引く（ざっくり） */
        -webkit-overflow-scrolling: touch;
        display: flex;
    }

    #data .modal_body ul {
        margin: 10px 0 0;
        padding-left: 1.2em;
    }

    /* ===== SP（この中は元のまま＋必要最小限） ===== */
    @media (max-width: 750px) {

        .data_head,
        .data_grid {
            width: 92%;
        }

        .data_head {
            flex-direction: column;
            gap: 14px;
            margin-bottom: 18px;
        }

        .data_title .en {
            font-size: 32px;
        }

        .data_title h2 {
            font-size: 36px;
        }

        .data_title h2 span {
            font-size: 24px;
        }

        .data_grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 14px;
        }

        .card_kpi .big {
            font-size: 56px;
        }

        .card_kpi .unit {
            font-size: 22px;
        }

        .card_body {
            min-height: 120px;
        }

        /* SP時のモーダル余白だけ少し詰める */
        #data .modal_panel {
            width: min(820px, calc(100% - 28px));
            max-height: calc(100% - 28px);
        }

        #data .modal_body {
            padding: 16px 18px 18px;
        }
    }

}

/*****************************************************************************************************************************************
  「★SP版 CSS★」ブラウザの幅が750px以下ならここの記述が有効になる
*****************************************************************************************************************************************/
@media only all and (max-width: 750px) {


    /*****************
    ここからdata
    ******************/
    #data {
        background-image: linear-gradient(90deg, #a80000, #dd2b2b 50%, #a80000);
        width: 100%;
        height: auto;
        padding: 196px 0 226px;
        margin: -169px 0;
        position: relative;

        /* ★モーダルを #data 内に張るための土台 */
        overflow: hidden;
        isolation: isolate;
    }

    /* SVG柄レイヤー（repeat） */
    #data::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: url(../images/data_repeat.svg);
        background-repeat: repeat;
        pointer-events: none;
    }

    /* data内の中身を必ず前面へ */
    #data>* {
        position: relative;
        z-index: 1;
    }

    /* ★モーダルだけは #data 全面に乗せたいので最前面へ */
    #data #dataModal {
        z-index: 9999;
    }

    /* 文字帯 共通 */
    #data .ticker {
        position: absolute;
        left: 0;
        width: 100%;
        height: 44px;
        overflow: hidden;
        z-index: 5;
        pointer-events: none;
        transform: none;
    }

    /* 偶数の文字だけ薄く */
    #data .ticker__set span:nth-child(even) {
        opacity: .8;
    }

    /* 上下位置 */
    #data .ticker--top {
        top: 143px;
        transform: skewY(-5deg);
    }

    #data .ticker--bottom {
        bottom: 140px;
        transform: skewY(-5deg);
    }

    /* track：中身を横並びにして流す */
    #data .ticker__track {
        display: inline-flex;
        width: auto;
        will-change: transform;
        white-space: nowrap;
        transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        position: relative;
        z-index: 1;
    }

    /* set：文字列ユニット */
    #data .ticker__set {
        display: inline-flex;
        align-items: center;
        gap: 18px;
        padding-right: 18px;
        flex: 0 0 auto;
        white-space: nowrap;
    }

    #data .ticker__set span {
        font-family: "Roboto", sans-serif;
        font-weight: 900;
        font-size: 35px;
        letter-spacing: .06em;
        color: #C2A78F;
        text-transform: uppercase;
        display: inline-block;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }

    /* 上：右へ（右に流れる＝中身が右方向へ移動） */
    #data .ticker--top .ticker__track {
        animation: tickerRight 30s linear infinite;
    }

    /* 下：左へ */
    #data .ticker--bottom .ticker__track {
        animation: tickerLeft 30s linear infinite;
    }

    @keyframes tickerLeft {
        from {
            transform: translate3d(0, 0, 0);
        }

        to {
            transform: translate3d(calc(-1 * var(--ticker-set-width, 0px)), 0, 0);
        }
    }

    @keyframes tickerRight {
        from {
            transform: translate3d(calc(-1 * var(--ticker-set-width, 0px)), 0, 0);
        }

        to {
            transform: translate3d(0, 0, 0);
        }
    }

    /* 動き苦手な人用 */
    @media (prefers-reduced-motion: reduce) {
        #data .ticker__track {
            animation: none;
        }
    }

    /* タイトルロゴ
    ------------------------------------------------------------*/
    .data_tit_wrap {
        width: 750px;
        display: flex;
        margin: 0 auto;
        justify-content: space-between;
        align-items: center;
        flex-direction: column;
    }

    .data_tit {
        background: url(../images/data_tit_sp.png) no-repeat center / cover;
        width: 612px;
        height: 177px;
        position: relative;
        left: 109px;
        margin-bottom: 30px;
    }

    .data_read {
        background: url(../images/data_read_sp.png) no-repeat center / cover;
        width: 664px;
        height: 212px;
        position: relative;
        padding: 10px;
    }

    .data_read p {
        font-size: 28px;
        font-weight: bold;
        margin: 16px 53px;
        text-align: center;
    }

    /* ===== グリッド ===== */
    .data_grid {
        width: 750px;
        display: flex;
        gap: 18px;
        margin: 30px auto;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* ===== カード ===== */
    .data_card {
        position: relative;
        border: 2px solid #c9c9c9;
        border-radius: 16px;
        background: #fff;
        padding: 18px 18px 16px;
        text-align: left;
        cursor: pointer;
        box-shadow: 0 10px 0 rgba(0, 0, 0, .18);
        transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
        will-change: transform;
        height: 325px;
        width: 340px;

        /* ★横に少し伸びるホバー用 */
        transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
        will-change: transform;

        height: 355px;
    }

    /* modal を基準にする */
    #data .modal {
        position: absolute;
        /* すでに設定済み */
        inset: 0;
    }

    /* ===== 矢印（カードの外） ===== */
    .modal_arrow {
        position: absolute;
        top: 50%;
        width: 86px !important;
        height: 86px;
        background: url(../images/yaji.svg);
        cursor: pointer;
        z-index: 10001;
        border: none;
    }
    /* .modal_arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 86px !important;
        height: 86px;
        border-radius: 50%;
        border: none;
        background: rgba(0, 0, 0, 0.2);
        color: #fff;
        font-size: 94px;
        line-height: 49px;
        cursor: pointer;
        z-index: 10001;
    } */

    /* パネルの外側に出す */
    .modal_arrow.prev {
        left: 34px;
        background: url(../images/yaji_l.svg);
    }

    .modal_arrow.next {
        right: 34px;
        background: url(../images/yaji_r.svg);
    }

    .modal_arrow:disabled {
        opacity: .3;
        pointer-events: none;
    }

    /* ===== モーダル中身を画像表示 ===== */
    #data .modal_image {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* =========================
   ageだけ：flex無効 + 画像横スクロール
   ========================= */
    #dataModal.is-age .modal_body {
        display: block;
        /* ← これで flex を無効化 */
        padding: 18px 24px 24px;
        /* 好みで */
    }

    /* 画像を横スクロール領域にする */
    #dataModal.is-age .modal_image {
        width: 100%;
        display: block;
        /* 念のため */
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        /* スクロールバーとの隙間 */
    }

    /* 画像を横スクロール領域にする */
    #dataModal.is-age .modal_text p {
        width: 660px;
    }

    /* 画像は「縮めず」横にそのまま出す（必要に応じて数値調整） */
    #dataModal.is-age .modal_image img {
        width: auto;
        /* 70%指定を打ち消す */
        max-width: none;
        /* 省略可 */
        height: auto;
        display: block;
        border-radius: 14px;

        /* ここが横スクロールの肝：パネルより大きい幅にする */
        min-width: 980px;
        /* ← グラフ画像の想定幅に合わせて変更 */
    }

    /* テキストは通常表示 */
    #dataModal.is-age .modal_text {
        margin-top: 14px;
    }


    #data .modal_image img {
        width: 60%;
        height: 100%;
        display: block;
        border-radius: 14px;
    }

    #data .modal_text p {
        margin: 0;
        width: 620px;
    }

    /* 画像時は余白を消す（必要に応じて） */
    #data .modal_body {
        padding: 0;
    }


    .data_card:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 0 rgba(0, 0, 0, .18);
        filter: brightness(1.02);
    }

    /* ★キーボードでも同じ */
    .data_card:focus-visible {
        outline: 3px solid rgba(106, 93, 245, .35);
        outline-offset: 3px;
        transform: translateY(-3px) scaleX(1.03);
    }

    .card_label {
        margin: 0;
        font-size: 29px;
        font-weight: 800;
        color: #5a3b22;
        text-align: center;
    }

    .card_dash {
        margin: 10px 0 10px;
        height: 0;
        border-top: 2px dashed #7b5a42;
        opacity: .8;
    }

    .card_body {
        display: flex;
        justify-content: center;
        gap: 0px;
        min-height: 240px;
        flex-wrap: wrap;
        top: -13px;
        position: relative;
    }

    .card_kpi {
        margin: 0;
        color: #6a5df5;
        font-weight: 900;
        line-height: 1;
        min-width: 323px;
        text-align: center;
    }

    .card_kpi .big {
        font-size: 109px;
        font-family: "ff-din-paneuropean", sans-serif;
        font-weight: 700;
        font-style: normal;
        letter-spacing: -4px;
    }

    .card_kpi .small {
        font-size: 36px;
    }

    .card_kpi .unit {
        font-size: 35px;
        color: #5a3b22;
        font-weight: 800;
        margin-left: 2px;
    }

    .kpi_sub .buri {
        margin-left: 2px;
        opacity: 0.85;
    }

    /* ===== 34 + 年ぶり ===== */
    .kpi_sub {
        display: flex;
        align-items: flex-end;
        gap: 6px;
    }

    .card_buri {
        display: flex;
        justify-content: center;
    }

    .kpi_sub .num {
        font-family: "ff-din-paneuropean", sans-serif;
        font-size: 70px;
        font-weight: 700;
        color: #6a63ff;
    }

    /* 年 / ぶり を縦に */
    .kpi_sub .stack {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 2px;
        transform: translateY(-4px);
        align-items: flex-start;
    }

    .kpi_sub .stack span {
        font-size: 25px;
        font-weight: 700;
        color: #6b4a2b;
        line-height: 1;
    }

    .card_icon {
        width: 190px;
        height: 110px;
        display: flex;
        justify-content: center;
        opacity: .55;
        align-items: center;
        position: relative;
        top: 11px;
    }

    .card_icon img {
        max-width: 100%;
        max-height: 100%;
        display: block;
    }

    /* 右下の三角（装飾） */
    .card_corner {
        position: absolute;
        right: 0;
        bottom: 0;
        width: 0;
        height: 0;
        border-left: 80px solid transparent;
        border-bottom: 80px solid rgba(255, 88, 88, .22);
        border-bottom-right-radius: 14px;
    }

    .data_card::after {
        content: "";
        position: absolute;
        right: 14px;
        bottom: 14px;
        width: 0;
        height: 0;
        border-left: 12px solid rgba(255, 255, 255, .9);
        border-top: 7px solid transparent;
        border-bottom: 7px solid transparent;
        opacity: .85;
    }

    /* 歴代優勝者年齢カード用 */
    .card_kpi.card_age {
        display: grid;
        margin: 0;
        position: relative;
        top: 11px;
    }

    /* 1行（最年長/最年少） */
    .card_kpi.card_age .age_row {
        display: grid;
        grid-template-columns: 140px 1fr;
        /* 左（ラベル＋アイコン）/右（数値） */
        align-items: center;
    }

    /* 左側：ラベル＋アイコン */
    .card_kpi.card_age .age_left {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        align-content: center;
    }

    .card_kpi.card_age .age_label {
        margin: 0;
        color: #6b4a2b;
        font-weight: 900;
        font-size: 23px;
        letter-spacing: .02em;
    }

    .card_kpi.card_age .age_icon {
        width: 142px;
        height: 55px;
    }

    .card_kpi.card_age .age_icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

    /* 右側：デカ数字＋単位 */
    .card_kpi.card_age .age_right {
        display: flex;
        align-items: baseline;
        justify-content: flex-start;
        gap: 8px;
        line-height: 1;
        top: -10px;
        position: relative;
    }

    .card_kpi.card_age .age_num {
        font-family: "ff-din-paneuropean", "Roboto", sans-serif;
        font-weight: 800;
        font-size: 111px;
        color: #6a63ff;
        letter-spacing: -0.02em;
    }

    .card_kpi.card_age .age_unit {
        color: #6b4a2b;
        font-weight: 900;
        font-size: 32px;
    }


    /* =========================================================================================
       ★ モーダル（#data 内 “全面” で乗る版）
       - ブラウザ全体ではなく #data の範囲内だけを覆う
       - なので position: fixed → absolute に変更
    ========================================================================================= */
    #data .modal {
        position: absolute;
        /* ★ここが重要 */
        inset: 0;
        /* #data 全面 */
        display: none;
        z-index: 9999;
    }

    #data .modal.is-open {
        display: block;
    }

    #data .modal_backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, .62);
        backdrop-filter: blur(2px);
    }

    /* 中央パネル：#data の中央に固定 */
    #data .modal_panel {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: min(820px, calc(100% - 40px));
        max-height: calc(100% - 40px);
        /* #data内に収める */

        margin: 0;
        background: #fff;
        border-radius: 18px;
        box-shadow: 0 18px 60px rgba(0, 0, 0, .35);
        overflow: hidden;
        animation: modalInCenter .22s ease both;
    }

    @keyframes modalInCenter {
        from {
            transform: translate(-50%, -48%);
            opacity: 0;
        }

        to {
            transform: translate(-50%, -50%);
            opacity: 1;
        }
    }

    #data .modal_close {
        position: absolute;
        right: 22px;
        width: 64px;
        height: 84px;
        border: 0;
        background: transparent;
        font-size: 100px;
        cursor: pointer;
        color: #333;
        z-index: 2;
    }

    #data .modal_head {
        padding: 20px 24px 20px;
        border-bottom: 2px dashed #7b5a42;
    }

    #data .modal_label {
        margin: 0 0 6px;
        font-weight: 900;
        color: #5a3b22;
        letter-spacing: .06em;
    }

    #data .modal_title {
        margin: 0;
        font-size: 45px;
        font-weight: 800;
        color: #5a3b22;
        text-align: center;
    }

    /* 中身だけスクロール */
    #data .modal_body {
        padding: 38px 24px 38px;
        color: #2b1c12;
        line-height: 1.75;
        overflow: auto;
        max-height: calc(100% - 120px);
        /* ヘッダぶんを引く（ざっくり） */
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #data .modal_body ul {
        margin: 10px 0 0;
        padding-left: 1.2em;
    }

    /* ===== SP（この中は元のまま＋必要最小限） ===== */
    @media (max-width: 750px) {

        .data_head {
            flex-direction: column;
            gap: 14px;
            margin-bottom: 18px;
        }

        .data_title .en {
            font-size: 32px;
        }

        .data_title h2 {
            font-size: 36px;
        }

        .data_title h2 span {
            font-size: 24px;
        }

        .card_kpi .big {
            font-size: 112px;
        }

        .card_kpi .unit {
            font-size: 22px;
        }

        .card_body {
            min-height: 120px;
        }

        /* SP時のモーダル余白だけ少し詰める */
        #data .modal_panel {
            width: min(820px, calc(100% - 28px));
            max-height: calc(100% - 28px);
        }

        #data .modal_body {
            padding: 36px 18px 38px;
        }
    }
}