/*
Theme Name: Yorimichi One Column
Theme URI: https://yorimichi.one/article/
Author: Wildcard
Description: 株式会社よりみち コーポレートサイト（yorimichi.one）のデザインを踏襲した記事テーマ。Noto Sans JP / slate + amber / 左の琥珀線モチーフ。
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: yorimichi-one
*/

/* ===========================================================
   Design tokens — 親サイト(yorimichi.one / Tailwind CDN)から実測抽出
   =========================================================== */
:root {
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-800: #92400e;

  /* 親サイトの shadow スケール */
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / .25);
  --shadow-lift: 0 20px 40px -15px rgb(0 0 0 / .1); /* hover:shadow-[...] */

  --wrap: 1152px;   /* max-w-6xl */
  --wrap-narrow: 768px;
  --header-h: 80px; /* scroll-mt-header */
}

/* ===========================================================
   Reset
   =========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  background: var(--slate-50);
  color: var(--slate-900);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.4; margin: 0; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; }

.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 — 親サイト: 白地 / slate-900 テキスト / amber ホバー
   =========================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / .85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--slate-100);
}
.site-header__inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .02em; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 9999px;
  background: linear-gradient(to bottom right, var(--amber-400), var(--amber-600));
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform .3s ease;
}
.brand:hover .brand__mark { transform: rotate(12deg); } /* group-hover:rotate-12 */
.brand__name { font-size: 15px; }
.brand__name small { display: block; font-size: 11px; font-weight: 500; color: var(--slate-500); letter-spacing: .12em; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 14px; font-weight: 700; color: var(--slate-600); transition: color .3s ease; }
.nav a:hover { color: var(--amber-500); } /* hover:text-amber-500 */

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 8px;
  background: var(--amber-500); color: #fff; font-weight: 700; font-size: 14px;
  box-shadow: var(--shadow-md);
  transition: background-color .3s ease;
}
.nav-cta:hover { background: var(--amber-600); }
.nav-cta svg { transition: transform .3s ease; }
.nav-cta:hover svg { transform: translateX(4px); } /* group-hover:translate-x-1 */

.menu-btn {
  display: none; padding: 8px; border: 0; background: transparent; border-radius: 6px;
  color: var(--slate-600); cursor: pointer;
}
.menu-btn:hover { color: var(--slate-900); }

@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .site-header.is-open .nav {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; inset: var(--header-h) 0 auto 0;
    background: #fff; border-bottom: 1px solid var(--slate-100);
    padding: 16px 20px 24px;
  }
  .site-header.is-open .nav a { padding: 10px 0; font-size: 16px; }
}

/* ===========================================================
   Hero — 親サイト: 左テキスト / 右ビジュアルの2カラム
   =========================================================== */
.hero { position: relative; padding: 48px 0 32px; overflow: hidden; }
.hero__blob {
  position: absolute; border-radius: 9999px; filter: blur(64px); pointer-events: none;
}
.hero__blob--1 { width: 320px; height: 320px; background: rgb(253 230 138 / .2); top: -80px; right: -60px; }
.hero__blob--2 { width: 260px; height: 260px; background: rgb(254 243 199 / .3); bottom: -120px; left: -80px; }

.hero__grid {
  position: relative; display: grid; gap: 32px; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .hero { padding: 72px 0 48px; }
  .hero__grid { grid-template-columns: 1fr 1fr; gap: 48px; }
}

/* 親サイトのピル型アイブロウ（amber-50 の地） */
.pill {
  display: inline-block; font-size: 12px; font-weight: 700;
  color: var(--amber-800); background: var(--amber-50);
  border: 1px solid var(--amber-200);
  padding: 6px 16px; border-radius: 9999px; margin-bottom: 18px;
}
/* 英字ラベル用 */
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: .2em;                /* tracking-widest */
  color: var(--amber-600); text-transform: uppercase; margin-bottom: 10px;
}

/* 親サイトの2色見出し */
.hero__title { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.hero__title .accent { color: var(--amber-500); display: block; }
.hero__lead { margin-top: 20px; color: var(--slate-600); line-height: 1.9; font-size: 15px; }
.hero__btns { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

@media (min-width: 900px) {
  .hero__title { font-size: 48px; }
  .hero__lead { font-size: 16px; }
}

/* ヒーロー右＝最新記事カード（コラムを主役に）
   親サイトの写真枠と同じ角丸40px・shadow-2xl・hover浮上を踏襲 */
.hero__feat {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--slate-100);
  border-radius: 40px; overflow: hidden; box-shadow: var(--shadow-2xl);
  transition: transform .5s ease, box-shadow .5s ease;
}
.hero__feat:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -20px rgb(0 0 0 / .18); }
.hero__feat-lab {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  background: linear-gradient(to right, var(--amber-500), var(--amber-600));
  color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em;
  padding: 6px 12px; border-radius: 9999px; box-shadow: var(--shadow-md);
}
.hero__feat-th { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--slate-100); }
.hero__feat-th img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.hero__feat:hover .hero__feat-th img { transform: scale(1.05); }
.hero__feat-body { display: block; padding: 24px; }
/* サムネが無いとき、ラベル（絶対配置）と本文が重なるので上を空ける */
.hero__feat-lab + .hero__feat-body { padding-top: 58px; }
.hero__feat-cat {
  display: inline-block; font-size: 11px; font-weight: 700; color: var(--amber-800);
  background: var(--amber-100); padding: 4px 10px; border-radius: 9999px; margin-bottom: 10px;
}
.hero__feat-t { display: block; font-size: 18px; font-weight: 700; line-height: 1.6; transition: color .3s ease; }
.hero__feat:hover .hero__feat-t { color: var(--amber-600); }
.hero__feat-e { display: block; margin-top: 8px; font-size: 13px; color: var(--slate-600); line-height: 1.8; }
.hero__feat-m {
  display: flex; align-items: center; gap: 6px; margin-top: 14px;
  font-size: 12px; color: var(--slate-400);
}
.hero__feat-go {
  margin-left: auto; display: inline-flex; align-items: center; gap: 5px;
  color: var(--amber-600); font-weight: 700;
}
.hero__feat-go svg { transition: transform .3s ease; }
.hero__feat:hover .hero__feat-go svg { transform: translateX(4px); }
@media (min-width: 900px) { .hero__feat-body { padding: 28px; } .hero__feat-t { font-size: 20px; } }

/* ===========================================================
   カテゴリブロック（読者の状況で切る）
   =========================================================== */
/* 4カラムだとカテゴリ名に120pxしか割けず日本語が途中で折り返す。3カラムで約210px確保する。 */
.cats { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px)  { .cats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cats { grid-template-columns: repeat(3, 1fr); } }

.cat {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--slate-100);
  border-radius: 24px; padding: 22px;
  transition: transform .5s ease, box-shadow .5s ease;
}
.cat:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); }

/* 名前が2行になっても件数と矢印が中央で浮かないよう上揃え */
.cat__h { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.cat__ic {
  width: 40px; height: 40px; border-radius: 9999px; flex: 0 0 auto;
  background: linear-gradient(to bottom right, var(--amber-400), var(--amber-600));
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform .3s ease;
}
.cat:hover .cat__ic { transform: rotate(12deg); }   /* 親サイトの group-hover:rotate-12 */
.cat__n { font-size: 14px; font-weight: 700; color: var(--slate-900); line-height: 1.45; }
.cat__c {
  margin-left: auto; flex: 0 0 auto;
  font-size: 11px; font-weight: 700; color: var(--amber-800);
  background: var(--amber-100); border-radius: 9999px; padding: 3px 9px;
}
.cat__go { flex: 0 0 auto; color: var(--amber-500); transition: transform .3s ease; }
.cat:hover .cat__go { transform: translateX(4px); }

.cat__l {
  list-style: none; padding: 14px 0 0; margin: 14px 0 0;
  border-top: 1px solid var(--slate-100); display: grid; gap: 9px;
}
.cat__l a {
  display: flex; gap: 7px; font-size: 13px; color: var(--slate-600); line-height: 1.6;
  transition: color .3s ease;
}
.cat__l a::before { content: "―"; color: var(--amber-400); flex: 0 0 auto; }
.cat__l a:hover { color: var(--amber-600); }

/* 記事が無いときのフォールバック */
.hero__visual {
  position: relative; border-radius: 40px; overflow: hidden;
  box-shadow: var(--shadow-2xl); aspect-ratio: 4/3;
  background: linear-gradient(to bottom right, var(--amber-400), var(--amber-600));
  display: flex; align-items: center; justify-content: center;
}
.hero__visual img { width: 100%; height: 100%; object-fit: cover; }
.hero__visual-mark { color: #fff; opacity: .9; }
.hero__visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgb(15 23 42 / .2), transparent);
  pointer-events: none;
}

/* ===========================================================
   Section heading — 親サイト: 中央揃え + 短い琥珀の下線バー
   =========================================================== */
.sec { padding: 56px 0; }
.sec__head { text-align: center; margin-bottom: 36px; }
.sec__head h2 { font-size: 26px; font-weight: 800; }
.sec__head h2::after {
  content: ""; display: block; width: 48px; height: 3px; margin: 14px auto 0;
  background: var(--amber-500); border-radius: 9999px;
}
.sec__head p { margin-top: 14px; font-size: 14px; color: var(--slate-500); }
@media (min-width: 1024px) { .sec__head h2 { font-size: 32px; } }

/* ===========================================================
   Card — 親サイトの事業カードをそのまま踏襲
   =========================================================== */
.cards { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: #fff;
  border: 1px solid var(--slate-100);
  border-radius: 32px;                 /* rounded-[32px] */
  padding: 28px;
  overflow: hidden;
  transition: box-shadow .5s ease, transform .5s ease;  /* duration-500 */
}
.card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-8px);         /* hover:-translate-y-2 */
}
/* 親サイトのカード右上の琥珀ブロブ。
   ぼかすと帯状に広がって本文に被るため、輪郭は残して角だけに置く。 */
.card::before {
  content: ""; position: absolute; top: 0; right: 0; z-index: 0;
  width: 140px; height: 140px; border-radius: 9999px;
  background: rgb(254 243 199 / .5);
  transform: translate(42%, -42%);
  transition: transform .5s ease;
  pointer-events: none;
}
.card:hover::before { transform: translate(36%, -36%) scale(1.12); }
.card > * { position: relative; z-index: 1; }
.card__thumb { z-index: 1; }
.card__thumb {
  margin: -28px -28px 20px; aspect-ratio: 16/9; overflow: hidden; background: var(--slate-100);
}
.card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.card:hover .card__thumb img { transform: scale(1.05); }  /* group-hover:scale-105 duration-700 */
.card__cat {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .1em;
  color: var(--amber-800); background: var(--amber-100);
  padding: 4px 10px; border-radius: 9999px; margin-bottom: 10px;
}
.card__title { font-size: 17px; font-weight: 700; line-height: 1.6; }
.card:hover .card__title { color: var(--amber-600); }
.card__title { transition: color .3s ease; }
.card__excerpt { margin-top: 10px; font-size: 14px; color: var(--slate-600); line-height: 1.8; }
.card__meta { margin-top: auto; padding-top: 16px; font-size: 12px; color: var(--slate-400); display: flex; align-items: center; gap: 8px; }
.card__more { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--amber-600); }
.card__more svg { transition: transform .3s ease; }
.card:hover .card__more svg { transform: translateX(4px); }
.card__link { position: absolute; inset: 0; }

@media (min-width: 1024px) {
  .card { padding: 36px; }
  .card__thumb { margin: -36px -36px 22px; }
}

/* ===========================================================
   Buttons — 親サイトのグラデCTAを完全踏襲
   =========================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 32px; border-radius: 12px;   /* rounded-xl */
  font-weight: 700; font-size: 16px; cursor: pointer; border: 0;
  transition: box-shadow .3s ease, transform .3s ease, background-color .3s ease, border-color .3s ease, color .3s ease;
}
.btn--primary {
  background: linear-gradient(to right, var(--amber-500), var(--amber-600));
  color: #fff; box-shadow: var(--shadow-md);
}
.btn--primary:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.btn--ghost {
  background: #fff; border: 2px solid var(--slate-200); color: var(--slate-900);
}
.btn--ghost:hover { border-color: var(--amber-500); color: var(--amber-600); }
.btn--dark {
  background: var(--slate-900); color: #fff; box-shadow: var(--shadow-xl);
}
.btn--dark:hover { background: var(--slate-800); transform: translateY(-4px); }
.btn svg { transition: transform .3s ease; }
.btn:hover svg { transform: translateX(4px); }
.btn--block { width: 100%; max-width: 448px; padding: 20px; font-size: 18px; }

/* ===========================================================
   パンくず
   =========================================================== */
.bc { padding: 24px 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(--slate-400);
}
.bc li { display: inline-flex; align-items: center; gap: 6px; }
.bc li:not(:first-child)::before { content: "/"; color: var(--slate-300); }
.bc a { color: var(--slate-500); transition: color .3s ease; }
.bc a:hover { color: var(--amber-600); }
.bc span[aria-current] { color: var(--slate-400); }

/* ===========================================================
   目次
   =========================================================== */
.toc {
  background: var(--amber-50);
  border: 1px solid var(--amber-200);
  border-radius: 20px;
  padding: 20px 22px;
  margin-bottom: 32px;
}
.toc__t {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--amber-800); margin-bottom: 12px;
}
.toc__l { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc__i { margin-top: 8px; line-height: 1.6; }
.toc__i a {
  color: var(--slate-700); font-size: 14px; font-weight: 700;
  text-decoration: none; transition: color .3s ease;
  display: inline-flex; gap: 8px;
}
.toc__i a:hover { color: var(--amber-600); }
.toc__i--h2 { counter-increment: toc; }
.toc__i--h2 > a::before {
  content: counter(toc); flex: 0 0 auto;
  width: 20px; height: 20px; border-radius: 9999px; margin-top: 2px;
  background: var(--amber-500); 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(--slate-600); }
.toc__i--h3 > a::before { content: "—"; color: var(--amber-400); }

/* ===========================================================
   前後の記事
   =========================================================== */
.pn { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 0 0 56px; }
@media (min-width: 768px) { .pn { grid-template-columns: 1fr 1fr; } }
.pn__i {
  display: flex; flex-direction: column; gap: 6px;
  background: #fff; border: 1px solid var(--slate-100); border-radius: 20px;
  padding: 18px 20px; box-shadow: var(--shadow-md);
  transition: transform .3s ease, box-shadow .3s ease;
}
.pn__i:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pn__i--r { text-align: right; }
.pn__l {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; color: var(--amber-600); letter-spacing: .08em;
}
.pn__i--r .pn__l { justify-content: flex-end; }
.pn__t { font-size: 14px; font-weight: 700; line-height: 1.6; color: var(--slate-800); }

/* ===========================================================
   Article body
   =========================================================== */
.post-head { padding: 16px 0 8px; }
.post-head .eyebrow { color: var(--amber-600); }
.post-title { font-size: 26px; font-weight: 800; line-height: 1.45; }
@media (min-width: 1024px) { .post-title { font-size: 34px; } }
.post-meta { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 13px; color: var(--slate-500); }
.post-meta .chip { background: var(--amber-100); color: var(--amber-800); font-weight: 700; padding: 4px 10px; border-radius: 9999px; }
.post-thumb { margin: 24px 0 0; border-radius: 32px; overflow: hidden; box-shadow: var(--shadow-xl); border: 1px solid var(--slate-100); }

.post-body {
  background: #fff; border: 1px solid var(--slate-100);
  border-radius: 32px; box-shadow: var(--shadow-md);
  padding: 28px 22px; margin-top: 24px;
}
@media (min-width: 1024px) { .post-body { padding: 48px 56px; } }

.post-body > * + * { margin-top: 20px; }
.post-body p { line-height: 2; color: var(--slate-700); }
.post-body h2 {
  font-size: 21px; font-weight: 800; margin-top: 44px;
  border-left: 4px solid var(--amber-500);   /* 署名モチーフ */
  padding-left: 16px; scroll-margin-top: calc(var(--header-h) + 16px);
}
.post-body h3 {
  font-size: 18px; font-weight: 700; margin-top: 32px; color: var(--slate-800);
  padding-bottom: 8px; border-bottom: 2px solid var(--slate-100);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.post-body h4 { font-size: 16px; margin-top: 24px; color: var(--amber-800); }
.post-body a { color: var(--amber-600); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.post-body a:hover { color: var(--amber-500); }
.post-body ul, .post-body ol { padding-left: 1.4em; }
.post-body li { margin-top: 8px; line-height: 1.9; color: var(--slate-700); }
.post-body ul li::marker { color: var(--amber-500); }
.post-body img { border-radius: 16px; }
.post-body blockquote {
  margin: 0; padding: 18px 22px; background: var(--amber-50);
  border-left: 4px solid var(--amber-500); border-radius: 0 16px 16px 0;
  color: var(--slate-700);
}
.post-body figure { margin: 0; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 14px; }
.post-body th, .post-body td { border: 1px solid var(--slate-200); padding: 10px 12px; text-align: left; }
.post-body th { background: var(--slate-50); font-weight: 700; }
.post-body code {
  background: var(--slate-100); padding: 2px 6px; border-radius: 6px; font-size: .9em;
}
.post-body hr { border: 0; border-top: 1px solid var(--slate-200); margin: 36px 0; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ===========================================================
   記事内パーツ（立場の開示・実口コミ引用・出典）
   =========================================================== */

/* 書き手の立場を開示する注記 */
.post-body .pr-note {
  background: var(--slate-50); border: 1px solid var(--slate-200);
  border-radius: 16px; padding: 14px 18px;
  font-size: 13px; color: var(--slate-600); line-height: 1.85;
}

/* Googleビジネスプロフィールからの実口コミ引用 */
.post-body .rv-quote {
  border: 1px solid var(--slate-200); border-radius: 16px;
  padding: 16px 18px; background: #fff;
  border-left: 4px solid var(--slate-300);
}
.post-body .rv-quote--high { border-left-color: var(--amber-500); }
.post-body .rv-quote--mid  { border-left-color: var(--slate-400); }
.post-body .rv-quote--low  { border-left-color: #ef4444; }
.post-body .rv-quote__meta {
  font-size: 12px; font-weight: 700; color: var(--slate-500); margin-bottom: 8px;
}
.post-body .rv-quote blockquote {
  margin: 0; padding: 0; background: none; border: 0; border-radius: 0;
}
.post-body .rv-quote blockquote p { font-size: 14px; line-height: 1.9; color: var(--slate-700); }
.post-body .rv-quote__note { margin-top: 8px; font-size: 11px; color: var(--slate-400); line-height: 1.7; }
.post-body .rv-src { font-size: 12px; color: var(--slate-400); }
.post-body .rv-src a { font-weight: 500; }

/* 参考文献リスト */
.post-body .source-list { padding-left: 1.2em; }
.post-body .source-list li { font-size: 13px; color: var(--slate-500); line-height: 1.8; }
.post-body .source-list a { font-weight: 500; }

/* ===========================================================
   CTA block — LPへ送客
   =========================================================== */
.cta {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--slate-100);
  border-radius: 40px; box-shadow: var(--shadow-xl);
  padding: 40px 24px; margin: 40px 0; text-align: center;
}
@media (min-width: 1024px) { .cta { padding: 64px; } }
.cta__blob {
  position: absolute; width: 256px; height: 256px; border-radius: 9999px;
  background: rgb(254 243 199 / .5); filter: blur(48px);
  top: -80px; right: -60px; pointer-events: none;
}
.cta__badge {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 9999px;
  background: linear-gradient(to bottom right, var(--amber-400), var(--amber-600));
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
}
.cta__title { position: relative; font-size: 22px; font-weight: 800; }
@media (min-width: 1024px) { .cta__title { font-size: 28px; } }
.cta__lead { position: relative; margin-top: 12px; color: var(--slate-600); line-height: 1.9; font-size: 15px; }
.cta__btns { position: relative; margin-top: 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cta__note { position: relative; margin-top: 14px; font-size: 12px; color: var(--slate-400); line-height: 1.8; }

/* ===========================================================
   Pagination
   =========================================================== */
.pager { display: flex; justify-content: center; gap: 8px; margin: 40px 0; flex-wrap: wrap; }
.pager .page-numbers {
  min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--slate-200); color: var(--slate-600);
  font-weight: 700; font-size: 14px;
  transition: border-color .3s ease, color .3s ease, transform .3s ease;
}
.pager .page-numbers:hover { border-color: var(--amber-500); color: var(--amber-600); transform: translateY(-2px); }
.pager .page-numbers.current {
  background: linear-gradient(to right, var(--amber-500), var(--amber-600));
  border-color: transparent; color: #fff; box-shadow: var(--shadow-md);
}

/* ===========================================================
   Footer — 親サイト: bg-slate-900 + 暗いにじみ
   =========================================================== */
.site-footer {
  position: relative; overflow: hidden;
  background: var(--slate-900); color: var(--slate-300);
  margin-top: 64px; padding: 56px 0 28px;
  border-top: 4px solid var(--amber-500);   /* 親サイト: フッター上端の琥珀ライン */
}
.site-footer__blob {
  position: absolute; top: 0; right: 0; width: 256px; height: 256px;
  background: var(--slate-800); border-radius: 9999px; filter: blur(48px);
  transform: translate(50%, -50%); opacity: .5; pointer-events: none;
}
.site-footer__grid { position: relative; display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h3 { font-size: 13px; font-weight: 700; letter-spacing: .16em; color: #fff; margin-bottom: 14px; }
.site-footer a { color: var(--slate-400); font-size: 14px; transition: color .3s ease; }
.site-footer a:hover { color: var(--amber-500); }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.site-footer__desc { font-size: 13px; color: var(--slate-400); line-height: 1.9; margin-top: 12px; }
.site-footer__brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; }
.site-footer__bottom {
  position: relative; margin-top: 36px; padding-top: 24px;
  border-top: 1px solid var(--slate-800);
  display: flex; flex-direction: column; gap: 12px;
  align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--slate-500);
}
@media (min-width: 768px) { .site-footer__bottom { flex-direction: row; } }

/* ===========================================================
   Fixed CTA bar (mobile)
   =========================================================== */
.fixed-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgb(255 255 255 / .92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--slate-200);
  transform: translateY(110%);
  transition: transform .4s ease;
}
.fixed-cta.is-show { transform: translateY(0); }
.fixed-cta .btn { width: 100%; padding: 14px; font-size: 15px; }
@media (min-width: 900px) { .fixed-cta { display: none; } }
body.has-fixed-cta { padding-bottom: 76px; }
@media (min-width: 900px) { body.has-fixed-cta { padding-bottom: 0; } }

/* ===========================================================
   Reveal on scroll
   JSが無い/失敗した場合は最初から見えていること（本文が消えない）
   =========================================================== */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js .reveal, .js .reveal.is-in { opacity: 1; transform: none; }
}

/* ===========================================================
   404 / empty
   =========================================================== */
.empty { text-align: center; padding: 72px 0; }
.empty__code { font-size: 64px; font-weight: 800; color: var(--amber-500); line-height: 1; }
.empty__msg { margin-top: 12px; color: var(--slate-600); }

/* ===========================================================
   記事本文の追加部品（記事内CTA／出典／計算ウィジェット）
   ksテーマと同じ役割のものを、one の琥珀トーンに合わせて置いた。
   装飾は増やさない。地の色と罫線だけで作る。
   =========================================================== */
.post-body .incta {
  background: var(--amber-50); border: 1px solid #fde68a;
  border-radius: 20px; padding: 24px 20px; text-align: center;
}
.post-body .incta__t { font-size: 17px; font-weight: 800; color: var(--slate-900); line-height: 1.7; margin: 0; }
.post-body .incta__d { font-size: 13px; color: var(--slate-700); line-height: 1.9; margin: 8px 0 0; }
.post-body .incta__b { margin-top: 16px; }
.post-body .incta a.btn { text-decoration: none; color: #fff; }
.post-body .incta__note { font-size: 11px; color: var(--slate-400); line-height: 1.8; margin: 12px 0 0; }
.post-body .src li { font-size: 13px; color: var(--slate-400); line-height: 1.9; }
.post-body table.tfix th:first-child { width: 36%; }
.post-body .calc { border: 1px solid var(--slate-200); border-radius: 20px; padding: 22px 20px; background: var(--slate-50); }
.post-body .calc__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.post-body .calc__row:first-child { margin-top: 0; }
.post-body .calc label { font-size: 13px; font-weight: 800; color: var(--slate-900); min-width: 132px; }
.post-body .calc input, .post-body .calc select {
  font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--slate-200);
  border-radius: 12px; background: #fff; color: var(--slate-900); flex: 1 1 150px; min-width: 0;
}
.post-body .calc__out { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--slate-200); }
.post-body .calc__line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--slate-700); line-height: 1.9; }
.post-body .calc__line b { color: var(--slate-900); font-weight: 800; }
.post-body .calc__note { font-size: 11px; color: var(--slate-400); line-height: 1.8; margin: 12px 0 0; }

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

.post-body .mi-fuki { display: flex; gap: 10px; align-items: flex-start; }
.post-body .mi-fuki + .mi-fuki { margin-top: 12px; }
.post-body .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: 800; line-height: 1.2; text-align: center; }
.post-body .mi-fuki--q .mi-fuki__ic { background: var(--slate-50); color: var(--slate-400); border: 1px solid var(--slate-200); }
.post-body .mi-fuki--a .mi-fuki__ic { background: var(--amber-500); color: #fff; }
.post-body .mi-fuki__b { flex: 1 1 auto; border: 1px solid var(--slate-200); border-radius: 16px; padding: 12px 16px; font-size: 14px; line-height: 1.9; color: var(--slate-700); }
.post-body .mi-fuki--a .mi-fuki__b { background: var(--amber-50); border-color: #fde68a; }
.post-body .mi-fuki--a { flex-direction: row-reverse; }
.post-body .mi-fuki__b p { margin: 0; font-size: 14px; }
.post-body .mi-fuki__b p + p { margin-top: 8px; }

.post-body .mi-case { border: 1px solid var(--slate-200); border-radius: 20px; overflow: hidden; }
.post-body .mi-case + .mi-case { margin-top: 14px; }
.post-body .mi-case__h { background: var(--slate-50); border-bottom: 1px solid var(--slate-200); padding: 12px 16px; font-size: 13px; font-weight: 800; color: var(--slate-900); }
.post-body .mi-case__b { padding: 14px 16px; }
.post-body .mi-case__row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; line-height: 1.9; color: var(--slate-700); }
.post-body .mi-case__row + .mi-case__row { border-top: 1px dashed var(--slate-200); padding-top: 6px; margin-top: 6px; }
.post-body .mi-case__row b { color: var(--slate-900); font-weight: 800; }
.post-body .mi-case__tot { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--slate-200); font-size: 15px; font-weight: 800; color: var(--amber-600); display: flex; justify-content: space-between; gap: 12px; }

.post-body .mi-flow { border: 1px solid var(--slate-200); border-radius: 20px; padding: 4px 0; }
.post-body .mi-flow__i { display: flex; gap: 12px; align-items: baseline; padding: 14px 18px; }
.post-body .mi-flow__i + .mi-flow__i { border-top: 1px solid var(--slate-200); }
.post-body .mi-flow__c { flex: 0 0 42%; font-size: 14px; font-weight: 800; color: var(--slate-900); }
.post-body .mi-flow__r { flex: 1 1 auto; font-size: 14px; line-height: 1.85; color: var(--slate-700); }
.post-body .mi-flow__r b { color: var(--amber-600); }

.post-body .mi-why { border: 1px solid #fde68a; border-radius: 20px; padding: 20px; background: var(--amber-50); }
.post-body .mi-why__t { font-size: 15px; font-weight: 800; color: var(--slate-900); margin: 0 0 10px; }
.post-body .mi-why dl { margin: 0; }
.post-body .mi-why dt { font-size: 13px; font-weight: 800; color: var(--amber-600); margin-top: 10px; }
.post-body .mi-why dt:first-child { margin-top: 0; }
.post-body .mi-why dd { margin: 2px 0 0; font-size: 13px; line-height: 1.9; color: var(--slate-700); }
.post-body .mi-why a.btn { text-decoration: none; color: #fff; }
.post-body .mi-why__note { margin: 12px 0 0; font-size: 11px; color: var(--slate-400); 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で作った説明図）と出典キャプション  YO 1.7.0
   =========================================================== */
.post-body .mi-fig { margin: 26px 0; }
.post-body .mi-fig img { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 10px 30px -12px rgba(15,23,42,.18); }
.post-body .mi-fig figcaption { margin-top: 8px; font-size: 12px; color: var(--slate-400); line-height: 1.8; }
.post-body blockquote .src-cap { margin-top: 10px; font-size: 12px; color: var(--slate-500); line-height: 1.8; }
