/* =========================================================
   style-kids.css  ―  子どもの教育・学習テーマ
   ターゲット：幼い子を持つ20代～30代の保護者（女性多め）
   ========================================================= */

/* --------- カラーパレット・変数 --------- */
:root {
  /* メインカラー：あたたかみのあるコーラル＋イエロー＋スカイブルー */
  --bg: #fffdf8;
  --fg: #3a3028;
  --muted: #8c7b70;
  --border: #f0e6da;

  /* アクセント：明るい珊瑚・オレンジ系 */
  --accent: #ff7043;
  --accent-ink: #ffffff;
  --accent-weak: #fff3ee;

  /* サブカラー */
  --sky: #4fc3f7;
  --sky-weak: #e8f7fd;
  --sun: #ffd740;
  --sun-weak: #fffde7;
  --mint: #66bb6a;
  --mint-weak: #e8f5e9;
  --lavender: #ce93d8;
  --lavender-weak: #f8ecfc;

  /* 影・形 */
  --shadow: 0 6px 24px rgba(255, 112, 67, .10);
  --shadow-sm: 0 3px 12px rgba(0, 0, 0, .06);
  --radius: 18px;
  --radius-sm: 10px;
  --container: min(960px, 92vw);
  --lh: 1.8;
}

/* --------- リセット・ベース --------- */
html { scroll-behavior: smooth; }
* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--fg);
  background: var(--bg);
  /* 背景に淡いドット模様で楽しさを追加 */
  background-image: radial-gradient(circle, #ffd74020 1px, transparent 1px);
  background-size: 28px 28px;
  font-family: "Hiragino Maru Gothic ProN", "Hiragino Sans", Meiryo,
    "Yu Gothic", YuGothic, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: var(--lh);
  font-size: 16px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 80px;
}

img { max-width: 100%; height: auto; }

/* --------- 共通UI --------- */
.container {
  width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(12px, 2vw, 20px);
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  margin: -1px; border: 0; padding: 0;
  clip: rect(0 0 0 0); overflow: hidden;
}

.skip-link { position: absolute; left: -9999px; top: auto; }
.skip-link:focus {
  left: 16px; top: 16px; z-index: 1000;
  background: var(--accent); color: var(--accent-ink);
  padding: 8px 12px; border-radius: 8px; box-shadow: var(--shadow);
}

.only-pc { display: block; }
.only-sp { display: none; }
@media screen and (max-width: 767px) {
  .only-pc { display: none; }
  .only-sp { display: block; }
}

/* --------- ヘッダー --------- */
.site-header {
  background: linear-gradient(135deg, #fff8f0 0%, #fff3e0 40%, #e8f7fd 100%);
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--accent), var(--sun), var(--sky)) 1;
  position: relative;
  overflow: hidden;
}

/* 背景の装飾（丸）*/
.site-header::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffd74040, transparent 70%);
  pointer-events: none;
}

.site-header::after {
  content: "PR";
  position: absolute;
  top: 8px; right: 12px;
  color: #fff;
  font-size: .85em;
  font-weight: bold;
  line-height: 1;
  background: linear-gradient(135deg, #ff7043, #ff5722);
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(255,87,34,.3);
}

.site-header .container {
  position: relative;
  padding-block: 0 12px;
}

.brand {
  display: block;
  width: max-content;
  margin: 0;
  padding-top: 16px;
}

.brand img {
  display: block;
  height: auto;
  max-width: 260px;
  width: 100%;
}

/* ページタイトル */
.page-title {
  margin: 10px 0 8px;
  font-size: clamp(22px, 3.4vw, 36px);
  line-height: 1.3;
  text-align: left;
  color: var(--fg);
  font-weight: 800;
  /* アンダーライン装飾 */
  background: linear-gradient(transparent 60%, #ffd74070 60%);
  display: inline;
}

.page-lead {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 2.2vw, 16px);
  text-align: left;
}

/* スマホ */
@media (max-width: 768px) {
  .brand { width: 100%; padding-bottom: 10px; }
  .brand img { max-width: 200px; }
  .site-header .container::after { top: 6px; right: 0; font-size: .8em; }
}

/* ヘッダー中央寄せバリエーション */
.site-header .container.center-header {
  display: flex; flex-direction: column; align-items: center;
  padding-block: 0 16px;
}
.center-header .brand {
  width: auto; margin: 0 auto; padding-top: 36px;
}
.center-header .brand a { display: block; outline: none; text-decoration: none; }
.center-header .brand img { max-width: 480px; width: 100%; height: auto; }
.center-header .page-lead { text-align: center; }

@media (max-width: 768px) {
  .center-header .brand { padding-top: 32px; }
  .center-header .brand img { max-width: 300px; }
}

/* --------- パンくず --------- */
.breadcrumbs { margin: 14px 0 0; }
.breadcrumbs .container {
  display: flex; gap: 4px; flex-wrap: wrap; padding-block: 1px; font-size: 12px;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs li { list-style: none; }
.breadcrumbs li + li::before {
  content: "\203A"; margin-inline: 4px; color: var(--accent); font-size: 1.1em;
}

/* --------- フォントサイズユーティリティ --------- */
.size-s  { font-size: 0.8em; }
.size-xs { font-size: 0.6em; }
.size-l  { font-size: 1.2em; }
.fw-bold  { font-weight: 700; }
.fw-light { font-weight: 300; }
.size-s-light { font-size: 0.9em; font-weight: 300; }
.size-s-bold  { font-size: 0.9em; font-weight: 700; }
.list-head { font-weight: 700; color: #333; margin-right: 4px; }

/* --------- 本文：メタ情報 --------- */
.article-meta {
  color: var(--muted); font-size: .9rem;
  display: flex; gap: 2px; flex-wrap: wrap;
  margin: 0 0 14px; justify-content: flex-end;
}
.container.content p.article-meta {
  margin: 6px 0 12px; font-size: 0.8em; color: #bbb;
}

/* --------- 見出し --------- */

/* h2：ポップな帯スタイル */
.content h2 {
  font-size: clamp(20px, 3vw, 28px);
  margin: 52px 0 24px;
  line-height: 1.35;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, #ff8a65 100%);
  padding: 14px 20px 14px 22px;
  border-radius: var(--radius);
  border: none;
  position: relative;
  box-shadow: 0 4px 16px rgba(255, 112, 67, .25);
}

/* h2 左の絵文字風マーカー */
.content h2::before {
  content: "\2726";
  margin-right: 10px;
  opacity: .85;
  font-style: normal;
}

.content h2::after { display: none; }

/* h3：スカイブルーのアンダーライン */
.content h3 {
  font-size: clamp(18px, 2.6vw, 23px);
  margin: 40px 0 16px;
  padding: 10px 16px;
  border-left: 5px solid var(--sky);
  background: var(--sky-weak);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-weight: 700;
  color: var(--fg);
}

/* h4：ミントのライン */
.content h4 {
  font-size: clamp(16px, 2.3vw, 21px);
  margin: 28px 0 12px;
  padding: 8px 14px;
  border-left: 4px solid var(--mint);
  background: var(--mint-weak);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-weight: 700;
  color: var(--fg);
}

/* h5：ラベンダーのドット */
.content h5 {
  font-size: clamp(15px, 2vw, 18px);
  margin: 20px 0 10px;
  padding: 6px 12px;
  border-left: 3px dotted var(--lavender);
  font-weight: 700;
  color: #7b4fa8;
  background: var(--lavender-weak);
  border-radius: 0 8px 8px 0;
}

.container.content p { margin: 1.6em 0; }

@supports not (color: color-mix(in oklab, white, black)) {
  .content h4 { background: #e8f5e9; }
  .content h5 { background: #f8ecfc; }
}

/* --------- 汎用コンポーネント --------- */
.keypoints { padding-left: 1.2em; }
.keypoints li { margin: .2em 0; }

.table-wrap {
  overflow-x: auto;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}
.table-wrap table { min-width: 560px; }

.steps { counter-reset: step; }
.steps li { margin: .5em 0; padding-left: .4em; }

.summary {
  margin-top: 28px; padding: 20px;
  border: 2px solid #ffd740;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fffde7, #fff8f0);
  box-shadow: 0 4px 16px rgba(255,215,64,.2);
}

.cta { margin-top: 16px; }

.btn-primary {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #ff8a65);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(255,112,67,.3);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,112,67,.35);
}

/* --------- 目次（TOC） --------- */
.toc { margin: 12px auto 32px; }

.toc details {
  border: 2px solid #ffd740;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fffde7 0%, #fff8f0 100%);
  box-shadow: 0 4px 20px rgba(255,215,64,.18);
  overflow: hidden;
}

.toc summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 20px;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--fg);
}

.toc summary::before {
  content: "\1F4DA";
  margin-right: 8px;
  font-style: normal;
}

.toc summary::after {
  content: "▼";
  font-size: 0.85em;
  transform: rotate(0deg);
  transition: transform .25s ease;
  opacity: .6;
}

.toc details[open] summary::after { transform: rotate(-180deg); }

.toc ol {
  margin: 0;
  padding: 4px 20px 16px 44px;
}
.toc li { margin: .4em 0; }
.toc a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 2px dashed #ffd740;
  padding-bottom: 1px;
  transition: color .15s;
}
.toc a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* アンカー到達ハイライト */
.content :target {
  outline: 3px solid var(--sun);
  outline-offset: 4px;
  border-radius: 4px;
}

.content h2, .content h3, .content h4, .content h5 {
  scroll-margin-top: 80px;
}

/* --------- テーブル：横スクロールなし --------- */
.table-fit { margin: 16px 0; }

.fit-table {
  width: 100%; border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.fit-table caption {
  text-align: left; padding: 12px 14px;
  color: var(--muted); font-weight: 700;
}

.fit-table th {
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  color: var(--fg);
  font-weight: 700;
}

.fit-table th, .fit-table td {
  padding: 12px 14px;
  border: 1px solid #f0e0cc;
  text-align: center; vertical-align: middle;
  word-break: break-word; overflow-wrap: anywhere;
  line-height: 1.6; font-size: 0.9em;
}

.fit-table td ul { margin: 0; padding-left: 1.6em; list-style-type: disc; text-align: left; }
.fit-table td ul li { margin: 0.3em 0; }
.fit-table .left  { text-align: left; }
.fit-table .right { text-align: right; }
.fit-table col.col-wide { width: 32%; }

@media (max-width: 640px) {
  .fit-table { font-size: 14px; }
  .fit-table th { padding: 10px; }
  .fit-table td { padding: 10px 4px; }
  .fit-table col.col-wide { width: 36%; }
  .br-sm { display: inline; }
}
.br-sm { display: none; }
.fit-table .wrap { white-space: normal; }
@media (max-width: 480px) { .fit-table .col-opt { display: none; } }

/* --------- テーブル2 --------- */
.table-fit2 { margin: 16px 0; }

.fit-table2 {
  width: 100%; border-collapse: collapse;
  table-layout: fixed; background: #fff;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.fit-table2 caption {
  text-align: left; padding: 12px 14px;
  color: var(--muted); font-weight: 700;
}

.fit-table2 th {
  padding: 12px 14px; border: 1px solid #f0e0cc;
  vertical-align: middle;
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  text-align: center; font-weight: 700;
}

.fit-table2 td {
  padding: 12px 14px; border: 1px solid #f0e0cc;
  text-align: left; vertical-align: middle;
  word-break: break-word; overflow-wrap: anywhere;
  line-height: 1.6; font-size: 0.9em;
}

.fit-table2 .center { text-align: center; }
.fit-table2 .right  { text-align: right; }
.fit-table2 col.col-wide { width: 32%; }

@media (max-width: 640px) {
  .fit-table2 { font-size: 14px; }
  .fit-table2 th { padding: 10px; }
  .fit-table2 td { padding: 10px 4px; }
  .fit-table2 col.col-wide { width: 36%; }
  .fit-table2 .br-sm { display: inline; }
}

.fit-table2 .br-sm { display: none; }
.fit-table2 .wrap { white-space: normal; }
@media (max-width: 480px) { .fit-table2 .col-opt { display: none; } }

td.heading {
  padding: 12px 8px; border: 1px solid #f0e0cc;
  vertical-align: middle;
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  font-weight: bold;
}

/* --------- FAQ --------- */
.faq details {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 14px 18px;
  margin: 12px 0;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease;
}

.faq details:hover {
  box-shadow: 0 6px 20px rgba(255,112,67,.12);
  border-color: #ffd09b;
}

.faq summary {
  cursor: pointer; font-weight: 700;
  display: flex; align-items: flex-start; gap: 8px;
  color: var(--fg);
}

.faq summary::before {
  content: "Q";
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.6em; height: 1.6em;
  background: linear-gradient(135deg, var(--accent), #ff8a65);
  color: #fff; font-weight: 800; font-size: .95em;
  border-radius: 50%;
  margin-top: .05em;
}

.faq .answer {
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--sky-weak);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--sky);
  color: var(--fg);
  position: relative;
}

.faq .answer::before {
  content: "A";
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.5em; height: 1.5em;
  background: var(--sky); color: #fff;
  font-weight: 800; font-size: .9em; border-radius: 50%;
  margin-right: 8px; vertical-align: middle;
}

/* --------- 関連リンク --------- */
.related-links { margin-top: 32px; }
.related-links h2 {
  font-size: 1.2rem; font-weight: 800; margin: 0 0 12px;
  color: var(--accent);
}
.related-links ul { display: grid; gap: 10px; padding-left: 0; list-style: none; }
.related-links li { margin: .2em 0; }
.related-links a {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: #fff; border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--fg); text-decoration: none; font-weight: 600;
  transition: border-color .2s, box-shadow .2s;
}
.related-links a::before { content: "→"; color: var(--accent); font-weight: 800; }
.related-links a:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(255,112,67,.15);
}

.related-title {
  font-size: 1.2rem; font-weight: 800; margin: 24px 0 12px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #fff3e0, #fff8f0);
  border-left: 5px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  line-height: 1.4;
}

/* --------- 参照元・参考資料 --------- */
.ref-box {
  margin: 1.5em 0; padding: 1em 1.2em;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
}

.ref-title {
  font-weight: 800; margin-bottom: .5em;
  font-size: .9rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: .05em;
}

.ref-box ul { margin: 0; padding-left: 1.2em; }
.ref-box li { margin-bottom: .4em; line-height: 1.5; }
.ref-box a {
  color: var(--accent); text-decoration: underline;
  text-underline-offset: 2px;
}
.ref-box a:hover { opacity: .8; }

/* --------- フッター --------- */
.site-footer {
  background: linear-gradient(135deg, #fff8f0 0%, #fff3e0 50%, #e8f7fd 100%);
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--accent), var(--sun), var(--sky)) 1;
  margin-top: 40px;
}

.footer-grid { padding-block: 28px; }

.footer-heading {
  font-size: 1.1rem; font-weight: 800; color: var(--fg);
  margin-bottom: 4px; letter-spacing: .03em;
}

.footer-nav {
  display: flex; flex-wrap: wrap; gap: 14px 18px;
  padding: 0; margin-bottom: 32px; list-style: none;
}
.footer-nav a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.footer-nav a:hover { color: var(--accent); }

.copyright {
  display: block; margin-top: 32px;
  color: var(--muted); font-size: .85rem;
}

.footer-note {
  color: var(--muted); font-size: 0.82rem;
  line-height: 1.7; margin-bottom: 32px;
}
.footer-note + .footer-note { margin-top: 16px; }

/* --------- ページトップへ戻る --------- */
.back-to-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right) + 12px);
  bottom: max(16px, env(safe-area-inset-bottom) + 12px);
  z-index: 1100;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border: 0; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #ff8a65);
  color: var(--accent-ink);
  box-shadow: 0 4px 16px rgba(255,112,67,.35);
  cursor: pointer;
  opacity: 0; transform: translateY(12px) scale(.96);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.back-to-top.is-visible {
  opacity: 1; transform: translateY(0) scale(1);
  pointer-events: auto;
}
.back-to-top:hover { opacity: .9; transform: translateY(-2px) scale(1); }
.back-to-top:focus-visible { outline: 2px solid rgba(0,0,0,.2); outline-offset: 2px; }

@media (max-width: 640px) {
  .back-to-top { width: 46px; height: 46px; bottom: 96px; }
}

/* --------- アイキャッチ --------- */
.eyecatch { text-align: center; }
.eyecatch img {
  display: inline-block; height: auto; max-width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
}

/* --------- Card Loan Box --------- */
:root {
  --loan-accent: var(--accent);
  --loan-cta: #ff7043; --loan-cta-ink: #fff;
  --loan-border: #f0e6da; --loan-muted: var(--muted);
  --loan-shadow: 0 8px 28px rgba(255,112,67,.10);
  --loan-banner-w-pc: 300px;
}

.loan-box {
  display: grid; grid-template-columns: 1fr var(--loan-banner-w-pc);
  gap: 20px; padding: 20px;
  border: 2px solid var(--loan-border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--loan-shadow);
  color: #111;
}
.loan-box + .loan-box { margin-top: 24px; }
.loan-box__content { min-width: 0; }
.loan-box__title {
  margin: 0 0 6px; line-height: 1.25;
  font-size: clamp(20px, 2.6vw, 24px); font-weight: 800;
  border-left: 5px solid var(--loan-accent); padding-left: .6em;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.loan-box__badge {
  font-size: .85rem; color: #d32f2f; font-weight: 800;
  background: #fff176; padding: .2em .7em; border-radius: 999px;
}
.loan-box__note { font-size: 18px; font-weight: 800; margin: 10px 0 6px; }
.loan-box__lead { margin: 0; color: var(--loan-muted); }

.loan-box__specs {
  list-style: none; padding: 0; margin: 14px 0;
  display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr));
}
.loan-box__spec {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--accent-weak);
  padding: 10px 12px;
}
.loan-box__label {
  display: block; margin: 0 0 4px; font-weight: 700;
  font-size: .8rem; color: var(--muted);
}
.loan-box__value { display: block; margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
.loan-box__cta { margin: 6px 0 0; }
.loan-box__btn {
  display: inline-block; width: 100%; text-align: center; text-decoration: none;
  font-weight: 800; padding: 14px 18px; border-radius: 999px;
  background: linear-gradient(135deg, var(--loan-cta), #ff8a65);
  color: var(--loan-cta-ink);
  box-shadow: 0 4px 16px rgba(255,112,67,.3);
  transition: transform .2s, box-shadow .2s;
}
.loan-box__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,112,67,.35);
}
.loan-box__banner { display: flex; justify-content: center; }
.loan-box__banner img {
  width: 100%; max-width: var(--loan-banner-w-pc); height: auto;
  aspect-ratio: 6/5; object-fit: cover;
  border-radius: var(--radius); border: 2px solid var(--border); background: #fff;
}

.loan-box__spectable { display: none; }

@media (min-width: 769px) {
  .loan-box { grid-auto-rows: min-content; }
  .loan-box__banner {
    grid-column: 2; grid-row: 1 / -1;
    align-self: center; display: flex; align-items: center; justify-content: center;
  }
}

@media (max-width: 768px) {
  :root { --loan-sp-banner-w: 130px; --loan-sp-font: 13px; }
  .loan-box {
    grid-template-columns: min(var(--loan-sp-banner-w), 40vw) 1fr;
    grid-template-areas: "title title" "note note" "banner lead" "specs specs" "cta cta";
    gap: 10px 12px; padding: 14px;
  }
  .loan-box__content, .loan-box__header { display: contents; }
  .loan-box__title { grid-area: title; }
  .loan-box__note {
    display: block; grid-area: note; margin: 0;
    color: var(--loan-muted); font-weight: 800; line-height: 1.6; font-size: 16px;
  }
  .loan-box__banner { grid-area: banner; align-self: center; display: flex; align-items: center; justify-content: center; }
  .loan-box__banner img { width: var(--loan-sp-banner-w); max-width: 40vw; height: auto; aspect-ratio: 6/5; object-fit: cover; }
  .loan-box__lead { grid-area: lead; margin: 0; font-size: 14px; line-height: 1.6; }
  .loan-box__specs { display: none; }
  .loan-box__spectable {
    grid-area: specs; display: table; width: 100%;
    border-collapse: separate; border-spacing: 0;
    font-size: var(--loan-sp-font); line-height: 1.5; margin-top: 2px;
  }
  .loan-box__spectable th,
  .loan-box__spectable td {
    padding: 10px 12px; text-align: left; vertical-align: middle;
    border: 1px solid var(--loan-border); background: #fff;
    word-break: break-word; overflow-wrap: anywhere;
  }
  .loan-box__spectable th {
    width: 6em; font-weight: 700; color: var(--fg);
    white-space: nowrap; background: var(--loan-head-bg, #fff3e0);
  }
  .loan-box__spectable tr:first-child th { border-top-left-radius: var(--radius-sm); }
  .loan-box__spectable tr:first-child td { border-top-right-radius: var(--radius-sm); }
  .loan-box__spectable tr:last-child  th { border-bottom-left-radius: var(--radius-sm); }
  .loan-box__spectable tr:last-child  td { border-bottom-right-radius: var(--radius-sm); }
  .loan-box__cta { grid-area: cta; margin-top: 6px; }
  .loan-box__btn { padding: 12px 14px; }
  .loan-box:not(:has(.loan-box__banner img)) {
    grid-template-columns: 1fr;
    grid-template-areas: "title" "note" "lead" "specs" "cta";
  }
}

/* --------- Sitemap --------- */
.sitemap-header { margin: 8px 0 16px; }
.sitemap-header h1 { font-size: clamp(20px, 3.2vw, 28px); margin: 0 0 6px; }
.sitemap-desc { margin: 0; color: var(--muted); font-size: 14px; }
.sitemap-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.sitemap-section {
  background: #fff; border: 2px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 14px 16px;
}
.sitemap-heading {
  display: block; margin: 0 0 8px; font-size: 16px; font-weight: 700; line-height: 1.4;
  border-left: 5px solid var(--accent); padding-left: .6em;
}
.sitemap-list { margin-bottom: 30px; padding-left: 1.2em; list-style: disc; }
.sitemap-list > li { margin: .4em 0; }
.sitemap-list a {
  color: inherit; text-decoration: none;
  border-bottom: 2px dashed rgba(0,0,0,.2);
}
.sitemap-list a:hover { color: var(--accent); border-bottom-color: transparent; }
.sitemap-list ul { margin: .3em 0 .2em; padding-left: 1.2em; list-style: circle; font-size: .95em; }

@media (max-width: 640px) {
  .sitemap-section { padding: 10px 12px; }
  .sitemap-heading { font-size: 15px; }
  .sitemap-list { padding-left: 1.1em; }
}

/* --------- Author Box --------- */
:root { --author-avatar: 80px; }

.author-box {
  display: grid; grid-template-columns: auto 1fr;
  align-items: center; gap: 14px 16px;
  padding: 18px; margin: 44px 0;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fffde7, #fff8f0);
  box-shadow: var(--shadow-sm);
}

.author-box__avatar {
  width: var(--author-avatar); height: var(--author-avatar);
  aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 999px;
  border: 3px solid var(--sun);
  background: #fff;
  box-shadow: 0 4px 12px rgba(255,215,64,.3);
}

.author-box__body { min-width: 0; }
.author-box__title {
  margin: 0 0 4px; font-size: 22px; font-weight: 800; line-height: 1.4;
  border-left: 5px solid var(--accent); padding-left: .6em;
}
.author-box__text { margin: 0; color: var(--muted); line-height: 1.7; }
.author-box__text a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 640px) {
  :root { --author-avatar: 68px; }
  .author-box { padding: 14px; gap: 12px; }
  .author-box__title { font-size: 17px; }
  .author-box__text { font-size: 14px; }
}

@media (max-width: 360px) {
  .author-box { grid-template-columns: 1fr; text-align: center; }
  .author-box__avatar { margin-inline: auto; }
}

/* --------- 引用ボックス --------- */
.quote-box {
  margin: 1.5em auto; padding: 1.4em 1.8em 1.4em 3.2em;
  border-radius: var(--radius);
  background: var(--sun-weak);
  border: 2px solid #ffe082;
  font-style: italic; color: var(--fg);
  position: relative;
}
.quote-box::before {
  content: "\201C";
  font-size: 3.5em; color: #ffc400;
  position: absolute; top: .1em; left: .2em;
  font-style: normal; line-height: 1;
  opacity: .6;
}
.quote-box p { margin: 0; line-height: 1.7; }
.quote-box cite {
  display: block; margin-top: .8em; font-size: .9em;
  font-style: normal; color: var(--muted); text-align: right;
}
.quote-box.alt {
  border: none; border-top: 2px solid #ffe082; border-bottom: 2px solid #ffe082;
  background: transparent;
}
.quote-box.bg { border: none; background: var(--lavender-weak); }

/* --------- リンクカード --------- */
.link-cards { display: grid; gap: 14px; }

.link-card {
  display: flex; flex-direction: row;
  align-items: center; gap: 14px;
  text-decoration: none; color: inherit;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
  max-width: 100%;
}
.link-card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(255,112,67,.15);
  transform: translateY(-2px);
}
.link-card__thumb {
  flex: 0 0 20%; aspect-ratio: 3/2;
  border-radius: var(--radius-sm); overflow: hidden; background: #f3e8e0;
}
.link-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.link-card__body { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.link-card__label {
  font-size: 14px; font-weight: 700; color: var(--accent);
  margin: 0 0 4px; text-transform: uppercase; letter-spacing: .5px;
}
.link-card__title { font-size: 22px; line-height: 1.3; margin: 0; font-weight: 700; color: var(--fg); }
.link-card__excerpt { margin: 0; line-height: 1.5; color: var(--muted); }
.link-card__button {
  align-self: flex-end; margin-top: 4px; display: inline-block;
  padding: 3px 14px; font-size: 14px;
  border: 2px solid var(--border); border-radius: 999px;
  background: var(--accent-weak); color: var(--accent); font-weight: 700;
}

@media (max-width: 640px) {
  .link-card__excerpt { display: none; }
  .link-card__thumb { flex: 0 0 38%; }
  .link-card__title { font-size: 14px; }
  .link-card__button { margin-top: 2px; font-size: 13px; }
}

/* --------- 情報ボックス系 --------- */
.info-box {
  background: var(--sky-weak);
  border-left: 5px solid var(--sky);
  padding: .6em 1em .6em 1em;
  margin: 1.2em 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  position: relative;
}

/* アイコン（U+1F4CC）をCSSで前置 */
.info-box::before {
  content: "\1F4CC";
  display: inline-block;
  margin-right: .4em;
  font-style: normal;
  vertical-align: middle;
  line-height: 1;
}

.info-box p { margin: .5em 0; font-size: .95rem; line-height: 1.6; }

.alert-box {
  display: flex; align-items: center;
  background: #fff8f0;
  border: 2px solid #ffcc80;
  padding: 0 1em; margin: 1.5em 0;
  border-radius: var(--radius-sm);
}
.alert-icon-css {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.7em; height: 1.7em; border-radius: 50%;
  margin-right: .7em; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), #ff8a65);
  color: #fff; font-weight: 800; font-size: .9rem;
}
.alert-icon-css::before { content: "!"; }
.alert-box p { margin: .6em 0; font-size: .95rem; line-height: 1.6; }

.point-box {
  background: var(--sun-weak);
  border: 2px solid #ffd740;
  padding: 1em 1.2em; margin: 1.5em 0;
  border-radius: var(--radius-sm);
}

/* タイトル行の先頭にチェックマーク（U+2705）をCSSで付与 */
.point-box div {
  margin-top: 0; font-size: 1rem; color: #e65100; font-weight: 700;
  display: flex; align-items: center; gap: .4em;
}
.point-box div::before {
  content: "\2705";
  font-style: normal;
  flex-shrink: 0;
  line-height: 1;
}

.point-box ul { margin: .5em 0 0 1em; padding: 0; }
.point-box li { margin-bottom: .3em; font-size: .95rem; }

.tip-box {
  border: 2px dashed #ffd740;
  padding: 0 1em; margin: 1.5em 0;
  border-radius: var(--radius-sm);
  background: #fff;
}
.tip-box p { margin: .6em 0; font-size: .95rem; line-height: 1.6; }

.data-box {
  background: var(--mint-weak);
  border: 2px solid #a5d6a7;
  padding: 0 1em; margin: 1.5em 0;
  border-radius: var(--radius-sm);
  font-size: .95rem;
}
.data-box strong { color: #2e7d32; }

/* --------- 横スクロールカード（HSB） --------- */
@media screen and (max-width: 767px) {
  .hsb-spec { font-size: .8em; }
  .hsb-spec th { width: 36%; }
}
@media screen and (min-width: 768px) {
  .hsb-spec { font-size: 1em; }
}

.hsb-wrap { display: block; }
.hsb-track {
  display: flex; overflow-x: auto; gap: 14px; padding: 12px 10px;
  margin: 0 10px; scroll-snap-type: x proximity;
  scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
}
.hsb-card {
  flex: 0 0 85%; scroll-snap-align: start;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 4px 16px rgba(255,112,67,.08);
  overflow: hidden;
}
.hsb-card__head {
  background: linear-gradient(135deg, #fff3e0 0%, #fff8f0 55%, #fff 100%);
  padding: 14px 4px 2px;
}
.hsb-brand {
  display: flex; justify-content: center; align-items: center; margin-bottom: 10px;
}
.hsb-catch {
  margin: 0; text-align: center; font-size: .95rem;
  color: var(--fg); font-weight: 700; line-height: 1.25;
}
.hsb-metrics { display: grid; grid-template-columns: 1fr; gap: 10px; }
.hsb-metric {
  border: 2px solid var(--border); background: var(--accent-weak);
  border-radius: var(--radius-sm); padding: 8px 12px; margin: 0 10px;
  display: flex; flex-direction: column; min-height: auto;
}
.metric-label { font-size: .78rem; color: var(--muted); font-weight: 700; line-height: 1.2; }
.metric-value { margin-top: 4px; font-size: 1.15rem; font-weight: 800; color: var(--fg); line-height: 1.25; }
.metric-accent { background: #fff3e0; border-color: #ffcc80; }

.hsb-cta {
  display: block; margin: 16px 14px;
  text-align: center; text-decoration: none;
  color: #fff; font-weight: 800; font-size: 1.05rem;
  padding: 16px 18px; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #ff8a65);
  box-shadow: 0 6px 14px rgba(255,112,67,.3);
}
.hsb-dots { text-align: center; margin-top: 8px; }
.hsb-dot {
  display: inline-block; width: 10px; height: 10px; margin: 0 5px;
  background: #ffd09b; border-radius: 50%;
}
.hsb-dot.is-active { background: var(--accent); }

@media screen and (min-width: 768px) {
  .hsb-track {
    display: flex; justify-content: center; gap: 20px;
    overflow-x: visible; padding: 20px; margin: 0 auto; flex-wrap: wrap;
  }
  .hsb-card { flex: 1 1 30%; max-width: 300px; min-width: 200px; }
  .hsb-metrics { grid-template-columns: 1fr; gap: 10px; }
  .hsb-dots { display: none; }
}
@media screen and (max-width: 767px) { .metric-value { font-size: 1rem; } }

/* --------- セクションタイトル装飾 --------- */
.hsb-sec-title.deco-line {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; width: 100%;
  font-size: 1.6rem; font-weight: 800; color: var(--fg); text-align: center;
}
.hsb-sec-title.deco-line .deco-line__text { display: inline-block; padding: 0 2px; }
.hsb-sec-title.deco-line::before,
.hsb-sec-title.deco-line::after {
  content: ""; height: 3px; width: 10px;
  background: linear-gradient(90deg, var(--accent), var(--sun));
  border-radius: 2px;
}
@media (max-width: 640px) { .hsb-sec-title.deco-line { font-size: 1.2rem; } }

/* --------- ボタン系 --------- */
.btn-red {
  display: inline-block;
  background: linear-gradient(135deg, #ff5252, #e53935);
  color: #fff; text-decoration: none; font-weight: 800;
  padding: 10px 20px; border-radius: 999px; text-align: center;
  transition: transform .2s, box-shadow .2s;
  font-size: .95rem; box-shadow: 0 4px 14px rgba(229,57,53,.3);
}
.btn-red:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(229,57,53,.35); }
@media (max-width: 640px) { .btn-red { font-size: .8rem; padding: 8px 14px; } }

.section-title {
  text-align: center; font-size: 1.2rem; font-weight: 800;
  margin: 2em 0 1.5em; position: relative; color: var(--fg);
}
.section-title::after {
  content: ""; display: block; width: 60px; height: 4px;
  margin: .5em auto 0;
  background: linear-gradient(90deg, var(--accent), var(--sun));
  border-radius: 999px;
}
@media (min-width: 768px) { .section-title { font-size: 1.6rem; } }

/* --------- 追尾CTA --------- */
.lp-float-cta {
  position: fixed; bottom: 20px; left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 20px));
  width: calc(100% - 40px); max-width: 420px;
  padding: 0; box-shadow: 0 4px 24px rgba(255,112,67,.3);
  border-radius: 999px; z-index: 1000;
  opacity: 0; transition: opacity .5s ease, transform .5s ease;
  pointer-events: none; visibility: hidden;
}
.lp-float-cta.cta-acom  { background: linear-gradient(135deg, #dc0000, #b71c1c); }
.lp-float-cta.cta-aiful { background: linear-gradient(135deg, #ea0000, #c62828); }
.lp-float-cta.cta-promise{ background: linear-gradient(135deg, #00479d, #01579b); }
.lp-float-cta.cta-mobit { background: linear-gradient(135deg, #0d3c2c, #1b5e20); }
.lp-float-cta-init { display: block; }
.lp-float-cta.visible {
  opacity: 1; transform: translateX(-50%) translateY(0);
  pointer-events: auto; visibility: visible;
}
.lp-float-cta-link {
  display: block; color: #fff; text-align: center;
  font-size: 20px; font-weight: 800; text-decoration: none;
  padding: 14px 18px; border-radius: 999px;
}
.lp-float-cta.visible .lp-float-cta-link {
  animation: lpCtaBounce 3s ease-in-out infinite;
}
@keyframes lpCtaBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}
.lp-float-cta-main { font-size: 16px; margin-bottom: 3px; }
.lp-float-cta-sub  { font-size: 13px; opacity: .95; }

/* --------- 記事CTAボタン --------- */
.article-cta_container { text-align: center; margin: 24px 0; }
.article-cta_copy { font-size: .85rem; color: var(--muted); margin: 4px 0; }
.article-cta_copy--top::before { content: "＼ "; }
.article-cta_copy--top::after  { content: " ／"; }
.article-cta_btn {
  display: inline-block; width: 100%; max-width: 420px;
  text-align: center; text-decoration: none; font-weight: 800;
  padding: 14px 18px; border-radius: 999px; color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  transition: transform .2s, opacity .2s;
}
.article-cta_btn:hover { opacity: .88; transform: translateY(-2px); }
.article-cta_btn--promise { background: linear-gradient(135deg, #005BAC, #0277bd); }
.article-cta_btn--acom    { background: linear-gradient(135deg, #E60012, #b71c1c); }
.article-cta_btn--aiful   { background: linear-gradient(135deg, #C9002B, #880e4f); }
.article-cta_btn--mobit   { background: linear-gradient(135deg, #006134, #1b5e20); }

/* --------- アンケート概要 --------- */
.survey-box {
  border: 2px solid var(--border); border-radius: var(--radius);
  padding: 20px 24px; margin: 32px 0; background: #fff;
}
.survey-box > p:first-child { margin-top: 0; margin-bottom: 8px; font-size: .95em; }
.survey-box > p:nth-child(2) { margin-top: 0; margin-bottom: 16px; font-size: .875em; color: var(--muted); line-height: 1.7; }
.survey-box details { border-top: 2px dashed var(--border); padding-top: 16px; }
.survey-box summary {
  cursor: pointer; font-size: .875em; color: var(--muted);
  list-style: none; display: inline-flex; align-items: center;
  gap: 6px; user-select: none;
}
.survey-box summary::-webkit-details-marker { display: none; }
.survey-box summary::before { content: "\25B6"; font-size: .7em; transition: transform .2s ease; }
.survey-box details[open] summary::before { transform: rotate(90deg); }
.survey-box details[open] summary { margin-bottom: 20px; }
.survey-box table { width: 100%; border-collapse: collapse; font-size: .875em; margin: 8px 0 24px; }
.survey-box thead tr { background: var(--accent-weak); }
.survey-box th,
.survey-box td { padding: 8px 12px; border: 1px solid var(--border); text-align: left; line-height: 1.6; }
.survey-box th { font-weight: 700; white-space: nowrap; }
.survey-box td:nth-child(2),
.survey-box td:nth-child(3) { white-space: nowrap; text-align: right; }
.survey-box details > p strong { display: block; margin: 20px 0 6px; font-size: .9em; color: var(--fg); }
.survey-box details > p:first-of-type strong { margin-top: 0; }
.survey-box ul { margin: 8px 0 0; padding-left: 1.4em; font-size: .875em; line-height: 1.8; color: var(--muted); }
.survey-box ul li { margin-bottom: 4px; }
@media (max-width: 600px) { .survey-box { padding: 16px; } }

/* --------- レスポンシブ微調整 --------- */
@media (min-width: 768px) { .page-lead { max-width: 70ch; } }
@media (max-width: 640px) { .content.container { padding-inline: 2px; } }