/* ============================================================
   くらしの整理ナビ 共通スタイル v2.1 (2026-09-10)
   変更点: コントラスト改訂 / 3段レスポンシブ / ドロワー / アニメーション / ロゴ画像化
   旧 styles.css を丸ごと差し替えてください
============================================================ */

:root {
  /* --- 青: 塗りに使う濃い青と、装飾専用の明るい青を分離 --- */
  --primary:        #24748F;  /* 白文字 5.3:1 */
  --primary-deep:   #15546C;  /* 白文字 7.9:1 / 見出し・リンク */
  --primary-dark:   #15546C;  /* --primary-deep の別名（既存マークアップ互換） */
  --primary-bright: #4FB4D8;  /* 装飾専用: 罫線・アイコン・ホバー枠 */
  --primary-line:   #7FC4DD;
  --primary-light:  #E8F5FA;
  --primary-pale:   #F1F7FA;
  --link:           #0066CC;  /* リンク色（サイト全体）。押せる文字はこの青 */
  --link-hover:     #0052A3;

  /* --- CTA: 系統は同じ暖色、明度だけ下げて可読に --- */
  --accent:        #C9461A;   /* 白文字 4.8:1 */
  --accent-hover:  #A8380F;
  --accent-bright: #FF8B5A;   /* 装飾専用 */
  --accent-tint:   #F7EFE8;

  --gold: #B8891F; --silver: #7E8A96; --bronze: #A6754A;

  --warm-bg: #F7F4EE;
  --text:     #1F2E3B;  /* 13.4:1 */
  --text-sub: #4A5A68;  /*  7.1:1 */
  --muted:    #64737F;  /*  5.0:1 */
  --border: #E4EAEE;
  --border-warm: #E0DAD0;
  --border-strong: #C4D6DE;
  --danger: #C4342F;
  --success: #2F7D57;

  --shadow-sm: 0 1px 3px rgba(21,84,108,.07);
  --shadow-md: 0 4px 16px rgba(21,84,108,.09);
  --shadow-lg: 0 14px 34px rgba(21,84,108,.14);
  --radius: 10px; --radius-sm: 6px; --radius-lg: 18px;

  --header-h: 90px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0; padding: 0;
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont,
    "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  color: var(--text);
  background: var(--warm-bg);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
body { padding-bottom: 84px; }

h1, h2 { font-weight: 700; }
h3, h4, h5 { font-weight: 600; }
h1, h2, h3, h4, h5 {
  font-family: inherit;
  line-height: 1.45; margin: 0;
  color: var(--text); letter-spacing: .01em;
  text-wrap: pretty;
}

p, li, dd, dt, td, th { color: var(--text); }

/* --- リンク: 色だけに頼らず常時下線。下線色だけ水色 --- */
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }
.article-body a:not(.btn-cta):not(.btn-secondary),
.lead a:not(.btn-cta):not(.btn-secondary),
.info-box a:not(.btn-cta):not(.btn-secondary),
.qa-a a:not(.btn-cta):not(.btn-secondary) {
  color: var(--link);
  text-decoration: none;
  font-weight: 600;
}
.article-body a:not(.btn-cta):not(.btn-secondary):hover,
.lead a:not(.btn-cta):not(.btn-secondary):hover,
.info-box a:not(.btn-cta):not(.btn-secondary):hover,
.qa-a a:not(.btn-cta):not(.btn-secondary):hover {
  color: #0E3D50;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* サイドバー：常時は下線なし。ホバーで細いグレーの下線が文字の下だけに伸びる */
aside.side a:not(.btn-cta):not(.btn-secondary) { text-decoration: none; color: var(--text); }
aside.side .side-rank-item .n,
aside.side .side-block li > a {
  display: inline;
  text-decoration: none;
  transition: color .18s var(--ease);
}
aside.side .side-rank-item:hover .n,
aside.side .side-block li > a:hover {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
@media (prefers-reduced-motion: reduce) {
  aside.side .side-rank-item .n,
  aside.side .side-block li > a { transition: none; }
}
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--primary-line); outline-offset: 2px; border-radius: 4px;
}

img { max-width: 100%; display: block; }

/* ============ ヘッダー ============ */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 60;
  transition: box-shadow .25s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(21,84,108,.12); }
.site-header.is-scrolled .header-top { max-height: 0; opacity: 0; overflow: hidden; }
/* スクロール中はヘッダーを圧縮（ナビは出したまま） */
.site-header .header-inner,
.site-header .site-logo img,
.site-header .header-cta { transition: padding .22s var(--ease), height .22s var(--ease), font-size .22s var(--ease), min-height .22s var(--ease); }
.site-header.is-scrolled .header-inner { padding-top: 6px; padding-bottom: 6px; }
.site-header.is-scrolled .site-logo img { height: 38px; }
.site-header.is-scrolled .header-cta { padding: 9px 20px; min-height: 38px; font-size: 13.5px; }
.site-header.is-scrolled .site-nav { gap: 22px; }
@media (prefers-reduced-motion: reduce) {
  .site-header .header-inner,
  .site-header .site-logo img,
  .site-header .header-cta { transition: none; }
}

.header-top {
  background: var(--primary-pale);
  border-bottom: 1px solid #DDE7EC;
  font-size: 12px; color: var(--text-sub);
  max-height: 40px; overflow: hidden;
  transition: max-height .25s var(--ease), opacity .2s;
}
.header-top-inner {
  max-width: 1240px; margin: 0 auto; padding: 7px 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.header-top .updated { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.header-top .updated::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--success);
}

.header-inner {
  max-width: 1240px; margin: 0 auto; padding: 13px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.site-logo {
  display: block; flex: 0 0 auto; line-height: 0;
  text-decoration: none;
  transition: opacity .18s var(--ease);
}
.site-logo:hover { text-decoration: none; opacity: .82; }
.site-logo img { height: 64px; width: auto; display: block; }

.site-nav { display: flex; gap: 26px; align-items: center; flex: 1 1 auto; justify-content: center; }
.site-nav a {
  position: relative; font-size: 14px; font-weight: 600;
  color: var(--text); text-decoration: none; padding: 9px 0; white-space: nowrap;
  transition: color .18s;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--primary-line); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.site-nav a:hover { color: var(--link); }
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav a.active { color: var(--link); font-weight: 700; }
.site-nav a.active::after { background: var(--primary); transform: scaleX(1); }

.header-cta {
  flex: 0 0 auto; background: var(--accent); color: #fff;
  font-weight: 700; font-size: 14px; padding: 12px 22px;
  border-radius: 26px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  transition: background .18s, transform .18s var(--ease);
}
.header-cta:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); text-decoration: none; }
.header-cta:active { transform: translateY(0) scale(.98); }
.header-cta.pulse { animation: aff-pulse 2.6s ease-in-out infinite; }

/* CTAがアフィリエイトリンクのとき: 下線を消して白文字を維持 */
a[data-aff].header-cta,
a[data-aff].header-cta:link,
a[data-aff].header-cta:visited,
a[data-aff].header-cta:hover {
  color: #fff !important; text-decoration: none !important;
}
a[data-aff].header-cta[data-aff-external]::after { color: rgba(255,255,255,.85); }

/* 広告であることの明示（ステマ規制対応） */
.pr {
  font-size: 10px; font-weight: 700; letter-spacing: .06em; line-height: 1;
  background: rgba(255,255,255,.22); color: #fff;
  padding: 3px 5px; border-radius: 3px; flex: 0 0 auto;
}

/* --- ハンバーガー / ドロワー --- */
.nav-toggle {
  display: none; width: 44px; height: 44px; flex: 0 0 auto;
  background: #fff; border: 1px solid var(--border-strong); border-radius: 10px;
  cursor: pointer; padding: 0; place-items: center; align-content: center; gap: 4px;
}
.nav-toggle i {
  display: block; width: 18px; height: 2px; background: var(--primary-deep);
  border-radius: 2px; transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle[aria-expanded="true"] i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-drawer { display: none; }

/* ============ パンくず ============ */
.breadcrumb {
  max-width: 1240px; margin: 0 auto; padding: 14px 20px;
  font-size: 12px; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 6px;
}
.breadcrumb a { color: var(--text-sub); }
.breadcrumb .sep { color: var(--border-strong); }

/* ============ コンテナ ============ */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 20px; }

/* ============ セクション見出し ============ */
.section-head { text-align: center; margin: 60px 0 32px; }
.section-head .ja {
  display: inline-block; font-size: 12px; color: var(--primary-deep);
  font-weight: 600; letter-spacing: .28em; margin-bottom: 8px;
}
.section-head h2 { font-size: 28px; position: relative; display: inline-block; }
.section-head h2::after {
  content: ""; display: block; width: 42px; height: 3px;
  background: var(--primary); border-radius: 2px; margin: 12px auto 0;
}
.section-head p { color: var(--text-sub); font-size: 14px; margin-top: 12px; }

/* ============ ランキングバッジ ============ */
.rank-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  font-family: inherit; font-weight: 700; font-size: 20px;
  color: #fff; position: relative; flex-shrink: 0;
}
.rank-badge::before {
  content: ""; position: absolute; inset: 4px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.45);
}
.rank-badge span { position: relative; z-index: 1; }
.rank-badge.rank-1 { background: linear-gradient(140deg, #D9A32C, #96690F); }
.rank-badge.rank-2 { background: linear-gradient(140deg, #A3AEB8, #6C7783); }
.rank-badge.rank-3 { background: linear-gradient(140deg, #BE8A5E, #8A5C33); }
.rank-badge.rank-4, .rank-badge.rank-5, .rank-badge.rank-6, .rank-badge.rank-7,
.rank-badge.rank-8, .rank-badge.rank-9, .rank-badge.rank-10, .rank-badge.rank-11,
.rank-badge.rank-12, .rank-badge.rank-13, .rank-badge.rank-14, .rank-badge.rank-15 {
  background: linear-gradient(140deg, var(--primary), var(--primary-deep));
  width: 48px; height: 48px; font-size: 16px;
}
.rank-badge .no { font-size: 11px; font-weight: 700; display: block; line-height: 1; }
.rank-badge .num { font-size: 22px; line-height: 1; display: block; }

/* ============ CTAボタン ============
   - どこに置かれても白文字で必ず読める（下線・色被り防止）
   - a要素・button要素どちらでもOK
   - :visited でも色が変わらないよう明示
*/
.btn-cta,
a.btn-cta,
a.btn-cta:link,
a.btn-cta:visited {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff !important; font-weight: 700;
  padding: 14px 28px; min-height: 48px; border-radius: 40px; border: none;
  font-size: 15px; cursor: pointer;
  text-decoration: none !important;
  transition: background .18s, transform .18s var(--ease), box-shadow .2s;
}
.btn-cta:hover,
a.btn-cta:hover {
  background: var(--accent-hover); color: #fff !important;
  text-decoration: none !important; transform: translateY(-2px);
}
.btn-cta:active { transform: translateY(0) scale(.98); }
.btn-cta.large { padding: 18px 40px; font-size: 17px; min-height: 56px; }
.btn-cta.full { display: flex; width: 100%; }
/* 1ページに1つだけ: 呼吸するリング */
.btn-cta.pulse { animation: aff-pulse 2.6s ease-in-out infinite; }
@keyframes aff-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,70,26,.35); }
  50%      { box-shadow: 0 0 0 10px rgba(201,70,26,0); }
}

.btn-secondary,
a.btn-secondary,
a.btn-secondary:link,
a.btn-secondary:visited {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: #fff; color: var(--primary-deep) !important;
  border: 2px solid var(--primary); font-weight: 600;
  padding: 12px 24px; min-height: 46px; border-radius: 40px;
  font-size: 14px;
  text-decoration: none !important;
  transition: background .18s, color .18s;
}
.btn-secondary:hover,
a.btn-secondary:hover {
  background: var(--primary-light); color: var(--primary-deep) !important;
  text-decoration: none !important;
}

/* ============ 追従CTA（スマホ最優先行動 = 見積もりフォーム） ============ */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  background: #fff; border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(21,84,108,.1);
  padding: 10px 20px calc(10px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 14px; justify-content: space-between;
  transform: translateY(110%); transition: transform .3s var(--ease);
}
.sticky-cta.is-visible { transform: none; }
/* 追従CTAはスマホのみ。PCでは表示しない */
@media (min-width: 769px) { .sticky-cta { display: none; } }
.sticky-cta-inner {
  max-width: 1240px; margin: 0 auto; width: 100%;
  display: flex; align-items: center; gap: 14px; justify-content: space-between;
}
.sticky-cta-text { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.5; }
.sticky-cta-text small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; }
.sticky-cta .btn-cta { padding: 12px 22px; font-size: 14.5px; flex-shrink: 0; min-height: 52px; }

/* ============ 読み込みプログレスバー ============ */
.page-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--primary-line), var(--primary-deep));
  z-index: 200; transition: width .3s var(--ease), opacity .4s;
  pointer-events: none;
}

/* ============ スクロールリビール ============ */
/* JS無効時は表示済みが初期値（.js-reveal は site.js が付与） */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(18px); }
.js-reveal [data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

/* ============ 吹き出し ============
   .chat-avatar は data-label 属性のテキスト（1〜2文字）を中に表示。
   例: <div class="chat-avatar" data-label="編"></div>
   画像を使いたい時は <div class="chat-avatar"><img src="..." alt=""></div> でOK。
*/
.chat-bubble { display: flex; gap: 14px; margin: 24px 0; align-items: flex-start; }
.chat-avatar {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  background: var(--primary-light); display: grid; place-items: center;
  font-family: inherit; font-size: 18px; font-weight: 700;
  color: var(--primary-deep);
  border: 2px solid var(--primary); overflow: hidden;
  position: relative;
}
.chat-avatar::before {
  content: attr(data-label);
  font-family: inherit;
}
.chat-avatar img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0;
}
/* 画像が入っている場合はテキストラベルを隠す */
.chat-avatar:has(img)::before { content: none; }
/* アイコンSVGを入れる場合（円を埋めずに中央に置く） */
.chat-avatar.icon img { position: static; inset: auto; width: 34px; height: 34px; object-fit: contain; }
.author-box .ava img { width: 28px; height: 28px; object-fit: contain; }
/* アイコン入りの丸はQ&Aと同じ配色でベタ塗り・枠線なし */
.chat-avatar.icon { background: var(--primary); border: none; }
.chat-avatar.avatar-2.icon { background: var(--accent); border: none; }
@media (max-width: 768px) { .chat-avatar.icon img { width: 28px; height: 28px; } }

.chat-avatar.avatar-2 {
  background: var(--accent-tint); border-color: var(--accent);
  color: #8E3512;
}
.chat-text {
  background: #fff; border: 1px solid var(--border);
  padding: 14px 18px; border-radius: 4px 16px 16px 16px;
  font-size: 14.5px; line-height: 1.8; color: var(--text); flex: 1;
}
.chat-name { font-size: 11.5px; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
.chat-bubble.right { flex-direction: row-reverse; }
.chat-bubble.right .chat-text {
  border-radius: 16px 4px 16px 16px; background: var(--primary-light); border-color: var(--primary-line);
}

/* ============ 記事カード ============ */
.article-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: transform .22s var(--ease), box-shadow .22s, border-color .22s;
}
.article-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
  border-color: var(--primary-line); text-decoration: none;
}
.article-card:active { transform: scale(.985); }
.article-card .thumb { aspect-ratio: 16 / 10; background: #fff; position: relative; overflow: hidden; }
.article-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.article-card:hover .thumb img { transform: scale(1.05); }
.article-card .tag {
  position: absolute; top: 10px; left: 10px;
  background: #fff; color: var(--primary-deep);
  font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 4px;
}
.article-card .body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.article-card h3 { font-size: 15.5px; line-height: 1.6; margin-bottom: 8px; font-weight: 600; }
.article-card .meta {
  font-size: 11.5px; color: var(--muted); margin-top: auto;
  display: flex; gap: 12px; padding-top: 8px;
}

/* ============ プレースホルダー画像 ============ */
.ph {
  width: 100%; height: 100%;
  background: #fff;
  display: grid; place-items: center; color: var(--muted);
  font-family: "SF Mono", Consolas, monospace; font-size: 11px;
  letter-spacing: .05em; text-align: center; padding: 12px;
}
.ph.warm { background: #fff; color: var(--muted); }

/* ============ フッター ============ */
.site-footer {
  background: #1B2C38; color: #D3DCE4;
  padding: 44px 0 0; margin-top: 90px;
  font-size: 13px; line-height: 1.85;
}
.footer-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 20px 32px;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px;
}
.footer-brand { display: block; margin-bottom: 16px; line-height: 0; }
.footer-brand img { height: 52px; width: auto; display: block; }
.footer-inner p { font-size: 12.5px; color: #B9C6D0; margin: 0; }
.footer-inner h4 {
  color: #fff; font-size: 13.5px; font-weight: 600; margin: 0 0 14px;
  padding-bottom: 9px; border-bottom: 2px solid #3E9BBE; display: inline-block;
}
.footer-inner ul { list-style: none; padding: 0; margin: 0; }
.footer-inner li { margin: 0; }
.footer-inner li a {
  display: block; color: #D3DCE4; text-decoration: none;
  font-size: 12.5px; padding: 5px 0; transition: color .15s, padding-left .15s;
}
.footer-inner li a:hover { color: #fff; padding-left: 5px; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 15px 20px; text-align: center; font-size: 11.5px; color: #9DACB8;
}

/* ============ 比較表 ============ */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 24px 0; }
.compare-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  font-size: 14px;
  box-shadow: var(--shadow-md);
}
.compare-table th, .compare-table td {
  padding: 14px 12px; text-align: center;
  border-bottom: 1px solid var(--border); border-right: 1px solid var(--border);
}
.compare-table th:last-child, .compare-table td:last-child { border-right: none; }
.compare-table thead th {
  background: var(--primary-deep); color: #fff; font-weight: 600; font-size: 13px;
  position: sticky; top: 0;
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody th {
  background: var(--primary-pale); color: var(--text); font-weight: 600;
  text-align: left; padding-left: 16px; position: sticky; left: 0;
}
.compare-table tbody tr:hover td { background: #FAFCFD; }
.compare-table .highlight { background: #FFF8E3; }
.table-hint { font-size: 12px; color: var(--muted); margin: -4px 0 28px; line-height: 1.7; }

/* 比較表内の企業名リンク（AffLink）は下線＋濃青で常時視認 */
.compare-table th a[data-aff] {
  color: var(--link); text-decoration: none; font-weight: 700;
  transition: color .18s var(--ease);
}
.compare-table th a[data-aff]:hover {
  color: var(--link-hover);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* 比較表内のCTAボタン（レビュー →）は白文字を確実に */
.compare-table td a.btn-cta,
.compare-table td a.btn-cta:link,
.compare-table td a.btn-cta:visited,
.compare-table td a.btn-cta:hover {
  color: #fff !important;
  text-decoration: none !important;
}

/* 表は必ず横スクロール枠の中で最小幅を持つ（枠の外では持たせない＝画面を押し広げない） */
.table-scroll, .table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%;
  margin: 28px 0; padding: 4px 4px 8px;
}
.table-scroll .compare-table, .table-wrap .compare-table { min-width: 640px; }

/* ============ はみ出しガード（全ページ共通） ============ */
/* 記事レイアウト: 1fr の暗黙の最小値(min-content)で画面が横に伸びるのを防ぐ。
   各ページ内の <style> が後に読み込まれるため、body 付きで特異度を上げる */
body .article-layout { grid-template-columns: minmax(0, 1fr) 300px; }
body .article-layout > * { min-width: 0; }
@media (max-width: 900px) {
  body .article-layout { grid-template-columns: minmax(0, 1fr); }
}

img, video, iframe, table, pre, code { max-width: 100%; }
.article-body table, .article-main table { max-width: 100%; }
.article-layout, .article-main, .article-body, .container, main, section { min-width: 0; }
.article-body pre, .article-body code { overflow-x: auto; word-break: break-all; }

.stars { color: #B8891F; letter-spacing: 2px; font-size: 15px; }
.stars .off { color: #CBD3D9; }

/* 表・図版の出典行 */
.source-line {
  font-size: 13.5px;
  color: var(--text-sub);
  margin-top: 10px;
  line-height: 1.7;
}

/* ============ 注意ボックス ============ */
.info-box {
  background: #fff; border: 1px solid var(--border-strong); border-top: none;
  border-radius: 0; margin: 34px 0; font-size: 14.5px;
  padding: 0 22px 20px;
  box-shadow: var(--shadow-md);
}
.info-box .label {
  display: block; margin: 0 -22px 18px;
  background: var(--primary-deep); color: #fff;
  font-size: 12.5px; font-weight: 700; letter-spacing: .08em; line-height: 1.5;
  padding: 9px 18px;
}
.info-box > *:last-child { margin-bottom: 0; }
.warn-box { border-color: var(--accent); }
.warn-box .label { background: var(--accent); color: #fff; }
@media (max-width: 480px) {
  .info-box { padding: 0 16px 16px; margin: 26px 0; }
  .info-box .label { margin: 0 -16px 14px; padding: 9px 14px; letter-spacing: .04em; }
}

/* ============ Q&A ============ */
.qa-item {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 14px; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.qa-q {
  padding: 16px 44px 16px 56px; font-weight: 600; font-size: 15px;
  position: relative; cursor: pointer; color: var(--text); list-style: none;
}
.qa-q::-webkit-details-marker { display: none; }
.qa-q::before {
  content: "Q"; position: absolute; left: 18px; top: 15px;
  width: 28px; height: 28px; background: var(--primary); color: #fff;
  border-radius: 50%; display: grid; place-items: center;
  font-family: inherit; font-size: 15px; font-weight: 700;
}
.qa-q::after {
  content: ""; position: absolute; right: 20px; top: 24px;
  width: 9px; height: 9px; border-right: 2px solid var(--primary-deep);
  border-bottom: 2px solid var(--primary-deep);
  transform: rotate(45deg); transition: transform .25s var(--ease);
}
.qa-item[open] .qa-q::after { transform: rotate(-135deg); }
.qa-a {
  padding: 16px 20px 20px 56px; border-top: 1px solid var(--border);
  background: var(--primary-pale); font-size: 14.5px; color: var(--text-sub); position: relative;
  animation: qa-open .3s var(--ease);
}
@keyframes qa-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.qa-a::before {
  content: "A"; position: absolute; left: 18px; top: 15px;
  width: 28px; height: 28px; background: var(--accent); color: #fff;
  border-radius: 50%; display: grid; place-items: center;
  font-family: inherit; font-size: 15px; font-weight: 700;
}

/* ============ 記事本文 ============ */
.article-title-block {
  background: #fff; padding: 32px 40px 24px;
  border: none;
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: var(--shadow-sm);
}
.article-title-block .cat-tag {
  display: inline-block; color: var(--primary-deep);
  font-size: 13px; font-weight: 600; margin-bottom: 10px;
}
.article-title-block h1 { font-size: 27px; line-height: 1.55; margin-bottom: 12px; }
.article-meta-line { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 12.5px; color: var(--muted); }

.article-main, .article-body {
  background: #fff; padding: 40px 48px 56px;
  border: none;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-sm);
}
.article-body h2 {
  font-size: 24px; border-bottom: 3px solid var(--primary);
  padding: 0 0 10px; margin: 48px 0 24px;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-size: 19px; color: var(--primary-deep);
  border-bottom: 2px dotted var(--primary-line); padding-bottom: 6px; margin: 36px 0 18px;
}
.article-body p { margin: 0 0 32px; font-size: 16.5px; line-height: 1.85; }
.article-body ul, .article-body ol { padding-left: 24px; margin: 28px 0 34px; }
.article-body li { margin-bottom: 16px; font-size: 16.5px; line-height: 1.8; }
.article-body li:last-child { margin-bottom: 0; }
.article-body strong {
  color: var(--text); background: linear-gradient(transparent 58%, #FFF0A8 58%);
  font-weight: 700; padding: 0 2px;
}
.lead { font-size: 15.5px; line-height: 1.95; margin-bottom: 32px; }

.article-body .toc {
  background: var(--primary-pale); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 26px; margin: 30px 0 42px;
  box-shadow: var(--shadow-sm);
}
.article-body .toc-title {
  font-weight: 600; color: var(--primary-deep); margin-bottom: 12px;
  font-size: 14.5px; display: flex; align-items: center; gap: 6px;
}
.article-body .toc ol { padding-left: 20px; margin: 0; font-size: 14.5px; line-height: 2; }
.article-body .toc a { color: var(--link); text-decoration: none; font-weight: 500; }
.article-body .toc a:hover { color: var(--link-hover); }

.author-box {
  display: flex; gap: 14px; align-items: center;
  background: var(--primary-pale); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 16px 20px; margin: 26px 0 32px; font-size: 13px;
}
.author-box .ava {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 20px; flex-shrink: 0;
}
.author-box .name { font-weight: 600; }
.author-box .desc { color: var(--muted); font-size: 12.5px; }

/* ============ サイドバー ============ */
/* スクロール追従。中身が画面より高い場合はサイドバー内だけスクロール */
aside.side { align-self: start; }
.side-sticky {
  position: sticky; top: 106px;
  max-height: calc(100vh - 122px);
  overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent;
  padding-right: 2px;
}
.side-sticky::-webkit-scrollbar { width: 6px; }
.side-sticky::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
.side-sticky::-webkit-scrollbar-track { background: transparent; }

/* --- この記事の要点 --- */
.key-points {
  background: #fff; border: 1px solid var(--primary-line);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 20px;
  box-shadow: var(--shadow-md);
}
.key-points .kp-head {
  background: var(--primary-deep); color: #fff;
  font-size: 12.5px; font-weight: 600; letter-spacing: .06em;
  padding: 11px 16px; display: flex; align-items: center; gap: 8px;
}
.key-points .kp-head::before {
  content: ""; width: 14px; height: 14px; flex: 0 0 auto;
  border: 2px solid var(--primary-line); border-radius: 3px;
  background: linear-gradient(135deg, transparent 45%, var(--primary-line) 45%);
}
.key-points ol {
  list-style: none; counter-reset: kp; margin: 0;
  padding: 14px 16px; display: grid; gap: 11px;
}
.key-points li {
  display: grid; grid-template-columns: 22px 1fr; gap: 10px;
  font-size: 13.5px; line-height: 1.7; color: var(--text); align-items: start;
}
.key-points li::before {
  counter-increment: kp; content: counter(kp);
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary-deep);
  font-size: 11.5px; font-weight: 700;
  display: grid; place-items: center; margin-top: 2px;
}
.key-points .kp-foot {
  border-top: 1px dotted var(--border); padding: 10px 16px;
  font-size: 11.5px; color: var(--muted);
}

aside.side .side-block {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px; margin-bottom: 20px;
}
aside.side .side-block h4 {
  font-size: 15px; color: var(--text); font-weight: 600;
  padding-bottom: 10px; margin: 0 0 14px; border-bottom: 2px solid var(--primary);
}
aside.side .side-block ul { list-style: none; padding: 0; margin: 0; }
aside.side .side-block li { font-size: 14px; line-height: 1.8; margin-bottom: 8px; }
aside.side .side-rank-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0; border-bottom: none;
  text-decoration: none; color: var(--text);
}
aside.side .side-rank-item:last-child { border-bottom: none; }
aside.side .side-rank-item .n { font-size: 14px; font-weight: 600; color: var(--text); }
aside.side .side-rank-item .s { font-size: 12.5px; color: var(--muted); }
aside.side .side-rank-num {
  width: 24px; height: 24px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff; border-radius: 50%;
  font-size: 12px; font-weight: 700;
}

/* ============ アフィリエイトリンク（企業名） ============
   HTMLには data-aff="企業ID" だけ書く。URLは AffLink コンポーネントが埋め込む。
   ボタン内（.btn-cta / .btn-secondary）にある場合は下線を出さない。 */
a[data-aff]:not(.btn-cta):not(.btn-secondary):not(.header-cta):not(.side-rank-item) {
  color: var(--link); font-weight: 600;
  text-decoration: none;
  transition: color .18s var(--ease);
}
a[data-aff]:not(.btn-cta):not(.btn-secondary):not(.header-cta):not(.side-rank-item):hover {
  color: var(--link-hover);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
/* ボタン装飾（.btn-cta / .btn-secondary）が付いた AffLink は下線を消し、白文字を優先 */
a[data-aff].btn-cta,
a[data-aff].btn-cta:link,
a[data-aff].btn-cta:visited,
a[data-aff].btn-cta:hover {
  color: #fff !important;
  text-decoration: none !important;
}
a[data-aff].btn-cta[data-aff-external]::after {
  color: rgba(255,255,255,.85);
}
a[data-aff].btn-secondary,
a[data-aff].btn-secondary:link,
a[data-aff].btn-secondary:visited,
a[data-aff].btn-secondary:hover {
  color: var(--primary-deep) !important;
  text-decoration: none !important;
}

/* 未設定（URL空）は内部レビューへ。見た目は同じで事故らない */

/* ============ レスポンシブ ============ */
@media (max-width: 1024px) {
  .site-logo img { height: 56px; }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 13px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .article-title-block, .article-main, .article-body { padding-left: 32px; padding-right: 32px; }
}

@media (max-width: 900px) {
  .side-sticky { position: static; max-height: none; overflow: visible; padding-right: 0; }
}

@media (max-width: 768px) {
  body { font-size: 16px; padding-bottom: 88px; }
  .header-inner { padding: 10px 16px; gap: 10px; }
  .header-top-inner { padding: 6px 16px; justify-content: center; font-size: 11.5px; }
  .header-top-inner .tagline { display: none; }
  .site-logo img { height: 44px; }
  .footer-brand img { height: 46px; }

  .site-nav { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: grid; }

  /* ドロワー */
  .nav-drawer {
    display: block; position: fixed; inset: 0; z-index: 100;
    background: rgba(20,35,48,.5); opacity: 0; pointer-events: none;
    transition: opacity .25s;
  }
  .nav-drawer.is-open { opacity: 1; pointer-events: auto; }
  .nav-drawer-panel {
    position: absolute; top: 0; right: 0; bottom: 0;
    width: min(86vw, 340px); background: #fff;
    padding: 16px 18px calc(24px + env(safe-area-inset-bottom));
    overflow-y: auto; transform: translateX(100%);
    transition: transform .28s var(--ease);
    box-shadow: -8px 0 30px rgba(20,35,48,.2);
  }
  .nav-drawer.is-open .nav-drawer-panel { transform: none; }
  .nav-drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 12px; border-bottom: 1px solid var(--border);
  }
  .nav-drawer-head .t { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--muted); }
  .nav-drawer-close {
    width: 44px; height: 44px; border: 1px solid var(--border-strong);
    border-radius: 10px; background: #fff; color: var(--primary-deep);
    font-size: 20px; cursor: pointer; display: grid; place-items: center;
  }
  .nav-drawer a.d-item {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 52px; padding: 0 4px; border-bottom: 1px solid var(--border);
    text-decoration: none; color: var(--text); font-size: 14.5px; font-weight: 600;
  }
  .nav-drawer a.d-item::before {
    content: ""; width: 3px; height: 16px; background: var(--primary-line);
    border-radius: 2px; margin-right: 10px;
  }
  .nav-drawer a.d-item span.chev { color: var(--primary); font-size: 16px; margin-left: auto; }
  .nav-drawer .drawer-cta {
    margin-top: 16px; width: 100%; min-height: 52px; font-size: 15px;
  }
  body.drawer-open { overflow: hidden; }

  .section-head { margin: 44px 0 24px; }
  .section-head h2 { font-size: 22px; }
  .article-title-block { padding: 20px 18px 16px; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
  .article-title-block h1 { font-size: 21px; }
  .article-main, .article-body { padding: 26px 20px 40px; }
  .table-wrap, .table-scroll { margin: 22px -4px; }
  .article-body h2 { font-size: 20px; margin: 44px 0 20px; }
  .article-body h3 { font-size: 17px; margin: 34px 0 14px; }
  .article-body p, .article-body li { font-size: 16px; }
  .article-body p { margin-bottom: 26px; }
  .article-body li { margin-bottom: 14px; }
  .footer-inner { padding-left: 18px; padding-right: 18px; }
  .site-footer { margin-top: 60px; }

  .sticky-cta { padding: 8px 14px calc(8px + env(safe-area-inset-bottom)); }
  .sticky-cta-text small { display: none; }
  .sticky-cta-text { font-size: 12.5px; }

  .chat-avatar { width: 46px; height: 46px; font-size: 16px; }
  .qa-q { padding: 15px 40px 15px 52px; font-size: 14.5px; }
  .qa-a { padding: 14px 18px 18px 52px; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; gap: 22px; }
  .site-logo img { height: 40px; }
  .section-head h2 { font-size: 20px; }
  .article-body p, .article-body li { font-size: 15.5px; line-height: 1.9; }
  .rank-badge { width: 46px; height: 46px; font-size: 16px; }
  .sticky-cta-text { display: none; }
  .sticky-cta .btn-cta { width: 100%; }
  .btn-cta.large { padding: 16px 24px; font-size: 15.5px; }
}

/* ============ アクセシビリティ: 動きを減らす設定を尊重 ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js-reveal [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ============ 印刷 ============ */
@media print {
  .site-header, .sticky-cta, .nav-drawer, .page-progress, .btn-cta { display: none !important; }
  body { padding-bottom: 0; background: #fff; }
}


/* ============ 運営者情報 / お問い合わせ ============ */
.page-doc { max-width: 900px; margin: 0 auto; padding: 8px 24px 64px; line-height: 1.9; }
.page-doc h1 {
  margin: 0 0 36px; padding-bottom: 18px;
  border-bottom: 2px solid var(--primary-deep);
  color: var(--primary-deep); font-size: 30px; line-height: 1.4;
}
.page-doc h2 {
  margin: 48px 0 18px; padding: 9px 18px;
  background: var(--primary-deep); color: #fff;
  font-size: 17px; line-height: 1.5; letter-spacing: .04em;
}
.page-doc p { margin: 0 0 18px; font-size: 16px; }
.page-doc a { color: var(--link); font-weight: 600; }
.page-doc a:hover { color: #0E3D50; }

.info-table {
  margin: 0 0 36px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-md);
}
.info-row { display: flex; border-bottom: 1px solid var(--border); }
.info-row:last-child { border-bottom: none; }
.info-label {
  width: 180px; flex-shrink: 0; padding: 16px 18px;
  background: var(--primary-pale); font-weight: 600; font-size: 15px;
}
.info-value { flex: 1; padding: 16px 18px; font-size: 15px; }

.form-group { margin-bottom: 24px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--primary-deep); }
.form-group .required {
  display: inline-block; margin-left: 7px; padding: 2px 8px;
  border-radius: 3px; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 600; vertical-align: 2px;
}
.form-group input, .form-group textarea {
  box-sizing: border-box; width: 100%; padding: 13px 14px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: #fff; color: var(--text); font-family: inherit; font-size: 16px;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-group textarea { min-height: 180px; resize: vertical; line-height: 1.8; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.privacy-note {
  margin: 30px 0; padding: 16px 18px;
  background: var(--primary-pale); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-sub); font-size: 14px;
}
.form-status { margin: 18px 0 0; font-size: 14.5px; font-weight: 600; min-height: 1.6em; }
.form-status.ok { color: var(--success); }
.form-status.ng { color: var(--danger); }
.form-actions { display: flex; justify-content: center; margin-top: 8px; }
.form-actions .btn-cta[disabled] { opacity: .55; cursor: not-allowed; }

@media (max-width: 600px) {
  .page-doc { padding: 4px 16px 44px; }
  .page-doc h1 { font-size: 24px; margin-bottom: 28px; }
  .page-doc h2 { font-size: 15.5px; margin-top: 38px; padding: 9px 14px; }
  .info-row { display: block; }
  .info-label { width: auto; padding: 11px 14px 5px; }
  .info-value { padding: 5px 14px 13px; }
}

/* ============ 特徴別 並列3社カード（順位なし） ============ */
/* 本文カラムの外に出した3社カードの帯（site.js が移動させる） */
.pick-band {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px 28px;
}
.pick-band .pick-recommend-wrap {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px 48px 36px;
  overflow: visible;
}
.pick-band .pick-recommend { margin: 0; }
/* 帯の中に一緒に運ばれた導入文。下向き矢印で3社カードを指す */
.pick-band .pick-recommend-wrap > p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.95;
}
/* 文頭と文末に置く小さな下向き矢印 */
.pick-band .pick-recommend-wrap > p::before,
.pick-band .pick-recommend-wrap > p::after {
  content: "";
  display: inline-block;
  vertical-align: 2px;
  width: 13px; height: 13px;
  border-right: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  transform: rotate(45deg);
  animation: pick-arrow 1.4s ease-in-out infinite;
}
.pick-band .pick-recommend-wrap > p::before { margin-right: 10px; }
.pick-band .pick-recommend-wrap > p::after  { margin-left: 10px; animation-delay: .2s; }
@keyframes pick-arrow {
  0%, 100% { opacity: 1;  transform: rotate(45deg) translate(0, 0); }
  50%      { opacity: .3; transform: rotate(45deg) translate(2px, 2px); }
}
@media (prefers-reduced-motion: reduce) {
  .pick-band .pick-recommend-wrap > p::before,
  .pick-band .pick-recommend-wrap > p::after { animation: none; }
}
/* 帯の中の内部リンクブロック。外枠の余白と重ならないよう調整 */
.pick-band .article-cta {
  margin: 24px 0 0;
}
@media (max-width: 860px) {
  .pick-band { padding: 0 12px 16px; }
  .pick-band .pick-recommend-wrap { padding: 20px 18px 28px; }
}
.pick-recommend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 32px 0 40px;
}
.pick-card {
  display: flex; flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s;
}
.pick-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pick-body {
  padding: 20px 22px 22px;
  display: flex; flex-direction: column;
  flex: 1;
}
.pick-body h3 {
  font-size: 17px;
  margin: 0 0 12px;
  color: var(--primary-deep);
  border: none; padding: 0;
  line-height: 1.4;
}
.pick-body h3 a { color: var(--link); font-weight: 700; }
.pick-catch {
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 12px;
  text-wrap: pretty;
  color: var(--text);
}
.pick-spec {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.75;
  flex: 1;
}
.pick-spec li {
  margin-bottom: 6px;
  color: var(--text-sub);
  padding-left: 12px;
  position: relative;
}
.pick-spec li::before {
  content: "・";
  position: absolute; left: 0;
  color: var(--primary);
}
.pick-spec strong { color: var(--text); font-weight: 600; background: none; padding: 0; }
.pick-card .btn-cta {
  width: 100%;
  text-align: center;
  font-size: 13.5px;
  padding: 12px 8px;
}
@media (max-width: 860px) {
  .pick-recommend { grid-template-columns: 1fr; }
}

/* ============ 画像スロット ============
   各枠は <img> と .ph（未設置時のプレースホルダー）を重ねて持つ。
   画像が入ると .ph の上に乗り、404 のときは onerror で img が隠れて .ph が見える。 */
.hero-img, .ranking-thumb, .company-body-grid .thumb,
.service-logo-area, .article-card .thumb, .pick-thumb { position: relative; }
.hero-img > img, .ranking-thumb > img, .company-body-grid .thumb > img,
.service-logo-area > img, .article-card .thumb > img, .pick-thumb > img {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.pick-thumb {
  aspect-ratio: 4 / 3;
  background: #fff;
  overflow: hidden;
}

/* バナー画像（提携通過後）に差し替える枠は全体を収める */
.pick-thumb.is-banner { background: #fff; }
.pick-thumb.is-banner > img { object-fit: contain; padding: 10px; }


/* ============ ページ上部へ戻るボタン（site.js が追加） ============
   PC：右下。スマホ：下の追従CTAに重ならない位置 */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 55;
  width: 52px; height: 52px; padding: 0;
  display: grid; place-items: center; align-content: center; gap: 1px;
  background: #fff; color: var(--primary-deep);
  border: 1px solid var(--border-strong); border-radius: 50%;
  box-shadow: var(--shadow-md);
  font: inherit; font-size: 10px; font-weight: 700; letter-spacing: .06em; line-height: 1;
  cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s, background .18s;
}
.to-top::before {
  content: ""; width: 10px; height: 10px; margin-top: 4px;
  border-left: 2px solid currentColor; border-top: 2px solid currentColor;
  transform: rotate(45deg);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--primary-pale); }
.to-top:focus-visible { outline: 3px solid var(--primary-line); outline-offset: 2px; }
@media (max-width: 768px) {
  .to-top { right: 14px; bottom: calc(88px + env(safe-area-inset-bottom)); width: 48px; height: 48px; }
}
@media print { .to-top { display: none !important; } }

/* ============ PCナビ: 「記事一覧」の記事ツリー（ドロップダウン） ============ */
.site-nav .nav-item { position: relative; display: flex; align-items: center; }
.site-nav .nav-item > a { display: inline-flex; align-items: center; gap: 7px; }
.site-nav .nav-item .caret {
  width: 7px; height: 7px; margin-top: -4px; flex: 0 0 auto;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .2s var(--ease);
}
.site-nav .nav-item.is-open .caret { transform: rotate(-135deg); margin-top: 3px; }

.site-nav .nav-sub {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: 470px; max-width: 90vw;
  background: #fff; border: 1px solid var(--border-strong); border-radius: 10px;
  box-shadow: 0 16px 38px rgba(21,84,108,.18);
  padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.site-nav .nav-item.is-open .nav-sub {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.site-nav .nav-sub a {
  display: block; padding: 9px 12px; border-radius: 6px;
  font-size: 12.5px; font-weight: 600; line-height: 1.55;
  color: var(--text); white-space: normal; text-align: left;
}
/* 親の下線アニメ（.site-nav a::after）をツリー内では出さない */
.site-nav .nav-sub a::after { display: none; }
.site-nav .nav-sub a:hover { background: var(--primary-pale); color: var(--link); }
.site-nav .nav-sub a.nav-sub-all {
  grid-column: 1 / -1; color: var(--link); font-weight: 700;
  border-bottom: 1px solid var(--border); border-radius: 0;
  margin-bottom: 6px; padding: 6px 12px 12px;
}

/* ============ フッター（高さを抑えた圧縮レイアウト） ============ */
/* 既定の上書き。footer の CSS はこのブロックが最後に読まれるため後勝ちになる */
.site-footer { padding: 30px 0 0; margin-top: 70px; font-size: 12.5px; line-height: 1.7; }
.footer-inner { grid-template-columns: 1.3fr .85fr 1.85fr .85fr; gap: 26px 30px; padding: 0 20px 22px; }
.footer-brand { margin-bottom: 12px; }
.footer-brand img { height: 44px; }
.footer-inner h4 { font-size: 13px; margin: 0 0 10px; padding-bottom: 7px; }
.footer-inner ul.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.footer-inner li a { font-size: 12px; padding: 3px 0; }
.footer-inner p { font-size: 12px; line-height: 1.75; }
.footer-bottom { padding: 12px 20px; font-size: 11px; }

/* 徹底解説（各社レビューの入口）: 見出しの横へ1行で流す */

@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 22px 26px; }
}
@media (max-width: 768px) {
  .site-footer { padding-top: 26px; margin-top: 60px; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; gap: 18px; }
}

/* ============ スマホドロワー: 「記事一覧」アコーディオン ============ */
@media (max-width: 768px) {
  .nav-drawer .d-group { border-bottom: 1px solid var(--border); }
  .nav-drawer button.d-item {
    display: flex; align-items: center; width: 100%;
    min-height: 52px; padding: 0 4px; margin: 0;
    background: none; border: none; border-bottom: none;
    font-family: inherit; font-size: 14.5px; font-weight: 600;
    color: var(--text); text-align: left; cursor: pointer;
  }
  .nav-drawer button.d-item::before {
    content: ""; width: 3px; height: 16px; background: var(--primary-line);
    border-radius: 2px; margin-right: 10px; flex: 0 0 auto;
  }
  .nav-drawer button.d-item .chev {
    color: var(--primary); font-size: 16px; margin-left: auto;
    transition: transform .2s var(--ease);
  }
  .nav-drawer .d-group.is-open button.d-item .chev { transform: rotate(90deg); }
  .nav-drawer .d-sub {
    display: none; margin: 0 0 10px 4px; padding-left: 13px;
    border-left: 2px solid var(--border);
  }
  .nav-drawer .d-group.is-open .d-sub { display: block; }
  .nav-drawer .d-sub a {
    display: block; padding: 10px 6px; font-size: 13.5px; line-height: 1.6;
    color: var(--text-sub); text-decoration: none;
  }
  .nav-drawer .d-sub a:hover { color: var(--link); }
  .nav-drawer .d-sub a.d-sub-all { color: var(--link); font-weight: 700; padding-bottom: 12px; }
}


/* ============ フッター v3: ブランド帯（上段）＋ 4列横並び（下段） ============ */
/* 上段：ロゴ＋説明文 */
.footer-top {
  max-width: 1240px; margin: 0 auto; padding: 0 20px 20px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px 0;
}
.footer-top .footer-brand { flex: 0 0 auto; line-height: 0; margin: 0; }
.footer-top .footer-brand img { height: 44px; width: auto; display: block; }
.footer-desc { margin: 0 0 0 34px; font-size: 12.5px; line-height: 1.75; color: #B9C6D0; }

/* 下段：比較する／お役立ち情報／徹底解説／サイト情報 を1行に */
.footer-inner {
  max-width: 1240px; padding: 24px 20px 28px;
  grid-template-columns: .85fr 1.7fr 1.05fr 1fr; gap: 26px 30px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer-inner h4 { margin-bottom: 12px; }
.footer-inner ul { display: block; grid-template-columns: none; }

@media (max-width: 1024px) {
  .footer-top { flex-direction: column; align-items: flex-start; gap: 12px; padding-bottom: 18px; }
  .footer-desc { margin: 0; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); gap: 22px 26px; }
}
@media (max-width: 480px) {
  .footer-top { padding-bottom: 16px; }
  .footer-top .footer-brand img { height: 38px; }
  .footer-inner { grid-template-columns: 1fr; gap: 18px; }
}


/* ============ フッター v4: スマホ（〜560px）の高さ圧縮 ============ */
/* 方針: 縦に4ブロック積むのをやめ、横に使えるスペースを使う。
   - 項目の少ない「比較する」「サイト情報」は1行に並べる
   - 項目の多い「お役立ち情報」「徹底解説」は全幅だが、リンク自体を2列に割る
   - 行間・余白・文字を一段詰める（可読性は line-height 1.45 で担保） */
@media (max-width: 560px) {
  .site-footer { padding-top: 22px; margin-top: 48px; }
  .footer-top { padding: 0 16px 14px; gap: 10px 0; }
  .footer-top .footer-brand img { height: 34px; }
  .footer-desc { font-size: 11.5px; line-height: 1.7; }
  .footer-inner {
    grid-template-columns: 1fr 1fr; column-gap: 16px; row-gap: 18px;
    padding: 18px 16px 22px;
  }
  .footer-inner > div { min-width: 0; }
  .footer-inner > div:nth-child(1) { order: 1; }            /* 比較する */
  .footer-inner > div:nth-child(4) { order: 2; }            /* サイト情報 */
  .footer-inner > div:nth-child(2) { order: 3; grid-column: 1 / -1; }  /* お役立ち情報 */
  .footer-inner > div:nth-child(3) { order: 4; grid-column: 1 / -1; }  /* 徹底解説 */
  .footer-inner > div:nth-child(2) ul,
  .footer-inner > div:nth-child(3) ul {
    display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px;
  }
  .footer-inner h4 { font-size: 12.5px; margin-bottom: 8px; padding-bottom: 6px; }
  .footer-inner li a { font-size: 11px; padding: 2px 0; line-height: 1.5; }
  .footer-bottom { padding: 12px 16px; font-size: 10px; line-height: 1.6; text-wrap: balance; }
}


/* ── 金額の数字だけを強調（全ページ共通）────────────────────
   料金の「数字」を一段大きく・太くし、単位（円）との差で見せる。
   companies.json の値は emph() を通して .pnum を付けている。 */
.pnum {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--primary-deep);
  line-height: 1.15;
  letter-spacing: .01em;
}

/* ============================================================
   2026-11 全ページをTOPのテイストに統一（WordPress型）
   背景は白、本文の枠と影を外す、見出しは灰色地＋左の紺線、
   サイドバーは紺の帯の見出し＋ボタン風の社名
   ページ別CSS（page-*.css）より後に効かせるため body を前置する
============================================================ */
:root { --warm-bg:#FFFFFF; }
body { background:#fff; }

/* 本文：枠・影・角丸をやめて白地にそのまま置く */
body .article-title-block,
body .article-main,
body .article-main.article-body { background:#fff; border:0; border-radius:0; box-shadow:none; }
body .article-title-block { padding:8px 0 16px; border-bottom:1px solid var(--border); margin-bottom:24px; }
body .article-main,
body .article-main.article-body { padding:0 0 48px; }

/* 見出し */
body .article-body h2 {
  font-size:22px; line-height:1.5; letter-spacing:.01em;
  background:#F3F3F3; border:0; border-left:5px solid var(--primary-deep);
  padding:10px 16px; margin:56px 0 24px;
}
body .article-body h2::before, body .article-body h2::after { display:none; }
body .article-body h2:first-child { margin-top:0; }
body .article-body h3 {
  font-size:18.5px; line-height:1.55; color:var(--text);
  border:0; border-left:4px solid var(--primary); padding:2px 0 2px 12px; margin:40px 0 18px;
}
body .article-body h3::before, body .article-body h3::after { display:none; }

/* サイドバー：見出しは紺の帯 */
body aside.side .side-block { padding:0; margin:0 0 28px; border:0; background:#fff; box-shadow:none; border-radius:0; }
body aside.side .side-block h4 {
  display:block; font-size:15px; font-weight:700; color:#fff; background:var(--primary-deep);
  padding:8px 12px; margin:0; border:0;
}
body aside.side .side-block h4::after { display:none; }

/* サイドバーの業者：ボタン風の社名＋料金（TOPの地域検索と同じ） */
body aside.side .side-rank-item {
  display:block; padding:10px 2px; border-bottom:1px solid var(--border); color:var(--text); text-decoration:none;
}
body aside.side .side-rank-item:last-child { border-bottom:1px solid var(--border); }
body aside.side .side-rank-num { display:none; }
body aside.side .side-rank-item .n {
  display:inline-block; font-size:14px; font-weight:700; line-height:1.5; color:#222;
  background:#F2F4F6; border:1px solid #D5DBE0; border-radius:4px; padding:2px 10px 2px 8px;
  text-decoration:none;
}
body aside.side .side-rank-item[data-aff] .n::after { content:" ›"; color:var(--muted); }
body aside.side .side-rank-item:hover .n,
body aside.side .side-rank-item:focus-visible .n { background:var(--primary); border-color:var(--primary); color:#fff; text-decoration:none; }
body aside.side .side-rank-item[data-aff]:hover .n::after { color:#fff; }
body aside.side .side-rank-item .s { display:block; margin-top:5px; font-size:12.5px; color:#333; line-height:1.5; }
body aside.side .side-rank-item .s * { color:#333; }

/* サイドバーの関連記事：› 付きの一覧（社名ボタンにしない） */
body aside.side a.side-rank-item:not([data-aff]) { padding:10px 22px 10px 2px; position:relative; }
body aside.side a.side-rank-item:not([data-aff])::after { content:"›"; position:absolute; right:4px; top:50%; transform:translateY(-50%); color:var(--muted); }
body aside.side a.side-rank-item:not([data-aff]) .n {
  display:block; background:none; border:0; padding:0; font-size:13.5px; font-weight:600; line-height:1.6;
}
body aside.side a.side-rank-item:not([data-aff]):hover .n { background:none; color:var(--link); text-decoration:underline; }

/* サイドバーの外枠をやめる */
body aside.side .side-sticky { padding-right:2px; }

/* この記事の要点 */
body .key-points { border-radius:0; box-shadow:none; }
body .key-points .kp-head { border-radius:0; }

/* =====================================================   メリハリ（全記事・レビュー・比較ページ）2026-11-03
   マーカーは各見出しの結論だけに絞り、色を濃くする
============================================================ */
body .article-body strong {
  background:linear-gradient(transparent 50%, #FFE45C 50%);
  font-weight:700; color:#111; padding:0 2px;
}
body .article-body b { font-weight:700; color:#111; background:none; }
/* 金額の数字：一回り大きく・濃い青 */
body .article-body .pnum { font-size:1.25em; font-weight:800; color:var(--primary-deep); letter-spacing:.01em; }
/* ポイントの囲み：青い枠＋見出しラベル、本文より少し大きく */
body .article-body .column-box {
  position:relative; margin:32px 0; padding:26px 22px 18px;
  border:2px solid var(--primary); border-left-width:2px; border-radius:6px; background:#F1F7FA; color:var(--text);
}
body .article-body .column-box .clabel {
  position:absolute; top:-13px; left:16px; padding:2px 12px; border-radius:3px;
  background:var(--primary); color:#fff; font-size:13px; font-weight:700; letter-spacing:.06em;
}
body .article-body .column-box p { margin:0; font-size:17.5px; line-height:1.8; font-weight:600; color:var(--text); }
=======
   2026-11-03 スマホ表示の修正
   ① 横幅：左右の余白を詰めて画面幅いっぱいに使う
   ② 比較ページの社名見出し：3列目（サービス形態）を2段目に回す（縦書き化のバグ）
   ③ 比較表：スマホ標準の密度（文字12.5px・セル余白8px・行高 約48px）
   ④ レビュー中段の「公式サイトを見る」枠：縦並び時に謎の空白が出る問題
============================================================ */
/* 比較表（ランキング）の列幅：PC */
.cmp-rank .c-name { min-width:140px; text-align:left; padding-left:14px; }
.cmp-rank .c-type { min-width:100px; }
.cmp-rank .c-btn { min-width:118px; }
.cmp-rank .c-price { min-width:170px; }
.cmp-rank .c-area { min-width:140px; }
.cmp-rank .c-feat { min-width:130px; }
.cmp-rank td.c-btn .btn-cta { padding:9px 16px; font-size:12.5px; white-space:nowrap; }

@media (max-width:768px) {
  /* ① 横幅 */
  body .article-layout { padding:8px 10px 12px; }
  body .article-title-block,
  body .article-main,
  body .article-main.article-body { padding-left:14px; padding-right:14px; }
  body .company-block { padding:16px 0 20px; border-left:0; border-right:0; }
  body .company-info-table th,
  body .company-info-table td { padding:9px 10px; }
  body .company-info-table th { width:36%; }

  /* ② 社名見出し：順位バッジ＋社名を1段目、サービス形態を2段目（左寄せ） */
  body .company-block-head { grid-template-columns:auto minmax(0,1fr); gap:6px 12px; }
  body .company-block-head > :nth-child(3) { grid-column:1 / -1; text-align:left !important; display:flex; gap:8px; align-items:baseline; flex-wrap:wrap; }
  body .company-block-head > :nth-child(3) > div { font-size:13px !important; }
  body .company-block-head h3 { font-size:20px; }

  /* ③ 比較表 */
  body .compare-table { font-size:12.5px; line-height:1.5; }
  body .compare-table th,
  body .compare-table td { padding:8px 10px; }
  body .compare-table thead th { font-size:12px; white-space:nowrap; }
  body .compare-table .pnum { font-size:1.1em; }
  body .cmp-rank .c-name { min-width:9.5em; padding-left:10px; font-size:13px; }
  body .cmp-rank .c-type { min-width:0; white-space:nowrap; }
  body .cmp-rank .c-btn { min-width:0; }
  body .cmp-rank td.c-btn .btn-cta { min-height:32px; padding:6px 12px; font-size:12px; }
  body .cmp-rank .c-price { min-width:230px; }
  body .cmp-rank .c-area { min-width:120px; }
  body .cmp-rank .c-feat { min-width:210px; }
  body .table-wrap .cmp-rank { min-width:0; }

  /* ④ 中段CTA：縦並びのとき、文の枠が高さ240pxに伸びないようにする */
  body .mid-cta-lead { flex:0 0 auto; }
}
@media (max-width:480px) {
  body .mid-cta { flex-direction:column; align-items:stretch; }
}

/* 2026-11-03 スマホ：「※本記事はプロモーションを含みます。」を16px→14.5pxに（主張しすぎるため） */
@media (max-width:768px) {
  body .article-title-block .pr-note { font-size:14.5px; }
}

/* 2026-11 セクションの動き：見出しの左の線が下から伸びる（site.js の自動リビールと連動） */
.js-reveal .article-body h2[data-reveal],
.js-reveal .wp-sec > .wp-h2[data-reveal] { position:relative; }
.js-reveal .article-body h2[data-reveal]::before,
.js-reveal .wp-sec > .wp-h2[data-reveal]::before {
  content:""; display:block !important; position:absolute; left:-5px; top:0; bottom:0; width:5px;
  background:var(--primary); transform:scaleY(0); transform-origin:bottom;
}
.js-reveal .article-body h2[data-reveal].is-in::before,
.js-reveal .wp-sec > .wp-h2[data-reveal].is-in::before { transform:scaleY(1); transition:transform .7s var(--ease) .15s; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .article-body h2[data-reveal]::before, .js-reveal .wp-sec > .wp-h2[data-reveal]::before { transform:none; }
}

/* 2026-11 動きを分かりやすく：距離を大きく・時間を長く。3社カードは右からスライド */
.js-reveal [data-reveal] { opacity:0; transform:translateY(36px); }
.js-reveal [data-reveal].is-in { opacity:1; transform:none; transition:opacity .9s var(--ease), transform .9s var(--ease); }
.js-reveal .pick-card[data-reveal] { transform:translateX(90px); }
.js-reveal .pick-card[data-reveal].is-in { transform:none; transition:opacity .8s var(--ease), transform .8s cubic-bezier(.16,1,.3,1); }
.pick-band, .pick-band .pick-recommend-wrap { overflow-x:clip; }

/* ============================================================
   2026-11 ページ下部の3社カード
   上部：紺の帯＋下向きの三角＋縦に流れる3つの点（「ここを見て」の動き）
   カード：オレンジ系（上辺・社名帯・項目の点・ボタン）
============================================================ */
.pick-band .pick-recommend-wrap > p {
  position:relative; display:block; margin:0 0 58px !important; padding:14px 20px;
  background:var(--primary-deep); color:#fff; font-size:15.5px; font-weight:700; text-align:center; line-height:1.8; border-radius:4px;
}
.pick-band .pick-recommend-wrap > p strong, .pick-band .pick-recommend-wrap > p b { color:#fff; background:none; }
/* 三角の切り欠き */
.pick-band .pick-recommend-wrap > p::before {
  content:"" !important; display:block !important; position:absolute; left:50%; bottom:-14px; margin:0 !important;
  width:0; height:0; border:0; border-left:14px solid transparent; border-right:14px solid transparent; border-top:14px solid var(--primary-deep);
  transform:translateX(-50%) !important; animation:none !important;
}
/* 縦に流れる3つの点 */
.pick-band .pick-recommend-wrap > p::after {
  content:"" !important; position:absolute; left:50%; top:calc(100% + 18px); margin:0 !important;
  width:6px; height:6px; border:0; border-radius:50%; background:#E35F00;
  box-shadow:0 10px 0 #E35F00, 0 20px 0 #E35F00;
  transform:translateX(-50%) !important; animation:pk-flow 1.4s ease-in-out infinite !important;
}
@keyframes pk-flow {
  0%   { opacity:0; transform:translate(-50%,-6px); }
  40%  { opacity:1; }
  100% { opacity:0; transform:translate(-50%,8px); }
}
@media (prefers-reduced-motion: reduce) { .pick-band .pick-recommend-wrap > p::after { animation:none !important; opacity:1; } }

/* カード：オレンジ系 */
.pick-band .pick-card { border:1px solid #F1D9BF; border-radius:8px; box-shadow:0 4px 14px rgba(200,110,20,.08); overflow:hidden; }
.pick-band .pick-body { padding:0 0 20px; }
.pick-band .pick-body h3 { margin:0 0 14px; padding:14px 18px; background:#FFF3E3; border-bottom:2px solid #E8820C; text-align:center; font-size:18px; }
.pick-band .pick-body h3 a { color:#3A2A18 !important; text-decoration:none !important; }
.pick-band .pick-body h3 a::after { content:" ›"; color:#E8820C; }
.pick-band .pick-body h3 a:hover { color:#C25E00 !important; text-decoration:underline !important; text-underline-offset:4px; }
.pick-band .pick-catch { padding:0 18px; font-size:14px; font-weight:600; color:#3A2A18; }
.pick-band .pick-spec { padding:0 18px; margin:0 0 18px; }
.pick-band .pick-spec li { padding:7px 0 7px 14px; margin:0; border-bottom:1px dashed #EAD9C6; color:#333; }
.pick-band .pick-spec li::before { content:""; position:absolute; left:0; top:15px; width:6px; height:6px; border-radius:50%; background:#E8820C; }
.pick-band .pick-spec strong { color:#7A4A12; }
.pick-band .pick-card .btn-cta,
.pick-band .pick-card a.btn-cta:link,
.pick-band .pick-card a.btn-cta:visited {
  margin:auto 18px 0; width:auto; border-radius:6px; padding:14px 8px; font-size:15px;
  background:#D96A00; box-shadow:0 4px 0 #9C4A00; color:#fff !important;
}
.pick-band .pick-card .btn-cta:hover { background:#C25E00; }
.pick-band .pick-card .btn-cta:active { transform:translateY(3px); box-shadow:0 1px 0 #9C4A00; }
.pick-band .pick-card .btn-cta::after { content:"▶"; font-size:10px; margin-left:8px; }
.pick-band .pick-spec .pnum { color:#B85500; }

/* 2026-11 3社カード：線をなくし、社名帯はオレンジのベタ、ボタンは黄色に黒字（x案） */

.pick-band .pick-card{border:0 !important;box-shadow:0 2px 10px rgba(0,0,0,.10) !important;border-radius:8px}
.pick-band .pick-body h3{border:0 !important;margin:0 0 14px !important}
.pick-band .pick-body h3 a{color:#fff !important}
.pick-band .pick-body h3 a::after{color:#fff !important}
.pick-band .pick-body h3 a:hover{color:#fff !important}
.pick-band .pick-spec li{border:0 !important;padding:3px 0 3px 0 !important}
.pick-band .pick-spec li::before{display:none !important}
.pick-band .pick-spec strong{color:#222 !important}
.pick-band .pick-spec .pnum{color:#222 !important}
.pick-band .pick-catch{color:#222 !important}

.pick-band .pick-body h3{background:#E35F00 !important}
.pick-band .pick-card .btn-cta,.pick-band .pick-card a.btn-cta:link,.pick-band .pick-card a.btn-cta:visited{background:#FFD000 !important;color:#2B2100 !important;box-shadow:0 4px 0 #D9A400 !important}
.pick-band .pick-card .btn-cta::after{color:#2B2100}

/* 2026-11 見出し直後の結論（Bing・Copilotが引用しやすいよう、各見出しの答えを先に1〜2文で置く） */
body .article-body .sec-answer { font-size:17px; font-weight:700; line-height:1.8; color:var(--text); margin:0 0 20px; }
@media (max-width:768px) { body .article-body .sec-answer { font-size:16px; } }

/* 2026-11 本文末尾の関連記事 */
body .article-body .end-related { margin:56px 0 0; }
body .article-body .end-related-h { margin:0 0 16px; }
.end-related-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 16px; }
.end-related-card { display:grid; grid-template-columns:140px minmax(0,1fr); gap:12px; align-items:center; color:var(--text) !important; text-decoration:none !important; font-weight:400 !important; }
.end-related-card .thumb { display:block; aspect-ratio:8/5; position:relative; overflow:hidden; border-radius:3px; background:#E9EEF1; }
.end-related-card .thumb img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.end-related-card .ttl { font-size:14.5px; font-weight:700; line-height:1.6; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.end-related-card:hover .ttl { color:var(--link); text-decoration:underline; }
@media (max-width:768px) { .end-related-grid { grid-template-columns:1fr; } .end-related-card { grid-template-columns:112px minmax(0,1fr); } .end-related-card .ttl { font-size:14px; } }

/* 2026-11 期限カレンダー（親が亡くなった後の手続きの記事） */
body .article-body .kigen-tool { border:2px solid var(--primary-deep); border-radius:8px; padding:18px 20px 14px; margin:28px 0 36px; }
body .article-body .kigen-h { background:none; border:0; padding:0; margin:0 0 12px; font-size:18px; color:var(--primary-deep); }
body .article-body .kigen-h::before { display:none !important; }
.kigen-label { display:block; font-size:14px; font-weight:700; margin:0 0 6px; }
.kigen-input { font:inherit; font-size:16px; height:46px; padding:0 12px; border:1px solid #BFC9CF; border-radius:4px; min-width:220px; }
.kigen-out { margin-top:14px; }
.kigen-out[hidden] { display:none; }
.kigen-table { min-width:0 !important; font-size:14px; }
.kigen-table td, .kigen-table th { padding:9px 10px; }
.kigen-table tr.is-near td { background:#FFF4E5; font-weight:700; }
.kigen-table tr.is-over td { color:var(--muted); }
body .article-body .kigen-note { font-size:12.5px; color:var(--muted); line-height:1.7; margin:8px 0 0; }

/* 2026-11 記事末尾のツール案内（チェックリスト／期限カレンダー）。TOPの入口と同じ枠線のボックス */
body .article-body a.tool-box { display:block; margin:48px 0 0; padding:16px 18px; border:2px solid var(--primary-deep); border-radius:6px; color:var(--text); text-decoration:none; font-weight:400; }
body .article-body a.tool-box:hover { background:#F4F8FA; text-decoration:none; color:var(--text); }
.tool-box-label { display:inline-block; font-size:12px; font-weight:700; color:#fff; background:var(--primary-deep); padding:1px 8px; border-radius:3px; }
.tool-box-title { display:block; margin-top:6px; font-size:17px; font-weight:700; color:var(--primary-deep); }
.tool-box-title::after { content:" ›"; }
.tool-box-desc { display:block; margin-top:4px; font-size:14px; line-height:1.7; color:var(--text-sub); }
/* 期限カレンダー：行ごとの数え方の注記と、休日で繰り下げた表示 */
.kigen-rownote { display:block; margin-top:2px; font-size:11.5px; font-weight:400; color:var(--muted); line-height:1.6; }
.kigen-moved { display:block; margin-top:2px; font-size:11.5px; color:var(--muted); line-height:1.6; }
body .article-body ul.kigen-note { margin:10px 0 0; padding-left:18px; }
body .article-body ul.kigen-note li { font-size:12.5px; color:var(--muted); line-height:1.7; margin:0 0 2px; }
