/* ===== TOEIC Part 7 演習アプリ 共通スタイル ===== */

/* フォントが届くまでの代わりの書体。文字幅（size-adjust）と縦の寸法（ascent/descent、size-adjust で割った値）を本番の書体に合わせ、届いたときに文字の位置がずれない（CLS）ようにする */
@font-face { font-family: "Zen Kaku Gothic New Fallback"; src: local("Hiragino Sans"), local("HiraginoSans-W4"), local("Hiragino Kaku Gothic ProN"), local("Yu Gothic"), local("YuGothic"), local("Meiryo"), local("Noto Sans JP"), local("Noto Sans CJK JP"); ascent-override: 116%; descent-override: 28.8%; line-gap-override: 0%; }
/* 和文の書体の中の英数字は、和文の代わりの書体だと幅が広すぎるので Arial を縮めて当てる */
@font-face { font-family: "Zen Kaku Gothic New Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Helvetica"); unicode-range: U+0000-00FF, U+2010-2027, U+2030-205E, U+20AC, U+2122, U+2190-2193; ascent-override: 124.7%; descent-override: 31%; line-gap-override: 0%; size-adjust: 93%; }
@font-face { font-family: "Source Serif 4 Fallback"; src: local("Georgia"), local("Times New Roman"); ascent-override: 96.5%; descent-override: 31.2%; line-gap-override: 0%; size-adjust: 107.3%; }
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Helvetica"); ascent-override: 93.3%; descent-override: 23.2%; line-gap-override: 0%; size-adjust: 103.9%; }

:root {
  /* ===== F 案（2026-10。見本 docs/design/2026-10-F/）=====
     紙と墨と赤ペン。ミント・ピンクは使わない。色・角丸・影はここだけで決め、ページごとに直書きしない */
  --paper-bg: #FAF8F4;     /* 背景（紙） */
  --surface: #FFFFFF;      /* カード */
  --ink: #1A1D23;          /* 文字（墨） */
  --ink-sub: #4A4E57;      /* 本文の補足 */
  --ink-muted: #6B6F78;    /* 薄い文字 */
  --line: #D9D4CA;         /* 線 */
  --line-soft: #ECE8E0;    /* 薄い線 */
  --paper-deep: #EFEBE3;   /* 紙の濃い面（台・バーの地） */
  --pen: #C8342C;          /* 赤ペン（線・丸・塗り） */
  --pen-ink: #B8322A;      /* 文字に使う赤 */
  --pen-soft: #FBF7F5;     /* 赤ペンメモの地 */
  --hl: #FBE7A1;           /* ハイライトの黄 */
  --font-ja: "Zen Kaku Gothic New", "Zen Kaku Gothic New Fallback", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --font-num: Inter, "Inter Fallback", "Helvetica Neue", Arial, sans-serif;
  --font-en: "Source Serif 4", "Source Serif 4 Fallback", Georgia, "Times New Roman", serif;
  --radius-btn: 6px;
  --radius: 10px;
  --radius-lg: 10px;
  --shadow: 0 1px 2px rgba(26, 29, 35, 0.06), 0 24px 48px -30px rgba(26, 29, 35, 0.25);
  --maxw: 820px;
  --maxw-wide: 1120px;

  /* 以前の変数名（ページ側の CSS が参照している）。新しい色に読み替える */
  --bg: var(--paper-bg);
  --text: var(--ink);
  --text-muted: var(--ink-muted);
  --border: var(--line-soft);
  --primary: var(--ink);
  --primary-dark: #000000;
  --primary-soft: var(--paper-deep);
  --primary-ink: var(--ink);
  --cta: var(--ink);
  --cta-dark: #000000;
  --cta-soft: var(--paper-deep);
  --correct: var(--ink);
  --correct-soft: var(--paper-deep);
  --wrong: var(--pen-ink);
  --wrong-soft: #F5DEDB;
  --warn: var(--pen-ink);
  --danger: var(--pen-ink);
  --navy: var(--ink);
  --easy: var(--ink-sub);
  --medium: var(--ink-sub);
  --hard: var(--ink-sub);
  /* 本番紙面(グレースケール)用 */
  --serif: var(--font-en);
  --paper: #ffffff;
  --paper-ink: #1f1f1f;
  --paper-sub: #555555;
  --paper-line: #9a9a9a;
  --paper-line-soft: #cfcfcf;
  --paper-fill: #f2f2f2;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-ja);
  text-spacing-trim: space-all; /* 句読点・かっこの詰めを書体によらずそろえる（代わりの書体と本番の書体で行の折り返しを同じにする） */
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); }
a:hover { color: var(--pen-ink); }

/* ---- Layout ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 16px; }

.site-header {
  background: var(--paper-bg);
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .wrap {
  max-width: var(--maxw-wide);
  display: flex;
  align-items: center;
  gap: 10px 34px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand-row { display: flex; align-items: center; gap: 12px; min-width: 0; margin-right: auto; }
.brand { text-decoration: none; color: var(--ink); line-height: 1; }
.brand:hover { color: var(--ink); }
.brand-sep { width: 1px; height: 16px; background: #CFCAC0; flex: 0 0 auto; }
.brand-sub { font-size: 14px; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 34px; font-size: 14px; font-weight: 500; }
.site-nav a { color: var(--ink); text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .nav-cta:hover { color: var(--pen-ink); }
.nav-cta { flex: 0 0 auto; font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; border: 1px solid var(--ink); border-radius: var(--radius-btn); padding: 8px 16px; white-space: nowrap; }
/* スマホ：1行目＝ロゴ・「1セット解く」、2行目＝ナビ */
@media (max-width: 860px) {
  .site-header .wrap { flex-wrap: wrap; padding-top: 12px; padding-bottom: 10px; }
  .site-nav { order: 3; width: 100%; gap: 22px; }
  .nav-cta { padding: 6px 12px; font-size: 13px; }
}
@media (max-width: 480px) {
  .site-header .wrap { column-gap: 8px; }
  .brand-row { gap: 8px; }
  .site-header .brand .logo { font-size: 28px; }
  .brand-sub { font-size: 12px; letter-spacing: 0; }
  .nav-cta { padding: 6px 10px; font-size: 12px; }
}
@media (max-width: 350px) {
  .brand-sep, .brand-sub { display: none; }
}

/* ロゴ J1：セリフの「drill」に黄のハイライト（下半分）＋斜体の「ah」、下に赤い弧、右肩に赤い丸の①。
   大きさは font-size で変える（弧と①は em で追従） */
.logo { font-family: var(--font-en); font-weight: 600; font-size: 32px; line-height: 1.15; display: inline-flex; align-items: flex-start; letter-spacing: -0.01em; }
.logo-col { display: inline-flex; flex-direction: column; align-items: flex-end; }
.logo-hl { background: linear-gradient(transparent 58%, var(--hl) 58%, var(--hl) 92%, transparent 92%); }
.logo-ah { font-style: italic; }
.logo-arc { display: block; width: 1.48em; height: 0.22em; margin-top: -0.19em; margin-right: -0.11em; fill: none; stroke: var(--pen); stroke-width: 3.5; stroke-linecap: round; }
.logo-no { flex: 0 0 auto; font-family: var(--font-num); font-size: 0.28em; font-weight: 600; line-height: 1; width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--pen); color: #fff; display: inline-flex; align-items: center; justify-content: center; margin-left: 0.25em; margin-top: 0.55em; letter-spacing: 0; }
/* 墨の地（フッター）用 */
.brand-dark, .brand-dark:hover { color: var(--paper-bg); }
.brand-dark .logo-hl { background: linear-gradient(transparent 60%, rgba(251, 231, 161, 0.4) 60%, rgba(251, 231, 161, 0.4) 92%, transparent 92%); }
.brand-dark .logo-arc { stroke: #E0544B; }
.brand-dark .logo-no { background: #E0544B; }

.page-title { font-size: 1.7rem; font-weight: 800; letter-spacing: 0.01em; margin: 12px 0 6px; }
.page-lead { color: var(--text-muted); margin: 0 0 24px; font-size: 0.98rem; }

/* フル模試への1行テキストリンク（大きな枠を縮小）※旧版 */
.exam-cta-line { margin: 2px 0 14px; font-size: 0.95rem; font-weight: 700; }
.exam-cta-line a { color: var(--primary-ink); text-decoration: none; }
.exam-cta-line a:hover { text-decoration: underline; }

/* フル模試への横長カード（1行分の高さ・白地＋薄い枠線・カード全体がリンク） */
.exam-cta-card2 {
  display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap;
  margin: 2px 0 14px; padding: 11px 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  text-decoration: none; color: inherit;
  transition: border-color 0.14s ease;
}
.exam-cta-card2:hover { border-color: var(--primary); }
.exam-cta2-body { flex: 1 1 auto; min-width: 0; display: flex; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; }
.exam-cta2-label { font-weight: 800; font-size: 0.95rem; white-space: nowrap; }
.exam-cta2-desc { font-size: 0.85rem; line-height: 1.5; color: var(--ink-sub); }
.exam-cta-card2 .exam-cta2-btn { flex: 0 0 auto; min-height: 40px; padding: 8px 16px; font-size: 0.9rem; }

/* 一覧の下「ほかの使い方」3カード（PC3列・スマホ縦。3枚とも枠線ボタンで強さをそろえる） */
.other-uses { margin: 26px 0 8px; }
.other-uses h2 { font-size: 1.1rem; font-weight: 800; margin: 0 0 12px; border: none; padding: 0; }
.other-uses-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.use-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px 20px; box-shadow: var(--shadow);
}
.use-card-title { margin: 0; font-size: 1.05rem; font-weight: 800; }
.use-card-desc { margin: 0 0 2px; font-size: 0.88rem; line-height: 1.6; color: var(--ink-sub); }
.use-card .btn { margin-top: auto; align-self: flex-start; }
@media (min-width: 720px) {
  .other-uses-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font: inherit;
  font-weight: 700;
  padding: 13px 20px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  background: var(--ink);
  color: var(--paper-bg);
  cursor: pointer;
  text-decoration: none;
  box-shadow: none;
  transition: background 0.15s, transform 0.05s, box-shadow 0.15s;
  min-height: 46px;
}
.btn:hover { background: #000; color: var(--paper-bg); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: none;
}
.btn-ghost:hover { background: var(--paper-deep); color: var(--ink); }
.btn-block { display: flex; width: 100%; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- Badges: 塗りつぶしの淡色 + 濃い文字色 ---- */
.badge {
  display: inline-block;
  font-size: 0.73rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.badge-easy { background: var(--correct-soft); color: var(--primary-ink); }
.badge-medium { background: #fbf0d9; color: #b07d1f; }
/* 難易度hardバッジは 860(コーラル)系に合わせ、CTAのピンクとは区別する */
.badge-hard { background: #ffe7e2; color: #d9503d; }
.badge-type { background: #e8f1ef; color: #40756a; }
/* スコアバッジはカードのパステル(下の .set-card.score-* で定義) */
.badge-score { background: var(--accent-soft, #e8f1ef); color: var(--accent-ink, #40756a); }
.badge-industry { background: #eef1f5; color: #66748a; }

/* ===== Top page: filter/sort controls ===== */
.controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}
.filter-group { display: flex; align-items: center; gap: 8px; min-width: 0; }
.filter-label {
  flex: 0 0 auto;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

/* スコア: つながった1本のタブ（すべて／600点／730点／860点）。スマホは幅いっぱいに均等分割 */
.score-group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.seg { display: inline-flex; width: 100%; padding: 4px; gap: 2px; background: var(--paper-deep); border-radius: 8px; }
.seg-btn {
  flex: 1 1 0; text-align: center;
  font: inherit; font-size: 14px; font-weight: 500; line-height: 1;
  padding: 9px 16px; min-height: 36px;
  border: none; border-radius: var(--radius-btn);
  background: transparent; color: var(--ink-sub);
  cursor: pointer; white-space: nowrap;
}
.seg-btn:hover { color: var(--ink); }
.seg-btn.is-active { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgba(26, 29, 35, 0.08); }

/* 文書タイプ・業種・並び替え: プルダウン。PCは1行(3列)、スマホは2列 */
.control-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 14px;
}
.control-row .filter-group { flex-direction: column; align-items: stretch; gap: 4px; }
.control-row .sort-group { grid-column: 1 / -1; }
.filter-select {
  font: inherit; font-size: 0.9rem;
  padding: 9px 12px; min-height: 40px;
  border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-sub);
  width: 100%;
}
@media (min-width: 640px) {
  .seg { width: auto; }
  .seg-btn { flex: 0 0 auto; }
  .control-row { grid-template-columns: repeat(3, 1fr); }
  .control-row .sort-group { grid-column: auto; }
}
.result-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.link-btn {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}
.empty-state {
  text-align: center;
  padding: 40px 16px;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.empty-state p { margin: 0 0 14px; font-weight: 600; color: var(--text); }

/* ===== Top page: set list ===== */
.set-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.set-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--surface);
  border: 0;
  border-radius: var(--radius-lg);
  padding: 24px 24px 22px;
  box-shadow: var(--shadow);
  color: inherit;
  overflow: hidden;
  transition: box-shadow 0.16s ease;
}
.set-card:hover { box-shadow: 0 1px 2px rgba(26, 29, 35, 0.06), 0 24px 48px -26px rgba(26, 29, 35, 0.32); }

.set-card .meta-tags { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }

.set-card-title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.45;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--text);
}
/* 見出し下の小さな補足（Set NN ・ 区分 ・ 設問数 ・ 目安） */
.set-card-sub {
  margin: -10px 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.set-card .card-foot {
  display: flex; align-items: center; justify-content: flex-end;
  font-size: 0.82rem; color: var(--text-muted);
  margin-top: -4px;
}
.set-card .card-actions-row { margin-top: 4px; }
.set-card .card-foot .foot-link {
  font-size: 0.82rem; font-weight: 700; color: var(--primary-ink);
  text-decoration: none; white-space: nowrap;
}
.set-card .card-foot .foot-link:hover { text-decoration: underline; }

/* ===== 解説ページ (kaisetsu/setXX.html) ===== */
.kaisetsu { padding-bottom: 48px; }
.crumb { font-size: 0.82rem; color: var(--text-muted); margin: 6px 0 14px; }
.crumb a { color: var(--primary-ink); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.kaisetsu .page-title { font-size: 1.5rem; }
.kaisetsu-meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0 16px; }
.kaisetsu-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.kaisetsu h2 {
  font-size: 1.2rem; font-weight: 800; margin: 34px 0 12px;
  padding-bottom: 6px; border-bottom: 2px solid var(--border);
}
.kaisetsu-passage {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.kaisetsu-trans {
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border);
}
.kaisetsu-trans .trans-label { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); margin-bottom: 4px; }
.kaisetsu-trans .doc-body { color: var(--text); }

.kaisetsu-q {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--primary); border-radius: var(--radius);
  padding: 18px 20px; margin-bottom: 14px; box-shadow: var(--shadow);
  scroll-margin-top: 16px; /* #qN 深リンク時に上端へ余白 */
}
.kaisetsu-q h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 800; }
.kaisetsu-q .q-prompt { font-weight: 700; margin: 0 0 2px; }
.kaisetsu-q .q-prompt-ja { color: var(--text-muted); margin: 0 0 10px; font-size: 0.92rem; }
.kaisetsu-choices { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.kaisetsu-choices li {
  padding: 9px 13px; border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 0.95rem;
}
.kaisetsu-choices li.correct {
  border-color: var(--correct); background: var(--correct-soft); font-weight: 700;
}
.kaisetsu-choices li .mark { color: var(--primary-ink); font-weight: 700; margin-left: 8px; }
.kaisetsu-q h4 { margin: 12px 0 4px; font-size: 0.9rem; color: var(--primary-dark); }
.kaisetsu-q .exp-box, .kaisetsu-q .ev-box {
  background: var(--bg); border-radius: 8px; padding: 10px 12px; font-size: 0.95rem;
  white-space: pre-wrap; word-break: break-word; margin: 0;
}
.kaisetsu-q .ev-box { border-left: 3px solid var(--primary); font-family: var(--serif); }

/* ===== 攻略ガイド (guide/) ===== */
/* トップの導線バナー */
.guide-banner {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 16px; margin-bottom: 18px;
  transition: border-color 0.15s, background 0.15s;
}
.guide-banner:hover { border-color: var(--primary); background: var(--primary-soft); }
.guide-banner-icon { font-size: 1.25rem; line-height: 1; }
.guide-banner-text { flex: 1; font-size: 0.95rem; }
.guide-banner-go { color: var(--primary-ink); font-weight: 800; }
.site-header nav a { color: var(--primary-ink); }

/* トップの販売導線バナー(BOOTH) — 販売色 var(--ink) 系 */
.booth-banner { background: var(--surface); border-color: var(--line-soft); }
.booth-banner:hover { border-color: var(--ink); background: var(--surface); }
.booth-banner .guide-banner-go { color: var(--ink); }

/* 有料セット直リンク時の案内（演習・印刷ページ） */
.paywall-box {
  max-width: 560px; margin: 40px auto; text-align: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px 28px; box-shadow: var(--shadow);
}
.paywall-icon { font-size: 2.4rem; line-height: 1; margin-bottom: 8px; }
.paywall-title { font-size: 1.3rem; font-weight: 800; margin: 0 0 12px; }
.paywall-lead { color: var(--text-muted); font-size: 0.98rem; margin: 0 0 24px; }
.paywall-lead strong { color: var(--cta-dark); }
.paywall-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* 記事一覧カード（.set-card を流用） */
.guide-card { cursor: pointer; text-decoration: none; color: inherit; }
.guide-card .meta-tags { justify-content: flex-start; }
.guide-card .guide-date { font-size: 0.8rem; color: var(--text-muted); }
.guide-card-desc { margin: 0; color: var(--text-muted); font-size: 0.92rem; }
.guide-card-go { margin-top: 2px; color: var(--cta-dark); font-weight: 700; font-size: 0.9rem; }

/* 記事本文 */
.article { padding-bottom: 40px; }
.page-title .h1-sub {
  display: block; margin-top: 8px;
  font-size: 0.6em; font-weight: 700; color: var(--text-muted); letter-spacing: 0.01em;
}
.article-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em; background: var(--bg); border: 1px solid var(--border);
  border-radius: 5px; padding: 1px 6px;
}
.article-cta-inline {
  margin-top: 8px; font-size: 1.05rem;
}
.article-cta-inline a { color: var(--cta-dark); text-decoration: none; }
.article-cta-inline a:hover { text-decoration: underline; }
.article-meta {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  color: var(--text-muted); font-size: 0.85rem; margin: 8px 0 20px;
}
.article-body { font-size: 1.02rem; line-height: 1.9; }
.article-body h2 {
  font-size: 1.35rem; font-weight: 800; margin: 36px 0 12px;
  padding-bottom: 6px; border-bottom: 2px solid var(--border);
}
.article-body h3 { font-size: 1.12rem; font-weight: 700; margin: 24px 0 8px; }
.article-body p { margin: 0 0 1.1em; }
.article-body ul, .article-body ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.article-body li { margin: 0.35em 0; }
.article-body blockquote {
  margin: 0 0 1.2em; padding: 10px 16px; border-left: 4px solid var(--primary);
  background: var(--bg); border-radius: 0 8px 8px 0; color: var(--text);
}
/* 記事本文中の表 */
.article-body .table-wrap { overflow-x: auto; margin: 0 0 1.4em; }
.article-body table {
  width: 100%; border-collapse: collapse; font-size: 0.96rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
}
.article-body th, .article-body td {
  padding: 9px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top;
}
.article-body thead th {
  background: var(--primary-soft); color: var(--primary-ink); font-weight: 700; white-space: nowrap;
}
.article-body tbody tr:last-child td { border-bottom: 0; }
.article-body tbody tr:nth-child(even) td { background: var(--paper-bg); }
/* 記事末尾の商標注記 */
.article-trademark { margin: 28px 0 0; font-size: 0.8rem; color: var(--text-muted); font-style: italic; }
/* ガイド記事の末尾「この記事を書いた人」（小さく1行・運営者情報へのリンク） */
.article-author { margin: 24px 0 0; font-size: 0.82rem; color: var(--text-muted); }
.article-author a { color: var(--primary-ink); }

/* 関連セット枠 */
.related-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px; margin: 30px 0;
  box-shadow: var(--shadow);
}
.related-box h2 { margin: 0 0 12px; font-size: 1.1rem; font-weight: 800; border: none; padding: 0; }
.related-list { display: flex; flex-direction: column; }
.related-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 0; border-bottom: 1px dashed var(--border);
}
.related-item:last-child { border-bottom: none; }
.related-name { font-weight: 700; }
.related-links a { text-decoration: none; font-weight: 700; font-size: 0.88rem; margin-left: 14px; color: var(--primary-ink); }
.related-links a:hover { text-decoration: underline; }
.related-tag { display: inline-block; font-size: 0.72rem; font-weight: 800; padding: 1px 8px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }
.related-tag.free { color: var(--primary-ink); background: var(--primary-soft); }
.related-tag.paid { color: var(--cta-dark); background: var(--cta-soft); }

/* ===== フル模試(exam) 受験・採点 ===== */
/* 上部バー(通しタイマー常時表示・スティッキー) */
.exam-bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 0 18px; padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.exam-bar-left { display: flex; align-items: center; gap: 10px; }
.exam-progress { font-weight: 800; font-size: 0.95rem; }
.exam-timer { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 1.05rem; color: var(--primary-ink); }
.exam-timer.over { color: var(--wrong); }
.exam-bar.result .exam-timer { color: var(--text-muted); }

/* 区分タグ(single=ミント / double=青 / triple=ピンク) */
.exam-section-tag { font-size: 0.72rem; font-weight: 800; padding: 2px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-ink); }
.exam-section-tag.section-double { background: #eaeefb; color: #4a5bb0; }
.exam-section-tag.section-triple { background: var(--cta-soft); color: var(--cta-dark); }

/* 下部ナビ(次のセットへ／採点。残り時間を併記・スティッキー) */
.exam-nav {
  position: sticky; bottom: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px; margin-top: 20px; padding: 12px 0 14px;
  background: linear-gradient(to top, var(--bg) 72%, rgba(250, 248, 244, 0));
}
.exam-nav-progress { font-size: 0.88rem; color: var(--text-muted); font-weight: 700; white-space: nowrap; }
.exam-nav .btn { flex: 1; }
.nav-remain { font-weight: 700; font-size: 0.9rem; opacity: 0.92; margin-left: 6px; }

/* 区分別 成績・時間配分 */
.exam-sections { margin-top: 24px; }
.exam-sec-table { display: flex; flex-direction: column; gap: 8px; }
.exam-sec-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.exam-sec-row .sec-acc { font-weight: 800; }
.exam-sec-row .sec-pct { color: var(--text-muted); font-weight: 600; font-size: 0.9rem; }
.exam-sec-row .sec-time { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.exam-sec-row .sec-time-std { color: var(--text-muted); font-weight: 600; font-size: 0.84rem; }
.sec-diff.over { color: var(--wrong); }
.sec-diff.under { color: var(--correct); }
/* 区分別の一言アドバイス(速さ×正答率の判定文) */
.exam-sec-row .sec-advice {
  grid-column: 1 / -1;
  margin-top: 4px; padding: 8px 12px;
  font-size: 0.9rem; font-weight: 600; line-height: 1.55;
  border-radius: 8px; border-left: 3px solid var(--border);
}
.sec-advice.good    { background: var(--correct-soft); border-left-color: var(--correct); color: var(--primary-ink); }
.sec-advice.caution { background: #fbf1df; border-left-color: var(--warn); color: #8a6216; }
.sec-advice.warn    { background: var(--wrong-soft); border-left-color: var(--wrong); color: #b33b3b; }
.exam-slowest { margin: 14px 0 0; padding: 12px 14px; background: var(--cta-soft); border-radius: var(--radius); font-size: 0.96rem; line-height: 1.6; }
.exam-slowest .exam-slowest-cta { font-weight: 700; }
.exam-slowest .exam-slowest-link { color: var(--primary-ink); font-weight: 800; text-decoration: none; white-space: nowrap; }
.exam-slowest .exam-slowest-link:hover { text-decoration: underline; }

/* 設問レビュー(kaisetsu 深リンク) */
.exam-review { margin-top: 28px; }
.exam-review-set { margin-bottom: 18px; }
.exam-review-head { font-size: 1.05rem; font-weight: 800; margin: 0 0 6px; display: flex; align-items: center; gap: 10px; }
.exam-review-q {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 6px; border-bottom: 1px solid var(--border); font-size: 0.92rem;
}
.exam-review-q .status-dot {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.75rem; font-weight: 800;
}
.exam-review-q.ok .status-dot { background: var(--correct); }
.exam-review-q.ng .status-dot { background: var(--wrong); }
.exam-review-q .rq-num { font-weight: 800; min-width: 34px; }
.exam-review-q .rq-ans .k { color: var(--text-muted); font-size: 0.8rem; margin: 0 2px 0 8px; }
.exam-review-q .rq-link { margin-left: auto; color: var(--primary-ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.exam-review-q .rq-link:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .exam-sec-row { grid-template-columns: 1fr auto; }
  .exam-sec-row .sec-time { grid-column: 1 / -1; text-align: left; }
}

/* トップの「フル模試」導線カード */
.exam-cta-card {
  display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit;
  background: linear-gradient(135deg, #e9f8f3 0%, #f4fbf8 100%);
  border: 1px solid #bfe8dd; border-radius: var(--radius-lg);
  padding: 16px 18px; margin-bottom: 18px;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.exam-cta-card:hover { border-color: var(--primary); box-shadow: 0 12px 28px -18px rgba(55,179,160,.55); transform: translateY(-2px); }
.exam-cta-icon { font-size: 1.7rem; line-height: 1; }
.exam-cta-body { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.exam-cta-title { font-size: 1.05rem; font-weight: 800; }
.exam-cta-sub { font-size: 0.9rem; color: var(--text-muted); }
.exam-cta-go {
  flex: none; font-weight: 800; color: #fff; background: var(--primary-dark);
  padding: 10px 18px; border-radius: 12px; white-space: nowrap;
  box-shadow: 0 6px 14px -8px rgba(55,179,160,.7);
}
.exam-cta-card:hover .exam-cta-go { background: var(--primary-ink); }
@media (max-width: 560px) {
  .exam-cta-card { flex-wrap: wrap; }
  .exam-cta-go { width: 100%; text-align: center; }
}

.guide-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 8px; }

/* ===== Practice ===== */
.practice-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.timer {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 1.2rem;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}
.timer.over { background: var(--wrong-soft); color: var(--wrong); border-color: var(--wrong); }
.progress-note { font-size: 0.85rem; color: var(--text-muted); }

.passage {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

/* ===================================================================
   二画面 演習レイアウト（解答画面のみ・≥960px）
   左=本文 / 右=設問、各ペインが独立スクロール（入れ子スクロールなし）。
   960px 未満は従来の縦積み（本文の下に設問）。採点画面・print.html は対象外。
   分割比・最大幅は下の変数1箇所で調整可能。
   =================================================================== */
:root {
  --solve-split: 66%;    /* 左(本文)の比率。右(設問)は残り 1fr。6:4→66% など1行で変更 */
  --solve-maxw: 1180px;  /* 二画面時の演習コンテナ最大幅 */
}
/* 既定（狭幅・非solving）は通常フロー＝縦積み */
.solve-cols { display: block; }

/* 演習中はサイトヘッダーを隠し、上部情報を1本のコンパクトバー(.solve-bar)に集約して高さを圧縮 */
body.solving .site-header { display: none; }
.solve-bar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap;
  padding: 8px 14px; margin-bottom: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.solve-bar-title { font-weight: 800; font-size: 1rem; letter-spacing: .01em; }
.solve-bar-meta { font-size: 0.9rem; color: var(--text-muted); font-weight: 700; }
.solve-bar-dot { color: var(--border); }
.solve-bar .meta-tags { display: inline-flex; gap: 6px; margin: 0; }
.solve-bar-timer { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 800; font-size: 1.02rem; color: var(--primary-ink); }
.solve-bar-timer.over { color: var(--wrong); }
.solve-bar-exit { font-size: 0.82rem; font-weight: 700; color: var(--text-muted); text-decoration: none; white-space: nowrap; }
.solve-bar-exit:hover { color: var(--wrong); text-decoration: underline; }
/* 演習バー左上の drillah ロゴ（演習中は表示のみ・非リンク・通常カーソル） */
.solve-bar-brand { font-weight: 800; font-size: 0.98rem; letter-spacing: .01em; color: var(--text); white-space: nowrap; cursor: default; user-select: none; }
.solve-bar-brand span { color: var(--primary); }
/* 本文の上の1行案内（初めて来た人向け）。目立たせすぎない: 小さめ・淡い背景・閉じるボタンなし */
.solve-intro {
  margin: -2px 0 12px;
  padding: 7px 12px;
  background: var(--primary-soft);
  border-radius: 10px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #35506a;
}
/* 案内の1行目の見出し（演習セットのみ。模試には出さない） */
.solve-intro-head { display: block; font-size: 0.95rem; font-weight: 800; }

@media (min-width: 960px) {
  /* solving 中: 本文+設問の枠(main)を「画面の高さ − ヘッダー − 採点ボタン」で確保する。
     フッターは枠の高さに含めず、main の下（ページを下にスクロールすると見える位置）に置く。 */
  body.solving main.wrap {
    height: 100dvh;
    min-height: 0;
    display: flex; flex-direction: column;
    max-width: var(--solve-maxw); padding-bottom: 0;
  }
  /* 上部(タイマー・見出し)と下部(採点/次へ)は自然高、中央の2ペインが伸縮 */
  body.solving .solve-cols {
    flex: 1 1 auto; min-height: 0;
    display: grid; grid-template-columns: var(--solve-split) 1fr; gap: 22px;
  }
  body.solving .solve-pane {
    min-height: 0; overflow-y: auto; overscroll-behavior: contain;
    padding: 2px 6px 10px 2px;
  }
  body.solving .solve-pane.solve-questions {
    border-left: 1px solid var(--border); padding-left: 20px;
  }
  /* 二画面時、下部バーは sticky/グラデ不要（フレーム最下部に自然配置） */
  body.solving .submit-bar,
  body.solving .exam-nav { position: static; background: none; margin-top: 12px; }
  body.solving .solve-passages .passage:last-child { margin-bottom: 4px; }
}

/* ===== 結果画面: 「次のセット」への控えめな案内（Pro ボタンより目立たせない） ===== */
.next-set-guide:empty { display: none; }
.next-set-guide { margin: 10px 0 4px; }
.next-set-lead { margin: 0 0 4px; font-size: 0.85rem; line-height: 1.6; color: var(--ink-sub); }
.next-set-link { font-size: 0.9rem; font-weight: 700; color: var(--primary-ink); text-decoration: none; }
.next-set-link:hover { text-decoration: underline; }

/* ===== C. 文字の濃さ: 演習画面・一覧ページの薄いグレー文字を一段濃く（≥4.5:1 目安）。
   結果画面・/pro/ は対象外（body.solving と .page-sets に限定）。 ===== */
body.solving .solve-bar-meta,
body.solving .doc-label {
  color: var(--ink-sub);
}
.page-sets .page-lead,
.page-sets .set-card-sub,
.page-sets .set-card .card-foot,
.page-sets .filter-label,
.page-sets .result-meta {
  color: var(--ink-sub);
}

/* ===================================================================
   本番紙面風の文書スタイル（グレースケール / セリフ本文）
   practice.html と print.html の両方で共通使用
   =================================================================== */
.doc-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 10px;
}
.doc { color: var(--paper-ink); }
.doc-serif { font-family: var(--serif); }
.doc-body { line-height: 1.75; word-break: break-word; }
.doc-body p { margin: 0 0 0.9em; }
.doc-body p:last-child { margin-bottom: 0; }
.doc-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--paper-ink);
  margin: 0 0 10px;
  font-family: var(--serif);
}
.doc-list { margin: 0.6em 0; padding-left: 1.5em; }
.doc-list li { margin: 0.25em 0; }

/* --- email / letter / memo --- */
.doc-email { }
.doc-head {
  border: 1px solid var(--paper-line);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 14px;
}
.doc-head-row {
  display: flex;
  gap: 10px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--paper-line-soft);
  font-family: var(--serif);
  font-size: 0.95rem;
}
.doc-head-row:last-child { border-bottom: none; }
.doc-head-key {
  flex: 0 0 auto;
  min-width: 4.5em;
  font-weight: 700;
  color: var(--paper-sub);
}
.doc-head-val { color: var(--paper-ink); word-break: break-word; }

/* --- web-page --- */
.doc-web {
  border: 1px solid var(--paper-line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper);
}
.doc-web-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--paper-fill);
  border-bottom: 1px solid var(--paper-line);
}
.doc-web-dots { display: inline-flex; gap: 5px; flex: 0 0 auto; }
.doc-web-dots i {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1px solid var(--paper-line); background: #fff;
}
.doc-web-url {
  flex: 1;
  background: #fff;
  border: 1px solid var(--paper-line-soft);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.85rem;
  color: var(--paper-sub);
  font-family: var(--serif);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.doc-web-page { padding: 14px 16px; }
.doc-web-title { font-weight: 700; font-size: 1.15rem; font-family: var(--serif); margin-bottom: 8px; }

/* --- form / receipt / schedule (表) --- */
.doc-sheet { }
.doc-sheet .doc-title { text-align: center; }
.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--serif);
  font-size: 0.95rem;
  margin: 4px 0;
}
.doc-table th, .doc-table td {
  border: 1px solid var(--paper-line);
  padding: 7px 11px;
  vertical-align: top;
}
.doc-table thead th {
  background: var(--paper-fill);
  font-weight: 700;
  color: var(--paper-ink);
}
.doc-table .al-left { text-align: left; }
.doc-table .al-center { text-align: center; }
.doc-table .al-right { text-align: right; font-variant-numeric: tabular-nums; }
.doc-table .doc-total td { background: #fafafa; }
.doc-table .doc-total.is-strong td { font-weight: 700; border-top: 2px solid var(--paper-ink); background: var(--paper-fill); }
.doc-notes { margin-top: 10px; font-family: var(--serif); font-size: 0.9rem; }
.doc-notes-title { font-weight: 700; margin-bottom: 2px; }
.doc-notes ol { margin: 0; padding-left: 1.5em; }
.doc-notes li { margin: 0.2em 0; }
.doc-sheet-note { margin-top: 12px; font-size: 0.9rem; color: var(--paper-sub); }
.doc-pre {
  white-space: pre-wrap; word-break: break-word;
  margin: 0; font-size: 0.95rem; line-height: 1.7;
}

/* --- advertisement --- */
.doc-ad {
  border: 2px solid var(--paper-ink);
  border-radius: 4px;
  padding: 6px;
}
.doc-ad-inner {
  border: 1px solid var(--paper-line);
  padding: 18px 20px;
}
.doc-ad-title {
  text-align: center;
  font-weight: 800;
  font-style: italic;
  font-size: 1.2rem;
  font-family: var(--serif);
  letter-spacing: 0.02em;
  margin-bottom: 14px;
  color: var(--paper-ink);
}
.doc-ad .doc-list { padding-left: 1.3em; }

/* --- チャット / テキストメッセージ --- */
.doc-chat-wrap .doc-title { margin-bottom: 12px; }
.doc-chat { display: flex; flex-direction: column; gap: 10px; }
.doc-chat-row {
  border: 1px solid var(--paper-line-soft);
  border-left: 3px solid var(--paper-line);
  border-radius: 4px;
  padding: 8px 12px;
  font-family: var(--serif);
}
.doc-chat-meta { display: flex; gap: 10px; align-items: baseline; margin-bottom: 2px; }
.doc-chat-name { font-weight: 700; font-size: 0.9rem; }
.doc-chat-time { font-size: 0.78rem; color: var(--paper-sub); }
.doc-chat-text { font-size: 0.95rem; line-height: 1.6; }

/* --- plain (notice / article 等) --- */
.doc-plain .doc-title { font-size: 1.1rem; }

.question {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.question .q-head { display: flex; gap: 8px; align-items: baseline; margin-bottom: 10px; }
.question .q-num {
  flex: 0 0 auto;
  font-weight: 700; color: var(--primary);
  background: var(--primary-soft);
  border-radius: 8px; padding: 2px 9px; font-size: 0.9rem;
}
.question .q-prompt { font-weight: 600; margin: 0; }

.choices { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.choice {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 13px 15px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.12s, background 0.12s;
  min-height: 44px;
}
.choice:hover { border-color: var(--primary); }
.choice.selected { border-color: var(--primary); background: var(--primary-soft); }
.choice .letter {
  flex: 0 0 auto;
  width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
  border: 1.5px solid var(--border); color: var(--text-muted);
  background: #fff;
}
.choice.selected .letter { background: var(--primary); color: #fff; border-color: var(--primary); }
.choice input { display: none; }

/* result-marked choices */
.choice.is-correct { border-color: var(--correct); background: var(--correct-soft); }
.choice.is-correct .letter { background: var(--correct); color: #fff; border-color: var(--correct); }
.choice.is-wrong { border-color: var(--wrong); background: var(--wrong-soft); }
.choice.is-wrong .letter { background: var(--wrong); color: #fff; border-color: var(--wrong); }
.choice .mark { margin-left: auto; font-weight: 700; }
.choice.is-correct .mark { color: var(--correct); }
.choice.is-wrong .mark { color: var(--wrong); }

.submit-bar {
  position: sticky; bottom: 0;
  background: linear-gradient(to top, var(--bg) 70%, rgba(250, 248, 244, 0));
  padding: 14px 0 4px;
  margin-top: 8px;
}

/* ===== Result ===== */
.score-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  text-align: center;
  margin-bottom: 18px;
}
.score-big { font-size: 2.8rem; font-weight: 800; line-height: 1.1; color: var(--primary-ink); }
.score-big .total { font-size: 1.4rem; color: var(--text-muted); font-weight: 700; }
.score-pct { color: var(--text-muted); margin-top: 2px; }
.score-stats { display: flex; justify-content: center; gap: 26px; margin-top: 14px; flex-wrap: wrap; }
.score-stats .stat .num { font-weight: 700; font-size: 1.1rem; }
.score-stats .stat .lbl { font-size: 0.8rem; color: var(--text-muted); }

.result-q {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.result-q.ok { border-left-color: var(--correct); }
.result-q.ng { border-left-color: var(--wrong); }

.acc-head {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  background: none; border: none; cursor: pointer;
  font: inherit; text-align: left; color: inherit;
}
.acc-head .status-dot {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 0.8rem;
}
.result-q.ok .status-dot { background: var(--correct); }
.result-q.ng .status-dot { background: var(--wrong); }
.acc-head .acc-q { flex: 1; font-weight: 600; font-size: 0.95rem; }
.acc-head .chevron { transition: transform 0.2s; color: var(--text-muted); }
.acc-head[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.acc-body { padding: 0 16px 16px; display: none; }
.acc-body.open { display: block; }
.acc-body .ans-line { font-size: 0.9rem; margin: 8px 0; }
.acc-body .ans-line .k { color: var(--text-muted); }
.acc-body .ans-correct { color: var(--correct); font-weight: 700; }
.acc-body .ans-yours-ng { color: var(--wrong); font-weight: 700; }
.acc-body h4 { margin: 14px 0 4px; font-size: 0.9rem; color: var(--primary-dark); }
.acc-body .box {
  background: var(--bg); border-radius: 8px; padding: 10px 12px; font-size: 0.92rem;
  white-space: pre-wrap; word-break: break-word;
}
.acc-body .evidence { border-left: 3px solid var(--primary); }

.translation-block { margin-top: 18px; }
.translation-block .passage-body { color: var(--text); }

/* ===== Utility ===== */
.center { text-align: center; }
.mt-16 { margin-top: 16px; }
.muted { color: var(--text-muted); }
.loading, .error-box { padding: 40px 16px; text-align: center; color: var(--text-muted); }
.error-box { color: var(--wrong); }
.hidden { display: none !important; }

/* ===== Responsive ===== */
@media (min-width: 640px) {
  .set-grid { grid-template-columns: 1fr 1fr; }
  .page-title { font-size: 1.7rem; }
}

/* ===== Print page (print.html) ===== */
.print-toolbar {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 12px 16px; position: sticky; top: 0; z-index: 30;
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.print-sheet { max-width: 800px; margin: 0 auto; padding: 24px 20px; background: #fff; color: #000; }
.print-sheet h1 { font-size: 1.4rem; margin: 0 0 4px; }
.print-meta { color: #333; font-size: 0.9rem; margin-bottom: 18px; }
.print-passage { margin-bottom: 20px; }
.print-q { margin-bottom: 14px; page-break-inside: avoid; }
.print-q .p-num { font-weight: 700; }
.print-q ol { list-style: none; margin: 6px 0 0; padding: 0; }
.print-q ol li { padding: 2px 0; }

.answer-sheet {
  margin-top: 28px; border-top: 2px solid #000; padding-top: 14px; page-break-inside: avoid;
}
.answer-sheet h2 { font-size: 1.05rem; margin: 0 0 10px; }
.bubble-row { display: flex; align-items: center; gap: 12px; padding: 5px 0; border-bottom: 1px dashed #bbb; }
.bubble-row .b-num { width: 34px; font-weight: 700; }
.bubbles { display: flex; gap: 14px; }
.bubble {
  width: 26px; height: 26px; border: 1.6px solid #000; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; font-size: 0.8rem;
}

@media print {
  .print-toolbar, .site-header, .no-print { display: none !important; }
  body { background: #fff; }
  .print-sheet { max-width: none; margin: 0; padding: 0; }
  /* 紙面のグレー塗り・罫線を確実に印刷する */
  .doc, .doc-table th, .doc-table td, .doc-total td, .doc-web-bar,
  .doc-web-url, .doc-head, .doc-ad, .doc-chat-row {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .doc-table, .doc-ad, .doc-head, .doc-web { page-break-inside: avoid; }
  .doc-table tr, .doc-chat-row { page-break-inside: avoid; }
  @page { margin: 16mm 14mm; }
}

/* ===== 赤ペン解説: annotations / readingFlow ===== */
/* 赤ペンの色（--pen・--pen-ink・--pen-soft）は先頭の :root で決める。ハイライトの黄もそこの --hl を使う */
:root { --mark-hl: var(--hl); --mark-hl-ink: var(--ink); }

/* 本文中のインライン注釈 */
.ann { position: relative; }
/* 根拠 = 蛍光ペン風の淡い黄色マーカー */
.ann-hl .ann-txt {
  background: linear-gradient(transparent 8%, var(--mark-hl) 8%, var(--mark-hl) 90%, transparent 90%);
  border-radius: 1px;
}
/* 罠・注意 = 赤下線 */
.ann-ul .ann-txt {
  border-bottom: 2px solid var(--pen);
  padding-bottom: 1px;
}
.ann-ref {
  font-size: 0.62em;
  line-height: 0;
  color: #fff;
  background: var(--pen);
  border-radius: 999px;
  padding: 0.15em 0.42em;
  margin-left: 2px;
  font-weight: 700;
  vertical-align: super;
  font-family: system-ui, sans-serif;
}

/* 赤ペンメモ(注釈一覧) */
.ann-notes-wrap {
  margin: 12px 0 4px;
  border: 1px solid var(--pen-soft);
  border-left: 3px solid var(--pen);
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
}
.ann-notes-title {
  color: var(--pen-ink);
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 6px;
}
.ann-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.ann-note { display: flex; gap: 8px; align-items: flex-start; font-size: 0.88rem; line-height: 1.55; }
.ann-note-num {
  flex: none; width: 20px; height: 20px; margin-top: 1px;
  display: grid; place-items: center;
  background: var(--pen); color: #fff; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; font-family: system-ui, sans-serif;
}
.ann-note-body { color: var(--text); }
.ann-note-kind {
  display: inline-block; font-size: 0.66rem; font-weight: 700;
  padding: 0.05em 0.5em; border-radius: 999px; margin-right: 6px; vertical-align: 1px;
}
.ann-hl-chip { background: var(--mark-hl); color: var(--mark-hl-ink); }
.ann-ul-chip { background: transparent; color: var(--pen-ink); border: 1px solid var(--pen); }
.ann-qlink { color: var(--pen-ink); font-weight: 700; margin-left: 6px; white-space: nowrap; }

/* 解き方の実況 */
.reading-flow {
  margin: 18px 0;
  border: 1px solid var(--border);
  border-top: 3px solid var(--pen);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 14px 16px 6px;
}
.rf-title { color: var(--pen-ink); font-weight: 700; font-size: 0.95rem; margin-bottom: 10px; }
.rf-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rf-step { display: flex; gap: 10px; align-items: flex-start; padding-bottom: 10px; border-bottom: 1px dashed var(--border); }
.rf-step:last-child { border-bottom: none; }
.rf-num {
  flex: none; width: 24px; height: 24px;
  display: grid; place-items: center;
  background: var(--pen-soft); color: var(--pen-ink);
  border-radius: 999px; font-weight: 700; font-size: 0.8rem; font-family: system-ui, sans-serif;
}
.rf-text { color: var(--text); font-size: 0.92rem; line-height: 1.65; }
.rf-qtag {
  display: inline-block; margin-left: 6px; font-size: 0.68rem; font-weight: 700;
  color: var(--primary-ink); background: var(--primary-soft);
  padding: 0.05em 0.5em; border-radius: 999px; vertical-align: 1px;
}

/* 結果画面の本文再表示 */
.result-passages { margin: 14px 0 6px; }
.result-sec-title { font-size: 1.02rem; margin: 6px 0 10px; }

/* ===== 赤ペン解説の印刷保証（カラー＝そのまま／モノクロ＝代替表現で判別可能） ===== */
@media print {
  /* 背景色・バッジ色をそのまま印刷（カラープリンタ用） */
  .ann-hl .ann-txt, .ann-ul .ann-txt, .ann-ref,
  .ann-notes-wrap, .ann-note-num, .ann-note-kind,
  .reading-flow, .rf-num, .rf-qtag {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  /* ハイライト(根拠): 黄マーカー＋“網掛け＋太字＋下罫線”を重ね、モノクロで薄グレーになっても判別可能に */
  .ann-hl .ann-txt {
    background-color: var(--mark-hl);
    background-image: repeating-linear-gradient(45deg,
      rgba(0,0,0,0.10) 0, rgba(0,0,0,0.10) 1.2px, transparent 1.2px, transparent 4px);
    font-weight: 700;
    box-shadow: inset 0 -0.14em 0 rgba(0,0,0,0.30);
  }
  /* 罠・注意(下線): モノクロでも濃く出る実線に */
  .ann-ul .ann-txt { border-bottom: 2px solid #222; }
  /* 番号バッジ: 濃い塗り＋白抜き数字＝グレースケールでも塊として残る */
  .ann-ref, .ann-note-num { background: #222 !important; color: #fff !important; }
  .rf-num { background: #e6e6e6 !important; color: #222 !important; border: 1px solid #222; }
  /* 赤ペンメモ枠・実況枠: 罫線主体で判別（塗りに依存しない） */
  .ann-notes-wrap { border: 1px solid #555; border-left: 3px solid #222; }
  .reading-flow { border: 1px solid #555; border-top: 3px solid #222; box-shadow: none; }
  .ann-notes-title, .rf-title { color: #111; }
  /* メモの種別チップ: 文字（「下線」「ハイライト」）で意味を明示。枠線で識別 */
  .ann-hl-chip { background: var(--mark-hl); color: #4a3800; border: 1px solid #222; }
  .ann-ul-chip { background: #fff; color: #111; border: 1px solid #222; }
  .ann-qlink, .rf-qtag { color: #111; background: #eee !important; border: 1px solid #999; }
  /* ページ分割時に赤ペンメモ／実況ステップが割れないように */
  .ann-notes-wrap, .reading-flow { page-break-inside: avoid; }
  .rf-step, .ann-note { page-break-inside: avoid; }
}

/* ===== トップページ（ルート index.html）の構造スキャフォールド =====
   色・フォントは既存トークンのみ使用（新しい配色・書体は足さない。デザインは別途判断）。
   目的は「横並び／縦積み」などの“構造”を既存の見た目で成立させること。 */
/* ===== トップ（/）F 案 ===== */
.wrap-wide { max-width: var(--maxw-wide); margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.eyebrow { font-family: var(--font-num); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; color: var(--pen-ink); margin: 0; }
.home-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 36px; padding-bottom: 56px; }
.home-hero-text { display: flex; flex-direction: column; gap: 22px; }
.home-label { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; margin: 0; border: 1px solid var(--ink); border-radius: 999px; padding: 6px 14px 6px 11px; font-size: 13px; font-weight: 700; }
.home-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pen); }
.home-h1 { margin: 0; font-size: 40px; line-height: 1.28; font-weight: 700; letter-spacing: -0.01em; }
.home-lead { margin: 0; font-size: 16px; line-height: 1.95; color: var(--ink-sub); }
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.home-hero-actions .btn { padding: 15px 26px; font-size: 15px; }
.link-arrow { font-size: 15px; font-weight: 700; color: var(--ink); text-decoration: none; padding: 10px 2px; border-bottom: 1px solid var(--ink); }
.home-note { margin: 0; font-size: 13px; color: var(--ink-muted); }
/* 赤ペン解説の見本（HTML で組む。実際の解説と同じ表現） */
.pen-sample-wrap { position: relative; padding: 0 10px 14px 0; }
.pen-sample-wrap::before { content: ""; position: absolute; left: 26px; top: 22px; right: 0; bottom: 0; background: var(--paper-deep); border-radius: var(--radius); }
.pen-sample { position: relative; margin: 0; background: var(--surface); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(26, 29, 35, 0.06), 0 24px 48px -28px rgba(26, 29, 35, 0.28); overflow: hidden; }
.pen-sample-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line-soft); font-size: 12px; color: var(--ink-muted); }
.pen-sample-head .en { font-family: var(--font-num); letter-spacing: 0.02em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pen-sample-head .tag { color: var(--pen-ink); font-weight: 700; flex: 0 0 auto; }
.pen-sample-body { padding: 18px 22px 12px; font-family: var(--font-en); font-size: 15.5px; line-height: 1.95; display: flex; flex-direction: column; gap: 10px; }
.pen-sample-body p { margin: 0; }
.pen-hl { background: var(--hl); padding: 1px 0; }
.pen-ul { border-bottom: 2px solid var(--pen); }
.pen-no { display: inline-flex; width: 17px; height: 17px; border-radius: 50%; background: var(--pen); color: #fff; font-family: var(--font-num); font-size: 10px; font-weight: 600; font-style: normal; align-items: center; justify-content: center; margin-left: 3px; vertical-align: 5px; line-height: 1; }
.pen-memo { margin: 0 18px 18px; padding: 14px 16px; background: var(--pen-soft); border-radius: 8px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; line-height: 1.65; color: #2E323A; }
.pen-memo-title { font-size: 12px; font-weight: 700; color: var(--pen-ink); letter-spacing: 0.04em; }
.pen-memo-row { display: grid; grid-template-columns: 20px 62px 1fr; gap: 8px; align-items: start; }
.pen-memo-row .pen-no { width: 18px; height: 18px; margin: 1px 0 0; vertical-align: 0; }
.pen-kind { font-size: 11px; border-radius: 4px; text-align: center; padding: 1px 0; margin-top: 1px; }
.pen-kind-hl { background: var(--hl); }
.pen-kind-ul { border: 1px solid var(--pen); color: var(--pen-ink); padding: 0; }
.pen-to { color: var(--pen-ink); font-weight: 700; white-space: nowrap; }
/* 数字の帯 */
.home-stats { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-top: 22px; padding-bottom: 22px; row-gap: 22px; }
.home-stat { display: flex; flex-direction: column; gap: 4px; padding: 0 16px; }
.home-stat:nth-child(odd) { padding-left: 0; }
.home-stat:nth-child(even) { border-left: 1px solid #E4DFD6; }
.home-stat-num { font-family: var(--font-num); font-size: 30px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.home-stat-label { font-size: 13px; color: var(--ink-muted); }
/* 結果の見本＋説明 */
.home-after { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 64px; }
.home-after-text { display: flex; flex-direction: column; gap: 16px; }
.home-after-text h2 { margin: 0; font-size: 26px; line-height: 1.4; font-weight: 700; }
.home-after-text p:not(.eyebrow) { margin: 0; font-size: 15px; line-height: 1.95; color: var(--ink-sub); }
.result-sample { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 24px; display: flex; flex-direction: column; gap: 18px; }
.result-sample-head { display: flex; justify-content: space-between; font-size: 13px; }
.result-sample-head b { font-weight: 700; }
.sample-tag { display: inline-block; margin-left: 8px; padding: 0 6px; border: 1px solid var(--line); border-radius: 4px; font-size: 11px; font-weight: 500; color: var(--ink-muted); vertical-align: 1px; }
.result-sample-head .num { font-family: var(--font-num); color: var(--ink-muted); }
.rs-rows { display: grid; grid-template-columns: 80px 1fr 44px; gap: 14px; align-items: center; font-size: 13px; }
.rs-bar { height: 6px; background: var(--paper-deep); border-radius: 3px; display: flex; }
.rs-bar span { background: var(--ink); border-radius: 3px; }
.rs-pct { font-family: var(--font-num); text-align: right; }
.rs-weak { color: var(--pen-ink); font-weight: 700; }
.rs-bar.rs-weak { background: #F5DEDB; }
.rs-bar.rs-weak span { background: var(--pen); }
.result-sample-foot { margin: 0; font-size: 13px; color: var(--ink-sub); border-top: 1px solid var(--line-soft); padding-top: 14px; }
.result-sample-foot b { color: var(--pen-ink); }
/* 3つの入口 */
.home-entries { display: grid; grid-template-columns: 1fr; gap: 28px; padding-top: 72px; }
.home-entry { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 1px solid var(--ink); text-decoration: none; color: var(--ink); }
.home-entry-no { font-family: var(--font-num); font-size: 13px; color: var(--ink-muted); }
.home-entry-title { font-size: 21px; font-weight: 700; }
.home-entry-desc { font-size: 14px; line-height: 1.85; color: var(--ink-sub); }
.home-entry-go { font-size: 14px; font-weight: 700; }
.home-entry:hover .home-entry-go { color: var(--pen-ink); }
/* 攻略ガイドの新着・PDF版 */
.home-section { padding-top: 64px; }
.home-section h2 { font-size: 20px; font-weight: 700; margin: 0 0 8px; }
.home-latest { list-style: none; padding: 0; margin: 0 0 12px; }
.home-latest li { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.home-latest a { text-decoration: none; }
.home-pdf { margin: 28px 0 0; font-size: 14px; color: var(--ink-sub); }
.home-pdf a { font-weight: 700; }
@media (min-width: 720px) {
  .home-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-stat, .home-stat:nth-child(odd) { padding: 0 24px; border-left: 1px solid #E4DFD6; }
  .home-stat:first-child { padding-left: 0; border-left: 0; }
  .home-stat-num { font-size: 34px; }
  .home-entries { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 112px; }
}
@media (min-width: 960px) {
  .wrap-wide { padding-left: 24px; padding-right: 24px; }
  .home-hero { grid-template-columns: 430px minmax(0, 1fr); gap: 64px; align-items: center; padding-top: 64px; padding-bottom: 96px; }
  .home-hero-text { gap: 28px; }
  .home-h1 { font-size: 54px; }
  .pen-sample-wrap { padding: 0 10px 14px 0; }
  .pen-sample-wrap::before { left: 34px; top: 26px; right: -10px; bottom: -14px; }
  .pen-sample-wrap { padding: 0; }
  .pen-sample-head { padding: 14px 24px; }
  .pen-sample-body { padding: 22px 28px 16px; }
  .pen-memo { margin: 0 24px 22px; padding: 14px 18px; }
  .home-after { grid-template-columns: minmax(0, 1fr) 500px; gap: 72px; align-items: center; padding-top: 96px; }
  .home-after .result-sample { order: -1; padding: 28px 32px; }
  .home-after-text h2 { font-size: 32px; }
  .rs-rows { grid-template-columns: 96px 1fr 48px; }
}
/* ===== 共通フッター（墨の地） ===== */
.site-footer { background: var(--ink); color: #C9CCD2; margin-top: 96px; }
.site-footer .wrap { max-width: var(--maxw-wide); display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; padding-top: 40px; padding-bottom: 40px; font-size: 12px; }
.site-footer a { color: #C9CCD2; text-decoration: none; }
.site-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.site-footer .brand-dark .logo { font-size: 24px; }
.site-footer .brand-dark:hover { text-decoration: none; color: var(--paper-bg); }
.footer-sns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-left: auto; }
.footer-sns-note { font-size: 12px; color: #C9CCD2; }
.footer-sns-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.site-footer .sns-link { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border: 1px solid #4A4E57; border-radius: var(--radius-btn); color: #FAF8F4; font-size: 12px; font-weight: 500; text-decoration: none; }
.site-footer .sns-link:hover { border-color: #C9CCD2; color: #fff; text-decoration: none; }
.sns-icon { width: 16px; height: 16px; flex: 0 0 auto; display: block; }
.footer-legal { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding-top: 18px; border-top: 1px solid #2E323A; }
.site-footer .foot-ets { flex: 1 1 100%; color: #8D929B; }

/* ===== /pro/ の構造スキャフォールド（既存トークンのみ） ===== */
.pro-feats { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.pro-feats li { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); padding: 14px 16px; }
.pro-price { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); padding: 18px 20px; }
.pro-price .price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.pro-price .price-row:last-of-type { border-bottom: none; }
.pro-price .amount { font-size: 1.3rem; font-weight: 800; }
.pro-price .note { color: var(--text-muted); font-size: 0.9rem; }
.pro-refund { margin: 12px 0 0; font-weight: 700; color: var(--primary-ink); }
.pro-cta-stack { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.pro-cta-stack .btn { width: 100%; }
.pro-buy-wait { color: var(--text-muted); font-size: 0.9rem; text-align: center; }
.pro-consent { font-size: 0.85rem; color: var(--text-muted); margin: 0; }
.pro-cta-small { text-align: center; font-size: 0.92rem; color: var(--primary-ink); text-decoration: none; padding: 6px; }
.pro-cta-small:hover { text-decoration: underline; }
.pro-faq dt { font-weight: 800; margin-top: 16px; }
.pro-faq dd { margin: 4px 0 0; }
.btn.is-disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; pointer-events: none; }
/* /pro/ ファーストビューの価格表示（先払い販売の停止で現在は未使用）。色は既存トークン。 */
.pro-hero-price { margin: 14px 0 2px; }
.pro-hero-price p { margin: 3px 0; }
.php-label { color: var(--text-muted); font-size: 0.9rem; }
.php-was s { color: var(--text-muted); }
.php-now { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.php-big { font-size: 2.2rem; font-weight: 800; color: var(--cta-dark); line-height: 1.1; }
.php-sub { color: var(--text-muted); font-size: 0.9rem; }
/* 購入ブロック（返金・自動切替の2行、控えめ時の注記） */
.pro-buy-block { display: flex; flex-direction: column; gap: 6px; }
.pro-note { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* /pro/ の「開始のお知らせ」を押した直後（フォームへ移る間）。二重タップ不可 */
.is-opening { pointer-events: none; }
/* 見出し付近の「現在開発中です。…」 */
.pro-dev-note { margin: 4px 0 18px; font-size: 0.85rem; opacity: 0.85; }

/* /pro/ 申込ボタンの真下の「開始をメールで受け取る」：申込（赤）より控えめな枠線ボタン＋補足1行 */
.btn-signup { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin-top: 10px; padding: 10px 16px; border: 1px solid var(--ink); border-radius: var(--radius); background: #fff; color: var(--ink); font-size: 0.95rem; font-weight: 600; text-align: center; text-decoration: none; }
.btn-signup:hover { background: var(--paper-deep); text-decoration: none; }
/* 枠線ボタンが赤より大きく見えないよう、赤が文字幅の位置（上部・試してみる・仕組み）は赤も横幅いっぱいにそろえる。PCは最大480px */
.btn.pro-main-cta.is-full { display: flex; justify-content: center; width: 100%; max-width: 480px; }
.btn-signup:not(.btn-signup-sticky) { max-width: 480px; }
.signup-note { margin: 4px 0 0; font-size: 0.78rem; color: var(--text-muted); text-align: center; }
/* 紺の上部では白地だと赤より目立つため、透明地・白枠・白文字にする */
.pro-hero-band .btn-signup { background: transparent; border-color: rgba(255, 255, 255, 0.8); color: #fff; }
.pro-hero-band .btn-signup:hover { background: rgba(255, 255, 255, 0.08); }
.pro-hero-band .signup-note { color: rgba(255, 255, 255, 0.85); }

/* ===== /pro/ LP ===== */
/* 紺のセクション（ヒーローと最後のCTAだけ）。白文字。それ以外は通常配色のまま。 */
.pro-hero-band { background: var(--navy); }
.pro-hero-band .wrap { padding-top: 40px; padding-bottom: 44px; }
.pro-hero-band h1, .pro-hero-band h2, .pro-hero-band p { color: #fff; }
.pro-hero-band .php-label,
.pro-hero-band .php-sub,
.pro-hero-band .php-was { color: rgba(255, 255, 255, 0.88); }
.pro-hero-band .php-was s { color: rgba(255, 255, 255, 0.82); }
.pro-hero-band .php-big { color: #fff; }
.pro-hero-band .pro-cta-note { color: rgba(255, 255, 255, 0.9); }
.pro-hero-band .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.5); background: transparent; }
.pro-hero-band .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: #fff; }
.pro-hero .page-title { margin-top: 2px; }

/* ヒーロー2カラム（PC: 左=見出し/価格/CTA、右=サンプル表）。スマホは縦積み（見出し→価格→ボタン→表） */
.pro-hero-band .page-title { font-size: 2rem; line-height: 1.2; }
/* 見出しは「弱点だけ、」/「解き放題。」の2行固定。2行目は途中で折り返さない（下線も1行に収まる） */
.pro-hero .hero-line2 { white-space: nowrap; }
/* 見出しの上の1行「TOEIC® Part 7 の」（広告Bと同じ構成）。見出しより一回り小さい白の太字 */
.pro-hero .hero-kicker { display: block; font-size: 0.6em; font-weight: 800; margin-bottom: 4px; }
/* ヒーロー右の表の飾りボタン（主ボタンと競合させない）: 薄い赤地に赤文字・低め・1行・クリック無効 */
.pro-hero-visual .pro-sample-btn-deco {
  background: var(--wrong-soft);
  color: var(--cta-dark);
  border: 1px solid var(--pen);
  box-shadow: none;
  min-height: 34px;
  padding: 7px 10px;
  font-size: 0.72rem;
  white-space: nowrap;
  pointer-events: none;
  cursor: default;
}
.pro-hero-visual { margin-top: 22px; }
.pro-hero-visual .type-acc-sample { margin-top: 0; }
@media (min-width: 768px) {
  .pro-hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 32px; align-items: center; }
  .pro-hero-visual { margin-top: 0; }
  .pro-hero-band .page-title { font-size: 3.25rem; } /* ≈52px（広告Bに近づける） */
}

/* ===== 固定CTA（PC）: 本文に重ねず、共通ヘッダーのナビと入替 ===== */
/* 既定は非表示。PC かつ .site-header.pro-show-cta のときだけナビを隠してCTAを出す */
.pro-header-cta { display: none; align-items: center; gap: 10px; }
.pro-header-cta .btn { min-height: 38px; padding: 8px 14px; font-size: 0.85rem; box-shadow: none; }
.pro-header-cta .pro-free-link { color: var(--ink); white-space: nowrap; font-size: 0.85rem; }
@media (min-width: 768px) {
  .pro-header-cta .pro-main-cta { order: 1; }
  .pro-header-cta .pro-secondary-cta { order: 2; }
  .pro-header-cta .pro-free-link { order: 3; }
  .site-header.pro-show-cta .site-nav { display: none; }
  .site-header.pro-show-cta .pro-header-cta { display: flex; }
  /* PC では浮遊ボックスは使わない（ヘッダー内CTAに一本化） */
  .pro-sticky { display: none !important; }
}

/* 見出し「解き放題」の下に赤ペン風の手書き下線（インラインSVG・赤）。 */
.hero-underline {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M5,15 C70,6 150,10 200,13 C240,15 272,12 296,8' fill='none' stroke='%23C8342C' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left bottom / 100% 0.4em;
  padding-bottom: 0.12em;
}
/* 価格の下の赤ペン風の手書き下線（見出しより少し細く・数字の幅に合わせる）。現在は未使用。 */
.php-underline {
  display: inline-block;
  padding-bottom: 0.14em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M4,10 C50,4 100,7 140,9 C165,10 185,8 196,6' fill='none' stroke='%23C8342C' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left bottom / 100% 0.32em;
}

/* CTA 共通（各ボタンの下に一言） */
.pro-cta-single { margin: 18px 0 2px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.pro-cta-note { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* 「試してみる」主ボタン直前のひとこと */
.pro-try-lead { font-weight: 700; margin: 16px 0 0; }

/* 無料テキストリンク（主ボタンの下の脇役）。ボタンにはしない */
.pro-free-link { font-size: 0.95rem; font-weight: 600; text-decoration: none; color: var(--primary-ink); }
.pro-free-link:hover { text-decoration: underline; }
.pro-hero-band .pro-free-link { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.pro-page main .pro-free-link { color: var(--ink); }
.pro-price-card .pro-free-link { align-self: center; }

/* ===== 固定CTA（スマホ: 画面下の帯／ボトムバー） ===== */
/* 白背景・上に細い境界線・下はホームバーにかからないよう safe-area 余白。PC はヘッダー内CTAに一本化（下の @media で display:none）。 */
.pro-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 20px -12px rgba(16, 24, 40, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s;
}
.pro-sticky.is-visible { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
/* 主ボタンを大きく、無料リンクは小さく左に */
.pro-sticky .pro-sticky-main.btn { flex: 1 1 auto; min-height: 50px; font-size: 1rem; box-shadow: none; }
.pro-sticky .pro-free-link { flex: 0 0 auto; color: var(--ink); white-space: nowrap; font-size: 0.85rem; }
.pro-sticky-secondary { display: none; } /* スマホの帯は主ボタン＋無料リンクのみ */
.sticky-label-full { display: none; }
.sticky-label-short { display: inline; }
/* 帯が出ている間、本文の最後が帯で隠れないよう下に余白（スマホのみ） */
@media (max-width: 767px) {
  body.pro-bar-space { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
}
@media (min-width: 768px) {
  /* PC: ヘッダー内CTA（.pro-header-cta）に一本化。ラベルはフル表示 */
  .sticky-label-full { display: inline; }
  .sticky-label-short { display: none; }
}

/* お悩み（チェックつきカード） */
.pain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.pain-list li { position: relative; padding: 14px 16px 14px 46px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.pain-list li::before { content: "✓"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; line-height: 22px; text-align: center; border-radius: 999px; background: var(--primary-soft); color: var(--primary-ink); font-weight: 800; font-size: 0.8rem; }
.pain-close { font-weight: 700; margin-top: 14px; }

/* 橋渡し（中央・少し小さめ・下向き矢印） */
.pro-bridge { text-align: center; color: var(--text-muted); font-size: 0.95rem; margin: 28px 0; }
.bridge-arrow { display: block; margin-top: 4px; font-size: 1.3rem; color: var(--text-muted); }

/* 仕組み・流れ（縦の番号つき） */
.step-list { list-style: none; counter-reset: step; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 20px; }
.step-list > li { position: relative; padding-left: 48px; counter-increment: step; }
.step-list > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; line-height: 32px; text-align: center; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 800; }
.step-title { font-weight: 800; font-size: 1.05rem; }
.step-list p { margin: 4px 0 0; }
.flow-list > li::before { background: var(--primary-dark); }

/* 結果表のサンプル */
.type-acc-sample { margin-top: 12px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); padding: 16px 18px; }
.type-acc-sample-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.type-acc-sample .result-sec-title { margin: 0; border: none; padding: 0; font-size: 1.05rem; }
.type-acc-caption { font-size: 0.75rem; color: var(--text-muted); border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.pro-sample-btn { margin-top: 14px; }

/* 選ばれる理由（01〜04） */
.reasons { display: grid; grid-template-columns: 1fr; gap: 14px; }
.reason { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); padding: 18px 20px; }
.reason-num { display: inline-block; font-size: 1.1rem; font-weight: 800; color: var(--primary-ink); letter-spacing: 0.04em; }
.reason h3 { margin: 4px 0 6px; font-size: 1.05rem; font-weight: 800; }
.reason p { margin: 0; }

/* 価格カード */
.pro-price-card { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); padding: 20px; }
.pro-price-card .pro-cta-stack { margin-top: 16px; }

/* 最後のCTA / 運営者 */
.pro-last-cta { text-align: center; }
.pro-last-cta .pro-cta-single { align-items: stretch; max-width: 420px; margin: 18px auto 2px; }
.pro-operator { padding-top: 12px; padding-bottom: 30px; color: var(--text-muted); font-size: 0.85rem; }

@media (min-width: 720px) {
  .reasons { grid-template-columns: 1fr 1fr; }
}

/* ===== /pro/ だけのコントラスト調整（共通トークンは書き換えない） ===== */
.pro-page { color: var(--ink); }
/* 本文: 濃いめ var(--ink) / 16px / 行間1.8 */
.pro-page main p,
.pro-page main li,
.pro-page main dt,
.pro-page main dd { color: var(--ink); font-size: 16px; line-height: 1.8; }
.pro-page .reason p { color: var(--ink); }
/* 補足（旧 --text-muted の箇所）→ var(--ink-sub)（白背景でコントラスト比 4.5 以上） */
.pro-page main .php-label,
.pro-page main .php-sub,
.pro-page main .php-was,
.pro-page main .pro-note,
.pro-page main .pro-consent,
.pro-page main .pro-cta-note,
.pro-page main .pro-bridge,
.pro-page main .ta-frac,
.pro-page main .type-acc-caption,
.pro-page .pro-operator { color: var(--ink-sub); }
/* 橋渡しの文・CTA 下の一言は 15px 以上 */
.pro-page .pro-bridge { font-size: 15px; line-height: 1.8; }
.pro-page .pro-cta-note { font-size: 15px; }
/* 旧 --primary-ink の文字（本文リンク・番号・チェック）→ var(--ink)（4.5 以上）。ボタンは除外 */
.pro-page main a:not(.btn),
.pro-page .pro-operator a { color: var(--ink); }
.pro-page .reason-num { color: var(--ink); }
.pro-page .pain-list li::before { color: var(--ink); }

/* 結果画面（practice/exam）の Pro 導線ボタン */
.pro-cta-result { margin: 14px 0 6px; }
.pro-cta-result .btn { width: 100%; }

/* ===== 法的文書ページ（特商法・利用規約・プライバシー） ===== */
.legal-doc { max-width: 760px; }
.legal-doc h2 { font-size: 1.12rem; font-weight: 800; margin: 22px 0 6px; }
.legal-doc p { line-height: 1.9; margin: 8px 0; }
.legal-doc ol, .legal-doc ul { line-height: 1.9; padding-left: 1.5em; margin: 8px 0; }
.legal-doc li { margin: 4px 0; }
.legal-list dt { font-weight: 800; margin-top: 14px; }
.legal-list dd { margin: 4px 0 0; }
.legal-date, .legal-ets { color: var(--text-muted); font-size: 0.9rem; margin-top: 24px; }

/* ===== 結果画面: 設問タイプ別の正答率（広告スクショ用。既存トークンのみ） ===== */
.type-acc { margin: 16px 0 6px; }
.type-acc-list { display: flex; flex-direction: column; gap: 6px; }
.type-acc-row { padding: 6px 8px; border-radius: 8px; }
.type-acc-row .ta-head { display: flex; align-items: baseline; gap: 8px; font-size: 0.9rem; }
.ta-name { font-weight: 700; }
.ta-weak-label { font-size: 0.78rem; font-weight: 800; color: #fff; background: var(--wrong); border-radius: 999px; padding: 2px 10px; }
.ta-frac { color: var(--text-muted); margin-left: auto; }
.ta-pct { font-weight: 800; min-width: 3em; text-align: right; }
/* バーの下地は薄い赤（0%でも空に見えない）。塗りは正答率で色分け: <50 赤 / 50–79 黄 / ≥80 緑。 */
.ta-bar { height: 8px; border-radius: 999px; background: var(--wrong-soft); overflow: hidden; margin-top: 5px; }
.ta-bar-fill { display: block; height: 100%; background: var(--correct); border-radius: 999px; }
.type-acc-row.lv-low .ta-bar-fill { background: var(--wrong); }
.type-acc-row.lv-mid .ta-bar-fill { background: var(--warn); }
.type-acc-row.lv-high .ta-bar-fill { background: var(--correct); }
/* 弱点行（βボタンと同じタイプ）: 名前を赤・背景をごく薄い赤。 */
.type-acc-row.is-weak { background: rgba(255, 111, 111, 0.08); }
.type-acc-row.is-weak .ta-name { color: var(--wrong); }

/* ===== 模試（Q.147〜200）の一覧（/toeic/exam/ と各模試のページ。tools/lib/tests.mjs が生成）F 案 ===== */
.list-eyebrow { margin: 24px 0 8px; }
.test-section { margin: 0 0 28px; }
/* /toeic/exam/ の模試のタブ：下線（増えたら横スクロール） */
.exam-tabs { display: flex; gap: 32px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; border-bottom: 1px solid var(--line); margin: 8px 0 20px; }
.exam-tabs::-webkit-scrollbar { display: none; }
.exam-tab { flex: 0 0 auto; white-space: nowrap; font-size: 15px; padding: 0 0 12px; color: var(--ink-muted); text-decoration: none; }
.exam-tab[aria-selected="true"] { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--ink); }
.test-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.test-card { order: -1; background: var(--ink); color: var(--paper-bg); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.test-card-label { font-size: 13px; color: #C9CCD2; }
.test-card-num { font-family: var(--font-num); font-size: 34px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.test-card-num small { font-family: var(--font-ja); font-size: 15px; font-weight: 500; letter-spacing: 0; }
.test-card .test-start { background: var(--paper-bg); color: var(--ink); font-size: 15px; }
.test-card .test-start:hover { background: #FFFFFF; color: var(--ink); }
.test-meta { margin: 0; font-size: 12px; color: #C9CCD2; }
.tq-list { list-style: none; margin: 0; padding: 4px 20px; background: var(--surface); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(26, 29, 35, 0.06); }
.tq-row { display: flex; align-items: center; border-top: 1px solid #F1EEE8; }
.tq-row:first-child { border-top: 0; }
.tq-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 8px 0; text-decoration: none; color: var(--ink); font-size: 14px; }
.tq-main:hover .tq-no { color: var(--pen-ink); }
.tq-no { min-width: 82px; white-space: nowrap; font-family: var(--font-num); font-weight: 600; }
.tq-doc { min-width: 0; color: var(--ink-sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tq-kai { flex: 0 0 auto; padding: 8px 0 8px 12px; font-size: 13px; color: var(--ink-muted); text-decoration: none; }
.tq-kai:hover { color: var(--pen-ink); }
@media (min-width: 760px) {
  .test-panel { grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; }
  .test-card { order: 0; padding: 28px; }
}
@media (min-width: 1000px) {
  .wrap-list .test-panel { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
  .wrap-list .tq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; padding: 8px 24px; }
  .wrap-list .tq-row:nth-child(2) { border-top: 0; }
}
.list-heading { font-size: 1.15rem; font-weight: 800; margin: 8px 0 10px; }
/* /toeic/ のセット一覧の下：番号つきのページ送り（toeic/js/index.js） */
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 20px 0 8px; }
.pager:empty { display: none; }
.pager-num, .pager-step { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 0 12px; border-radius: 8px; color: var(--ink-sub); font-family: var(--font-num); font-size: 14px; font-weight: 600; text-decoration: none; }
.pager-step { font-family: var(--font-ja); font-weight: 500; padding: 0 14px; }
.pager-num.is-current { background: var(--ink); color: var(--paper-bg); }
.pager-num:hover, .pager-step:hover { background: var(--paper-deep); color: var(--ink); }
/* /toeic/ のセット一覧の上：模試へのリンク */
.exam-link { margin: 0 0 16px; font-size: 0.92rem; }
.exam-link a { font-weight: 800; color: var(--primary-ink); }
/* 模試のページの上部（「通しで解く」を押すまでの画面） */
.test-hub .page-lead { margin-bottom: 14px; }
/* セットのページ（演習画面）の所属表示：どの模試の何番か */
.solve-test { display: block; margin-top: 4px; font-size: 0.8rem; }
.solve-test a { color: var(--primary-ink); font-weight: 700; }
/* 模試の中で解いたときの結果画面：模試の次のセット・残りの設問 */
.test-next { margin: 10px 0 4px; font-size: 0.9rem; }
.test-next a { font-weight: 700; color: var(--primary-ink); text-decoration: none; }
.test-next a:hover { text-decoration: underline; }

/* ===== 演習セット一覧（/toeic/）F 案：表 ===== */
.wrap-list { max-width: var(--maxw-wide); }
.list-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px 16px; flex-wrap: wrap; margin-top: 24px; }
.list-head .eyebrow { margin-bottom: 8px; }
.list-head .page-title { margin: 0; }
.list-head .result-meta { margin: 0; font-size: 14px; color: var(--ink-muted); min-height: 25px; flex: 1 1 100%; }
@media (min-width: 640px) { .list-head .result-meta { flex: 0 0 auto; } }
/* 絞り込み欄は JS で入るので、入る前から同じ高さを空けておく（CLS 対策） */
#controls:empty { min-height: 239px; margin-bottom: 12px; }
@media (min-width: 640px) { #controls:empty { min-height: 126px; } }
.page-title { font-size: 30px; font-weight: 700; letter-spacing: 0; }
.page-lead { color: var(--ink-sub); }
.wrap-list .page-lead { margin: 10px 0 18px; font-size: 14px; }
@media (min-width: 640px) { .wrap-list .page-lead { font-size: 15px; } }
.exam-link { margin: 0 0 18px; font-size: 14px; color: var(--ink-sub); }
.exam-link a { font-weight: 700; color: var(--ink); }
.set-table { background: var(--surface); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(26, 29, 35, 0.06), 0 20px 40px -32px rgba(26, 29, 35, 0.25); margin-top: 18px; }
.set-thead { display: none; }
.set-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; grid-template-areas: "no title actions" "no meta actions"; column-gap: 12px; row-gap: 4px; align-items: center; padding: 16px; border-top: 1px solid #F1EEE8; font-size: 15px; }
.set-row:first-child { border-top: 0; }
.sr-no { grid-area: no; align-self: start; font-family: var(--font-num); font-weight: 600; font-size: 13px; color: var(--ink-muted); padding-top: 2px; }
.sr-title { grid-area: title; font-weight: 700; text-decoration: none; color: var(--ink); min-width: 0; }
.sr-meta { grid-area: meta; display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 13px; color: var(--ink-sub); }
.sr-score { display: inline-flex; align-items: center; gap: 6px; }
.sr-unit { font-size: 0.85em; }
.score-dots { display: inline-flex; gap: 2px; }
.score-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.score-dots i.on { background: var(--ink); }
.sr-actions { grid-area: actions; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 14px; }
.sr-actions a { text-decoration: none; white-space: nowrap; }
.sr-print { display: none; }
.sr-kai, .sr-print { color: var(--ink-muted); }
.sr-go { font-weight: 700; color: var(--ink); }
.set-tbody .empty-state { border: 0; }
@media (min-width: 760px) {
  .set-thead, .set-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) 110px 100px 80px 200px; grid-template-areas: none; align-items: center; padding: 0 28px; }
  .set-thead { padding-top: 14px; padding-bottom: 14px; font-size: 12px; color: var(--ink-muted); border-bottom: 1px solid var(--line-soft); }
  .set-row { padding-top: 20px; padding-bottom: 20px; row-gap: 0; column-gap: 0; }
  .set-row > *, .sr-meta > * { grid-area: auto; }
  .sr-no { align-self: center; padding-top: 0; font-size: 15px; font-weight: 400; }
  .sr-title { padding-right: 16px; }
  .sr-meta { display: contents; font-size: 15px; }
  .sr-kind, .sr-score, .sr-q { color: var(--ink-sub); font-size: 15px; }
  .sr-actions { flex-direction: row; justify-content: flex-end; align-items: center; gap: 18px; }
  .sr-print { display: inline; }
  .page-title { font-size: 38px; }
}
.list-heading { font-weight: 700; }
/* 一覧の下：ほかの使い方・記事一覧 */
.use-card { border: 0; }
.use-card-title, .other-uses h2, .related-box h2 { font-weight: 700; }
.use-card-desc { color: var(--ink-sub); }

/* =====================================================================
   F 案：演習画面・模試の受験と採点・結果・解説ページ・赤ペン
   上の古い指定（ミント・ピンク・色付きの左線）をここでまとめて上書きする。
   正誤は色だけに頼らない：正解＝墨の太字＋「✓ 正解」、不正解＝赤＋「✕」
   ===================================================================== */
/* 演習の入れ物 */
.passage, .question, .kaisetsu-passage, .kaisetsu-q, .result-q, .score-card, .reading-flow, .exam-bar, .solve-bar {
  border: 0; border-radius: var(--radius); box-shadow: 0 1px 2px rgba(26, 29, 35, 0.06), 0 16px 32px -28px rgba(26, 29, 35, 0.25);
}
.solve-bar { background: var(--surface); }
.solve-bar-title { font-weight: 700; }
.solve-bar-meta, body.solving .solve-bar-meta, body.solving .doc-label { color: var(--ink-sub); }
.solve-bar-dot { color: var(--line); }
.solve-bar-timer, .exam-timer { font-family: var(--font-num); font-weight: 600; color: var(--ink); }
.solve-bar-timer.over, .exam-timer.over { color: var(--pen-ink); }
.solve-bar-exit { color: var(--ink-muted); font-weight: 500; }
.solve-bar-exit:hover { color: var(--pen-ink); }
.solve-bar-brand { font-family: var(--font-en); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.solve-bar-brand span { color: var(--ink); font-style: italic; }
.solve-intro { background: var(--paper-deep); color: var(--ink-sub); border-radius: 8px; }
.solve-intro-head { font-weight: 700; color: var(--ink); }
.timer { font-family: var(--font-num); font-weight: 600; border-color: var(--line); color: var(--ink); }
.timer.over { background: var(--surface); color: var(--pen-ink); border-color: var(--pen); }
.progress-note, .exam-nav-progress { color: var(--ink-muted); font-weight: 500; }
body.solving .solve-pane.solve-questions { border-left-color: var(--line-soft); }
.submit-bar { background: linear-gradient(to top, var(--paper-bg) 70%, rgba(250, 248, 244, 0)); }
.exam-nav { background: linear-gradient(to top, var(--paper-bg) 72%, rgba(250, 248, 244, 0)); }
/* 本文（問題の英文は Source Serif 4） */
.doc, .doc-title, .doc-head-val { color: var(--ink); }
.doc-label { color: var(--ink-muted); font-weight: 500; }
/* 設問と選択肢 */
.question .q-num { background: none; color: var(--ink); font-family: var(--font-num); font-weight: 600; border: 1px solid var(--line); border-radius: 4px; padding: 0 7px; }
.question .q-prompt { font-weight: 700; }
.choice { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.choice:hover { border-color: var(--ink); }
.choice.selected { border-color: var(--ink); background: var(--paper-deep); box-shadow: inset 0 0 0 1px var(--ink); }
.choice .letter { border: 1px solid var(--line); color: var(--ink-sub); background: var(--surface); font-family: var(--font-num); font-weight: 600; }
.choice.selected .letter { background: var(--ink); color: var(--paper-bg); border-color: var(--ink); }
.choice.is-correct { border-color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 700; }
.choice.is-correct .letter { background: var(--ink); color: var(--paper-bg); border-color: var(--ink); }
.choice.is-wrong { border-color: var(--pen); background: var(--pen-soft); }
.choice.is-wrong .letter { background: var(--pen); color: #fff; border-color: var(--pen); }
.choice .mark { font-size: 12px; white-space: nowrap; }
.choice.is-correct .mark { color: var(--ink); }
.choice.is-correct .mark::before { content: "✓ "; }
.choice.is-wrong .mark { color: var(--pen-ink); }
.choice.is-wrong .mark::before { content: "✕ "; }
/* 結果 */
.score-big { font-family: var(--font-num); font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.score-big .total { color: var(--ink-muted); font-weight: 600; }
.score-pct, .score-stats .stat .lbl { color: var(--ink-muted); }
.score-stats .stat .num { font-family: var(--font-num); font-weight: 600; }
.result-q, .result-q.ok, .result-q.ng { border-left: 0; }
.acc-head .status-dot, .exam-review-q .status-dot { font-family: var(--font-num); }
.result-q.ok .status-dot, .exam-review-q.ok .status-dot { background: var(--ink); }
.result-q.ng .status-dot, .exam-review-q.ng .status-dot { background: var(--pen); }
.acc-head .acc-q { font-weight: 500; }
.acc-head .chevron { color: var(--ink-muted); }
.acc-body .ans-line .k { color: var(--ink-muted); }
.acc-body .ans-correct { color: var(--ink); }
.acc-body .ans-yours-ng { color: var(--pen-ink); }
.acc-body h4, .kaisetsu-q h4 { color: var(--ink); font-weight: 700; }
.acc-body .box, .kaisetsu-q .exp-box, .kaisetsu-q .ev-box { background: var(--paper-bg); border-radius: 6px; }
.acc-body .evidence, .kaisetsu-q .ev-box { border-left: 0; font-family: var(--font-en); }
.next-set-lead { color: var(--ink-sub); }
.next-set-link, .exam-slowest .exam-slowest-link, .exam-review-q .rq-link, .crumb a { color: var(--ink); }
/* 設問タイプ別の正答率（墨のバー、弱点だけ赤） */
.ta-bar { height: 6px; background: var(--paper-deep); }
.ta-bar-fill, .type-acc-row.lv-low .ta-bar-fill, .type-acc-row.lv-mid .ta-bar-fill, .type-acc-row.lv-high .ta-bar-fill { background: var(--ink); }
.type-acc-row.is-weak { background: none; }
.type-acc-row.is-weak .ta-name, .type-acc-row.is-weak .ta-pct { color: var(--pen-ink); }
.type-acc-row.is-weak .ta-bar { background: #F5DEDB; }
.type-acc-row.is-weak .ta-bar-fill { background: var(--pen); }
.ta-weak-label { background: none; color: var(--pen-ink); border: 1px solid var(--pen); border-radius: 4px; font-weight: 700; }
.ta-frac { color: var(--ink-muted); }
.ta-pct { font-family: var(--font-num); font-weight: 600; }
/* 模試の受験・採点 */
.exam-progress { font-weight: 700; }
.exam-section-tag, .exam-section-tag.section-double, .exam-section-tag.section-triple { background: none; color: var(--ink-sub); border: 1px solid var(--line); border-radius: 4px; font-weight: 500; }
.exam-sec-row { border: 0; box-shadow: 0 1px 2px rgba(26, 29, 35, 0.06); }
.exam-sec-row .sec-acc { font-weight: 700; }
.exam-sec-row .sec-pct, .exam-sec-row .sec-time-std { color: var(--ink-muted); }
.sec-diff.over { color: var(--pen-ink); }
.sec-diff.under { color: var(--ink); }
.exam-sec-row .sec-advice, .sec-advice.good, .sec-advice.caution, .sec-advice.warn { border-left: 0; background: var(--paper-bg); color: var(--ink-sub); font-weight: 500; }
.sec-advice.warn { color: var(--pen-ink); }
.exam-slowest { background: var(--paper-deep); }
.exam-review-q { border-bottom-color: var(--line-soft); }
.exam-review-q .rq-ans .k { color: var(--ink-muted); }
.exam-cta-card { background: var(--surface); border: 0; box-shadow: var(--shadow); }
.exam-cta-card:hover { transform: none; box-shadow: var(--shadow); }
.exam-cta-go { background: var(--ink); color: var(--paper-bg); border-radius: var(--radius-btn); box-shadow: none; }
.exam-cta-card:hover .exam-cta-go { background: #000; }
/* 解説ページ */
.kaisetsu h2 { font-weight: 700; border-bottom: 1px solid var(--line); }
.kaisetsu-q { border-left: 0; }
.kaisetsu-q h3 { font-weight: 700; }
.kaisetsu-q .q-prompt-ja, .kaisetsu-trans .trans-label, .crumb { color: var(--ink-muted); }
.kaisetsu-trans { border-top: 1px solid var(--line-soft); }
.kaisetsu-choices li { border: 1px solid var(--line); border-radius: 8px; }
.kaisetsu-choices li.correct { border-color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--ink); }
.kaisetsu-choices li .mark { color: var(--ink); font-size: 12px; white-space: nowrap; }
.kaisetsu-choices li .mark::before { content: "✓ "; }
/* 赤ペン（本文の番号・赤ペンメモ・解き方の実況）：番号は赤い丸、メモは淡い地で左線なし */
.ann-ref { font-family: var(--font-num); font-weight: 600; background: var(--pen); }
.ann-notes-wrap { border: 0; background: var(--pen-soft); border-radius: 8px; padding: 14px 16px; }
.ann-notes-title, .rf-title { color: var(--pen-ink); font-weight: 700; letter-spacing: 0.04em; }
.ann-note { color: #2E323A; }
.ann-note-body { color: #2E323A; }
.ann-note-num { font-family: var(--font-num); font-weight: 600; background: var(--pen); }
.ann-note-kind { border-radius: 4px; font-weight: 500; }
.ann-qlink { white-space: nowrap; }
.reading-flow { border-top: 0; }
.rf-step { border-bottom: 1px solid var(--line-soft); }
.rf-num { background: var(--surface); color: var(--pen-ink); border: 1px solid var(--pen); font-family: var(--font-num); font-weight: 600; }
.rf-text { color: var(--ink); }
.rf-qtag { color: var(--pen-ink); background: none; border: 1px solid var(--pen); border-radius: 4px; }
/* 古い一覧・案内の部品（パステル・枠の色を外す） */
.badge, .badge-easy, .badge-medium, .badge-hard, .badge-type, .badge-score, .badge-industry { background: none; color: var(--ink-sub); border: 1px solid var(--line); border-radius: 4px; font-weight: 500; }
.guide-banner, .booth-banner { background: var(--surface); border: 1px solid var(--line-soft); }
.guide-banner:hover, .booth-banner:hover { border-color: var(--ink); background: var(--surface); }
.guide-banner-go, .booth-banner .guide-banner-go { color: var(--ink); }
.guide-banner-icon { display: none; }
.paywall-lead strong { color: var(--ink); }
.exam-cta2-desc, .use-card-desc, .next-set-lead, .page-sets .page-lead, .page-sets .filter-label { color: var(--ink-sub); }
.page-sets .result-meta { color: var(--ink-muted); }
/* 問題の英文（設問・選択肢）も Source Serif 4。和訳・解説は和文の書体のまま */
.question .q-prompt, .choice-text, .acc-head .acc-q, .kaisetsu-q .q-prompt, .kaisetsu-choices li { font-family: var(--font-en); }
.question .q-prompt, .kaisetsu-q .q-prompt { font-weight: 600; font-size: 1.02rem; }
.choice .mark, .kaisetsu-choices li .mark { font-family: var(--font-ja); }
/* 演習バーは折り返さない（書体の読み込みで行数が変わってずれないように）。狭いときは種別の札を省略記号で切る */
.solve-bar { flex-wrap: nowrap; }
.solve-bar .meta-tags { min-width: 0; overflow: hidden; flex-wrap: nowrap; }
.solve-bar .meta-tags .badge { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.solve-bar-brand, .solve-bar-timer, .solve-bar-exit { flex: 0 0 auto; }
/* 画像の枠（/pro/ などで使う） */
.home-shot { border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.home-shot img { display: block; width: 100%; height: auto; }
.home-shot-ph { display: flex; align-items: center; justify-content: center; min-height: 180px; padding: 24px; color: var(--ink-muted); font-size: 0.9rem; text-align: center; line-height: 1.6; }

/* =====================================================================
   F 案：攻略ガイド（一覧・記事）・運営者・法務・Pro
   ===================================================================== */
.crumb { color: var(--ink-muted); }
.crumb a { color: var(--ink-sub); }
/* 攻略ガイド一覧（静的HTML。tools/build-static.mjs が生成） */
.guide-index .eyebrow { margin: 18px 0 8px; }
.guide-list { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(26, 29, 35, 0.06), 0 20px 40px -32px rgba(26, 29, 35, 0.25); }
.guide-row { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-top: 1px solid #F1EEE8; text-decoration: none; color: var(--ink); }
.guide-row:first-child { border-top: 0; }
.guide-row-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 12px; color: var(--ink-muted); }
.guide-cat { border: 1px solid var(--line); border-radius: 4px; padding: 0 6px; color: var(--ink-sub); }
.guide-date { font-family: var(--font-num); font-weight: 600; }
.guide-row-title { font-size: 17px; font-weight: 700; line-height: 1.55; }
.guide-row-desc { font-size: 14px; line-height: 1.8; color: var(--ink-sub); }
.guide-row-go { font-size: 14px; font-weight: 700; }
.guide-row:hover .guide-row-go, .guide-row:hover .guide-row-title { color: var(--pen-ink); }
@media (min-width: 720px) { .guide-row { padding: 24px 28px; } }
/* 記事 */
.page-title .h1-sub { font-weight: 500; color: var(--ink-sub); }
.article-meta { color: var(--ink-muted); }
.article-meta > span:not(.badge) { font-family: var(--font-num); font-weight: 600; }
.article-body { color: var(--ink); }
.article-body h2 { font-weight: 700; border-bottom: 1px solid var(--line); }
.article-body h3 { font-weight: 700; }
.article-body strong { background: linear-gradient(transparent 62%, var(--hl) 62%, var(--hl) 92%, transparent 92%); font-weight: 700; }
.article-body a { color: var(--ink); text-underline-offset: 3px; }
.article-body a:hover { color: var(--pen-ink); }
.article-body blockquote { border-left: 0; background: var(--surface); border-radius: 8px; box-shadow: 0 1px 2px rgba(26, 29, 35, 0.06); }
.article-body code { background: var(--paper-deep); border-color: var(--line-soft); }
.article-body table { border: 0; box-shadow: 0 1px 2px rgba(26, 29, 35, 0.06); }
.article-body th, .article-body td { border-bottom-color: var(--line-soft); }
.article-body thead th { background: var(--paper-deep); color: var(--ink); }
.article-body tbody tr:nth-child(even) td { background: var(--paper-bg); }
.article-cta-inline a, .article-author a { color: var(--ink); }
.article-trademark, .article-author { color: var(--ink-muted); }
.related-box { border: 0; }
.related-item { border-bottom: 1px solid var(--line-soft); }
.related-name { font-weight: 700; }
.related-links a { color: var(--ink); }
.related-tag, .related-tag.free, .related-tag.paid { background: none; color: var(--ink-sub); border: 1px solid var(--line); border-radius: 4px; font-weight: 500; }
/* 運営者・法務 */
.legal-doc h2 { font-weight: 700; }
.legal-list dt { font-weight: 700; }
.legal-date, .legal-ets { color: var(--ink-muted); }
/* Pro：紺の帯は墨に。番号・チェックは墨、ボタンは F 案のまま */
.pro-hero-band { background: var(--ink); }
.pro-page, .pro-page main p, .pro-page main li, .pro-page main dt, .pro-page main dd { color: var(--ink); }
.pro-hero-band h1, .pro-hero-band h2, .pro-hero-band p { color: var(--paper-bg); }
.pro-hero-band .btn:not(.btn-ghost):not(.btn-signup) { background: var(--paper-bg); color: var(--ink); }
.pro-hero-band .btn:not(.btn-ghost):not(.btn-signup):hover { background: #fff; color: var(--ink); }
.pro-feats li, .pro-price, .pain-list li, .reason, .pro-price-card, .type-acc-sample { border: 0; }
.pain-list li::before { background: none; border: 1px solid var(--ink); color: var(--ink); }
.step-list > li::before, .flow-list > li::before { background: var(--ink); font-family: var(--font-num); font-weight: 600; }
.reason-num { font-family: var(--font-num); font-weight: 600; color: var(--ink-muted); }
.reason h3, .step-title, .pro-faq dt { font-weight: 700; }
.pro-refund { color: var(--ink); }
.php-big { color: var(--ink); font-family: var(--font-num); font-weight: 600; }
.pro-sticky { border-top-color: var(--line-soft); }
.type-acc-caption { border-radius: 4px; border-color: var(--line); }
.pro-hero-visual .pro-sample-btn-deco { background: var(--pen-soft); color: var(--pen-ink); border-color: var(--pen); }

/* =====================================================================
   F 案の手直し（10/29）：ボタンかどうかを見分けやすく
   主な操作＝塗りのボタン（.btn）、補助の文字リンク＝常に下線、ヘッダーは今いる区分に赤ペン色の下線
   ===================================================================== */
.btn-sm { min-height: 36px; padding: 7px 14px; font-size: 14px; }
.btn:focus-visible, .site-nav a:focus-visible, .nav-cta:focus-visible { outline: 2px solid var(--pen); outline-offset: 2px; }
/* ヘッダー：今いる区分に赤ペン色の下線。ホバー・タップでも下線と色が変わる */
.site-nav a { padding: 4px 0; box-shadow: inset 0 -2px 0 transparent; transition: box-shadow 0.12s, color 0.12s; }
.site-nav a:hover { color: var(--pen-ink); box-shadow: inset 0 -1px 0 var(--pen); }
.site-nav a:active { color: var(--pen-ink); box-shadow: inset 0 -2px 0 var(--pen); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--pen); }
/* ヘッダーの「1セット解く」は塗りのボタン */
.nav-cta { background: var(--ink); color: var(--paper-bg); border-color: var(--ink); font-weight: 700; }
.nav-cta:hover { background: #000; color: var(--paper-bg); }
.nav-cta:active { transform: translateY(1px); }
/* /toeic/ 一覧：各行の「解く」だけ小さめの塗りボタン。印刷・解説は下線つきの文字リンク */
.sr-go { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 6px 14px; border-radius: var(--radius-btn); background: var(--ink); color: var(--paper-bg); font-weight: 700; }
.sr-go:hover { background: #000; color: var(--paper-bg); }
.sr-kai, .sr-print { text-decoration: underline; text-underline-offset: 3px; }
/* /toeic/：模試へのボタン */
.exam-link { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.exam-link a.btn { color: var(--paper-bg); }
/* トップ：入口の「模試を選ぶ →」は塗りのボタン、ほかの入口は下線つきの文字 */
.home-entry-go.btn { align-self: flex-start; color: var(--paper-bg); }
.home-entry:hover .home-entry-go.btn { color: var(--paper-bg); background: #000; }
.home-entry-go:not(.btn) { text-decoration: underline; text-underline-offset: 3px; }
/* 模試の「通しで解く」（墨のカードの中は紙色の塗り） */
.test-card .test-start { min-height: 48px; font-weight: 700; }
/* 補助の文字リンクは常に下線 */
.home-latest a, .home-section p > a, .home-pdf a, .guide-row-go, .tq-kai, .next-set-link, .exam-slowest .exam-slowest-link,
.exam-review-q .rq-link, .related-links a, .crumb a, .article-cta-inline a, .article-author a, .site-footer .footer-legal a,
.use-card .btn-ghost + a, .link-btn, .pro-free-link, .kaisetsu-cta a:not(.btn), .foot-link {
  text-decoration: underline; text-underline-offset: 3px;
}
.tq-main { text-decoration: none; }
@media (max-width: 759px) {
  .sr-go { min-height: 32px; padding: 4px 10px; font-size: 13px; }
  .sr-actions { gap: 4px; font-size: 13px; }
}
