/* ============================================================
 * 資格トップページ（aws-com/com_index.php ＋ com_top_*.php）固有のスタイル
 *   - パーシャル内に <style> を書かず、ここへ集約する（docs/index-template-design.md §4.4）
 *   - 共通 CSS（main.css / com.css / {kbn}.css）より先に読み込まれるため、
 *     既存セレクタに負ける箇所だけ !important を使う（新規セレクタには使わない）
 * ============================================================ */

/* ---- 会員特典ブロック（com_top_member_benefit.php） ----
 * 2026-09-11: PC は 上=メッセージ／中=画像 2 枚（ダッシュボード・模試結果）／下=ボタン横並び。
 *             スマホは メッセージ→ボタン→画像 2 枚縦積み（ファーストビューに CTA を入れる方針は維持）。 */
.member-benefit {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "eyebrow"
        "lead"
        "subtext"
        "visuals"
        "buttons";
    align-items: start;
    margin: 14px 10px 30px;   /* 2026-09-11: 導入部を外しページ先頭に来るため上に余白 */
}
/* アイブロウ（試験の正式名称＋試験コード。見出しの上の小見出し） */
.member-benefit-eyebrow {
    grid-area: eyebrow;
    margin: 0 0 6px !important;
    padding: 0;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .02em;
    color: #555;
}
.member-benefit-subtext {
    grid-area: subtext;
    padding: 0 10px;
    text-align: center;
}
.member-benefit-actions {
    grid-area: buttons;
}
.member-benefit-lead {
    grid-area: lead;
    margin-bottom: 6px !important;
    padding: 0;
    font-size: 43px !important;
    font-weight: 700;
    line-height: 1.4;
    color: #232f3e;
    text-align: center;
}
/* 画像 2 枚（左=ダッシュボード・右=模試結果。いずれも 950×837）。模試の無い資格は 1 枚を中央に。
 * 2026-09-11: 列構成を下のボタン列（.member-benefit-actions）と同じ 2 列・同じ間隔にし、各画像を直下のボタンの真上に置く。
 *             画像は列幅いっぱい（本文幅に収まる最大。PC 1000px 幅で 1 枚 333×293px 程度） */
.member-benefit-visuals {
    grid-area: visuals;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 5%;          /* 2026-09-11: 左右の余白と 2 枚の間隔をそれぞれ本文幅の 5% に（ボタン列も同じ値） */
    padding: 0 5%;
    margin: 18px 0 6px;
}
.member-benefit-visuals.is-single {
    grid-template-columns: minmax(0, 1fr);
    width: calc(50% - 8px);
    margin-left: auto;
    margin-right: auto;
}
.member-benefit-visual {
    text-align: center;
}
/* メインメッセージのスマホ専用改行（PC は 2 行、スマホは 4 行） */
.member-benefit-lead br.sp-only {
    display: none;
}
.member-benefit-visual a {
    display: block;
    overflow: visible;
}
.member-benefit-visual img {
    width: 100%;
    border: 1px solid #d3d3d3;
    border-radius: 5px;
    box-shadow: 0 10px 24px rgba(35,47,62,.16);
    transition: transform .2s ease, box-shadow .2s ease;
    transform-origin: center;
    position: relative;
}
.member-benefit-visual:hover img,
.member-benefit-visual:focus img {
    transform: scale(1.1);
    box-shadow: 0 16px 32px rgba(35,47,62,.24);
    z-index: 1;                          /* 隣の画像より手前に */
}
.member-benefit-note {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #666;
}
.member-benefit-btn {
    background: #FFA500 !important;      /* ベンダー色は要素の style 属性で上書き */
    color: #fff !important;
    font-weight: bold;
    padding: 13px 16px !important;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
    margin: 20px 30px;
}
.member-benefit-btn + .member-benefit-btn {
    margin-top: 10px;
}
/* 主ボタン（トライアル）と補足 */
.member-benefit-btn.is-primary {
    font-size: 1.05em;
    box-shadow: 0 4px 12px rgba(0,0,0,.18);   /* ベンダー色（橙 / 青）のどちらにも合う中立の影 */
}
.member-benefit-btn-note {
    display: block;
    margin: -12px 30px 14px;
    font-size: 12px;
    color: #666;
    text-align: center;
}
/* ゲスト向けのテキストリンク（会員の方はログイン）。2026-09-10 */
.member-benefit-link {
    display: block;
    margin: -6px 30px 16px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
}
/* PC: ボタンを画像と同じ 2 列に置き（各画像の真下）、補足文とテキストリンクは 2 列ぶち抜きで下に置く
 * （DOM 順は 主ボタン→補足→副ボタン→リンク。com_top_cta.php は締めの CTA と共用なので CSS の order で並べ替える） */
@media only screen and (min-width: 769px) {
    .member-benefit-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 5%;      /* 画像列（.member-benefit-visuals）と同じ余白・間隔 */
        padding: 0 5%;
        align-items: center;
        margin: 8px 0 0;
    }
    .member-benefit-actions .member-benefit-btn {
        margin: 10px 0;
        min-width: 0;
    }
    /* ボタンが 1 つだけ（模試の無い資格のプレミアム会員など）は 2 列の中央に */
    .member-benefit-actions a.member-benefit-btn:only-of-type {
        grid-column: 1 / -1;
        justify-self: center;
        min-width: 260px;
    }
    .member-benefit-actions .member-benefit-btn-note {
        grid-column: 1 / -1;
        order: 10;
        margin: -2px 0 6px;
    }
    .member-benefit-actions .member-benefit-link {
        grid-column: 1 / -1;
        order: 11;
        margin: 2px 0 0;
    }
}
@media only screen and (max-width: 768px) {
    .member-benefit {
        /* モバイルはボタンを画像より上に置き、ファーストビューに CTA を入れる */
        grid-template-areas:
            "eyebrow"
            "lead"
            "subtext"
            "buttons"
            "visuals";
        row-gap: 14px;
        margin-left: 0;
        margin-right: 0;
    }
    .member-benefit-eyebrow {
        font-size: 13px;
        margin-bottom: -6px !important;   /* row-gap 14px と相殺して見出しに寄せる */
    }
    .member-benefit-lead {
        margin-bottom: 0 !important;
    }
    .member-benefit-lead br.sp-only {
        display: inline;
    }
    .member-benefit-visuals,
    .member-benefit-visuals.is-single {
        grid-template-columns: 1fr;
        row-gap: 20px;
        width: auto;
        padding: 0;
        margin: 0;
    }
    .member-benefit-visual img {
        width: 70%;
    }
    /* スマホ：タップで貼り付く :hover 拡大を無効化し、is-zoomed で拡大 */
    .member-benefit-visual:hover img,
    .member-benefit-visual:focus img {
        transform: none;
        box-shadow: 0 10px 24px rgba(35,47,62,.16);
    }
    .member-benefit-visual.is-zoomed img {
        transform: scale(1.4);
        box-shadow: 0 16px 32px rgba(35,47,62,.24);
        z-index: 1;
    }
}

/* ---- 無料問題カード（com_top_free_questions.php の .lp-stat。定義は main.css） ----
 * Azure では main_azure.css の `.sentence a:not([href$="gif"])…:not(.btn)` が background を !important で当てるため
 * （詳細度 0,5,1）、main.css の `.lp-stat { background:#fff !important }`（0,1,0）が負けてカードが下線グラデーションになる。
 * #main_contents で修飾して詳細度（1,2,1）で勝たせる（プレミアム案内の .premium-guest-cta-btn と同じ手法。2026-09-11） */
#main_contents .lp-stats a.lp-stat {
    background: #fff !important;
    background-image: none !important;
}
#main_contents .lp-stats a.lp-stat:hover {
    background: #f7f7f7 !important;
}

/* ---- 学習サポート機能の図版（com_top_support_function.php の <figure>） ---- */
.top-sec figure {
    border: 2px solid #d3d3d3;
    border-radius: 5px;
    padding: 5px;
    display: block;
    text-align: center;
    margin-left: 20px;
    margin-right: 20px;
}
.top-sec figcaption {
    font-size: 14px;
    color: #555;
}
@media only screen and (max-width: 768px) {
    .top-sec figure {
        margin-left: 0px;
        margin-right: 0px;
    }
}

/* ---- 締めの CTA（com_top_closing_cta.php） ---- */
.top-closing {
    border: 1px solid #FFD9A0;
    border-radius: 10px;
    background: #fff8ec;
    padding: 6px 16px 10px;
    /* 左右 20px は「受験の感想・アドバイス」の引用枠（{kbn}.css の blockquote: margin 20px）と端を揃える（2026-09-11） */
    margin: 30px 20px 0;
}
/* Azure は枠色をプレミアム案内のゲスト向け導線（com.css の .premium-guest-cta。--pg-accent = #0078d4）と同じベンダー色に */
.top-closing.is-azure {
    border-color: var(--tc-accent, #0078d4);
}
.top-closing h3 {
    margin-top: 10px;
}
.top-closing-actions {
    max-width: 520px;
    margin: 0 auto;
}
.top-closing-actions .member-benefit-btn {
    margin: 12px 0;
}
.top-closing-actions .member-benefit-btn-note {
    margin: -4px 0 12px;
}
.top-closing-actions .member-benefit-link {
    margin: 0 0 12px;
}
.top-closing-note {
    text-align: center;
}
body.night .top-closing {
    background: transparent;
}

/* ---- 次に受験したい資格（com_top_next_certs.php。「アンケート結果」内の小見出し） ---- */
/* アンケートの横バー。資格名を <a> にしたいので canvas ではなく HTML + CSS で描く。
   見た目は合格対策ダッシュボードの「サービス別の成績」（css/report.css の .metric-* / .score-bar）に合わせ、
   定義だけをここへ複写する（top.css だけで完結させ、report.css は読み込まない）。
   1 行 = 資格名（バーの左上）＋ バーと割合。report.css の 480px 以下と同じ縦積みを全幅で使う */
.top-nextbars {
    /* 左右 20px は「受験の感想・アドバイス」の引用枠（{kbn}.css の blockquote: margin 20px）に合わせる（2026-09-09） */
    margin: 6px 20px 4px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.top-nextbars .metric-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: center;
    padding: 11px 0;                    /* 左右は .top-nextbars の margin 側で取る（引用枠の外縁と資格名・バー・割合の端をそろえる） */
    border-bottom: 1px solid #e6eaf0;   /* report.css の var(--line) */
}
.top-nextbars .metric-row:last-child {
    border-bottom: 0;
}
.top-nextbars a.metric-row {
    color: inherit;
    text-decoration: none;
    /* main_ja.css の .sentence a:not(...) は詳細度が高く（属性セレクタ 3 つ分）通常の指定では勝てないため
       下線グラデーションと左右パディングの打ち消しだけ !important を使う */
    background: none !important;
    padding: 11px 0 !important;
}
.top-nextbars a.metric-row:hover {
    background: #fff8ef !important;
}
.top-nextbars .metric-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    min-width: 0;
}
.top-nextbars .metric-name {
    font-size: 15px;
    /* report.css は bold（成績の主役が資格名）だが、ここは割合を読ませる図なので通常の太さにする（2026-09-08） */
    font-weight: normal;
    color: #33414f;
    line-height: 1.35;
}
.top-nextbars .metric-name b {
    font-weight: normal;
    color: inherit;   /* .sentence b の色指定を打ち消す */
}
.top-nextbars .metric-group {
    display: grid;
    /* 割合は小数第 1 位まで出すので、report.css の 42px（整数前提）より少し広く取る */
    grid-template-columns: minmax(0, 1fr) 52px;
    gap: 8px;
    align-items: center;
    min-width: 0;
}
.top-nextbars .metric-chart-box {
    height: 14px;
    border-radius: 7px;
    background: #edf0f5;
    overflow: hidden;
}
.top-nextbars .score-bar {
    height: 14px;
    border-radius: 7px;
    background: #f59331;   /* report.css の var(--orange)。成績と違い割合なので値による色分けはしない */
    transition: width .5s ease;
}
.top-nextbars .metric-pct {
    font-size: 15px;
    font-weight: normal;   /* report.css は 800。資格名と揃えて通常の太さにする（2026-09-08） */
    color: #33414f;
    text-align: right;
    white-space: nowrap;
}
body.night .top-nextbars .metric-chart-box {
    background: #444;
}
body.night .top-nextbars a.metric-row:hover {
    background: #333 !important;
}
body.night .top-nextbars .metric-name,
body.night .top-nextbars .metric-pct {
    color: inherit;
}

/* ---- 次に目指す資格のカード（next_survey が無い資格のフォールバック） ---- */
.top-next-cards .lp-stat {
    position: relative;
    padding-top: 22px !important;
}
.top-next-desc {
    display: block;
    font-size: 12px;
    color: #555;
    margin-top: 4px;
    line-height: 1.5;
}
.top-next-tag {
    position: absolute;
    top: 6px;
    left: 8px;
    font-size: 10px;
    color: #fff;
    background: #FF9900;
    border-radius: 3px;
    padding: 1px 6px;
}
.top-next-hub {
    text-align: center;
}

/* ---- アンケート結果（com_top_survey.php の円グラフ。データは data/site/index/{kbn}.yaml） ---- */
/* 学習期間と職種を横並び。見出しとグラフをそれぞれ同じ行に置き、列をまたいで上端をそろえる */
.top-survey-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    column-gap: 16px;
}
.top-survey-head  { grid-column: 1; grid-row: 1; }
.top-survey-head2 { grid-column: 2; grid-row: 1; }
.top-survey-chart {
    /* 凡例を出さずスライス内にラベルを描くため、円はできるだけ大きく取る */
    grid-column: 1;
    grid-row: 2;
    position: relative;
    height: 300px;
    margin: 4px 0 18px;
}
.top-survey-chart2 { grid-column: 2; grid-row: 2; }
@media only screen and (max-width: 768px) {
    /* スマホは 1 列に積む（行指定を解除して記述順に並べる） */
    .top-survey-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        grid-auto-flow: row;
    }
    .top-survey-head, .top-survey-head2,
    .top-survey-chart, .top-survey-chart2 {
        grid-column: 1;
        grid-row: auto;
    }
    .top-survey-chart {
        height: 300px;
        max-width: 340px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ---------- 受験の感想・アドバイス: 出典の属性行（2026-09-14） ----------
   各引用（{kbn}.css の blockquote。斜体・灰地）の末尾に「合格・1ヵ月・エンジニア（2026年4月）」を右寄せで出す。
   本文と区別できるよう小さめ・薄め・非斜体。文言は data/site/index/{kbn}.yaml の voices[].meta から組む */
.top-voice-meta {
    display: block;
    margin-top: 6px;
    text-align: right;
    font-size: 0.85em;
    font-style: normal;
    color: #888;
}

/* ============================================================
 * 第 3 版（2026-11-28。docs/report/2026-11-27-top-page-v3-implementation-plan.md）
 * ============================================================ */

/* ---- アイキャッチのカード（com_top_member_benefit.php。画像の代わりに HTML/CSS で描く） ----
 * 2 列のグリッドの高さは高い方にそろうので、各列を縦の flex にしてカードを伸ばし、左右の大きさをそろえる */
.member-benefit-visuals { align-items: stretch; }
.member-benefit-visual { display: flex; flex-direction: column; }
.top-card {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    text-align: left;
    background: #fff;
    border: 1px solid #d3d3d3;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(35,47,62,.16);
    overflow: hidden;
    line-height: 1.5;
    font-size: 13px;
    color: #262626;
}
.top-card-bar {
    background: #232f3e;
    color: #FF9900;
    font-size: 12px;
    padding: 5px 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.top-card-h { margin: 10px 12px 6px; font-weight: bold; color: #FF9900; font-size: 13px; }
/* 模試の結果 */
.top-card-mock { justify-content: space-between; padding-bottom: 12px; }
.top-mock-score { text-align: center; margin-top: 10px; }
.top-mock-score b { font-size: 44px; font-weight: 800; letter-spacing: -.02em; color: #262626; }
.top-mock-score span { font-size: 15px; color: #777; margin-left: 4px; }
.top-mock-badge {
    width: 96px; margin: 2px auto 0; padding: 4px 0;
    border-radius: 999px; background: #2e9e5b; color: #fff;
    font-weight: bold; text-align: center; font-size: 14px;
}
.top-mock-sub { text-align: center; color: #666; font-size: 12px; margin-top: 6px; }
.top-mock-dom { margin: 0 12px 7px; }
.top-mock-dom-name { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; }
.top-mock-dom-name span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-mock-dom-track { height: 9px; background: #edf0f5; border-radius: 5px; overflow: hidden; margin-top: 2px; }
.top-mock-dom-fill { height: 100%; background: #2e9e5b; border-radius: 5px; }
.top-mock-dom-fill.is-low { background: #f59331; }
/* 徹底解説＋AI に質問 */
.top-hook {
    margin: 0 12px; padding: 8px 10px;
    background: #fff8ef; border-left: 4px solid #FF9900; border-radius: 4px; font-size: 13px;
}
.top-hook b, .top-ai-a b { color: #262626; }
.top-chips { margin: 8px 12px 10px; display: flex; flex-wrap: wrap; gap: 4px; }
.top-chips span { font-size: 11px; padding: 1px 7px; border: 1px solid #f0c48a; border-radius: 999px; color: #9a5b00; background: #fff; }
.top-ai {
    margin: auto 12px 12px; padding: 8px 10px 10px;   /* auto: カードを伸ばしたとき AI の欄を下端に寄せる */
    border: 1px solid #cfd8e3; border-radius: 8px; background: #f6f8fb;
}
.top-ai-head { font-weight: bold; font-size: 12px; color: #232f3e; margin-bottom: 6px; }
.top-ai-head::before { content: "AI"; display: inline-block; margin-right: 5px; padding: 0 5px; border-radius: 3px; background: #232f3e; color: #fff; font-size: 10px; }
.top-ai-q {
    margin-left: auto; width: fit-content; max-width: 96%;
    padding: 4px 9px; border-radius: 10px 10px 2px 10px; background: #FF9900; color: #fff; font-size: 12px;
}
.top-ai-a {
    margin-top: 6px; max-width: 92%;
    padding: 6px 9px; border-radius: 10px 10px 10px 2px; background: #fff; border: 1px solid #dde3ea; font-size: 12px;
}

/* ---- 合格者の声（ボタンの下。職種で切り替え） ---- */
.top-voicebox {
    grid-area: voices;
    margin: 6px 5% 0;
    padding: 12px 14px 8px;
    border: 1px solid #e3e7ee;
    border-radius: 10px;
    background: #fafbfc;
}
@media only screen and (min-width: 769px) {
    .member-benefit { grid-template-areas: "eyebrow" "lead" "subtext" "visuals" "buttons" "voices"; }
}
@media only screen and (max-width: 768px) {
    /* スマホは ボタン → カード の順（2026-09-11 から）。合格者の声は最後 */
    .member-benefit { grid-template-areas: "eyebrow" "lead" "subtext" "buttons" "visuals" "voices"; }
    /* 列を中身の幅で広げない（2026-12-01）。カードの帯・分野名は 1 行で省略する指定なので、
       1fr のままだと長い題の資格でカードが画面の右へはみ出す */
    .member-benefit-visuals,
    .member-benefit-visuals.is-single { grid-template-columns: minmax(0, 1fr); }
    .member-benefit-visual { min-width: 0; }
    .top-card { flex: none; min-width: 0; }
    .top-card-mock { justify-content: flex-start; }
    .top-voicebox { margin: 6px 0 0; }
}
.top-voicebox-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.top-voicebox-title { font-weight: bold; color: #232f3e; }
.top-voicebox-tabs { display: inline-flex; border: 1px solid #cfd8e3; border-radius: 999px; overflow: hidden; }
.top-voicebox-tab { border: 0; background: #fff; color: #33414f; padding: 4px 14px; font-size: 13px; cursor: pointer; }
.top-voicebox-tab + .top-voicebox-tab { border-left: 1px solid #cfd8e3; }
.top-voicebox-tab.is-on { background: #232f3e; color: #fff; font-weight: bold; }
.top-voicebox-voice { display: none; margin: 10px 0 4px !important; }
.top-voicebox-voice.is-on { display: block; }
.top-voicebox-more { text-align: right; font-size: 13px; }
/* 夜間表示（body.night）用の指定は置かない（2026-12-01）。トップは夜間でも本文の背景が明るいままなので、
   枠だけ暗くすると題・数字が読めなくなる。声の枠・登録の帯・実績のタイルとも同じ */

/* ---- 本サイトの特徴（com_top_features.php）: 順位の印・会員区分のラベル ---- */
.top-feat-lead { margin: 10px 12px 0 !important; font-size: 13px; color: #666; }
.top-rank {
    display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px;
    background: #232f3e; color: #fff; font-size: 11px; font-weight: bold; vertical-align: middle; line-height: 1.6;
}
.top-new {
    display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 3px;
    background: #e53935; color: #fff; font-size: 11px; vertical-align: middle; line-height: 1.6;
}
.top-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0 4px; line-height: 1.4; }
.top-tag { font-size: 11px; font-weight: bold; padding: 1px 7px; border-radius: 3px; border: 1px solid; }
.top-tag-guest   { color: #2e7d32; border-color: #a5d6a7; background: #f1f8f1; }
.top-tag-free    { color: #1565c0; border-color: #90caf9; background: #f0f6fd; }
.top-tag-premium { color: #8d5a00; border-color: #f0c48a; background: #fff8ef; }

/* ---- 登録の帯（非会員だけ） ---- */
.top-band {
    margin: 18px 10px 0;
    padding: 18px 16px 12px;
    border: 2px solid var(--top-accent, #FFA500);
    border-radius: 10px;
    background: #fffaf2;
    text-align: center;
}
.top-band-model {
    margin: -2px 0 16px;
    padding: 14px 20px;
    border-radius: 10px;
    background: linear-gradient(135deg, #232f3e 0%, #2f4157 100%);
    color: #fff;
    text-align: left;
    box-shadow: 0 6px 16px rgba(35,47,62,.22);
}
.top-band-model-label {
    display: inline-block; margin-bottom: 4px; padding: 0 8px;
    border: 1px solid rgba(255,153,0,.7); border-radius: 999px;
    color: #FFB547; font-size: 11px; font-weight: bold; letter-spacing: .04em;
}
.top-band-model-text { font-size: 15px; line-height: 1.7; }
.top-band-model-text b { color: #FFB547; font-size: 20px; font-weight: 800; }
.top-band-model-sub { color: rgba(255,255,255,.82); font-size: 14px; }
.top-band-title { font-weight: bold; font-size: 17px; color: #232f3e; }
/* com.css の .sentence ul（青い破線の枠・背景）を打ち消す */
.top-band-list, .top-record-list, .top-record-list ul { border: 0 !important; background: none !important; box-shadow: none !important; }
.top-band-list {
    list-style: none !important; display: flex; flex-wrap: wrap; justify-content: center;
    gap: 6px 10px; margin: 12px 0 4px !important; padding: 0 !important;
}
.top-band-list li {
    list-style: none !important; margin: 0 !important; padding: 4px 12px !important;
    background: #fff; border: 1px solid #f0c48a; border-radius: 999px; font-size: 14px;
}
.top-band-list li::before { content: "✓ "; color: #2e9e5b; font-weight: bold; }
.top-band-actions .member-benefit-btn { margin: 14px 30px 0; }
.top-band-free { margin-top: 12px; font-size: 13px; color: #555; }
.top-band-free a { margin: 0 4px; }
@media only screen and (min-width: 769px) {
    .top-band-actions { display: grid; grid-template-columns: 1fr 1fr; column-gap: 5%; padding: 0 5%; }
    .top-band-actions .member-benefit-btn { margin: 14px 0 0; }
}
@media only screen and (max-width: 768px) {
    .top-band-model { text-align: center; padding: 14px; }
    .top-band-model-text { font-size: 14px; }
}

/* ---- 数字で見る実績（com_top_track_record.php） ---- */
.top-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 18px 10px 14px; }
.top-tile {
    text-align: center; padding: 16px 6px 12px;
    background: #fff; border: 1px solid #e3e7ee; border-top: 4px solid #FF9900;   /* 上辺だけアクセント色 */
    border-radius: 8px; box-shadow: 0 2px 8px rgba(35,47,62,.06);
}
.top-tile-num { font-size: 28px; font-weight: 800; color: #232f3e; line-height: 1.2; white-space: nowrap; }
.top-tile-num small { font-size: 13px; font-weight: bold; margin-left: 2px; }
.top-tile-label { margin-top: 6px; font-size: 13px; color: #555; }
.top-record-list { padding: 0 0 0 26px !important; margin: 4px 10px 0 !important; }
.top-record-list > li { margin-bottom: 6px; }
.top-record-list ul { padding: 0 0 0 4px !important; margin: 4px 0 0 18px !important; font-size: 14px; }
@media only screen and (max-width: 768px) {
    .top-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .top-tile-num { font-size: 24px; }
}
