@charset "UTF-8";
/* ツール選び 共通スタイル
   外部ファイルは読み込まない（フォントはOS内蔵のみ。図形はCSSと埋め込みSVG） */
:root {
  --bg: #f7f4ee; --surface: #fffdf9; --sunken: #efebe3; --header-bg: #fffdf9;
  --text: #2b2925; --muted: #5f5a52;
  --line: #e2dbcf; --line-strong: #cbc2b2;
  --accent: #23584a; --accent-deep: #1d4a3e; --accent-ink: #ffffff; --accent-2nd: #c3b8a4;
  --tint: #e3ebe4; --marker: #dce8df;
  --table-head: #e3ebe4; --table-side: #f4f1ea; --row: #faf8f3;
  --edge-shadow: rgba(0,0,0,.16); --btn-shadow: #173b31;
  --max: 640px; --wide: 1040px;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "YuGothic", "Meiryo", "Noto Sans CJK JP", "Noto Sans JP", sans-serif;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif CJK JP", "Noto Serif JP", serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161917; --surface: #1e2220; --sunken: #262b28; --header-bg: #1b1f1d;
    --text: #e9e5dc; --muted: #aba79e;
    --line: #343b37; --line-strong: #4a544e;
    --accent: #8fc7b1; --accent-deep: #a9d6c4; --accent-ink: #0f1a16; --accent-2nd: #6b6458;
    --tint: #24332d; --marker: rgba(143,199,177,.22);
    --table-head: #24332d; --table-side: #222725; --row: #212624;
    --edge-shadow: rgba(0,0,0,.6); --btn-shadow: #4e7d6c;
  }
}
/* ===== 土台（A案・B案 共通） ===== */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.95; letter-spacing: 0.04em;
  min-height: 100vh; display: flex; flex-direction: column; overflow-wrap: anywhere;
}
main { flex: 1; width: 100%; max-width: calc(var(--max) + 40px); margin: 0 auto; padding: 40px 20px 80px; }
a { color: var(--accent); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* 広告表記バー */
.pr-bar { background: var(--sunken); color: var(--muted); font-size: 12.5px; line-height: 1.6; letter-spacing: 0.06em; text-align: center; padding: 6px 16px; }

/* ヘッダー・フッター（トップの導入と同じ幅） */
.site-header { background: var(--header-bg); border-bottom: 1px solid var(--line); }
.site-header .inner, .site-footer .inner { max-width: var(--wide); margin: 0 auto; }
.site-header .inner { padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; }
.logo { font-family: var(--serif); font-weight: 600; font-size: 22px; letter-spacing: 0.12em; color: var(--text); text-decoration: none; display: inline-flex; align-items: center; }
.logo::before { content: ""; width: 10px; height: 22px; margin-right: 10px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%); }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 20px; font-size: 14px; letter-spacing: 0.06em; }
.nav a { color: var(--muted); text-decoration: none; padding: 4px 0; }
.nav a:hover { color: var(--accent); }
.site-footer { border-top: 1px solid var(--line); background: var(--header-bg); }
.site-footer .inner { padding: 28px 20px 36px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.site-footer a { color: var(--muted); }

/* 見出し */
h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(25px, 5.6vw, 32px); line-height: 1.5; letter-spacing: 0.06em; margin: 0 0 14px; }
h2 { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.55; letter-spacing: 0.05em; margin: 72px 0 20px; }
h3 { font-size: 17px; line-height: 1.6; margin: 32px 0 8px; letter-spacing: 0.05em; }
p { margin: 0 0 1.5em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1.5em; }
li { margin: 0.4em 0; }
.lead { color: var(--muted); font-size: 16px; line-height: 2; }
.meta { color: var(--muted); font-size: 13px; letter-spacing: 0.05em; margin: 0 0 24px; }

/* 記事本文 */
article { counter-reset: sec; }
@media (min-width: 900px) { article { font-size: 18px; } }
article h3 { font-family: var(--serif); font-size: 19px; font-weight: 600; margin: 2.4em 0 0.8em; }
article strong { font-weight: 700; background: linear-gradient(transparent 62%, var(--marker) 62%); }
article > h2 { counter-increment: sec; }

/* 記事冒頭の広告表記 */
.pr-note { background: var(--sunken); border-radius: var(--r-sm); padding: 12px 16px; font-size: 13.5px; line-height: 1.8; color: var(--muted); margin: 0 0 32px; }
.pr-note::before { content: "PR"; display: inline-block; margin-right: 8px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 11px; line-height: 1.7; letter-spacing: 0.08em; vertical-align: 1px; }

/* アイキャッチ・挿絵・画像の図解 */
.eyecatch { margin: 0 0 36px; }
.eyecatch img, .illust img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-card); background: var(--sunken); }
.illust { margin: 40px 0; }
.zukai-img { margin: 32px 0; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); }
.zukai-img img { display: block; width: 100%; height: auto; border-radius: var(--r-sm); }
.zukai-img figcaption { margin-top: 10px; font-size: 13.5px; line-height: 1.7; color: var(--muted); text-align: center; }

/* 確認日の注意 */
.checked { font-size: 13.5px; line-height: 1.8; color: var(--muted); margin: -4px 0 28px; padding-left: 1.4em; position: relative; }
.checked::before { content: "\203B"; position: absolute; left: 0; }

/* この記事でわかること */
.summary-box { margin: 0 0 36px; padding: 20px 22px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); }
.summary-box .label { display: inline-block; margin: 0 0 10px; padding: 2px 14px; border-radius: 999px; background: var(--tint); color: var(--accent-deep); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; line-height: 1.9; }
.summary-box ul { list-style: none; padding: 0; margin: 0 0 8px; }
.summary-box li { position: relative; padding-left: 1.6em; margin: 0.5em 0; font-size: 16px; line-height: 1.8; }
.summary-box li::before { content: ""; position: absolute; left: 0.25em; top: 0.72em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* 図解A: 流れ（縦のタイムライン。スマホでもPCでも同じ） */
.flow { list-style: none; padding: 0; margin: 28px 0 36px; counter-reset: step; }
.flow li { counter-increment: step; position: relative; margin: 0; padding: 0 0 22px 56px; }
.flow li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: var(--accent-ink);
  font-family: var(--serif); font-weight: 700; font-size: 17px; line-height: 1; letter-spacing: 0;
}
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 18px; top: 44px; bottom: 6px; width: 2px; background: var(--line-strong); border-radius: 2px; }
.flow .flow-label { display: block; font-weight: 700; font-size: 17px; line-height: 1.6; padding-top: 5px; letter-spacing: 0.05em; }
.flow li p { margin: 4px 0 0; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 15.5px; line-height: 1.85; }

/* 図解B: チェックリスト */
.checklist { list-style: none; margin: 24px 0 36px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); }
.checklist li { position: relative; margin: 0; padding: 10px 0 10px 36px; font-size: 16px; line-height: 1.8; border-bottom: 1px dashed var(--line); }
.checklist li:last-child { border-bottom: none; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 13px; width: 20px; height: 20px; border: 2px solid var(--accent); border-radius: 6px; background: var(--bg); }
.checklist li::after { content: ""; position: absolute; left: 7px; top: 15px; width: 6px; height: 11px; border: solid var(--accent); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

/* 図解C: 分かれ道 */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0 36px; }
.versus > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px 18px 6px; box-shadow: var(--shadow); }
.versus > div:first-child { border-top: 4px solid var(--accent); }
.versus > div:last-child { border-top: 4px solid var(--accent-2nd); }
.versus .versus-label { margin: 0 0 6px; font-size: 13.5px; color: var(--muted); font-weight: 700; letter-spacing: 0.05em; }
.versus p:not(.versus-label) { font-size: 16px; line-height: 1.8; margin-bottom: 10px; }
@media (max-width: 600px) { .versus { grid-template-columns: 1fr; } }

/* 要点の抜き出し */
.keypoint { margin: 36px 0; font-family: var(--serif); font-weight: 600; font-size: 20px; line-height: 1.75; letter-spacing: 0.05em; }

/* 表 */
.table-wrap {
  overflow-x: auto; margin: 20px 0 16px; border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow);
  background:
    linear-gradient(to left, var(--surface) 30%, transparent) right / 24px 100% no-repeat local,
    radial-gradient(farthest-side at 100% 50%, var(--edge-shadow), transparent) right / 12px 100% no-repeat scroll,
    var(--surface);
  -webkit-overflow-scrolling: touch;
}
table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.7; }
th, td { padding: 13px 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
tr:last-child td, tr:last-child th { border-bottom: none; }
.table-wrap:not(.kv) table { width: max-content; min-width: 100%; }
.table-wrap:not(.kv) th, .table-wrap:not(.kv) td { width: 10.5em; }
.table-wrap:not(.kv) tr:first-child th { background: var(--table-head); color: var(--accent-deep); font-weight: 700; vertical-align: bottom; border-bottom: 1px solid var(--line-strong); }
.table-wrap:not(.kv) td { background: var(--surface); }
.table-wrap:not(.kv) tr:nth-child(even) td { background: var(--row); }
.table-wrap:not(.kv) tr > :first-child {
  position: sticky; left: 0; z-index: 1; width: 7.5em; min-width: 7.5em;
  background: var(--table-side); color: var(--text); font-weight: 700; font-size: 14px;
  box-shadow: inset -1px 0 0 var(--line-strong);
}
.table-wrap:not(.kv) tr:nth-child(even) > td:first-child { background: var(--table-side); }
.table-wrap:not(.kv) tr:first-child > :first-child { background: var(--table-head); }
.table-wrap.kv th { width: 7.5em; background: var(--table-side); font-weight: 600; font-size: 14px; color: var(--muted); }
@media (min-width: 900px) {
  .table-wrap:not(.kv) { width: min(940px, calc(100vw - 48px)); margin-left: 50%; transform: translateX(-50%); }
  .table-wrap:not(.kv) table { width: 100%; table-layout: fixed; }
  .table-wrap:not(.kv) th, .table-wrap:not(.kv) td { width: auto; padding: 15px 18px; }
  .table-wrap:not(.kv) tr > :first-child { width: 9em; min-width: 9em; }
}
@media (max-width: 899px) {
  .table-wrap:not(.kv)::before { content: "表は横にずらして見られます \2192"; display: block; position: sticky; left: 0; width: max-content; padding: 8px 14px 4px; font-size: 12px; color: var(--muted); letter-spacing: 0.05em; }
}
@media (max-width: 600px) {
  table { font-size: 14.5px; }
  th, td { padding: 11px 12px; }
  .table-wrap:not(.kv) th, .table-wrap:not(.kv) td { width: 9.5em; }
  .table-wrap:not(.kv) tr > :first-child { width: 6.5em; min-width: 6.5em; font-size: 13.5px; }
}

/* 編集部の見方（形は案ごと） */
.editor-view { margin: 64px 0 40px; }
.editor-view h2 { counter-increment: none; }

/* 向いている人・向いていない人 */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0 32px; }
.fit > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px 20px 10px; box-shadow: var(--shadow); }
.fit h3 { margin: 0 0 10px; font-family: var(--sans); font-size: 15.5px; display: flex; align-items: center; gap: 10px; }
.fit h3::before { content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--tint); }
.fit > div:first-child h3::before { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.fit > div:last-child h3::before { background: var(--sunken) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.5 12h9' fill='none' stroke='%237a746a' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.fit ul { margin: 0; padding-left: 1.2em; font-size: 15.5px; line-height: 1.8; }
.fit li { margin: 0.45em 0; }
@media (max-width: 600px) { .fit { grid-template-columns: 1fr; } }

/* 公式ボタン（丸いピル型） */
.cta { margin: 32px 0 12px; padding: 24px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); text-align: center; box-shadow: var(--shadow); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--accent); color: var(--accent-ink); text-decoration: none;
  padding: 15px 34px; border-radius: 999px; font-weight: 700; font-size: 16px; letter-spacing: 0.06em; line-height: 1.5;
  box-shadow: 0 2px 0 var(--btn-shadow); transition: filter .15s, transform .15s;
}
.btn:hover { filter: brightness(1.1); text-decoration: none; transform: translateY(-1px); }
.btn[target="_blank"]::after { content: "\2197"; font-weight: 400; }
.cta .btn { margin: 0; }
@media (max-width: 600px) { .cta { padding: 18px 14px; } .cta .btn { display: flex; width: 100%; padding: 15px 16px; font-size: 15.5px; letter-spacing: 0.03em; } }

/* トップの導入 */
main:has(> .hero) { max-width: calc(var(--wide) + 40px); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px 40px; align-items: center; padding: 8px 0 8px; margin-bottom: 8px; }
.hero h1 { font-size: clamp(30px, 7vw, 42px); letter-spacing: 0.1em; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-art { margin: 0; }
.hero-art img { display: block; width: 100%; height: auto; -webkit-mask-image: radial-gradient(ellipse closest-side, #000 88%, transparent 100%); mask-image: radial-gradient(ellipse closest-side, #000 88%, transparent 100%); }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; gap: 8px; } .hero-art { margin: 0 -8px; } }
main:has(> .hero) > h2 { margin-top: 56px; }

/* 記事一覧（角丸のカード） */
.article-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.article-list li { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.article-list li:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.article-list a { display: flex; flex-direction: column; height: 100%; padding: 20px 20px 22px; color: var(--text); text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 17.5px; line-height: 1.65; letter-spacing: 0.04em; }
.article-list a:has(.thumb) { padding-top: 0; }
.article-list a:hover { color: var(--accent); }
.article-list .thumb { display: block; width: calc(100% + 40px); max-width: none; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin: 0 -20px 16px; background: var(--sunken); }
.article-list .date { display: inline-block; align-self: flex-start; margin: 0 0 8px; padding: 0 10px; border-radius: 999px; background: var(--tint); color: var(--accent-deep); font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: 0.06em; line-height: 1.9; }
/* 日付がリンクの外にある古い形式にも対応 */
.article-list li:has(> .date) { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.article-list li:has(> .date) > a { padding-top: 0; }
.article-list li:has(> .date) > .date { margin: 20px 20px 8px; }
.empty { color: var(--muted); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--r-card); padding: 20px; font-size: 15px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .article-list li:hover, .btn:hover { transform: none; } }

/* ===== B案「ノートと文房具」: 角丸カードとラベルで、かわいく ===== */
:root { --r-card: 20px; --r-sm: 12px; --shadow: 0 1px 2px rgba(60,50,30,.05), 0 6px 18px rgba(60,50,30,.06); --shadow-hover: 0 2px 4px rgba(60,50,30,.06), 0 12px 28px rgba(60,50,30,.10); }
@media (prefers-color-scheme: dark) { :root { --shadow: 0 1px 2px rgba(0,0,0,.3); --shadow-hover: 0 6px 18px rgba(0,0,0,.4); } }

/* 章番号: セージ色の丸いバッジ */
article > h2 { display: flex; align-items: flex-start; gap: 12px; }
article > h2::before {
  content: counter(sec); flex: none; width: 34px; height: 34px; margin-top: 1px; border-radius: 50%;
  display: grid; place-items: center; background: var(--tint); color: var(--accent-deep);
  font-family: var(--sans); font-weight: 700; font-size: 15px; letter-spacing: 0;
}
main:has(> .hero) > h2 { display: flex; align-items: center; gap: 10px; }
main:has(> .hero) > h2::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

/* 編集部の見方: 罫線ノートのカード。左上にマスキングテープ風のラベル */
.editor-view {
  position: relative; border-radius: var(--r-card); padding: 40px 24px 16px; box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: radial-gradient(circle, var(--rule) 1.1px, transparent 1.3px) 0 0 / 18px 18px, var(--surface);
}
:root { --rule: #e4ddcf; }
@media (prefers-color-scheme: dark) { :root { --rule: #2e3431; } }
.editor-view h2 {
  position: absolute; top: -13px; left: 22px; margin: 0; transform: rotate(-2deg);
  padding: 3px 18px; background: var(--tint); color: var(--accent-deep); border-radius: 4px;
  font-family: var(--sans); font-weight: 700; font-size: 14px; letter-spacing: 0.12em; line-height: 1.9;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.editor-view h3 { margin-top: 1.6em; }
.editor-view p:last-child { margin-bottom: 0.8em; }

/* 要点: セージのカードと大きな引用符 */
.keypoint { position: relative; padding: 22px 22px 22px 58px; background: var(--tint); border-radius: var(--r-card); color: var(--accent-deep); font-size: 19px; }
.keypoint::before { content: "\201C"; position: absolute; left: 18px; top: 6px; font-size: 54px; line-height: 1; color: var(--accent); opacity: .55; }

/* 流れ: 番号の丸をセージの輪で囲む */
.flow li::before { box-shadow: 0 0 0 5px var(--tint); }

/* トップの見出し: 一語に手書き風の波線 */
.hero h1 em {
  padding-bottom: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6 C 20 1, 35 9, 55 5 S 95 2, 118 6' fill='none' stroke='%2323584a' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") left bottom / 100% 10px no-repeat;
}
@media (prefers-color-scheme: dark) {
  .hero h1 em { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6 C 20 1, 35 9, 55 5 S 95 2, 118 6' fill='none' stroke='%238fc7b1' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
}
.hero-art img { border-radius: var(--r-card); }

/* ===== 2026-10-06 追加: 公式リンクと読みやすさの部品（見本） =====
   必ず守ること 2b・2c・2d。動きは入れない。固定表示のボタンは作らない。 */

/* 公開日・更新日・情報の確認日（3つとも読める。日付の途中で折り返さない） */
.meta { font-size: 13.5px; line-height: 1.9; color: var(--muted); }
.meta .published, .meta .updated, .meta .checked-date { white-space: nowrap; }
.meta time { font-variant-numeric: tabular-nums; }
.meta .checked-date { color: var(--text); }

/* パンくず: 小さく淡い1行。長いタイトルは「…」で切る */
.breadcrumb { display: flex; align-items: baseline; gap: 0 .5em; margin: 0 0 18px; font-size: 12.5px; line-height: 1.7; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
.breadcrumb a { flex: none; color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-strong); }
.breadcrumb a:hover { color: var(--accent); text-decoration-color: currentColor; }
.breadcrumb span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* 目次: 閉じた状態は1行の控えめな枠。開閉は details だけ（JavaScriptなし） */
.toc { margin: 0 0 40px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); }
.toc summary {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 18px; cursor: pointer;
  list-style: none; font-size: 15px; font-weight: 700; letter-spacing: .06em; color: var(--text); border-radius: var(--r-sm);
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::before { content: ""; flex: none; width: 14px; height: 2px; background: var(--accent); border-radius: 2px; box-shadow: 0 -5px 0 var(--accent), 0 5px 0 var(--accent); }
.toc summary::after { content: "開く"; margin-left: auto; font-size: 12.5px; font-weight: 400; color: var(--muted); letter-spacing: .06em; padding-right: 16px; position: relative; }
.toc summary::after { background: no-repeat right center / 10px 10px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 3.5 5 7 8.5 3.5' fill='none' stroke='%235f5a52' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.toc[open] summary::after { content: "閉じる"; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 6.5 5 3 8.5 6.5' fill='none' stroke='%235f5a52' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.toc summary:hover { color: var(--accent); }
.toc[open] summary { border-bottom: 1px solid var(--line); border-radius: var(--r-sm) var(--r-sm) 0 0; }
.toc ol { list-style: none; margin: 0; padding: 8px 18px 12px; }
.toc li { margin: 0; border-bottom: 1px dashed var(--line); }
.toc li:last-child { border-bottom: none; }
.toc li a { display: block; padding: 9px 0 9px 1.1em; position: relative; color: var(--text); text-decoration: none; font-size: 15px; line-height: 1.7; }
.toc li a::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2nd); }
.toc li a:hover { color: var(--accent); text-decoration: underline; }

/* 目次から飛んだとき、見出しが画面の端に貼りつかないように（smooth は入れない） */
h2[id] { scroll-margin-top: 28px; }
.editor-view h2[id] { scroll-margin-top: 44px; }
.toc { scroll-margin-top: 20px; }

/* 公式リンクA: 比較表の「申し込み」行は、下線だけの控えめな文字リンク */
.table-link { color: var(--accent); font-size: 14.5px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; white-space: nowrap; }
.table-link:hover { text-decoration-thickness: 2px; }

/* 公式リンクB: 枠線中心のボタン（押せるとわかるが、圧は弱く） */
.btn { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); box-shadow: none; padding: 13px 30px; transition: background-color .15s; }
.btn:hover { filter: none; transform: none; background: var(--tint); }
@media (max-width: 600px) { .cta .btn { padding: 13px 16px; } }

/* 公式リンクC: 記事末尾の申し込み先の一覧。全校を同じ見た目の静かな一覧に */
.cta-list { margin: 48px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line-strong); }
.cta-list .cta-disclosure { margin: 0 0 6px; font-size: 13px; line-height: 1.8; color: var(--muted); }
.cta-list .cta-disclosure::before { content: "PR"; display: inline-block; margin-right: 8px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 11px; line-height: 1.7; letter-spacing: .08em; vertical-align: 1px; }
.cta-list ul { list-style: none; margin: 0; padding: 0; }
.cta-list li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name link" "note link";
  align-items: center; gap: 2px 20px; margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line);
}
.cta-list .cta-name { grid-area: name; font-weight: 700; font-size: 16px; line-height: 1.6; }
.cta-list .cta-note { grid-area: note; font-size: 13.5px; line-height: 1.7; color: var(--muted); }
.cta-list .cta-link { grid-area: link; justify-self: end; max-width: 18em; padding: 8px 0; font-size: 14.5px; line-height: 1.6; text-align: right; text-decoration: underline; text-decoration-thickness: 1px; }
.cta-list .cta-link[target="_blank"]::after { content: " \2197"; text-decoration: none; display: inline; }
.cta-list .cta-link:hover { text-decoration-thickness: 2px; }
@media (max-width: 600px) {
  .cta-list li { grid-template-columns: 1fr; grid-template-areas: "name" "note" "link"; }
  .cta-list .cta-link { justify-self: start; text-align: left; max-width: none; padding: 10px 0 2px; }
}

/* 次に読む: 画像なしの静かな文字リンク。公式リンクと見間違えないよう、サイト内の矢印（→）と淡い台紙 */
.next-read { margin: 56px 0 0; padding: 20px 22px 14px; background: var(--sunken); border-radius: var(--r-card); }
.next-read .next-read-label { margin: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--muted); }
.next-read ul { list-style: none; margin: 0; padding: 0; }
.next-read li { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.next-read li > a { font-family: var(--serif); font-weight: 600; font-size: 16.5px; line-height: 1.65; color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); }
.next-read li > a:hover { color: var(--accent); text-decoration-color: currentColor; }
.next-read .next-read-note { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.7; color: var(--muted); }
.next-read .next-read-all { margin: 12px 0 0; font-size: 14px; text-align: right; }
.next-read .next-read-all a { display: inline-block; padding: 6px 0; color: var(--text); }
.next-read .next-read-all a::after { content: " \2192"; }

/* 目次へ戻る: 文字リンク（固定表示にしない） */
.to-top-wrap { margin: 32px 0 0; text-align: center; font-size: 14px; }
.to-top { display: inline-block; padding: 10px 6px; color: var(--muted); }
.to-top:hover { color: var(--accent); }

/* ダーク表示: 目次の矢印の色 */
@media (prefers-color-scheme: dark) {
  .toc summary::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 3.5 5 7 8.5 3.5' fill='none' stroke='%23aba79e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
  .toc[open] summary::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 6.5 5 3 8.5 6.5' fill='none' stroke='%23aba79e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
}

/* コントラストを上げる設定のとき: 線と補足文字を濃く */
@media (prefers-contrast: more) {
  :root { --line: #9a917f; --line-strong: #6f6757; --muted: #45413a; }
  .breadcrumb a, .next-read li > a { text-decoration-color: currentColor; }
}
@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root { --line: #6d7771; --line-strong: #95a19a; --muted: #cfcbc2; }
}
