/* シトロンただいま旅の途中 共通スタイル(A案: ひだまりイエロー) */
:root {
  --bg: #fff9e8;
  --card: #ffffff;
  --text: #4a3f28;
  --muted: #7a6636;
  --line: #f6e3ac;
  --accent: #f2c94c;
  --accent-deep: #c98a00;
  --accent-shadow: #d9ab26;
  --highlight: #fff3cd;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #211c0f; --card: #2b2415; --text: #f3ecd8; --muted: #c2ac78;
    --line: #4a3d1e; --accent: #f2c94c; --accent-deep: #ffd873;
    --accent-shadow: #b8892a; --highlight: #4a3d17;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.8;
}
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }

/* header */
.site-header { padding: 18px 0 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand { font-size: 17px; font-weight: 700; color: var(--text); text-decoration: none; }
.site-nav a { font-size: 14px; color: var(--muted); text-decoration: none; margin-left: 14px; }
.site-nav a:hover { color: var(--accent-deep); }

/* hero */
.hero { padding: 30px 0 10px; }
.hero .wrap { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.hero img { width: 132px; height: auto; flex: none; filter: drop-shadow(0 4px 6px rgba(180,140,30,.18)); }
.hero h1 { font-size: clamp(22px, 5vw, 30px); margin: 0 0 8px; line-height: 1.4; }
.hero p { margin: 0; font-size: 16px; color: var(--muted); max-width: 34em; }

/* sections */
main { padding-bottom: 56px; }
.section-title { font-size: 21px; margin: 36px 0 4px; }
.section-sub { font-size: 14.5px; color: var(--muted); margin: 0 0 16px; }

/* tool cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.tool-card {
  display: block;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  text-decoration: none;
  color: var(--text);
  position: relative;
}
a.tool-card:hover { border-color: var(--accent); }
.tool-card h3 { font-size: 17px; margin: 0 0 6px; }
.tool-card p { font-size: 14px; color: var(--muted); margin: 0; }
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 10px;
  margin-bottom: 8px;
  background: var(--accent);
  color: #4a3f28;
}
.tool-card.soon { opacity: .75; }
.tool-card.soon .badge { background: var(--highlight); color: var(--muted); }

/* content pages (about/privacy/disclaimer) */
.page h1 { font-size: 27px; margin: 28px 0 6px; }
.page .updated { font-size: 13px; color: var(--muted); margin: 0 0 20px; }
.page h2 { font-size: 20px; margin: 28px 0 8px; border-bottom: 2px solid var(--line); padding-bottom: 6px; }
.page p, .page li { font-size: 18px; }
.page ul { padding-left: 22px; }
.notice {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 15px;
}
.page p a { color: var(--accent-deep); }

/* 広告表記(ステマ規制対応) */
.page .disclosure-note { font-size: 13px; color: var(--muted); margin: 0 0 6px; }

/* アフィリエイト広告バナー(A8.net) */
.ad-box {
  width: fit-content;
  max-width: 100%;
  margin: 32px auto;
  padding: 10px 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  text-align: center;
  line-height: 0;
}
.ad-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .14em;
  color: var(--muted);
  margin: 0 0 8px;
}
.ad-box img { max-width: 100%; height: auto; vertical-align: top; }

/* 商品リンク型の広告(カード形式)。バナー用の .ad-box と違って中身に文章が入るため、
   行送り(line-height)と横幅の指定を通常に戻す */
.ad-box--card {
  width: auto;
  max-width: 100%;
  line-height: 1.7;
}

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 20px 0 40px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between; }
.site-footer a { font-size: 13px; color: var(--muted); text-decoration: none; margin-right: 14px; }
.site-footer a:hover { color: var(--accent-deep); }
.site-footer .copy { font-size: 13px; color: var(--muted); }

/* ===== 2026-08-15 読みやすさの修正 =====
   読んだ友達20人全員から「文字が小さい／背景に色がついて読みにくい／
   最初に何の記事か分からない」と指摘された件への対応。
   記事の本文だけを白いカードに載せる（ひだまりイエローの背景は残す）。
   参考: リベ大ブログ教室も背景は薄緑で、本文エリアだけ白 */
/* 【2026-08-24 変更】ヘッダーからフッターまでを1枚の紙にする。
   本文だけ白い箱だと、ヘッダーと本文が切れて見えるため。
   ひだまりイエローは左右に残す（リベ大・excel-kt も背景は色つき） */
body:has(main.page.article) .site-header {
  background: var(--card);
  max-width: 892px;
  margin: 20px auto 0;
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  padding: 18px 0 16px;
}
main.page.article {
  background: var(--card);
  max-width: 892px;
  margin: 0 auto;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
body:has(main.page.article) .site-footer {
  background: var(--card);
  max-width: 892px;
  margin: 0 auto 40px;
  border: 1px solid var(--line);
  border-radius: 0 0 16px 16px;
  padding: 20px 0 28px;
}
.page.article > .wrap {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 18px 36px 40px;
  margin: 0;
}
/* 白カードの中では、白い箱が消えてしまうので背景色を入れ替える */
.page.article .notice,
.page.article .ad-box { background: var(--bg); }

@media (max-width: 700px) {
  .page.article > .wrap { padding: 8px 16px 32px; }
  /* スマホでは紙を画面いっぱいに（角丸と左右の線を外す） */
  body:has(main.page.article) .site-header,
  body:has(main.page.article) .site-footer { max-width: none; margin: 0; border: none; border-radius: 0; }
  main.page.article { max-width: none; border-left: none; border-right: none; }
}


/* ===== 記事ページ共通（2026-08-15 に記事5本のインラインCSSを統合） =====
   これまで記事1本ごとに <style> を持っていたため、
   ・site.css を直しても記事に効かない
   ・5本のうち3本で .article h3 が抜けている
   ・.calc-table が2バージョンある
   という食い違いが起きていた。ここに1つにまとめた。
   【今後のルール】記事ページのスタイルはこのファイルだけに書く。記事側に <style> を書かない。
   ツールページ（/gensen/ /shohizei/ /memo-dentaku/）はUIが1つずつ違うので、
   これまで通りページ内の <style> で個別に持つ。 */
  .article .eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--accent-deep); margin: 24px 0 4px; }
  .article h1 { font-size: clamp(26px, 6vw, 34px); line-height: 1.5; margin: 0 0 8px; }
  .article .meta { font-size: 13.5px; color: var(--muted); margin: 0 0 24px; }
  .article h2 {
  font-size: 22px; margin: 40px 0 12px;
  padding-left: 12px; border-left: 5px solid var(--accent);
  }
  .article h3 { font-size: 20px; margin: 30px 0 8px; color: var(--accent-deep); }
  .article p, .article li { font-size: 18px; line-height: 1.9; }
  .article ul { padding-left: 22px; }
  .article a { color: var(--accent-deep); }
  .bubble-block { display: flex; gap: 12px; align-items: flex-start; margin: 22px 0; }
  .bubble-block img { flex: none; width: 68px; height: auto; }
  .bubble-block .bubble {
  position: relative; background: var(--bg); border: 2px solid var(--accent);
  border-radius: 16px; padding: 14px 18px; font-size: 16px; line-height: 1.8;
  }
  .bubble-block .bubble::before {
  content: ""; position: absolute; left: -11px; top: 20px;
  border: 7px solid transparent; border-right-color: var(--accent); border-left-width: 0;
  }
  .bubble-block .bubble::after {
  content: ""; position: absolute; left: -8px; top: 20px;
  border: 6px solid transparent; border-right-color: var(--bg); border-left-width: 0;
  }
  .conclusion {
  background: var(--highlight); border-radius: 14px; padding: 16px 20px; margin: 18px 0;
  font-size: 18px; font-weight: 700;
  }
  .caution {
  background: var(--bg); border: 2px solid var(--line); border-radius: 12px;
  padding: 16px 20px; font-size: 15px; color: var(--muted); margin: 18px 0;
  }
  .persona {
  background: var(--bg); border: 2px solid var(--line); border-radius: 16px;
  padding: 18px 20px; margin: 16px 0;
  }
  .persona h3 { font-size: 18px; margin: 0 0 8px; color: var(--accent-deep); }
  .persona p { margin: 0 0 12px; }
  .tool-link {
  display: inline-block; font-size: 15.5px; font-weight: 700;
  background: var(--accent); color: #4a3f28; border-radius: 999px;
  padding: 8px 18px; text-decoration: none; box-shadow: 0 3px 0 var(--accent-shadow);
  }
  .tool-link:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--accent-shadow); }
  .calc-table { width: 100%; border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; margin: 12px 0; }
  .calc-table td, .calc-table th { padding: 8px 10px; border-bottom: 1px dashed var(--line); }
  .calc-table th { text-align: left; font-size: 14.5px; color: var(--muted); font-weight: 700; }
  .calc-table td:last-child, .calc-table th:last-child { text-align: right; white-space: nowrap; }
  .calc-table td:last-child { font-weight: 700; }
  .calc-table tr.total td { border-bottom: none; border-top: 2px solid var(--accent); color: var(--accent-deep); }
  .related-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 14px; }
  .related-card {
  display: block; background: var(--bg); border: 2px solid var(--line);
  border-radius: 14px; padding: 14px 16px; text-decoration: none; color: var(--text);
  }
  .related-card:hover { border-color: var(--accent); }
  .related-card h4 { margin: 0 0 4px; font-size: 16px; }
  .related-card p { margin: 0; font-size: 13.5px; color: var(--muted); }

/* ===== 記事テンプレートの新しい部品（2026-08-23 追加） =====
   パンくず／アイキャッチ／リード文／目次／数式／図版。
   決定の経緯はメモリー cytron-journey-hp-rules を参照。 */

/* パンくず（ナビの下に1行。現在地と戻り道） */
.breadcrumb { font-size: 13.5px; color: var(--muted); margin: 4px 0 18px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-deep); text-decoration: underline; }

/* h1の下のサブタイトル */
.h1-sub { font-size: 17px; color: var(--muted); margin: -2px 0 10px; font-weight: 700; }

/* アイキャッチ（記事の顔・1280x720） */
.eyecatch { width: 100%; height: auto; border-radius: 14px; border: 2px solid var(--line); margin: 18px 0 6px; display: block; }

/* リード文（タイトルと最初の見出しの間・4要素） */
.lead { background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 18px 20px; margin: 18px 0; }
.lead p { margin: 0 0 10px; }
.lead p:last-child { margin-bottom: 0; }

/* 目次（リード文の直後・最初の見出しの前） */
.toc { background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 16px 20px 14px; margin: 26px 0; }
.toc-title { font-size: 16px; font-weight: 700; margin: 0 0 8px; color: var(--accent-deep); }
.toc ol { margin: 0; padding-left: 22px; }
.toc li { font-size: 15.5px; margin-bottom: 5px; line-height: 1.7; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--accent-deep); text-decoration: underline; }

/* 数式（コピーして使う想定なので等幅・選択しやすく） */
.formula {
  font-family: "SFMono-Regular", Consolas, "Courier New", monospace;
  background: var(--highlight);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1.8;
  overflow-x: auto;
  margin: 12px 0;
}
.formula-box { background: var(--card); border: 2px dashed var(--line); border-radius: 14px; padding: 14px 16px; margin: 14px 0; }
.formula-box .formula { background: transparent; border-left: none; padding: 0; margin: 0 0 8px; }
.formula-note { font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.9; }
.slot { background: var(--accent); color: #4a3f28; border-radius: 4px; padding: 1px 8px; font-weight: 700; font-family: inherit; }
.article code { background: var(--highlight); border-radius: 4px; padding: 2px 6px; font-size: 15px; font-family: "SFMono-Regular", Consolas, "Courier New", monospace; }

/* 図版（Excelの画面など） */
.article figure { margin: 18px 0; text-align: center; }
.article figure img { max-width: 100%; height: auto; border: 2px solid var(--line); border-radius: 10px; }
.article figcaption { font-size: 13.5px; color: var(--muted); margin-top: 8px; }

/* 小さめの注記 */
.note-s { font-size: 13.5px; color: var(--muted); margin-top: -4px; }


/* ===== カテゴリーナビ（2026-08-29 追加・短歌な日常で使用） =====
   キャラクター＋カテゴリー名の横並びカード。auto-fitなので2〜4個どれでも入る。 */
.cat-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 24px 0 28px; align-items: stretch; }
.cat-card {
  display: flex; align-items: center; gap: 10px;
  background: var(--highlight); border: 2px solid var(--line); border-radius: 16px;
  padding: 14px 16px; text-decoration: none; color: var(--text);
}
a.cat-card:hover { border-color: var(--accent); }
.cat-card img { width: 58px; height: auto; flex: none; }
.cat-card .cat-name { font-size: 17px; font-weight: 700; line-height: 1.3; }
.cat-card .cat-sub { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; font-weight: 400; }
.cat-card.soon { opacity: .8; }
/* 携帯でも3つ横に並べる（2026-09-05）。幅が足りないので絵を上・文字を下にする */
@media (max-width: 600px) {
  .cat-nav { grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 22px; }
  .cat-card { flex-direction: column; align-items: center; text-align: center; gap: 5px; padding: 10px 6px 11px; border-radius: 13px; }
  .cat-card img { width: 36px; }
  .cat-card .cat-name { font-size: 12.5px; line-height: 1.35; }
  .cat-card .cat-sub { font-size: 10.5px; margin-top: 2px; line-height: 1.35; }
}

/* ===== 記事の一覧（2026-09-05 追加・短歌のノウハウ一覧で使用）
   目次として一覧できるよう、小さい絵＋見出し＋一行を横並びの行にする。 */
.ec-list { display: grid; gap: 12px; margin: 22px 0 10px; }
.ec-row {
  display: grid; grid-template-columns: 180px 1fr; gap: 16px; align-items: center;
  background: var(--card); border: 2px solid var(--line); border-radius: 14px;
  padding: 12px 16px 12px 12px; text-decoration: none; color: var(--text);
}
a.ec-row:hover { border-color: var(--accent); }
.ec-row img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); }
.ec-row .ec-title { display: block; font-size: 17px; font-weight: 700; line-height: 1.5; }
.ec-row .ec-sub { display: block; font-size: 13.5px; color: var(--muted); margin-top: 5px; line-height: 1.8; }
.ec-row.soon { opacity: .7; }
.ec-row .ec-soon {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16 / 9; background: var(--highlight); border-radius: 8px;
  color: var(--muted); font-size: 14px; font-weight: 700;
}
@media (max-width: 520px) {
  .ec-row { grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 12px 10px 10px; }
  .ec-row .ec-title { font-size: 15.5px; }
  .ec-row .ec-sub { font-size: 12.5px; line-height: 1.7; }
}

/* シトロン坊やのひとこと（吹き出し・2026-09-05 追加） */
.bouya-say { display: flex; align-items: flex-start; gap: 12px; margin: 20px 0 24px; }
.bouya-say > img { width: 62px; height: auto; flex: none; }
.bouya-say .balloon {
  position: relative; background: var(--highlight); border: 2px solid var(--line);
  border-radius: 14px; padding: 12px 16px; font-size: 15.5px; line-height: 1.9;
}
.bouya-say .balloon::before {
  content: ""; position: absolute; left: -9px; top: 20px;
  border: 5px solid transparent; border-right-color: var(--line);
}
.bouya-say .balloon::after {
  content: ""; position: absolute; left: -6px; top: 20px;
  border: 5px solid transparent; border-right-color: var(--highlight);
}

/* テーマごとに分けた目次（2026-09-05 追加） */
.idx { background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 18px 20px 16px; margin: 22px 0; }
.idx-group + .idx-group { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.idx-name { font-size: 15px; font-weight: 700; color: var(--accent-deep); margin: 0 0 6px; }
.idx ul { margin: 0; padding-left: 20px; }
.idx li { font-size: 15.5px; line-height: 1.9; margin-bottom: 3px; }
.idx a { color: var(--text); text-decoration: none; }
.idx a:hover { color: var(--accent-deep); text-decoration: underline; }
.idx .soon-txt { color: var(--muted); }

/* ===== 英語ページ（2026-09-05 追加・/en/ 以下で使用） =====
   Zen Maru Gothic の欧文は丸くて長文に向かないので、英語ページだけ本文の書体を変える。 */
html[lang="en"] body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
}
html[lang="en"] .article p { line-height: 1.95; }
html[lang="en"] .formula { font-family: inherit; }

/* 言語の切り替えボタン */
.site-nav a.lang-switch {
  border: 1.5px solid var(--line); border-radius: 999px;
  padding: 3px 12px; margin-left: 4px;
}
.site-nav a.lang-switch:hover { border-color: var(--accent); }

/* ===== 短冊を並べる（2026-09-05 追加・/tanka/uta/ で使用） ===== */
.uta-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; margin: 24px 0 8px; }
.uta-card { margin: 0; }
.uta-card img { display: block; width: 100%; height: auto; border: 2px solid var(--line); border-radius: 10px; }
.uta-card figcaption { font-size: 14px; color: var(--text); margin-top: 10px; line-height: 1.9; }
.uta-card .uta-note { display: block; font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.uta-card .uta-note a { color: var(--muted); }
.uta-card .uta-note a:hover { color: var(--accent-deep); }
@media (max-width: 520px) { .uta-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } .uta-card figcaption { font-size: 12.5px; line-height: 1.8; } .uta-card .uta-note { font-size: 11.5px; } }

/* 短冊を押すと大きく見る（2026-09-05 追加） */
.uta-card img { cursor: zoom-in; transition: border-color .15s; }
.uta-card img:hover { border-color: var(--accent); }
.lb {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(40, 34, 20, .82);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; cursor: zoom-out;
}
.lb[hidden] { display: none; }
.lb img { max-width: 100%; max-height: 88vh; width: auto; height: auto; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.lb-close {
  position: absolute; top: 14px; right: 18px;
  background: none; border: none; color: #fff;
  font-size: 30px; line-height: 1; cursor: pointer; padding: 6px 10px;
}
.lb-cap { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; color: #fff; font-size: 14px; padding: 0 20px; }

/* 文章が入る表（2026-09-05 追加）
   .calc-table は金額表を想定していて、最後の列を「右そろえ・折り返さない」に
   していた。文章が入る表では right/nowrap が邪魔になるので、この印を付ける。 */
.calc-table.text td:last-child,
.calc-table.text th:last-child { text-align: left; white-space: normal; font-weight: 400; }
.calc-table.text td:last-child b { font-weight: 700; }

/* 保険：スマホでは表の最後の列を折り返す（2026-09-06 追加）
   .calc-table は金額表を想定して最終列を nowrap にしている。
   文章が入る表には .text を付けるが、付け忘れても画面からはみ出さないようにする。 */
@media (max-width: 600px) {
  .calc-table td:last-child,
  .calc-table th:last-child { white-space: normal; }
}

/* ===== 学習マップ「今日から始めるスプレッドシート」（2026-09-06 追加）===== */
/* 章のまとまり */
.sheet-chapter { margin: 26px 0; border: 2px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); }
.sheet-chapter > .ch-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--bg); border-bottom: 2px solid var(--line); }
.sheet-chapter .ch-emoji { font-size: 26px; line-height: 1; flex: none; }
.sheet-chapter .ch-title { font-size: 17px; font-weight: 700; margin: 0; }
.sheet-chapter .ch-note { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); margin-top: 2px; }
/* 項目リスト（番号つき） */
.sheet-steps { list-style: none; margin: 0; padding: 8px 0; counter-reset: none; }
.sheet-steps li { display: flex; align-items: baseline; gap: 10px; padding: 7px 18px; font-size: 14.5px; line-height: 1.5; border-bottom: 1px dashed var(--line); }
.sheet-steps li:last-child { border-bottom: none; }
.sheet-steps .st-no { flex: none; min-width: 2em; text-align: right; font-weight: 700; color: var(--accent-deep); font-variant-numeric: tabular-nums; }
.sheet-steps a { color: var(--text); text-decoration: none; }
.sheet-steps a:hover { text-decoration: underline; }
.sheet-steps li.soon .st-txt { color: var(--muted); }
.sheet-steps li.soon .st-txt::after { content: "準備中"; font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 20px; padding: 1px 7px; margin-left: 7px; white-space: nowrap; }
.sheet-steps li.done .st-txt::after { content: "✓"; color: var(--accent-deep); font-weight: 700; margin-left: 6px; }
/* セーブポイント */
.savepoint { display: flex; align-items: center; gap: 12px; margin: 8px auto; max-width: 30em; padding: 12px 18px; background: linear-gradient(180deg, var(--card), var(--bg)); border: 2px dashed var(--accent); border-radius: 40px; text-align: left; }
.savepoint .sp-emoji { font-size: 24px; flex: none; }
.savepoint .sp-txt { font-size: 14px; font-weight: 700; }
.savepoint .sp-txt small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 1px; }
/* 章と章のあいだの下矢印 */
.sheet-flow { text-align: center; color: var(--accent-deep); font-size: 20px; margin: 2px 0; }

/* 章へジャンプ（学習マップの上部。2026-09-06 追加）*/
.ch-jump { margin: 14px 0 20px; padding: 14px; background: var(--card); border: 2px solid var(--line); border-radius: 14px; }
.ch-jump-label { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.ch-jump-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ch-jump-grid a { font-size: 13px; text-decoration: none; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 6px; text-align: center; line-height: 1.35; }
.ch-jump-grid a:hover { border-color: var(--accent); }
@media (max-width: 380px) { .ch-jump-grid { grid-template-columns: repeat(2, 1fr); } }
.ch-jump-mascot { grid-column: span 2; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.ch-jump-mascot img { flex: none; }
@media (max-width: 380px) { .ch-jump-mascot { grid-column: span 2; } }
/* 章の見出しを、ジャンプで飛んだとき少し上に余白（固定ヘッダー避け）*/
.sheet-chapter { scroll-margin-top: 16px; }

/* 上に戻るボタン（学習マップなど長いページ用。2026-09-06 追加）*/
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 48px; height: 48px; border-radius: 50%; border: none; background: var(--accent-deep); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 3px 10px rgba(0,0,0,.22); display: none; }
.to-top.show { display: block; }
.to-top:hover { filter: brightness(1.05); }
@media (max-width: 600px) { .to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; font-size: 20px; } }

/* スプレッドシート記事の手順・画像枠・表スクロール（2026-09-06 追加）*/
/* 操作手順の番号リスト */
.calc-steps { margin: 12px 0; padding-left: 0; list-style: none; counter-reset: step; }
.calc-steps li { position: relative; padding: 8px 8px 8px 40px; margin-bottom: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; font-size: 14.5px; line-height: 1.55; }
.calc-steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 8px; top: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-deep); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
/* 画像の仮置き（写真は後で差し込む）*/
.figure-placeholder { margin: 14px 0; padding: 22px 16px; text-align: center; color: var(--muted); background: repeating-linear-gradient(45deg, var(--card), var(--card) 10px, var(--bg) 10px, var(--bg) 20px); border: 2px dashed var(--line); border-radius: 12px; }
/* 広い表は横スクロールで逃がす */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
