/*
Theme Name: ぞうさん自習室（zousan-blog）
Theme URI: https://zousan-kenko.com/
Author: ぞうさん健康麻雀教室
Description: ぞうさん健康麻雀教室の記事サイト「ぞうさん自習室」用オリジナルテーマ。初心者専門・女性歓迎の健康麻雀カルチャースクールのブログ・お知らせ向け。麻雀牌モチーフのカードデザインと、シニア読者最優先の大きな文字・ゆったり行間が特徴です。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zousan-blog
*/

/* ============================================
   ぞうさん健康麻雀教室 デザイントークン
   （トップページ index.html / style.css と完全共通）
   ・ベース　　： #FFFBF1（あたたかいアイボリー）
   ・メイン　　： #F0776B（コーラル・ポップな暖色）
   ・サブ　　　： #3E8E6C（雀卓のグリーン）
   ・アクセント： #FFC94D（ひだまりイエロー）
   ・ぞうさん　： #8FA8C8（やさしいブルーグレー）
   ・LINE　　　： #06C755
   ・文字　　　： #4A3B36（こげ茶）
============================================ */

:root {
  --cream: #FFFBF1;
  --white: #FFFFFF;
  --coral: #F0776B;
  --coral-dark: #D95F53;
  --coral-soft: #FDEDE8;
  --green: #3E8E6C;
  --green-soft: #E9F4EE;
  --yellow: #FFC94D;
  --yellow-soft: #FFF4DA;
  --zou: #8FA8C8;
  --line: #06C755;
  --line-dark: #05A847;
  --ink: #4A3B36;
  --ink-light: #7A6A63;
  --radius: 20px;
  --radius-tile: 14px;
  --shadow: 0 6px 20px rgba(74, 59, 54, 0.10);
  --font-display: "Zen Maru Gothic", sans-serif;
  --font-body: "Noto Sans JP", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  /* シニア読者最優先：PC 17px */
  font-size: 17px;
  line-height: 2;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--coral-dark); }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.sp-only { display: none; }

/* スクリーンリーダー用 */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px; width: 1px;
  overflow: hidden;
  position: absolute !important;
  word-wrap: normal !important;
}
.skip-link:focus {
  clip: auto; clip-path: none;
  width: auto; height: auto;
  position: fixed; top: 8px; left: 8px;
  z-index: 999;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

/* マーカー（トップページと共通の蛍光イエロー） */
.marker {
  background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%);
  font-weight: 700;
  padding: 0 2px;
}

/* ---------- ボタン（トップページと共通） ---------- */
.btn {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 16px 32px;
  font-size: 1.05rem;
  line-height: 1.4;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

.btn-line {
  background: var(--line);
  color: #fff;
  box-shadow: 0 6px 0 var(--line-dark);
}
.btn-line:hover { box-shadow: 0 8px 0 var(--line-dark); }

.btn-tel {
  background: var(--white);
  color: var(--coral-dark);
  border: 3px solid var(--coral);
  box-shadow: 0 6px 0 rgba(217, 95, 83, 0.35);
}

.btn-xl { padding: 20px 40px; font-size: 1.2rem; width: 100%; max-width: 420px; }
.btn-sub { font-size: 0.8rem; font-weight: 500; opacity: 0.9; flex-basis: 100%; }

.line-icon {
  display: inline-block;
  width: 1.3em; height: 1.3em;
  margin-right: 8px;
  background: #fff;
  border-radius: 6px;
  position: relative;
  vertical-align: middle;
}
.line-icon::after {
  content: "LINE";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.38em; font-weight: 900; color: var(--line);
  letter-spacing: 0;
}
.btn-tel .line-icon { background: var(--coral); }

/* ---------- ヘッダー（トップページと同じ見た目・文言） ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 251, 241, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(74, 59, 54, 0.08);
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  padding: 10px 24px;
}
.site-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit;
}
.elephant-svg { width: 44px; height: 44px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.3; }
.logo-small { font-size: 0.7rem; color: var(--ink-light); letter-spacing: 0.1em; }
.logo-name { font-family: var(--font-display); font-weight: 900; font-size: 1.05rem; color: var(--ink); }
.header-nav { margin-left: auto; }
.header-nav ul { display: flex; gap: 20px; list-style: none; }
.header-nav a {
  font-size: 0.9rem; font-weight: 500; color: var(--ink);
  text-decoration: none; padding: 6px 2px;
  border-bottom: 2px solid transparent;
  display: inline-block;
}
.header-nav a:hover { border-bottom-color: var(--coral); color: var(--coral-dark); }
.header-cta {
  display: inline-flex; align-items: center;
  background: var(--line); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 0.9rem;
  text-decoration: none; border-radius: 999px; padding: 10px 20px;
  white-space: nowrap;
}
.header-cta:hover { background: var(--line-dark); }

/* ---------- ブログ用ページヘッダー ---------- */
.blog-hero {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 201, 77, 0.25) 0, transparent 30%),
    radial-gradient(circle at 88% 75%, rgba(240, 119, 107, 0.16) 0, transparent 32%),
    linear-gradient(160deg, #FFF3E4 0%, #FDEDE8 55%, #FFF9EC 100%);
  padding: 40px 0 48px;
  text-align: center;
}
.blog-hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  line-height: 1.6;
}
.blog-hero-title .title-icon { margin-right: 0.3em; }
.blog-hero-lead {
  font-size: 0.95rem;
  color: var(--ink-light);
  margin-top: 8px;
}

/* ---------- パンくずリスト ---------- */
.breadcrumb { padding: 18px 0 0; }
.breadcrumb ol {
  list-style: none;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 4px 6px;
  font-size: 0.875rem; /* 14px を下回らない */
  line-height: 1.7;
}
.breadcrumb li { display: flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before {
  content: "›";
  color: var(--ink-light);
  font-weight: 700;
}
.breadcrumb a { color: var(--ink-light); text-decoration: none; }
.breadcrumb a:hover { color: var(--coral-dark); text-decoration: underline; }
.breadcrumb .current { color: var(--ink); font-weight: 500; }

/* ---------- メインエリア ---------- */
.site-main { padding-bottom: 80px; }
.archive-body { padding-top: 40px; }

/* ---------- 記事カード（麻雀牌モチーフ） ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.post-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #FDF7EE 100%);
  border: 1px solid rgba(74, 59, 54, 0.08);
  border-bottom: 6px solid var(--coral);
  border-radius: var(--radius-tile);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s ease;
}
.post-card:nth-child(even) { border-bottom-color: var(--green); }
.post-card:hover { transform: translateY(-4px); }
.post-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.post-card-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--yellow-soft);
}
.post-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.post-card:hover .post-card-thumb img { transform: scale(1.04); }
.post-card-body { padding: 18px 22px 22px; }
.post-card-meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px 12px;
  margin-bottom: 10px;
}
.cat-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 999px;
  padding: 2px 14px;
  line-height: 1.8;
}
a.cat-badge { text-decoration: none; }
a.cat-badge:hover { background: var(--coral); color: #fff; }
.post-date {
  font-size: 0.875rem;
  color: var(--ink-light);
}
.post-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--ink);
}
.post-card-excerpt {
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--ink-light);
  margin-top: 8px;
}

/* 記事が無いとき */
.no-posts {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  padding: 56px 24px;
}
.no-posts p { margin-bottom: 20px; }
.no-posts .search-form { margin: 0 auto; }

/* ---------- ページネーション ---------- */
.pagination { margin-top: 48px; }
.pagination .nav-links {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 10px;
}
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 48px; height: 48px;
  padding: 0 14px;
  background: var(--white);
  border: 1px solid rgba(74, 59, 54, 0.1);
  border-bottom: 4px solid var(--green);
  border-radius: var(--radius-tile);
  box-shadow: var(--shadow);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
}
.pagination a.page-numbers:hover {
  border-bottom-color: var(--coral);
  color: var(--coral-dark);
  transform: translateY(-2px);
}
.pagination .page-numbers.current {
  background: var(--green);
  border-bottom-color: var(--green);
  color: #fff;
}
.pagination .page-numbers.dots {
  background: transparent;
  border: none;
  box-shadow: none;
}

/* ---------- 記事詳細 ---------- */
.entry { padding-top: 8px; }
.entry-inner { max-width: 720px; margin: 0 auto; }

.entry-header { padding: 28px 0 20px; }
.entry-title {
  font-family: var(--font-display);
  font-weight: 900;
  /* スマホでも 1.5rem 以上 */
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.7;
  margin: 14px 0 16px;
}
.entry-meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px 14px;
}
.entry-meta .post-date { font-size: 0.875rem; }

.entry-thumb { margin-bottom: 8px; }
.entry-thumb img {
  border-radius: var(--radius-tile);
  border: 6px solid var(--white);
  box-shadow: var(--shadow);
  width: 100%;
}

/* ============================================
   記事本文（Gutenberg 標準ブロック対応）
============================================ */
.entry-content {
  padding-top: 20px;
}
.entry-content > * { margin-bottom: 1.6em; }
.entry-content p { margin-bottom: 1.8em; }

.entry-content a { color: var(--coral-dark); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--coral); }

/* --- h2：麻雀牌風の白タイル見出し --- */
.entry-content h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.35rem, 3vw, 1.6rem);
  line-height: 1.7;
  color: var(--ink);
  background: linear-gradient(180deg, #FFFFFF 0%, #FDF7EE 100%);
  border: 1px solid rgba(74, 59, 54, 0.08);
  border-left: 10px solid var(--green);
  border-bottom: 5px solid var(--coral);
  border-radius: var(--radius-tile);
  box-shadow: var(--shadow);
  padding: 18px 24px;
  margin: 2.4em 0 1.2em;
}

/* --- h3：マーカー風下線＋🀄アイコン --- */
.entry-content h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.6vw, 1.35rem);
  line-height: 1.8;
  margin: 2em 0 1em;
  padding-bottom: 2px;
  background: linear-gradient(transparent 70%, var(--yellow) 70%, var(--yellow) 96%, transparent 96%);
  display: inline-block;
}
.entry-content h3::before {
  content: "🀄";
  margin-right: 0.4em;
  font-size: 0.9em;
}

/* --- h4：グリーン左ボーダーのシンプル見出し --- */
.entry-content h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.8;
  border-left: 5px solid var(--green);
  padding-left: 14px;
  margin: 1.8em 0 0.9em;
}

/* --- 引用 --- */
.entry-content blockquote {
  position: relative;
  background: #FBF4E8;
  border-radius: var(--radius-tile);
  padding: 28px 28px 24px 60px;
  font-size: 0.98em;
  color: var(--ink);
}
.entry-content blockquote::before {
  content: "\201C";
  position: absolute;
  left: 16px; top: 6px;
  font-family: Georgia, serif;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--coral);
}
.entry-content blockquote p { margin-bottom: 0.8em; }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite {
  display: block;
  font-style: normal;
  font-size: 0.875rem;
  color: var(--ink-light);
  margin-top: 8px;
}

/* --- 箇条書き：✓（イエロー丸背景） --- */
.entry-content ul {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 12px;
}
.entry-content ul > li {
  background: var(--white);
  border-radius: var(--radius-tile);
  box-shadow: var(--shadow);
  padding: 12px 18px 12px 48px;
  position: relative;
  line-height: 1.8;
}
.entry-content ul > li::before {
  content: "✓";
  position: absolute; left: 14px; top: 0.85em;
  width: 24px; height: 24px;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 0.85rem;
  line-height: 1;
}
/* 入れ子リストはシンプルに */
.entry-content ul ul,
.entry-content ul ol {
  margin-top: 10px;
  gap: 8px;
}
.entry-content ul ul > li {
  box-shadow: none;
  background: var(--cream);
}

/* --- 番号付きリスト：コーラル丸数字 --- */
.entry-content ol {
  list-style: none;
  counter-reset: zousan-ol;
  display: flex; flex-direction: column;
  gap: 12px;
}
.entry-content ol > li {
  counter-increment: zousan-ol;
  background: var(--white);
  border-radius: var(--radius-tile);
  box-shadow: var(--shadow);
  padding: 12px 18px 12px 48px;
  position: relative;
  line-height: 1.8;
}
.entry-content ol > li::before {
  content: counter(zousan-ol);
  position: absolute; left: 14px; top: 0.85em;
  width: 24px; height: 24px;
  background: var(--coral);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 900; font-size: 0.85rem;
  line-height: 1;
}

/* --- 表 --- */
.entry-content .wp-block-table,
.entry-content .zousan-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-tile);
  box-shadow: var(--shadow);
}
.entry-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border-radius: var(--radius-tile);
  overflow: hidden;
  font-size: 0.98em;
}
.entry-content table th,
.entry-content table td {
  padding: 12px 16px;
  border: none;
  text-align: left;
  line-height: 1.8;
}
.entry-content table thead th,
.entry-content table tr:first-child th {
  background: var(--green);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02em;
}
.entry-content table tbody tr:nth-child(even) td,
.entry-content table tbody tr:nth-child(even) th {
  background: #FDF6EC;
}
.entry-content table tbody th {
  font-weight: 700;
}

/* --- 画像 --- */
.entry-content img {
  border-radius: var(--radius-tile);
}
.entry-content figure { margin: 2em 0; }
.entry-content figcaption {
  text-align: center;
  font-size: 0.875rem;
  color: var(--ink-light);
  margin-top: 10px;
}

/* --- 区切り線 --- */
.entry-content hr {
  border: none;
  border-top: 3px dotted var(--zou);
  margin: 3em auto;
  max-width: 200px;
}

/* --- 太字＋マーカー（ユーティリティ） --- */
/* mark はエディタの「ハイライト」が付けるインラインスタイルに勝つため !important */
.entry-content .marker,
.entry-content mark {
  background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%) !important;
  font-weight: 700;
  color: inherit !important;
  padding: 0 2px;
}

/* --- 補足ボックス：ポイント --- */
.entry-content .box-point {
  background: var(--green-soft);
  border: 2px dashed var(--green);
  border-radius: var(--radius);
  padding: 24px 28px 20px;
  position: relative;
  margin-top: 2.4em;
}
.entry-content .box-point::before {
  content: "🌿 ポイント";
  position: absolute;
  top: -18px; left: 20px;
  background: var(--green);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 999px;
  padding: 4px 18px;
  line-height: 1.8;
}
.entry-content .box-point p:last-child { margin-bottom: 0; }

/* --- 補足ボックス：ご注意 --- */
.entry-content .box-caution {
  background: var(--coral-soft);
  border: 2px dashed var(--coral);
  border-radius: var(--radius);
  padding: 24px 28px 20px;
  position: relative;
  margin-top: 2.4em;
}
.entry-content .box-caution::before {
  content: "⚠️ ご注意";
  position: absolute;
  top: -18px; left: 20px;
  background: var(--coral);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 999px;
  padding: 4px 18px;
  line-height: 1.8;
}
.entry-content .box-caution p:last-child { margin-bottom: 0; }

/* --- ボタンブロックにも教室のテイストを --- */
.entry-content .wp-block-button__link {
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  box-shadow: 0 5px 0 var(--coral-dark);
}

/* ============================================
   目次（もくじ）
============================================ */
.zousan-toc { margin: 2.4em 0; }
.zousan-toc .toc-box {
  background: linear-gradient(180deg, #FFFFFF 0%, #FDF6EC 100%);
  border: 1px solid rgba(74, 59, 54, 0.1);
  border-bottom: 6px solid var(--green);
  border-radius: var(--radius-tile);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.zousan-toc .toc-summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.2rem;
  padding: 18px 24px;
  user-select: none;
}
.zousan-toc .toc-summary::-webkit-details-marker { display: none; }
.zousan-toc .toc-summary:hover { color: var(--coral-dark); }
.zousan-toc .toc-elephant svg { width: 30px; height: 30px; display: block; }
.zousan-toc .toc-toggle { margin-left: auto; }
.zousan-toc .toc-toggle::before {
  content: "－";
  color: var(--coral);
  font-weight: 900;
  font-size: 1.3rem;
}
.zousan-toc .toc-box:not([open]) .toc-toggle::before { content: "＋"; }
.zousan-toc .toc-list {
  list-style: none;
  counter-reset: toc-h2;
  margin: 0;
  padding: 4px 24px 20px;
  display: block;
}
.zousan-toc .toc-list > li {
  counter-increment: toc-h2;
  background: none; box-shadow: none; padding: 0;
}
.zousan-toc .toc-list > li::before { content: none; }
.zousan-toc .toc-list a {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  text-decoration: none;
  /* タップ領域を大きく */
  padding: 12px 8px;
  border-bottom: 1px dashed rgba(74, 59, 54, 0.15);
  line-height: 1.7;
}
.zousan-toc .toc-list > li > a::before {
  content: counter(toc-h2);
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  font-size: 0.85rem;
  margin-right: 10px;
  vertical-align: 0.1em;
}
.zousan-toc .toc-list a:hover { color: var(--coral-dark); background: var(--yellow-soft); border-radius: 8px; }
.zousan-toc .toc-sub {
  list-style: none;
  margin: 0 0 4px 36px;
  padding: 0;
  display: block;
}
.zousan-toc .toc-sub li { background: none; box-shadow: none; padding: 0; counter-increment: none; }
.zousan-toc .toc-sub li::before { content: none; }
.zousan-toc .toc-sub a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-light);
  padding: 10px 8px;
}
.zousan-toc .toc-sub a::before { content: "・"; color: var(--green); margin-right: 4px; }

/* ============================================
   記事末尾 CTA（無料体験レッスンのご案内）
============================================ */
.entry-cta {
  margin-top: 64px;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 201, 77, 0.3) 0, transparent 35%),
    linear-gradient(160deg, #FDEDE8 0%, #FFF3E0 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  padding: 44px 28px;
}
.entry-cta-label {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--green);
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.entry-cta-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.4rem, 3.4vw, 1.8rem);
  line-height: 1.6;
  margin-bottom: 16px;
}
.entry-cta-text { margin-bottom: 26px; }
.entry-cta-buttons {
  display: flex; flex-direction: column; align-items: center;
  gap: 18px;
}
.entry-cta-note {
  margin-top: 18px;
  font-size: 0.875rem;
  color: var(--ink-light);
}

/* ============================================
   関連記事
============================================ */
.related-posts { margin-top: 72px; }
.related-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 28px;
}
.related-title::before { content: "🐘"; margin-right: 0.4em; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.related-grid .post-card-title { font-size: 1.02rem; }

/* ---------- 固定ページ ---------- */
.page-entry .entry-title { text-align: center; }

/* ---------- 検索フォーム ---------- */
.search-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
}
.search-form .search-field {
  flex: 1;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 2px solid rgba(74, 59, 54, 0.15);
  border-radius: 999px;
  padding: 12px 22px;
}
.search-form .search-field:focus {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
  border-color: var(--coral);
}
.search-form .search-submit {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  background: var(--green);
  border: none;
  border-radius: 999px;
  padding: 12px 26px;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(62, 142, 108, 0.5);
}
.search-form .search-submit:hover { background: var(--coral); box-shadow: 0 4px 0 var(--coral-dark); }

/* ---------- 404 ---------- */
.error-404 {
  max-width: 640px;
  margin: 48px auto 0;
  background: linear-gradient(180deg, #FFFFFF 0%, #FDF7EE 100%);
  border: 1px solid rgba(74, 59, 54, 0.08);
  border-bottom: 8px solid var(--coral);
  border-radius: var(--radius-tile);
  box-shadow: var(--shadow);
  text-align: center;
  padding: 56px 32px;
}
.error-404 .error-mark { margin: 0 auto 16px; width: 90px; }
.error-404 .error-mark svg { width: 90px; height: 90px; }
.error-404 h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  margin-bottom: 14px;
}
.error-404 p { margin-bottom: 24px; }
.error-404 .search-form { margin: 0 auto 28px; }
.error-404 .btn { font-size: 1rem; padding: 14px 32px; }

/* ---------- フッター（トップページと同じ見た目・文言） ---------- */
.site-footer {
  background: var(--ink);
  color: #F5EDE6;
  text-align: center;
  padding: 56px 0 120px;
}
.footer-logo { display: flex; flex-direction: column; margin-bottom: 12px; }
.footer-logo .logo-small { color: #C9B8AE; }
.footer-logo .logo-name { color: #fff; font-size: 1.2rem; }
.footer-address { font-size: 0.9rem; color: #C9B8AE; margin-bottom: 24px; }
.footer-nav { display: flex; justify-content: center; margin-bottom: 28px; }
.footer-nav ul {
  list-style: none;
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 8px 24px;
}
.footer-nav a { color: #F5EDE6; font-size: 0.9rem; text-decoration: none; }
.footer-nav a:hover { color: var(--yellow); }
.copyright { font-size: 0.8rem; color: #A08F86; }

/* ---------- スマホ固定CTA（トップページと共通） ---------- */
.fixed-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  display: flex; gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 -4px 20px rgba(74, 59, 54, 0.15);
}
.fixed-cta .btn-line { flex: 1; padding: 14px 12px; font-size: 1rem; box-shadow: none; }
.btn-tel-round {
  width: 54px; height: 54px;
  padding: 0 !important;
  border-radius: 50%;
  font-size: 1.4rem;
  box-shadow: none !important;
  flex-shrink: 0;
}

/* ============================================
   レスポンシブ
============================================ */
@media (max-width: 960px) {
  .header-nav { display: none; }
}

@media (max-width: 600px) {
  body {
    /* シニア読者最優先：スマホは 18px に拡大 */
    font-size: 18px;
  }
  .sp-only { display: inline; }
  .container { padding: 0 20px; }
  .blog-hero { padding: 32px 0 36px; }
  .post-grid { grid-template-columns: 1fr; gap: 22px; }
  .related-grid { grid-template-columns: 1fr; gap: 18px; }
  .entry-content h2 { padding: 15px 18px; border-left-width: 8px; }
  .entry-content blockquote { padding: 24px 20px 20px 52px; }
  .entry-content .box-point,
  .entry-content .box-caution { padding: 22px 20px 18px; }
  .entry-cta { padding: 36px 20px; }
  .entry-cta-buttons .btn-xl { max-width: 100%; }
  .header-cta { padding: 8px 14px; font-size: 0.8rem; }
  .logo-name { font-size: 0.9rem; }
  .pagination .page-numbers { min-width: 44px; height: 44px; }
  .search-form .search-submit { padding: 12px 20px; }
}

/* PCでは固定CTAを非表示（トップページと同じ挙動） */
@media (min-width: 961px) {
  .fixed-cta { display: none; }
  .site-footer { padding-bottom: 56px; }
}

/* ============================================
   追記：メニュー再構成・ハンバーガー・著者ボックス
   （2箇所メニュー / 外部リンク / スマホドロワー / SNS）
============================================ */

/* ---------- 外部リンク（「公式サイトはこちら」等） ---------- */
.header-nav a.is-external {
  color: var(--coral-dark);
  font-weight: 700;
}
.header-nav a.is-external::after,
.footer-nav a.is-external::after {
  content: "\2197"; /* ↗ 外部リンクを示すアイコン */
  margin-left: 4px;
  font-weight: 700;
  font-size: 0.95em;
}
.footer-nav a.is-external {
  color: var(--yellow);
  font-weight: 700;
}

/* ---------- ハンバーガーボタン（PC では非表示） ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;   /* シニアが押しやすい最低 48px 四方 */
  height: 48px;
  margin-left: 8px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 12px;
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle:hover { background: rgba(74, 59, 54, 0.06); }
.nav-toggle-bars {
  display: block;
  position: relative;
  width: 26px;
  height: 19px;
}
.nav-toggle-bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}
.nav-toggle-bar:nth-child(1) { top: 0; }
.nav-toggle-bar:nth-child(2) { top: 8px; }
.nav-toggle-bar:nth-child(3) { top: 16px; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) { top: 8px; transform: rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) { top: 8px; transform: rotate(-45deg); }

/* ---------- スマホ：ドロワー（ドロップダウン）メニュー ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }

  /* ヘッダー右側に CTA とハンバーガーを寄せる */
  .header-cta { margin-left: auto; }

  /* メニューはヘッダー直下のドロップダウンに */
  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    background: var(--white);
    border-top: 1px solid rgba(74, 59, 54, 0.08);
    box-shadow: var(--shadow);
    padding: 6px 0 10px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .header-nav.is-open { display: block; }

  .header-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .header-nav li {
    border-bottom: 1px solid rgba(74, 59, 54, 0.07);
  }
  .header-nav li:last-child { border-bottom: none; }
  .header-nav a {
    display: block;
    /* シニア読者最優先：大きな文字＆広いタップ領域（最低 48px） */
    font-size: 1.05rem;
    line-height: 1.4;
    padding: 14px 24px;
    min-height: 48px;
    border-bottom: none;
  }
  .header-nav a:hover {
    border-bottom-color: transparent;
    background: var(--coral-soft);
    color: var(--coral-dark);
  }
  .header-nav a.is-external { color: var(--coral-dark); }
}

@media (max-width: 600px) {
  .header-inner { gap: 10px; }
}

/* ---------- 投稿者プロフィールボックス ---------- */
.author-box {
  max-width: 720px;
  margin: 44px auto 0;
  background: var(--white);
  border: 2px solid var(--coral-soft);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  box-shadow: var(--shadow);
}
.author-box-head {
  display: flex;
  align-items: center;
  gap: 18px;
}
.author-avatar img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--coral-soft);
}
.author-box-label {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  background: var(--coral);
  padding: 2px 14px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.author-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--ink);
  line-height: 1.4;
}
.author-bio {
  margin-top: 16px;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--ink);
}
.author-sns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin-top: 18px;
}
.author-sns-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;   /* SNS ボタンも 48px 四方を確保 */
  height: 48px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  border: 1px solid rgba(74, 59, 54, 0.12);
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.author-sns-link:hover { transform: translateY(-2px); }
.author-sns .sns-icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
}
.author-sns .sns-icon svg { width: 100%; height: 100%; display: block; }
.sns-twitter:hover   { background: #000000;  color: #fff; border-color: #000000; }
.sns-instagram:hover { background: #E1306C;  color: #fff; border-color: #E1306C; }
.sns-youtube:hover   { background: #FF0000;  color: #fff; border-color: #FF0000; }
.sns-line:hover      { background: var(--line); color: #fff; border-color: var(--line); }

@media (max-width: 600px) {
  .author-box { padding: 22px 20px 20px; margin-top: 36px; }
  .author-box-head { gap: 14px; }
  .author-avatar img { width: 60px; height: 60px; }
  .author-name { font-size: 1.1rem; }
}

/* ---------- メインビジュアル：画像バナー版 ---------- */
.blog-hero--image {
  /* テキスト版の背景グラデーション・余白はリセットし、画像を主役に */
  background: none;
  padding: 20px 16px 8px;
  text-align: center;
}
.blog-hero--image .blog-hero-title {
  margin: 0;
  line-height: 0; /* h1 内 img 下の余白を消す */
}
.blog-hero-image {
  width: 100%;
  height: auto;
  max-width: 1200px;
  margin: 0 auto;
  display: block;
}
@media (max-width: 600px) {
  .blog-hero--image { padding: 12px 12px 4px; }
}
