
  * { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

  body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.75;
    padding: clamp(22px, 4vw, 52px) clamp(16px, 4vw, 32px) 96px;
  }

  main { max-width: 900px; margin: 0 auto; }

  a { color: var(--navy-deep); }
  :focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

  /* ---------- masthead ---------- */
  .eyebrow {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--navy);
    font-weight: 600;
  }
  h1 {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.75rem, 4.4vw, 2.7rem);
    line-height: 1.25;
    margin: 0.3em 0 0.35em;
    text-wrap: balance;
    letter-spacing: 0.005em;
  }
  .lede {
    color: var(--ink-soft);
    max-width: 60ch;
    margin: 0 0 clamp(26px, 4vw, 38px);
    font-size: 1rem;
  }

  /* ---------- facts ---------- */
  .facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(158px, 100%), 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: clamp(30px, 4vw, 44px);
  }
  .facts div { background: var(--sheet); padding: 15px 18px; }
  .facts .k {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 5px;
  }
  .facts .v { font-weight: 700; font-size: 0.94rem; line-height: 1.5; }

  /* ---------- progress ---------- */
  .status-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    background: var(--sheet);
    border: 1px solid var(--line);
    border-left: 6px solid var(--orange);
    border-radius: 12px;
    padding: 16px 22px;
    margin-bottom: clamp(30px, 4vw, 42px);
  }
  .status-bar .count {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--navy);
    font-variant-numeric: tabular-nums;
  }
  .status-bar .count small { font-size: 0.9rem; color: var(--ink-faint); font-weight: 500; }
  .status-bar p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }

  .track {
    flex: 1 1 200px;
    min-width: 160px;
    height: 10px;
    border-radius: 999px;
    background: var(--line-soft);
    overflow: hidden;
    border: 1px solid var(--line);
  }
  .track i { display: block; height: 100%; width: 0%; background: var(--orange); }

  h2.section-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.18rem;
    margin: 0 0 6px;
  }
  .section-note {
    color: var(--ink-faint);
    font-size: 0.86rem;
    margin: 0 0 20px;
  }

  /* ---------- timeline ---------- */
  .timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-left: 46px;
  }
  .timeline::before {
    content: "";
    position: absolute;
    left: 17px;
    top: 14px;
    bottom: 14px;
    width: 2px;
    background: var(--line);
  }

  .session {
    position: relative;
    background: var(--sheet);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 6px 20px -16px var(--shadow);
  }
  .session::before {
    content: "";
    position: absolute;
    left: -37px;
    top: 22px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--paper);
    border: 3px solid var(--line);
  }
  .session[data-status="done"]::before {
    background: var(--orange);
    border-color: var(--orange);
  }
  .session[data-status="done"] { border-left: 4px solid var(--orange); }

  .session-head {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 16px 20px;
  }
  details.session .session-head { cursor: pointer; list-style: none; }
  details.session .session-head::-webkit-details-marker { display: none; }
  details.session[open] .session-head { border-bottom: 1px solid var(--line-soft); }

  /* 回数バッジ（数字タイル） */
  .no {
    flex: none;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.55rem;
    line-height: 1;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
    background: var(--sheet-sunk);
    color: var(--ink-faint);
    border: 2px solid var(--line);
    transition: transform .18s ease, box-shadow .18s ease;
  }
  /* 実施済みは塗りつぶし。数字は濃い茶で、明暗どちらのテーマでも読める */
  .session[data-status="done"] .no {
    background: var(--orange);
    color: #3D1D00;
    border-color: var(--orange);
    box-shadow: 0 5px 14px -5px color-mix(in srgb, var(--orange) 70%, transparent);
  }
  details.session[open] .no { transform: translateY(-1px); }
  /* 番外編（休講予定日に実施した回）は数字の代わりに EX。回数には数えない */
  .session.extra .no { font-size: 1.02rem; letter-spacing: .04em; }
  /* 休講日はダッシュのまま、枠線を破線に */
  .session.off .no {
    background: transparent;
    border-style: dashed;
    font-size: 1.15rem;
  }
  .date {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.12rem;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    flex: none;
  }
  .dow { color: var(--ink-faint); font-size: 0.9rem; font-weight: 700; }
  .headline {
    color: var(--ink-soft);
    font-size: 0.94rem;
    flex: 1 1 220px;
    min-width: 0;
  }

  .chip {
    flex: none;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.76rem;
    padding: 4px 13px;
    border-radius: 999px;
    white-space: nowrap;
  }
  .chip.upcoming {
    background: var(--sheet-sunk);
    color: var(--ink-faint);
    border: 1px solid var(--line);
  }
  .session.off { opacity: .55; }
  /* 休講日でも、自宅で読む資料がある回は薄くしない */
  .session.off.has-res { opacity: 1; }
  .chip.off { background: var(--paper); color: var(--ink-soft); }
  .chip.done {
    background: color-mix(in srgb, var(--orange) 15%, var(--sheet));
    color: var(--orange-deep);
    border: 1px solid color-mix(in srgb, var(--orange) 42%, var(--line));
  }

  .chev {
    flex: none;
    width: 18px; height: 18px;
    stroke: var(--ink-faint);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .18s ease;
  }
  details.session[open] .chev { transform: rotate(180deg); }

  .session-body { padding: 16px 20px 20px; }
  .session-body > :first-child { margin-top: 0; }
  .session-body > :last-child { margin-bottom: 0; }
  .session-body h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin: 20px 0 8px;
  }
  .session-body ul { margin: 0 0 14px; padding-left: 1.2em; }
  .session-body li { margin-bottom: 7px; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.65; }
  .session-body li::marker { color: var(--orange); }
  /* 要点は3件だけ見せ、残りは「ほかの要点」で折りたたむ */
  details.more { margin: -4px 0 14px; }
  details.more > summary {
    cursor: pointer;
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.84rem;
    color: var(--navy-deep);
    background: var(--sheet-sunk);
    border: 1px dashed var(--line);
    border-radius: 999px;
    padding: 6px 14px;
  }
  details.more > summary::-webkit-details-marker { display: none; }
  details.more > summary::after { content: "＋"; color: var(--ink-faint); }
  details.more[open] > summary::after { content: "−"; }
  details.more[open] > summary { margin-bottom: 10px; }
  details.more ul { margin-bottom: 0; }
  .session-body p { color: var(--ink-soft); margin: 0 0 12px; }
  .session-body > p:first-child { font-size: 0.9rem; color: var(--ink-faint); margin: 0 0 10px; }
  .session-body li b { color: var(--ink); }
  .session-body code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    padding: 1px 5px;
    border-radius: 4px;
    background: var(--sheet-sunk);
    border: 1px solid var(--line-soft);
  }

  .placeholder {
    padding: 4px 20px 18px;
    color: var(--ink-faint);
    font-size: 0.87rem;
  }

  /* ---------- how it works ---------- */
  .panel {
    background: var(--sheet);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: clamp(20px, 3vw, 30px);
    margin-top: clamp(34px, 5vw, 52px);
  }
  .panel h2 { margin-top: 0; }
  .flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
    gap: 14px;
    margin-top: 18px;
  }
  .step {
    background: var(--sheet-sunk);
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    padding: 15px 17px;
  }
  .step .n {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--orange-deep);
    display: block;
    margin-bottom: 6px;
  }
  .step strong {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.98rem;
    display: block;
    margin-bottom: 5px;
  }
  .step span.d { color: var(--ink-soft); font-size: 0.86rem; }
  a.step.resource {
    display: block;
    text-decoration: none;
    color: inherit;
    border-left: 4px solid var(--orange);
    transition: transform .15s ease, box-shadow .15s ease;
  }
  a.step.resource:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -12px var(--shadow);
  }
  a.step.resource strong { color: var(--navy-deep); }
  a.step.resource strong::after { content: " \2192"; }
  a.step.resource:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

  /* ---------- 配布資料カード（群分け＋回番号バッジ） ---------- */
  .res-group { margin-top: clamp(22px, 3vw, 32px); }
  .res-group + .res-group { margin-top: clamp(26px, 3.4vw, 38px); }
  .res-h {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 0.98rem;
    color: var(--ink);
  }
  .res-i {
    width: 17px; height: 17px; flex: none;
    stroke: var(--orange-deep); fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  }
  .res-c {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--ink-faint);
  }
  .flow.wide { grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr)); }

  a.step.resource.rescard {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    column-gap: 15px;
    align-content: start;
    border-left: 1px solid var(--line-soft);
    padding: 18px 18px 20px;
  }
  /* 大きめのアイコン（左側・縦につらぬく） */
  .rescard .ri {
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 54px; height: 54px;
    box-sizing: border-box;
    padding: 12px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--orange) 13%, var(--sheet));
    color: var(--orange-deep);
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: background .15s ease;
  }
  a.step.resource.rescard:hover .ri { background: color-mix(in srgb, var(--orange) 24%, var(--sheet)); }
  .rescard .n { grid-column: 2; display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
  .res-no {
    flex: none;
    min-width: 28px; height: 28px; padding: 0 7px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 9px;
    font-family: var(--font-mono);
    font-style: normal;
    font-weight: 600;
    font-size: 0.86rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    color: var(--orange-deep);
    background: color-mix(in srgb, var(--orange) 15%, var(--sheet));
    border: 1px solid color-mix(in srgb, var(--orange) 40%, var(--line));
  }
  .res-t { font-size: 0.68rem; letter-spacing: 0.1em; color: var(--ink-faint); }
  .rescard strong {
    grid-column: 2;
    font-size: 1.02rem;
    line-height: 1.45;
    margin-bottom: 6px;
    text-wrap: pretty;
  }
  .rescard span.d {
    grid-column: 2;
    font-size: 0.83rem;
    line-height: 1.7;
    color: var(--ink-faint);
  }

  /* ---------- 目立たせる：送信ストップ！（ゲーム） ---------- */
  a.step.resource.rescard.featured {
    grid-column: 1 / -1;
    border: 2px solid var(--orange);
    border-left: 10px solid var(--orange);
    background: linear-gradient(135deg, color-mix(in srgb, var(--orange) 14%, var(--sheet)) 0%, var(--sheet) 65%);
    box-shadow: 0 12px 30px -18px var(--shadow);
  }
  a.step.resource.rescard.featured { grid-template-columns: 76px minmax(0, 1fr); column-gap: 20px; padding: 22px 24px 24px; }
  .featured .ri { width: 76px; height: 76px; padding: 16px; border-radius: 22px; }
  .featured .cta { grid-column: 2; justify-self: start; }
  .featured .n { flex-wrap: wrap; }
  .featured .res-no {
    height: 34px; padding: 0 14px;
    font-size: 1rem; letter-spacing: 0.08em;
    color: #fff; background: var(--orange); border-color: var(--orange);
  }
  .featured .res-t { font-size: 0.8rem; font-weight: 700; color: var(--orange-deep); }
  .featured strong { font-size: clamp(1.3rem, 2.6vw, 1.7rem); line-height: 1.4; }
  .featured span.d { font-size: 0.95rem; }
  .featured .cta {
    align-self: flex-start;
    margin-top: 14px; padding: 10px 20px;
    border-radius: 999px;
    background: var(--orange); color: #fff;
    font-weight: 700; font-size: 0.95rem;
  }
  .featured:hover .cta { background: var(--orange-deep); }


  /* ---------- spotlight（最優先の案内） ---------- */
  a.spotlight {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: inherit;
    background: color-mix(in srgb, var(--orange) 10%, var(--sheet));
    border: 1px solid color-mix(in srgb, var(--orange) 40%, var(--line));
    border-left: 6px solid var(--orange);
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: clamp(30px, 4vw, 42px);
    box-shadow: 0 2px 10px var(--shadow);
    transition: transform .12s ease, box-shadow .12s ease;
  }
  a.spotlight:hover { transform: translateY(-2px); box-shadow: 0 8px 20px var(--shadow); }
  a.spotlight .n {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--orange-deep);
  }
  a.spotlight strong {
    display: block;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.06rem, 2.7vw, 1.32rem);
    line-height: 1.45;
    margin: 7px 0 7px;
    color: var(--ink);
  }
  a.spotlight span.d {
    display: block;
    color: var(--ink-soft);
    font-size: 0.88rem;
    line-height: 1.75;
  }
  a.spotlight span.d b { color: var(--orange-deep); }
  a.spotlight .go {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    color: var(--paper);
    background: var(--ink);
    border-radius: 999px;
    padding: 11px 22px;
  }

  .callout {
    margin-top: 22px;
    background: color-mix(in srgb, var(--orange) 8%, var(--sheet));
    border: 1px solid color-mix(in srgb, var(--orange) 34%, var(--line));
    border-radius: 12px;
    padding: 15px 20px;
    color: var(--ink-soft);
    font-size: 0.9rem;
  }
  .callout strong { color: var(--ink); }

  footer.colophon {
    margin-top: clamp(34px, 5vw, 52px);
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--ink-faint);
    font-size: 0.8rem;
    line-height: 1.8;
  }
  /* 閲覧回数。数が取れなければ hidden のまま出さない */
  .pv {
    display: inline-block;
    margin-top: 10px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
  }
  .pv b {
    font-weight: 600;
    color: var(--ink-soft);
  }

  @media (max-width: 560px) {
    .timeline { padding-left: 34px; }
    .timeline::before { left: 11px; }
    .session::before { left: -29px; top: 20px; width: 12px; height: 12px; }
    .session-head { gap: 10px; padding: 14px 16px; }
    .no { width: 42px; height: 42px; border-radius: 12px; font-size: 1.35rem; }
    .headline { flex-basis: 100%; }
    .chip { padding: 3px 9px; font-size: 0.7rem; }
    .session-body { padding: 12px 14px 16px; }
    a.step.resource.rescard { grid-template-columns: 46px minmax(0, 1fr); column-gap: 12px; padding: 15px 15px 17px; }
    .rescard .ri { width: 46px; height: 46px; padding: 10px; border-radius: 14px; }
    a.step.resource.rescard.featured { grid-template-columns: 56px minmax(0, 1fr); column-gap: 14px; }
    .featured .ri { width: 56px; height: 56px; padding: 12px; border-radius: 16px; }
    a.spotlight { grid-template-columns: 1fr; }
    a.spotlight .go { justify-self: start; }
    .flow.wide { grid-template-columns: 1fr; }
  }

  /* ---------- リンクボタン ---------- */
  .linkgroup { margin-top: 15px; }
  .linkgroup .lbl {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 9px;
  }
  .btnrow { display: flex; flex-wrap: wrap; gap: 9px; }
  a.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55em;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.45;
    text-decoration: none;
    color: var(--navy-deep);
    background: var(--sheet);
    border: 1.5px solid var(--line);
    border-radius: 999px;
    padding: 10px 19px;
    transition: border-color .15s, background .15s, transform .15s;
  }
  a.btn::after { content: "→"; color: var(--ink-faint); font-weight: 700; }
  a.btn:hover { border-color: var(--navy); background: var(--sheet-sunk); transform: translateY(-1px); }
  a.btn:hover::after { color: var(--navy); }
  a.btn.primary { color: var(--paper); background: var(--ink); border-color: var(--ink); }
  a.btn.primary::after { color: var(--paper); }
  a.btn.primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
  .ph-note { margin: 14px 0 0; font-size: 0.84rem; color: var(--ink-faint); }

  a.btn.form {
    color: var(--orange-deep);
    border-color: color-mix(in srgb, var(--orange) 45%, var(--line));
    background: color-mix(in srgb, var(--orange) 8%, var(--sheet));
  }
  a.btn.form::after { content: "↗"; color: var(--orange-deep); }
  a.btn.form:hover {
    border-color: var(--orange);
    background: color-mix(in srgb, var(--orange) 15%, var(--sheet));
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
      animation-duration: .001ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: .001ms !important;
      scroll-behavior: auto !important;
    }
  }


/* =========================================================================
   トップページ刷新（2026-09 デザイン刷新 Phase 3）
   -------------------------------------------------------------------------
   ここから下が、今回の刷新で足した分です。上の既存ルールを打ち消す形で
   後ろに置いています。HTML の構造と末尾の JS は変えていません。
   ========================================================================= */

/* --- 版面を広げる。カードを3列並べるため --------------------------------- */
main { max-width: 1180px; padding-inline: 20px; }

/* --- 見出しと本文の差を大きくする --------------------------------------- */
h1 { font-size: clamp(1.9rem, 1.1rem + 2.6vw, 2.7rem); line-height: 1.25; letter-spacing: .01em; }
.section-title { font-size: clamp(1.25rem, 1rem + .9vw, 1.6rem); }
.lede { font-size: 1.02rem; line-height: 1.95; max-width: 64ch; }

/* --- ヒーロー: 事実と進捗をひとつの帯にまとめる -------------------------- */
.hero-band {
  display: grid; grid-template-columns: 1fr auto; gap: 20px 28px;
  align-items: center; margin: 22px 0 8px; padding: 20px 22px;
  background: var(--sheet); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 10px 30px -24px var(--shadow);
}
.hero-band .facts { margin: 0; }
.hero-band .status-bar { margin: 0; min-width: 260px; }
@media (max-width: 760px) { .hero-band { grid-template-columns: 1fr; } }

/* --- 今日の回: 画面のいちばん目立つ場所にする ---------------------------- */
#today {
  border: 2px solid var(--orange);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--orange) 7%, var(--sheet)) 0%, var(--sheet) 120px);
  box-shadow: 0 18px 46px -30px var(--shadow);
}
#today .section-title { font-size: clamp(1.35rem, 1rem + 1.2vw, 1.85rem); }
#today .section-title::before {
  content: "TODAY"; display: inline-block; margin-right: 12px;
  padding: 4px 10px; border-radius: 999px; vertical-align: .18em;
  background: var(--orange-deep); color: #fff;
  font-family: var(--font-mono); font-size: .62rem; font-weight: 600; letter-spacing: .12em;
}
#today[data-when="next"] .section-title::before { content: "NEXT"; background: var(--navy); }

/* --- 各回の記録: 縦一列のアコーディオンから、カードの並びへ --------------- */
.timeline {
  padding-left: 0;
  display: grid; gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.timeline::before { display: none; }          /* 縦のガイド線は使わない */
.session::before, .session::after { display: none; }
.session { transition: transform .16s ease, box-shadow .16s ease; }
.session:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -22px var(--shadow); }
.session-head { align-items: flex-start; padding: 16px 18px; }
.session .headline { flex: 1 1 100%; font-size: 1.02rem; line-height: 1.5; }
.session .chev { margin-left: auto; }

/* 開いた回は横いっぱいに広げて、本文を読みやすくする */
.session[open] { grid-column: 1 / -1; }
.session[open] .session-body { max-width: 74ch; }

@media (max-width: 1000px) { .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .timeline { grid-template-columns: 1fr; } }

/* --- 配布資料: タブで絞り込む -------------------------------------------- */
.res-tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 14px 0 20px; padding-bottom: 2px;
}
.res-tab {
  appearance: none; cursor: pointer;
  padding: 9px 15px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--sheet); color: var(--ink-soft);
  font-family: var(--font-body); font-size: .9rem; line-height: 1;
}
.res-tab:hover { border-color: var(--navy); color: var(--navy); }
.res-tab[aria-selected="true"] {
  background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 700;
}
.res-tab .c {
  margin-left: 7px; font-family: var(--font-mono); font-size: .76rem; opacity: .75;
}
.res-group[hidden] { display: none; }

/* --- みなさんの声: 2列の引用カードにする -------------------------------- */
#voices .flow.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { #voices .flow.wide { grid-template-columns: 1fr; } }

/* --- 動きは控えめに。設定で切れるようにする ------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .session, .session:hover { transition: none; transform: none; }
}

/* --- ヒーロー帯の割り付けを整える（facts が2列に折れるのを防ぐ） --------- */
.hero-band { grid-template-columns: minmax(430px, 1.25fr) minmax(280px, 1fr); }
.hero-band .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
@media (max-width: 900px) {
  .hero-band { grid-template-columns: 1fr; }
  .hero-band .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .hero-band .facts { grid-template-columns: 1fr; }
}

/* --- カードのサムネイル（Phase 4） ------------------------------------- */
/* 画像がまだ無いページでは img 自体が出力されないので、レイアウトは崩れません */
.session .thumb,
.rescard .thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  background: var(--sheet-sunk);
  border-bottom: 1px solid var(--line-soft);
}
.session .thumb { border-radius: 13px 13px 0 0; }
.rescard { overflow: hidden; }
.rescard .thumb { border-radius: 12px 12px 0 0; margin: -1px -1px 12px; width: calc(100% + 2px); }

/* サムネイルが付いた回カードは、見出しの上側の余白を詰める */
.session:has(.thumb) .session-head { padding-top: 14px; }

/* --- サムネイルの置き場を直す（Phase 4 の修正） ----------------------- */
/* 各回カード: summary は flex なので、1行まるごと使って先頭に置く */
.session-head .thumb {
  flex: 0 0 100%;
  order: -1;
  margin: -16px -18px 12px;
  width: calc(100% + 36px);
  border-radius: 13px 13px 0 0;
}
/* 「今日の段取り」のカードは幅が広いので、サムネイルが巨大にならないよう抑える */
#today-flow { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 340px)); justify-content: start; }
#today-flow .thumb { max-height: 200px; }

/* img の height 属性が aspect-ratio より優先されるので、明示的に打ち消す */
.session .thumb,
.session-head .thumb,
.rescard .thumb { height: auto; }

/* 開いた回は横いっぱいに広がる。高さを抑えつつ、絵は切らずに丸ごと収める
   （cover のままだと横長の帯に切り抜かれ、人物の頭や体が見切れる） */
.session[open] .thumb {
  max-height: 360px;
  object-fit: contain;
}

/* flex: 0 0 100% だと左右の食い込み（-18px ずつ）ぶん右端が足りなくなるので、幅と揃える */
.session-head .thumb { flex-basis: calc(100% + 36px); }

/* --- 受講者の声（事後アンケートより。index の最下部） ------------------- */
.voice-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
@media (max-width: 760px) { .voice-list { grid-template-columns: 1fr; } }
.voice {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 4px 16px;
  align-items: start;
  align-content: start;
  margin: 0;
  background: var(--sheet-sunk);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 16px 18px;
}
.voice img {
  grid-row: 1 / span 2;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--sheet);
  box-shadow: 0 0 0 1px var(--line);
}
.voice blockquote {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.85;
}
.voice blockquote::before { content: "「"; }
.voice blockquote::after  { content: "」"; }
.voice figcaption {
  font-size: 0.8rem;
  color: var(--ink-faint);
}

/* --- トップの標語「AIと、共に生きる。」 ---------------------------------- */
/* 帯は明暗どちらのテーマでも同じ濃紺にする（中の文字を白で固定するため） */
.motto {
  position: relative;
  overflow: hidden;
  margin: clamp(22px, 3.5vw, 34px) 0 clamp(22px, 3.5vw, 34px);
  padding: clamp(26px, 4.5vw, 48px) clamp(22px, 4.5vw, 52px);
  border-radius: 16px;
  background: linear-gradient(120deg, #16396A 0%, #1E4F8F 62%, #2A64AD 100%);
  color: #FFFFFF;
}
.motto::after {                      /* 右奥の淡い円。飾り */
  content: "";
  position: absolute;
  right: -70px;
  top: -90px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}
.motto p { margin: 0; position: relative; }
.motto-k {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: #FFB683;
}
.motto-main {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.1rem, 1.2rem + 4.2vw, 4.2rem);
  line-height: 1.25;
  letter-spacing: 0.04em;
  margin-top: 10px !important;
}
.motto-main em {
  font-style: normal;
  display: inline-block;             /* 「共に生きる。」の途中で折り返さない */
  background: linear-gradient(transparent 68%, rgba(232, 98, 45, 0.85) 68%);
  padding: 0 0.06em;
}
.motto-sub {
  margin-top: 16px !important;
  font-size: clamp(0.98rem, 0.9rem + 0.4vw, 1.15rem);
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.9);
}
.motto-by {
  margin-top: 14px !important;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
}
@media (max-width: 560px) {
  .motto-sub br { display: none; }
}

/* --- サイト内検索（トップの置き場所。中身は assets/js/search.js） ---------- */
.site-search { margin: 0 0 clamp(22px, 3.5vw, 34px); }
.site-search:empty { display: none; }

/* --- 担当の森先生（説明文の下に控えめに1行。くわしくは profile.html） ----- */
.byline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 0.86rem;
  color: var(--ink-soft);
  text-decoration: none;
}
.byline img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
.byline-go { color: var(--navy); }
.byline:hover .byline-go { text-decoration: underline; }
