/*
Theme Name: Yorimichi KS Diagnosis
Theme URI: https://yorimichi-ks.com/article/
Author: Wildcard
Description: よりみち給付金サポート コラム＋給付金診断テーマ。Zen Kaku Gothic New / 青緑(#24909f) + ゴールド(#fdc403)。
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: yorimichi-ks
*/

/* ===========================================================
   Design tokens — お手本(kyuhukin-adviser)のCSSから実測抽出
   =========================================================== */
:root {
  --teal:        #24909f;   /* 主色 */
  --teal-light:  #4b96a7;   /* 副色 */
  --teal-dark:   #1b6f7a;
  --teal-50:     #eef7f8;
  --teal-100:    #d7ecef;

  --gold:        #fdc403;   /* CTA */
  --gold-dark:   #c49c13;
  --gold-50:     #fff8e0;

  --brown:       #3b2a19;   /* 濃い文字 */
  --line-green:  #06c755;   /* LINE */

  --ink:         #1f2933;
  --ink-2:       #4b5563;
  --ink-3:       #7b8794;
  --bg:          #ffffff;
  --bg-2:        #f7f7f7;
  --bg-3:        #fafafa;
  --border:      #e5e7eb;

  --shadow:      0 4px 16px rgba(0, 0, 0, .08);
  --shadow-lg:   0 10px 30px rgba(0, 0, 0, .12);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, .16);  /* お手本 rgba(0,0,0,.16) */

  --wrap: 1080px;
  --wrap-narrow: 760px;
  --header-h: 64px;
  --ease: .3s ease;         /* お手本は transform .3s ease 一択 */
}

/* ===========================================================
   Reset
   =========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.is-fixed { overflow: hidden; }
body {
  margin: 0;
  font-family: "Zen Kaku Gothic New", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
/* unDraw の SVG は width/height 属性を剥がしてあるため、必ず幅を与える。
   与え忘れると実寸 0x0 になって消える。 */
svg { display: block; max-width: 100%; }
.split__pic svg,
.dhero__pic svg,
.dx__res-pic svg { width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.5; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; }
button { font-family: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.wrap-narrow { width: 100%; max-width: var(--wrap-narrow); margin-inline: auto; padding-inline: 20px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ===========================================================
   Header
   =========================================================== */
.hd {
  position: sticky; top: 0; z-index: 60;
  background: #fff; border-bottom: 1px solid var(--border);
}
.hd__in { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hd__brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 900; color: var(--teal); }
.hd__brand-mark {
  width: 32px; height: 32px; border-radius: 9px; background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.hd__brand-txt { font-size: 15px; letter-spacing: .01em; line-height: 1.25; }
.hd__brand-txt small { display: block; font-size: 10px; font-weight: 500; color: var(--ink-3); letter-spacing: .1em; }

.hd__nav { display: flex; align-items: center; gap: 22px; }
.hd__nav a { font-size: 14px; font-weight: 700; color: var(--ink-2); transition: color var(--ease); }
.hd__nav a:hover { color: var(--teal); }

.hd__cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--gold); color: var(--brown); font-weight: 900; font-size: 13px;
  padding: 9px 16px; border-radius: 999px; box-shadow: var(--shadow);
  transition: transform var(--ease);
}
.hd__cta:hover { transform: translateY(-2px); }

.hd__btn { display: none; border: 0; background: transparent; padding: 8px; color: var(--ink); cursor: pointer; }

@media (max-width: 900px) {
  .hd__nav { display: none; }
  .hd__btn { display: inline-flex; }
  .hd.open .hd__nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: #fff; border-bottom: 1px solid var(--border); padding: 8px 20px 20px;
  }
  .hd.open .hd__nav a { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
  .hd.open .hd__cta { margin-top: 14px; justify-content: center; padding: 14px; font-size: 15px; }
}

/* ===========================================================
   セクション見出し — お手本: 英字ラベル + 日本語
   =========================================================== */
.sec { padding: 56px 0; }
.sec--tint { background: var(--bg-2); }
.sec--teal { background: var(--teal-50); }

.hd2 { text-align: center; margin-bottom: 32px; }
.hd2__en {
  display: block; font-size: 13px; font-weight: 900; letter-spacing: .14em;
  color: var(--teal-light); text-transform: uppercase; margin-bottom: 6px;
}
.hd2__jp { font-size: 22px; font-weight: 900; color: var(--ink); }
.hd2__jp::after {
  content: ""; display: block; width: 40px; height: 4px; margin: 12px auto 0;
  background: var(--gold); border-radius: 999px;
}
.hd2__note { margin-top: 12px; font-size: 14px; color: var(--ink-3); }
@media (min-width: 768px) { .hd2__jp { font-size: 28px; } .sec { padding: 76px 0; } }

/* ===========================================================
   Buttons
   =========================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 28px; border-radius: 999px; font-weight: 900; font-size: 16px;
  border: 0; cursor: pointer; text-align: center;
  transition: transform var(--ease), box-shadow var(--ease), background-color var(--ease), color var(--ease);
}
.btn--gold { background: var(--gold); color: var(--brown); box-shadow: 0 4px 0 var(--gold-dark); }
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 7px 0 var(--gold-dark); }
.btn--gold:active { transform: translateY(1px); box-shadow: 0 2px 0 var(--gold-dark); }
.btn--teal { background: var(--teal); color: #fff; box-shadow: 0 4px 0 var(--teal-dark); }
.btn--teal:hover { transform: translateY(-3px); box-shadow: 0 7px 0 var(--teal-dark); }
.btn--ghost { background: #fff; color: var(--teal); border: 2px solid var(--teal); }
.btn--ghost:hover { background: var(--teal); color: #fff; }
.btn--lg { width: 100%; max-width: 460px; padding: 20px; font-size: 17px; }
.btn__sub { display: block; font-size: 11px; font-weight: 700; opacity: .8; }

/* ===========================================================
   診断ヒーロー
   =========================================================== */
.dhero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--teal) 0%, var(--teal-light) 100%);
  color: #fff; padding: 40px 0 48px;
}
.dhero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgb(255 255 255 / .14) 0 22%, transparent 22%),
    radial-gradient(circle at 10% 85%, rgb(255 255 255 / .10) 0 18%, transparent 18%);
  pointer-events: none;
}
.dhero__in { position: relative; display: grid; gap: 26px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .dhero { padding: 60px 0 72px; } .dhero__in { grid-template-columns: 1.05fr .95fr; gap: 40px; } }

.dhero__badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--gold); color: var(--brown);
  font-size: 12px; font-weight: 900; padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.dhero__title { font-size: 27px; font-weight: 900; line-height: 1.4; letter-spacing: .01em; }
.dhero__title .u {
  background: linear-gradient(transparent 62%, rgb(253 196 3 / .85) 62%);
  padding: 0 2px;
}
.dhero__lead { margin-top: 14px; font-size: 15px; line-height: 1.9; color: rgb(255 255 255 / .92); }
.dhero__pic { display: flex; justify-content: center; }
.dhero__pic svg, .dhero__pic img { width: 100%; max-width: 340px; }
@media (min-width: 900px) { .dhero__title { font-size: 38px; } }

/* ===========================================================
   診断ウィジェット
   =========================================================== */
.dx {
  background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg);
  padding: 24px 18px; margin-top: -32px; position: relative; z-index: 5;
}
@media (min-width: 768px) { .dx { padding: 36px; margin-top: -44px; } }

.dx__bar { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.dx__bar-track { flex: 1; height: 8px; background: var(--teal-100); border-radius: 999px; overflow: hidden; }
.dx__bar-fill {
  height: 100%; width: 0%; border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  transition: width .45s cubic-bezier(.4, 0, .2, 1);
}
.dx__bar-num { font-size: 12px; font-weight: 900; color: var(--teal); white-space: nowrap; }

.dx__q { display: none; }
.dx__q.is-active { display: block; animation: dxin .35s ease both; }
@keyframes dxin { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }

.dx__qnum {
  display: inline-block; background: var(--teal-50); color: var(--teal);
  font-size: 11px; font-weight: 900; padding: 4px 12px; border-radius: 999px; margin-bottom: 10px;
}
.dx__qt { font-size: 18px; font-weight: 900; margin-bottom: 16px; line-height: 1.6; }
@media (min-width: 768px) { .dx__qt { font-size: 21px; } }

.dx__opts { display: grid; gap: 10px; }
.dx__opt {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: #fff; border: 2px solid var(--border); border-radius: 14px;
  padding: 15px 16px; font-size: 15px; font-weight: 700; color: var(--ink); cursor: pointer;
  transition: border-color var(--ease), background-color var(--ease), transform var(--ease);
}
.dx__opt:hover { border-color: var(--teal); background: var(--teal-50); transform: translateY(-2px); }
.dx__opt-mark {
  width: 22px; height: 22px; border-radius: 999px; border: 2px solid var(--border);
  flex: 0 0 auto; transition: border-color var(--ease), background-color var(--ease);
}
.dx__opt:hover .dx__opt-mark { border-color: var(--teal); background: var(--teal); box-shadow: inset 0 0 0 3px #fff; }

.dx__back {
  margin-top: 16px; background: none; border: 0; color: var(--ink-3);
  font-size: 13px; font-weight: 700; cursor: pointer; padding: 6px 0;
}
.dx__back:hover { color: var(--teal); }

/* 診断結果 */
.dx__res { display: none; text-align: center; }
.dx__res.is-active { display: block; animation: dxin .4s ease both; }
.dx__res-pic { max-width: 220px; margin: 0 auto 16px; }
.dx__res-lab {
  display: inline-block; background: var(--gold-50); color: var(--gold-dark);
  font-size: 12px; font-weight: 900; padding: 5px 14px; border-radius: 999px; margin-bottom: 10px;
}
.dx__res-t { font-size: 21px; font-weight: 900; line-height: 1.5; }
.dx__res-t .hi { color: var(--teal); }
.dx__res-body { margin-top: 12px; font-size: 14px; color: var(--ink-2); line-height: 1.9; text-align: left; }
.dx__res-list { margin-top: 14px; text-align: left; display: grid; gap: 8px; }
.dx__res-item {
  display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-2);
  background: var(--bg-2); border-radius: 10px; padding: 10px 12px;
}
.dx__res-item b { color: var(--ink); }
.dx__res-cta { margin-top: 20px; }
.dx__res-note { margin-top: 14px; font-size: 11px; color: var(--ink-3); line-height: 1.8; text-align: left; }
@media (min-width: 768px) { .dx__res-t { font-size: 26px; } }

/* ===========================================================
   Benefit / Merit / Problem
   =========================================================== */
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.tile {
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-card);
  padding: 24px 20px; transition: transform var(--ease);
}
.tile:hover { transform: translateY(-4px); }
.tile__ic {
  width: 46px; height: 46px; border-radius: 12px; background: var(--teal-50); color: var(--teal);
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.tile__t { font-size: 17px; font-weight: 900; margin-bottom: 8px; }
.tile__d { font-size: 14px; color: var(--ink-2); line-height: 1.9; }

.split { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 40px; } .split--rev > *:first-child { order: 2; } }
.split__pic { max-width: 380px; margin-inline: auto; }
.split__t { font-size: 20px; font-weight: 900; margin-bottom: 12px; line-height: 1.5; }
.split__t .u { background: linear-gradient(transparent 62%, rgb(253 196 3 / .6) 62%); }
.split__d { font-size: 15px; color: var(--ink-2); line-height: 1.95; }
@media (min-width: 900px) { .split__t { font-size: 24px; } }

/* 悩みリスト */
.woes { display: grid; gap: 10px; }
.woe {
  display: flex; gap: 10px; align-items: flex-start;
  background: #fff; border-radius: 12px; box-shadow: var(--shadow-card);
  padding: 14px 16px; font-size: 15px; font-weight: 700; color: var(--ink-2);
}
.woe__ic { color: var(--teal); flex: 0 0 auto; margin-top: 3px; }

/* 金額の目安 — 全幅で使う。狭いカラムに4枚並べると折り返して読めなくなる */
.price { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin-top: 32px; }
@media (min-width: 768px) { .price { gap: 16px; grid-template-columns: repeat(4, 1fr); } }
.price__c {
  background: #fff; border: 2px solid var(--teal-100); border-radius: 14px;
  padding: 18px 10px; text-align: center; transition: transform var(--ease);
  display: flex; flex-direction: column; justify-content: flex-start;
}
.price__c:hover { transform: translateY(-4px); }
.price__lab {
  font-size: 12px; font-weight: 900; color: var(--teal); line-height: 1.5;
  white-space: nowrap;                       /* ラベルは折らない */
}
.price__num { font-size: 24px; font-weight: 900; color: var(--ink); margin-top: 6px; line-height: 1.2; white-space: nowrap; }
.price__num small { font-size: 12px; font-weight: 700; }
.price__sub { font-size: 11px; color: var(--ink-3); margin-top: 6px; line-height: 1.6; }

/* ===========================================================
   カテゴリ別ブロック
   =========================================================== */
.cats { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px)  { .cats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cats { grid-template-columns: repeat(3, 1fr); } }

.cat {
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-card);
  padding: 16px 18px; transition: transform var(--ease);
  display: flex; flex-direction: column;
}
.cat:hover { transform: translateY(-4px); }
.cat__h { display: flex; align-items: center; gap: 10px; }
.cat__ic {
  width: 38px; height: 38px; border-radius: 10px; flex: 0 0 auto;
  background: var(--teal-50); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  transition: background-color var(--ease), color var(--ease);
}
.cat:hover .cat__ic { background: var(--teal); color: #fff; }
.cat__n { font-size: 15px; font-weight: 900; color: var(--ink); line-height: 1.4; }
.cat__c {
  margin-left: auto; flex: 0 0 auto;
  font-size: 11px; font-weight: 900; color: var(--teal);
  background: var(--teal-50); border-radius: 999px; padding: 3px 9px;
}
.cat__go { flex: 0 0 auto; color: var(--teal-light); transition: transform var(--ease); }
.cat:hover .cat__go { transform: translateX(3px); }

.cat__l {
  list-style: none; padding: 14px 0 0; margin: 12px 0 0;
  border-top: 1px solid var(--border); display: grid; gap: 9px;
}
.cat__l a {
  display: flex; gap: 7px; font-size: 13px; color: var(--ink-2); line-height: 1.6;
  transition: color var(--ease);
}
.cat__l a::before { content: "―"; color: var(--gold-dark); flex: 0 0 auto; }
.cat__l a:hover { color: var(--teal); }

/* ===========================================================
   Review
   =========================================================== */
.rv { background: #fff; border-radius: 16px; box-shadow: var(--shadow-card); padding: 22px 20px; }
.rv__hd { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.rv__av {
  width: 44px; height: 44px; border-radius: 999px; background: var(--teal-50); color: var(--teal);
  display: flex; align-items: center; justify-content: center; font-weight: 900; flex: 0 0 auto;
}
.rv__who { font-size: 13px; font-weight: 900; }
.rv__meta { font-size: 11px; color: var(--ink-3); }
.rv__txt { font-size: 14px; color: var(--ink-2); line-height: 1.9; }

/* ===========================================================
   FAQ アコーディオン
   =========================================================== */
.faq { display: grid; gap: 10px; }
.faq__i { background: #fff; border-radius: 12px; box-shadow: var(--shadow-card); overflow: hidden; }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: none; border: 0; padding: 16px 18px; cursor: pointer; text-align: left;
  font-size: 15px; font-weight: 900; color: var(--ink);
}
.faq__q::before {
  content: "Q"; flex: 0 0 auto; width: 24px; height: 24px; border-radius: 999px;
  background: var(--teal); color: #fff; font-size: 12px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.faq__qt { flex: 1; }
.faq__ar { flex: 0 0 auto; color: var(--teal); transition: transform var(--ease); }
.faq__q.is-open .faq__ar { transform: rotate(180deg); }
.faq__a { display: none; padding: 0 18px 18px 52px; font-size: 14px; color: var(--ink-2); line-height: 1.9; }

/* ===========================================================
   CTA band
   =========================================================== */
.cta {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(160deg, var(--teal) 0%, var(--teal-light) 100%);
  color: #fff; padding: 40px 20px;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 88% 20%, rgb(255 255 255 / .12) 0 20%, transparent 20%);
}
.cta__in { position: relative; }
.cta__t { font-size: 20px; font-weight: 900; line-height: 1.5; }
.cta__t .u { background: linear-gradient(transparent 62%, rgb(253 196 3 / .85) 62%); padding: 0 2px; }
.cta__d { margin-top: 10px; font-size: 14px; color: rgb(255 255 255 / .9); line-height: 1.9; }
.cta__b { margin-top: 20px; display: flex; justify-content: center; }
.cta__note { margin-top: 12px; font-size: 11px; color: rgb(255 255 255 / .75); line-height: 1.8; }
@media (min-width: 768px) { .cta { padding: 56px 20px; } .cta__t { font-size: 26px; } }

/* ===========================================================
   パンくず
   =========================================================== */
.bc { padding: 20px 0 0; }
.bc ol {
  list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap;
  align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3);
}
.bc li { display: inline-flex; align-items: center; gap: 6px; }
.bc li:not(:first-child)::before { content: "/"; color: var(--border); }
.bc a { color: var(--ink-2); transition: color var(--ease); }
.bc a:hover { color: var(--teal); }

/* ===========================================================
   目次
   =========================================================== */
.toc {
  background: var(--teal-50); border: 2px solid var(--teal-100);
  border-radius: 14px; padding: 18px 20px; margin-bottom: 28px;
}
.toc__t {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 900; color: var(--teal); margin-bottom: 10px;
}
.toc__l { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc__i { margin-top: 8px; line-height: 1.6; }
.toc__i a { display: inline-flex; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink); transition: color var(--ease); }
.toc__i a:hover { color: var(--teal); }
.toc__i--h2 { counter-increment: toc; }
.toc__i--h2 > a::before {
  content: counter(toc); flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px;
  border-radius: 999px; background: var(--teal); color: #fff; font-size: 11px;
  display: inline-flex; align-items: center; justify-content: center;
}
.toc__i--h3 { padding-left: 28px; }
.toc__i--h3 > a { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.toc__i--h3 > a::before { content: "—"; color: var(--gold-dark); }

/* ===========================================================
   前後の記事
   =========================================================== */
.pn { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 28px 0 48px; }
@media (min-width: 768px) { .pn { grid-template-columns: 1fr 1fr; } }
.pn__i {
  display: flex; flex-direction: column; gap: 6px;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-card);
  padding: 16px 18px; transition: transform var(--ease);
}
.pn__i:hover { transform: translateY(-4px); }
.pn__i--r { text-align: right; }
.pn__l { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 900; color: var(--teal); }
.pn__i--r .pn__l { justify-content: flex-end; }
.pn__t { font-size: 14px; font-weight: 700; line-height: 1.6; color: var(--ink); }

/* ===========================================================
   記事
   =========================================================== */
.ph { padding: 20px 0 0; }
.ph__eye {
  display: block; font-size: 12px; font-weight: 900; letter-spacing: .14em;
  color: var(--teal-light); text-transform: uppercase; margin-bottom: 6px;
}
.ph__t { font-size: 23px; font-weight: 900; line-height: 1.5; }
@media (min-width: 900px) { .ph__t { font-size: 30px; } }
.ph__m { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 12px; color: var(--ink-3); }
.ph__chip { background: var(--teal-50); color: var(--teal); font-weight: 900; padding: 3px 10px; border-radius: 999px; }
.ph__img { margin-top: 18px; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }

/* 本文はトップと同じ「白カード＋影」に載せる。
   地に直置きするとトップの作り込みと落差が出る。 */
.pb {
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-card);
  padding: 24px 20px; margin-top: 22px;
}
@media (min-width: 900px) { .pb { padding: 40px 44px; } }
.pb > * + * { margin-top: 18px; }
.pb p { line-height: 2; color: var(--ink-2); }
.pb h2 {
  font-size: 20px; font-weight: 900; margin-top: 40px; color: #fff;
  background: var(--teal); border-radius: 10px; padding: 12px 16px;
  scroll-margin-top: calc(var(--header-h) + 12px);
}
.pb h3 {
  font-size: 17px; font-weight: 900; margin-top: 30px; color: var(--ink);
  border-left: 5px solid var(--gold); padding-left: 12px;
  scroll-margin-top: calc(var(--header-h) + 12px);
}
.pb h4 { font-size: 15px; margin-top: 22px; color: var(--teal); }
.pb a { color: var(--teal); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.pb ul, .pb ol { padding-left: 1.4em; }
.pb li { margin-top: 8px; line-height: 1.9; color: var(--ink-2); }
.pb ul li::marker { color: var(--teal); }
.pb img { border-radius: 12px; }
.pb blockquote {
  margin: 0; padding: 16px 18px; background: var(--teal-50);
  border-left: 5px solid var(--teal-light); border-radius: 0 12px 12px 0; color: var(--ink-2);
}
.pb table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pb th, .pb td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.pb th { background: var(--teal-50); font-weight: 900; }
.pb hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }
.tsc { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* 記事カード */
.pcard {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-card); overflow: hidden;
  transition: transform var(--ease);
}
.pcard:hover { transform: translateY(-4px); }
.pcard__th { aspect-ratio: 16/9; background: var(--bg-2); overflow: hidden; }
.pcard__th img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--ease); }
.pcard:hover .pcard__th img { transform: scale(1.05); }
.pcard__b { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.pcard__c { font-size: 11px; font-weight: 900; color: var(--teal); margin-bottom: 6px; }
.pcard__t { font-size: 15px; font-weight: 900; line-height: 1.6; }
.pcard__e { margin-top: 8px; font-size: 13px; color: var(--ink-3); line-height: 1.8; }
.pcard__d { margin-top: auto; padding-top: 12px; font-size: 11px; color: var(--ink-3); }
.pcard__l { position: absolute; inset: 0; }

/* ページャ */
.pg { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 36px 0; }
.pg .page-numbers {
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 2px solid var(--border); color: var(--ink-2); font-weight: 900; font-size: 14px;
  transition: border-color var(--ease), color var(--ease), transform var(--ease);
}
.pg .page-numbers:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }
.pg .page-numbers.current { background: var(--teal); border-color: var(--teal); color: #fff; }

/* ===========================================================
   Footer
   =========================================================== */
.ft { background: var(--brown); color: rgb(255 255 255 / .75); padding: 44px 0 24px; margin-top: 0; }
.ft__g { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .ft__g { grid-template-columns: 1.5fr 1fr 1fr; } }
.ft h3 { font-size: 12px; letter-spacing: .14em; color: #fff; margin-bottom: 12px; font-weight: 900; }
.ft ul { list-style: none; padding: 0; display: grid; gap: 9px; }
.ft a { font-size: 13px; color: rgb(255 255 255 / .75); transition: color var(--ease); }
.ft a:hover { color: var(--gold); }
.ft__brand { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-weight: 900; }
.ft__d { font-size: 12px; line-height: 1.9; margin-top: 10px; color: rgb(255 255 255 / .6); }
.ft__b {
  margin-top: 28px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / .14);
  font-size: 11px; color: rgb(255 255 255 / .5); display: flex; flex-direction: column; gap: 8px;
  align-items: center; justify-content: space-between;
}
@media (min-width: 768px) { .ft__b { flex-direction: row; } }

/* ===========================================================
   固定フッターCTA
   =========================================================== */
.fx {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: rgb(255 255 255 / .96); backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  transform: translateY(115%); transition: transform .35s ease;
}
.fx.is-show { transform: none; }
.fx .btn { width: 100%; padding: 14px; font-size: 15px; }
@media (min-width: 900px) { .fx { display: none; } }
body.fxpad { padding-bottom: 74px; }
@media (min-width: 900px) { body.fxpad { padding-bottom: 0; } }

/* ページトップ */
.ptop {
  position: fixed; right: 14px; bottom: 84px; z-index: 65;
  width: 42px; height: 42px; border-radius: 999px; border: 0;
  background: var(--teal); color: #fff; cursor: pointer;
  display: none; align-items: center; justify-content: center; box-shadow: var(--shadow-lg);
  transition: transform var(--ease);
}
.ptop:hover { transform: translateY(-3px); }
@media (min-width: 900px) { .ptop { bottom: 24px; } }

/* ===========================================================
   Reveal（JS無しでも見える）
   =========================================================== */
.rv-in { opacity: 1; }
.js .rv-in { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .rv-in.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js .rv-in, .js .rv-in.on { opacity: 1; transform: none; }
}

.empty { text-align: center; padding: 64px 0; }
.empty__c { font-size: 56px; font-weight: 900; color: var(--teal); }
.empty__m { margin-top: 10px; color: var(--ink-2); }

/* ===========================================================
   記事本文の追加部品（記事内CTA／出典／計算ウィジェット）
   ※ 装飾は増やさない。地の色と罫線だけで作る。
   =========================================================== */
.pb .incta { background: var(--teal-50); border: 1px solid var(--teal-100); border-radius: 14px; padding: 22px 18px; text-align: center; }
.pb .incta__t { font-size: 16px; font-weight: 900; color: var(--ink); line-height: 1.7; margin: 0; }
.pb .incta__d { font-size: 13px; color: var(--ink-2); line-height: 1.9; margin: 8px 0 0; }
.pb .incta__b { margin-top: 14px; }
.pb .incta a.btn { text-decoration: none; color: var(--brown); }
.pb .incta__note { font-size: 11px; color: var(--ink-3); line-height: 1.8; margin: 12px 0 0; }
.pb .src li { font-size: 13px; color: var(--ink-3); line-height: 1.9; }
.pb table.tfix th:first-child { width: 36%; }
.pb .calc { border: 1px solid var(--border); border-radius: 14px; padding: 20px 18px; background: var(--bg-3); }
.pb .calc__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.pb .calc__row:first-child { margin-top: 0; }
.pb .calc label { font-size: 13px; font-weight: 900; color: var(--ink); min-width: 132px; }
.pb .calc input, .pb .calc select { font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--ink); flex: 1 1 150px; min-width: 0; }
.pb .calc__out { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.pb .calc__line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink-2); line-height: 1.9; }
.pb .calc__line b { color: var(--ink); font-weight: 900; }
.pb .calc__note { font-size: 11px; color: var(--ink-3); line-height: 1.8; margin: 12px 0 0; }

/* ===========================================================
   見るコンテンツの部品（この記事でわかること／吹き出し／ケース別／判定／根拠）
   単色＋罫線だけで作る。テーマの純正部品に溶け込ませる。
   =========================================================== */
.pb .mi-lead { border: 1px solid var(--teal-100); border-radius: 14px; padding: 18px 18px 16px; background: #fff; }
.pb .mi-lead__t { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 900; color: var(--teal); margin: 0 0 10px; }
.pb .mi-lead ul { margin: 0; padding-left: 1.3em; }
.pb .mi-lead li { font-size: 14px; line-height: 1.85; margin-top: 6px; }
.pb .mi-lead li:first-child { margin-top: 0; }
.pb .mi-lead li b { color: var(--teal-dark); }

.pb .mi-fuki { display: flex; gap: 10px; align-items: flex-start; }
.pb .mi-fuki + .mi-fuki { margin-top: 12px; }
.pb .mi-fuki__ic { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 900; line-height: 1.2; text-align: center; }
.pb .mi-fuki--q .mi-fuki__ic { background: var(--bg-2); color: var(--ink-3); border: 1px solid var(--border); }
.pb .mi-fuki--a .mi-fuki__ic { background: var(--teal); color: #fff; }
.pb .mi-fuki__b { position: relative; flex: 1 1 auto; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.9; color: var(--ink-2); }
.pb .mi-fuki--a .mi-fuki__b { background: var(--teal-50); border-color: var(--teal-100); }
.pb .mi-fuki--a { flex-direction: row-reverse; }
.pb .mi-fuki__b p { margin: 0; font-size: 14px; }
.pb .mi-fuki__b p + p { margin-top: 8px; }

.pb .mi-case { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.pb .mi-case + .mi-case { margin-top: 14px; }
.pb .mi-case__h { background: var(--bg-3); border-bottom: 1px solid var(--border); padding: 10px 14px; font-size: 13px; font-weight: 900; color: var(--ink); }
.pb .mi-case__b { padding: 12px 14px; }
.pb .mi-case__row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; line-height: 1.9; color: var(--ink-2); }
.pb .mi-case__row + .mi-case__row { border-top: 1px dashed var(--border); padding-top: 6px; margin-top: 6px; }
.pb .mi-case__row b { color: var(--ink); font-weight: 900; }
.pb .mi-case__tot { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 15px; font-weight: 900; color: var(--teal-dark); display: flex; justify-content: space-between; gap: 12px; }

.pb .mi-flow { border: 1px solid var(--border); border-radius: 14px; padding: 4px 0; }
.pb .mi-flow__i { display: flex; gap: 12px; align-items: baseline; padding: 12px 16px; }
.pb .mi-flow__i + .mi-flow__i { border-top: 1px solid var(--border); }
.pb .mi-flow__c { flex: 0 0 42%; font-size: 14px; font-weight: 900; color: var(--ink); }
.pb .mi-flow__r { flex: 1 1 auto; font-size: 14px; line-height: 1.85; color: var(--ink-2); }
.pb .mi-flow__r b { color: var(--teal-dark); }

.pb .mi-why { border: 1px solid var(--teal-100); border-radius: 14px; padding: 18px; background: var(--teal-50); }
.pb .mi-why__t { font-size: 15px; font-weight: 900; color: var(--ink); margin: 0 0 10px; }
.pb .mi-why dl { margin: 0; }
.pb .mi-why dt { font-size: 13px; font-weight: 900; color: var(--teal-dark); margin-top: 10px; }
.pb .mi-why dt:first-child { margin-top: 0; }
.pb .mi-why dd { margin: 2px 0 0; font-size: 13px; line-height: 1.9; color: var(--ink-2); }
.pb .mi-why a.btn { text-decoration: none; color: var(--brown); }
.pb .mi-why__note { margin: 12px 0 0; font-size: 11px; color: var(--ink-3); line-height: 1.8; }

@media (max-width: 480px) {
  .pb .mi-flow__i, .post-body .mi-flow__i { flex-direction: column; gap: 4px; }
  .pb .mi-flow__c, .post-body .mi-flow__c { flex: 0 0 auto; }
  .pb .mi-case__row, .post-body .mi-case__row,
  .pb .mi-case__tot, .post-body .mi-case__tot { flex-direction: column; gap: 2px; }
}


/* ===========================================================
   記事内の図（i2iで作った説明図）と出典キャプション  YK 1.7.0
   =========================================================== */
.pb figure { margin: 0; }
.pb .mi-fig { margin: 22px 0; }
.pb .mi-fig img { width: 100%; height: auto; border-radius: 12px; box-shadow: var(--shadow); }
.pb .mi-fig figcaption { margin-top: 8px; font-size: 12px; color: var(--ink-3); line-height: 1.8; }
.pb blockquote .src-cap { margin-top: 10px; font-size: 12px; color: var(--ink-3); line-height: 1.8; }

/* 書き手の立場を開示する注記 */
.pb .pr-note {
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px;
  font-size: 13px; color: var(--ink-3); line-height: 1.85;
}
