/* SELLER SPARK の見た目(直し16・2026-11-23 の決定: 形は A2「見出しの横にも小さくスパーくん」・色は「2 大人の黄色」)。
   土台は 企画フォルダーの デザイン案2/案A2_手本_直し/css/style.css。見本に無い部品は、前の CSS の形を新しい色の名前で読む。
   色・角丸・余白・字の大きさの名前と値は DESIGN.md と同じ(点検が照らす)。背景の絵(url())はフォントの読み込みだけ。 */

@font-face {
  font-family: "Shippori Mincho B1";
  src: url("../fonts/mincho-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Zen Kaku Gothic New";
  src: url("../fonts/gothic-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Zen Kaku Gothic New";
  src: url("../fonts/gothic-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SELLER Symbols";
  src: url("../fonts/symbols-400.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* 色(2 大人の黄色。DESIGN.md の colors と同じ。見本 A2 の色の切りかえの2番) */
  --color-bg-top: #FFFFFF;
  --color-bg: #FBF8F1;
  --color-glow: #FFF1CC;
  --color-surface: #FFFFFF;
  --color-well: #F6F2EA;
  --color-ink: #2A2116;
  --color-text: #5A4E3E;
  --color-ink-sub: #6B5F4E;
  --color-accent: #7F5600;
  --color-accent-soft: #FBF3DC;
  --color-accent-line: #E8D6A6;
  --color-line: #EAE3D5;
  --color-line-strong: #D3C7B0;
  --color-spark: #E5A800;
  --color-yellow: #FFD426;
  --color-yellow-hover: #F5C400;
  --color-mark: #F2C200;
  --color-code-bg: #1F1A14;
  --color-code-ink: #EEEEEA;
  --color-on-dark: #FFFFFF;
  --color-ok: #1D6E45;
  --color-ok-bg: #EDF6F0;
  --color-ng: #A8321F;
  --color-ng-bg: #FBEFEC;
  --color-warn: #E08200;
  --color-warn-bg: #FFF0D6;
  --color-warn-ink: #734000;
  --color-focus: #1956CC;
  --color-seg-ship: #9AA3AD;
  --color-seg-other: #D3D8DE;
  --color-yellow-top: #FFD426;
  --color-yellow-bottom: #F5C400;
  --color-yellow-ledge: #D3C7B0;
  --color-yellow-soft: #FBF3DC;
  --color-yellow-tint: #FFFDF8;
  --color-ok-ledge: #1D6E45;
  --color-ok-ink: #1D6E45;
  --color-ng-ink: #A8321F;
  --color-ledge: #EAE3D5;
  --color-ledge-soft: #EAE3D5;
  --color-ledge-pale: #E8D6A6;
  --color-ledge-sub: #EAE3D5;
  --color-ledge-hero: #D3C7B0;
  --color-ledge-dark: #1F1A14;
  --color-tint-line: #EAE3D5;
  --color-rail: #EAE3D5;
  --color-featured-top: #FBF3DC;
  --color-featured-mid: #FFF1CC;

  /* 見本の名前(上の色を指す) */
  --bg-top: var(--color-bg-top);
  --bg-bottom: var(--color-bg);
  --bg-glow: var(--color-glow);
  --surface-solid: var(--color-surface);
  --well: var(--color-well);
  --ink: var(--color-ink);
  --text: var(--color-text);
  --sub: var(--color-ink-sub);
  --accent: var(--color-accent);
  --accent-soft: var(--color-accent-soft);
  --accent-line: var(--color-accent-line);
  --line: var(--color-line);
  --line-strong: var(--color-line-strong);
  --spark: var(--color-spark);
  --btn-bg: var(--color-yellow);
  --btn-hover: var(--color-yellow-hover);
  --mark: var(--color-mark);
  --code-bg: var(--color-code-bg);
  --ok: var(--color-ok);
  --ok-bg: var(--color-ok-bg);
  --ng: var(--color-ng);
  --ng-bg: var(--color-ng-bg);
  --focus: var(--color-focus);
  --seg-ship: var(--color-seg-ship);
  --seg-other: var(--color-seg-other);
  --head-bg: rgba(255, 255, 255, 0.9);
  --surface: rgba(255, 255, 255, 0.8);
  --btn-ink: var(--color-ink);
  --btn-line: var(--color-yellow);
  --shadow: 0 18px 45px rgba(120, 100, 60, 0.12);

  /* 形(見本 A2) */
  --r-pill: 999px;
  --r-card: 16px;
  --r-pic: 12px;
  --font-head: "Shippori Mincho B1", "SELLER Symbols", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  --font-body: "Zen Kaku Gothic New", "SELLER Symbols", "Hiragino Sans", "Yu Gothic", "YuGothic", sans-serif;
  --gutter: 20px;
  --gap-section: 74px;
  --gap-paper: 46px;
  --gap-head: 30px;
  --seal: 28px;

  /* 前の部品が使う値(大きさ・余白・角丸・影。影はほぼ平らに) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --radius-hero: 16px;
  --radius-card: 16px;
  --radius-button: 999px;
  --radius-input: 12px;
  --radius-pill: 999px;
  --font-maru: var(--font-body);
  --font-size-body: 16px;
  --font-size-lead: 18px;
  --font-size-h2: 20px;
  --font-size-h1: 24px;
  --font-size-site: 26px;
  --font-size-top-news: 24px;
  --font-size-top-news-wide: 30px;
  --font-size-daiji: 40px;
  --font-size-daiji-narrow: 32px;
  --font-size-daiji-wide: 64px;
  --line-height-body: 1.7;
  --tap-min: 44px;
  --shadow-white: 0 1px 2px rgba(42, 33, 22, 0.06);
  --shadow-white-pressed: none;
  --shadow-yellow: none;
  --shadow-yellow-pressed: none;
  --shadow-well: inset 0 1px 2px rgba(42, 33, 22, 0.06);
  --shadow-dent: inset 0 1px 2px rgba(42, 33, 22, 0.08);
  --shadow-bump: none;
  --press-duration: 120ms;
  --press-ease: ease-out;
  --state-duration: 200ms;
  --page-max: 600px;
  --lesson-main: 680px;
  --lesson-side: 320px;
  --paper-max: 1240px;
  --shadow-chip: none;
  --shadow-chip-strong: none;
  --shadow-on-yellow: none;
  --shadow-tint: none;
  --shadow-item: none;
  --shadow-sub: none;
  --shadow-dark: 0 2px 6px rgba(42, 33, 22, 0.25);
}

@media (min-width: 960px) {
  :root {
    --gutter: 40px;
    --gap-section: 112px;
    --gap-paper: 80px;
    --gap-head: 38px;
    --seal: 32px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1000px 560px at 100% 0%, var(--bg-glow), transparent 70%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  background-color: var(--bg-top);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 2.05;
  letter-spacing: 0.03em;
  font-feature-settings: "palt" 0;
  overflow-wrap: anywhere;
  word-break: normal;
  line-break: strict;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

p,
ul,
ol,
dl,
dd,
figure,
pre {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

strong,
b {
  color: var(--ink);
  font-weight: 700;
}

.num {
  font-variant-numeric: tabular-nums;
}

.nobreak {
  display: inline-block;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 50;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--surface-solid);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.ext-mark {
  margin-left: 0.2em;
  font-family: "Segoe UI Symbol", "Apple Symbols", "Hiragino Sans", sans-serif;
  color: var(--accent);
  text-decoration: none;
}

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: var(--head-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.site-head-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 24px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 6px var(--gutter);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.site-logo {
  gap: 8px;
  font-size: 17px;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.spark-mark {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--spark);
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.site-nav {
  display: flex;
  gap: 4px;
  order: 3;
  width: 100%;
  margin: 0 -12px;
}

.site-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  color: var(--sub);
  font-size: 16px;
  white-space: nowrap;
  text-decoration: none;
}

/* 320px でも3つが1行に入るよう、間を詰める(直し17・画面確認5 問題5: 単語の途中で2行に折れていた) */
@media (max-width: 379px) {
  .site-nav {
    gap: 0;
    margin: 0 -8px;
  }

  .site-nav-link {
    padding: 0 8px;
  }
}

.site-nav-link:hover {
  color: var(--ink);
  background: var(--well);
}

.site-nav-link[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
  background: var(--accent-soft);
}

.site-progress {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin-left: auto;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--sub);
  font-size: 16px;
  line-height: 1.4;
}

/* 「読んだページ」の字は、帯が1行に入らない幅(〜819px)では見た目だけ隠す(読み上げは残る)。
   直し17: 760〜819px で、名前と数が2行に折れていた */
@media (max-width: 819px) {
  .site-progress-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (max-width: 759px) {
  .site-logo {
    font-size: 16px;
    letter-spacing: 0.12em;
  }
}

.site-progress .num {
  flex: none;  /* 3けた(999/999 まで)でも縮めない・折らない(体の overflow-wrap: anywhere で、960px で1字ずつ折れていた) */
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
  overflow-wrap: normal;
}

@media (min-width: 760px) {
  .site-head-in {
    flex-wrap: nowrap;
    min-height: 66px;
  }

  .site-nav {
    order: 0;
    width: auto;
    margin: 0;
  }
}

.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 1200px) {
  .page--paper {
    padding: 0 80px;
  }
}

.kicker,
.paper-site,
.news-kicker,
.answer-label,
.next-action-label {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.14em;
}

.page-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: clamp(27px, 18.5px + 2.2vw, 46px);
  font-weight: 600;
  line-height: 1.65;
  letter-spacing: 0.035em;
  text-wrap: balance;
  word-break: auto-phrase;
}

.card-title,
.section-title,
.paper-section-title {
  display: grid;
  grid-template-columns: var(--seal) minmax(0, 1fr);
  column-gap: 16px;
  align-items: center;
  margin: 0 0 var(--gap-head);
  padding: 14px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: clamp(22px, 18.7px + 0.9vw, 30px);
  font-weight: 600;
  line-height: 1.65;
  letter-spacing: 0.035em;
  word-break: auto-phrase;
}

.card-title::before,
.section-title::before,
.paper-section-title::before {
  content: "";
  width: var(--seal);
  height: var(--seal);
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  background: var(--accent-soft);
}

.paper-foot .card-title,
.x-card .card-title,
nav.card .card-title {
  display: block;
  padding: 0 0 12px;
  border-top: 0;
  font-size: 22px;
}

.paper-foot .card-title::before,
.x-card .card-title::before,
nav.card .card-title::before {
  content: none;
}

.card-text,
.flow-caption {
  margin: 0 0 1.4em;
}

.card-text:last-child,
.flow-caption:last-child {
  margin-bottom: 0;
}

.figure-cap {
  margin-top: 12px;
  color: var(--sub);
  font-size: 16px;
  line-height: 1.9;
}

.page-ref {
  color: var(--accent);
}

.btn-start,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 32px;
  border: 1px solid var(--btn-line);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.btn-primary {
  min-height: 52px;
  box-shadow: none;
}

.btn-start:hover,
.btn-primary:hover {
  background: var(--btn-hover);
  color: var(--btn-ink);
}

.btn-primary[aria-pressed="true"] {
  border: 1px solid var(--ok);
  background: var(--ok-bg);
  color: var(--ok);
}

.btn-text {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.btn-sub,
.btn-x {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  text-decoration: none;
}

.btn-sub:hover,
.btn-x:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-reset {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--sub);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.3em;
  cursor: pointer;
}

.choice-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 1.4em;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid var(--accent-line);
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 700;
}

.paper-head {
  display: grid;
  gap: 32px;
  padding: 36px 0 var(--gap-paper);
}

@media (min-width: 960px) {
  .paper-head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    align-items: center;
    gap: 64px;
    padding-top: 88px;
  }
}

.paper-title {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 8px 0 0;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: clamp(34px, 25px + 2.1vw, 52px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

.paper-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 14px;
  margin: 10px 0 0;
  color: var(--sub);
}

@media (min-width: 640px) {
  .paper-meta span + span::before {
    margin-right: 14px;
    color: var(--line-strong);
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin: 0 12px 0 0;
    border-radius: 50%;
    background: var(--color-line-strong);
    vertical-align: middle;
  }
}

.paper-lead {
  margin: 20px 0 0;
  max-width: 34em;
  color: var(--sub);
  line-height: 2.1;
}

.paper-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin: 32px 0 0;
}

.paper-note {
  margin: 20px 0 0;
  color: var(--sub);
}

.paper-picture {
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 6% 0;
  object-fit: contain;
  background: radial-gradient(60% 70% at 55% 55%, var(--surface-solid), var(--accent-soft));
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.paper-grid {
  display: grid;
  gap: var(--gap-paper);
}

.paper-spk .spk {
  display: none;
}

.spk-row .bubble {
  display: block;
  max-width: 36em;
}

.paper-spk .bubble-name {
  display: none;
}

.paper-spk .bubble-text {
  display: block;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: clamp(20px, 17.4px + 0.7vw, 26px);
  font-weight: 600;
  line-height: 1.9;
  letter-spacing: 0.04em;
}

.news-grid {
  display: grid;
  gap: 20px;
}

.news {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
}

/* 記事の中のまとまり(題・初心者へと出どころ)。スマホとタブレットでは、上から順に並ぶ */
.news-lead,
.news-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-kicker {
  margin: 0;
}

.news-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.03em;
}

.news--top .news-title {
  font-size: clamp(22px, 18.7px + 0.9vw, 28px);
}

.news-summary {
  margin: 0;
}

.news-tip {
  margin: 4px 0 0;
  padding: 12px 16px;
  border-radius: var(--r-pic);
  background: var(--well);
  color: var(--text);
}

.news-tip-label {
  margin-right: 10px;
  color: var(--accent);
  font-weight: 700;
}

.news-meta {
  color: var(--sub);
  line-height: 1.8;
}

.news-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-top: 6px;
}

.news-link,
.news-learn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  line-height: 1.6;
}

.news-note {
  margin: 16px 0 0;
  color: var(--sub);
}

@media (min-width: 960px) {
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .news {
    padding: 32px 32px 26px;
  }

  /* 横いっぱいの記事(トップは必ず。2・3件目は、どれかに図が付いた時だけ。作る道具が news--wide を付ける)。
     中を2列にして、右を空けない: 図が無ければ 題を横いっぱい・左に要約・右に初心者へと出どころ */
  .news--wide {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    grid-template-areas:
      "lead lead"
      "sum side";
    column-gap: 56px;
    row-gap: 10px;
    align-items: start;
  }

  .news--wide > .news-lead {
    grid-area: lead;
  }

  .news--wide > .news-summary {
    grid-area: sum;
  }

  .news--wide > .news-side {
    grid-area: side;
  }

  .news--wide:not(.news--figure) .news-tip {
    margin-top: 0;
  }

  /* 図のある記事: 左に文(題・要約・初心者へと出どころ)、右に図 */
  .news--wide.news--figure {
    grid-template-areas:
      "lead fig"
      "sum fig"
      "side fig";
    grid-template-rows: auto auto 1fr;
  }

  .news--wide > .news-figure {
    grid-area: fig;
    align-self: center;
  }
}

.compare {
  display: grid;
  gap: 12px;
  margin: 8px 0;
}

.compare-card {
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  line-height: 1.9;
}

.compare-title {
  color: var(--ink);
  font-weight: 700;
}

.compare-card .num {
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.5;
}

.compare-card--ok .compare-title {
  color: var(--ok);
}

.compare-card--warn .compare-title {
  color: var(--ng);
}

.compare-card--pick {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

@media (min-width: 640px) {
  .compare {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

.paper-quiz {
  padding: 32px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow);
}

@media (min-width: 960px) {
  .paper-quiz {
    padding: 44px 48px;
  }
}

.paper-quiz .news-links {
  margin-top: 16px;
}

.card[data-quiz] .card-title {
  font-size: clamp(20px, 17.4px + 0.7vw, 25px);
  line-height: 1.75;
}

.quiz-grid {
  display: grid;
  gap: 12px;
}

@media (min-width: 640px) {
  .quiz-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.quiz-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-card);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  line-height: 1.6;
  text-align: left;
  cursor: pointer;
}

.quiz-btn:hover {
  border-color: var(--ink);
}

.quiz-key {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1;
}

.quiz-btn.is-correct {
  border-color: var(--ok);
  background: var(--ok-bg);
}

.quiz-btn.is-correct .quiz-key {
  border-color: var(--ok);
  background: var(--ok);
  color: var(--surface-solid);
}

.quiz-btn.is-wrong {
  border-color: var(--ng);
  background: var(--ng-bg);
}

.quiz-btn.is-wrong .quiz-key {
  border-color: var(--ng);
  color: var(--ng);
}

.quiz-result {
  margin-top: 18px;
  color: var(--sub);
}

.quiz-result.is-ok {
  color: var(--ok);
  font-weight: 700;
}

.quiz-result.is-ng {
  color: var(--ng);
  font-weight: 700;
}

.quiz-reason {
  margin-top: 8px;
}

.learn {
  margin-top: var(--gap-paper);
}

.learn > .choice-links {
  margin-top: -12px;
}

.learn-grid {
  display: grid;
  gap: 40px;
}

@media (min-width: 960px) {
  .learn-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px 64px;
  }

  .progress-box {
    grid-column: 1 / -1;
  }
}

.progress-box {
  display: grid;
  gap: 16px;
  padding: 22px 22px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
}

@media (min-width: 960px) {
  .progress-box {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 40px;
    padding: 26px 32px 18px;
  }
}

.progress-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.progress-label {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.progress-count {
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.4;
}

.progress-segs {
  display: flex;
  gap: 2px;
  margin-top: 10px;
}

.progress-seg {
  flex: 1;
  height: 6px;
  border-radius: 2px;
  background: var(--line);
}

.progress-seg.is-read {
  background: var(--mark);
}

/* ページが多い時(61以上)は、区切りのすき間を0にする(168ページで 2px×167=334px になり、320px の画面からはみ出していた) */
.progress-segs:has(> .progress-seg:nth-child(61)) {
  gap: 0;
}

.progress-seg {
  min-width: 0;
}

.progress-side {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 16px;
}

.progress-note {
  color: var(--sub);
  line-height: 1.8;
}

.pillar-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 0 0 8px;
  padding: 14px 0 0;
  border-top: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.6;
}

.pillar-icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  color: var(--sub);
}

.pillar-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.6;
}

.pillar-num {
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.toc li + li .toc-item {
  border-top: 1px solid var(--line);
}

.toc-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 0;
  color: var(--ink);
  line-height: 1.7;
  text-decoration: none;
}

a.toc-item:hover .toc-name {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.toc-num {
  color: var(--sub);
  font-family: var(--font-head);
  font-weight: 600;
  text-align: right;
}

.toc-body {
  display: flex;
  flex-direction: column;
}

.toc-state {
  color: var(--sub);
  line-height: 1.7;
}

.toc-item.is-read .toc-state {
  color: var(--ok);
  font-weight: 700;
}

.toc-item.is-soon {
  grid-template-columns: 28px minmax(0, 1fr);
  color: var(--sub);
}

.toc-item.is-soon::before {
  content: "";
}

.toc-item.is-soon::after {
  content: none;
}

.paper-foot {
  display: grid;
  gap: 20px;
  margin-top: var(--gap-paper);
}

@media (min-width: 960px) {
  /* 欄の数だけ横に並べる(直し17・画面確認5 問題1: 3列の決め打ちで、2つの欄の右1/3が空いていた) */
  .paper-foot {
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

.paper-foot .card,
.x-card {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
}

.paper-foot .card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.paper-foot .card-title {
  align-self: stretch;  /* 見出しの線を欄の幅いっぱいに */
}

.paper-foot .side-list .side-link {
  display: block;
}

.promise-list {
  display: grid;
  gap: 10px;
}

.promise-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  line-height: 1.9;
}

.promise-mark {
  color: var(--accent);
  font-family: var(--font-head);
  font-weight: 600;
}

.site-footer {
  margin-top: var(--gap-section);
  padding: 32px 0 56px;
  border-top: 1px solid var(--line);
  color: var(--sub);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--sub);
}

.footer-copy {
  margin-top: 8px;
}

/* 一番下の1行(直し20・「AIによってこのホームページは最新の状態に保たれています。」): 目立ちすぎない案内の字 */
.footer-ai {
  margin-top: 4px;
  color: var(--sub);
  font-size: 16px;
}

.lesson-layout {
  display: grid;
  gap: var(--gap-section);
}

.lesson-main {
  width: 100%;
  max-width: 704px;
  min-width: 0;
  margin: 0 auto;
}

@media (min-width: 1100px) {
  .lesson-layout {
    grid-template-columns: minmax(0, 1fr) 304px;
    gap: 40px;
    align-items: start;
  }
}

.hero--lesson {
  display: flex;
  flex-direction: column;
  padding-top: 28px;
}

@media (min-width: 960px) {
  .hero--lesson {
    padding-top: 56px;
  }
}

.crumb {
  order: 1;
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  min-height: 44px;
  margin-bottom: 20px;
  text-decoration: none;
}

.crumb span,
.btn-text span {
  font-family: "Segoe UI Symbol", "Apple Symbols", "Hiragino Sans", sans-serif;
}

.hero--lesson .kicker {
  order: 2;
  margin: 0 0 6px;
  letter-spacing: 0.1em;
}

.hero--lesson .page-title {
  order: 3;
}

.hero--lesson {
  position: relative;
}

/* 題名の頭のまとまり(「、」まで・10字以下。道具が包む)は、広い幅では途中で折らない(直し17・画面確認5 問題8) */
@media (min-width: 560px) {
  .page-title .title-head {
    white-space: nowrap;
  }
}

.page-pos {
  order: 4;
  margin-top: 14px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
  color: var(--sub);
}

.hero-picture {
  order: 5;
  width: 100%;
  margin-top: 36px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.answer-first {
  order: 6;
  margin-top: 40px;
  padding: 24px 22px;
  border: 1px solid var(--accent-line);
  border-radius: var(--r-card);
  background: var(--accent-soft);
  color: var(--ink);
}

@media (min-width: 960px) {
  .answer-first {
    padding: 30px 36px;
  }
}

.answer-first p + p {
  margin-top: 0.5em;
}

.lesson-main > .card,
.lesson-main > .spk-hint,
.lesson-main > [data-tool] > .card {
  margin-top: var(--gap-section);
}

.lesson-main > .card > * + *,
.lesson-main > [data-tool] > .card > * + * {
  margin-top: 1.4em;
}

.lesson-main > .card > .card-title + *,
.lesson-main > [data-tool] > .card > .card-title + * {
  margin-top: 0;
}

.lesson-main > .card > .kicker + .card-title,
.lesson-main > [data-tool] > .card > .kicker + .card-title {
  margin-top: 0;
}

.lesson-main figure + *,
.lesson-main * + figure {
  margin-top: 32px;
}

.steps-figure {
  display: grid;
  gap: 0;
}

.steps-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.steps-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1;
}

.steps-item--check .steps-no {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.sum-list li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.pebble {
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.6;
}

.sum-tiles {
  display: grid;
  gap: 12px;
}

@media (min-width: 640px) {
  .sum-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.sum-tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
}

.sum-tile-no {
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.sum-tile-icons {
  display: flex;
  gap: 6px;
}

.sum-tile-icons img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.sum-checks li::before {
  color: var(--sub);
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 12px 0 0;
  border-radius: 50%;
  background: var(--color-line-strong);
  vertical-align: middle;
}

.sum-checks,
.sum-later {
  line-height: 1.8;
}

.sum-later {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--sub);
}

.sum-tile-text {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
}

.spk-hint {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.spk-hint .spk {
  width: 56px;
  height: 56px;
  padding: 6px;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  background: var(--accent-soft);
  object-fit: contain;
}

.spk-hint .bubble {
  display: flex;
  flex-direction: column;
}

.spk-hint .bubble-name {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.6;
}

.spk-hint .bubble-text {
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.85;
}

.flow-step {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 640px) {
  .flow-step {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 28px;
  }
}

.flow-pic {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-pic);
}

.flow-body p + p {
  margin-top: 0.5em;
}

.flow-name {
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.6;
}

.money {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.money--out {
  color: var(--ng);
}

.money--in {
  color: var(--ok);
}

.money--wait {
  color: var(--sub);
}

.flow-example {
  padding: 2px 0 2px 16px;
  border-left: 2px solid var(--mark);
}

.flow-example-label {
  display: block;
  color: var(--ink);
  font-weight: 700;
}

.timeline {
  position: relative;
  display: grid;
  gap: 0;
  padding-left: 26px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: var(--line-strong);
}

.timeline-item {
  position: relative;
  padding: 8px 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 19px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink);
}

.timeline-item--out::before {
  background: var(--ng);
}

.timeline-item--in::before {
  background: var(--ok);
}

.timeline-item--wait::before {
  border: 1px solid var(--sub);
  background: var(--surface);
}

.timeline-when {
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.8;
}

.timeline-what {
  line-height: 1.8;
}

@media (min-width: 760px) {
  .timeline {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 22px 0 0;
  }

  .timeline::before {
    left: 6px;
    right: 6px;
    top: 5px;
    bottom: auto;
    width: auto;
    height: 1px;
  }

  .timeline-item {
    padding: 0 10px 0 0;
  }

  .timeline-item::before {
    left: 0;
    top: -22px;
  }
}

.calc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.calc-box {
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pic);
  background: var(--surface);
  color: var(--ink);
  line-height: 1.6;
  text-align: center;
}

.calc-box--sell {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.calc-box--fee {
  background: var(--well);
}

.calc-box--answer {
  border-color: var(--ink);
  font-weight: 700;
}

.calc-op {
  color: var(--sub);
  font-size: 20px;
}

.stack {
  position: relative;
  display: flex;
  height: 40px;
  border-radius: 8px;
}

.stack > .stack-seg:first-child {
  border-radius: 8px 0 0 8px;
}

.stack > .stack-seg:nth-last-child(2) {
  border-radius: 0 8px 8px 0;
}

.stack-seg {
  display: block;
  height: 100%;
}

.stack-seg + .stack-seg {
  border-left: 2px solid var(--surface);
}

.seg-buy {
  background: var(--accent);
}

.seg-profit {
  background: var(--ok);
}

.seg-fee {
  background: var(--sub);
}

.seg-ship {
  background: var(--seg-ship);
}

.seg-other {
  background: var(--seg-other);
}

.stack-line {
  position: absolute;
  top: -8px;
  bottom: -8px;
  width: 2px;
  margin-left: -1px;
  background: var(--ink);
}

.stack-line--60 {
  left: 60%;
}

.stack-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: 16px;
}

.stack-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.8;
}

.stack-legend .stack-seg {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 3px;
}

.w-5 {
  width: 5%;
}

.w-10 {
  width: 10%;
}

.w-15 {
  width: 15%;
}

.w-20 {
  width: 20%;
}

.w-25 {
  width: 25%;
}

.w-30 {
  width: 30%;
}

.w-35 {
  width: 35%;
}

.w-40 {
  width: 40%;
}

.w-45 {
  width: 45%;
}

.w-50 {
  width: 50%;
}

.w-55 {
  width: 55%;
}

.w-60 {
  width: 60%;
}

.w-65 {
  width: 65%;
}

.w-70 {
  width: 70%;
}

.w-75 {
  width: 75%;
}

.w-80 {
  width: 80%;
}

.w-85 {
  width: 85%;
}

.w-90 {
  width: 90%;
}

.w-95 {
  width: 95%;
}

.w-100 {
  width: 100%;
}

.term dt {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.7;
}

.term dd {
  margin: 6px 0 22px;
}

.note-warn {
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--mark);
}

.note-warn-title {
  color: var(--ink);
  font-weight: 700;
}

.note-warn-title span {
  color: var(--accent);
}

.note-warn ul {
  margin-top: 6px;
}

.note-warn li {
  position: relative;
  padding-left: 1em;
}

.note-warn li::before {
  position: absolute;
  left: 0;
  color: var(--sub);
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 12px 0 0;
  border-radius: 50%;
  background: var(--color-line-strong);
  vertical-align: middle;
}

.tool {
  padding: 28px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow);
}

@media (min-width: 640px) {
  .tool {
    padding: 40px 40px 32px;
  }
}

.tool-title {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.6;
}

.tool-fields {
  display: grid;
  gap: 22px;
}

@media (min-width: 640px) {
  .tool-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 28px;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.6;
}

.field-input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.field-input:hover {
  border-color: var(--sub);
}

.field-input:focus {
  border-color: var(--ink);
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

.field-input[aria-invalid="true"] {
  border-color: var(--ng);
  background: var(--ng-bg);
}

.field-help {
  color: var(--sub);
  line-height: 1.75;
}

.field-error {
  color: var(--ng);
  font-weight: 700;
  line-height: 1.7;
}

.field-error:empty {
  display: none;
}

.tool-out {
  margin-top: 30px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-pic);
  background: var(--well);
  color: var(--ink);
  line-height: 1.9;
}

.tool-out p + p {
  margin-top: 4px;
}

.tool-big {
  display: table;
  margin: 10px 0 6px !important;
  background: linear-gradient(transparent 64%, var(--accent-soft) 64%, var(--accent-soft) 92%, transparent 92%);
  font-family: var(--font-head);
  font-size: clamp(24px, 20px + 1vw, 32px);
  font-weight: 600;
  line-height: 1.6;
}

.tool-ok {
  color: var(--ok);
  font-weight: 700;
}

.tool-warn {
  color: var(--ng);
  font-weight: 700;
}

.tool-note {
  margin-top: 16px;
  color: var(--sub);
  line-height: 1.8;
}

.lesson-main > .card[data-try] {
  padding: 30px 20px;
  border: 1px solid var(--accent-line);
  border-radius: var(--r-card);
  background: var(--surface);
}

@media (min-width: 640px) {
  .lesson-main > .card[data-try] {
    padding: 44px 44px 40px;
  }
}

.card[data-try] .card-title {
  border-top: 0;
  padding-top: 0;
}

.walk-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  color: var(--sub);
}

.walk-count {
  flex: none;  /* 「0/3」を折らない(体の overflow-wrap: anywhere で、スマホの幅で「0/」と「3」に折れていた) */
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
  white-space: nowrap;
  overflow-wrap: normal;
}

.walk-stage {
  position: relative;
  height: 20px;
  margin: 26px 18px 14px;
}

.walk-rail {
  position: absolute;
  left: 0;
  right: 0;
  top: 9px;
  height: 1px;
  background: var(--line-strong);
}

.walk-stones {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
}

.walk-stone {
  width: 12px;
  height: 12px;
  margin-top: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
}

.walk-stone.is-reached {
  border-color: var(--accent);
  background: var(--mark);
}

.walk-token {
  position: absolute;
  top: -12px;
  width: 36px;
  height: 36px;
  padding: 3px;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  background: var(--accent-soft);
  object-fit: contain;
  transform: translateX(-50%);
}

.walk[data-step="0"] .walk-token {
  left: 0%;
}

.walk[data-step="1"] .walk-token {
  left: 33.333%;
}

.walk[data-step="2"] .walk-token {
  left: 66.666%;
}

.walk[data-step="3"] .walk-token {
  left: 100%;
}

.check-list {
  border-top: 1px solid var(--accent-line);
}

.check {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  min-height: 52px;
  padding: 13px 0;
  border-bottom: 1px solid var(--accent-line);
  color: var(--ink);
  line-height: 1.8;
  cursor: pointer;
}

.check input {
  position: absolute;
  opacity: 0;
  width: 26px;
  height: 26px;
  margin: 0;
}

.check-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-top: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: transparent;
}

.check input:checked + .check-box {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--surface-solid);
}

.check input:focus-visible + .check-box {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.check-box svg {
  width: 16px;
  height: 16px;
}

.walk-msg {
  color: var(--sub);
}

.try-done {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.shot-title {
  margin-bottom: 12px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.7;
}

.mock {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pic);
  background: var(--surface);
  line-height: 1.7;
}

.mock-bar,
.mock-head {
  padding: 10px 14px;
  background: var(--well);
  border-bottom: 1px solid var(--line);
}

.mock-head {
  color: var(--ink);
  font-weight: 700;
}

.mock-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
}

.mock-page {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
}

.mock-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--well);
  color: var(--sub);
}

.mock-photo svg {
  width: 40px;
  height: 40px;
}

.mock-info {
  display: grid;
  gap: 6px;
}

.mock-info p {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mock-name {
  color: var(--ink);
  font-weight: 700;
}

.mock-price {
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 600;
}

.mock-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

@media (min-width: 640px) {
  .mock-split {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: center;
  }
}

.mock-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mock-col {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mock-box {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0;
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.mock-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

.mock-list li:last-child {
  border-bottom: 0;
}

.mock-list .mock-price,
.mock-blank {
  margin-left: auto;
}

.mock-blank {
  display: inline-block;
  width: 48px;
  height: 10px;
  border-radius: 4px;
  background: var(--line);
}

.mock-hl {
  margin: 0 -6px;
  padding-left: 6px !important;
  padding-right: 6px !important;
  border-radius: 6px;
  background: var(--accent-soft);
}

.shot-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-pic);
  background: var(--surface);
}

.shot-frame img {
  width: 100%;
  border-radius: calc(var(--r-pic) - 1px);
}

/* 直し20(画面確認6 の高3): 写真は元の幅より大きくしない(細い切り抜きを引き伸ばしてぼかさない)。
   枠を写真の幅に合わせて まん中に置く(HTML の番号の丸の位置もずれない)。写真が列より広い時は、今までどおり列の幅まで縮む。
   狭い画面で一部を大きく切り出す枠(sm-zoom-*)は 559px までは前のまま、560px からはこの決まり。⑨ の線の場面の絵(写真でない枠)は前のまま */
.shot-frame:has(> img):not([class*="sm-zoom"]) {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.shot-frame:has(> img):not([class*="sm-zoom"]) > img {
  width: auto;
  max-width: 100%;
  height: auto;
}

@media (min-width: 560px) {
  .shot-frame[class*="sm-zoom"]:has(> img) {
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
  }

  .shot-frame[class*="sm-zoom"]:has(> img) > img {
    width: auto;
    max-width: 100%;
    height: auto;
  }
}

.shot-mark,
.shot-no {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--surface-solid);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.shot-mark {
  position: absolute;
  width: 32px;
  height: 32px;
  transform: translate(-50%, 50%);
  box-shadow: 0 0 0 3px var(--color-surface);
}

.shot-mark--right::after,
.shot-mark--left::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

.shot-mark--right::after {
  left: calc(100% + 4px);
  border-left: 10px solid var(--ink);
}

.shot-mark--left::after {
  right: calc(100% + 4px);
  border-right: 10px solid var(--ink);
}

.shot-notes {
  display: grid;
  gap: 4px;
  margin-top: 14px;
}

.shot-notes li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.8;
}

.shot-notes .shot-no {
  margin-top: 1px;
}

.chart {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "y plot"
    ". x";
  gap: 4px 8px;
  color: var(--sub);
  line-height: 1.6;
}

.chart-y {
  grid-area: y;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: right;
}

.chart-x {
  grid-area: x;
  display: flex;
  justify-content: space-between;
}

.chart-plot {
  grid-area: plot;
  position: relative;
  min-height: 150px;
  border-left: 1px solid var(--sub);
  border-bottom: 1px solid var(--sub);
  background: var(--well);
}

.chart-plot svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.chart-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-line--2 {
  stroke: var(--ok);
  stroke-dasharray: 8 5;
}

.chart-mark {
  position: absolute;
  transform: translate(-50%, 50%);
}

.chart-key {
  flex-shrink: 0;
  width: 24px;
  height: 0;
  margin-left: 0 !important;
  border-top: 2.5px solid var(--accent);
}

.chart-key--2 {
  border-top: 2.5px dashed var(--ok);
}

.at-x-9 {
  left: 9%;
}

.at-x-25 {
  left: 25%;
}

.at-x-45 {
  left: 45%;
}

.at-x-88 {
  left: 88%;
}

.at-y-25 {
  bottom: 25%;
}

.at-y-39 {
  bottom: 39%;
}

.at-y-70 {
  bottom: 70%;
}

.at-y-87 {
  bottom: 87%;
}

.section-picture {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--r-pic);
}

.ng-ok {
  display: grid;
  gap: 14px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 640px) {
  .ng-ok {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 36px;
  }
}

.ng-label,
.ok-label {
  display: inline-flex;
  gap: 6px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.7;
}

.ng-label {
  color: var(--ng);
}

.ok-label {
  color: var(--ok);
}

.ng-title {
  margin: 2px 0 6px;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.7;
}

.ok .btn-sub {
  margin-top: 12px;
}

.copy-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.prompt {
  width: 100%;
  padding: 22px 24px;
  border-radius: var(--r-pic);
  background: var(--code-bg);
  color: var(--color-code-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: 0.03em;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.copy-status {
  color: var(--sub);
}

.next-action {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.next-action .btn-sub {
  margin-top: 12px;
}

.checked-date {
  color: var(--sub);
}

.source-list {
  border-top: 1px solid var(--line);
}

.source-list li {
  border-bottom: 1px solid var(--line);
}

.source-link {
  display: flex;
  flex-direction: column;
  min-height: 56px;
  padding: 12px 0;
  color: var(--ink);
  line-height: 1.75;
  text-decoration: none;
}

.source-link > span:first-child {
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.3em;
}

.source-link:hover > span:first-child {
  text-decoration-color: var(--ink);
}

.source-sub {
  color: var(--sub);
}

.lesson-main > nav.card {
  padding-top: 26px;
  border-top: 1px solid var(--line-strong);
}

.lesson-main > nav.card > * + * {
  margin-top: 12px;
}

.lesson-main > .x-card {
  margin-top: 56px;
}

.x-card > * + * {
  margin-top: 10px;
}

.side {
  display: grid;
  gap: 20px;
  min-width: 0;
}

@media (min-width: 1100px) {
  .side {
    position: sticky;
    top: 92px;
    margin-top: 56px;
    /* 右下のヘルプのボタン(下から 16+58px)に重ならないよう、最初の表示(上から約124px)でもボタンの上で止める(点検 K1) */
    max-height: calc(100vh - 220px);
    overflow-y: auto;
  }

  /* まとめ1(点検 K1): 帯の下に「無料登録・ログイン」の段(53px)があるページ(冒頭の版・登録なしで全文のページ)は、
     最初の表示が段の分だけ下がるので、上限も段の分だけ短くする(ヘルプのボタンの上で止める) */
  body:has(.site-join) .side {
    max-height: calc(100vh - 273px);
  }
}

.side-card {
  padding: 22px 22px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.side-card--toc {
  box-shadow: var(--shadow);
}

.side-title {
  margin: 0 0 10px;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
}

.side-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--sub);
}

.side-progress .num {
  color: var(--ink);
  font-weight: 700;
}

.side-card--toc .side-list {
  border-left: 1px solid var(--line);
}

.side-link {
  display: flex;
  gap: 10px;
  min-height: 44px;
  padding: 9px 0 9px 14px;
  color: var(--sub);
  line-height: 1.6;
  text-decoration: none;
}

.side-link:hover {
  color: var(--ink);
}

.side-card:not(.side-card--toc) .side-link {
  padding-left: 0;
}

.side-card:not(.side-card--toc) .side-list li + li {
  border-top: 1px solid var(--line);
}

.side-no {
  flex-shrink: 0;
  width: 1.2em;
  color: var(--sub);
  font-family: var(--font-head);
  font-weight: 600;
}

.side-link.is-current {
  margin-left: -1px;
  color: var(--ink);
  font-weight: 700;
  box-shadow: inset 2px 0 0 var(--mark);
  padding-left: 12px;
}

/* 同じ柱のページ(線の無い一覧)でも、今のページは黄色い線と番号の間を空ける(直し17・画面確認5 問題3: 0 に上書きされて重なっていた) */
.side-card:not(.side-card--toc) .side-link.is-current {
  padding-left: 12px;
}

.side-card > .side-link:last-child {
  margin-top: 6px;
  padding-left: 0;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.card-title::before,
.section-title::before,
.paper-section-title::before {
  border: 0;
  background-color: var(--accent-soft);
  background-size: 86%;
  opacity: 0.85;
}

.walk-token {
  width: 30px;
  height: 30px;
  top: -9px;
  border-color: var(--line);
  background: var(--accent-soft);
}

.spk-hint {
  grid-template-columns: 44px minmax(0, 1fr);
}

.spk-hint .spk {
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--accent-soft);
}

/* ---------- 前の部品(見本 A2 に無い物。新しい色の名前で読む) ---------- */
.promise-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-ink-sub);
  font-weight: 700;
  text-align: center;
  box-shadow: var(--shadow-chip);
}

.promise-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-yellow);
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: var(--tap-min);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-ink);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-chip-strong);
}

.progress-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--tap-min);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--color-yellow-soft);
  font-weight: 700;
}

.site-title {
  margin: 0 0 var(--space-2);
  font-size: var(--font-size-site);
  font-weight: 700;
  line-height: 1.35;
}

.tag-kari {
  display: inline-block;
  margin-left: var(--space-1);
  padding: 0 var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  vertical-align: middle;
  font-weight: 700;
}

.lead {
  margin-bottom: var(--space-4);
  font-size: var(--font-size-lead);
  font-weight: 700;
  line-height: 1.6;
}

.progress-seg.is-done {
  background: var(--color-yellow);
  box-shadow: var(--shadow-bump);
}

.progress-seg.is-done::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: 28%;
  height: 50%;
  border: solid var(--color-ink);
  border-width: 0 3px 3px 0;
  transform: translate(-50%, -50%) rotate(45deg);
}

.btn-reset.is-armed {
  border-color: var(--color-warn);
  background: var(--color-warn-bg);
  color: var(--color-warn-ink);
}

.check.is-checked {
  background: var(--color-yellow-soft);
  box-shadow: 0 4px 0 var(--color-ledge-pale);
}

.check.is-checked .check-box {
  background: var(--color-yellow);
  color: var(--color-ink);
  box-shadow: var(--shadow-bump);
}

.toc-go {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-ink);
  color: var(--color-on-dark);
}

.next-soon {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border: 2px dashed var(--color-line);
  border-radius: var(--radius-card);
  background: var(--color-bg);
}

.next-soon .spk {
  width: 72px;
}

.soon-tag {
  display: inline-block;
  margin-top: var(--space-1);
  padding: 0 var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-ink-sub);
  font-weight: 700;
}

.term-link {
  padding: 11px 14px;
  margin: 0 -14px;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

.side-soon .side-no {
  margin-right: 0;
  background: var(--color-bg);
}

.side-soon .toc-state {
  grid-column: 2;
  justify-self: start;
  margin-top: 0;
}

.side-soon.side-soon--nonum {
  grid-template-columns: minmax(0, 1fr);
}

.side-soon.side-soon--nonum .toc-state {
  grid-column: 1;
}

.side-soon {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  column-gap: var(--space-2);
  row-gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  border: 2px dashed var(--color-line);
  border-radius: var(--radius-input);
  color: var(--color-ink);
}

.shot-frame--narrow {
  max-width: 380px;
  margin-inline: auto;
}

/* 写真の幅より大きくしない枠(直し19・Keepa の係B の頼み): 細い写真(幅 160〜400px ほど)を引き伸ばさず、元の幅のまま まん中に置く。
   狭い画面では画面の幅まで縮む */
.shot-frame--small {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.shot-frame--small img {
  width: auto;
  max-width: 100%;
  height: auto;
}

.shot-mark--down::after,
.shot-mark--up::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
}

.shot-mark--down::after {
  top: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 12px solid var(--color-ink);
}

.shot-mark--up::after {
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 12px solid var(--color-ink);
}

.compare-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.compare-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.mark-yes,
.mark-no {
  flex-shrink: 0;
  font-weight: 700;
}

.tag-example {
  display: inline-block;
  margin-bottom: var(--space-2);
  padding: 0 var(--space-3);
  border: 2px solid var(--color-line);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  font-weight: 700;
}

.table-cards {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table-cards caption {
  margin-bottom: var(--space-2);
  font-weight: 700;
  text-align: left;
}

.table-cards thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.table-cards tbody,
.table-cards tr,
.table-cards th,
.table-cards td {
  display: block;
}

.table-cards tbody tr {
  margin-bottom: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: 20px;
  background: var(--color-yellow-tint);
  box-shadow: var(--shadow-tint);
}

.table-cards tbody th {
  margin-bottom: var(--space-1);
  font-size: var(--font-size-lead);
  text-align: left;
}

.table-cards td {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-1) 0;
}

.cell-label {
  flex-shrink: 0;
  padding: 0 var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  font-weight: 700;
}

.branch-q,
.branch-merge {
  padding: var(--space-3) var(--space-4);
  border-radius: 20px;
  font-weight: 700;
  text-align: center;
}

.branch-q {
  background: var(--color-yellow);
  box-shadow: 0 4px 0 var(--color-yellow-ledge);
}

.branch-paths {
  display: grid;
  gap: var(--space-3);
  margin: var(--space-5) 0;
  padding: 0;
  list-style: none;
}

.branch-path {
  position: relative;
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--color-line);
  border-radius: 20px;
  background: var(--color-surface);
}

.branch-paths {
  padding-left: 28px;
}

.branch-path::before {
  content: "";
  position: absolute;
  left: -20px;
  top: calc(-1 * var(--space-3) - 2px);
  bottom: -2px;
  width: 4px;
  border-radius: var(--radius-pill);
  background: var(--color-yellow-ledge);
}

.branch-path:first-child::before {
  top: calc(-1 * var(--space-5) - 2px);
}

.branch-path:last-child::before {
  bottom: auto;
  height: calc(var(--space-3) + 32px);
}

.branch-path:first-child:last-child::before {
  height: calc(var(--space-5) + 32px);
}

.branch-path::after {
  content: "";
  position: absolute;
  left: -20px;
  top: 26px;
  width: 18px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--color-yellow-ledge);
}

.branch-answer {
  display: inline-block;
  margin-bottom: var(--space-1);
  padding: 0 var(--space-3);
  border-radius: var(--radius-input);
  background: var(--color-ink);
  color: var(--color-on-dark);
  font-weight: 700;
}

.branch-path--warn {
  border: 3px solid var(--color-warn);
  background: var(--color-warn-bg);
  color: var(--color-warn-ink);
}

.branch-merge {
  border: 2px dashed var(--color-line);
  background: var(--color-bg);
}

.bars {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label value"
    "track track";
  gap: var(--space-1) var(--space-2);
}

.bar-label {
  grid-area: label;
  font-weight: 700;
}

.bar-value {
  grid-area: value;
  font-weight: 700;
}

.bar-track {
  grid-area: track;
  display: flex;
  height: 24px;
  border-radius: var(--radius-pill);
  background: var(--color-well);
  box-shadow: var(--shadow-well);
}

.bar-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--color-yellow);
  box-shadow: inset 0 -3px 0 var(--color-yellow-ledge);
}

.bar-fill--ok {
  background: var(--color-ok);
  box-shadow: none;
}

.bar-fill--warn {
  background: var(--color-warn);
  box-shadow: none;
}

.bar-track--signed {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--color-well);
}

.bar-half {
  display: flex;
  height: 100%;
}

.bar-half--minus {
  justify-content: flex-end;
  border-right: 3px solid var(--color-ink);
}

.w-5 {
  width: 5%;
}

.w-10 {
  width: 10%;
}

.w-15 {
  width: 15%;
}

.w-20 {
  width: 20%;
}

.w-25 {
  width: 25%;
}

.w-30 {
  width: 30%;
}

.w-35 {
  width: 35%;
}

.w-40 {
  width: 40%;
}

.w-45 {
  width: 45%;
}

.w-50 {
  width: 50%;
}

.w-55 {
  width: 55%;
}

.w-60 {
  width: 60%;
}

.w-65 {
  width: 65%;
}

.w-70 {
  width: 70%;
}

.w-75 {
  width: 75%;
}

.w-80 {
  width: 80%;
}

.w-85 {
  width: 85%;
}

.w-90 {
  width: 90%;
}

.w-95 {
  width: 95%;
}

.w-100 {
  width: 100%;
}

.stairs {
  display: grid;
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
  padding: 0;
  list-style: none;
}

.stair {
  padding: var(--space-3) var(--space-4);
  border-radius: 18px;
  background: var(--color-yellow-tint);
  font-weight: 700;
  box-shadow: var(--shadow-tint);
}

.stairs {
  display: flex;
  flex-direction: column-reverse;
}

.stair--2 {
  margin-left: var(--space-5);
}

.stair--3 {
  margin-left: var(--space-7);
  background: var(--color-yellow-soft);
}

.stair-no {
  display: block;
  color: var(--color-ink-sub);
}

.bands {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.band {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-4);
  border-left: 8px solid var(--color-yellow);
  border-radius: 14px;
  background: var(--color-surface);
  box-shadow: var(--shadow-chip);
}

.band-name {
  font-weight: 700;
}

.band--2 {
  border-left-color: var(--color-ok);
}

.band--3 {
  border-left-color: var(--color-warn);
}

.band--4 {
  border-left-color: var(--color-ink-sub);
}

.band--5 {
  border-left-color: var(--color-yellow-ledge);
}

.copy-list {
  display: grid;
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.copy-title {
  margin-bottom: var(--space-2);
  font-weight: 700;
}

.copy-check {
  margin-top: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-input);
  background: var(--color-yellow-tint);
  box-shadow: var(--shadow-tint);
}

.note-box {
  margin-top: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: 18px;
  background: var(--color-bg);
  box-shadow: var(--shadow-well);
}

.note-box-title {
  margin-bottom: var(--space-1);
  font-weight: 700;
}

.mock {
  overflow: hidden;
  border: 2px solid var(--color-line);
  border-radius: var(--radius-input);
  background: var(--color-surface);
  box-shadow: var(--shadow-chip);
}

.mock-bar {
  padding: var(--space-3);
  background: var(--color-well);
}

.mock-input {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--tap-min);
  padding: var(--space-1) var(--space-3) var(--space-1) var(--space-1);
  border: 2px solid var(--color-line);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-ink-sub);
}

.mock-page {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: var(--space-3);
  padding: var(--space-3);
}

.mock-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border-radius: 12px;
  background: var(--color-yellow-tint);
  color: var(--color-ink-sub);
  box-shadow: var(--shadow-tint);
}

.mock-photo svg {
  width: 60%;
  height: 60%;
}

.mock-info {
  display: grid;
  gap: var(--space-2);
}

.mock-info p {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.mock-name {
  font-weight: 700;
}

.mock-price {
  font-size: var(--font-size-lead);
  font-weight: 700;
}

.mock--narrow {
  max-width: 380px;
  margin-inline: auto;
}

.mock-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--color-well);
  font-weight: 700;
}

.mock-head--end {
  justify-content: flex-end;
}

.mock-body {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-3);
}

.mock-body > *,
.mock-col > *,
.mock-field > * {
  min-width: 0;
}

.mock-title {
  font-size: var(--font-size-lead);
  font-weight: 700;
}

.mock-sub {
  color: var(--color-ink-sub);
}

.mock-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.mock-row--end {
  justify-content: flex-end;
}

.mock-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-2);
  margin: 0;
  padding: 0;
  border-bottom: 2px solid var(--color-line);
  list-style: none;
}

.mock-tab {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  color: var(--color-ink-sub);
}

.mock-tab--on {
  color: var(--color-ink);
  font-weight: 700;
  box-shadow: inset 0 -4px 0 var(--color-ink);
}

.mock-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: 40px;
  padding: var(--space-1) var(--space-3);
  border: 2px solid var(--color-ink);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  font-weight: 700;
}

.mock-btn--main {
  background: var(--color-ink);
  color: var(--color-on-dark);
}

.mock-btn--off {
  border-style: dashed;
  border-color: var(--color-ink-sub);
  background: var(--color-well);
  color: var(--color-ink-sub);
}

.mock-icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  color: var(--color-ink-sub);
}

.mock-icon svg {
  width: 100%;
  height: 100%;
}

.mock-field {
  display: grid;
  gap: var(--space-1);
}

.mock-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
}

.mock-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: var(--tap-min);
  padding: var(--space-1) var(--space-3);
  border: 2px solid var(--color-line);
  border-radius: var(--radius-input);
  background: var(--color-surface);
  color: var(--color-ink-sub);
}

.mock-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mock-list > li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--tap-min);
  padding: var(--space-1) 0;
  border-top: 2px solid var(--color-line);
}

.mock-list > li:first-child {
  border-top: 0;
}

.mock-list .mock-photo {
  width: 40px;
}

.mock-hl {
  border-radius: 12px;
  background: var(--color-yellow-soft);
  box-shadow: 0 0 0 4px var(--color-yellow-soft);
}

.mock-list > li.mock-hl,
.mock-list > li.mock-hl + li {
  border-top-color: transparent;
}

.mock-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: var(--space-3);
}

.mock-col {
  display: grid;
  align-content: start;
  gap: var(--space-2);
  padding: var(--space-3);
  border: 2px solid var(--color-line);
  border-radius: var(--radius-input);
}

.mock-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: var(--space-3);
}

.mock-steps {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.mock-steps > li {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  min-height: 36px;
  padding-left: 32px;
}

.mock-steps > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 16px;
  height: 16px;
  border: 3px solid var(--color-ink);
  border-radius: 50%;
  background: var(--color-surface);
}

.mock-steps > li.mock-step--done::before {
  background: var(--color-ink);
}

.mock-lines {
  display: grid;
  gap: var(--space-2);
}

.mock-line {
  display: block;
  width: 100%;
  height: 12px;
  border-radius: var(--radius-pill);
  background: var(--color-well);
}

.mock-line--mid {
  width: 70%;
}

.mock-line--short {
  width: 40%;
}

.mock-blank {
  display: inline-block;
  flex-shrink: 0;
  width: 5em;
  height: 1.2em;
  border-radius: 6px;
  background: repeating-linear-gradient(135deg, var(--color-well) 0 6px, var(--color-line) 6px 10px);
}

.mock-window {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-3);
  border: 2px solid var(--color-ink-sub);
  border-radius: var(--radius-input);
  background: var(--color-surface);
  box-shadow: var(--shadow-chip);
}

.mock-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border: 2px solid var(--color-warn);
  border-radius: var(--radius-input);
  background: var(--color-warn-bg);
  color: var(--color-warn-ink);
  font-weight: 700;
}

.mock .chart-plot {
  min-height: 120px;
}

:where(.mock-body, .mock-col, .mock-window, .mock-field) > p {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.mock-pair {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--space-2);
}

.mock-head--between {
  justify-content: space-between;
}

.mock-row > .mock-lines,
.mock-list > li > .mock-lines,
.mock-list > li > .mock-line {
  flex: 1 1 6em;
  width: auto;
}

.mock-list .mock-name {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 7em;
}

.mock-blank--wide {
  width: 8em;
}

.mock-radio {
  display: inline-block;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 3px solid var(--color-ink-sub);
  border-radius: 50%;
  background: var(--color-surface);
}

.mock-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--color-well);
  font-weight: 700;
}

.shot-wait {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  padding: var(--space-4);
  border: 3px dashed var(--color-line);
  background: var(--color-bg);
  box-shadow: none;
  text-align: center;
}

.shot-wait-body {
  display: grid;
  justify-items: center;
  gap: var(--space-1);
  color: var(--color-ink-sub);
}

.shot-wait-body svg {
  width: 40px;
  height: 40px;
}

.shot-wait-title {
  padding: 0 var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-ink);
  font-weight: 700;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
}

.chart-legend li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.at-x-0 {
  --at-x: 0%;
  left: 0%;
}

.at-x-1 {
  --at-x: 1%;
  left: 1%;
}

.at-x-2 {
  --at-x: 2%;
  left: 2%;
}

.at-x-3 {
  --at-x: 3%;
  left: 3%;
}

.at-x-4 {
  --at-x: 4%;
  left: 4%;
}

.at-x-5 {
  --at-x: 5%;
  left: 5%;
}

.at-x-6 {
  --at-x: 6%;
  left: 6%;
}

.at-x-7 {
  --at-x: 7%;
  left: 7%;
}

.at-x-8 {
  --at-x: 8%;
  left: 8%;
}

.at-x-9 {
  --at-x: 9%;
  left: 9%;
}

.at-x-10 {
  --at-x: 10%;
  left: 10%;
}

.at-x-11 {
  --at-x: 11%;
  left: 11%;
}

.at-x-12 {
  --at-x: 12%;
  left: 12%;
}

.at-x-13 {
  --at-x: 13%;
  left: 13%;
}

.at-x-14 {
  --at-x: 14%;
  left: 14%;
}

.at-x-15 {
  --at-x: 15%;
  left: 15%;
}

.at-x-16 {
  --at-x: 16%;
  left: 16%;
}

.at-x-17 {
  --at-x: 17%;
  left: 17%;
}

.at-x-18 {
  --at-x: 18%;
  left: 18%;
}

.at-x-19 {
  --at-x: 19%;
  left: 19%;
}

.at-x-20 {
  --at-x: 20%;
  left: 20%;
}

.at-x-21 {
  --at-x: 21%;
  left: 21%;
}

.at-x-22 {
  --at-x: 22%;
  left: 22%;
}

.at-x-23 {
  --at-x: 23%;
  left: 23%;
}

.at-x-24 {
  --at-x: 24%;
  left: 24%;
}

.at-x-25 {
  --at-x: 25%;
  left: 25%;
}

.at-x-26 {
  --at-x: 26%;
  left: 26%;
}

.at-x-27 {
  --at-x: 27%;
  left: 27%;
}

.at-x-28 {
  --at-x: 28%;
  left: 28%;
}

.at-x-29 {
  --at-x: 29%;
  left: 29%;
}

.at-x-30 {
  --at-x: 30%;
  left: 30%;
}

.at-x-31 {
  --at-x: 31%;
  left: 31%;
}

.at-x-32 {
  --at-x: 32%;
  left: 32%;
}

.at-x-33 {
  --at-x: 33%;
  left: 33%;
}

.at-x-34 {
  --at-x: 34%;
  left: 34%;
}

.at-x-35 {
  --at-x: 35%;
  left: 35%;
}

.at-x-36 {
  --at-x: 36%;
  left: 36%;
}

.at-x-37 {
  --at-x: 37%;
  left: 37%;
}

.at-x-38 {
  --at-x: 38%;
  left: 38%;
}

.at-x-39 {
  --at-x: 39%;
  left: 39%;
}

.at-x-40 {
  --at-x: 40%;
  left: 40%;
}

.at-x-41 {
  --at-x: 41%;
  left: 41%;
}

.at-x-42 {
  --at-x: 42%;
  left: 42%;
}

.at-x-43 {
  --at-x: 43%;
  left: 43%;
}

.at-x-44 {
  --at-x: 44%;
  left: 44%;
}

.at-x-45 {
  --at-x: 45%;
  left: 45%;
}

.at-x-46 {
  --at-x: 46%;
  left: 46%;
}

.at-x-47 {
  --at-x: 47%;
  left: 47%;
}

.at-x-48 {
  --at-x: 48%;
  left: 48%;
}

.at-x-49 {
  --at-x: 49%;
  left: 49%;
}

.at-x-50 {
  --at-x: 50%;
  left: 50%;
}

.at-x-51 {
  --at-x: 51%;
  left: 51%;
}

.at-x-52 {
  --at-x: 52%;
  left: 52%;
}

.at-x-53 {
  --at-x: 53%;
  left: 53%;
}

.at-x-54 {
  --at-x: 54%;
  left: 54%;
}

.at-x-55 {
  --at-x: 55%;
  left: 55%;
}

.at-x-56 {
  --at-x: 56%;
  left: 56%;
}

.at-x-57 {
  --at-x: 57%;
  left: 57%;
}

.at-x-58 {
  --at-x: 58%;
  left: 58%;
}

.at-x-59 {
  --at-x: 59%;
  left: 59%;
}

.at-x-60 {
  --at-x: 60%;
  left: 60%;
}

.at-x-61 {
  --at-x: 61%;
  left: 61%;
}

.at-x-62 {
  --at-x: 62%;
  left: 62%;
}

.at-x-63 {
  --at-x: 63%;
  left: 63%;
}

.at-x-64 {
  --at-x: 64%;
  left: 64%;
}

.at-x-65 {
  --at-x: 65%;
  left: 65%;
}

.at-x-66 {
  --at-x: 66%;
  left: 66%;
}

.at-x-67 {
  --at-x: 67%;
  left: 67%;
}

.at-x-68 {
  --at-x: 68%;
  left: 68%;
}

.at-x-69 {
  --at-x: 69%;
  left: 69%;
}

.at-x-70 {
  --at-x: 70%;
  left: 70%;
}

.at-x-71 {
  --at-x: 71%;
  left: 71%;
}

.at-x-72 {
  --at-x: 72%;
  left: 72%;
}

.at-x-73 {
  --at-x: 73%;
  left: 73%;
}

.at-x-74 {
  --at-x: 74%;
  left: 74%;
}

.at-x-75 {
  --at-x: 75%;
  left: 75%;
}

.at-x-76 {
  --at-x: 76%;
  left: 76%;
}

.at-x-77 {
  --at-x: 77%;
  left: 77%;
}

.at-x-78 {
  --at-x: 78%;
  left: 78%;
}

.at-x-79 {
  --at-x: 79%;
  left: 79%;
}

.at-x-80 {
  --at-x: 80%;
  left: 80%;
}

.at-x-81 {
  --at-x: 81%;
  left: 81%;
}

.at-x-82 {
  --at-x: 82%;
  left: 82%;
}

.at-x-83 {
  --at-x: 83%;
  left: 83%;
}

.at-x-84 {
  --at-x: 84%;
  left: 84%;
}

.at-x-85 {
  --at-x: 85%;
  left: 85%;
}

.at-x-86 {
  --at-x: 86%;
  left: 86%;
}

.at-x-87 {
  --at-x: 87%;
  left: 87%;
}

.at-x-88 {
  --at-x: 88%;
  left: 88%;
}

.at-x-89 {
  --at-x: 89%;
  left: 89%;
}

.at-x-90 {
  --at-x: 90%;
  left: 90%;
}

.at-x-91 {
  --at-x: 91%;
  left: 91%;
}

.at-x-92 {
  --at-x: 92%;
  left: 92%;
}

.at-x-93 {
  --at-x: 93%;
  left: 93%;
}

.at-x-94 {
  --at-x: 94%;
  left: 94%;
}

.at-x-95 {
  --at-x: 95%;
  left: 95%;
}

.at-x-96 {
  --at-x: 96%;
  left: 96%;
}

.at-x-97 {
  --at-x: 97%;
  left: 97%;
}

.at-x-98 {
  --at-x: 98%;
  left: 98%;
}

.at-x-99 {
  --at-x: 99%;
  left: 99%;
}

.at-x-100 {
  --at-x: 100%;
  left: 100%;
}

.at-y-0 {
  bottom: 0%;
}

.at-y-1 {
  bottom: 1%;
}

.at-y-2 {
  bottom: 2%;
}

.at-y-3 {
  bottom: 3%;
}

.at-y-4 {
  bottom: 4%;
}

.at-y-5 {
  bottom: 5%;
}

.at-y-6 {
  bottom: 6%;
}

.at-y-7 {
  bottom: 7%;
}

.at-y-8 {
  bottom: 8%;
}

.at-y-9 {
  bottom: 9%;
}

.at-y-10 {
  bottom: 10%;
}

.at-y-11 {
  bottom: 11%;
}

.at-y-12 {
  bottom: 12%;
}

.at-y-13 {
  bottom: 13%;
}

.at-y-14 {
  bottom: 14%;
}

.at-y-15 {
  bottom: 15%;
}

.at-y-16 {
  bottom: 16%;
}

.at-y-17 {
  bottom: 17%;
}

.at-y-18 {
  bottom: 18%;
}

.at-y-19 {
  bottom: 19%;
}

.at-y-20 {
  bottom: 20%;
}

.at-y-21 {
  bottom: 21%;
}

.at-y-22 {
  bottom: 22%;
}

.at-y-23 {
  bottom: 23%;
}

.at-y-24 {
  bottom: 24%;
}

.at-y-25 {
  bottom: 25%;
}

.at-y-26 {
  bottom: 26%;
}

.at-y-27 {
  bottom: 27%;
}

.at-y-28 {
  bottom: 28%;
}

.at-y-29 {
  bottom: 29%;
}

.at-y-30 {
  bottom: 30%;
}

.at-y-31 {
  bottom: 31%;
}

.at-y-32 {
  bottom: 32%;
}

.at-y-33 {
  bottom: 33%;
}

.at-y-34 {
  bottom: 34%;
}

.at-y-35 {
  bottom: 35%;
}

.at-y-36 {
  bottom: 36%;
}

.at-y-37 {
  bottom: 37%;
}

.at-y-38 {
  bottom: 38%;
}

.at-y-39 {
  bottom: 39%;
}

.at-y-40 {
  bottom: 40%;
}

.at-y-41 {
  bottom: 41%;
}

.at-y-42 {
  bottom: 42%;
}

.at-y-43 {
  bottom: 43%;
}

.at-y-44 {
  bottom: 44%;
}

.at-y-45 {
  bottom: 45%;
}

.at-y-46 {
  bottom: 46%;
}

.at-y-47 {
  bottom: 47%;
}

.at-y-48 {
  bottom: 48%;
}

.at-y-49 {
  bottom: 49%;
}

.at-y-50 {
  bottom: 50%;
}

.at-y-51 {
  bottom: 51%;
}

.at-y-52 {
  bottom: 52%;
}

.at-y-53 {
  bottom: 53%;
}

.at-y-54 {
  bottom: 54%;
}

.at-y-55 {
  bottom: 55%;
}

.at-y-56 {
  bottom: 56%;
}

.at-y-57 {
  bottom: 57%;
}

.at-y-58 {
  bottom: 58%;
}

.at-y-59 {
  bottom: 59%;
}

.at-y-60 {
  bottom: 60%;
}

.at-y-61 {
  bottom: 61%;
}

.at-y-62 {
  bottom: 62%;
}

.at-y-63 {
  bottom: 63%;
}

.at-y-64 {
  bottom: 64%;
}

.at-y-65 {
  bottom: 65%;
}

.at-y-66 {
  bottom: 66%;
}

.at-y-67 {
  bottom: 67%;
}

.at-y-68 {
  bottom: 68%;
}

.at-y-69 {
  bottom: 69%;
}

.at-y-70 {
  bottom: 70%;
}

.at-y-71 {
  bottom: 71%;
}

.at-y-72 {
  bottom: 72%;
}

.at-y-73 {
  bottom: 73%;
}

.at-y-74 {
  bottom: 74%;
}

.at-y-75 {
  bottom: 75%;
}

.at-y-76 {
  bottom: 76%;
}

.at-y-77 {
  bottom: 77%;
}

.at-y-78 {
  bottom: 78%;
}

.at-y-79 {
  bottom: 79%;
}

.at-y-80 {
  bottom: 80%;
}

.at-y-81 {
  bottom: 81%;
}

.at-y-82 {
  bottom: 82%;
}

.at-y-83 {
  bottom: 83%;
}

.at-y-84 {
  bottom: 84%;
}

.at-y-85 {
  bottom: 85%;
}

.at-y-86 {
  bottom: 86%;
}

.at-y-87 {
  bottom: 87%;
}

.at-y-88 {
  bottom: 88%;
}

.at-y-89 {
  bottom: 89%;
}

.at-y-90 {
  bottom: 90%;
}

.at-y-91 {
  bottom: 91%;
}

.at-y-92 {
  bottom: 92%;
}

.at-y-93 {
  bottom: 93%;
}

.at-y-94 {
  bottom: 94%;
}

.at-y-95 {
  bottom: 95%;
}

.at-y-96 {
  bottom: 96%;
}

.at-y-97 {
  bottom: 97%;
}

.at-y-98 {
  bottom: 98%;
}

.at-y-99 {
  bottom: 99%;
}

.at-y-100 {
  bottom: 100%;
}

@media (max-width: 559px) {
  .sm-zoom-left img,
  .sm-zoom-mid img,
  .sm-zoom-right img {
    width: 200%;
  }

  .sm-zoom-mid img {
    margin-left: -50%;
  }

  .sm-zoom-right img {
    margin-left: -100%;
  }

  .sm-zoom-left > .shot-mark {
    left: calc(var(--at-x) * 2);
  }

  .sm-zoom-mid > .shot-mark {
    left: calc(var(--at-x) * 2 - 50%);
  }

  .sm-zoom-right > .shot-mark {
    left: calc(var(--at-x) * 2 - 100%);
  }

  .sm-zoom15-left img,
  .sm-zoom15-mid img,
  .sm-zoom15-right img {
    width: 150%;
  }

  .sm-zoom15-mid img {
    margin-left: -25%;
  }

  .sm-zoom15-right img {
    margin-left: -50%;
  }

  .sm-zoom15-left > .shot-mark {
    left: calc(var(--at-x) * 1.5);
  }

  .sm-zoom15-mid > .shot-mark {
    left: calc(var(--at-x) * 1.5 - 25%);
  }

  .sm-zoom15-right > .shot-mark {
    left: calc(var(--at-x) * 1.5 - 50%);
  }
}

.field-input--area {
  min-height: 120px;
  resize: vertical;
}

.field-input--short {
  width: 6em;
}

.field--inline {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.tool-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

/* ボタンは字の長さに合わせて並べる(直し17・画面確認5 問題2: 8em の決め打ちで、語の途中で折れていた) */
.tool-buttons .btn-sub {
  flex: 0 1 auto;
  width: auto;
}

.tool-status {
  margin-top: var(--space-3);
  font-weight: 700;
}

.tool-status:empty {
  display: none;
}

.exit-blocks {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.exit-block {
  padding: var(--space-3);
  border: 2px solid var(--color-line);
  border-radius: var(--radius-input);
  background: var(--color-bg);
}

.exit-name {
  margin: 0 0 var(--space-2);
  font-weight: 700;
}

@media (min-width: 1024px) {
  .exit-blocks {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

.table-deadline tr.is-past {
  box-shadow: inset 0 0 0 3px var(--color-warn);
}

.deadline-past {
  display: block;
  margin-top: var(--space-1);
  color: var(--color-warn-ink);
  font-weight: 700;
}

.chart-grid {
  display: grid;
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.chart-card {
  margin: 0;
  padding: var(--space-3);
  border-radius: var(--radius-input);
  background: var(--color-surface);
  box-shadow: var(--shadow-chip);
}

.chart-card-title {
  margin: 0 0 var(--space-2);
  font-weight: 700;
}

.chart--small .chart-plot {
  min-height: 120px;
}

@media (min-width: 768px) {
  .chart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.timer-time {
  font-size: var(--font-size-daiji);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.timer-time.is-done {
  color: var(--color-warn-ink);
}

.is-now[data-timer-stage] {
  outline: 3px solid var(--color-yellow-ledge);
  outline-offset: 2px;
  background-color: var(--color-yellow-soft);
}

.judge-list {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.judge-item {
  padding: var(--space-3);
  border-radius: 18px;
  background: var(--color-surface);
  box-shadow: var(--shadow-chip);
}

.judge-q {
  margin-bottom: var(--space-2);
  font-weight: 700;
}

.judge-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6em, 1fr));
  gap: var(--space-2);
}

.judge-btn {
  min-height: var(--tap-min);
  padding: var(--space-1) var(--space-2);
  border: 2px solid var(--color-line);
  border-radius: var(--radius-input);
  background: var(--color-bg);
  color: var(--color-ink);
  font-weight: 700;
  cursor: pointer;
}

.judge-btn[aria-pressed="true"] {
  border-color: var(--color-ink);
  background: var(--color-yellow);
  box-shadow: var(--shadow-dent);
}

.judge-result {
  margin: var(--space-3) 0;
  padding: var(--space-3) var(--space-4);
  border-radius: 18px;
  background: var(--color-well);
  font-weight: 700;
  box-shadow: var(--shadow-well);
}

.judge-result.is-ok {
  background: var(--color-ok-bg);
  color: var(--color-ok-ink);
}

.judge-result.is-ng {
  border: 2px solid var(--color-warn);
  background: var(--color-warn-bg);
  color: var(--color-warn-ink);
}

.lookup-list {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
}

.lookup-item {
  padding: var(--space-3);
  border-radius: 16px;
  background: var(--color-surface);
  box-shadow: var(--shadow-chip);
}

.lookup-name {
  font-weight: 700;
}

.lookup-mark {
  display: inline-block;
  margin: var(--space-1) 0;
  padding: 0 var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--color-yellow-soft);
  font-weight: 700;
}

.lookup-mark--first {
  background: var(--color-ok-bg);
  color: var(--color-ok-ink);
}

.lookup-mark--no {
  background: var(--color-ng-bg);
  color: var(--color-ng-ink);
}

.table-cards tr.is-max {
  box-shadow: inset 0 0 0 3px var(--color-warn);
}

.max-mark {
  display: block;
  width: fit-content;
  margin: var(--space-1) 0 0;
  padding: 0 var(--space-2);
  border-radius: var(--radius-input);
  word-break: keep-all;
  background: var(--color-warn-bg);
  color: var(--color-warn-ink);
  font-weight: 700;
}

.signal {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.signal-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: 18px;
  background: var(--color-surface);
  box-shadow: var(--shadow-chip);
}

.signal-lamp {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 3px solid var(--color-ink);
  border-radius: 50%;
}

.signal-item--go .signal-lamp {
  background: var(--color-ok);
}

.signal-item--wait .signal-lamp {
  background: var(--color-yellow);
}

.signal-item--stop .signal-lamp {
  background: var(--color-ng);
}

.signal-name {
  margin-right: var(--space-2);
  font-weight: 700;
}

.meter {
  margin-top: var(--space-3);
}

.meter-name {
  font-weight: 700;
}

.meter-track {
  position: relative;
  height: 24px;
  margin: var(--space-3) var(--space-2);
  border-radius: var(--radius-pill);
  background: var(--color-ng-bg);
  box-shadow: var(--shadow-well);
}

.meter-good {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  border: 2px solid var(--color-ok);
  border-radius: var(--radius-pill);
  background: var(--color-ok-bg);
}

.meter-good--right {
  left: auto;
  right: 0;
}

.meter-line {
  position: absolute;
  top: -6px;
  bottom: -6px;
  width: 4px;
  margin-left: -2px;
  background: var(--color-ink);
}

.meter-dot {
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  border: 3px solid var(--color-surface);
  border-radius: 50%;
  background: var(--color-ink);
  transform: translate(-50%, -50%);
}

.numline {
  margin: var(--space-3) 0 var(--space-2);
  padding: 0 var(--space-4);
}

.numline-track {
  position: relative;
  height: 12px;
  border-radius: var(--radius-pill);
  background: var(--color-rail);
}

.numline-range {
  position: absolute;
  top: -4px;
  bottom: -4px;
  border: 2px solid var(--color-yellow-ledge);
  border-radius: var(--radius-pill);
  background: var(--color-yellow);
}

.numline-labels {
  position: relative;
  height: 1.8em;
  margin-top: var(--space-2);
}

.numline-label {
  position: absolute;
  top: 0;
  font-weight: 700;
  white-space: nowrap;
  transform: translateX(-50%);
}

.numline-label.at-x-0 {
  transform: none;
}

.numline-label.at-x-100 {
  transform: translateX(-100%);
}

.grow {
  display: grid;
  justify-items: center;
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.grow-item {
  position: relative;
  min-width: min(100%, 10em);
  padding: var(--space-3);
  border-radius: 18px;
  background: var(--color-yellow-tint);
  font-weight: 700;
  text-align: center;
  box-shadow: var(--shadow-tint);
}

.grow-item + .grow-item::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -20px;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 14px solid var(--color-yellow-ledge);
  transform: translateX(-50%);
}

.flow-pair {
  display: grid;
  gap: var(--space-4);
}

.flow-pair-col {
  padding: var(--space-3);
  border-radius: 20px;
  background: var(--color-bg);
  box-shadow: var(--shadow-well);
}

.flow-pair-title {
  margin: 0 0 var(--space-3);
  font-size: var(--font-size-lead);
  font-weight: 700;
}

.cell-bar {
  display: block;
  width: 100%;
  height: 14px;
  margin: var(--space-1) 0;
  border-radius: var(--radius-pill);
  background: var(--color-well);
}

.cell-bar-fill {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--color-ok);
}

.table-cards tr.is-low {
  box-shadow: inset 0 0 0 3px var(--color-warn);
}

.check-extra {
  padding: var(--space-3) var(--space-4);
  border: 2px dashed var(--color-line);
  border-radius: var(--radius-button);
  background: var(--color-surface);
}

.page-soon {
  padding: var(--space-3) var(--space-4);
  border: 2px dashed var(--color-line);
  border-radius: var(--radius-button);
  background: var(--color-bg);
}

@media (hover: hover) {
  .judge-btn:not([aria-pressed="true"]):hover {
    border-color: var(--color-ink-sub);
  }

  .btn-back:hover,
  .btn-reset:not(.is-armed):hover,
  .check:not(.is-checked):hover {
    background-color: var(--color-yellow-soft);
  }
}

.paper-title-sub {
  display: block;
  width: 100%;
  font-size: var(--font-size-h2);
  letter-spacing: 0;
}

.backnumber-list {
  max-width: 800px;
  margin: 0 0 var(--space-6);
}

.backnumber-list .toc-item {
  grid-template-columns: 64px minmax(0, 1fr);
}

.toc-thumb {
  flex-shrink: 0;
  width: 64px;
}

@media (min-width: 560px) {
  .mock-page {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .branch-paths {
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
  }

  .stairs {
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    align-items: end;
  }

  .stair--2,
  .stair--3 {
    margin-left: 0;
  }

  .stair--2 {
    padding-bottom: var(--space-6);
  }

  .stair--3 {
    padding-bottom: var(--space-7);
  }

  .bar-row {
    grid-template-columns: 9em minmax(0, 1fr) 6.5em;
    grid-template-areas: "label track value";
    align-items: center;
  }

  .bar-value {
    text-align: right;
  }

  .stairs {
    display: grid;
  }

  .branch-paths {
    padding-left: 0;
  }

  .branch-path::before,
  .branch-path:first-child::before,
  .branch-path:last-child::before,
  .branch-path:first-child:last-child::before {
    left: 50%;
    top: -22px;
    bottom: auto;
    height: 20px;
    transform: translateX(-50%);
  }

  .branch-path::after {
    content: none;
  }

  .branch-paths:has(> :nth-child(4)) {
    grid-auto-flow: row;
    padding-left: 28px;
  }

  .branch-paths:has(> :nth-child(4)) > .branch-path::before {
    left: -20px;
    top: calc(-1 * var(--space-3) - 2px);
    bottom: -2px;
    height: auto;
    transform: none;
  }

  .branch-paths:has(> :nth-child(4)) > .branch-path:first-child::before {
    top: calc(-1 * var(--space-5) - 2px);
  }

  .branch-paths:has(> :nth-child(4)) > .branch-path:last-child::before {
    bottom: auto;
    height: calc(var(--space-3) + 32px);
  }

  .branch-paths:has(> :nth-child(4)) > .branch-path::after {
    content: "";
  }
}

@media (min-width: 768px) {
  .flow-pair {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .flow-pair .steps-figure {
    grid-auto-flow: row;
  }

  .flow-pair .steps-item {
    flex-direction: row;
    align-items: center;
  }

  .flow-pair .steps-item + .steps-item::before {
    left: calc(var(--space-4) + 8px);
    top: -20px;
    border-top: 14px solid var(--color-yellow-ledge);
    border-right: 10px solid transparent;
    border-bottom: 0;
    border-left: 10px solid transparent;
    transform: none;
  }

  .table-cards--dates th[scope="row"] {
    white-space: nowrap;
  }

  /* 表の形の時は、英単語と数字(Amazon・10,000 など)を途中で折らない。列の名前・用語集への言葉・折らないかたまりも折らない
     (直し17・画面確認5 問題6: 体の overflow-wrap: anywhere で、狭い列が1字ずつに折れていた。
     行の見出しは長い物もあるので折ってよい: 折らないと、となりの列が細くなる) */
  .table-cards th,
  .table-cards td {
    overflow-wrap: break-word;
  }

  .table-cards thead th {
    word-break: keep-all;
  }

  .table-cards .nobreak,
  .table-cards .term-link {
    white-space: nowrap;
  }

  .table-cards thead {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
  }

  .table-cards {
    display: table;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-tint);
  }

  .table-cards thead {
    display: table-header-group;
  }

  .table-cards tbody {
    display: table-row-group;
  }

  .table-cards tr,
  .table-cards tbody tr {
    display: table-row;
    margin: 0;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .table-cards th,
  .table-cards td {
    display: table-cell;
    padding: var(--space-3) var(--space-4);
    border-bottom: 2px solid var(--color-tint-line);
    text-align: left;
    vertical-align: top;
  }

  .table-cards thead th {
    background: var(--color-yellow-soft);
  }

  .table-cards tbody th {
    font-size: var(--font-size-body);
  }

  .cell-label {
    display: none;
  }

  .table-cards--stack {
    display: block;
    overflow: visible;
    border-radius: 0;
    box-shadow: none;
  }

  .table-cards--stack caption {
    display: block;
  }

  .table-cards--stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .table-cards--stack tbody {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
  }

  .table-cards--stack tr,
  .table-cards--stack tbody tr {
    display: block;
    margin: 0;
    padding: var(--space-3) var(--space-4);
    border-radius: 20px;
    box-shadow: var(--shadow-tint);
  }

  .table-cards--stack th,
  .table-cards--stack td {
    display: block;
    padding: var(--space-1) 0;
    border-bottom: 0;
  }

  .table-cards--stack td {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
  }

  .table-cards--stack .cell-label {
    display: inline-block;
  }

  .paper-head--picture {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 36%);
    align-items: center;
    gap: var(--space-5);
  }
}

@media (max-width: 767px) {
  .shot-mark--down::after,
  .shot-mark--up::after {
    border-left-width: 6px;
    border-right-width: 6px;
  }

  .shot-mark--down::after {
    border-top-width: 9px;
  }

  .shot-mark--up::after {
    border-bottom-width: 9px;
  }
}

@media (max-width: 379px) {
  .promise-bar {
    margin-bottom: var(--space-3);
    padding: var(--space-1) var(--space-3);
  }
}

/* ---------- 前の CSS の、クラスの無い決まり(見本 A2 に無い物) ---------- */
button {
  font: inherit;
  color: inherit;
}

a,
button,
label {
  touch-action: manipulation;
}

p,
li,
dt,
dd,
figcaption,
caption,
label {
  text-wrap: pretty;
}

[data-asin-out] {
  min-height: 3.5em;
}

/* チェックは行の全体が押す所(44px 以上)。四角の見た目は .check-box */
.check input {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.check:has(input:focus-visible) {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 8px;
}
/* ---------- 直し16: トップの題字「スパーくんニュース」は、どの幅でも1行(見本の札は折れて下へ) ---------- */
.paper-title {
  flex-wrap: wrap;
  gap: 8px 16px;
}

.paper-title-text {
  white-space: nowrap;
}

/* ---------- 直し16: 見出しの横の小さいスパーくん(<img class="spk-seal">。作る道具が入れる・飾り) ---------- */
.card-title::before,
.section-title::before,
.paper-section-title::before {
  content: none;
}

.card-title,
.section-title,
.paper-section-title {
  display: block;
}

.has-seal {
  position: relative;
  padding-left: calc(var(--seal) + 16px) !important;
}

.spk-seal {
  position: absolute;
  left: 0;
  top: 50%;
  width: var(--seal);
  height: var(--seal);
  padding: 2px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--color-accent-soft);
  opacity: 0.85;
  transform: translateY(-50%);
}


/* =================================================================
   絵の大きさ4: 絵の大きさと置き方だけを変えた所(色・字・余白はそのまま)
   ================================================================= */
/* トップ: 頭の右の大きい絵の枠はやめ、文字だけの頭にする */
.paper-head {
  grid-template-columns: minmax(0, 1fr);
}

.paper-head-body {
  max-width: 760px;
}

.title-spk {
  flex-shrink: 0;
  object-fit: contain;
}

/* スマホ: 題「スパーくんニュース」を1行に収め、横のスパーくんが字を押し出さないようにする */
@media (max-width: 479px) {
  .paper-title {
    font-size: 30px;
    letter-spacing: 0.04em;
  }

  .paper-title-text {
    white-space: nowrap;
  }
}

/* トップ: 題の横に小さく+ひとことの吹き出し(字は HTML) */
.paper-head-body {
  max-width: 1000px;
}

.paper-title {
  flex-wrap: wrap;
  gap: 8px 20px;
}

.title-with {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.6;
}

.title-bubble {
  position: relative;
  order: 2;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface-solid);
  color: var(--ink);
}

.title-bubble::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-left: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface-solid);
  transform: translateY(-50%) rotate(45deg);
}

.title-spk {
  order: 1;
  width: clamp(56px, 48px + 1.8vw, 72px);
  height: clamp(56px, 48px + 1.8vw, 72px);
}

/* 中身: 頭の絵は右に小さく、題名の横に回り込む */
.hero--lesson {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  grid-template-areas:
    "crumb crumb"
    "kicker kicker"
    "title pic"
    "pos pos"
    "answer answer";
  column-gap: 16px;
}

.hero--lesson .crumb { grid-area: crumb; }
.hero--lesson .kicker { grid-area: kicker; }
.hero--lesson .page-title { grid-area: title; }
.hero--lesson .page-pos { grid-area: pos; }
.hero--lesson .answer-first { grid-area: answer; }

.hero-picture {
  grid-area: pic;
  align-self: center;
  margin-top: 0;
}

@media (min-width: 960px) {
  .hero--lesson {
    grid-template-columns: minmax(0, 1fr) 240px;
    column-gap: 32px;
  }
}

/* ---------- 直し16 の最後の合わせ(点検の決まり) ---------- */
/* 題字の字の大きさは h1 に置く(題字を折る見張りが h1 の大きさで試す)。どの幅でも1行 */
.paper-title {
  font-size: clamp(26px, 7vw, 52px);
}

/* 数直線の端の札は、枠の中に収める(書体が替わって字の幅が少し広がったため。右の端の近くは右寄せ・左の端の近くは左寄せ) */
.numline-label.at-x-90,
.numline-label.at-x-95 {
  transform: translateX(-100%);
}

.numline-label.at-x-5,
.numline-label.at-x-10 {
  transform: none;
}

/* 本文の中のページへのリンク: 上下に余白を足して押しやすく(前の決まり) */
.page-ref {
  padding: 11px 0;
  font-weight: 700;
  text-underline-offset: 3px;
}

.page-ref.is-soon {
  padding: 0;
  font-weight: 400;
}

/* 画面の写真の番号の丸: 狭い画面では写真が小さいので、丸も少し小さくする(重ならない・枠の外に出ない) */
@media (max-width: 399px) {
  .shot-frame > .shot-mark {
    width: 26px;
    height: 26px;
    font-size: 16px;
  }
}

/* スマホで写真の一部を大きく切り出す枠(sm-zoom-*): はみ出しは枠で切る(前の決まり) */
@media (max-width: 559px) {
  .shot-frame[class*="sm-zoom"] {
    overflow: hidden;
  }

  .shot-frame[class*="sm-zoom"] img {
    max-width: none;
    border-radius: 0;
  }
}

/* いちばん狭い画面(〜379px): 最初の画面に「はじめから読む」が入るように、頭を少し詰める */
@media (max-width: 379px) {
  .paper-head {
    padding-top: 16px;
  }

  .paper-site {
    letter-spacing: 0.04em;
  }

  .title-spk {
    width: 44px;
    height: 44px;
  }

  .paper-lead {
    margin-top: 8px;
    line-height: 1.8;
  }

  .paper-actions {
    margin-top: 16px;
  }

  /* 見出しの印と字のすき間を少し詰める(長い見出しが枠からはみ出さない) */
  .has-seal {
    padding-left: calc(var(--seal) + 10px) !important;
  }
}

/* =================================================================
   直し18: トップ(デザイン案4 のトップ案1)・柱のページ・上の帯(8つの柱・Keepa完全攻略ガイド)。
   見本の top.css から、案1 と柱のページで使う所を写した。色は変数だけ。スパーくんは動かさない。
   ================================================================= */

/* ---------- 上の帯: 「8つの柱」を押すと、帯のすぐ下に8つの柱 ---------- */
.site-nav-btn {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  gap: 6px;
}

.site-nav-btn:focus-visible,
.pillar-menu-link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.nav-caret {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 2px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.site-nav-btn[aria-expanded="true"] .nav-caret {
  transform: translateY(2px) rotate(-135deg);
}

/* 今いる所の印(黄色みの地+太字)。開いている間・柱の所を読んでいる間は「8つの柱」へ移る */
.site-nav-link[aria-current="page"],
.site-nav-btn.is-here,
.site-nav-btn[aria-expanded="true"],
.site-nav.is-at-pillars .site-nav-btn {
  color: var(--ink);
  font-weight: 700;
  background: var(--color-glow);
}

.site-nav.is-open .site-nav-link[aria-current="page"],
.site-nav.is-at-pillars .site-nav-link[aria-current="page"] {
  color: var(--sub);
  font-weight: 400;
  background: transparent;
}

.pillar-menu {
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  border-top: 1px solid var(--line);
  background: var(--surface-solid);
}

.pillar-menu[hidden] {
  display: none;
}

.pillar-menu-in {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px var(--gutter) 14px;
}

.pillar-menu-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 560px) {
  .pillar-menu-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .pillar-menu-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.pillar-menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 12px;
  border-radius: 12px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
}

.pillar-menu-link:hover {
  background: var(--well);
}

.pillar-menu-num {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 16px;
  letter-spacing: 0.08em;
}

.pillar-menu-link[aria-current="page"] {
  background: var(--color-glow);
}

/* ---------- 題「SELLER SPARK 毎日更新のニュース」 ---------- */
.top-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 20px;
  margin: 6px 0 0;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.35;
}

.top-title-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.22em;
  font-size: clamp(26px, 8.2vw, 56px);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.top-title-brand .spark-mark {
  width: 0.78em;
  height: 0.78em;
  stroke-width: 1.6;
}

.top-title-sub {
  font-size: clamp(22px, 6vw, 36px);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.top-daily {
  font-weight: 700;
  color: var(--accent);
}

.top-head {
  padding: 32px 0 var(--gap-paper);
}

@media (min-width: 960px) {
  .top-head {
    padding-top: 64px;
  }
}

/* ---------- スパーくんの吹き出し(字は HTML) ---------- */
.spk-say {
  display: flex;
  align-items: center;
  gap: 14px;
}

.spk-say-img {
  flex-shrink: 0;
  height: auto;
  object-fit: contain;
}

.spk-say-bubble {
  position: relative;
  margin: 0;
  padding: 12px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--surface-solid);
  color: var(--ink);
  line-height: 1.8;
}

.spk-say-bubble::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-left: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface-solid);
  transform: translateY(-50%) rotate(45deg);
}

.spk-say-name {
  display: block;
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
}

.spk-say-text {
  display: block;
}

/* ---------- ニュースの出どころ: X の表示名と @名前 ---------- */
.news-src {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0 0;
  color: var(--ink);
  line-height: 1.6;
}

.news-src-x {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--color-ink);
  color: var(--color-on-dark);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.news-src-who {
  min-width: 0;
}

.news-src-name {
  font-weight: 700;
}

.news-src-id {
  color: var(--sub);
  overflow-wrap: anywhere;
}

.news-src + .news-meta {
  margin-top: 4px;
}

/* ---------- 柱の所(トップ) ---------- */
.learn-lead {
  margin: -8px 0 20px;
  color: var(--sub);
}

.learn > .glossary-link,
.pillar-others > .glossary-link {
  margin: 28px 0 32px;
}

.learn .progress-box {
  margin-top: 8px;
}

.pl-num {
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.pl-name {
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.pl-arrow {
  color: var(--accent);
  font-size: 20px;
  font-weight: 700;
}

.pl-cards,
.pl-list,
.pl-tiles,
.pl-band-list,
.pl-index {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pl-cards a,
.pl-list a,
.pl-tiles a,
.pl-band a,
.pl-index a {
  text-decoration: none;
}

.pl-cards a:focus-visible,
.pl-list a:focus-visible,
.pl-tiles a:focus-visible,
.pl-band a:focus-visible,
.pl-band:focus-visible,
.pl-index a:focus-visible,
.pl-step:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* ---------- 柱のページ ---------- */
.page--pillar {
  max-width: 1120px;
}

.pillar-crumb {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 16px;
}

.pillar-hero {
  display: grid;
  gap: 24px;
  padding: 16px 0 40px;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 760px) {
  .pillar-hero {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: center;
    gap: 48px;
    padding: 32px 0 56px;
  }
}

.pillar-hero .kicker {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pillar-hero-icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
}

.pillar-hero-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.6;
}

.pillar-title {
  margin: 4px 0 0;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: clamp(30px, 4vw + 14px, 48px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.pillar-desc {
  max-width: 36em;
  margin: 16px 0 0;
  color: var(--text);
  line-height: 2;
}

.pillar-hero .paper-actions {
  margin-top: 24px;
}

.spk-say--pillar .spk-say-img {
  width: 120px;
}

@media (min-width: 760px) {
  .spk-say--pillar {
    flex-direction: column;
    gap: 18px;
  }

  .spk-say--pillar .spk-say-img {
    width: 180px;
  }

  .spk-say--pillar .spk-say-bubble::before {
    left: 50%;
    top: -7px;
    border-left: 1px solid var(--line-strong);
    border-top: 1px solid var(--line-strong);
    border-bottom: 0;
    transform: translateX(-50%) rotate(45deg);
  }
}

.pillar-pages {
  margin-top: 48px;
}

.pillar-pages-head {
  margin-bottom: 8px;
}

.pillar-count {
  margin: 0 0 8px;
  color: var(--sub);
  text-align: right;
}

.pillar-count .num {
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 600;
}

.pillar-pages .toc {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.pl-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 48px;
}

.pl-step {
  display: flex;
  flex-direction: column;
  min-height: 44px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface-solid);
  color: var(--ink);
  text-decoration: none;
}

.pl-step--next {
  text-align: right;
}

.pl-step-label {
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
}

.pl-step-name {
  font-weight: 700;
  line-height: 1.6;
}

.pillar-others {
  margin-top: 56px;
}

.pillar-others-list .pillar-menu-link {
  border: 1px solid var(--line);
  background: var(--surface-solid);
}

.pillar-others-list .pillar-menu-link[aria-current="page"] {
  border-color: var(--accent-line);
  background: var(--color-glow);
}

/* 柱の名前は「・」「（」の所で折る(単語の途中で折らない。入らない時だけ折る) */
.pl-name,
.pillar-menu-name,
.pillar-title {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* 直し29(全ページの画面の点検): かっこの中(.nobreak)が題の幅より広い時は、ふつうの日本語の折り返しで折る
   (keep-all と anywhere のままだと「）」が行の頭に来る。Lesson 5 の 320・768px) */
.pillar-title .nobreak {
  word-break: normal;
  overflow-wrap: normal;
}



/* ===== 決定 案4: 中身のページ・柱のページの合わせ ===== */
/* いまいる所(SELLER SPARK 毎日更新のニュース › 柱) */
.crumb-trail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 8px;
  margin-bottom: 12px;
  color: var(--sub);
}

.crumb-trail a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.crumb-sep {
  color: var(--sub);
}

.side-glossary .btn-sub {
  width: 100%;
  justify-content: center;
}

.kicker-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

/* 直し20(画面確認6 の低8): 札は「Lesson 2」と、名前の「・」の後でだけ折り返す。まとまりの中は折らず、縮めない */
.kicker-link {
  flex-wrap: wrap;
}

.kicker-link > .nobreak {
  flex: none;
}



/* =================================================================
   デザイン案4(トップの直し 2回目)の共通の部品
   ================================================================= */
[data-when-last][hidden],
[data-when-new][hidden] {
  display: none !important;
}

.top-head {
  padding: 32px 0 24px;
}

@media (min-width: 960px) {
  .top-head {
    padding-top: 56px;
  }
}

.top2 > * + * {
  margin-top: var(--gap-paper);
}

/* ---------- ほかのニュース ---------- */
.more {
  margin-top: 24px;
}

.more-summary-btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--surface-solid);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.more-summary-btn::-webkit-details-marker {
  display: none;
}

.more-summary-btn::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

details[open] > .more-summary-btn::after {
  transform: translateY(2px) rotate(-135deg);
}

.more-summary-btn:focus-visible,
.more-page-link:focus-visible,
.go a:focus-visible,
.pg:focus-visible,
.notice-link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.more-head {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
}

.more-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.more-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 0 8px;
  border-bottom: 1px solid var(--line);
}

.more-rank {
  margin: 0;
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
}

.more-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.7;
}

.more-summary {
  margin: 6px 0 0;
}

.more-item .news-src {
  margin-top: 8px;
}

.more-item .news-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.more-empty {
  margin: 12px 0 0;
  padding: 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--sub);
}

.more--grid .more-list {
  display: grid;
  gap: 12px;
  border-top: 0;
}

.more--grid .more-item {
  padding: 16px 18px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface-solid);
}

@media (min-width: 960px) {
  .more--grid .more-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

.more-page-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 12px;
  min-height: 72px;
  padding: 16px 22px;
  border: 1px solid var(--accent-line);
  border-radius: var(--r-card);
  background: var(--accent-soft);
  color: var(--ink);
  text-decoration: none;
}

.more-page-label {
  font-size: 18px;
  font-weight: 700;
}

.more-page-sub {
  grid-column: 1;
  color: var(--text);
}

.more-page-link .pl-arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.more-peek {
  margin: 10px 0 0;
  padding-left: 1.2em;
  color: var(--text);
}

/* ---------- ボタン(続きから読む・はじめから読む・8つの柱を見る) ---------- */
.go-label {
  font-size: 18px;
  font-weight: 700;
}

.cont-where,
.cont-title {
  display: block;
}

.cont-where {
  color: var(--sub);
}

.cont-title {
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.6;
}

/* ---------- スパーくん(ひとこと+お知らせ) ---------- */
.sb {
  padding: 24px 20px 28px;
  border: 1px solid var(--accent-line);
  border-radius: 28px;
  background: var(--accent-soft);
}

.sb-title {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.sb-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.sb-img {
  flex-shrink: 0;
  width: 150px;
  height: auto;
}

.sb-col {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  width: 100%;
}

.sb-bubble {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 16px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: var(--surface-solid);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: clamp(19px, 1vw + 15px, 24px);
  font-weight: 600;
  line-height: 1.8;
}

.sb-bubble::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -8px;
  width: 14px;
  height: 14px;
  border-left: 1px solid var(--line-strong);
  border-top: 1px solid var(--line-strong);
  background: var(--surface-solid);
  transform: translateX(-50%) rotate(45deg);
}

.sb-notice {
  margin-top: 20px;
  padding: 10px 18px 6px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-solid);
}

.sb-notice-head {
  margin: 4px 0 2px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
}

.notice-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.notice-list li + li {
  border-top: 1px solid var(--line);
}

.notice-link,
.notice-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 12px;
  min-height: 48px;
  padding: 10px 2px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  text-decoration: none;
}

.notice-link .notice-text {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.notice-link:hover {
  background: var(--well);
}

.notice-date {
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

@media (min-width: 760px) {
  .sb {
    padding: 32px 40px 36px;
  }

  .sb-row {
    flex-direction: row;
    gap: 32px;
  }

  .sb-img {
    width: 200px;
  }

  .sb-bubble::before {
    left: -9px;
    top: 50%;
    border-top: 0;
    border-bottom: 1px solid var(--line-strong);
    transform: translateY(-50%) rotate(45deg);
  }
}


/* ---------- 柱8つ(横に流さず、1画面で全部) ---------- */
.pgrid {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pgrid--4,
.pgrid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 960px) {
  .pgrid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  .pgrid--2 {
    gap: 14px;
  }
}

.pg {
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: 100%;
  min-height: 96px;
  padding: 12px 14px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface-solid);
  color: var(--ink);
  text-decoration: none;
}

.pg:hover {
  border-color: var(--accent-line);
  background: var(--color-yellow-tint);
}

.pg .pl-name {
  font-size: clamp(18px, 0.6vw + 15px, 22px);
}

.pg-big {
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.1;
}

@media (min-width: 960px) {
  .pg {
    min-height: 120px;
    padding: 18px 20px 20px;
  }

  .pg-big {
    font-size: 44px;
  }
}

.pg--row {
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.pg-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pg-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  margin-bottom: 4px;
  color: var(--accent);
}

.pg-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.6;
}

.pgrid--list {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-strong);
}

@media (min-width: 760px) {
  .pgrid--list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
  }
}

.pg--line {
  flex-direction: row;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 8px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: none;
}

.pg--line .pg-big {
  flex-shrink: 0;
  width: 44px;
  font-size: 26px;
}

.pg--line .pl-arrow {
  margin-left: auto;
}

@media (min-width: 960px) {
  .pg--line {
    min-height: 76px;
  }

  .pg--line .pg-big {
    width: 60px;
    font-size: 36px;
  }
}

.pg-spk {
  width: 56px;
  height: auto;
  margin-bottom: 2px;
}

@media (min-width: 960px) {
  .pg-spk {
    width: 76px;
  }
}



/* ---------- 案1: 頭に横長の帯+ニュース3列 ---------- */
.hero1 {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  grid-template-areas:
    "spk kicker"
    "spk date"
    "title title"
    "go go";
  align-items: center;
  gap: 6px 16px;
  margin: 20px 0 0;
  padding: 18px 20px 24px;
  border: 1px solid var(--accent-line);
  border-radius: 24px;
  background: linear-gradient(135deg, var(--color-glow), var(--accent-soft) 60%, var(--surface-solid));
}

.hero1-spk {
  grid-area: spk;
}

.hero1-img {
  display: block;
  width: 112px;
  height: auto;
}

.hero1-body {
  display: contents;
}

.hero1-kicker {
  grid-area: kicker;
  align-self: end;
  margin: 0;
}

.hero1-date {
  grid-area: date;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  align-self: start;
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.hero1 .top-daily {
  display: inline-flex;
  padding: 0 12px;
  border: 1px solid var(--accent);
  border-radius: var(--r-pill);
  background: var(--surface-solid);
}

.hero1 .top-title {
  grid-area: title;
  margin-top: 8px;
}

.hero1 .top-title-brand {
  font-size: clamp(22px, 6.6vw, 56px);
}

.hero1 .top-title-sub {
  font-size: clamp(20px, 5.4vw, 34px);
}

/* 直し19: トップの帯の中のボタン = デザイン案10 の案1「大きな2段」(直し19 の決定): 題の下に、黄色の大きな横長1本(主役)+その下に白い枠線のボタン。
   押す物は3つとも箱の形。色の濃さ(黄色の塗り → 白地に枠)で順番が分かる。
   top.css の帯(.hero1)の後に読む。帯の外へは出さない。 */

.hero1 [hidden] {
  display: none !important;
}

.go2 {
  grid-area: go;
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 560px;
  margin-top: 14px;
}

.go2-main {
  display: grid;
  gap: 8px;
}

/* ---------- 上の段: 主役(黄色の塗り) ---------- */
.go2-big {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 10px 12px 10px 24px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--btn-bg);
  box-shadow: 0 3px 0 var(--ink);
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.go2-big:hover {
  background: var(--btn-hover);
}

.go2-big:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--ink);
}

.go2-big-label {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.go2-big-arrow {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--btn-bg);
}

.go2-big-arrow svg {
  width: 22px;
  height: 22px;
}

/* 主役の下の1行(前回の題 / Lesson 1の1ページ目)。長い時は2行まで */
.go2-note {
  display: -webkit-box;
  margin: 0;
  padding: 0 4px;
  overflow: hidden;
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

/* ---------- 下の段: 枠線のボタン(同じ大きさで横に並べる) ---------- */
.go2-row {
  display: flex;
  gap: 12px;
}

.go2-line {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 56px;
  padding: 8px 16px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--surface-solid);
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.go2-line:hover {
  background: var(--accent-soft);
}

.go2-line-icon {
  display: inline-flex;
  flex: none;
  color: var(--accent);
}

.go2-line-label {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.go2-line-arrow {
  display: inline-flex;
  flex: none;
}

.go2-line svg {
  width: 20px;
  height: 20px;
}

/* 線の印 */
.go2 svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.go2 svg circle {
  fill: currentColor;
  stroke: none;
}

.go2 a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* スマホの狭い幅: 下の段の2つは字が切れるので縦に積む */
@media (max-width: 559px) {
  .go2-row {
    flex-direction: column;
    gap: 10px;
  }

  .go2-line {
    flex: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .go2-big,
  .go2-line {
    transition: none;
  }

  .go2-big:active {
    transform: none;
  }
}

@media (min-width: 960px) {
  .hero1 {
    grid-template-columns: 300px minmax(0, 1fr);
    grid-template-areas:
      "spk kicker"
      "spk date"
      "spk title"
      "spk go";
    align-content: center;
    gap: 6px 48px;
    margin-top: 32px;
    padding: 32px 48px 36px 32px;
    border-radius: 32px;
  }

  .hero1-img {
    width: 290px;
  }
}

@media (min-width: 960px) {
  .news-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .news-grid--three .news {
    padding: 26px 24px 20px;
  }
}


/* 大きな見出しは、言葉の切れ目で折る(単語の途中で折らない) */
.cover-title,
.lead-title,
.small-title,
.hl-title,
.more-title,
.news-title {
  word-break: auto-phrase;
}

/* ---------- 直し18 の足し(見本に無い所) ---------- */
/* 上の帯の Keepa完全攻略ガイド: 帯に入る幅(960px〜。直し20・画面確認6 の低11 で 1100px から下げた)だけ帯に出す。
   細い幅は「Lesson」を開いた中から */
.site-nav-guide {
  display: none;
}

@media (min-width: 960px) {
  .site-nav-guide {
    display: inline-flex;
  }
}

.pillar-menu-list--guide {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.pillar-menu-list.pillar-menu-list--guide {
  grid-template-columns: minmax(0, 1fr);
}

.pillar-menu-icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.pillar-menu-icon svg {
  width: 100%;
  height: 100%;
}

.pillar-others .pillar-menu-list--guide {
  margin-top: 12px;
}

/* いまいる所の「SELLER SPARK 毎日更新のニュース」(字は2つに分け、間は余白で空ける) */
.crumb-sub {
  margin-left: 0.5em;
}

/* トップ: ニュースの見出しの下の1行(2026-11-23) */
.news-lead {
  margin: -8px 0 20px;
  color: var(--text);
}

/* トップ: 頭のスパーくん(時間・月・いつでもの絵から1枚。隠した絵は読まない) */
.hero1-spk {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero1-img[hidden] {
  display: none;
}

/* トップ: 柱とは別のまとまり(Keepa完全攻略ガイド)の入口 */
.guide-entry {
  margin-top: 16px;
}

.guide-link {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.guide-link .pg-icon {
  grid-row: 1 / span 2;
  margin: 0;
}

.guide-link .more-page-label,
.guide-link .more-page-sub {
  grid-column: 2;
}

.guide-link .pl-arrow {
  grid-column: 3;
}

/* ほかのニュースの「初心者へ」 */
.more-tip {
  margin: 8px 0 0;
  padding: 10px 14px;
  border-radius: var(--r-pic);
  background: var(--well);
}

/* ニュースの3列: 細い列の中の図(くらべるカード)は縦に並べる */
@media (min-width: 960px) {
  .news-grid--three .compare {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Lesson のページの絵と吹き出しは、どの幅でも縦に並べる(スマホで横に並べると、吹き出しが右へはみ出した) */
.spk-say--pillar {
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.spk-say--pillar .spk-say-bubble {
  align-self: stretch;
}

.spk-say--pillar .spk-say-bubble::before {
  left: 50%;
  top: -7px;
  border-left: 1px solid var(--line-strong);
  border-top: 1px solid var(--line-strong);
  border-bottom: 0;
  transform: translateX(-50%) rotate(45deg);
}

/* 柱のページの絵(頭の絵 pillar-N・横長の場面の絵) */
.spk-say--pillar .spk-say-img--scene {
  width: 100%;
  max-width: 360px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-solid);
}

@media (min-width: 760px) {
  .spk-say--pillar .spk-say-img--scene {
    width: 100%;
  }
}

.toc-item.is-soon .toc-num:empty {
  visibility: hidden;
}

/* 早見のカードの行: 印・太字・文が別々の列に分かれて1字ずつ折れていた(デザイン案7 の係が見つけた崩れ)。1行の文として流す */
.compare-list li {
  display: block;
  position: relative;
  padding-left: 1.6em;
}

.compare-list li > .mark-no,
.compare-list li > .mark-yes {
  position: absolute;
  left: 0;
  top: 0;
}

.compare-list li + li {
  margin-top: 6px;
}

/* =================================================================
   直し18: 中身のページ(デザイン案7 の案1「今の形をととのえる」)。共通の部品と作る道具の頭だけで広げる
   (ページの元は書き直さない)。1段の本文+PC は右に目次と同じ柱のページ・先に答えを頭に大きく・頭の絵はスパーくん。
   ================================================================= */
.v .vhero {
  display: block;
  padding-top: 24px;
}

.v .vhero > *,
.v .vhero .v-titles > *,
.v .v1-head > * {
  grid-area: auto;
  order: 0;
}

.v .vhero .crumb {
  margin-bottom: 8px;
}

.v .v-titles .kicker {
  margin: 0 0 8px;
  letter-spacing: 0.1em;
}

.v .vhero .page-pos {
  order: 0;
  margin: 12px 0 0;
  padding: 0;
  border: 0;
  color: var(--sub);
}

.v .v-pic {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  aspect-ratio: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-solid);
  box-shadow: none;
  float: none;
}

.v .v-answer-label {
  display: inline-flex;
  align-items: center;
  margin: 0 0 12px;
  padding: 2px 14px;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.8;
}

.v1 {
  --gap-section: 60px;
}

.v1 .v1-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  align-items: center;
  gap: 16px;
}

@media (min-width: 960px) {
  .v1 .vhero {
    padding-top: 48px;
  }

  .v1 .v1-head {
    grid-template-columns: minmax(0, 1fr) 200px;
    gap: 32px;
  }
}

.v1 .v1-answer {
  margin-top: 24px;
  padding: 22px 20px 24px 22px;
  border: 0;
  border-left: 6px solid var(--mark);
  border-radius: 0 18px 18px 0;
  background: var(--accent-soft);
  color: var(--ink);
  box-shadow: none;
}

.v1 .v1-answer p:not(.v-answer-label) {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(19px, 16.5px + 0.7vw, 24px);
  font-weight: 600;
  line-height: 1.85;
}

.v1 .v1-answer p + p {
  margin-top: 0.6em;
}

@media (min-width: 960px) {
  .v1 .v1-answer {
    padding: 28px 36px 30px 32px;
  }
}

/* スマホ: 目次はたたんで頭の下に(PC は右の列) */
.v1 .v1-toc-sp {
  margin-top: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface-solid);
}

.v1 .v1-toc-sum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 8px 18px;
  color: var(--ink);
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.v1 .v1-toc-sum::-webkit-details-marker {
  display: none;
}

.v1 .v1-toc-sum::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-2px) rotate(45deg);
}

.v1 .v1-toc-sp[open] .v1-toc-sum::after {
  transform: translateY(2px) rotate(-135deg);
}

.v1 .v1-toc-sum:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.v1 .v1-toc-list {
  margin: 0;
  padding: 0 18px 8px;
  list-style: none;
}

.v1 .v1-toc-list li {
  border-top: 1px solid var(--line);
}

.v1 .v1-toc-list .side-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  color: var(--ink);
}

@media (min-width: 1100px) {
  .v1 .v1-toc-sp {
    display: none;
  }
}

/* スパーくんのひとこと: 横長の1枚(絵は小さく)。ページの元の .spk-hint をそのまま、この形に */
.v1 .spk-hint {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--accent-line);
  border-radius: 20px;
  background: var(--accent-soft);
}

.v1 .spk-hint .spk {
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}

.v1 .spk-hint .bubble {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 16px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--surface-solid);
}

.v1 .spk-hint .bubble-name {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.6;
}

.v1 .spk-hint .bubble-text {
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.85;
}

@media (min-width: 640px) {
  .v1 .spk-hint {
    grid-template-columns: 128px minmax(0, 1fr);
    padding: 22px 28px;
  }
}

/* 横の列の「せどり用語集はここから」 */
.side-glossary {
  padding: 16px 18px;
}

/* ===== 土台の直し(デザイン案10 の係が見つけた・デザイン案8 にもある。2026-11-24) =====
   1) 読んだページの細い帯(6px)に、別の所用のチェック印(.progress-seg.is-done::after)が付き、
      位置の基準が無いため画面いっぱいの「V」になって帯の上を横切っていた(読んだ記録がある人には必ず出た)。細い帯には印を付けない。 */
.progress-segs .progress-seg.is-done::after {
  content: none;
}

/* 2) 帯の題「SELLER SPARK」: 960〜1050px で右の列と帯の枠からはみ出していた(960px は横スクロールも)。
      960px 以上は、題の字を右の列の幅に合わせる(1280px では今の 56px のまま) */
@media (min-width: 960px) {
  .hero1 .top-title-brand {
    font-size: clamp(32px, calc((100vw - 520px) / 10.6), 56px);
  }
}

/* 3) 帯のすぐ下の「今日の話題」が帯にくっついていたので、間を空ける */
.page--top .hero1 + .top2 {
  margin-top: 28px;
}

@media (min-width: 960px) {
  .page--top .hero1 + .top2 {
    margin-top: 40px;
  }
}

/* 4) 320〜379px の上の帯: 「Lesson」のボタン(印つき)で3つの合計が帯の枠より 20px 広くなっていた(字は画面の中)。
      帯の枠を左右の詰めた分まで広げ、339px 以下は字の左右の余白を少し詰めて、枠の中に収める */
@media (max-width: 379px) {
  .site-nav {
    width: calc(100% + 16px);
  }

  .site-nav-btn {
    gap: 4px;
  }
}

@media (max-width: 339px) {
  .site-nav-link {
    padding: 0 6px;
  }
}

/* 5) 横の列がある幅(1100px〜)は、頭の絵の列を少し細くして、題の列を広げる。
      題の頭のまとまり(「出品できない商品は、」など・折らない)が、字が46pxになる幅で題の列より2〜4px長くなっていた */
@media (min-width: 1100px) {
  .v1 .v1-head {
    grid-template-columns: minmax(0, 1fr) 176px;
    gap: 28px;
  }
}

/* 6) トップの「読んだページ」の箱: 960〜1100px くらいで、右(記録の説明とボタン)が文の長さぶん幅を取り、
      左の「読んだページ 5/54」と細い帯が 60px ほどに押しつぶされて1字ずつ縦に折れていた。左に最低の幅を取り、右は残りの幅で折り返す */
@media (min-width: 960px) {
  .progress-box {
    grid-template-columns: minmax(280px, 1fr) minmax(0, auto);
  }
}

/* 7) 写真の説明の行(番号つき): 横並びの箱(flex)だと、文の中にリンクや印がある時に字のかたまりが別々の細い列に分かれ、
      1字ずつ縦に折れていた(⑦の「」の線」・㊴の「（△）」をスマホで)。番号は左に置いたまま、文は1行の文として流す */
.shot-notes li:has(> .shot-no) {
  display: block;
  position: relative;
  min-height: 30px;
  padding-left: 38px;
}

.shot-notes li > .shot-no {
  position: absolute;
  left: 0;
  top: 1px;
  margin-top: 0;
}

/* 8) まだ読めないページの行(Keepa完全攻略ガイドの㊲・準備中): 空の ::before が表の列を1つ取り、題が 28px の列に押し込まれて
      1字ずつ縦に折れていた。空の印は作らない */
.toc-item.is-soon::before {
  content: none;
}

/* =================================================================
   直し19: 図の決まり(決定「図と挿絵=案1 線のアイコン」)。
   1) デザイン案8 の図の決まり(zukai.css)、2) デザイン案9 の案1 の図(zu-common.css+案1 の zu.css)と
   見本2(デザイン案11)で足した図の決まり(zu-more.css)。後ろの物が上から決める。
   図の中は線と字だけ: 影・グラデーション・4px より大きな角の丸み・▼▲●・赤と緑・面の色は使わない(割合の帯の2か所を除く)。
   ================================================================= */

/* ===== 図の決まり(大人の図・2026-11-23「もっと洗練させて」) =====
   - 図の中に、丸い・かわいい絵(色の付いたアイコン・色の付いた丸・太い矢印・▼▲●)を使わない
   - 線画のアイコン(線 1.5px・24 の枠・角は丸めた線端)か、番号と字だけで見せる
   - 色は 地の色+濃い字(--ink)+強調1色(黄土 --accent)だけ。影・グラデーション・大きな角の丸み(4px より大)は使わない
   - 線は 1px(--line-strong)。余白を広く、字が主役 */
.page {
  --fig-line: var(--line-strong);
  --fig-soft: var(--line);
  --fig-r: 4px;
}

/* 線画のアイコン(図の中だけ) */
.line-icon {
  display: inline-grid;
  place-items: center;
  color: var(--accent);
}

.line-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 4つの流れ(番号つきの段+細い線。PC は横・スマホは縦) ---------- */
.flow {
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-step {
  position: relative;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 0 20px;
  padding: 0 0 36px;
  border: 0;
}

.flow-step::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 48px;
  bottom: 8px;
  width: 1px;
  background: var(--fig-line);
}

.flow-step:last-child {
  padding-bottom: 0;
}

.flow-step:last-child::before {
  content: none;
}

.flow-pic.line-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--fig-line);
  border-radius: var(--fig-r);
  background: var(--surface-solid);
}

.flow-pic.line-icon svg {
  width: 24px;
  height: 24px;
}

.flow-name {
  margin-bottom: 4px;
  font-size: 20px;
  letter-spacing: 0.04em;
}

/* お金の動きは記号を外し、細い線の上の小さな札に */
.money {
  display: block;
  margin-top: 14px !important;
  padding-top: 10px;
  border-top: 1px solid var(--fig-soft);
  color: var(--ink);
  font-size: 16px;
  letter-spacing: 0.08em;
}

.money > span[aria-hidden="true"] {
  display: none;
}

.money--out {
  color: var(--ink);
}

.money--in {
  color: var(--accent);
}

.money--wait {
  color: var(--sub);
  font-weight: 400;
}

.flow-example {
  border-left: 1px solid var(--accent);
}

@media (min-width: 960px) {
  .flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 28px;
  }

  .flow-step {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0;
  }

  /* 横の細い線で次の段へつなぐ */
  .flow-step::before {
    left: 52px;
    right: -20px;
    top: 20px;
    bottom: auto;
    width: auto;
    height: 1px;
  }

  .flow-body {
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  .flow-body .money {
    margin-top: auto !important;
  }

  .flow-body .money::before {
    content: "";
    display: block;
    height: 14px;
  }
}

/* ---------- お金の時間の線 ---------- */
.timeline-item::before {
  width: 7px;
  height: 7px;
  top: 21px;
  left: -22px;
  border-radius: 50%;
  background: var(--ink);
}

.timeline-item--out::before {
  background: var(--ink);
}

.timeline-item--in::before {
  background: var(--accent);
}

.timeline-item--wait::before {
  border: 1px solid var(--ink);
  background: var(--surface-solid);
}

.timeline-item--in .timeline-when,
.timeline-item--in .timeline-what {
  color: var(--accent);
}

@media (min-width: 760px) {
  .timeline::before {
    top: 3px;
  }

  .timeline-item::before {
    left: 0;
    top: -22px;
  }
}

/* ---------- 3行まとめの図(タイル): 絵を外し、番号と字だけ ---------- */
.sum-tile {
  border: 0;
  border-top: 1px solid var(--ink);
  border-radius: 0;
  background: none;
  padding: 16px 0 0;
}

.sum-tile-no {
  font-size: 28px;
}

.sum-tile-icons {
  gap: 10px;
}

.sum-tile-icons .line-icon svg {
  width: 22px;
  height: 22px;
}

.sum-checks li::before {
  width: 10px;
  height: 1px;
  border-radius: 0;
  background: var(--ink);
}

.sum-tile-text {
  border-top-color: var(--fig-soft);
}

.sum-later .icon {
  color: var(--accent);
}

@media (min-width: 640px) {
  .sum-tiles {
    gap: 28px;
  }
}

/* ---------- 引き算の図 ---------- */
.calc-row {
  gap: 10px;
}

.calc-box,
.calc-box--sell,
.calc-box--fee {
  border: 1px solid var(--fig-line);
  border-radius: var(--fig-r);
  background: none;
}

.calc-box--sell {
  border-color: var(--accent);
}

.calc-box--answer {
  border: 1px solid var(--ink);
  background: var(--surface-solid);
}

.calc-op {
  color: var(--ink);
}

/* ---------- 割合の帯(色は濃い字・黄土・灰の段だけ) ---------- */
.stack {
  height: 28px;
  border-radius: 0;
}

.stack > .stack-seg:first-child,
.stack > .stack-seg:nth-last-child(2) {
  border-radius: 0;
}

.seg-buy {
  background: var(--ink);
}

.seg-profit {
  background: var(--accent);
}

.seg-fee {
  background: var(--color-ink-sub);
}

.seg-ship {
  background: var(--color-line-strong);
}

.seg-other {
  background: var(--color-line);
}

.stack-line {
  width: 1px;
  background: var(--ink);
}

.stack-legend .stack-seg {
  border-radius: 0;
}

/* ---------- くらべるカード・表・番号 ---------- */
.compare-card,
.compare-card--pick {
  border: 1px solid var(--fig-line);
  border-radius: var(--fig-r);
  background: none;
}

.compare-card--pick {
  border-color: var(--accent);
  border-top-width: 3px;
}

.compare-card--warn .compare-title,
.compare-card--ok .compare-title {
  color: var(--ink);
}

.compare-card--warn {
  border-top: 3px solid var(--ink);
}

.compare-title > span[aria-hidden="true"] {
  display: none;
}

.mark-no {
  color: var(--ink);
}

.mark-yes {
  color: var(--accent);
}

.steps-no {
  width: 32px;
  height: 32px;
  border-color: var(--fig-line);
  border-radius: var(--fig-r);
}

.steps-item--check .steps-no {
  border-color: var(--accent);
  background: none;
  color: var(--accent);
}

.shot-notes .shot-no,
.mock .shot-no {
  border-radius: var(--fig-r);
}

/* よくある失敗(✕ と ○ の組): 赤・緑をやめ、濃い字と黄土に */
.ng-label,
.ng .ng-label {
  color: var(--ink);
}

.ok-label,
.ok .ok-label {
  color: var(--accent);
}

/* 表のカード(㊹・56) */
.table-cards {
  border-radius: 0;
}

.note-warn {
  border-radius: var(--fig-r);
}

/* ===== 図の共通(デザイン案9・5案とも同じ) =====
   - 図は figure.zu。中の並べ方は図の幅で決める(@container)。ページの幅ではなく図の幅なので、どのページのどの列に置いても同じに並ぶ
   - 色は 地+濃い字(--ink / --text)+黄土(--accent)の1色まで。影・グラデーション・大きな角の丸み・▼▲● は使わない
   - 字は 16px 以上 */
.zu {
  container-type: inline-size;
  margin: 0 0 40px;
  padding: 0;
}

.zu * {
  box-sizing: border-box;
}

.zu ol,
.zu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.zu p {
  margin: 0;
}

.zu img {
  display: block;
  max-width: 100%;
  height: auto;
}

.zu-cap {
  margin-top: 16px;
  color: var(--sub);
  font-size: 16px;
  line-height: 1.9;
}

/* 4つの流れを、くわしく(5案とも同じ文。字が主役の素直な組み) */
.zu-detail {
  margin: 0 0 48px;
}

.zu-detail-title {
  margin: 0 0 16px;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.zu-detail-list {
  margin: 0;
  border-top: 1px solid var(--line-strong);
}

.zu-detail-item {
  display: grid;
  gap: 4px 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.zu-detail-item dt {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
}

.zu-detail-no {
  color: var(--accent);
  font-weight: 700;
}

.zu-detail-item dd {
  margin: 0;
}

.zu-detail-item dd p {
  margin: 0 0 6px;
}

.zu-detail-item dd p:last-child {
  margin-bottom: 0;
}

.zu-example {
  margin-top: 10px !important;
  padding-left: 14px;
  border-left: 1px solid var(--accent);
}

.zu-example-label {
  display: block;
  color: var(--ink);
  font-weight: 700;
}

@media (min-width: 720px) {
  .zu-detail-item {
    grid-template-columns: 9em minmax(0, 1fr);
  }
}


/* ===== 案1「線のアイコン」 =====
   - 24 の枠の線画アイコン(線 1.5px・端は丸・角は丸)を、1px の細い線でつなぐ。字と番号が主役
   - 色は 地+濃い字(--ink / --text / --sub)+黄土(--accent)だけ。面を塗るのは割合の帯の2か所だけ
   - 並べ方は図の幅で切りかえる(@container)。境目: 流れ・まとめ・時間の線 600px / 引き算 640px / 割合の帯 560px / くらべ 480px */

.zu {
  --zu-line: var(--line-strong);
  --zu-soft: var(--line);
  line-height: 1.75;
  word-break: auto-phrase;
}

/* ---------- 線のアイコン(全部同じ太さ。大きさを変えても線は 1.5px のまま) ---------- */
.zu-ico {
  display: block;
  flex: none;
  width: 24px;
  height: 24px;
  color: var(--ink);
  overflow: visible;
}

.zu-ico * {
  vector-effect: non-scaling-stroke;
}

.zu-ico--accent {
  color: var(--accent);
}

.zu-nw {
  white-space: nowrap;
}

/* ================= ① 4つの流れ(ステッパー) ================= */
/* スマホ(図の幅 600px 未満): 縦。左にアイコン、縦の細い線でつなぐ */
.zu-steps {
  display: grid;
}

.zu-step {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 0 20px;
  padding-bottom: 28px;
}

.zu-step:last-child {
  padding-bottom: 0;
}

/* つなぎの線(縦) */
.zu-step::before {
  content: "";
  position: absolute;
  left: 15.5px;
  top: 44px;
  bottom: 10px;
  width: 1px;
  background: var(--zu-line);
}

.zu-step:last-child::before {
  content: none;
}

.zu-step-mark {
  display: flex;
  justify-content: center;
  padding-top: 2px;
}

.zu-step-mark .zu-ico {
  width: 30px;
  height: 30px;
}

.zu-step--in .zu-step-mark .zu-ico {
  color: var(--accent);
}

.zu-step-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.zu-step-no {
  color: var(--sub);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.12em;
}

.zu-step-name {
  margin-top: 2px !important;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.zu-step-text {
  margin-top: 6px !important;
  color: var(--text);
  font-size: 16px;
}

/* お金の札: 記号は使わず、上の細い線+短い字。出る・かかる=濃い字/まだ=薄い字と点線/入る=黄土 */
.zu-money {
  margin-top: 12px !important;
  padding-top: 8px;
  border-top: 1px solid var(--ink);
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

.zu-money--wait {
  border-top: 1px dashed var(--sub);
  color: var(--sub);
  font-weight: 400;
}

.zu-money--in {
  border-top-color: var(--accent);
  color: var(--accent);
}

/* PC(図の幅 600px 以上): 横に4つ。アイコンの右から次のアイコンの手前まで細い線 */
@container (min-width: 600px) {
  .zu-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 24px;
  }

  .zu-step {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    gap: 20px 0;
    padding: 0;
  }

  .zu-step::before {
    left: 46px;
    right: -14px;
    top: 15.5px;
    bottom: auto;
    width: auto;
    height: 1px;
  }

  /* 4つで行を折り返すので、行の終わり(4つ目・8つ目…)の線は消す(5つ以上の図で、線が図の右へ14px 出ていた・R5 の気づき) */
  .zu-step:nth-child(4n)::before {
    content: none;
  }

  .zu-step-mark {
    justify-content: flex-start;
    padding-top: 0;
  }

  .zu-step-mark .zu-ico {
    width: 32px;
    height: 32px;
  }

  /* お金の札は4つとも下でそろえる */
  .zu-money {
    margin-top: auto !important;
    min-height: calc(3.2em + 9px);
  }

  .zu-step-text {
    margin-bottom: 16px !important;
  }
}

/* ================= ① 3行まとめの図(3つの札) ================= */
.zu-cards {
  display: grid;
  gap: 28px;
}

.zu-card {
  display: flex;
  flex-direction: column;
  padding-top: 14px;
  border-top: 1px solid var(--ink);
}

.zu-card-no {
  color: var(--sub);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.12em;
}

.zu-card-mark {
  display: flex;
  align-items: center;
  height: 28px;
  margin: 14px 0 12px;
}

.zu-card-title {
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.zu-card-text {
  margin-top: 6px !important;
  color: var(--text);
  font-size: 16px;
}

/* 札1: 小さなアイコン4つを細い線でつなぐ */
.zu-mini-flow {
  gap: 8px;
  max-width: 260px;
}

.zu-mini-line {
  flex: 1 1 auto;
  min-width: 10px;
  height: 1px;
  background: var(--zu-line);
}

/* 札2: 3つの問い(淡い線で区切る) */
.zu-card-list {
  margin-top: 6px !important;
}

.zu-card-list li {
  padding: 4px 0;
  border-top: 1px solid var(--zu-soft);
  color: var(--text);
  font-size: 16px;
}

.zu-card-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

@container (min-width: 600px) {
  .zu-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

/* ================= ① お金の時間の線(目盛り) ================= */
/* スマホ: 縦の細い線に、横の短い目盛り */
.zu-line {
  display: grid;
  padding-left: 7px;
}

.zu-tick {
  position: relative;
  padding: 0 0 20px 24px;
  border-left: 1px solid var(--zu-line);
}

.zu-tick:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

/* 目盛り(短い線) */
.zu-tick::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 13px;
  width: 13px;
  height: 1px;
  background: var(--ink);
}

/* 待つ間は点線 */
.zu-tick--wait {
  border-left: 1px dashed var(--sub);
}

.zu-tick--in::before {
  background: var(--accent);
}

.zu-tick-when {
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.zu-tick-what {
  color: var(--text);
  font-size: 16px;
}

.zu-tick--wait .zu-tick-what {
  color: var(--sub);
}

.zu-tick--in .zu-tick-when,
.zu-tick--in .zu-tick-what {
  color: var(--accent);
}

/* PC: 横の細い線に、縦の短い目盛り */
@container (min-width: 600px) {
  .zu-line {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: 0;
    padding: 7px 0 0;
  }

  .zu-tick,
  .zu-tick:last-child {
    padding: 18px 14px 0 0;
    border-left: 0;
    border-top: 1px solid var(--zu-line);
  }

  .zu-tick:last-child {
    border-top-color: transparent;
  }

  .zu-tick--wait {
    border-top: 1px dashed var(--sub);
  }

  .zu-tick::before {
    left: 0;
    top: -7px;
    width: 1px;
    height: 13px;
  }
}

/* ================= ⑮ 引き算の行 ================= */
/* スマホ(図の幅 640px 未満): 縦の明細。記号・アイコン・名前・金額 */
.zu-calc-row {
  display: grid;
  grid-template-columns: 2em 40px minmax(0, 1fr) auto;
  column-gap: 0;
  border-top: 1px solid var(--zu-line);
  border-bottom: 1px solid var(--zu-soft);
}

.zu-term {
  grid-column: 2 / 5;
  display: grid;
  grid-template-columns: subgrid;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--zu-soft);
}

.zu-term:first-child {
  border-top: 0;
}

.zu-op {
  grid-column: 1;
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--zu-soft);
  color: var(--sub);
  font-family: var(--font-head);
  font-size: 20px;
  line-height: 1;
}

/* 答えの行は、濃い線で区切る(明細の合計の形) */
.zu-op--eq,
.zu-term--answer {
  border-top-color: var(--ink);
}

.zu-term-label {
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}

.zu-term-val {
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  text-align: right;
  white-space: nowrap;
}

.zu-term--answer .zu-ico,
.zu-term--answer .zu-term-label,
.zu-term--answer .zu-term-val {
  color: var(--accent);
}

.zu-term--answer .zu-term-val {
  font-size: 22px;
}

/* PC: 横の引き算。札は上に 1px の線、答えだけ黄土の線 */
@container (min-width: 640px) {
  .zu-calc-row {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 10px;
    border-top: 0;
    border-bottom: 0;
  }

  .zu-term,
  .zu-term:first-child {
    grid-column: auto;
    grid-row: 1 / 4;
    grid-template-columns: none;
    grid-template-rows: subgrid;
    align-items: start;
    row-gap: 6px;
    padding: 14px 0 0;
    border-top: 1px solid var(--zu-line);
  }

  .zu-term--answer {
    border-top-color: var(--accent);
  }

  .zu-op,
  .zu-op--eq {
    grid-column: auto;
    grid-row: 3;
    align-self: center;
    padding: 0;
    border-top: 0;
  }

  .zu-term-label {
    align-self: start;
  }

  .zu-term-val {
    text-align: left;
    align-self: end;
  }
}

/* ================= ⑮ 割合の帯 ================= */
.zu-ratio-box {
  position: relative;
}

.zu-band {
  display: flex;
  border: 1px solid var(--ink);
}

.zu-band-seg--buy {
  flex: 60 1 0;
  background: var(--ink);
}

.zu-band-seg--profit {
  flex: 20 1 0;
  background: var(--accent);
}

/* 引かれる費用は面なし。中の区切りは 1px の線だけ(販売手数料 10%・送る費用 5%・そのほか 5%) */
.zu-band-seg--cost {
  flex: 20 1 0;
  display: flex;
}

.zu-band-sub {
  flex: 5 1 0;
  border-left: 1px solid var(--zu-line);
}

.zu-band-sub--fee {
  flex: 10 1 0;
  border-left: 0;
}

.zu-six {
  position: absolute;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  white-space: nowrap;
}

.zu-blab {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.zu-blab-name {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

.zu-blab-val {
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

.zu-blab--profit .zu-blab-name,
.zu-blab--profit .zu-blab-val {
  color: var(--accent);
}

/* スマホ(図の幅 560px 未満): 帯を縦にして、数字の札を右に直接 */
.zu-ratio-box {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 18px;
  height: 340px;
  margin-left: 8px;
}

.zu-band {
  flex-direction: column;
}

.zu-band-seg--cost {
  flex-direction: column;
}

.zu-band-sub {
  border-left: 0;
  border-top: 1px solid var(--zu-line);
}

.zu-band-sub--fee {
  border-top: 0;
}

.zu-band-labels {
  display: grid;
  grid-template-rows: 6fr 2fr 2fr;
}

.zu-blab {
  justify-content: center;
}

.zu-blab--buy {
  justify-content: flex-start;
  padding-top: 18px;
}

/* 6割の線(横): 帯の左から右の端まで。字は線の上の右 */
.zu-six {
  left: -8px;
  right: 0;
  top: 60%;
  border-top: 1px solid var(--ink);
}

.zu-six-text {
  position: absolute;
  right: 0;
  bottom: 4px;
}

/* PC(図の幅 560px 以上): 横の帯。数字の札は帯のすぐ下、6割の線は上へ伸ばして字を乗せる */
@container (min-width: 560px) {
  .zu-ratio-box {
    display: block;
    height: auto;
    margin-left: 0;
    padding-top: 36px;
  }

  .zu-band {
    flex-direction: row;
    height: 40px;
  }

  .zu-band-seg--cost {
    flex-direction: row;
  }

  .zu-band-sub {
    border-top: 0;
    border-left: 1px solid var(--zu-line);
  }

  .zu-band-sub--fee {
    border-left: 0;
  }

  .zu-band-labels {
    display: grid;
    grid-template-rows: none;
    grid-template-columns: 6fr 2fr 2fr;
  }

  .zu-blab,
  .zu-blab--buy {
    justify-content: flex-start;
    padding: 12px 8px 0 10px;
    border-left: 1px solid var(--zu-line);
  }

  .zu-blab--buy {
    border-left-color: var(--ink);
  }

  .zu-blab--profit {
    border-left-color: var(--accent);
  }

  .zu-six {
    left: 60%;
    right: auto;
    top: 0;
    height: 86px;
    border-top: 0;
    border-left: 1px solid var(--ink);
    transform: translateX(-0.5px);
  }

  .zu-six-text {
    right: auto;
    left: 8px;
    top: -2px;
    bottom: auto;
  }
}

/* ================= ⑮ くらべ(2つの上限) ================= */
.zu-cmp-box {
  container-type: inline-size;
}

.zu-cmp {
  display: grid;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.zu-cmp-item {
  padding-top: 14px;
  border-top: 1px solid var(--line-strong);
}

.zu-cmp-item p {
  margin: 0;
}

.zu-cmp-title {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

.zu-cmp-val {
  margin-top: 4px !important;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.zu-cmp-text {
  margin-top: 6px !important;
  color: var(--text);
  font-size: 16px;
  line-height: 1.75;
}

/* 選んだ方(6割の上限)は黄土の線と字 */
.zu-cmp-item--pick {
  border-top-color: var(--accent);
}

.zu-cmp-item--pick .zu-cmp-title,
.zu-cmp-item--pick .zu-cmp-val {
  color: var(--accent);
}

@container (min-width: 480px) {
  .zu-cmp {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }
}


/* ===== zu-more.css ===== */
/* ===== 見本2 で足した図の決まり(案1 線のアイコンの考え方を、ほかの図の部品にも当てる) =====
   面の色・影・4px より大きな角の丸み・赤と緑を使わない。線は 1px、字が主役。強調は黄土だけ。 */

/* ---------- 手順(番号の段) ---------- */
.steps-figure .steps-item {
  border-bottom: 1px solid var(--line);
}

.steps-figure .steps-no {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: none;
  color: var(--ink);
  font-size: 16px;
}

/* ---------- くらべ(○△× の箱): 枠と面をやめ、上の 1px の線と字だけ ---------- */
.compare {
  column-gap: 28px;
}

.compare .compare-card,
.compare .compare-card--pick,
.compare .compare-card--warn,
.compare .compare-card--ok {
  padding: 16px 0 0;
  border: 0;
  border-top: 1px solid var(--line-strong);
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.compare .compare-card--warn {
  border-top-color: var(--ink);
}

.compare .compare-card--pick {
  border-top-color: var(--accent);
}

.compare .compare-card--pick .compare-title {
  color: var(--accent);
}

.compare .compare-card .num {
  font-size: 26px;
}

/* ---------- 表(カードの形の表): 面と角をやめ、行ごとに上の線 ---------- */
.table-cards tbody tr {
  margin-bottom: 0;
  padding: 16px 0;
  border-top: 1px solid var(--line-strong);
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.table-cards tbody tr:last-child {
  border-bottom: 1px solid var(--line-strong);
}

@media (min-width: 640px) {
  .table-cards:not(.table-cards--stack) thead {
    background: none;
  }

  .table-cards:not(.table-cards--stack) thead th {
    background: none;
    border-bottom: 1px solid var(--ink);
  }

  .table-cards:not(.table-cards--stack) tbody tr {
    padding: 0;
    border-top: 0;
  }

  .table-cards:not(.table-cards--stack) tbody tr:last-child {
    border-bottom: 0;
  }

  .table-cards:not(.table-cards--stack) tbody th,
  .table-cards:not(.table-cards--stack) tbody td {
    border-bottom: 1px solid var(--line);
    background: none;
  }
}

/* ---------- 2つ並べる流れ(㊹ チケット): 面と大きな丸みをやめる ---------- */
.flow-pair-col {
  padding: 16px 0 0;
  border-top: 1px solid var(--ink);
  border-radius: 0;
  background: none;
  box-shadow: none;
}

@media (min-width: 640px) {
  .flow-pair {
    grid-template-columns: 1fr 1fr;
    column-gap: 28px;
  }
}

/* ---------- 線のグラフ(画面の形の図・形のくらべ・季節) ---------- */
.chart-plot {
  border-left: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: none;
}

.chart-line {
  stroke: var(--ink);
  stroke-width: 1.5;
}

.chart-line--2 {
  stroke: var(--accent);
  stroke-dasharray: 5 4;
}

.chart-key {
  border-top: 1.5px solid var(--ink);
}

.chart-key--2 {
  border-top: 1.5px dashed var(--accent);
}

.chart-card {
  padding: 14px 0 0;
  border-top: 1px solid var(--line-strong);
  border-radius: 0;
  background: none;
  box-shadow: none;
}

/* 形のくらべの札(○買う候補・▲やめる): ▲ の記号は外し、字の色で分ける */
.chart-card .chart-card-title > span[aria-hidden="true"] {
  display: none;
}

/* ---------- 画面の形の図(mock): 角 4px・面なし・強調は黄土の線 ---------- */
.mock {
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface-solid);
  box-shadow: none;
}

.mock-hl {
  border-radius: 2px;
  background: none;
  box-shadow: inset 2px 0 0 var(--accent);
}

.mock-col,
.mock-page,
.mock-bar,
.mock-input {
  border-radius: 2px;
  background: none;
  box-shadow: none;
}

.mock-blank {
  border-radius: 2px;
}

/* 図の説明は、どの図も同じ字に */
.figure-cap {
  color: var(--sub);
}

/* 表の札(スマホの「「はい」の時」など)・画面の形の図のボタンと箱: 丸い札をやめ、字だけ/角 2px に */
.table-cards .cell-label {
  border-radius: 0;
  background: none;
  padding: 0;
  color: var(--sub);
  font-weight: 700;
}

.table-cards--stack tr,
.table-cards--stack tbody tr {
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.mock-btn,
.mock-box {
  border-radius: 2px;
}

/* ===== 直し20(画面確認6 の中4): 節の頭の丸い昔の挿絵を、同じ意味の線のアイコンの並びにした所(道具/zu.py の section_icons・飾り) ===== */
.section-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 4px 0 18px;
  color: var(--accent);
}

.section-icons .zu-ico {
  width: 36px;
  height: 36px;
  color: var(--accent);
}

/* ===== 直し19: 作る道具(道具/zu.py)が絵から替えた線のアイコンの置き方 ===== */
/* くらべのカードの頭(前は大きな絵): 線のアイコンを小さく左に */
.line-icon--card {
  display: flex;
  margin-bottom: 10px;
  color: var(--accent);
}

.line-icon--card .zu-ico {
  width: 36px;
  height: 36px;
  color: var(--accent);
}

/* 流れの段の絵・アイコンの並び(㉒の5つ): 線のアイコンは字の色、大きさは線 1.5px のまま */
.flow-pic.line-icon .zu-ico,
.sum-tile-icons .line-icon .zu-ico {
  width: 24px;
  height: 24px;
}

.sum-tile-icons .line-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--ink);
}

/* ⑨ の線だけの場面(前は絵。番号の丸は上に乗る) */
.zu-scene-wrap {
  display: block;
  aspect-ratio: 16 / 10;
  color: var(--ink);
}

.zu-scene {
  display: block;
  width: 100%;
  height: 100%;
}

.zu-scene * {
  vector-effect: non-scaling-stroke;
}

/* 画面の形の図の状態の札・字の行の形: 丸い札をやめ、角 2px に(図の決まり) */
.mock-chip,
.mock-line {
  border-radius: 2px;
}

/* 流れの図(ol.flow): PC で横に並べるのは4段まで。5段以上(⑫の「FBAで売るまで」)は、手順の図と同じく PC でも縦のまま。
   横の細い線は段の中に収める(前は右へ 20px 出て、枠の外へはみ出していた) */
@media (min-width: 960px) {
  .flow {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
  }

  .flow-step::before {
    right: 0;
  }

  .flow:has(> .flow-step:nth-child(5)) {
    display: block;
  }

  .flow:has(> .flow-step:nth-child(5)) > .flow-step {
    display: grid;
    gap: 0 20px;
    padding: 0 0 36px;
  }

  .flow:has(> .flow-step:nth-child(5)) > .flow-step:last-child {
    padding-bottom: 0;
  }

  .flow:has(> .flow-step:nth-child(5)) > .flow-step::before {
    left: 20px;
    right: auto;
    top: 48px;
    bottom: 8px;
    width: 1px;
    height: auto;
  }

  .flow:has(> .flow-step:nth-child(5)) .flow-body .money {
    margin-top: 14px !important;
  }

  .flow:has(> .flow-step:nth-child(5)) .flow-body .money::before {
    content: none;
  }
}

/* 図の部品の面と丸み(図の決まり: 影なし・角は 4px まで・線と字だけ)。直し19 で全ページの図に当てた */
.branch-q,
.branch-path,
.branch-answer,
.branch-merge,
.grow-item,
.stair,
.signal-item,
.mock-window {
  border-radius: 4px;
  box-shadow: none;
}

.tag-example {
  border-radius: 2px;
}

.bar-track,
.bar-fill,
.cell-bar,
.cell-bar-fill,
.numline-track,
.numline-range,
.meter-track,
.meter-good {
  border-radius: 0;
}

/* 1つの図に式の行が2つある時(㉞)は、行の間を空ける */
.zu-calc-row + .zu-calc-row {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* ---------- 直し21(F1 器): Lesson 0 入学案内の棚・連載の入口・トップの入口(見た目の作り込みは F3) ---------- */
/* 棚のカード: 1枚がまるごと1つのリンク。スマホ1列・タブレット(768px〜)2列・PC(1100px〜)3列。間は 24px */
.shelf-cards {
  display: grid;
  gap: 24px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .shelf-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .shelf-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* まとめ1(画面確認 G6 の中3): 入学案内の棚が4枚(連載3つ+ロードマップ)の時は、2列×2段 */
  .shelf-cards.shelf-cards--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.shelf-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  min-height: 44px;
  padding: 20px 22px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface-solid);
  color: var(--ink);
  text-decoration: none;
}

.shelf-card:hover {
  border-color: var(--accent-line);
  background: var(--color-yellow-tint);
}

.shelf-card--main {
  border-color: var(--accent-line);
}

.shelf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* 札は字で(色だけにしない)。「まずここから」は黄色の面に濃い字 */
.shelf-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

.shelf-tag--main {
  border-color: var(--btn-line);
  background: var(--btn-bg);
  color: var(--btn-ink);
}

.shelf-tag--soon {
  border-style: dashed;
  color: var(--sub);
  font-weight: 400;
}

.shelf-title {
  margin: 4px 0 0;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: clamp(20px, 0.8vw + 16px, 24px);
  font-weight: 600;
  line-height: 1.5;
}

.shelf-intro {
  display: block;
  color: var(--text);
  line-height: 1.8;
}

.shelf-count {
  color: var(--sub);
  font-weight: 700;
}

.shelf-cta {
  margin-top: auto;
  padding-top: 8px;
  color: var(--accent);
  font-weight: 700;
}

.shelf--others {
  margin-top: 48px;
}

/* Lesson 0 の頭の1行の案内・はじめから読むの下の場所 */
.pillar-lead {
  margin: 12px 0 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.8;
}

.start-where {
  margin: 8px 0 0;
  color: var(--sub);
}

/* 連載の入口: 回の数・はじめ方の3段・部の見出し */
.series-size {
  margin: 12px 0 0;
  color: var(--sub);
  font-weight: 700;
}

.series-steps {
  margin-top: 48px;
}

.series-step-list {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0 0 0 1.8em;
  list-style: decimal;
  line-height: 1.8;
}

.series-step-list li::marker {
  color: var(--accent);
  font-weight: 700;
}

.series-part {
  margin: 28px 0 8px;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
}

.series-part-n {
  margin-left: 0.25em;
  color: var(--sub);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
}

/* 下見だけに出る、空けた所の印(直し21。印が残るページは公開に置かない) */
.blank-mark {
  padding: 0 4px;
  border: 1px dashed var(--color-warn-ink);
  color: var(--color-warn-ink);
}

/* トップ: 2段のボタンのすぐ下の入口(入学案内の棚 → ガイドのカード2枚 → ほかのガイドの小さなリンク) */
.top-start {
  margin-top: var(--gap-paper);
}

.section-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}

.section-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.guide-entry--top {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

@media (min-width: 768px) {
  .guide-entry--top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.guide-small-row {
  margin: 8px 0 0;
}

.guide-small {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* 直し21: 960〜1099px は、帯にガイドの短い名前が2つ並ぶので、「読んだページ」の字は見た目だけ隠す(数は見せる・読み上げは残す) */
@media (min-width: 960px) and (max-width: 1099px) {
  .site-progress-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* ---------- 直し21・F3: 読み物の形(連載の回・動画のページ。2026-11-24 の決定) ----------
   本文は 18px(スマホは 17px)・行間 2・行の長さは約38字。小見出しは明朝。手口の言い回しは「」でくくり太字。
   ✕/△/▲ の短い箇条書きは、手口の連載の回の最後だけ。結びは線で区切る。 */
.page--read .read-main {
  max-width: 680px;
}

.read-lead {
  margin-top: 24px;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--accent-line);
}

.read-lead p {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  line-height: 2;
}

.read-lead p + p {
  margin-top: 0.8em;
}

.read-body {
  margin-top: 48px;
  color: var(--text);
  font-size: 18px;
  line-height: 2.05;
  letter-spacing: 0.02em;
}

@media (max-width: 430px) {
  .read-body {
    font-size: 17px;
  }
}

.read-sec + .read-sec {
  margin-top: 56px;
}

.read-h2 {
  margin: 0 0 20px;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: clamp(21px, 0.6vw + 18px, 25px);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

.read-body p {
  margin: 0;
}

.read-body p + p {
  margin-top: 1.3em;
}

.read-body .read-close {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.read-body figure {
  margin: 32px 0;
}

q.quote-tekuchi {
  quotes: "「" "」";
  color: var(--ink);
  font-weight: 700;
}

.read-marks {
  margin: 28px 0 0;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-pic);
  background: var(--surface-solid);
  list-style: none;
}

.read-marks li + li {
  margin-top: 0.6em;
}

.read-done {
  margin-top: 64px;
}

/* 読み物の形の about(読む順の外のページ・F3 の続き): 4つの約束の番号の並び・会員の節の小見出しと箇条書き・送り主の表示 */
.read-body .read-promises,
.read-body .read-list {
  margin: 0.8em 0 0;
  padding-left: 1.6em;
}

.read-body ol.read-promises,
.read-body ol.read-list {
  list-style: decimal;
}

.read-body ul.read-list {
  list-style: disc;
}

.read-body .read-promises li::marker,
.read-body .read-list li::marker {
  color: var(--ink);
  font-weight: 700;
}

.read-body .read-promises li + li,
.read-body .read-list li + li {
  margin-top: 0.4em;
}

.read-body .read-promises {
  color: var(--ink);
  font-weight: 700;
}

.read-body .read-list + p,
.read-body p + .read-list {
  margin-top: 0.8em;
}

.read-body .read-member {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.read-h3 {
  margin: 36px 0 8px;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.6;
}

.read-body .read-list li,
.read-dl dd {
  overflow-wrap: anywhere;  /* メールアドレスなどの長い英字を、細い画面で折る */
}

.read-dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 20px;
  margin: 0.8em 0 0;
}

.read-dl dt {
  color: var(--ink);
  font-weight: 700;
}

.read-dl dd {
  margin: 0;
}

@media (max-width: 430px) {
  .read-dl {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .read-dl dd {
    margin-bottom: 12px;
  }
}

/* 動画のページ: 自動で再生しない・字幕は ::cue で 18px。字幕の全文は動画の下に字で置く */
.video-box {
  margin: 32px 0 0;
}

.video-player {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;  /* 図の決まり(角の丸みは4pxまで)にそろえる(P7 の動画の点検) */
  background: var(--well);
}

/* video はキーボードで入っても :focus-visible にならないことがあるので、フォーカスで枠を出す(P7 の動画の点検) */
.video-player:focus,
.video-player:focus-within {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.video-player::cue {
  font-size: 18px;
}

.captions-full h3 {
  margin: 32px 0 8px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}

/* 棚のカードの読んだ数(記録がある時だけ。site.js) */
.shelf-read {
  color: var(--ok);
  font-weight: 700;
}

/* ================= 上の帯の「探す」(F6・直し23) ================= */
/* 線の虫めがね+字「探す」。狭い所(〜429px・760〜1199px)は虫めがねだけにして、字は読み上げに残す */
.site-nav-search {
  gap: 6px;
}

.site-nav-ico {
  flex: none;
}

@media (max-width: 429px), (min-width: 760px) and (max-width: 1199px) {
  .site-nav-search {
    justify-content: center;
    min-width: 44px;
  }

  .site-nav-search-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* 960〜1199px: 帯にガイドの短い名前も並ぶので、リンクの左右を詰め、「読んだページ」の字は隠す(数は出す・読み上げは残る) */
@media (min-width: 960px) and (max-width: 1199px) {
  .site-nav-link {
    padding: 0 8px;
  }

  .site-progress-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* 〜359px(画面確認 G1 の6): ロゴと読んだページを1段に、リンクを1段に収める(帯が3段になっていた) */
@media (max-width: 359px) {
  .site-head-in {
    gap: 0 8px;
  }

  .site-logo {
    letter-spacing: 0.02em;
  }

  .site-progress {
    padding: 0 10px;
  }

  .site-nav-link {
    padding: 0 6px;
  }
}

/* ================= 直し23: 画面確認 G1・G2 の共有の分 ================= */
/* いまいる所: 「←」だけが行の終わりに残らないように、並べ方は折らず、リンクの中の字だけを折る(G2 の2) */
.crumb-trail {
  flex-wrap: nowrap;
}

.crumb-trail a {
  flex-wrap: wrap;
  min-width: 0;
}

/* 棚のカードの題・右の列の題: 単語の途中で折らず、文節で折る(G1 の7) */
.shelf-title,
.side-title {
  word-break: auto-phrase;
}

/* 連載の入口の「ほかの連載」: カードが2枚なので、広い幅でも2列(右の3分の1が空いていた・G1 の8) */
@media (min-width: 1100px) {
  .shelf--others .shelf-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 〜359px のトップの頭(G1 の6): 日付は絵の横でなく下の段に(1行に入る)・主のボタンの左右を詰めて字を1行に */
@media (max-width: 359px) {
  .hero1 {
    grid-template-areas:
      "spk kicker"
      "date date"
      "title title"
      "go go";
  }

  .go2-big {
    gap: 8px;
    padding-left: 16px;
  }
}

/* Keepa完全攻略ガイドの再開の箱の副ボタン: 「…の一覧 / へ」と1字だけ落ちないように、文節で折る(画面確認 G2 の6) */
.kx-continue-btns a {
  word-break: auto-phrase;
}

/* ================= Lesson のまとめテスト(仕組みの設計 Q2・直し23) ================= */
.pillar-test {
  margin: 48px 0 0;
}

.pillar-test-lead,
.pillar-test-best {
  margin: 8px 0 0;
  color: var(--text);
}

.ltest-list {
  display: grid;
  gap: 28px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.ltest-q {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.ltest-ask {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 12px;
  color: var(--ink);
  font-weight: 700;
}

.ltest-no {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--ink);
}

.pillar-test-score {
  margin: 24px 0 0;
  color: var(--ink);
  font-weight: 700;
}

.pillar-test-miss {
  margin: 12px 0 0;
}

.pillar-test-miss-list {
  margin: 8px 0 0;
  padding-left: 1.4em;
}

/* ================= このページの直し・変わった決まりの一覧(仕組み Q5・F2・直し23) ================= */
.page-changes-list,
.changes-list {
  margin: 8px 0 0;
  padding-left: 1.4em;
  color: var(--text);
}

.page-changes-list li + li,
.changes-list li + li {
  margin-top: 8px;
}

.changes-page {
  display: block;
}

/* 一番下の1行から、変わった決まりの一覧へ(押す所 44px) */
.footer-ai-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 用語集の英語の呼び名(Q11): 説明の文と分けて読めるよう、字は16px のまま少し薄い茶にし、上下を詰める */
.term-en {
  margin: 2px 0 6px;
  color: var(--sub);
}

/* ================= 自動の箱(手法 ⇔ Keepa の機能・F8・直し23) ================= */
.auto-links {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 600px) {
  .auto-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.auto-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.auto-link:hover {
  background: var(--accent-soft);
}

.auto-link.is-soon {
  color: var(--sub);
  text-decoration: none;
}

/* ================= 道のりの地図(Q3・直し24) ================= */
.michi-goal {
  display: grid;
  gap: 4px 16px;
  margin: 12px 0 0;
}

@media (min-width: 600px) {
  .michi-goal {
    grid-template-columns: max-content 1fr;
  }
}

.michi-goal dt {
  color: var(--ink);
  font-weight: 700;
}

.michi-goal dd {
  margin: 0 0 8px;
  color: var(--text);
}

.michi-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 1.6em;
}

.michi-state {
  display: block;
  color: var(--sub);
}

.michi-state:empty {
  display: none;
}

.michi-stage.is-current {
  border-color: var(--accent-line);
  box-shadow: inset 4px 0 0 var(--accent);
}

.michi-band {
  margin: 32px 0 0;
}

.michi-band [data-michi-next] {
  margin: 12px 0 0;
}

/* まとめ1(画面確認 G6 の低1): 帯の下の2つのボタン(道のりの地図・月の手残りの段)の上と間にすき間 */
.michi-band .choice-links {
  margin: 16px 0 0;
}

/* ================= 読み終えた印(Q14・直し24) ================= */
.done-badge {
  display: inline-flex;
  align-items: center;
  margin: 4px 6px 0 0;
  padding: 2px 10px;
  border: 1px solid var(--accent-line);
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}

.done-badge[hidden],
.done-row[hidden] {
  display: none;
}

.done-row {
  margin: 8px 0 0;
}

.pillar-menu-link .done-badge,
.pg .done-badge {
  display: inline-flex;
  margin-top: 4px;
}

/* 直し31(画面確認 G3b の1): Lesson の一覧の印(読み終えた・テスト全問正解)は、名前の下の段に回す。
   同じ段に並べると、名前が1字ずつの縦並びに押しつぶされる。印が無い時の段の高さは今までと同じ(空の段は高さ0) */
.pillar-menu-link {
  flex-wrap: wrap;
  align-content: center;
  row-gap: 0;
}

.pillar-menu-link .pillar-menu-name {
  flex: 1 1 0;
  min-width: 0;
}

.pillar-menu-link::after {
  content: "";
  flex-basis: 100%;
  order: 1;
}

.pillar-menu-link .done-badge {
  order: 2;
}

.pillar-menu-link .done-badge[hidden],
.pg .done-badge[hidden] {
  display: none;
}

/* 直し33(100点の点検 Q18): 狭い Lesson のカード(320px のトップは1枚が135px)では、印の字を折り返す。
   折り返さないと「✓ テスト全問正解」が印の枠から出て、ページが横に8px広がる */
.pg .done-badge,
.pillar-menu-link .done-badge {
  max-width: 100%;
  white-space: normal;
}

/* ================= トップの「4つの約束」の1行(直し24) ================= */
.promise-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  align-items: center;
  margin: 24px 0 0;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--color-surface);
}

.promise-line-title {
  margin: 0;
  font-weight: 700;
}

.promise-line-title a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.promise-line-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text);
}

.promise-mark {
  margin-right: 4px;
  color: var(--accent);
}

/* ================= 公式の原文への小さな印(Q4・直し24): 見た目は小さく、押せる所は 44px に広げる ================= */
.src-link {
  display: inline-block;
  max-width: 100%;
  padding: 11px 0;
  margin: -11px 0 -11px 4px;
  color: var(--accent);
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.src-link-icon {
  display: inline-block;
  margin-left: 2px;
  vertical-align: -1px;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ================= 無料会員の見せ分け(直し25): 続きの箱・会員の帯。.members-only は見た目を変えない ================= */
.members-more {
  border: 2px solid var(--accent-line);
  background: var(--accent-soft);
}

.members-more-list {
  margin: 8px 0 16px;  /* 直し30(画面確認 G3 の6): 点と、下の文との間の余白 */
  padding-left: 1.4em;
  list-style: disc;
}

.members-more-list li + li {
  margin-top: 4px;
}

.members-band {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: center;
  margin: 24px 0 16px;  /* 直し30(画面確認 G3 の4): すぐ下のスパーくんの枠とくっつかない */
  padding: 4px 16px;
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--ink);
}

/* 直し30(画面確認 G3 の4): 会員の版のトップだけ、上の帯のすぐ下の右に小さく「アカウント」(会員の帯はページの中ほどにあるため) */
.top-account {
  display: flex;
  justify-content: flex-end;
  margin: 0;
}

.top-account-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
}

.members-band-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.members-band-more {
  display: none;
  color: var(--sub);
}

@media (min-width: 768px) {
  .members-band-more {
    display: inline;
  }
}

/* ================= 先に答えの出典の1行(SEO の冒頭の型・直し26): 本文の書体・16px・字の色は弱め ================= */
.answer-src {
  display: block;
  margin-top: 8px;
  color: var(--sub);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
}

/* ================= 札「登録なしで全文」「無料会員で全文」(直し36・会員登録を増やす案) =================
   字で分ける(色だけにしない)。ページの題名の下・目次の各行・棚のカードに付ける(道具/pages.py の access_tag)。
   登録なしで全文は ○ の緑、無料会員で全文は黄土(どちらも淡い面に濃い字・4.5:1 以上) */
.access-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  max-width: 100%;
  padding: 0 10px;
  border: 1px solid var(--accent-line);
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

.access-tag--open {
  border-color: var(--ok);
  background: var(--ok-bg);
  color: var(--ok);
}

.page-access {
  margin: 8px 0 0;
}

.toc-body .access-tag {
  margin: 2px 0;
}

/* ================= 上の帯のすぐ下の「無料登録」「ログイン」(直し36・会員登録を増やす案 4) =================
   帯は 320px でも 760〜1199px でも1行がいっぱいなので、帯の下の細い1行に右寄せで置く(帯と一緒には固定しない)。
   会員の版(全文の版)には無い(道具/pages.py の member_nav)。無料登録は淡い黄土の面に濃い字(黄色の面は主ボタンだけ) */
.site-join {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.site-join-in {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 8px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 4px var(--gutter);
}

.site-join-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}

.site-join-link--join {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.site-join-link:hover {
  background: var(--well);
}

.site-join-link--join:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* ================= トップの「はじめ方は、2ステップ」・比べ表・登録しないで読めるページ(直し36) =================
   部品は今ある物(手順の図・表のカード・ボタンの並び・リンクの一覧)。足すのは手順の見出しの太字と、カードの間だけ */
.join-step-title {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.join-step-body p + p {
  margin-top: 4px;
}

.join-steps .choice-links,
.join-compare .choice-links {
  margin-top: 16px;
}

.join-compare .table-cards {
  margin-top: 12px;
}

.free-pages .section-title {
  margin-top: 16px;
}

/* 直し43・45: 3つ目からの短い名前のガイド(商材別ガイド・守りのガイド)は、帯に出さない。「Lesson」を押した一覧のガイドの欄から開く
   (帯は最大 1280px で、ガイド2つと「読んだページ」でいっぱい。1440px でも足すと2行に折れた=測った 2026-11-26) */
.site-nav-guide.site-nav-guide--more {
  display: none;
}

/* ================= ガイドの練習問題(直し34・入口の下・会員だけ) =================
   問の前に写真(1〜3枚)と見る所、例の数の表。部品は Lesson のまとめテストと同じ(.ltest-*) */
.gq-photos {
  display: grid;
  gap: 12px;
  margin: 0 0 12px;
}

.gq-photo {
  margin: 0;
}

.gq-photo img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 4px;  /* 画面の写真は図の決まり(4px まで)と同じ */
}

.gq-data {
  margin: 0 0 12px;
}

/* ================= ぱっと届く入口(直し46・全部の質問・困りごとから・索引) =================
   一覧と索引は、題(リンク)と札だけ。押す所は44px 以上。たたみ(details)は全部の質問の分野だけ(直し46 の案1) */
.entry-group {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.entry-group[hidden] {
  display: none;
}

.entry-sum {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  min-height: 48px;
  padding: 8px 0;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.entry-count {
  color: var(--sub);
  font-weight: 400;
}

.entry-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.entry-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

.entry-row[hidden] {
  display: none;
}

.entry-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.trouble-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.trouble-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  height: 100%;
  padding: 12px 16px;
  border: 1px solid var(--accent-line);
  border-radius: var(--r-card);
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.trouble-btn:hover {
  border-color: var(--accent);
}

.trouble-no {
  flex: none;
  min-width: 2em;
  color: var(--accent);
  font-size: 18px;
}

.trouble-sec {
  margin-top: 16px;
}

.index-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.index-jump {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.index-sec {
  margin-top: 20px;
}

.index-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.index-row {
  display: grid;
  gap: 2px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.index-word {
  color: var(--ink);
  font-weight: 700;
}

.index-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 14px;
}

@media (min-width: 760px) {
  .index-row {
    grid-template-columns: minmax(10em, 14em) 1fr;
    gap: 12px;
  }
}

/* ================= 上の帯の「目次」(直し46 の案3+案1) =================
   左に分野(入口へのリンクと「○ページ」)、右にその分野の全部のページの題(題は site.js が js/mokuji-data.js から出す)。
   細い幅(〜959px)は、分野を選ぶと分野の一覧の代わりにページの題を出す(「← 分野の一覧」で戻る)。 */
.mokuji-filter {
  margin: 0 0 10px;
}

.mokuji-filter[hidden] {
  display: none;
}

.mokuji-field {
  max-width: 560px;
}

.mokuji-status {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 16px;
}

.mokuji-status:empty {
  display: none;
}

.pillar-menu-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 4px;
  border-radius: 12px;
}

.pillar-menu-item > .pillar-menu-link {
  flex: 1 1 0;
  min-width: 0;
}

.pillar-menu-item.is-selected {
  background: var(--accent-soft);
}

.pillar-menu-item.is-selected > .pillar-menu-link:hover {
  background: transparent;
}

/* 目次の分野の一覧は、どの幅でも1列(右に「○ページ」があるので、2列にすると名前が細く折れる) */
.mokuji-cols .pillar-menu-list {
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
}

/* 細い幅: 「Lesson ○」を名前の上の段に回す(名前を1行に収める) */
@media (max-width: 559.98px) {
  .mokuji-cols .pillar-menu-link .pillar-menu-num {
    flex-basis: 100%;
    line-height: 1.3;
  }

  .mokuji-cols .pillar-menu-item > .pillar-menu-link {
    padding-right: 8px;
    padding-left: 8px;
  }

  .mokuji-cols .pillar-menu-more {
    margin-right: 0;
    padding: 0 10px;
  }
}

.pillar-menu-more {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  margin-right: 4px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--surface-solid);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}

.pillar-menu-more:hover {
  border-color: var(--accent);
}

.pillar-menu-item.is-selected .pillar-menu-more {
  border-color: var(--accent);
}

.pillar-menu-go {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.pillar-menu-ways {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.pillar-menu-way {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--accent-line);
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.pillar-menu-way:hover {
  border-color: var(--accent);
}

.mokuji-pane[hidden] {
  display: none;
}

.mokuji-head {
  margin: 0 0 6px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--line);
}

.mokuji-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  cursor: pointer;
}

.mokuji-label {
  margin: 4px 0 0;
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.mokuji-title {
  margin: 2px 0 0;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
}

.mokuji-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 12px 0 4px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.mokuji-side-tag {
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  font-weight: 400;
}

.mokuji-list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mokuji-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--ink);
  line-height: 1.6;
  text-decoration: none;
}

.mokuji-row:hover {
  background: var(--well);
}

.mokuji-row.is-here {
  background: var(--color-glow);
}

.mokuji-no {
  flex-shrink: 0;
  min-width: 1.6em;
  color: var(--accent);
  font-weight: 700;
  text-align: right;
}

.mokuji-t {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  min-width: 0;
}

.mokuji-tt {
  min-width: 0;
  text-decoration: underline;
  text-decoration-color: var(--accent-line);
  text-underline-offset: 0.25em;
}

.mokuji-row:hover .mokuji-tt {
  text-decoration-color: var(--accent);
}

.mokuji-here {
  padding: 0 10px;
  border-radius: var(--r-pill);
  background: var(--color-yellow);
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.mokuji-read {
  color: var(--color-ok);
  font-size: 16px;
  font-weight: 700;
}

.mokuji-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin: 10px 0 0;
  padding: 4px 0 0;
  border-top: 1px solid var(--line);
}

.mokuji-foot-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

@media (max-width: 959.98px) {
  .mokuji-cols.is-pages .mokuji-side {
    display: none;
  }

  .mokuji-cols:not(.is-pages) .mokuji-pane {
    display: none;
  }
}

/* 広い幅: 左に分野・右にページ(分野に指を乗せるだけで右が変わる)。左右は別々に送れる */
@media (min-width: 960px) {
  .mokuji-back {
    display: none;
  }

  .mokuji-cols {
    display: grid;
    grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
    gap: 0 24px;
    align-items: start;
  }

  .mokuji-side,
  .mokuji-pane {
    max-height: calc(100vh - 250px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .mokuji-pane {
    padding-left: 24px;
    border-left: 1px solid var(--line);
  }
}

/* とても広い幅: ページの題を2列に(上から下へ読む順) */
@media (min-width: 1200px) {
  .mokuji-pane .mokuji-list {
    display: block;
    column-count: 2;
    column-gap: 16px;
  }

  .mokuji-pane .mokuji-list > li {
    break-inside: avoid;
  }
}

/* ================= 探すの強化(直し46 の案4): よく聞かれる質問の札・分野でしぼる札 ================= */
.kensaku-chips[hidden],
.kensaku-tags[hidden] {
  display: none;
}

.kensaku-chips,
.kensaku-tags {
  margin: 12px 0 0;
}

.kensaku-chips-title,
.kensaku-tags-title {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.kensaku-chip-list,
.kensaku-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kensaku-chip,
.kensaku-tag {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 14px;
  border: 1px solid var(--accent-line);
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}

.kensaku-chip:hover,
.kensaku-tag:hover {
  border-color: var(--accent);
}

.kensaku-tag {
  border-color: var(--line-strong);
  background: var(--surface-solid);
}

.kensaku-tag[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  font-weight: 700;
}

/* ================= トップの「見たいページを、ぱっと探す」(直し46) ================= */
.entry-ways {
  margin: 16px 0 0;
}

.entry-ways-title {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.entry-ways-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ================= 画面確認 G4 の直し(まとめ1) ================= */
/* G4 の1: 目次を開いている間は、右下のヘルプのボタンを隠す(目次の下の端と「無料登録・ログイン」に重ねない・site.js) */
html.mokuji-open .spkh-open {
  visibility: hidden;
}

/* G4 の8: 会員の版(会員の帯・トップのアカウントがあるページ)では、札「登録なしで全文」「無料会員で全文」を出さない */
body:has(.members-band, .top-account) .access-tag,
body:has(.members-band, .top-account) .page-access {
  display: none;
}

/* G4 の9: 表のセルで「・」で並ぶリンクは、1つのかたまりで折り返す(スマホで「・」だけの行にしない・make_pages の cell_links) */
.cell-text {
  min-width: 0;
}

/* ================= 実技課題(まとめ1・100点の点検「技能を測る」・道具/jitsugi.py と site.js の setupJitsugi) =================
   答える欄・材料の写真・練習用の見本の知らせ・自分の点の板。色は今の4択・判定のボタンと同じ(新しい色は使わない) */
.jg-list {
  display: grid;
  gap: 24px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.jg-q {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.jg-q.is-full {
  border-color: var(--ok);
}

.jg-q.is-part {
  border-color: var(--ng);
}

.jg-ask {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 8px;
  color: var(--ink);
  font-weight: 700;
}

.jg-no {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--ink);
}

.jg-pt {
  flex: none;
  color: var(--text);
  font-weight: 400;
}

.jg-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
}

.jg-choices--list {
  display: grid;
}

.jg-btn {
  min-height: var(--tap-min);
  padding: 8px 14px;
  border: 2px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}

.jg-btn:hover {
  border-color: var(--ink);
}

.jg-btn[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--color-yellow);
  box-shadow: var(--shadow-dent);
  font-weight: 700;
}

.jg-sub {
  margin: 14px 0 0;
}

.jg-sub-label {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.jg-chips {
  display: grid;
  gap: 12px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.jg-chip {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--color-well);
}

.jg-chip-text {
  margin: 0;
  color: var(--ink);
}

.jg-num {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
}

.jg-num-label {
  color: var(--text);
  font-weight: 700;
}

.jg-input {
  width: 10em;
  min-height: var(--tap-min);
  padding: 6px 10px;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-input);
  background: var(--surface-solid);
  color: var(--ink);
  font: inherit;
}

.jg-result {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--color-well);
}

.jg-pts,
.jg-right {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.jg-right {
  margin-top: 6px;
}

.jg-right-list,
.jg-why {
  margin: 8px 0 0;
  padding-left: 1.4em;
  color: var(--text);
}

.jg-read {
  margin: 8px 0 0;
}

.jg-score {
  margin: 20px 0 0;
  color: var(--ink);
  font-weight: 700;
}

.jg-best {
  margin: 8px 0 0;
  color: var(--text);
}

.jg-miss {
  margin: 12px 0 0;
}

.jg-miss-title {
  margin: 0;
  font-weight: 700;
}

.jg-miss-list {
  margin: 8px 0 0;
  padding-left: 1.4em;
}

.jg-photos {
  display: grid;
  gap: 12px;
  margin: 12px 0 16px;
}

@media (min-width: 768px) {
  .jg-photos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.jg-photo {
  margin: 0;
}

.jg-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;  /* 図と写真の角は4pxまで(画面の点検) */
}

.jg-photo--one {
  max-width: 560px;
  margin: 12px 0 16px;
}

.jg-notice {
  margin: 14px 0 0;
  padding: 14px 16px;
  border: 2px dashed var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
}

.jg-notice-tag {
  display: inline-block;
  margin: 0 0 6px;
  padding: 2px 10px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 700;
}

.jg-notice-head {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.jg-notice-body,
.jg-notice-mine {
  margin: 6px 0 0;
}

.jg-notice-mine {
  color: var(--text);
}

.jg-status-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.jg-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--color-well);
}

.jg-status-name {
  font-weight: 700;
}

.jg-status-pass {
  padding: 2px 10px;
  border-radius: var(--r-pill);
  background: var(--ok-bg);
  color: var(--ink);
  font-weight: 700;
}

.michi-motimono {
  margin: 16px 0 0;
}

.michi-ready {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--ok-bg);
  color: var(--ink);
  font-weight: 700;
}
