/* 色んな終活サポート v3
   コンセプト：実家の帳面。生成りの紙に墨の罫線、見出しは明朝、本文はUDゴシック。
   角丸・影・丸アイコンは使わず、罫線と余白と文字組みで区切る。
   読みやすさを優先し、端末の明暗設定に関わらず同じ配色（ライト）で表示する。 */
:root {
  color-scheme: light;
  --paper: #f6f2e8;
  --sheet: #fffdf7;
  --tint: #efe9da;
  --ink: #22201b;
  --sub: #4a463d;
  --mute: #6d675a;
  --rule: #d8cfbb;
  --rule-strong: #a99d83;
  --green: #2c5a43;
  --green-dark: #1e4130;
  --green-soft: #e4ebe1;
  --gold: #c99a2e;
  --gold-soft: #f4e9c9;
  --shu: #b0412a;
  --link: #1d4f86;
  --c-jikka: #2c5a43; --c-jikka-soft: #e4ebe1;
  --c-mochi: #8a4a22; --c-mochi-soft: #f3e6d6;
  --c-ohaka: #4a4e50; --c-ohaka-soft: #e7e4dc;
  --c-toku: #765811; --c-toku-soft: #f4ead0;
  --draft: #8a4b12;
  --foot: #22201b;

  --f-head: "BIZ UDPMincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --f-body: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --f-num: var(--f-head);

  --w: 74rem;
  --w-text: 44rem;
  --gutter: clamp(1rem, 4vw, 2.25rem);
  --r: 0;
  --r-s: 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1.5rem; }
body {
  margin: 0; min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.125rem;
  line-height: 1.9;
  letter-spacing: .02em;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 640px) { body { font-size: 1.0625rem; } }
img, svg { max-width: 100%; }
a { color: var(--link); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 50; padding: .6rem 1rem; background: var(--ink); color: #fff; }
.wrap { width: 100%; max-width: var(--w); margin-inline: auto; padding-inline: var(--gutter); }
.ic { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.12em; }
h1, h2, h3 { margin: 0; font-family: var(--f-head); font-weight: 700; line-height: 1.5; letter-spacing: .03em; word-break: keep-all; overflow-wrap: anywhere; }
h1, h2, h3, th, caption, .entry .t, .topic-title, .topic-desc, .plot-sub, .lk, .box-title, .toc-list a { word-break: keep-all; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 1.2rem + .9vw, 1.85rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; }
.num { font-feature-settings: "tnum"; }

/* ---------- ボタン ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 3.25rem; padding: .6rem 1.5rem; border: 1.5px solid var(--ink); background: var(--sheet); color: var(--ink); font-weight: 700; font-size: 1rem; text-decoration: none; letter-spacing: .06em; transition: background .15s, color .15s; }
.btn:hover { background: var(--ink); color: var(--sheet); }
.btn .ic { width: 1.05rem; height: 1.05rem; transition: transform .15s; }
.btn:hover .ic { transform: translateX(3px); }
.btn-primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn-line { background: transparent; }

/* 広告の印（朱の判子） */
.ad-tag, .pr-label .tag, .pr-slot .tag { display: inline-grid; place-items: center; flex: none; min-width: 2.6rem; height: 1.55rem; padding: 0 .35rem; border: 1.5px solid var(--shu); color: var(--shu); background: transparent; font-family: var(--f-head); font-size: .78rem; font-weight: 700; letter-spacing: .12em; line-height: 1; white-space: nowrap; }

/* カテゴリの見出し札（インデックスタブ） */
.chip { --c: var(--c-jikka); display: inline-flex; align-items: center; gap: .45rem; padding: .1rem .7rem .1rem .55rem; border-left: 4px solid var(--c); background: var(--sheet); color: var(--ink); font-size: .88rem; font-weight: 700; line-height: 1.7; text-decoration: none; }
.chip.mochi { --c: var(--c-mochi); }
.chip.ohaka { --c: var(--c-ohaka); }
.chip.toku { --c: var(--c-toku); }
a.chip:hover { background: var(--tint); color: var(--ink); }

/* ---------- header ---------- */
.site-header { position: relative; z-index: 20; background: var(--paper); border-bottom: 3px double var(--ink); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; min-height: 5rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 2.25rem; height: 2.25rem; flex: none; }
.brand-text { display: grid; line-height: 1.3; }
.brand-name { font-family: var(--f-head); font-weight: 700; font-size: 1.32rem; letter-spacing: .08em; }
.brand-sub { font-size: .76rem; color: var(--mute); letter-spacing: .06em; }
.gnav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.gnav li + li { border-left: 1px solid var(--rule); }
.gnav a { display: block; padding: .3rem 1rem; color: var(--ink); font-weight: 700; font-size: .95rem; text-decoration: none; letter-spacing: .08em; }
.gnav a:hover { color: var(--green); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .45em; }
.gnav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 3px; text-underline-offset: .45em; }
@media (max-width: 900px) {
  .site-header .wrap { flex-direction: column; align-items: stretch; gap: .25rem; padding-top: .75rem; min-height: 0; }
  .brand-name { font-size: 1.15rem; }
  .brand-mark { width: 1.9rem; height: 1.9rem; }
  .gnav { margin-inline: calc(var(--gutter) * -1); border-top: 1px solid var(--rule); }
  .gnav ul { overflow-x: auto; scrollbar-width: none; padding-inline: calc(var(--gutter) - .6rem); }
  .gnav ul::-webkit-scrollbar { display: none; }
  .gnav li { flex: none; }
  .gnav li + li { border-left: 0; }
  .gnav a { padding: .7rem .6rem; font-size: .92rem; white-space: nowrap; }
}

/* ---------- 表紙（トップ） ---------- */
.cover { position: relative; border-bottom: 1px solid var(--ink); overflow: hidden; }
.cover-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 5vw, 4.5rem); align-items: start; padding-block: clamp(2rem, 5vw, 3.75rem) clamp(9rem, 16vw, 13rem); }
.cover-text { display: grid; gap: 1.25rem; align-content: start; }
.cover-kicker { display: flex; align-items: center; gap: .8rem; font-size: .88rem; font-weight: 700; letter-spacing: .14em; color: var(--sub); }
.cover-kicker::before { content: ""; width: 2.5rem; height: 1px; background: var(--ink); }
.cover h1 { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.35rem); line-height: 1.42; letter-spacing: .04em; }
.cover h1 em { font-style: normal; background: linear-gradient(transparent 64%, var(--gold-soft) 64%, var(--gold-soft) 94%, transparent 94%); }
.cover-tag { font-size: 1.1rem; line-height: 1.9; max-width: 30em; }
.cover-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.cover-note { max-width: 32em; padding-top: .9rem; border-top: 1px solid var(--rule-strong); font-size: .92rem; color: var(--sub); line-height: 1.8; }
.cover-scene { position: absolute; inset: auto 0 0 0; height: clamp(11rem, 22vw, 17rem); background: url(fv-bg.webp) no-repeat center 88% / cover; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 45%); mask-image: linear-gradient(to bottom, transparent 0, #000 45%); pointer-events: none; }

/* 見取り図：方眼紙の上に引いた平面図 */
.plan { position: relative; margin: 0; padding: 1rem 1rem 1.15rem; background-color: var(--sheet); background-image: linear-gradient(rgba(44, 90, 67, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(44, 90, 67, .07) 1px, transparent 1px); background-size: 16px 16px; border: 1.5px solid var(--ink); display: grid; gap: .85rem; }
.plan::after { content: ""; position: absolute; inset: 5px; border: 1px solid var(--rule-strong); pointer-events: none; }
.plan-title { position: relative; z-index: 1; display: flex; align-items: center; gap: .6rem; font-family: var(--f-head); font-weight: 700; font-size: 1.05rem; letter-spacing: .08em; }
.plan-title .fig { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; background: var(--ink); color: var(--sheet); font-size: .85rem; }
.plots { position: relative; z-index: 1; display: grid; gap: 0; grid-template-columns: 1.2fr 1fr 1fr; grid-template-areas: "house barn field" "road road road" "paddy paddy grave"; border: 2px solid var(--ink); }
.plot { --edge: var(--ink); position: relative; display: grid; align-content: start; gap: .15rem; min-height: 8.5rem; padding: .8rem .9rem 2.6rem; color: var(--ink); text-decoration: none; background: rgba(255, 253, 247, .86); transition: background .15s; }
.plot:hover, .plot:focus-visible { background: var(--gold-soft); }
.plot-name { font-family: var(--f-head); font-weight: 700; font-size: 1.55rem; line-height: 1.3; letter-spacing: .1em; }
.plot-sub { font-size: .9rem; font-weight: 700; line-height: 1.5; color: var(--sub); }
.plot .ic { position: absolute; right: .7rem; bottom: .6rem; width: 2rem; height: 2rem; stroke-width: 1.4; color: var(--green); }
.plot::after { content: "→"; position: absolute; left: .9rem; bottom: .55rem; font-weight: 700; color: var(--green); transition: transform .15s; }
.plot:hover::after { transform: translateX(4px); }
.plot.house { grid-area: house; border-right: 2px solid var(--ink); }
.plot.barn { grid-area: barn; border-right: 2px solid var(--ink); background: rgba(243, 230, 214, .8); }
.plot.barn .ic { color: var(--c-mochi); }
.plot.field { grid-area: field; background: rgba(228, 235, 225, .8) repeating-linear-gradient(90deg, transparent 0 14px, rgba(44, 90, 67, .12) 14px 15px); }
.plot.paddy { grid-area: paddy; border-right: 2px solid var(--ink); background: rgba(240, 238, 214, .8) repeating-linear-gradient(0deg, transparent 0 14px, rgba(118, 88, 17, .12) 14px 15px); }
.plot.paddy .ic { color: var(--c-toku); }
.plot.grave { grid-area: grave; background: rgba(231, 228, 220, .85); }
.plot.grave .ic { color: var(--c-ohaka); }
.plot:hover { background-color: var(--gold-soft); }
.road { grid-area: road; display: flex; align-items: center; min-height: 2rem; padding-left: .9rem; border-block: 2px solid var(--ink); background: #ebe4d3 linear-gradient(90deg, var(--rule-strong) 55%, transparent 55%) left center / 16px 1.5px repeat-x; font-family: var(--f-head); font-size: .8rem; letter-spacing: .4em; color: var(--sub); }
.road span { padding: 0 .5rem; background: #ebe4d3; }
@media (max-width: 900px) {
  .cover-grid { grid-template-columns: minmax(0, 1fr); padding-bottom: clamp(8rem, 30vw, 11rem); }
}
@media (max-width: 560px) {
  .plots { grid-template-columns: 1fr 1fr; grid-template-areas: "house barn" "road road" "paddy paddy" "field grave"; }
  .plot { min-height: 7.25rem; }
  .plot.barn { border-right: 0; }
  .plot.field { border-right: 2px solid var(--ink); border-top: 2px solid var(--ink); }
  .plot.grave { border-top: 2px solid var(--ink); }
  .plot.paddy { border-right: 0; }
  .plot-name { font-size: 1.3rem; }
  .cover-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .plot::after, .btn .ic { transition: none; } }

/* ---------- 章（トップの各セクション） ---------- */
.chapter { padding-block: clamp(3rem, 7vw, 5.5rem); border-bottom: 1px solid var(--rule-strong); }
.chapter-grid { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 2rem clamp(1.5rem, 4vw, 3.5rem); }
.chapter-head { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding-top: .3rem; border-right: 1px solid var(--rule-strong); }
.chapter-no { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border: 1.5px solid var(--ink); font-family: var(--f-head); font-weight: 700; font-size: 1.35rem; line-height: 1; letter-spacing: .02em; }
.chapter-label { writing-mode: vertical-rl; font-family: var(--f-head); font-weight: 700; font-size: 1.05rem; letter-spacing: .3em; color: var(--sub); }
.chapter-body { min-width: 0; display: grid; gap: 2rem; align-content: start; }
.chapter-intro { display: grid; gap: .75rem; max-width: 46rem; }
.chapter-intro h2 { font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.1rem); }
.chapter-intro p { color: var(--sub); }
@media (max-width: 760px) {
  .chapter-grid { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .chapter-head { flex-direction: row; justify-content: flex-start; gap: .75rem; padding: 0 0 .9rem; border-right: 0; border-bottom: 1px solid var(--rule-strong); }
  .chapter-no { width: 2.5rem; height: 2.5rem; font-size: 1.25rem; }
  .chapter-label { writing-mode: horizontal-tb; letter-spacing: .18em; }
}

/* 見開き（元気なうち／亡くなった後） */
.spread { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--sheet); border: 1px solid var(--ink); }
.leaf { display: grid; gap: .75rem; align-content: start; padding: clamp(1.25rem, 3vw, 2rem); }
.leaf + .leaf { border-left: 1px solid var(--ink); }
.page-tag { justify-self: start; padding: .05rem .7rem; border: 1px solid var(--ink); font-size: .85rem; font-weight: 700; letter-spacing: .08em; }
.leaf.after .page-tag { background: var(--ink); color: var(--sheet); }
.leaf h3 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.7rem); }
.leaf > p { color: var(--sub); font-size: 1rem; }
@media (max-width: 760px) { .spread { grid-template-columns: minmax(0, 1fr); } .leaf + .leaf { border-left: 0; border-top: 1px solid var(--ink); } }

/* 目次ふうの一覧（点線のリーダー） */
.index { list-style: none; margin: .5rem 0 0; padding: 0; counter-reset: ix; border-top: 1px solid var(--ink); }
.index li { counter-increment: ix; border-bottom: 1px solid var(--rule); }
.index a { display: flex; align-items: baseline; gap: .6rem; padding: .85rem 0; color: var(--ink); text-decoration: none; font-weight: 700; line-height: 1.6; }
.index a::before { content: counter(ix); flex: none; width: 1.2rem; font-size: 1.1rem; font-family: var(--f-head); color: var(--green); }
.index a::after { content: ""; order: 1; flex: 1 1 1.5rem; min-width: 1.5rem; border-bottom: 2px dotted var(--rule-strong); transform: translateY(-.3em); }
.index .ic { order: 2; color: var(--green); transition: transform .15s; }
.index a:hover { color: var(--green-dark); }
.index a:hover .lk { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; }
.index a:hover .ic { transform: translateX(3px); }

/* 困りごとの索引 */
.topics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--rule); }
.topics li { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.topic { --c: var(--c-jikka); position: relative; display: grid; gap: .5rem; align-content: start; height: 100%; min-height: 10.5rem; padding: 1.3rem 1.3rem 2.75rem; color: var(--ink); text-decoration: none; background: var(--sheet); transition: background .15s; }
.topic::before { content: ""; position: absolute; left: 0; top: -1px; width: 3.5rem; height: 4px; background: var(--c); }
.topic.mochi { --c: var(--c-mochi); }
.topic.ohaka { --c: var(--c-ohaka); }
.topic.toku { --c: var(--c-toku); }
.topic:hover { background: var(--paper); color: var(--ink); }
.topic-title { font-family: var(--f-head); font-weight: 700; font-size: 1.4rem; line-height: 1.4; letter-spacing: .06em; }
.topic-desc { font-size: .98rem; line-height: 1.75; color: var(--sub); }
.topic .ic { position: absolute; right: 1.1rem; top: 1.25rem; width: 1.9rem; height: 1.9rem; stroke-width: 1.3; color: var(--c); }
.topic::after { content: "読む →"; position: absolute; left: 1.3rem; bottom: .9rem; font-size: .88rem; font-weight: 700; color: var(--green); letter-spacing: .08em; }
.topic:hover .topic-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; }
@media (max-width: 960px) { .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .topics { grid-template-columns: minmax(0, 1fr); }
  .topic { min-height: 0; padding: 1.1rem 3.5rem 1.1rem 1.1rem; }
  .topic::after { content: "→"; left: auto; right: 1.1rem; bottom: 1rem; }
  .topic .ic { top: 1.1rem; }
}

/* 特集 */
.feature-sec { background: var(--sheet); }
.feature { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 5vw, 3.5rem); align-items: start; }
.feature-img { display: block; padding: .6rem; background: var(--paper); border: 1px solid var(--ink); }
.feature-img img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.feature-text { display: grid; gap: 1.1rem; align-content: start; }
.feature-text h2 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.2rem); }
.feature-text > p { color: var(--sub); }
.feature-steps { list-style: none; margin: 0; padding: 0; counter-reset: fs; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.feature-steps li { counter-increment: fs; border-bottom: 1px solid var(--rule); }
.feature-steps li:nth-child(odd) { border-right: 1px solid var(--rule); }
.feature-steps a { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .5rem; align-items: baseline; height: 100%; padding: .75rem .75rem .75rem .25rem; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .98rem; line-height: 1.6; }
.feature-steps li:nth-child(even) a { padding-left: .9rem; }
.feature-steps a::before { content: counter(fs); font-family: var(--f-head); font-size: 1.35rem; color: var(--green); line-height: 1; }
.feature-steps a:hover .lk { text-decoration: underline; text-underline-offset: .25em; }
.feature-text .btn { justify-self: start; }
@media (max-width: 860px) { .feature { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .feature-steps { grid-template-columns: minmax(0, 1fr); } .feature-steps li:nth-child(odd) { border-right: 0; } .feature-steps li:nth-child(even) a { padding-left: .25rem; } }

/* ---------- 記事の一覧（目録） ---------- */
.entries { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1.5rem, 4vw, 3rem); border-top: 1px solid var(--ink); }
.entry { border-bottom: 1px solid var(--rule); }
.entry a { --c: var(--c-jikka); display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1.1rem; align-items: start; height: 100%; padding: 1.25rem 0; color: var(--ink); text-decoration: none; }
.entry.mochi a { --c: var(--c-mochi); }
.entry.ohaka a { --c: var(--c-ohaka); }
.entry.toku a { --c: var(--c-toku); }
.entry .thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tint); outline: 1px solid var(--rule); outline-offset: -1px; }
.entry .thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.entry a:hover .thumb img { transform: scale(1.04); }
.entry .thumb.noimg { display: grid; place-items: center; color: var(--c); }
.entry .thumb.noimg .ic { width: 2.2rem; height: 2.2rem; stroke-width: 1.3; }
.entry-body { display: grid; gap: .35rem; min-width: 0; }
.entry .m { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .9rem; font-size: .82rem; color: var(--mute); line-height: 1.6; }
.entry .cat { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--c); }
.entry .cat::before { content: ""; width: .55rem; height: .55rem; background: var(--c); }
.entry .t { font-family: var(--f-head); font-weight: 700; font-size: 1.12rem; line-height: 1.6; }
.entry a:hover .t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; color: var(--green-dark); }
.entry .d { font-size: .92rem; line-height: 1.75; color: var(--sub); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.entries.has-lead .entry:first-child { grid-column: 1 / -1; }
.entries.has-lead .entry:first-child a { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.25rem clamp(1.5rem, 4vw, 3rem); padding-block: 1.75rem; }
.entries.has-lead .entry:first-child .thumb { aspect-ratio: 16 / 10; }
.entries.has-lead .entry:first-child .t { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); line-height: 1.5; }
.entries.has-lead .entry:first-child .d { -webkit-line-clamp: 4; font-size: 1rem; }
@media (max-width: 860px) { .entries { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .entry a { grid-template-columns: 6.25rem minmax(0, 1fr); gap: .85rem; padding: 1rem 0; }
  .entry .t { font-size: 1.02rem; }
  .entry .d { display: none; }
  .entries.has-lead .entry:first-child a { grid-template-columns: minmax(0, 1fr); }
  .entries.has-lead .entry:first-child .d { display: -webkit-box; }
}

/* ---------- このサイトについて ---------- */
.promise { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1.5rem; }
.promise li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .6rem; align-items: start; padding: 1rem 0; border-top: 2px solid var(--ink); line-height: 1.8; font-weight: 700; }
.promise .ic { width: 1.6rem; height: 1.6rem; color: var(--green); stroke-width: 2; margin-top: .2rem; }
@media (max-width: 700px) { .promise { grid-template-columns: minmax(0, 1fr); } }
.about-links { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--foot); color: #e9e3d4; padding-block: 3.25rem 2.5rem; font-size: .95rem; border-top: 6px solid var(--green); }
.site-footer .wrap { display: grid; gap: 1.5rem; }
.site-footer .brand { color: #fff; }
.site-footer .brand-mark rect:first-child { fill: #fffdf7; }
.site-footer .brand-sub { color: #bfb8a6; }
.foot-links { list-style: none; margin: 0; padding: 1rem 0; display: flex; flex-wrap: wrap; gap: .5rem 0; border-block: 1px solid #4a463d; }
.foot-links li + li { border-left: 1px solid #4a463d; }
.foot-links a { display: block; padding: 0 1.1rem; color: #fff; text-decoration: none; }
.foot-links li:first-child a { padding-left: 0; }
.foot-links a:hover { text-decoration: underline; color: #fff; }
.foot-note { max-width: 48rem; line-height: 1.85; color: #cfc8b6; }
.copy { font-size: .82rem; color: #a49d8c; letter-spacing: .08em; }

/* ---------- パンくず ---------- */
.crumbs { padding-block: 1rem 0; font-size: .86rem; color: var(--mute); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem .5rem; }
.crumbs li { white-space: nowrap; }
.crumbs li + li::before { content: "／"; margin-right: .5rem; color: var(--rule-strong); }
.crumbs a { color: var(--mute); }
@media (max-width: 640px) { .crumbs li[aria-current] { display: none; } }

/* ---------- 記事 ---------- */
.article-grid { display: grid; grid-template-columns: minmax(0, var(--w-text)) minmax(0, 15.5rem); gap: clamp(2rem, 5vw, 4.5rem); justify-content: space-between; padding-top: 1.75rem; padding-bottom: 5rem; }
.article-main { min-width: 0; display: grid; gap: 1.6rem; align-content: start; }
@media (max-width: 1000px) { .article-grid { grid-template-columns: minmax(0, 1fr); } .toc-side { display: none; } }
@media (min-width: 1001px) { .toc-inline { display: none; } }
.article-head { display: grid; gap: 1.1rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--ink); }
.meta { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; align-items: center; font-size: .9rem; color: var(--sub); }
.meta time { font-weight: 700; color: var(--ink); }
.article-head h1 { font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.35rem); line-height: 1.55; }
.lead { font-size: 1.1rem; line-height: 1.95; color: var(--sub); }
.pr-label { display: flex; gap: .85rem; align-items: flex-start; padding: .85rem 0 0; border-top: 1px dashed var(--rule-strong); font-size: .92rem; line-height: 1.8; color: var(--sub); }
.pr-label .tag { margin-top: .15em; }

.eyecatch { margin: 0; padding: .6rem; background: var(--sheet); border: 1px solid var(--ink); }
.eyecatch img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }

.toc-side { position: sticky; top: 1.5rem; align-self: start; max-height: calc(100vh - 3rem); overflow-y: auto; font-size: .95rem; }
.toc-side p, .toc-inline p { display: flex; align-items: center; gap: .6rem; margin-bottom: .4rem; font-family: var(--f-head); font-weight: 700; letter-spacing: .3em; }
.toc-side p::after, .toc-inline p::after { content: ""; flex: 1; height: 1px; background: var(--ink); }
.toc-list { list-style: none; margin: 0; padding: 0; counter-reset: tc; }
.toc-list li { counter-increment: tc; }
.toc-list a { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: .3rem; padding: .5rem 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; line-height: 1.6; }
.toc-list a::before { content: counter(tc, decimal-leading-zero); font-family: var(--f-head); color: var(--green); font-weight: 700; }
.toc-list a:hover { color: var(--green-dark); text-decoration: underline; text-underline-offset: .25em; }
.toc-side a.on { background: linear-gradient(90deg, var(--gold-soft), transparent); font-weight: 700; }
.toc-inline { padding: 1.1rem 1.25rem 1.25rem; background: var(--sheet); border: 1px solid var(--ink); }
.toc-inline .toc-list a { font-size: 1rem; }

/* 本文 */
.prose { min-width: 0; display: grid; gap: 1.5rem; align-content: start; counter-reset: sec; }
.prose > h2 { counter-increment: sec; position: relative; margin-top: 2.25rem; padding-top: 1.1rem; border-top: 2px solid var(--ink); font-size: clamp(1.45rem, 1.2rem + 1vw, 1.8rem); line-height: 1.5; }
.prose > h2::before { content: counter(sec, decimal-leading-zero); display: block; margin-bottom: .2rem; font-size: 1.05rem; letter-spacing: .15em; color: var(--green); }
.prose h3 { display: flex; gap: .6rem; margin-top: .75rem; font-size: 1.22rem; }
.prose h3::before { content: ""; flex: none; width: .65rem; height: .65rem; margin-top: .55em; background: var(--green); }
.prose strong { font-weight: 700; background: linear-gradient(transparent 62%, var(--gold-soft) 62%); }
.prose :where(ul:not([class])) { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.prose :where(ul:not([class])) > li { position: relative; padding-left: 1.4rem; }
.prose :where(ul:not([class])) > li::before { content: ""; position: absolute; left: .2rem; top: .78em; width: .45rem; height: .45rem; border: 1.5px solid var(--green); }
.prose :where(ol:not([class])) { list-style: none; margin: 0; padding: 0; counter-reset: n; display: grid; gap: .85rem; }
.prose :where(ol:not([class])) > li { counter-increment: n; position: relative; padding-left: 2.6rem; min-height: 2rem; }
.prose :where(ol:not([class])) > li::before { content: counter(n); position: absolute; left: 0; top: .15em; display: grid; place-items: center; width: 1.85rem; height: 1.85rem; border: 1.5px solid var(--green); color: var(--green); font-family: var(--f-head); font-size: 1rem; font-weight: 700; line-height: 1; }

/* 要点 */
.answer { position: relative; display: grid; gap: .55rem; margin-top: .75rem; padding: 1.5rem 1.4rem 1.3rem; background: var(--sheet); border: 1px solid var(--ink); border-top: 4px solid var(--green); }
.answer-label { position: absolute; top: -1.05rem; left: 1.1rem; padding: .05rem .8rem; background: var(--green); color: #fff; font-family: var(--f-head); font-weight: 700; font-size: .9rem; letter-spacing: .15em; line-height: 1.8; }

/* 表（帳簿の罫） */
.table-wrap { overflow-x: auto; background: var(--sheet); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
table { border-collapse: collapse; width: 100%; font-size: .97rem; line-height: 1.7; }
th, td { padding: .75rem .9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
thead th { font-family: var(--f-head); font-weight: 700; white-space: nowrap; border-bottom: 3px double var(--ink); background: transparent; color: var(--ink); overflow-wrap: normal; }
tbody th { font-weight: 700; background: var(--paper); min-width: 7em; }
tbody tr:last-child > * { border-bottom: 0; }
caption { caption-side: bottom; text-align: left; padding: .6rem .2rem; font-size: .88rem; color: var(--mute); border-top: 1px solid var(--rule); background: var(--paper); }
.table-wrap.wide table { min-width: 38rem; }
@media (min-width: 641px) { td a { white-space: nowrap; } }
@media (max-width: 640px) {
  .table-wrap.stack { overflow: visible; border: 0; background: none; }
  .stack table { display: flex; flex-direction: column; }
  .stack tbody, .stack tr, .stack th, .stack td, .stack caption { display: block; width: 100%; }
  .stack tbody { order: 1; }
  .stack caption { order: 2; padding: .2rem 0 0; border: 0; background: none; }
  .table-wrap.wide.stack table { min-width: 0; }
  .stack thead { display: none; }
  .stack tr { margin-bottom: .9rem; border: 1px solid var(--ink); border-top-width: 3px; background: var(--sheet); }
  .stack tbody th { background: var(--paper); font-family: var(--f-head); font-size: 1.05rem; border-bottom: 1px solid var(--rule-strong); }
  .stack th, .stack td { padding: .65rem .9rem; }
  .stack td { border-bottom: 1px dashed var(--rule); }
  .stack.two td::before { display: none; }
  .stack tr > *:last-child { border-bottom: 0; }
  .stack td::before { content: attr(data-label); display: block; font-weight: 700; font-size: .85rem; color: var(--green); line-height: 1.6; letter-spacing: .05em; }
}

/* 囲み（付箋） */
.box { position: relative; display: grid; gap: .45rem; padding: 1.15rem 1.3rem 1.15rem 1.5rem; background: var(--sheet); border: 1px solid var(--rule-strong); border-left: 5px solid var(--green); }
.box.warn { border-left-color: var(--gold); background: #fffaf0; }
.box-title { font-family: var(--f-head); font-weight: 700; font-size: 1.05rem; }
.small { font-size: .95rem; color: var(--sub); }
.draft { display: none; border: 2px dashed var(--draft); padding: .7rem .9rem; color: var(--draft); background: #fff8f0; font-size: .92rem; }
.draft::before { content: "制作メモ（公開前に削除）"; display: block; font-weight: 700; font-size: .8rem; letter-spacing: .05em; }
.show-drafts .draft { display: block; }
.draft-toggle { position: fixed; right: max(1rem, env(safe-area-inset-right, 0px)); bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 30; padding: .55rem 1rem; border: 2px dashed var(--draft); background: #fff8f0; color: var(--draft); font: 700 .88rem var(--f-body); cursor: pointer; opacity: .92; }

/* 記事中の広告枠：名刺のような札 */
.pr-slot { position: relative; display: grid; gap: .6rem; padding: 1.4rem 1.4rem 1.3rem; background: var(--sheet); border: 1px solid var(--ink); }
.pr-slot::before { content: ""; position: absolute; inset: 4px; border: 1px solid var(--rule); pointer-events: none; }
.pr-slot > * { position: relative; }
.pr-slot .tag { justify-self: start; }
.pr-slot b { font-family: var(--f-head); font-size: 1.12rem; }
.pr-slot a[href*="a8.net"], .pr-slot a[rel~="sponsored"] { display: inline-flex; align-items: center; gap: .5rem; min-height: 3rem; margin: .25rem .25rem 0 0; padding: .55rem 1.3rem; background: var(--green); color: #fff; font-weight: 700; text-decoration: none; letter-spacing: .04em; }
.pr-slot a[href*="a8.net"]::after, .pr-slot a[rel~="sponsored"]::after { content: "→"; }
.pr-slot a[href*="a8.net"]:hover, .pr-slot a[rel~="sponsored"]:hover { background: var(--green-dark); color: #fff; }
.pr-slot:not(:has(a)) { display: none; }
.show-drafts .pr-slot { display: grid; }

.sources { padding: 1.1rem 1.25rem; background: var(--paper); border-top: 1px solid var(--ink); font-size: .9rem; line-height: 1.75; display: grid; gap: .5rem; color: var(--sub); }
.sources ul { margin: 0; padding-left: 1.2em; display: grid; gap: .3rem; }
.related { margin-top: 2rem; display: grid; gap: 1rem; }
.related h2 { display: flex; align-items: center; gap: .8rem; font-size: 1.25rem; }
.related h2::after { content: ""; flex: 1; height: 1px; background: var(--ink); }
.related .entries { grid-template-columns: minmax(0, 1fr); }
.prose .related > h2::before { content: none; }

/* 特集のステップ */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: st; display: grid; }
.steps > li { counter-increment: st; position: relative; display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: 1.2rem; padding-bottom: 2.75rem; }
.steps > li::before { content: counter(st); position: relative; z-index: 1; display: grid; place-items: center; width: 3.25rem; height: 3.25rem; background: var(--ink); color: var(--sheet); font-family: var(--f-head); font-size: 1.4rem; font-weight: 700; }
.steps > li::after { content: ""; position: absolute; left: calc(1.625rem - .5px); top: 3.25rem; bottom: .25rem; width: 1px; background: var(--ink); }
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { display: none; }
.steps > li > div { display: grid; gap: 1rem; min-width: 0; }
.prose .steps h2 { margin: 0; padding: .45rem 0 0; border: 0; }
.prose .steps h2::before { content: none; }
@media (min-width: 601px) { .steps .table-wrap.wide { margin-left: -4.45rem; position: relative; z-index: 2; } }
@media (max-width: 600px) {
  .steps > li { display: block; padding: 1.5rem 0 0; border-top: 1px solid var(--rule-strong); }
  .steps > li:first-child { border-top: 0; padding-top: 0; }
  .steps > li::after { display: none; }
  .steps > li::before { float: left; width: 2.6rem; height: 2.6rem; margin: 0 .75rem 0 0; font-size: 1.15rem; }
  .steps > li > div { display: block; }
  .steps > li > div > h2 { min-height: 2.6rem; display: flex; align-items: center; padding: 0; }
  .steps > li > div > :not(h2) { clear: both; margin-top: 1rem; }
}

/* チェックリスト */
.checklist { list-style: none; margin: 0; padding: 0; background: var(--sheet); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.checklist li { border-bottom: 1px solid var(--rule); }
.checklist li:last-child { border-bottom: 0; }
.checklist label { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); gap: .9rem; align-items: start; min-height: 3.5rem; padding: .95rem 1rem; cursor: pointer; line-height: 1.7; }
.checklist label:hover { background: var(--paper); }
.checklist input { width: 1.5rem; height: 1.5rem; margin: .2rem 0 0; accent-color: var(--green); }
.checklist input:checked + span { color: var(--mute); text-decoration: line-through; text-decoration-color: var(--green); }
.check-count { font-weight: 700; color: var(--green-dark); }

/* 本文の挿絵 */
.prose figure { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: .55rem; min-width: 0; }
.prose figure img { display: block; width: 100%; height: auto; padding: .5rem; background: var(--sheet); border: 1px solid var(--rule-strong); }
.prose figcaption { font-size: .88rem; line-height: 1.7; color: var(--mute); padding-left: .2rem; }
.prose figcaption::before { content: "図　"; font-family: var(--f-head); font-weight: 700; color: var(--ink); }

/* ---------- カテゴリ・コラム一覧の見出し ---------- */
.cat-head { --c: var(--c-jikka); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .35rem 1.25rem; align-items: center; padding-block: 1.75rem 2rem; margin-bottom: .5rem; border-bottom: 3px double var(--ink); }
.cat-head.mochi { --c: var(--c-mochi); }
.cat-head.ohaka { --c: var(--c-ohaka); }
.cat-head .eyebrow, .cat-head p.eyebrow { font-size: .85rem; font-weight: 700; letter-spacing: .2em; color: var(--c); }
.cat-head h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); letter-spacing: .08em; }
.cat-icon { grid-row: span 2; display: grid; place-items: center; width: 4.25rem; height: 4.25rem; border: 1.5px solid var(--c); color: var(--c); background: var(--sheet); }
.cat-icon .ic { width: 2.1rem; height: 2.1rem; stroke-width: 1.4; }
.cat-desc { grid-column: 1 / -1; display: grid; gap: 1rem; margin-top: .75rem; }
.cat-desc .lead { max-width: var(--w-text); }
.cat-desc .box { max-width: var(--w-text); }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .88rem; font-weight: 700; color: var(--sub); letter-spacing: .14em; }
.other-cats { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; padding-top: 2rem; }
.other-cats p { flex-basis: 100%; font-family: var(--f-head); font-weight: 700; }
.other-cats .chip { min-height: 2.75rem; font-size: 1rem; padding: .3rem 1.1rem; border: 1px solid var(--rule-strong); border-left: 4px solid var(--c); }
.nav-links, .col-pager ul { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 2rem; }
.col-pager ul { list-style: none; padding: 0; }
.page-numbers { display: inline-grid; place-items: center; min-width: 2.75rem; min-height: 2.75rem; padding: 0 .9rem; border: 1px solid var(--ink); background: var(--sheet); color: var(--ink); text-decoration: none; font-family: var(--f-head); font-weight: 700; }
a.page-numbers:hover { background: var(--ink); color: var(--sheet); }
.page-numbers.current { background: var(--ink); color: var(--sheet); }
.page-numbers.dots { border: 0; background: none; }

.col-cats, .col-list { padding-bottom: 2.5rem; }
.col-list { padding-bottom: 5rem; }
.col-cats h2, .col-list h2 { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; font-size: 1.35rem; }
.col-cats h2::after, .col-list h2::after { content: ""; flex: 1; height: 1px; background: var(--ink); }
.col-cat-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-left: 1px solid var(--rule); border-top: 1px solid var(--rule); }
.col-cat-list li { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
@media (max-width: 860px) { .col-cat-list { grid-template-columns: minmax(0, 1fr); } }
.col-cat { --c: var(--c-jikka); position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .9rem; align-items: center; height: 100%; padding: 1.15rem 1.2rem; background: var(--sheet); color: var(--ink); text-decoration: none; }
.col-cat::before { content: ""; position: absolute; left: 0; top: -1px; width: 3.5rem; height: 4px; background: var(--c); }
.col-cat.mochi { --c: var(--c-mochi); }
.col-cat.ohaka { --c: var(--c-ohaka); }
.col-cat:hover { background: var(--paper); color: var(--ink); }
.col-cat .cat-icon { grid-row: auto; width: 3rem; height: 3rem; border-width: 1px; }
.col-cat .cat-icon .ic { width: 1.6rem; height: 1.6rem; }
.col-cat-body { display: flex; flex-direction: column; gap: .2rem; }
.col-cat-name { font-family: var(--f-head); font-weight: 700; font-size: 1.2rem; }
.col-cat-name .num { margin-left: .6rem; font-size: .88rem; color: var(--mute); }
.col-cat-desc { color: var(--sub); font-size: .92rem; line-height: 1.7; }
.col-cat .go { color: var(--green); }

/* ---------- お問い合わせフォーム（Contact Form 7） ---------- */
.contact-form { padding: clamp(1rem, 3vw, 1.6rem); border: 1px solid var(--ink); background: var(--sheet); }
.wpcf7 form { display: grid; gap: 1.2rem; }
.wpcf7 form > p { margin: 0; }
.wpcf7 label { display: block; font-weight: 700; line-height: 1.6; }
.wpcf7 label br { display: none; }
.wpcf7 .req, .wpcf7 .opt { display: inline-block; margin-left: .5rem; padding: 0 .45rem; font-size: .78rem; line-height: 1.7; vertical-align: .1em; }
.wpcf7 .req { background: var(--shu); color: #fff; }
.wpcf7 .opt { color: var(--sub); border: 1px solid var(--rule-strong); }
.wpcf7 .note { display: block; margin-top: .15rem; font-weight: 400; font-size: .95rem; color: var(--sub); }
.wpcf7 .wpcf7-form-control-wrap { display: block; margin-top: .45rem; }
.wpcf7 :is(input[type=text], input[type=email], input[type=url], input[type=number], select, textarea) { display: block; width: 100%; padding: .7rem .85rem; border: 1.5px solid var(--rule-strong); border-radius: 0; background: #fff; color: var(--ink); font: inherit; font-weight: 400; line-height: 1.6; }
.wpcf7 textarea { min-height: 11rem; resize: vertical; }
.wpcf7 :is(input, select, textarea):focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--ink); }
.wpcf7 .wpcf7-quiz-label { display: block; margin-bottom: .35rem; font-weight: 400; }
.wpcf7 .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.wpcf7 .wpcf7-acceptance label { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.wpcf7 input[type=checkbox] { width: 1.4rem; height: 1.4rem; margin: .2rem 0 0; flex: none; accent-color: var(--green); }
.wpcf7 input[type=submit] { appearance: none; min-height: 3.25rem; padding: .7rem 2.25rem; border: 0; border-radius: 0; background: var(--green); color: #fff; font: inherit; font-weight: 700; letter-spacing: .1em; cursor: pointer; }
.wpcf7 input[type=submit]:hover { background: var(--green-dark); }
.wpcf7 input[type=submit]:disabled { opacity: .45; cursor: not-allowed; }
.wpcf7 .wpcf7-not-valid-tip { display: block; margin-top: .3rem; color: #a1271b; font-size: .95rem; font-weight: 700; }
.wpcf7 form .wpcf7-response-output { margin: 0; padding: .8rem 1rem; border: 2px solid var(--rule-strong); background: var(--sheet); }
.wpcf7 form.init .wpcf7-response-output, .wpcf7 form.resetting .wpcf7-response-output, .wpcf7 form.submitting .wpcf7-response-output { display: none; }
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--green); background: var(--green-soft); }
.wpcf7 form:is(.invalid, .unaccepted, .payment-required, .failed, .aborted, .spam) .wpcf7-response-output { border-color: var(--gold); background: var(--gold-soft); }

/* ---------- 相談先（提携サービス・広告） ---------- */
/* トップの入口 */
.pt-teaser { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr) auto; gap: 1rem 2rem; align-items: center; margin-top: .5rem; padding: 1.4rem 1.5rem; background: var(--sheet); border: 1px solid var(--ink); }
.pt-teaser-text { display: grid; gap: .3rem; }
.pt-teaser-text h3 { font-size: 1.35rem; line-height: 1.45; }
.pt-teaser-cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.pt-teaser-cats li { border-bottom: 1px solid var(--rule); }
.pt-teaser-cats li:nth-child(odd) { border-right: 1px solid var(--rule); }
.pt-chip { --c: var(--c-jikka); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .2rem .7rem; align-items: baseline; height: 100%; padding: .7rem .8rem; color: var(--ink); text-decoration: none; }
.pt-chip::before { content: ""; width: .6rem; height: .6rem; background: var(--c); transform: translateY(-.1em); }
.pt-chip.mochi { --c: var(--c-mochi); }
.pt-chip.ohaka { --c: var(--c-ohaka); }
.pt-chip.toku { --c: var(--c-toku); }
.pt-chip:hover { background: var(--paper); color: var(--ink); }
.pt-chip-name { font-family: var(--f-head); font-weight: 700; }
.pt-chip-lead { grid-column: 2; grid-row: 2; font-size: .82rem; color: var(--mute); line-height: 1.5; }
.pt-chip .go { grid-column: 3; grid-row: 1 / span 2; align-self: center; color: var(--green); }
@media (max-width: 1080px) { .pt-teaser { grid-template-columns: minmax(0, 1fr); } .pt-teaser-go { justify-self: start; } }
@media (max-width: 520px) { .pt-teaser { padding: 1.1rem 1rem; } .pt-teaser-cats { grid-template-columns: minmax(0, 1fr); } .pt-teaser-cats li:nth-child(odd) { border-right: 0; } .pt-teaser-go { justify-self: stretch; } }

/* 相談先ページ */
.pt-page-head { --c: var(--green); }
.pt-page-head .eyebrow .ad-tag { margin-left: .4rem; }
.pt-page-note { grid-column: 1 / -1; margin-top: .5rem; color: var(--sub); font-size: .95rem; }
.partners { padding-block: 1.5rem 4.5rem; }
.pt-groups { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
.pt-group { --c: var(--c-jikka); scroll-margin-top: 1rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.pt-group.mochi { --c: var(--c-mochi); }
.pt-group.ohaka { --c: var(--c-ohaka); }
.pt-group.toku { --c: var(--c-toku); }
.pt-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .2rem 1rem; align-items: center; padding-bottom: .8rem; border-bottom: 2px solid var(--ink); }
.pt-icon { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border: 1.5px solid var(--c); color: var(--c); background: var(--sheet); }
.pt-icon .ic { width: 1.5rem; height: 1.5rem; stroke-width: 1.5; }
.pt-head-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem 1rem; }
.pt-head h2 { font-size: 1.45rem; letter-spacing: .08em; }
.pt-head p { font-size: .9rem; color: var(--mute); }
.pt-swipe { display: none; }
.pt-rail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.pt-card { position: relative; display: flex; flex-direction: column; gap: .4rem; min-width: 0; padding: 1.25rem 1.25rem 1.3rem; background: var(--sheet); border: 1px solid var(--ink); border-top: 4px solid var(--c); }
.pt-card p { margin: 0; }
.pt-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.pt-what { font-size: .82rem; font-weight: 700; color: var(--c); line-height: 1.55; letter-spacing: .04em; }
.pt-name { margin: .15rem 0 0; font-size: 1.35rem; line-height: 1.4; letter-spacing: .04em; }
.pt-by { font-size: .8rem; color: var(--mute); padding-bottom: .5rem; border-bottom: 1px dotted var(--rule-strong); }
.pt-desc { margin-top: .25rem !important; font-size: .96rem; line-height: 1.8; }
.pt-memo { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .45rem; align-items: start; padding: .6rem .7rem; background: var(--paper); font-size: .86rem; line-height: 1.7; color: var(--sub); }
.pt-memo .ic { width: 1rem; height: 1rem; margin-top: .3rem; color: var(--mute); }
.pt-actions { margin-top: auto; padding-top: .9rem; display: grid; gap: .55rem; }
.pt-go { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3.1rem; padding: .5rem 1rem; background: var(--green); color: #fff; font-weight: 700; font-size: 1rem; letter-spacing: .06em; text-decoration: none; }
.pt-go:hover { background: var(--green-dark); color: #fff; }
.pt-go .ic { width: 1rem; height: 1rem; transition: transform .15s; }
.pt-go:hover .ic { transform: translateX(3px); }
.pt-px { position: absolute; width: 1px; height: 1px; border: 0; }
.pt-post { display: flex; align-items: center; justify-content: center; gap: .35rem; min-height: 2.8rem; padding: .35rem .8rem; border: 1px solid var(--ink); color: var(--ink); font-weight: 700; font-size: .9rem; text-decoration: none; text-align: center; }
.pt-post:hover { background: var(--ink); color: var(--sheet); }
.pt-post .ic { width: .9rem; height: .9rem; }
@media (max-width: 1000px) { .pt-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .pt-head-text { display: block; }
  .pt-swipe { display: flex; align-items: center; gap: .25rem; margin: 0; font-size: .8rem; font-weight: 700; color: var(--c); }
  .pt-swipe span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pt-swipe .ic { width: 1rem; height: 1rem; animation: pt-nudge 1.6s ease-in-out infinite; }
  .pt-rail { display: flex; gap: .8rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin-inline: calc(var(--gutter) * -1); padding: .1rem var(--gutter) .6rem; scrollbar-width: none; overscroll-behavior-x: contain; }
  .pt-rail::-webkit-scrollbar { display: none; }
  .pt-card { flex: 0 0 84%; scroll-snap-align: start; }
  .pt-rail > .pt-card:only-child { flex-basis: 100%; }
}
@keyframes pt-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) { .pt-swipe .ic { animation: none; } .pt-go .ic { transition: none; } }
.cat-head + section > .entries { border-top: 0; }
/* 相談先カードのバナー（A8の公式バナーをそのまま表示） */
.pt-banner { display: grid; place-items: center; margin: -1.25rem -1.25rem .6rem; padding: .75rem; background: var(--paper); border-bottom: 1px solid var(--rule); }
.pt-banner img { display: block; width: 100%; max-width: 300px; height: auto; aspect-ratio: 300 / 250; }
.pt-banner:hover img { opacity: .92; }

/* よく読まれている記事 */
.ranking { list-style: none; margin: 0; padding: 0; counter-reset: rk; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.rank { counter-increment: rk; }
.rank a { --c: var(--c-jikka); position: relative; display: grid; gap: .6rem; align-content: start; color: var(--ink); text-decoration: none; }
.rank.mochi a { --c: var(--c-mochi); }
.rank.ohaka a { --c: var(--c-ohaka); }
.rank.toku a { --c: var(--c-toku); }
.rank a::before { content: counter(rk); position: absolute; z-index: 1; left: 0; top: 0; display: grid; place-items: center; width: 2.3rem; height: 2.3rem; background: var(--ink); color: var(--sheet); font-family: var(--f-head); font-weight: 700; font-size: 1.15rem; line-height: 1; }
.rank:nth-child(-n+3) a::before { background: var(--green); }
.rank .thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tint); outline: 1px solid var(--rule); outline-offset: -1px; }
.rank .thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.rank .thumb.noimg { display: grid; place-items: center; color: var(--c); }
.rank a:hover .thumb img { transform: scale(1.04); }
.rank-body { display: grid; gap: .25rem; }
.rank .cat { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 700; color: var(--c); }
.rank .cat::before { content: ""; width: .5rem; height: .5rem; background: var(--c); }
.rank .t { font-family: var(--f-head); font-weight: 700; font-size: 1rem; line-height: 1.6; }
.rank a:hover .t { text-decoration: underline; text-underline-offset: .25em; color: var(--green-dark); }
@media (max-width: 1000px) { .ranking { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .ranking { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 0; }
  .rank { border-bottom: 1px solid var(--rule); }
  .rank a { grid-template-columns: 6.25rem minmax(0, 1fr); gap: .85rem; padding: .9rem 0; }
  .rank a::before { top: .9rem; width: 1.9rem; height: 1.9rem; font-size: 1rem; }
}
/* 記事下では1列のリストにする */
.popular .ranking { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 0; }
.popular .rank { border-bottom: 1px solid var(--rule); }
.popular .rank a { grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; padding: 1rem 0; }
.popular .rank a::before { top: 1rem; width: 1.9rem; height: 1.9rem; font-size: 1rem; }

/* FV：短いコピーと特集ボタン、見取り図を上に寄せる */
.cover-grid { align-items: center; padding-block: clamp(1.5rem, 4vw, 3rem) clamp(9rem, 16vw, 13rem); }
.cover h1 { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 3.8rem); line-height: 1.35; }
@media (max-width: 900px) {
  .cover-grid { gap: 1.25rem; padding-top: 1.25rem; padding-bottom: clamp(7rem, 28vw, 10rem); }
  .cover-text { gap: 1rem; }
  .cover-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
  .cover-actions .btn { flex: none; min-height: 3rem; padding-inline: .5rem; font-size: .95rem; }
}
/* スマホのFV：コピー → 見取り図 → 背景の風景の上にボタン */
@media (max-width: 900px) {
  .cover-text { display: contents; }
  .cover h1 { order: 1; }
  .cover .plan { order: 2; }
  .cover-actions { order: 3; position: relative; z-index: 2; margin-top: clamp(4.5rem, 22vw, 7rem); }
  .cover-grid { padding-bottom: 1.5rem; }
  .cover-scene { height: clamp(12rem, 52vw, 15rem); -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 35%); mask-image: linear-gradient(to bottom, transparent 0, #000 35%); }
  .cover-actions .btn-line { background: var(--sheet); }
  .cover-actions .btn { box-shadow: 0 2px 10px rgba(34, 32, 27, .18); }
}
@media (max-width: 900px) {
  .cover-scene { height: 12.5rem; background-size: 175% auto; background-position: 40% 100%; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%); mask-image: linear-gradient(to bottom, transparent 0, #000 22%); }
  .cover-actions { margin-top: 5.5rem; }
  .cover-grid { padding-bottom: 1.75rem; }
}
/* スマホのFV（改）：見取り図を風景の上に重ね、ボタンはその下の紙面に置く */
@media (max-width: 900px) {
  .cover .plan { position: relative; z-index: 1; }
  .cover-actions { margin-top: 3.25rem; }
  .cover-actions .btn { box-shadow: none; }
  .cover-grid { padding-bottom: 1.5rem; }
  .cover-scene { inset: auto 0 calc(1.5rem + 3rem + 1rem) 0; height: 15rem; background-size: 175% auto; background-position: 40% 100%; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30%); mask-image: linear-gradient(to bottom, transparent 0, #000 30%); }
}
