@charset "UTF-8";
/* ============================================================
   いちばんやさしい終活ガイド　リニューアル（2026）
   姉妹サイト「いちばんやさしいエンディングノート」とデザインを統一

   目次
   01 デザイントークン
   02 ベース
   03 共通パーツ（ボタン・タグ・チップ・検索バー）
   04 ヘッダー・ドロワー・検索パネル
   05 フッター
   06 トップページ
   07 一覧ページ（カード・ページ見出し・ページ送り）
   08 終活の基本（目次・章・記事）
   09 用語集
   10 記事ページ（レイアウト・記事下パーツ）
   11 記事本文（既存の装飾パーツの調整）
   12 ユーティリティ
   ============================================================ */

/* ---------- 01 デザイントークン ---------- */
:root {
  /* 色合い：白に近い背景＋淡いセージの面、落ち着いたティールグリーン、温かみのあるグレーの文字 */
  --bg: #f5f6f2;
  --surface: #ffffff;
  --surface-2: #f7f8f5;
  --ink: #444845;
  --text: #555a57;
  --muted: #7a7f7b;
  --subtle: #a1a5a1;
  --line: #e7e8e3;
  --line-2: #dadcd6;
  --primary: #388c78;
  --primary-hover: #2f7a68;
  --primary-ink: #2e7766;
  --primary-soft: #ebf4f0;
  --primary-tint: #deede6;
  --dashed: #a8cabd;
  --red-soft: #f8ecea;
  --red-ink: #a8524a;
  --footer: #f4f6f0;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --shadow: 0 1px 2px rgba(68, 72, 69, .04), 0 6px 20px rgba(68, 72, 69, .05);
  --shadow-hover: 0 2px 4px rgba(68, 72, 69, .05), 0 12px 28px rgba(68, 72, 69, .08);

  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  --font-head: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  --font-num: "Quicksand", var(--font);
  --container: 1120px;
  --gutter: 24px;
  --header-h: 68px;
}
@media (max-width: 767px) {
  :root { --gutter: 16px; --header-h: 58px; }
}

/* ---------- 02 ベース ---------- */
html { scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
html.is-locked { overflow: hidden; }
body.rn {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt" 0;
}
.rn *, .rn *::before, .rn *::after { box-sizing: border-box; }
.rn p, .rn li, .rn dd, .rn td { text-align: inherit; }
.rn a { color: var(--primary-ink); text-decoration: none; transition: color .15s, background-color .15s, border-color .15s, box-shadow .2s, transform .2s; }
.rn a:visited { color: var(--primary-ink); }
.rn a:hover { color: var(--primary); text-decoration: none; }
.rn strong, .rn b { font-weight: 700; }
.rn img { max-width: 100%; height: auto; }
.rn :focus-visible { outline: 3px solid rgba(56, 140, 120, .45); outline-offset: 2px; border-radius: 6px; }
.rn button { font-family: inherit; cursor: pointer; }
.i { flex: none; vertical-align: middle; }
/* 旧デザインの small { float:right } などを打ち消す */
.rn small { float: none; width: auto; text-align: inherit; padding: 0; box-sizing: border-box; }

.skip-link { position: absolute; left: 8px; top: -60px; z-index: 200; background: var(--ink); color: #fff !important; padding: 8px 16px; border-radius: var(--r-sm); }
.skip-link:focus { top: 8px; }
.screen-reader { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: calc(800px + var(--gutter) * 2); }
.site-main { display: block; min-height: 60vh; padding-bottom: 80px; }
body.home .site-main { padding-bottom: 0; }

/* ---------- 03 共通パーツ ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 1.5px solid transparent; border-radius: 10px;
  font-size: 15px; font-weight: 700; line-height: 1.3; letter-spacing: .06em;
  white-space: nowrap; cursor: pointer;
}
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.rn .btn-primary, .rn .btn-primary:visited { background: var(--primary); color: #fff; }
.rn .btn-primary:hover { background: var(--primary-hover); color: #fff; }
.rn .btn-outline, .rn .btn-outline:visited { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.rn .btn-outline:hover { border-color: var(--primary); color: var(--primary-ink); }
.rn .btn-white, .rn .btn-white:visited { background: var(--primary); color: #fff; }
.rn .btn-white:hover { background: var(--primary-hover); color: #fff; }
.btn .i { transition: transform .2s; }
.btn:hover .i-arrow { transform: translateX(3px); }

.rn .text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; color: var(--primary-ink); letter-spacing: .05em; }
.text-link:hover .i-arrow { transform: translateX(3px); }
.text-link .i { transition: transform .2s; }

.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--primary-tint); color: var(--primary-ink); font-size: 13px; font-weight: 700; letter-spacing: .06em; margin: 0 0 20px; }
.eyebrow { margin: 0 0 8px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .14em; }

.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.rn .tag, .rn a.tag:visited {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 10px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary-ink);
  font-size: 12px; font-weight: 700; line-height: 1.7; letter-spacing: .04em;
}
.rn a.tag:hover { background: var(--primary-tint); }
.tag-guide { background: var(--primary) !important; color: #fff !important; }
.tag-hot { background: var(--red-soft) !important; color: var(--red-ink) !important; }
.tag-step { background: transparent !important; border: 1px solid var(--line-2); color: var(--muted) !important; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { margin: 0; padding: 0; }
.chips li::after, .chips li::before { content: none !important; }
.rn .chips a, .rn .chips a:visited {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface);
  color: var(--ink); font-size: 14px; font-weight: 500;
}
.rn .chips a:hover { border-color: var(--primary); color: var(--primary-ink); background: var(--primary-soft); }
.chips-lg a { min-height: 44px !important; padding: 0 18px !important; font-size: 15px !important; }
.chips-tag a::before { content: "#"; color: var(--subtle); margin-right: 2px; }

.searchbar { position: relative; display: flex; gap: 8px; align-items: center; margin: 0; }
.searchbar-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--subtle); display: flex; pointer-events: none; }
.rn .searchbar input[type="search"] {
  flex: 1; min-width: 0; height: 52px; padding: 0 16px 0 46px;
  border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--surface);
  font-family: inherit; font-size: 16px; color: var(--ink); -webkit-appearance: none; appearance: none;
}
.rn .searchbar input[type="search"]::placeholder { color: var(--subtle); }
.rn .searchbar input[type="search"]:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(56, 140, 120, .14); }
.searchbar .btn { min-height: 52px; border-radius: 12px; padding: 0 22px; }

/* ---------- 04 ヘッダー ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px); transition: box-shadow .2s; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header.is-scrolled { box-shadow: 0 4px 16px rgba(68, 72, 69, .06); }
.site-header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.brand { margin: 0; font-size: inherit; line-height: 1; flex: none; }
.rn .brand a, .rn .brand a:visited { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--primary-soft); color: var(--primary-ink); flex: none; }
.brand-name { display: flex; flex-direction: column; gap: 3px; font-size: 18px; font-weight: 700; letter-spacing: .14em; line-height: 1.1; }
.brand-sub { font-size: 11px; font-weight: 500; letter-spacing: .16em; color: var(--muted); }

.gnav { margin-left: auto; }
.gnav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.rn .gnav a, .rn .gnav a:visited { position: relative; display: block; padding: 8px 14px; border-radius: 8px; color: var(--ink); font-size: 15px; font-weight: 500; letter-spacing: .06em; }
.rn .gnav a:hover { background: var(--surface-2); color: var(--primary-ink); }
.gnav a[aria-current="page"] { color: var(--primary-ink) !important; font-weight: 700; }
.gnav a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -13px; height: 2px; background: var(--primary); border-radius: 2px; }

.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--ink); }
.icon-btn:hover { background: var(--surface-2); color: var(--primary-ink); }
.menu-btn { display: none; }

@media (max-width: 1023px) {
  .gnav { display: none; }
  .menu-btn { display: inline-flex; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 767px) {
  .site-header-inner { gap: 8px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 9px; }
  .brand-mark svg { width: 19px; height: 19px; }
  .rn .brand a { gap: 10px; }
  .brand-name { font-size: 16px; letter-spacing: .1em; }
  .brand-sub { font-size: 10px; }
  .header-cta { display: none !important; }
  .header-actions { gap: 0; }
}

/* ドロワー・検索パネル */
.overlay { position: fixed; inset: 0; z-index: 90; background: rgba(68, 72, 69, .4); opacity: 0; transition: opacity .25s; }
.overlay.is-open { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: min(400px, 92vw); background: var(--bg);
  transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1), visibility .3s;
  visibility: hidden; display: flex; flex-direction: column;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer-head, .search-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 20px; border-bottom: 1px solid var(--line); background: var(--surface); }
.drawer-title { margin: 0; font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: .08em; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px; -webkit-overflow-scrolling: touch; }
.drawer-body .searchbar input[type="search"] { height: 48px; font-size: 15px; }
.drawer-body .searchbar .btn { min-height: 48px; padding: 0 16px; }
.drawer-links { list-style: none; margin: 20px 0 0; padding: 0; background: var(--surface); border-radius: var(--r-md); overflow: hidden; }
.drawer-links li + li { border-top: 1px solid var(--line); }
.rn .drawer-links a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: var(--ink); font-weight: 500; }
.rn .drawer-links a:hover { background: var(--surface-2); }
.drawer-links .i { color: var(--primary); }
.drawer-label { margin: 28px 0 10px; font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .1em; }
.drawer-chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.acc { background: var(--surface); border-radius: var(--r-md); overflow: hidden; }
.acc-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 14px 8px 10px; border: 0; background: transparent; text-align: left; color: var(--ink); font-size: 15px; font-weight: 700; }
.acc-btn img { width: 40px; height: 44px; object-fit: contain; background: var(--primary-soft); border-radius: 10px; padding: 4px; }
.acc-btn span { flex: 1; line-height: 1.4; }
.acc-btn small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: .08em; }
.acc-btn .i { color: var(--subtle); transition: transform .2s; }
.acc-btn[aria-expanded="true"] .i { transform: rotate(180deg); }
.acc-panel { list-style: none; margin: 0; padding: 4px 14px 12px 62px; }
.acc-panel li { margin: 0; }
.rn .acc-panel a { display: block; padding: 7px 0; font-size: 14px; color: var(--text); line-height: 1.5; }
.rn .acc-panel a:hover { color: var(--primary-ink); }
.rn .acc-all a { display: inline-flex; align-items: center; gap: 4px; color: var(--primary-ink); font-weight: 700; }
.rn .drawer-en { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding: 16px; border-radius: var(--r-md); background: var(--primary); color: #fff; }
.rn .drawer-en:hover { background: var(--primary); color: #fff; }
.drawer-en span:nth-child(2) { flex: 1; line-height: 1.5; }
.drawer-en strong { display: block; font-size: 15px; }
.drawer-en small { font-size: 12px; opacity: .8; }
.drawer-en-icon { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 10px; background: rgba(255, 255, 255, .14); }

.search-panel { position: fixed; inset: 0; z-index: 100; display: flex; justify-content: center; align-items: flex-start; padding: 10vh var(--gutter) 24px; visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s; }
.search-panel.is-open { visibility: visible; opacity: 1; }
.search-panel-inner { width: 100%; max-width: 640px; background: var(--bg); border-radius: var(--r-lg); box-shadow: 0 24px 60px rgba(68, 72, 69, .25); overflow: hidden; transform: translateY(-8px); transition: transform .25s; }
.search-panel.is-open .search-panel-inner { transform: none; }
.search-panel-inner > .searchbar { margin: 20px 20px 0; }
.search-panel-label { margin: 24px 20px 10px; font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .08em; }
.search-panel-inner > .chips { padding: 0 20px; }
.rn .search-panel-terms { display: flex; align-items: center; gap: 10px; margin: 0 20px 20px; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface); color: var(--ink); font-weight: 700; }
.search-panel-terms .i:first-child { color: var(--primary); }
.search-panel-terms .i:last-child { margin-left: auto; color: var(--subtle); }

/* ---------- 05 フッター ---------- */
.site-footer { margin: 0; background: var(--footer); color: var(--text); padding: 64px 0 28px; font-size: 14px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.5fr; gap: 48px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; color: var(--ink); font-size: 17px; font-weight: 600; letter-spacing: .12em; }
.footer-brand .brand-mark { width: 34px; height: 34px; background: var(--surface); color: var(--primary); }
.footer-about { padding-left: 20px; border-left: 3px solid var(--primary); }
.footer-about p:not(.footer-brand) { margin: 0; line-height: 1.9; max-width: 440px; }
.rn .site-footer a, .rn .site-footer a:visited { color: var(--ink); }
.rn .footer-about a { color: var(--primary-ink); text-decoration: underline; text-underline-offset: 3px; }
.rn .site-footer a:hover { color: var(--primary); }
.footer-nav { display: grid; grid-template-columns: repeat(3, auto); justify-content: end; gap: 24px 56px; }
.footer-nav-title { margin: 0 0 12px; font-size: 12px; font-weight: 700; color: var(--primary); letter-spacing: .14em; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin: 0 0 10px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-2); color: var(--muted); }
.footer-bottom small { font-size: 12px; }
@media (max-width: 767px) {
  .site-footer { padding: 44px 0 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-nav { grid-template-columns: 1fr 1fr; justify-content: stretch; gap: 24px; }
}

.rn .to-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; }
.rn .to-top.is-show { opacity: 1; visibility: visible; transform: none; }
.rn .to-top:hover { color: var(--primary-ink); border-color: var(--primary); }

/* ---------- 06 トップページ ---------- */
.section { padding: 88px 0; }
.section-white { background: var(--surface); }
.section-head { margin-bottom: 36px; }
.section-head.center, .rn p.center { text-align: center; }
.section-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section-title { margin: 0; color: var(--ink); font-size: 30px; font-weight: 700; line-height: 1.45; letter-spacing: .08em; }
.section-lead { margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.9; }
.section-cta { padding-top: 80px; padding-bottom: 80px; }
@media (max-width: 767px) {
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 28px; }
  .section-title { font-size: 23px; }
  .section-cta { padding-top: 56px; padding-bottom: 56px; }
}

/* ヒーロー */
.hero { padding: 72px 0 88px; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero-title { margin: 0; color: var(--ink); font-size: 46px; font-weight: 700; line-height: 1.45; letter-spacing: .08em; }
.hero-lead { margin: 22px 0 0; color: var(--text); font-size: 16px; line-height: 2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.hero-visual { position: relative; }
.hero-photo { aspect-ratio: 5 / 4; border-radius: var(--r-xl); background: #dce9e3; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; display: block; }
.hero-badge { position: absolute; left: -24px; bottom: -22px; display: flex; align-items: center; gap: 12px; padding: 14px 18px 14px 14px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-hover); }
.hero-badge-icon { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 10px; background: var(--primary-soft); color: var(--primary-ink); }
.hero-badge strong { display: block; font-size: 14px; color: var(--ink); line-height: 1.5; }
.hero-badge small { display: block; font-size: 12px; color: var(--muted); line-height: 1.5; }
@media (max-width: 1023px) {
  .hero-title { font-size: 38px; }
  .hero-inner { gap: 40px; }
}
@media (max-width: 767px) {
  .hero { padding: 36px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-title { font-size: 30px; }
  .hero-lead { font-size: 15px; margin-top: 16px; }
  .hero-actions { flex-direction: column; margin-top: 24px; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { order: -1; }
  .hero-photo { aspect-ratio: 16 / 10; border-radius: var(--r-lg); }
  .hero-badge { left: 12px; bottom: -20px; padding: 10px 14px 10px 10px; }
}

/* 章カード */
.chapter-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.chapter-grid li { margin: 0; }
.rn .chapter-card, .rn .chapter-card:visited { display: flex; flex-direction: column; height: 100%; padding: 22px 20px 18px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid transparent; color: var(--text); }
.rn .chapter-card:hover { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-hover); transform: translateY(-2px); color: var(--text); }
.chapter-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 16px; background: var(--primary-soft); flex: none; }
.chapter-icon img { width: 46px; height: 50px; object-fit: contain; }
.chapter-icon.lg { width: 96px; height: 96px; border-radius: 22px; }
.chapter-icon.lg img { width: 70px; height: 76px; }
.chapter-card .chapter-icon { margin-bottom: 16px; }
.chapter-num { font-size: 12px; font-weight: 700; color: var(--primary); letter-spacing: .12em; }
.chapter-name { margin-top: 2px; font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: .06em; line-height: 1.5; }
.chapter-lead { margin-top: 6px; font-size: 13px; color: var(--muted); line-height: 1.7; }
.chapter-count { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 14px; font-size: 12px; font-weight: 700; color: var(--primary-ink); }
@media (max-width: 1023px) { .chapter-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) {
  .chapter-grid { gap: 10px; }
  .rn .chapter-card { padding: 16px 14px 14px; }
  .chapter-card .chapter-icon { width: 52px; height: 52px; border-radius: 13px; margin-bottom: 12px; }
  .chapter-card .chapter-icon img { width: 38px; height: 42px; }
  .chapter-name { font-size: 16px; }
  .chapter-lead { font-size: 12px; }
}

/* 使い方（3つの入り口） */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.split-text .section-lead { margin-bottom: 24px; }
.entry-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.entry-grid li { margin: 0; }
.rn .entry-grid a, .rn .entry-grid a:visited { display: block; height: 100%; padding: 22px 20px; border-radius: var(--r-md); background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(68, 72, 69, .04); border: 1px solid transparent; }
.rn .entry-grid a:hover { border-color: var(--line); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.entry-icon { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 9px; background: var(--primary-soft); color: var(--primary-ink); margin-bottom: 12px; }
.entry-grid strong { display: block; color: var(--ink); font-size: 15px; letter-spacing: .06em; }
.entry-grid small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.6; }
@media (max-width: 1023px) { .split { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 479px) { .entry-grid { grid-template-columns: 1fr; } .rn .entry-grid a { display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; padding: 16px; } .entry-icon { grid-row: span 2; margin: 0; } }

/* 姉妹サイト誘導（大） */
.en-band { border-radius: var(--r-xl); background: var(--primary-soft); color: var(--text); text-align: center; padding: 64px 32px; position: relative; overflow: hidden; border: 1px solid var(--primary-tint); }
.en-band::before, .en-band::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid var(--dashed); opacity: .6; }
.en-band::before { width: 320px; height: 320px; left: -110px; top: -160px; }
.en-band::after { width: 240px; height: 240px; right: -70px; bottom: -130px; }
.en-band-inner { position: relative; z-index: 1; }
.en-band-eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 500; color: var(--primary-ink); letter-spacing: .08em; }
.en-band-title { margin: 0; font-size: 28px; font-weight: 600; line-height: 1.6; letter-spacing: .1em; color: var(--ink); }
.en-band-text { margin: 16px auto 0; font-size: 15px; line-height: 1.9; color: var(--text); }
.en-band-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 767px) {
  .en-band { padding: 44px 20px; border-radius: var(--r-lg); }
  .en-band-title { font-size: 21px; }
  .en-band-text { font-size: 14px; text-align: left; }
  .en-band-actions .btn { width: 100%; }
}

/* ---------- 07 一覧ページ ---------- */
.page-head { padding: 28px 0 32px; }
.page-title { margin: 0; color: var(--ink); font-size: 36px; font-weight: 700; line-height: 1.45; letter-spacing: .08em; }
.page-lead { margin: 14px 0 0; max-width: none; color: var(--muted); font-size: 15px; line-height: 1.9; }
@media (max-width: 767px) {
  .page-head { padding: 16px 0 24px; }
  .page-title { font-size: 26px; }
  .page-lead { font-size: 14px; }
}

.crumb { margin: 0 0 24px; font-size: 13px; color: var(--muted); }
.crumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; list-style: none; margin: 0; padding: 0; }
.crumb li { display: inline-flex; align-items: center; margin: 0; padding: 0; line-height: 1.6; }
.crumb li + li::before { content: ""; width: 6px; height: 6px; margin: 0 10px; border-top: 1.5px solid var(--subtle); border-right: 1.5px solid var(--subtle); transform: rotate(45deg); }
.rn .crumb a, .rn .crumb a:visited { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.rn .crumb a:hover { color: var(--primary-ink); }
.crumb [aria-current] { color: var(--text); display: inline-block; max-width: 32em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
@media (max-width: 767px) {
  .crumb { margin-bottom: 16px; font-size: 12px; }
  .crumb ol { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .crumb ol::-webkit-scrollbar { display: none; }
  .crumb [aria-current] { max-width: none; }
}
.article-wrap > .crumb, .container > .crumb { padding-top: 24px; }
@media (max-width: 767px) { .article-wrap > .crumb, .container > .crumb { padding-top: 16px; } }

.pills { margin: 0 0 28px; }
.pills ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pills li { margin: 0; }
.rn .pills a, .rn .pills a:visited { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 500; }
.rn .pills a:hover { border-color: var(--ink); }
.rn .pills a.is-active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }
@media (max-width: 767px) {
  .pills { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); }
  .pills ul { flex-wrap: nowrap; overflow-x: auto; padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .pills ul::-webkit-scrollbar { display: none; }
  .rn .pills a { min-height: 40px; padding: 0 16px; font-size: 14px; white-space: nowrap; }
}

/* カード */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1023px) { .card-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 599px) { .card-grid { grid-template-columns: 1fr; } }
.card { margin: 0; }
.rn .card-link, .rn .card-link:visited { display: flex; flex-direction: column; height: 100%; border-radius: var(--r-lg); background: var(--surface); color: var(--text); overflow: hidden; box-shadow: var(--shadow); }
.rn .card-link:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); color: var(--text); }
.card-thumb { aspect-ratio: 16 / 9; background: #e2e2e2; overflow: hidden; margin: 0; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.card-link:hover .card-thumb img { transform: scale(1.03); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 22px; }
.card-title { margin: 0; color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.65; letter-spacing: .04em; }
.card-link:hover .card-title { color: var(--primary-ink); }
.card-desc { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 14px; color: var(--primary-ink); font-size: 14px; font-weight: 700; }
@media (max-width: 599px) {
  /* スマホは横並びのコンパクトなカード */
  .card-grid .card-link { flex-direction: row; align-items: stretch; border-radius: var(--r-md); }
  .card-grid .card-thumb { flex: none; width: 112px; aspect-ratio: auto; }
  .card-grid .card-body { padding: 12px 14px; }
  .card-grid .card-title { font-size: 14px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .card-grid .card-desc { display: none; }
  .card-grid .card-tags { margin-bottom: 6px; }
  .card-grid .tag { font-size: 11px; padding: 1px 8px; }
}

.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card-wide .card-link { flex-direction: row; }
.card-wide .card-thumb { flex: none; width: 46%; aspect-ratio: auto; min-height: 200px; }
.card-wide .card-body { padding: 24px; }
.card-wide .card-title { font-size: 17px; }
@media (max-width: 1023px) { .feature-list { grid-template-columns: 1fr; gap: 16px; } }
@media (max-width: 599px) {
  .card-wide .card-link { flex-direction: column; }
  .card-wide .card-thumb { width: 100%; aspect-ratio: 16 / 9; min-height: 0; }
  .card-wide .card-body { padding: 16px 18px 20px; }
  .card-wide .card-title { font-size: 16px; }
}

/* ページ送り */
.pager { margin: 48px 0 0; }
.pager ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.pager li { margin: 0; }
.rn .pager a, .pager span.current, .pager span.dots { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 10px; font-size: 15px; font-weight: 700; }
.rn .pager a { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); }
.rn .pager a:hover { border-color: var(--primary); color: var(--primary-ink); }
.pager span.current { background: var(--primary); color: #fff; }
.pager span.dots { color: var(--subtle); }
@media (max-width: 479px) { .pager .prev span, .pager .next span { display: none; } }

.empty { color: var(--muted); }
.empty-box { padding: 40px 24px; border-radius: var(--r-lg); background: var(--surface); text-align: center; }
.empty-title { margin: 0 0 8px; color: var(--ink); font-size: 18px; font-weight: 700; }
.empty-box p { margin: 0; color: var(--muted); }
.empty-box a { text-decoration: underline; }
.search-again { max-width: 640px; margin: 0 0 32px; }

/* ---------- 08 終活の基本 ---------- */
.guide-index { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.guide-chapter { background: var(--surface); border-radius: var(--r-lg); padding: 8px; box-shadow: 0 1px 2px rgba(68, 72, 69, .04); }
.rn .guide-chapter-head, .rn .guide-chapter-head:visited { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: var(--r-md); color: var(--ink); }
.rn .guide-chapter-head:hover { background: var(--surface-2); color: var(--ink); }
.guide-chapter-head > .i { margin-left: auto; color: var(--subtle); }
.guide-chapter-title { display: flex; flex-direction: column; line-height: 1.45; }
.guide-chapter-title small { font-size: 12px; font-weight: 700; color: var(--primary); letter-spacing: .12em; }
.guide-chapter-title strong { font-size: 19px; letter-spacing: .06em; }
.guide-chapter-title em { font-style: normal; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 2px; }
.guide-chapter-list { list-style: none; margin: 0; padding: 4px 14px 14px; }
.guide-chapter-list li { margin: 0; border-top: 1px solid var(--line); }
.rn .guide-chapter-list a { display: flex; gap: 12px; align-items: baseline; padding: 11px 4px; color: var(--text); font-size: 15px; line-height: 1.6; }
.rn .guide-chapter-list a:hover { color: var(--primary-ink); }
.num { flex: none; min-width: 2.4em; font-size: 12px; font-weight: 700; color: var(--subtle); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
@media (max-width: 899px) { .guide-index { grid-template-columns: 1fr; gap: 14px; } }

.chapter-head-inner { display: flex; align-items: center; gap: 24px; }
@media (max-width: 599px) {
  .chapter-head-inner { gap: 16px; align-items: flex-start; }
  .chapter-icon.lg { width: 68px; height: 68px; border-radius: 16px; }
  .chapter-icon.lg img { width: 50px; height: 55px; }
}

.step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: none; }
.step-list li { margin: 0; }
.rn .step-item, .rn .step-item:visited { display: flex; align-items: center; gap: 18px; padding: 14px 20px 14px 14px; border-radius: var(--r-lg); background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(68, 72, 69, .04); border: 1px solid transparent; }
.rn .step-item:hover { border-color: var(--line); box-shadow: var(--shadow-hover); color: var(--text); }
.step-num { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--primary-soft); color: var(--primary-ink); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.step-thumb { flex: none; width: 140px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #e2e2e2; }
.step-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.step-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.step-text strong { color: var(--ink); font-size: 17px; line-height: 1.6; }
.step-text small { color: var(--muted); font-size: 13px; line-height: 1.7; }
.step-item > .i { color: var(--subtle); }
@media (max-width: 599px) {
  .rn .step-item { gap: 12px; padding: 12px; }
  .step-num { width: 42px; height: 42px; border-radius: 11px; font-size: 13px; }
  .step-thumb { display: none; }
  .step-text strong { font-size: 15px; }
  .step-text small { display: none; }
}

/* ---------- 09 用語集 ---------- */
.terms-finder { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; margin-bottom: 16px; align-items: start; }
@media (max-width: 899px) { .terms-finder { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border-radius: var(--r-lg); padding: 28px; }
.panel-title { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; color: var(--ink); font-size: 17px; font-weight: 700; letter-spacing: .06em; }
.panel-title .i { color: var(--primary); }
@media (max-width: 599px) { .panel { padding: 20px 16px; } }

.kana { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; max-width: 560px; margin-top: 18px; }
.kana ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.kana li { margin: 0; padding: 0; }
.kana li::after, .kana li::before { content: none !important; }
.rn .kana a, .rn .kana a:visited { display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 8px; background: var(--surface-2); color: var(--ink); font-size: 16px; font-weight: 500; }
.rn .kana a:hover { background: var(--primary-tint); color: var(--primary-ink); }
.rn .kana a.is-active { background: var(--primary); color: #fff; font-weight: 700; }
.kana .is-empty { height: 44px; }
@media (max-width: 599px) { .kana { gap: 4px; } .kana ul { gap: 4px; } .rn .kana a { font-size: 14px; border-radius: 6px; height: 36px; } .kana .is-empty { height: 36px; } }
.section-white .kana a { background: var(--bg); }
.narrow .kana { margin-left: auto; margin-right: auto; }

.term-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1023px) { .term-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px) { .term-grid { grid-template-columns: 1fr; gap: 10px; } }
.term-card { margin: 0; }
.rn .term-card a, .rn .term-card a:visited { display: flex; flex-direction: column; align-items: flex-start; height: 100%; padding: 20px 22px; border-radius: var(--r-lg); background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(68, 72, 69, .04); border: 1px solid transparent; }
.rn .term-card a:hover { border-color: var(--line); box-shadow: var(--shadow-hover); }
.term-card-title { margin: 10px 0 0; color: var(--ink); font-size: 18px; font-weight: 700; line-height: 1.5; letter-spacing: .04em; }
.term-card-yomi { margin: 2px 0 0; font-size: 12px; color: var(--subtle); letter-spacing: .08em; }
.term-card-desc { margin: 10px 0 0; font-size: 14px; line-height: 1.8; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.term-card-more { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 12px; font-size: 13px; font-weight: 700; color: var(--primary-ink); }

.term-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 16px 0 0; padding: 14px 18px; border-radius: var(--r-md); background: var(--surface-2); }
.term-meta div { display: flex; gap: 10px; align-items: baseline; }
.term-meta dt { font-size: 12px; font-weight: 700; color: var(--subtle); letter-spacing: .1em; }
.term-meta dd { margin: 0; color: var(--ink); font-weight: 500; }
.term-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
.rn .term-links a { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; padding: 16px 18px; border-radius: var(--r-md); border: 1px solid var(--line-2); color: var(--ink); font-weight: 700; font-size: 15px; }
.rn .term-links a:hover { border-color: var(--primary); color: var(--primary-ink); }
.term-links small { width: 100%; font-size: 11px; font-weight: 700; color: var(--subtle); letter-spacing: .1em; }
.term-links .i { margin-left: auto; color: var(--subtle); }
@media (max-width: 599px) { .term-links { grid-template-columns: 1fr; } }

/* ---------- 10 記事ページ ---------- */
.article-wrap { max-width: calc(840px + var(--gutter) * 2); }
.article { background: var(--surface); border-radius: var(--r-xl); padding: 48px 56px 56px; box-shadow: 0 1px 2px rgba(68, 72, 69, .03); }
@media (max-width: 767px) {
  .article { padding: 24px 18px 32px; border-radius: var(--r-lg); margin: 0 calc(var(--gutter) * -1 + 8px); }
}
.article-head { padding-bottom: 28px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.article-title { margin: 0; color: var(--ink); font-size: 32px; font-weight: 700; line-height: 1.55; letter-spacing: .06em; }
.article-lead { margin: 14px 0 0; color: var(--muted); font-size: 15px; line-height: 1.9; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.article-meta > * { display: inline-flex; align-items: center; gap: 5px; }
@media (max-width: 767px) {
  .article-head { padding-bottom: 20px; margin-bottom: 28px; }
  .article-title { font-size: 23px; }
  .article-meta { font-size: 12px; }
}

/* ガイド：本文＋章の目次（サイド） */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.article-layout .article { padding: 48px 52px 56px; }
.chapter-nav { position: sticky; top: calc(var(--header-h) + 20px); }
.chapter-nav-inner { background: var(--surface); border-radius: var(--r-lg); padding: 18px; max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; }
.chapter-nav-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.chapter-nav-head img { width: 44px; height: 48px; object-fit: contain; background: var(--primary-soft); border-radius: 11px; padding: 4px; }
.chapter-nav-head p { margin: 0; color: var(--ink); font-weight: 700; line-height: 1.4; }
.chapter-nav-head small { display: block; font-size: 11px; color: var(--primary); letter-spacing: .12em; }
.chapter-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.chapter-steps li { margin: 0; position: relative; }
.chapter-steps li + li::before { content: ""; position: absolute; left: 22px; top: -8px; height: 16px; width: 2px; background: var(--line); }
.chapter-steps li.is-read + li::before, .chapter-steps li.is-read + li.is-current::before { background: var(--dashed); }
.rn .chapter-steps a { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 6px; border-radius: 10px; color: var(--text); font-size: 14px; line-height: 1.5; }
.rn .chapter-steps a:hover { background: var(--surface-2); color: var(--primary-ink); }
.chapter-step-num { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 26px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 11px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; position: relative; z-index: 1; }
.chapter-steps .is-read .chapter-step-num { background: var(--primary-tint); border-color: var(--dashed); color: var(--primary-ink); }
.chapter-steps .is-current a { background: var(--primary-soft); color: var(--ink); font-weight: 700; }
.chapter-steps .is-current .chapter-step-num { background: var(--primary); border-color: var(--primary); color: #fff; }
.chapter-nav-all { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.chapter-nav-all summary { display: flex; align-items: center; justify-content: space-between; padding: 6px; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; list-style: none; }
.chapter-nav-all summary::-webkit-details-marker { display: none; }
.chapter-nav-all[open] summary .i { transform: rotate(180deg); }
.chapter-nav-all ul { list-style: none; margin: 4px 0 0; padding: 0; }
.chapter-nav-all li { margin: 0; }
.rn .chapter-nav-all a { display: flex; gap: 8px; padding: 6px; font-size: 13px; color: var(--text); border-radius: 8px; }
.rn .chapter-nav-all a:hover { background: var(--surface-2); }
.chapter-nav-all a span { color: var(--subtle); font-size: 12px; min-width: 3.5em; }
.chapter-nav-all a[aria-current] { color: var(--primary-ink); font-weight: 700; }
@media (max-width: 1079px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); max-width: 840px; margin: 0 auto; gap: 20px; }
  .chapter-nav { position: static; }
  .chapter-nav-inner { max-height: none; }
}
@media (max-width: 767px) { .article-layout .article { padding: 24px 18px 32px; } }

.progress { display: flex; align-items: center; gap: 12px; margin-top: 18px; max-width: 360px; }
.progress-bar { flex: 1; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress-bar span { display: block; height: 100%; border-radius: 999px; background: var(--primary); }
.progress-text { font-size: 12px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }

.rn .next-step { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 16px; margin-top: 48px; padding: 22px 24px; border-radius: var(--r-lg); background: var(--primary); color: #fff; }
.rn a.next-step:hover { background: var(--primary-hover); color: #fff; }
.next-step small { grid-column: 1; font-size: 12px; opacity: .8; letter-spacing: .08em; }
.next-step > span:not(.next-step-icon) { grid-column: 1; font-size: 18px; font-weight: 700; line-height: 1.5; }
.next-step-icon { grid-column: 2; grid-row: 1 / span 2; display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, .14); transition: transform .2s; }
a.next-step:hover .next-step-icon { transform: translateX(3px); }
.next-step.is-done { grid-template-columns: 1fr; background: var(--primary-soft); color: var(--ink); }
.next-step.is-done > span { font-size: 15px !important; font-weight: 500 !important; }
@media (max-width: 599px) { .rn .next-step { padding: 18px; } .next-step > span:not(.next-step-icon) { font-size: 16px; } }

/* 記事下パーツ */
.article-sub-title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--ink); font-size: 15px; font-weight: 700; }
.article-sub-title .i { color: var(--primary); }
.article-terms { margin-top: 36px; }
.article-terms-note { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.article-tags { margin-top: 24px; }
.link-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.link-list li { margin: 0; border-bottom: 1px solid var(--line); }
.rn .link-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 4px; color: var(--ink); font-weight: 500; line-height: 1.6; }
.rn .link-list a:hover { color: var(--primary-ink); }
.link-list .i { color: var(--subtle); }

.en-inline { display: flex; align-items: center; gap: 18px; margin-top: 40px; padding: 22px 24px; border-radius: var(--r-lg); border: 1px dashed var(--dashed); background: #fafcfb; }
.en-inline-icon { flex: none; display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 12px; background: var(--primary-soft); color: var(--primary-ink); }
.en-inline-text { flex: 1; }
.rn .en-inline-text p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.7; }
.rn .en-inline-text .en-inline-title { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.en-inline .btn { flex: none; }
@media (max-width: 767px) {
  .en-inline { flex-wrap: wrap; padding: 18px; gap: 12px 14px; }
  .en-inline-text { flex-basis: calc(100% - 62px); }
  .en-inline .btn { width: 100%; }
}

.adjacent { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
.rn .adjacent-item { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: var(--r-lg); background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(68, 72, 69, .04); border: 1px solid transparent; }
.rn .adjacent-item:hover { border-color: var(--line); box-shadow: var(--shadow-hover); color: var(--primary-ink); }
.adjacent-item.next { text-align: right; align-items: flex-end; grid-column: 2; }
.adjacent-item small { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--subtle); font-weight: 700; }
.adjacent-item span { font-weight: 700; font-size: 14px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 599px) {
  .adjacent { grid-template-columns: 1fr; }
  .adjacent-item.next { grid-column: auto; }
  .adjacent > span:empty { display: none; }
}

.block { margin-top: 64px; }
.block-title { margin: 0 0 20px; color: var(--ink); font-size: 22px; font-weight: 700; letter-spacing: .06em; line-height: 1.5; }
@media (max-width: 767px) { .block { margin-top: 48px; } .block-title { font-size: 19px; } }
.article-wrap .card-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
.article-wrap .card-title { font-size: 15px; }
@media (max-width: 899px) { .article-wrap .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px) { .article-wrap .card-grid { grid-template-columns: 1fr; } }
.article-wrap .feature-list { grid-template-columns: 1fr; }

.notice { margin-top: 48px; padding: 18px 22px; border-radius: var(--r-md); background: rgba(255, 255, 255, .6); border: 1px solid var(--line); }
.rn .notice p { margin: 0; font-size: 12px; line-height: 1.9; color: var(--muted); }
.rn .notice p + p { margin-top: 6px; }
.notice a { text-decoration: underline; }

.writer { margin: 40px 0 0; padding: 22px 24px; border-radius: var(--r-lg); background: var(--surface-2); }
.rn .writer p { margin: 0; font-size: 14px; line-height: 1.8; }
.rn .writer .writer-label { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; font-size: 12px; font-weight: 700; color: var(--primary-ink); letter-spacing: .1em; }
.writer-inner { display: flex; gap: 18px; align-items: flex-start; }
.rn .writer-img { flex: none; width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin: 0 !important; }
.rn .writer .writer-name { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.writer-name span { margin-left: 10px; font-size: 12px; font-weight: 500; color: var(--muted); }
.rn .writer .writer-text { color: var(--text); }
@media (max-width: 599px) { .writer-inner { flex-direction: column; gap: 12px; } .rn .writer-img { width: 64px; height: 64px; } }

.share { margin-top: 36px; text-align: center; }
.rn .share .share-title { margin: 0 0 12px; font-size: 14px; font-weight: 700; color: var(--ink); }
.share-list { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.share-list li { margin: 0; padding: 0; }
.share-list li::after { content: none !important; }
.rn .share-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; color: #fff !important; font-size: 14px; font-weight: 700; }
.rn .share-btn::after { content: none !important; }
.share-btn i { font-size: 16px; }
.share-fb { background: #1877f2; }
.share-x { background: #111; }
.share-line { background: #06c755; }
.rn .share-btn:hover { opacity: .88; }

.notfound { padding: 40px 0 20px; text-align: center; }
.notfound-code { margin: 0 0 8px; font-size: 64px; font-weight: 700; line-height: 1; color: var(--primary-tint); letter-spacing: .08em; -webkit-text-stroke: 1.5px var(--dashed); }
.notfound .page-lead { margin-left: auto; margin-right: auto; }
.notfound .search-again { margin: 28px auto; }
.notfound-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }

/* ---------- 11 記事本文（既存の装飾パーツを新デザインに合わせて調整） ---------- */
.rn .post_body { margin-bottom: 0; font-size: 17px; line-height: 2; color: var(--text); }
.rn .post_body p { font-size: 17px; line-height: 2; margin: 0 0 1.6em; text-align: justify; text-justify: inter-ideograph; }
.rn .post_body a { color: var(--primary-ink); text-decoration: underline; text-decoration-color: rgba(46, 119, 102, .35); text-underline-offset: 3px; }
.rn .post_body a:hover { text-decoration-color: currentColor; }
.rn .post_body a.btn, .rn .post_body a[class*="btn"] { text-decoration: none; }
.rn .post_body strong { color: var(--ink); }

.rn .post_body h2 {
  margin: 72px 0 28px; padding: 0 0 14px; background: none; border: 0; border-radius: 0;
  border-bottom: 2px solid var(--line); color: var(--ink); text-align: left;
  font-size: 25px; font-weight: 700; line-height: 1.55; letter-spacing: .06em; position: relative;
}
.rn .post_body h2::after { display: block !important; content: ""; position: absolute; left: 0; bottom: -2px; width: 56px; height: 2px; margin: 0; background: var(--primary); }
.rn .post_body h3 {
  margin: 52px 0 20px; padding: 2px 0 2px 16px; border: 0; border-left: 4px solid var(--primary);
  border-radius: 0; background: none; text-align: left; color: var(--ink);
  font-size: 20px; font-weight: 700; line-height: 1.6; letter-spacing: .05em;
}
.rn .post_body h4 { margin: 36px 0 14px; padding: 0; color: var(--ink); font-size: 18px; font-weight: 700; line-height: 1.6; }
.rn .post_body h4::before { content: ""; display: inline-block; width: 8px; height: 8px; margin: 0 10px 2px 0; border-radius: 2px; background: var(--primary); vertical-align: middle; }
.rn .post_body > h2:first-child, .rn .post_body > #toc + h2 { margin-top: 40px; }
@media (max-width: 767px) {
  .rn .post_body, .rn .post_body p { font-size: 16px; line-height: 1.95; }
  .rn .post_body h2 { font-size: 21px; margin-top: 56px; }
  .rn .post_body h3 { font-size: 18px; margin-top: 40px; }
  .rn .post_body h4 { font-size: 16px; }
}
/* 「まとめ」「はじめに」など見出しの特別版 */
.rn .post_body .firstly h2, .rn .post_body .matome h2 { margin-top: 0; border-bottom-color: var(--line); text-align: left; font-size: 20px; background: none; }

/* リスト */
.rn .post_body ul li, .rn .post_body ol li { font-size: 16px; line-height: 1.85; margin-bottom: 10px; }
.rn .post_body ul li::after { color: var(--primary); font-size: 16px; top: 5px; }
.rn .post_body ul.decimal li::after, .rn .post_body ol li::after { background-color: var(--primary); top: 4px; width: 22px; height: 22px; line-height: 22px; font-size: 12px; }
.rn .post_body ol li, .rn .post_body ul.decimal li { padding-left: 32px; }

/* 目次 */
.rn #toc { margin: 32px 0 40px; padding: 26px 28px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); font-size: 15px; }
.rn #toc .toc_title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px !important; font-size: 16px; color: var(--ink); letter-spacing: .1em; }
.rn #toc .toc_title::before { content: ""; width: 18px; height: 2px; background: var(--primary); }
.rn #toc ol { margin: 0; }
.rn #toc ol > li { margin: 0; padding: 0; font-size: 15px; line-height: 1.7; }
.rn #toc > ol > li { padding: 8px 0; border-top: 1px solid var(--line); }
.rn #toc > ol > li:first-child { border-top: 0; }
.rn #toc ol > li::before { color: var(--primary); }
.rn #toc ol ol { padding-left: 1.6em; margin-top: 4px; }
.rn #toc ol ol > li { font-size: 14px; margin-top: 4px; }
.rn #toc ol ol > li::before { color: var(--subtle); }
.rn #toc a { color: var(--ink); text-decoration: none; }
.rn #toc a:hover, .rn #toc a.is-current { color: var(--primary-ink); text-decoration: underline; }
@media (max-width: 767px) { .rn #toc { padding: 20px 18px; } }

/* 表 */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 2em; border-radius: var(--r-md); border: 1px solid var(--line-2); }
.table-scroll > table { margin: 0 !important; min-width: 520px; }
.rn .post_body table { font-size: 15px; border-collapse: collapse; }
.rn .post_body table th, .rn .post_body table td { padding: 14px 16px; line-height: 1.7; border-bottom: 1px solid var(--line); vertical-align: top; }
.rn .post_body table tbody th { background: var(--surface-2); color: var(--ink); }
.rn .post_body table thead th span { border-radius: 0; margin-left: 0; background: var(--ink); }
.rn .post_body table tbody td { background: #fff; }
.rn .post_body table tbody tr:last-child th, .rn .post_body table tbody tr:last-child td { border-bottom: 0; }

/* 囲み枠（白背景のボックスは、白い記事面の上で見分けがつくよう淡い色に） */
.rn .post_body .box, .rn .post_body .waku { border: 1.5px solid var(--dashed); border-radius: var(--r-lg); padding: 24px 28px; }
.rn .post_body .box_black { border: 1.5px solid var(--ink); border-radius: var(--r-lg); padding: 24px 28px; }
.rn .post_body .box_noborder, .rn .post_body .firstly, .rn .post_body .matome > div, .rn .post_body .info_box, .rn .post_body .term_mean, .rn #box_qa .qa_item, .rn .post_body .pr_box { background: var(--surface-2); border-radius: var(--r-lg); }
.rn .post_body .box_border { border-color: var(--dashed); border-radius: var(--r-lg); }
.rn .post_body .box p, .rn .post_body .waku p, .rn .post_body .box_black p, .rn .post_body .box_noborder p, .rn .post_body .box_border p { font-size: 16px; }
.rn .post_body .freebox { border-width: 1.5px; border-radius: var(--r-lg); }
.rn .post_body .freebox .title { border-radius: 12px 0 12px 0; font-size: 14px; }
.rn .post_body .stepbox div { border-width: 1.5px; border-radius: var(--r-lg); }
.rn .post_body .stepbox div::before { border-radius: 14px 0 0 14px; font-size: 22px; }
.rn .post_body blockquote { border: 0; border-left: 4px solid var(--dashed); border-radius: 0 var(--r-md) var(--r-md) 0; background: var(--surface-2); padding: 22px 24px 22px 64px; }
.rn .post_body blockquote::before { color: var(--dashed); left: 22px; top: 20px; }
.rn .post_body blockquote > :last-child { margin-bottom: 0; }
@media (max-width: 767px) {
  .rn .post_body .box, .rn .post_body .waku, .rn .post_body .box_black, .rn .post_body .box_noborder, .rn .post_body .box_border { padding: 18px 16px; }
  .rn .post_body .stepbox div { padding: 64px 16px 16px; }
  .rn .post_body .stepbox div::before { width: 100%; height: 48px; border-radius: 14px 14px 0 0; font-size: 18px; }
  .rn .post_body blockquote { padding: 18px 16px 18px 48px; }
  .rn .post_body blockquote::before { left: 14px; font-size: 22px; }
}
.rn .post_body img { border-radius: 10px; }

/* 広告 */
.rn .ad_box { margin: 40px 0 0; }
.rn .ad_box .ad_title { margin: 0 0 6px; font-size: 11px; color: var(--subtle); text-align: center; letter-spacing: .1em; }

/* ---------- 12 ユーティリティ ---------- */
.center, .rn p.center { text-align: center; }
.mt-l { margin-top: 32px; }
.mb-l { margin-bottom: 28px; }
.nowrap { white-space: nowrap; }
.sp-only { display: none; }
@media (max-width: 767px) { .sp-only { display: inline; } .pc-only { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .rn *, .rn *::before, .rn *::after { transition: none !important; animation: none !important; }
}
/* ---------- 13 見出しの書体（明朝体で、やわらかく静かな印象に） ---------- */
.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, .next-step > span:not(.next-step-icon),
.rn .post_body h2, .rn .post_body h3, .rn .post_body h4, .chapter-nav-head p, .writer-name, .notfound .page-title {
  font-family: var(--font-head); font-weight: 600; font-feature-settings: "palt" 0;
}
.hero-title { font-weight: 500; letter-spacing: .12em; line-height: 1.6; }
.section-title, .page-title { font-weight: 500; letter-spacing: .12em; }
.article-title { letter-spacing: .08em; line-height: 1.6; }
.rn .post_body h2 { letter-spacing: .08em; }
.brand-sub { font-family: var(--font); }
.eyebrow { color: var(--primary); }
/* 番号は細めの丸みのある数字で（参考サイトの 01, 02… の雰囲気） */
.step-num, .chapter-step-num, .num, .notfound-code, .progress-text { font-family: var(--font-num); }
.step-num { font-size: 18px; font-weight: 500; }
.notfound-code { -webkit-text-stroke: 0; color: var(--dashed); font-weight: 400; }

@media print {
  .site-header, .site-footer, .drawer, .search-panel, .overlay, .to-top, .chapter-nav, .en-inline, .en-band, .adjacent, .block, .share, .ad_box { display: none !important; }
  body.rn { background: #fff; }
  .article { box-shadow: none; padding: 0; }
}

/* ============================================================
   13 テキストだけのカード（サムネイル非表示のとき）
   inc/renewal.php の SHK_SHOW_THUMBS が false のときに使います
   ============================================================ */
.rn .card.is-text .card-link { border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(68, 72, 69, .03); position: relative; }
.rn .card.is-text .card-link::before { content: ""; position: absolute; left: 24px; top: 0; width: 32px; height: 3px; border-radius: 0 0 3px 3px; background: var(--primary); transition: width .25s; }
.rn .card.is-text .card-link:hover { border-color: var(--line-2); box-shadow: var(--shadow-hover); }
.rn .card.is-text .card-link:hover::before { width: 56px; }
.card.is-text .card-body { padding: 26px 24px 18px; }
.card.is-text .card-tags { margin-bottom: 14px; }
.card.is-text .card-title { font-family: var(--font-head); font-weight: 600; font-size: 18px; line-height: 1.7; letter-spacing: .06em; }
.card.is-text .card-desc { margin-top: 10px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.card.is-text .card-body > :nth-last-child(2) { margin-bottom: 18px; }
.card-time { display: inline-flex; align-items: center; gap: 6px; color: var(--subtle); font-size: 12px; letter-spacing: .06em; }
.card-go { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-ink); transition: background .2s, color .2s; }
.card-go .i { transition: transform .2s; }
.card-link:hover .card-go { background: var(--primary); color: #fff; }
.card-link:hover .card-go .i { transform: translateX(2px); }

/* 注目の記事（横長カード）：番号＋明朝の見出し */
.rn .card-wide.is-text .card-link::before { display: none; }
.rn .card-wide.is-text .card-link { flex-direction: row; align-items: stretch; background: var(--surface); }
.card-wide.is-text .card-index { flex: none; display: flex; align-items: center; justify-content: center; width: 112px; background: var(--primary-soft); color: var(--primary); font-family: var(--font-num); font-size: 34px; font-weight: 500; letter-spacing: .04em; border-right: 1px solid var(--primary-tint); }
.card-wide.is-text .card-body { padding: 26px 28px 22px; }
.card-wide.is-text .card-title { font-size: 19px; margin-bottom: 18px; }
.card-wide.is-text .card-more { padding-top: 0; }

@media (max-width: 599px) {
  /* スマホ：1列の読みやすいリスト */
  .card-grid { gap: 12px; }
  .rn .card-grid .card.is-text .card-link { flex-direction: column; border-radius: var(--r-md); }
  .rn .card.is-text .card-link::before { left: 18px; width: 24px; }
  .card-grid .card.is-text .card-body { padding: 18px 18px 14px; }
  .card.is-text .card-tags { margin-bottom: 10px; }
  .card-grid .card.is-text .card-title { font-size: 16px; line-height: 1.65; -webkit-line-clamp: 3; }
  .card-grid .card.is-text .card-desc { display: -webkit-box; -webkit-line-clamp: 2; margin-top: 6px; font-size: 12.5px; }
  .card.is-text .card-body > :nth-last-child(2) { margin-bottom: 14px; }
  .card-foot { padding-top: 10px; }
  .card-go { width: 28px; height: 28px; }
  .card-wide.is-text .card-index { width: 64px; font-size: 22px; }
  .card-wide.is-text .card-body { padding: 18px 18px 16px; }
  .card-wide.is-text .card-title { font-size: 16px; margin-bottom: 12px; }
  .rn .card-wide.is-text .card-link { flex-direction: row; }
}

/* ============================================================
   14 余白の共通ルール（エンディングノートと同じ数値にそろえる）
   ============================================================ */
/* パンくずの上の余白を、記事ページ・一覧ページとも 24px（スマホ16px）に */
.page-head { padding-top: 24px; }
@media (max-width: 767px) { .page-head { padding-top: 16px; } }
/* しぼりこみボタンのホバーを緑に（エンディングノートと同じ） */
.rn .pills a:hover { border-color: var(--primary); color: var(--primary-ink); }
/* スマホで帯の小見出しが1文字だけ改行されないように */
@media (max-width: 767px) { .en-band-eyebrow { font-size: 12px; letter-spacing: .04em; } }

/* ============================================================
   15 お問い合わせフォーム（Contact Form 7）
   エンディングノートのフォームと同じ見た目にそろえています
   ============================================================ */
.rn .wpcf7 { max-width: 760px; }
.rn .post_body .wpcf7 { margin: 0 0 1.3em; }
.rn .article-page .wpcf7 { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: clamp(22px, 4vw, 40px); margin-top: 1.6em; }
.rn .wpcf7 .form_item p, .rn .wpcf7 .acceptance p, .rn .wpcf7 .form_btn p { margin: 0; }
.rn .wpcf7 .form_label + br, .rn .wpcf7 .form_btn br { display: none; }
.rn .wpcf7 form > p, .rn .wpcf7 .form_item { margin: 0 0 24px; }
.rn .wpcf7 label, .rn .wpcf7 .form_label { display: block; font-size: 15px; font-weight: 700; line-height: 1.6; color: var(--ink); }
.rn .wpcf7 .form_label { margin: 0 0 8px; }
.rn .wpcf7 label > .wpcf7-form-control-wrap, .rn .wpcf7 label br + .wpcf7-form-control-wrap { margin-top: 8px; }
.rn .wpcf7 .wpcf7-form-control-wrap { display: block; position: relative; }
.rn .wpcf7 label br { display: none; }

/* 必須・任意のしるし */
.rn .wpcf7 .require, .rn .wpcf7 .required {
	display: inline-flex; align-items: center; margin-left: 8px; padding: 1px 8px; border-radius: 6px;
	background: #f8ecea; color: #a8524a; font-size: 12px; font-weight: 700; line-height: 1.6; vertical-align: 1px;
}
.rn .wpcf7 .optional { display: inline-flex; margin-left: 8px; padding: 1px 8px; border-radius: 6px; background: var(--bg); color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1.6; vertical-align: 1px; }

/* 入力欄 */
.rn .wpcf7 input[type="text"], .rn .wpcf7 input[type="email"], .rn .wpcf7 input[type="tel"], .rn .wpcf7 input[type="url"],
.rn .wpcf7 input[type="number"], .rn .wpcf7 input[type="date"], .rn .wpcf7 select, .rn .wpcf7 textarea {
	display: block; width: 100%; min-height: 48px; padding: 11px 14px; margin: 0;
	border: 1px solid var(--line-2); border-radius: 10px; background: #fff; color: var(--ink);
	font-size: 16px; font-weight: 400; line-height: 1.6; -webkit-appearance: none; appearance: none;
	transition: border-color .15s, box-shadow .15s;
}
.rn .wpcf7 textarea { min-height: 200px; resize: vertical; }
.rn .wpcf7 select {
	padding-right: 40px; cursor: pointer;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a7f7b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat;
}
.rn .wpcf7 input::placeholder, .rn .wpcf7 textarea::placeholder { color: #a1a5a1; }
.rn .wpcf7 input:hover, .rn .wpcf7 textarea:hover, .rn .wpcf7 select:hover { border-color: #c9ccc6; }
.rn .wpcf7 input:focus, .rn .wpcf7 textarea:focus, .rn .wpcf7 select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

/* チェックボックス・ラジオボタン */
.rn .wpcf7 .wpcf7-checkbox, .rn .wpcf7 .wpcf7-radio { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.rn .wpcf7 .wpcf7-list-item { margin: 0; }
.rn .wpcf7 .wpcf7-radio .wpcf7-list-item, .rn .wpcf7 .wpcf7-checkbox .wpcf7-list-item {
	display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 16px 8px 12px;
	border: 1px solid var(--line-2); border-radius: 10px; background: #fff; font-size: 15px; font-weight: 500; cursor: pointer;
	transition: border-color .15s, background .15s;
}
.rn .wpcf7 .wpcf7-radio .wpcf7-list-item:hover, .rn .wpcf7 .wpcf7-checkbox .wpcf7-list-item:hover { border-color: var(--primary); }
.rn .wpcf7 .wpcf7-radio .wpcf7-list-item:has(input:checked), .rn .wpcf7 .wpcf7-checkbox .wpcf7-list-item:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-ink); }
.rn .wpcf7 .wpcf7-radio .wpcf7-list-item:has(input:focus-visible), .rn .wpcf7 .wpcf7-checkbox .wpcf7-list-item:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--primary-soft); border-color: var(--primary); }
.rn .wpcf7 .wpcf7-list-item label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: inherit; font-size: inherit; color: inherit; cursor: pointer; }
.rn .wpcf7 .wpcf7-list-item-label { cursor: pointer; }
.rn .wpcf7 input[type="checkbox"], .rn .wpcf7 input[type="radio"] {
	display: inline-block !important; width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--primary); cursor: pointer;
}
.rn .wpcf7 input[type="radio"] + label::before, .rn .wpcf7 input[type="radio"]:checked + label::before { content: none; }
.rn .wpcf7 .wpcf7-acceptance .wpcf7-list-item label { font-size: 15px; font-weight: 500; }

/* 補足の文字 */
.rn .wpcf7 .annotation, .rn .wpcf7 .note { margin: 6px 0 0; font-size: 13px; color: var(--muted); font-weight: 400; line-height: 1.6; }
.rn .wpcf7 .acceptance { display: block; margin: 8px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--bg); text-align: center; font-size: 15px; }

/* ボタン */
.rn .wpcf7 .form_btn { margin: 28px 0 0; padding: 0; text-align: center; }
.rn .wpcf7 .form_btn > p, .rn .wpcf7 .form_btn { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
.rn .wpcf7 input[type="submit"], .rn .wpcf7 button[type="submit"], .rn .wpcf7 #btn-conf, .rn .wpcf7 #btn-submit, .rn .wpcf7 input#btn-conf, .rn .wpcf7 input#btn-submit {
	display: inline-flex; align-items: center; justify-content: center; width: auto; min-width: 220px; min-height: 52px; padding: 0 32px; margin: 0;
	border: 0; border-radius: 12px; background: var(--primary); color: #fff; font-size: 16px; font-weight: 700; line-height: 1.4;
	cursor: pointer; -webkit-appearance: none; appearance: none; transition: background .15s; transform: none;
}
.rn .wpcf7 input[type="submit"]:hover, .rn .wpcf7 button[type="submit"]:hover, .rn .wpcf7 #btn-conf:hover, .rn .wpcf7 #btn-submit:hover {
	background: #2f7a68; color: #fff; padding: 0 32px; transform: none;
}
.rn .wpcf7 input[type="submit"]:disabled { opacity: .5; cursor: default; }
.rn .wpcf7 #btn-back, .rn .wpcf7 input#btn-back, .rn .wpcf7 input[type="button"] {
	display: inline-flex; align-items: center; justify-content: center; width: auto; min-width: 160px; min-height: 52px; padding: 0 28px; margin: 0;
	border: 1px solid var(--line-2); border-radius: 12px; background: #fff; color: var(--ink); font-size: 16px; font-weight: 700;
	cursor: pointer; -webkit-appearance: none; appearance: none;
}
.rn .wpcf7 #btn-back:hover, .rn .wpcf7 input[type="button"]:hover { background: var(--bg); }

/* 送信中のくるくる */
.rn .wpcf7 .wpcf7-spinner { vertical-align: middle; margin: 0 0 0 12px; background-color: var(--primary); }
.rn .wpcf7 .form_btn .wpcf7-spinner { margin: 0; }
.rn .wpcf7 .ajax-loader { display: none !important; }

/* 入力ミス・送信結果のメッセージ */
.rn .wpcf7 .wpcf7-not-valid { border-color: #a8524a !important; background: #fff; }
.rn .wpcf7 .wpcf7-not-valid:focus { box-shadow: 0 0 0 3px #f8ecea !important; }
.rn .wpcf7 .wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: 13px; font-weight: 700; color: #a8524a !important; }
.rn .wpcf7 form .wpcf7-response-output {
	margin: 20px 0 0 !important; padding: 14px 16px !important; border: 0 !important; border-radius: 12px;
	font-size: 14px; line-height: 1.7; background: var(--bg); color: var(--ink);
}
.rn .wpcf7 form.invalid .wpcf7-response-output, .rn .wpcf7 form.unaccepted .wpcf7-response-output, .rn .wpcf7 form.payment-required .wpcf7-response-output {
	background: #f8ecea !important; color: #a8524a;
}
.rn .wpcf7 form.failed .wpcf7-response-output, .rn .wpcf7 form.aborted .wpcf7-response-output, .rn .wpcf7 form.spam .wpcf7-response-output {
	background: #f8ecea !important; color: #a8524a;
}
.rn .wpcf7 form.sent .wpcf7-response-output { background: var(--primary-soft) !important; color: var(--primary-ink); font-weight: 700; }
.rn .wpcf7 .wpcf7-validation-errors, .rn .wpcf7 .wpcf7-acceptance-missing { border: 0 !important; }

/* 表の形で組まれたフォーム（旧テーマの書き方） */
.rn .post_body .wpcf7 table, .rn .post_body .contact_form table { border: 0; margin: 0 0 8px; }
.rn .post_body .wpcf7 table th, .rn .post_body .wpcf7 table td { border: 0; border-bottom: 1px solid var(--line); background: none; padding: 16px 8px; vertical-align: top; }
.rn .post_body .wpcf7 table th { width: 30%; padding-top: 26px; font-size: 15px; }
@media (max-width: 600px) {
	.rn .post_body .wpcf7 table, .rn .post_body .wpcf7 tbody, .rn .post_body .wpcf7 tr, .rn .post_body .wpcf7 th, .rn .post_body .wpcf7 td { display: block; width: 100% !important; }
	.rn .post_body .wpcf7 table th { padding: 16px 0 6px; border-bottom: 0; }
	.rn .post_body .wpcf7 table td { padding: 0 0 16px; }
	.rn .post_body .wpcf7 .table-scroll table { min-width: 0; }
	 .rn .wpcf7 input[type="submit"], .rn .wpcf7 input#btn-conf, .rn .wpcf7 input#btn-submit, .rn .wpcf7 input#btn-back, .rn .wpcf7 .form_btn > p { width: 100%; }
}
/* 本文の文字設定（17px・両端そろえ）をフォームの中では使わない */
.rn .post_body .wpcf7 p { font-size: 16px; line-height: 1.8; text-align: left; }
.rn .post_body .wpcf7 form > p, .rn .post_body .wpcf7 .form_item { margin: 0 0 24px; }
.rn .article-page .wpcf7 { max-width: none; }
.rn .post_body .wpcf7 .form_item p, .rn .post_body .wpcf7 .form_btn p { margin: 0; }
.rn .post_body .wpcf7 .form_label { font-size: 15px; }
@media (max-width: 767px) { .rn .article-page .wpcf7 { padding: 22px 18px; } }
/* フォームのあるページは、白い枠を重ねない（背景の上にフォームの白いカードだけ） */
.rn .article-page:has(.wpcf7) { background: transparent; box-shadow: none; padding: 8px 0 0; margin: 0; }
.rn .article-page:has(.wpcf7) .article-head { border-bottom: 0; padding-bottom: 0; margin-bottom: 28px; }
.rn .article-page:has(.wpcf7) .article-title { font-size: 36px; font-weight: 500; letter-spacing: .12em; }
@media (max-width: 767px) { .rn .article-page:has(.wpcf7) .article-title { font-size: 26px; letter-spacing: .08em; } }
.rn .article-page:has(.wpcf7) .post_body > p { font-size: 16px; text-align: left; }
/* 送信ボタンの古い影を消す */
.rn .wpcf7 input#btn-submit, .rn .wpcf7 input#btn-conf, .rn .wpcf7 input[type="submit"] { box-shadow: none; }

/* ============================================================
   16 目次：古い記事の <div id="toc" class="toc_guide"> もほかの記事と同じ見た目に
   （旧テーマの styles.css にある .toc_guide の緑の背景・番号なしを打ち消す）
   ============================================================ */
.rn #toc.toc_guide > ol { margin: 0; }
.rn #toc.toc_guide > ol > li { background: none; border-radius: 0; padding: 8px 0; }
.rn #toc.toc_guide > ol > li::before { display: inline; }
.rn #toc.toc_guide > ol > ol { margin-bottom: 0; }
.rn #toc.toc_guide a { display: inline; }
