@charset "UTF-8";
/* ============================================================
   いちばんやさしい終活ガイド　シニア向け読みやすさ調整（2026年11月）

   renewal.css の「あと」に読み込み、上書きするだけのファイルです。
   元のデザインに戻したいときは、header.php の senior.css の行を消せば戻ります。

   目次
   S1 デザイントークン（色・書体）
   S2 本文の文字サイズ・行間
   S3 見出し（丸ゴシックでやわらかく）
   S4 小さな文字・補足の文字を読める大きさに
   S5 リンクとボタン（押しやすく、押せるとわかるように）
   S6 目次（長い目次は折りたたむ）
   S7 本文の装飾パーツ（Q&A・表・商品・注意）
   S8 図解・画像
   S9 新しい装飾：この記事の答え（.answer-first）
   S10 印刷
   ============================================================ */

/* ---------- S1 デザイントークン ---------- */
:root {
  /* 文字色：薄いグレーをやめ、黒に近い色に（白地でのコントラスト 7:1 以上） */
  --ink: #2b2e2c;       /* 見出し        13.7:1 */
  --text: #353936;      /* 本文          12  :1 */
  --muted: #575c58;     /* 補足          6.8 :1（旧 #7a7f7b は 4.1:1） */
  --subtle: #6b706c;    /* さらに補足    5.0 :1（旧 #a1a5a1 は 2.5:1） */
  --line-2: #cfd2cb;

  /* 緑：白い文字を乗せても読めるよう、少しだけ深く */
  --primary: #2f7a68;        /* 白文字とのコントラスト 5.1:1（旧 4.1:1） */
  --primary-hover: #26665a;
  --primary-ink: #23604f;    /* 緑の文字  7.3:1 */

  /* 書体：本文は読み間違えにくいUDフォント、見出しは丸ゴシック */
  --font: "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  --font-head: "Zen Maru Gothic", "BIZ UDPGothic", "Hiragino Maru Gothic ProN", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-num: var(--font);   /* 細い数字（Quicksand）は読みにくいので本文と同じ書体に */
}

/* ---------- S2 本文の文字サイズ・行間 ---------- */
body.rn {
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: .04em;
  -webkit-font-smoothing: auto; /* 文字が細く見えないように */
}
.rn .post_body,
.rn .post_body p {
  font-size: 18px;
  line-height: 1.95;
  /* 両端そろえは字間が不自然に空くことがあるので左そろえに */
  text-align: left;
}
.rn .post_body p { margin-bottom: 1.5em; }
.rn .post_body ul li,
.rn .post_body ol li { font-size: 18px; line-height: 1.9; margin-bottom: 12px; }
.rn .post_body strong { font-weight: 700; color: var(--ink); }
@media (max-width: 767px) {
  body.rn { font-size: 16px; }
  .rn .post_body,
  .rn .post_body p,
  .rn .post_body ul li,
  .rn .post_body ol li { font-size: 17px; line-height: 1.9; }
}

/* ---------- S3 見出し（丸ゴシックでやわらかく） ---------- */
.hero-title, .section-title, .page-title, .article-title, .block-title, .en-band-title,
.brand-name, .footer-brand, .chapter-name, .guide-chapter-title strong, .empty-title, .term-card-title,
.rn .post_body h2, .rn .post_body h3, .notfound .page-title,
.card.is-text .card-title {
  font-family: var(--font-head);
  font-weight: 700;
  /* 丸ゴシックはカタカナの字間が広く見えるので、文字ごとの幅で詰める */
  font-feature-settings: "palt" 1;
}
.hero-title, .section-title, .page-title { font-weight: 700; letter-spacing: .06em; }
.article-title { font-size: 32px; letter-spacing: .04em; line-height: 1.55; }
.rn .post_body h2 { font-size: 26px; letter-spacing: .02em; }
.rn .post_body h3 { font-size: 22px; letter-spacing: .02em; }
.rn .post_body h4 { font-size: 19px; }
@media (max-width: 767px) {
  .article-title { font-size: 24px; }
  .rn .post_body h2 { font-size: 22px; }
  .rn .post_body h3 { font-size: 19px; }
  .rn .post_body h4 { font-size: 18px; }
}

/* ---------- S4 小さな文字・補足の文字を読める大きさに ---------- */
/* 目安：補足でも15px、スマホでも14px を下回らない */
.article-meta { font-size: 15px; color: var(--muted); }
.article-lead { font-size: 17px; color: var(--text); }
.crumb { font-size: 14px; }
.rn .tag, .rn a.tag:visited { font-size: 14px; padding: 3px 12px; }
.rn .post_body p.fine-print { font-size: 14px; color: var(--muted); }
.rn .post_body p.fine-print-pr::before { font-size: 12px; line-height: 18px; }
.rn .post_body .product_sub { font-size: 15px !important; }
.rn .post_body .product_price .tax { font-size: 15px; }
.card-desc { font-size: 15px; color: var(--muted); }
.card-time { font-size: 14px; color: var(--muted); }
.card-title { font-size: 17px; }
.rn .en-inline-text p { font-size: 15px; color: var(--text); }
.rn .en-inline-text .en-inline-title { font-size: 17px; }
.rn .notice p { font-size: 14px; color: var(--muted); }
.rn .ad_box .ad_title { font-size: 13px; color: var(--subtle); }
.footer-nav-title { font-size: 14px; }
.adjacent-item small { font-size: 14px; color: var(--muted); }
.adjacent-item span { font-size: 16px; }
.rn .acc-panel a { font-size: 16px; padding: 10px 0; }
@media (max-width: 767px) {
  .article-meta, .crumb { font-size: 14px; }
  .rn .post_body p.fine-print { font-size: 14px; }
  .card-grid .card-title { font-size: 16px; }
  .card-grid .card.is-text .card-desc { font-size: 14px; }
}

/* ---------- S5 リンクとボタン（押しやすく、押せるとわかるように） ---------- */
/* 本文のリンクは、色だけでなくはっきりした下線で示す */
.rn .post_body a {
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}
.rn .post_body a:hover { text-decoration-thickness: 2.5px; }

/* ボタン：高さ52px以上・文字16px */
.btn { min-height: 52px; font-size: 16px; letter-spacing: .04em; }
.btn-sm { min-height: 44px; font-size: 15px; }
.btn-lg { min-height: 58px; font-size: 18px; }

/* ナビ・チップ・ページ送りなど、指で押す場所は高さ44px以上 */
.rn .gnav a, .rn .gnav a:visited { font-size: 16px; padding: 10px 14px; }
.rn .chips a, .rn .chips a:visited { min-height: 44px; padding: 0 18px; font-size: 15px; }
.rn .pills a, .rn .pills a:visited { min-height: 48px; font-size: 16px; }
.rn .drawer-links a { font-size: 17px; padding: 16px; }

/* 商品ボックスの「Amazonで見る ›」を、文字リンクからボタンに */
.rn .post_body .product_box.is-link .product_shop {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; margin: 14px 0 0 !important; padding: 0 20px;
  border-radius: 10px; background: var(--primary); color: #fff;
  font-size: 16px !important; text-align: center;
}
.rn .post_body .product_box.is-link:hover .product_shop { background: var(--primary-hover); }
.rn .post_body .product_btn a, .rn .post_body .product_btn a:visited { min-height: 48px; font-size: 16px; }
@media (max-width: 767px) {
  .rn .post_body .product_box.is-link .product_shop { display: flex; width: 100%; font-size: 16px !important; }
}

/* 「No.1・No.2…」のようにページ内リンクが並ぶ段落は、JSで .jump-buttons を付けてボタンの列にする */
.rn .post_body p.jump-buttons { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.rn .post_body p.jump-buttons .jump-label { flex-basis: 100%; margin-bottom: 2px; color: var(--muted); font-size: 16px; }
.rn .post_body p.jump-buttons a,
.rn .post_body p.jump-buttons a:visited {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 76px; min-height: 48px; padding: 0 16px;
  border: 1.5px solid var(--primary); border-radius: 10px; background: #fff;
  color: var(--primary-ink); font-size: 17px; font-weight: 700; text-decoration: none;
}
.rn .post_body p.jump-buttons a:hover { background: var(--primary-soft); }

/* フォーカス枠をはっきり（キーボード操作の方のために） */
.rn :focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

/* ---------- 印刷ボタン（記事の日付の横） ---------- */
.rn .print-btn {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 14px; margin-left: auto;
  border: 1px solid var(--line-2); border-radius: 999px; background: #fff;
  color: var(--ink); font-size: 15px; font-weight: 700;
}
.rn .print-btn:hover { border-color: var(--primary); color: var(--primary-ink); }
@media (max-width: 767px) { .rn .print-btn { margin-left: 0; } }

/* ---------- S6 目次（長い目次は折りたたむ） ---------- */
.rn #toc { font-size: 17px; }
.rn #toc .toc_title { font-size: 18px; }
.rn #toc ol > li { font-size: 17px; }
.rn #toc ol ol > li { font-size: 16px; }
.rn #toc > ol > li { padding: 10px 0; }
.rn #toc ol ol > li { margin-top: 8px; }
/* JSが .is-collapsed を付けたら、2段目（H3）を隠す */
.rn #toc.is-collapsed ol ol { display: none; }
.rn .toc-toggle {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 48px; margin-top: 14px;
  border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff;
  color: var(--primary-ink); font-size: 16px; font-weight: 700;
}
.rn .toc-toggle:hover { border-color: var(--primary); }
.rn .toc-toggle .i { transition: transform .2s; }
.rn .toc-toggle[aria-expanded="true"] .i { transform: rotate(180deg); }

/* ---------- S7 本文の装飾パーツ ---------- */
/* 冒頭の枠 */
.rn .post_body .firstly p { font-size: 17px; }
.rn .post_body .firstly ul li { font-size: 17px; }
.rn .post_body .firstly .firstly-label { font-size: 16px; }

/* よくある質問：赤い「A」は注意や警告を連想させるので、サイトの緑に */
.rn #box_qa .question { font-size: 18px; }
.rn #box_qa .answer::before { border-color: var(--primary); color: var(--primary-ink); }
.rn #box_qa .answer p { font-size: 17px; }
@media (max-width: 767px) {
  .rn #box_qa .question { font-size: 17px; }
  .rn #box_qa .answer p { font-size: 16px; }
}

/* 表：文字を大きく、見出し列ははっきり */
.rn .post_body table { font-size: 16px; }
.rn .post_body table thead th { font-size: 16px; color: var(--ink); }
.rn .post_body table tbody th { font-size: 16px; }
.rn .post_body table th, .rn .post_body table td { padding: 14px 16px; line-height: 1.75; }
/* 横にスクロールできる表には、スマホでそのことを書き添える */
@media (max-width: 767px) {
  .table-scroll { position: relative; }
  .table-scroll.is-overflow::before {
    content: "← 表は横に動かせます →";
    display: block; padding: 6px 12px; background: var(--surface-2);
    border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; text-align: center;
  }
}

/* 商品ボックス */
.rn .post_body .product_title { font-size: 19px !important; }
@media (max-width: 767px) { .rn .post_body .product_title { font-size: 17px !important; } }

/* 注意ボックス */
.rn .post_body .freebox .title { font-size: 16px; }
.rn .post_body .freebox ul li { font-size: 17px; }

/* マーカー */
.rn .post_body .marker { background: linear-gradient(transparent 55%, #cfe6dc 55%); }

/* ---------- S8 図解・画像 ---------- */
/* 図解は記事の幅いっぱいに。拡大しやすいよう、押すと大きく開くリンクにしてもよい */
.rn .post_body figure { margin: 0 0 2em; }
.rn .post_body figure img { display: block; max-width: 100%; height: auto; margin-left: auto; margin-right: auto; }
.rn .post_body figcaption { margin-top: 8px; color: var(--muted); font-size: 15px; text-align: center; }

/* ---------- S9 新しい装飾：この記事の答え（.answer-first） ----------
   使い方（記事の冒頭に置く）：
   <div class="answer-first">
     <p class="answer-first-label">この記事の答え</p>
     <ul><li>…</li><li>…</li><li>…</li></ul>
   </div>
*/
.rn .post_body .answer-first {
  margin: 0 0 2em; padding: 22px 26px;
  border: 2px solid var(--primary); border-radius: var(--r-lg); background: #fff;
}
.rn .post_body .answer-first-label {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px;
  color: var(--primary-ink); font-family: var(--font-head); font-size: 19px; font-weight: 700;
}
.rn .post_body .answer-first-label::before {
  content: ""; width: 26px; height: 26px; flex: none;
  border-radius: 50%; background: var(--primary)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.rn .post_body .answer-first ul { margin: 0; padding: 0; }
.rn .post_body .answer-first ul li { margin-bottom: 8px; font-weight: 700; color: var(--ink); }
.rn .post_body .answer-first > :last-child, .rn .post_body .answer-first ul li:last-child { margin-bottom: 0; }
@media (max-width: 767px) { .rn .post_body .answer-first { padding: 18px 16px; } }

/* ---------- S10 印刷 ---------- */
@media print {
  .print-btn, .toc-toggle, #toc, .crumb, .article-terms, .article-tags, .product_shop, .product_btn, .notice { display: none !important; }
  body.rn, .rn .post_body, .rn .post_body p, .rn .post_body li { color: #000; font-size: 11pt; line-height: 1.8; }
  .article-title { font-size: 18pt; }
  .rn .post_body h2 { font-size: 15pt; margin-top: 24pt; }
  .rn .post_body h3 { font-size: 13pt; }
  .rn .post_body h2, .rn .post_body h3, .rn .post_body figure, .rn .post_body img, .rn #box_qa .qa_item, .rn .post_body table { break-inside: avoid; page-break-inside: avoid; }
  .rn .post_body h2, .rn .post_body h3 { break-after: avoid; page-break-after: avoid; }
  .table-scroll { overflow: visible; border: 0; }
  .table-scroll > table { min-width: 0; width: 100%; }
}

/* ---------- S11 ヘッダーのサイト名：パソコンでは1行に ----------
   「いちばんやさしい」と「終活ガイド」を同じ大きさ・同じ書体で、1行で表示する。
   スマホ・タブレット（899px以下）は、これまでどおり2段のまま */
@media (min-width: 900px) {
  .brand-name { flex-direction: row; align-items: baseline; gap: 0; font-size: 20px; letter-spacing: .01em; line-height: 1.3; white-space: nowrap; font-feature-settings: "palt" 1; }
  .brand-sub { font-family: var(--font-head); font-size: inherit; font-weight: inherit; letter-spacing: inherit; color: inherit; }
}

/* ---------- S12 囲み枠の中の最初の見出し・段落の上に余白を作らない ----------
   本文の h2 には上に 72px の余白（renewal.css）があり、用語集の「〇〇とは？」の枠（.term_mean）などの
   中でもその余白が効いて、枠の上がぽっかり空いていたのを直す */
.rn .post_body :is(.term_mean, .box, .waku, .box_black, .box_noborder, .box_border, .firstly, .answer-first, .matome > div, .info_box) > :first-child { margin-top: 0; }
.rn .post_body_terms .term_mean h2 { margin: 0 0 24px; }
@media (max-width: 767px) {
  .rn .post_body_terms .term_mean h2 { margin-bottom: 18px; }
}
