/*
Theme Name: 家康公検定 (Ieyasu Kentei)
Theme URI: https://ieyasukou.jp/
Author: kotecapo studio
Description: 「家康公検定」公式サイト用カスタムテーマ。CSS/JS/構造化データを分離。ab-doc系（トップ＋下層）の全スタイルを本ファイルに集約し、apply系（申込フロー）のみ別CSSで分離。
Version: 1.0.3
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ieyasu-kentei
*/

/* =====================================================================
   ab-doc系（トップ＋下層ページ）の全CSSを読み込み順で結合した単一ファイル。
   各ページCSSは名前空間が独立（ns-/kk-/fq-/co-/pv-/nd-）のため安全に共存。
   ※旧1440px固定版 style.css はレガシーのため除外（about.cssが正本）。
   ※apply系（申込フロー）は汎用セレクタ衝突のため別CSS(assets/css/apply.css)で分離。
   ===================================================================== */

/* ===================== about.css（共通(ヘッダー/ナビ/タイトル帯/フッター/ボタン)） ===================== */
/* =============================================
   about.css — 共通レイアウト（サブページ共通）＋ 検定について ページ
   ・素のHTML/CSS（WordPressテンプレート化前提）
   ・フルード＋ブレークポイントでレスポンシブ対応
   ・ナビ等は body.ab-doc にスコープし、トップページ(index)に影響させない
   ============================================= */

.ab-doc { background: #000; }

/* ラッパー（旧スケーラ。フルード化により単純なパススルー） */
.ab-scaler { width: 100%; background: #000; }

/* 中央寄せ可変キャンバス（最大1440px） */
.ab-canvas {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
  background: #000;
  padding-top: 99px;            /* 固定ヘッダー分の余白 */
  overflow: hidden;             /* 葵紋装飾のはみ出し抑止 */
  /* 配色変数 */
  --cream: #f1e9de;
  --cream-warm: #efded0;
  --ink: #2f2519;
  --body: #4a3d2e;
  --note: #5c4f3f;
  --rule: rgba(90,70,45,0.25);
  --gold: #c9962f;
  /* 可変ガター（左右余白）/ パネル内余白 */
  --gutter: 60px;
  --panelpad: 90px;
}

/* =============================================
   固定ヘッダー（Figma「menu」コンポーネント準拠・CSSのみで追従）
   葵紋アイコン + 家康公検定ロゴ + ナビリンク
   ============================================= */
.ab-doc .nav {
  position: fixed;
  inset: 0 0 auto 0;
  width: 100%;
  height: 99px;
  background: #000;
  z-index: 1100;
  transform: none;
}
.ab-doc .nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}
.ab-doc .nav-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  flex-shrink: 0;
}
.ab-doc .nav-mon { width: 54px; height: 54px; display: block; position: static; inset: auto; }
/* style.css(旧nav)の position:absolute;left:107;top:45 を打ち消し、flex配置に戻す */
.ab-doc .nav-logo { width: 248px; height: 45px; display: block; position: static; inset: auto; }
.ab-doc .nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 30px;
  position: static;
  inset: auto;
  transform: none;
}
.ab-doc .nav-link {
  margin: 0;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.ab-doc .nav-link:hover { opacity: 0.78; }
.ab-doc .nav-link--dropdown { display: inline-flex; align-items: center; gap: 7px; }
.ab-doc .nav-chevron { width: 13px; height: 7px; display: block; transition: transform 0.2s ease; }

/* ドロップダウン（検定について / 過去問）— ホバーで開き、▽が反転 */
.ab-doc .nav-item { position: relative; display: flex; align-items: center; height: 100%; }
.ab-doc .nav-sub {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 12px 26px rgba(0,0,0,0.28);
  padding: 8px 0;
  display: none;
  z-index: 1200;
}
.ab-doc .nav-sub__link {
  display: block;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 15px;
  color: #1a1a1a;
  text-decoration: none;
  padding: 11px 22px;
  white-space: nowrap;
}
.ab-doc .nav-sub__link:hover { background: rgba(0,0,0,0.06); }
.ab-doc .nav-item--has-sub:hover .nav-sub,
.ab-doc .nav-item--has-sub:focus-within .nav-sub { display: block; }
.ab-doc .nav-item--has-sub:hover .nav-chevron,
.ab-doc .nav-item--has-sub:focus-within .nav-chevron { transform: rotate(180deg); }

/* 固定ヘッダー対象のアンカー余白（リンクで飛んだ際にヘッダーに隠れない） */
.ab-doc .ab-intro, .ab-doc .ab-tokuten, .ab-doc .ab-jisshi,
.ab-doc .kk-section, .ab-doc [id] { scroll-margin-top: 112px; }

/* モバイル用ハンバーガー（デスクトップ非表示） */
.ab-doc .nav-burger { display: none; }

/* =============================================
   共通ボタン
   ============================================= */
.ab-arrow {
  width: 56px; height: 40px; flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2043%2030'%3E%3Cg%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='27'%20cy='15'%20r='14'/%3E%3Cpath%20d='M0%2015H34'/%3E%3Cpath%20d='M27%208.5L34%2015L27%2021.5'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2043%2030'%3E%3Cg%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='27'%20cy='15'%20r='14'/%3E%3Cpath%20d='M0%2015H34'/%3E%3Cpath%20d='M27%208.5L34%2015L27%2021.5'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
}
.ab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 300px;
  max-width: 100%;
  padding: 14px 28px;
  /* ガラス調（半透明＋背景ぼかし） */
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(9px) saturate(120%);
  backdrop-filter: blur(9px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;   /* Group 19 統一デザイン：クリームのピル形 */
  text-decoration: none;
  color: #3b260f;
  font-family: var(--f-body);
  font-size: 24px;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 14px rgba(60,40,20,0.16), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.ab-btn:hover { background: rgba(255, 255, 255, 0.7); }
.ab-btn--block { display: flex; width: 380px; max-width: 100%; margin: 18px 0 8px; }

/* =============================================
   タイトル帯（白和紙）
   ============================================= */
.ab-titleband {
  margin: 0 var(--gutter);
  background: #fffdf8;
  border-radius: 14px;
  padding: 40px 56px 44px;
}
.ab-breadcrumb {
  font-family: var(--f-body);
  font-size: 15px;
  color: #7a6f60;
  letter-spacing: 0.04em;
  margin-bottom: 26px;
}
.ab-breadcrumb a { color: #7a6f60; text-decoration: none; }
.ab-breadcrumb a:hover { text-decoration: underline; }
.ab-pagetitle {
  font-family: var(--f-sec-title);
  font-weight: 700;
  font-size: 44px;
  color: #1f1a12;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.ab-pagetitle:last-child { margin-bottom: 0; }
.ab-pagesub {
  font-family: var(--f-body);
  font-size: 20px;
  color: #43382b;
  letter-spacing: 0.03em;
}

/* =============================================
   本文パネル（クリーム）
   ============================================= */
.ab-panel {
  margin: 52px var(--gutter) 0;
  background: var(--cream);
  border-radius: 14px;
  padding: 88px 0 96px;
}

.ab-h2 {
  font-family: var(--f-sec-title);
  font-weight: 700;
  font-size: 38px;
  color: var(--ink);
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  position: relative;
}
.ab-h2::after {
  content: "";
  display: block;
  width: 520px;
  max-width: 70%;
  height: 1px;
  background: rgba(90,70,45,0.35);
  margin-top: 18px;
}

.ab-body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.95;
  color: var(--body);
  letter-spacing: 0.02em;
}

/* ---- 家康公検定とは？ ---- */
.ab-intro {
  display: flex;
  gap: 40px;
  padding: 0 var(--panelpad);
  align-items: flex-start;
  flex-wrap: wrap;
}
.ab-intro__text { flex: 1 1 420px; min-width: 0; }
.ab-intro__text .ab-body { margin-bottom: 34px; }
.ab-intro__btns { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.ab-intro__btns .ab-btn { width: 360px; }
.ab-intro__photo { flex: 0 1 448px; min-width: 0; }
.ab-intro__photo img {
  width: 100%;
  max-width: 448px;
  aspect-ratio: 448 / 560;
  height: auto;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 4px;
  display: block;
}

/* =============================================
   合格証・受験特典
   ============================================= */
.ab-tokuten { padding: 84px var(--panelpad) 0; }
.ab-tokuten__intro { margin-bottom: 36px; }

.ab-cards { display: flex; gap: 0; align-items: stretch; flex-wrap: wrap; }
.ab-card { flex: 1 1 360px; min-width: 0; padding-right: 48px; }
.ab-card:last-child {
  padding-right: 0;
  padding-left: 48px;
  border-left: 1px solid rgba(90,70,45,0.3);
}
.ab-card__title {
  font-family: var(--f-sec-title);
  font-weight: 700;
  font-size: 26px;
  color: var(--ink);
  border-left: 6px solid var(--gold);
  padding-left: 14px;
  margin-bottom: 20px;
  line-height: 1.2;
}
.ab-card__body {
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.85;
  color: var(--body);
  margin-bottom: 18px;
}
.ab-card__note {
  font-family: var(--f-body);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--note);
  margin-bottom: 8px;
}
.ab-card__listlabel {
  font-family: var(--f-body);
  font-size: 17px;
  color: var(--ink);
  margin: 18px 0 12px;
}
.ab-card__imgs { display: flex; gap: 20px; align-items: center; margin-top: 22px; flex-wrap: wrap; }
.ab-card__img { display: block; border-radius: 6px; max-width: 100%; }
.ab-card__img--cert {
  width: auto;
  height: 232px;
  object-fit: contain;
  border-radius: 6px;
  filter: drop-shadow(0 6px 16px rgba(60,40,20,0.22));
}
.ab-card__img--poster { width: 130px; height: 173px; object-fit: cover; border: 1px solid rgba(0,0,0,0.1); }

/* アコーディオン（過去特典） */
.ab-accordion { list-style: none; }
.ab-accordion__item { margin-bottom: 12px; }
.ab-accordion__btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #2a1d12;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 15px 20px;
  font-family: var(--f-body);
  font-size: 16px;
  letter-spacing: 0.03em;
  cursor: pointer;
  text-align: left;
}
.ab-accordion__icon { color: var(--gold); font-size: 12px; }
.ab-accordion__panel { display: flex; gap: 14px; padding: 18px 4px 6px; flex-wrap: wrap; }
.ab-accordion__panel[hidden] { display: none; }
.ab-accordion__img { width: 110px; height: 150px; object-fit: cover; border-radius: 3px; }
.ab-accordion__img--board { width: 100%; max-width: 520px; height: auto; border-radius: 4px; }

/* =============================================
   実施要項テーブル
   ============================================= */
.ab-jisshi { padding-top: 92px; }
.ab-jisshi > .ab-h2 { padding: 0 var(--panelpad); }
.ab-table { margin-top: 36px; }

.ab-row {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 0;
  padding: 40px var(--panelpad) 40px calc(var(--panelpad) + 80px);
  border-top: 1px solid var(--rule);
}
.ab-row:first-child { border-top: none; }
.ab-row__label {
  font-family: var(--f-sec-title);
  font-weight: 500;
  font-size: 21px;
  color: var(--ink);
  letter-spacing: 0.04em;
  padding-top: 2px;
}
.ab-row__body { min-width: 0; }

.ab-lead {
  font-family: var(--f-sec-title);
  font-weight: 700;
  font-size: 24px;
  color: var(--ink);
  letter-spacing: 0.03em;
  line-height: 1.5;
}
.ab-note {
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.85;
  color: var(--note);
  margin-top: 16px;
}
.ab-note--mt { margin-top: 28px; }
.ab-lead + .ab-note { margin-top: 18px; }

/* 試験会場 */
.ab-venue { margin-bottom: 22px; }
.ab-venue:first-child { margin-top: 2px; }
.ab-venue__name {
  font-family: var(--f-sec-title);
  font-weight: 700;
  font-size: 24px;
  color: var(--ink);
  border-left: 6px solid var(--gold);
  padding-left: 14px;
  margin-bottom: 14px;
  line-height: 1.1;
}
.ab-venue__item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 8px 0 0 6px;
  font-family: var(--f-body);
  font-size: 16px;
}
.ab-pin {
  flex-shrink: 0;
  width: 16px; height: 18px;
  transform: translateY(3px);
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='18' viewBox='0 0 16 18'><path d='M8 1C4.7 1 2 3.7 2 7c0 4 6 10 6 10s6-6 6-10c0-3.3-2.7-6-6-6z' fill='none' stroke='%23b58a3c' stroke-width='1.3'/><circle cx='8' cy='7' r='2.2' fill='none' stroke='%23b58a3c' stroke-width='1.3'/></svg>") center/contain no-repeat;
}
.ab-venue__item a {
  color: #3a3024;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(90,70,45,0.5);
  word-break: break-word;
}
.ab-venue__item a:hover { color: #000; }

/* 申込方法の小見出し */
.ab-step {
  font-family: var(--f-sec-title);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: 0.02em;
  margin: 30px 0 0;
}
.ab-row .ab-step:first-child { margin-top: 0; }
.ab-subhead {
  font-family: var(--f-sec-title);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  margin: 40px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}
.ab-step2 {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  margin: 22px 0 8px;
}
.ab-acct {
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--body);
  margin-top: 14px;
}

/* リスト */
.ab-ul, .ab-ol { margin: 10px 0 0; padding-left: 0; list-style: none; }
.ab-ul > li, .ab-ol > li {
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.8;
  color: var(--note);
  margin-bottom: 6px;
  padding-left: 20px;
  position: relative;
}
.ab-ul > li::before { content: "・"; position: absolute; left: 2px; }
.ab-ol { counter-reset: ol; }
.ab-ol > li { counter-increment: ol; }
.ab-ol > li::before { content: "(" counter(ol) ") "; position: absolute; left: 0; }
.ab-ol-inner { list-style: none; counter-reset: oli; margin: 6px 0 0; padding-left: 20px; }
.ab-ol-inner > li { counter-increment: oli; padding-left: 24px; position: relative; }
.ab-ol-inner > li::before { content: counter(oli, cjk-decimal); position: absolute; left: 0; }
.ab-paren { color: var(--note); }

/* =============================================
   受験申込CTA帯（白・全幅）
   ============================================= */
.ab-cta {
  width: 100%;
  background: #fff;
  text-align: center;
  padding: 80px var(--gutter) 88px;
  margin-top: 64px;
  box-sizing: border-box;
}
.ab-cta__title {
  font-family: var(--f-sec-title);
  font-weight: 700;
  font-size: 36px;
  color: var(--ink);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.ab-cta__sub {
  font-family: var(--f-body);
  font-size: 18px;
  color: #5c4f3f;
  margin-bottom: 30px;
}
.ab-cta__btn {
  width: 400px;
  margin: 0 auto;   /* 配色は .ab-btn（クリーム）を継承し全ボタン統一 */
}
.ab-cta__btn:hover { background: #ffffff; }

/* =============================================
   フッター（全幅・黒）
   ============================================= */
.ab-footer {
  width: 100%;
  background: #000;
  padding: 56px var(--gutter) 48px;
  box-sizing: border-box;
}
.ab-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 64px;
  margin-bottom: 22px;
}
.ab-footer__link {
  font-family: var(--f-body);
  font-size: 24px;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.05em;
}
.ab-footer__link:hover { text-decoration: underline; }
.ab-footer__copy {
  text-align: center;
  font-family: 'AH-Hakushu-Brush-RSW9', 'AH白洲真楷書体W9', 'Kaisei HarunoUmi', serif;
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.05em;
}

/* =============================================
   葵紋 装飾
   ============================================= */
.ab-mon {
  position: absolute;
  width: 360px; height: 360px;
  object-fit: contain;
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
}
.ab-mon--l1 { left: -150px; top: 1500px; }
.ab-mon--r1 { right: -150px; top: 2600px; }
.ab-mon--l2 { left: -150px; top: 4200px; }
.ab-mon--r2 { right: -150px; top: 5400px; }

/* =============================================
   レスポンシブ
   ============================================= */
@media (max-width: 1024px) {
  .ab-canvas { --gutter: 36px; --panelpad: 48px; }
  .ab-panel { padding: 64px 0 72px; }
  .ab-pagetitle { font-size: 38px; }
  .ab-h2 { font-size: 32px; }
  .ab-row { padding: 32px var(--panelpad); grid-template-columns: 220px minmax(0,1fr); }

  /* タブレット〜横向きスマホ：検定とは／合格証カードを1カラムに */
  .ab-intro { flex-direction: column; gap: 28px; }
  .ab-intro__text { flex-basis: auto; width: 100%; }
  .ab-intro__photo { flex-basis: auto; width: 100%; order: -1; }
  .ab-intro__photo img { max-width: 360px; margin: 0 auto; }
  .ab-cards { flex-direction: column; }
  .ab-card { flex-basis: 100%; padding-right: 0; }
  .ab-card:last-child {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(90,70,45,0.3);
    margin-top: 28px;
    padding-top: 28px;
  }
}

@media (max-width: 768px) {
  .ab-canvas { --gutter: 16px; --panelpad: 22px; padding-top: 64px; }

  /* ヘッダー：葵紋+ロゴ＋ハンバーガー、リンクはドロップダウン */
  .ab-doc .nav { height: 64px; }
  .ab-doc .nav-inner { padding: 0 16px; }
  .ab-doc .nav-mon { width: 36px; height: 36px; }
  .ab-doc .nav-logo { width: 168px; height: 30px; }
  .ab-doc .nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px; height: 34px;
    margin-left: auto;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
  }
  .ab-doc .nav-burger span { display: block; width: 24px; height: 2px; background: #fff; margin: 0 auto; }
  .ab-doc .nav-links {
    position: absolute;
    top: 64px; left: 0; right: 0;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #000;
    border-top: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 12px 24px rgba(0,0,0,0.5);
    display: none;
  }
  .ab-doc .nav.is-open .nav-links { display: flex; }
  .ab-doc .nav-link {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 16px;
  }
  .ab-doc .nav-link--dropdown { justify-content: flex-start; }
  /* モバイル：ドロップダウンは常時インデント表示 */
  .ab-doc .nav-item { display: block; height: auto; }
  .ab-doc .nav-item .nav-link { display: flex; }
  .ab-doc .nav-sub {
    position: static;
    transform: none;
    display: none;   /* 初期は閉じる。ホバー/フォーカスで展開（:hover/:focus-within ルールが表示） */
    min-width: 0;
    background: rgba(255,255,255,0.05);
    box-shadow: none;
    padding: 0;
  }
  .ab-doc .nav-sub__link {
    color: #fff;
    font-size: 15px;
    padding: 13px 20px 13px 42px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .ab-doc .nav-sub__link:hover { background: rgba(255,255,255,0.08); }
  /* タッチ/クリックで親を開いた時：サブメニュー展開＋チェブロン反転 */
  .ab-doc .nav-item--has-sub.is-open .nav-sub { display: block; }
  .ab-doc .nav-item--has-sub.is-open .nav-chevron { transform: rotate(180deg); }

  .ab-titleband { padding: 26px 22px 28px; border-radius: 10px; }
  .ab-pagetitle { font-size: 28px; }
  .ab-pagesub { font-size: 15px; }
  .ab-breadcrumb { font-size: 13px; margin-bottom: 18px; }

  .ab-panel { margin-top: 28px; padding: 40px 0 48px; border-radius: 10px; }
  .ab-h2 { font-size: 26px; margin-bottom: 14px; }
  .ab-h2::after { max-width: 100%; width: 240px; margin-top: 14px; }

  /* 家康公検定とは：縦積み */
  .ab-intro { flex-direction: column; gap: 28px; }
  .ab-intro__text { flex-basis: auto; width: 100%; }
  .ab-intro__photo { flex-basis: auto; width: 100%; order: -1; }
  .ab-intro__photo img { max-width: 320px; margin: 0 auto; }
  .ab-intro__btns { width: 100%; }
  .ab-intro__btns .ab-btn { width: 100%; }

  /* カード：1カラム */
  .ab-tokuten__intro { margin-bottom: 24px; }
  .ab-card { flex-basis: 100%; padding-right: 0; }
  .ab-card:last-child {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(90,70,45,0.3);
    margin-top: 28px;
    padding-top: 28px;
  }
  .ab-card__title { font-size: 22px; }

  /* テーブル：ラベルを上に積む */
  .ab-jisshi { padding-top: 56px; }
  .ab-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 26px var(--panelpad);
  }
  .ab-row__label { font-size: 18px; padding-top: 0; }
  .ab-lead { font-size: 20px; }
  .ab-venue__name { font-size: 20px; }

  /* ボタン */
  .ab-btn { font-size: 19px; min-width: 0; padding: 13px 16px 13px 24px; gap: 10px; }
  .ab-arrow { width: 48px; height: 34px; }
  .ab-btn--block { width: 100%; }

  /* CTA */
  .ab-cta { padding: 48px var(--gutter) 52px; }
  .ab-cta__title { font-size: 26px; }
  .ab-cta__sub { font-size: 15px; }
  .ab-cta__btn { width: 100%; max-width: 360px; }

  /* フッター */
  .ab-footer { padding: 40px var(--gutter) 36px; }
  .ab-footer__nav { gap: 14px 28px; }
  .ab-footer__link { font-size: 16px; }

  /* 装飾は非表示 */
  .ab-mon { display: none; }
}

@media (max-width: 480px) {
  .ab-pagetitle { font-size: 24px; }
  .ab-h2 { font-size: 23px; }
  .ab-card__imgs { gap: 12px; }
}

/* ===================== home.css（トップ） ===================== */
/* =============================================
   home.css — トップページ（index）専用
   ・真のレスポンシブ（モバイルファースト＋フルード＋ブレークポイント）
   ・旧 .page(scaleToFit) / .sp-page の二重構造を廃止し1つのフロー構造に統合
   ・ヘッダー(.ab-doc .nav)とドロップダウンは about.css を流用
   ・ブレークポイント: 768px / 1024px
   ============================================= */

:root {
  --f-hero-title: 'AH-Hakushu-Running-ScriptW1', 'AH白洲毛筆行草体W1', 'Yuji Syuku', serif;
  --f-hero-sub:   'AH-Hakushu-Brush-RSW9', 'AH白洲真楷書体W9', 'Yuji Syuku', serif;
  --f-sec-title:  'Hiragino Mincho ProN', 'Shippori Mincho B1', 'BIZ UDMincho', 'Noto Serif JP', serif;
  --f-body:       'YuKyokasho Yoko', 'YuKyokasho', '游教科書体 横用', '游教科書体', 'Noto Serif JP', serif;

  --gut: clamp(16px, 5vw, 60px);   /* 左右ガター */
  --maxw: 1200px;                  /* 本文コンテンツ最大幅 */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.ab-doc {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: var(--f-body);
  line-height: 1.7;
}
.home img { display: block; max-width: 100%; height: auto; }
.home a { color: inherit; }

.home { padding-top: 99px; overflow-x: clip; padding-bottom: 128px; }  /* 下部固定バナー分の余白(モバイル) */
/* アンカー(#host 等)へ飛んだ際、固定ヘッダーに隠れないよう余白 */
.home [id] { scroll-margin-top: 112px; }

/* 中央寄せコンテナ */
.hm-wrap {
  width: min(var(--maxw), calc(100% - 2 * var(--gut)));
  margin-inline: auto;
}

/* 共通：矢印付きボタン（Group 19 統一デザイン：クリームのピル形＋濃茶） */
.hm-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 28px;
  /* ガラス調（半透明＋背景ぼかし） */
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(9px) saturate(120%);
  backdrop-filter: blur(9px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  color: #3b260f;
  text-decoration: none;
  font-family: var(--f-body);
  font-size: clamp(16px, 4vw, 20px);
  letter-spacing: 0.04em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: background 0.2s;
}
/* .home a{color:inherit} に勝つよう詳細度を上げてボタン文字を濃茶に */
.home .hm-btn { color: #3b260f; }
.hm-btn:hover { background: rgba(255, 255, 255, 0.72); }
.hm-btn span { white-space: nowrap; }
.hm-btn .btn-arrow-svg { width: 52px; height: 33px; flex-shrink: 0; }

/* 共通：セクション見出し（明朝） */
.hm-sec-title {
  font-family: var(--f-sec-title);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  margin: 0;
}

/* =============================================
   固定バナー（デスクトップ右上・スクロール追従） / モバイルはヒーロー内カード
   ============================================= */
.banner-announcement {            /* デスクトップ用・固定／背面はすりガラス */
  display: none;                  /* 1024+ で flex 表示 */
  position: fixed;
  top: 116px;
  right: 22px;
  z-index: 1050;
  width: min(496px, 38vw);
  align-items: center;
  gap: 16px;
  padding: 13px 18px 13px 16px;
  border-radius: 40px;
  text-decoration: none;
  /* 濃い茶色のすりガラス素材（半透明＋背景ぼかし） */
  background: linear-gradient(158deg, rgba(240, 130, 0, 0.66) 0%, rgba(224, 120, 0, 0.6) 55%, rgba(240, 130, 0, 0.64) 100%);  /* #F08200 ガラス調 */
  -webkit-backdrop-filter: blur(15px) saturate(125%);
  backdrop-filter: blur(15px) saturate(125%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42),
              inset 0 1px 1px rgba(255, 255, 255, 0.22),
              inset 0 -2px 5px rgba(0, 0, 0, 0.3);
}
.banner-poster {
  width: 96px;
  height: 96px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 6px;
}
.banner-body { flex: 1 1 auto; min-width: 0; color: #fff; }
.banner-chara {
  width: 65px;             /* PC：右の家康キャラ画像を幅65px固定 */
  height: auto;
  flex-shrink: 0;
  align-self: flex-end;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
}
.banner-title {
  font-family: var(--f-sec-title);
  font-weight: 700;
  font-size: 25px;
  line-height: 1.15;
  margin: 0;
  letter-spacing: 0.02em;
}
.banner-period { font-size: 14px; font-weight: 700; margin: 4px 0 0; }
.banner-link { font-size: 14px; margin: 10px 0 0; color: #fff; }

/* =============================================
   HERO
   ============================================= */
.hm-hero {
  position: relative;
  background: #000;
  padding: 30px var(--gut) 36px;
  overflow: hidden;
}
.hm-hero__mon {           /* 背景の薄い葵紋 */
  position: absolute;
  right: -22%;
  top: 6%;
  width: 78%;
  max-width: 700px;
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}
.hm-hero__wave {          /* 金の波・葵紋装飾（モバイル/タブレットは名言の下にフロー配置＝文字と重ねない） */
  display: block;
  width: 44%;
  max-width: 185px;
  margin: 22px 0 0;
  opacity: 0.95;
  pointer-events: none;
}
.hm-hero__inner { position: relative; z-index: 1; max-width: var(--maxw); margin-inline: auto; }
.hm-hero__catch {
  font-family: var(--f-hero-title);
  font-size: clamp(44px, 11vw, 132px);
  line-height: 1.05;
  color: #fff;
  margin: 0;
  letter-spacing: 0.04em;
}
.hm-hero__title {
  font-family: var(--f-hero-title);
  font-size: clamp(46px, 12vw, 150px);
  line-height: 1.1;
  color: #fff;
  margin: 2px 0 0;
  letter-spacing: 0.02em;
}
.hm-hero__quote {
  font-family: var(--f-hero-sub);
  font-size: clamp(13px, 3.4vw, 26px);
  color: #f3ede0;
  margin: 22px 0 0;
  line-height: 1.8;
}
.hm-hero__quote + .hm-hero__quote { margin-top: 4px; }
.home .hm-hero__scroll { display: none; }

/* モバイル用バナー — 画面下部に固定（濃茶すりガラス） */
.hm-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  width: auto;
  margin: 0;
  padding: 10px 14px;
  border-radius: 22px;
  color: #fff;
  text-decoration: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1000;
  /* 濃い茶色のすりガラス素材 */
  background: linear-gradient(158deg, rgba(240, 130, 0, 0.64) 0%, rgba(224, 120, 0, 0.58) 55%, rgba(240, 130, 0, 0.62) 100%);  /* #F08200 ガラス調 */
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  backdrop-filter: blur(14px) saturate(125%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4),
              inset 0 1px 1px rgba(255, 255, 255, 0.2),
              inset 0 -2px 4px rgba(0, 0, 0, 0.28);
}
/* モバイル：左ポスター65px固定 / 右キャラ45px固定 / 本文は残り幅 */
.hm-banner__poster { flex: 0 0 auto; width: 65px; height: auto; object-fit: contain; border-radius: 4px; }
.hm-banner > div { flex: 1 1 auto; min-width: 0; }
.hm-banner__chara { flex: 0 0 auto; width: 45px; height: auto; align-self: flex-end; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)); }
.hm-banner__title { font-family: var(--f-sec-title); font-weight: 700; font-size: 17px; line-height: 1.2; margin: 0; }
.hm-banner__period { font-size: 12px; font-weight: 700; margin: 3px 0 0; }
.hm-banner__link { font-size: 11px; margin: 5px 0 0; color: #fff; }

/* =============================================
   ABOUT（家康公検定とは？）＋ 肖像画
   ============================================= */
.hm-about {
  position: relative;
  background: #000;
  padding: 12px var(--gut) 54px;
  overflow: hidden;
}
.hm-about__wave {
  position: absolute;
  right: -6%;
  top: 40%;
  width: 40%;
  max-width: 360px;
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}
.hm-about__inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
/* 肖像画 */
.hm-portrait { text-align: center; }
.hm-portrait__img {           /* サブ写真＋肖像画の合成PNG（透過） */
  width: 100%;
  max-width: 340px;
  margin-inline: auto;
}
.hm-portrait__cap {
  font-size: clamp(11px, 3vw, 13px);
  color: #cfc6b8;
  margin: 10px 0 0;
  line-height: 1.6;
}
/* 本文側 */
.hm-about__body { }
.hm-about__heading {
  font-family: var(--f-sec-title);
  font-weight: 700;
  color: #fff;
  font-size: clamp(26px, 7vw, 44px);
  margin: 0;
  letter-spacing: 0.04em;
}
.hm-about__rule { height: 1px; background: rgba(255,255,255,0.5); margin: 16px 0 18px; }
.hm-about__sub {
  font-family: var(--f-sec-title);
  font-size: clamp(16px, 4.4vw, 24px);
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.6;
}
.hm-about__text {
  font-size: clamp(14px, 3.7vw, 17px);
  color: #ece6da;
  margin: 0 0 24px;
  line-height: 1.95;
}
.hm-about__btns { display: flex; flex-direction: column; gap: 14px; }
.hm-about__logo { margin: 26px auto 0; max-width: 360px; opacity: 0.95; }

/* =============================================
   岡崎城バナー（全幅）
   ============================================= */
.hm-castle { background: #000; }
.hm-castle__img { width: 100%; }

/* =============================================
   お知らせ
   ============================================= */
.hm-news {
  position: relative;
  background: #000;
  padding: 50px var(--gut) 56px;
  overflow: hidden;
}
.hm-news__mon {
  position: absolute;
  right: -18%;
  top: 8%;
  width: 60%;
  max-width: 520px;
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}
.hm-news__inner { position: relative; z-index: 1; max-width: var(--maxw); margin-inline: auto; }
.hm-news__heading {
  font-family: var(--f-sec-title);
  font-weight: 700;
  text-align: center;
  color: #fff;
  font-size: clamp(28px, 7vw, 48px);
  margin: 0 0 26px;
  letter-spacing: 0.06em;
}
.hm-news__tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  border-bottom: 1px solid rgba(255,255,255,0.3);
}
.hm-news__tab {
  flex: 1;
  max-width: 280px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.55);
  font-family: var(--f-body);
  font-size: clamp(14px, 3.8vw, 18px);
  padding: 12px 8px 14px;
  cursor: pointer;
  position: relative;
}
.hm-news__tab--active { color: #fff; }
.hm-news__tab--active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  background: #fff;
}
.hm-news__list { margin: 6px 0 30px; }
.hm-news__item {
  display: flex;
  flex-direction: column;   /* モバイル: アイキャッチを上・テキストを下 */
  gap: 12px;
  align-items: stretch;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,0.16);
}
.hm-news__item:first-child { border-top: 1px solid rgba(255,255,255,0.16); }
.hm-news__item--hide { display: none; }
.hm-news__empty { color: #cfc6b8; font-size: 14px; text-align: center; padding: 8px 0 20px; }
.hm-news__thumb {
  width: 100%;
  aspect-ratio: 320 / 179;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 3px;
}
.hm-news__date { display: block; font-size: clamp(12px, 3.2vw, 14px); color: #cfc6b8; }
.hm-news__title {
  font-family: var(--f-sec-title);
  font-weight: 700;
  font-size: clamp(15px, 4vw, 19px);
  color: #fff;
  margin: 5px 0 6px;
  line-height: 1.45;
}
.hm-news__excerpt { font-size: clamp(12px, 3.2vw, 14px); color: #d7cfc1; margin: 0; line-height: 1.7; }
.hm-news__more { max-width: 360px; margin: 0 auto; }

/* =============================================
   歴史検定リンク
   ============================================= */
.hm-rekishi {
  background: #000;
  padding: 40px var(--gut) 54px;
}
.hm-rekishi__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.hm-rekishi__heading {
  font-family: var(--f-sec-title);
  font-weight: 700;
  color: #fff;
  font-size: clamp(26px, 7vw, 48px);
  margin: 0;
  letter-spacing: 0.04em;
}
.hm-rekishi__rule { height: 1px; background: rgba(255,255,255,0.4); margin: 14px 0 16px; }
.hm-rekishi__sub {
  font-family: var(--f-sec-title);
  font-size: clamp(16px, 4.4vw, 24px);
  color: #fff;
  margin: 0 0 12px;
}
.hm-rekishi__link {
  display: inline-block;
  font-size: clamp(14px, 3.7vw, 18px);
  color: #ece6da;
  margin: 0 0 22px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hm-rekishi__photo { width: 100%; max-width: 500px; border-radius: 4px; }
.hm-rekishi__btn { max-width: 443px; }

/* =============================================
   団体カード（主催・協賛）
   ============================================= */
.hm-org {
  background: #000;
  padding: 30px var(--gut) 30px;
}
.hm-org__heading {
  font-family: var(--f-sec-title);
  font-weight: 700;
  text-align: center;
  color: #fff;
  font-size: clamp(22px, 6vw, 40px);
  margin: 0 0 26px;
  letter-spacing: 0.05em;
  line-height: 1.4;
}
.hm-org__card {
  position: relative;
  max-width: var(--maxw);
  margin-inline: auto;
  background: #efe7d9;
  border-radius: 6px;
  padding: clamp(22px, 5vw, 46px);
  overflow: hidden;
}
.hm-org__mon {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 46%;
  max-width: 340px;
  opacity: 0.10;
  pointer-events: none;
}
.hm-org__cloud { position: absolute; width: 30%; max-width: 200px; opacity: 0.7; pointer-events: none; }
.hm-org__cloud--tl { top: 8px; left: 8px; transform: scaleX(-1); }
.hm-org__cloud--br { bottom: 8px; right: 8px; }
.hm-org__row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(90,70,45,0.18);
}
.hm-org__row:last-child { border-bottom: none; }
.hm-org__label {
  font-family: var(--f-sec-title);
  font-weight: 700;
  color: #2f2519;
  font-size: clamp(15px, 4vw, 18px);
  flex-shrink: 0;
}
.hm-org__label--region {
  display: inline-block;
  background: #2f2519;
  color: #efe7d9;
  padding: 2px 14px;
  border-radius: 3px;
  width: fit-content;
}
.hm-org__text {
  color: #4a3d2e;
  font-size: clamp(13px, 3.4vw, 15px);
  line-height: 1.85;
}

/* =============================================
   公益財団法人德川記念財団
   ============================================= */
.hm-tokugawa {
  background: #000;
  padding: 44px var(--gut) 50px;
}
.hm-tokugawa__inner { max-width: var(--maxw); margin-inline: auto; }
.hm-tokugawa__heading {
  font-family: var(--f-sec-title);
  font-weight: 700;
  color: #fff;
  font-size: clamp(24px, 6.4vw, 40px);
  margin: 0;
  letter-spacing: 0.04em;
}
.hm-tokugawa__rule { height: 1px; background: rgba(255,255,255,0.4); margin: 16px 0 18px; }
.hm-tokugawa__sub {
  font-family: var(--f-sec-title);
  font-size: clamp(16px, 4.4vw, 24px);
  color: #fff;
  margin: 0 0 10px;
}
.hm-tokugawa__body { font-size: clamp(13px, 3.4vw, 15px); color: #d7cfc1; margin: 0 0 22px; line-height: 1.9; }
.hm-tokugawa__btn { max-width: 443px; }

/* =============================================
   フッター
   ============================================= */
.hm-footer {
  background: #000;
  padding: 40px var(--gut) 34px;
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
}
.hm-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 30px;
  margin-bottom: 22px;
}
.hm-footer__link { color: #fff; text-decoration: none; font-size: clamp(13px, 3.4vw, 15px); }
.hm-footer__link:hover { opacity: 0.75; }
.hm-footer__copy {
  font-family: 'AH-Hakushu-Brush-RSW9', 'AH白洲真楷書体W9', 'Kaisei HarunoUmi', serif;
  font-size: clamp(12px, 3.2vw, 15px);
  color: #cfc6b8;
  margin: 0;
}

/* =============================================
   ▼ タブレット以上（768px〜）
   ============================================= */
@media (min-width: 768px) {
  /* お知らせ：タブレット以上は画像左・テキスト右の横並び */
  .hm-news__item { flex-direction: row; gap: 24px; align-items: center; }
  .hm-news__thumb { width: 200px; aspect-ratio: 320 / 179; }
  .hm-org__row {
    flex-direction: row;
    gap: 20px;
    align-items: baseline;
  }
  .hm-org__label { width: 80px; }
  .hm-org__label--region { width: auto; align-self: flex-start; }
}

/* =============================================
   ▼ デスクトップ（1024px〜）
   ============================================= */
@media (min-width: 1024px) {
  .home { padding-top: 99px; padding-bottom: 0; }   /* 下部固定バナーはデスクトップ非表示なので余白不要 */
  .banner-announcement { display: flex; }
  .hm-banner { display: none; }       /* モバイルの下部固定バナーは非表示 */

  .hm-hero { padding: 36px var(--gut) 60px; min-height: 860px; }
  .hm-hero__wave { position: absolute; margin: 0; z-index: 0; left: -3%; bottom: 40px; width: 35%; max-width: 497px; opacity: 1; }
  .hm-hero__mon { right: 0; left: auto; top: 28px; width: 48%; max-width: 700px; opacity: 0.25; }
  .home .hm-hero__scroll {
    display: block;
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    opacity: 0.8;
    z-index: 1;
  }

  /* ABOUT：肖像画（左）＋本文（右）の2カラム */
  .hm-about { padding: 20px var(--gut) 90px; }
  .hm-about__inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 60px;
  }
  .hm-portrait { flex: 0 0 44%; }
  .hm-portrait__img { max-width: 460px; }
  .hm-about__body { flex: 1; padding-top: 30px; }
  .hm-about__btns { max-width: 420px; }
  .hm-about__logo { margin-inline: 0; }

  /* お知らせ：3カラム → デザイン基準は横一列リスト。広い余白で1列維持 */
  .hm-news { padding: 80px var(--gut) 90px; }

  /* 歴史検定：左テキスト＋右写真 */
  .hm-rekishi { padding: 70px var(--gut) 80px; }
  .hm-rekishi__inner { flex-direction: row; align-items: center; gap: 60px; }
  .hm-rekishi__main { flex: 1; }
  .hm-rekishi__photo { flex: 0 0 46%; max-width: 500px; }

  .hm-org { padding: 50px var(--gut); }
  .hm-tokugawa { padding: 70px var(--gut) 80px; }
  .hm-footer { padding: 60px var(--gut) 44px; }

  /* お知らせ項目：サムネを大きめに */
  .hm-news__thumb { width: 200px; }
}

/* ===================== news.css（お知らせ一覧） ===================== */
/* =============================================
   news.css — お知らせ（最新情報）一覧（フルード／レスポンシブ）
   黒背景。タブ＋ニュースカードグリッド。
   ============================================= */

/* ===== タブ ===== */
.ns-tabs {
  width: min(1096px, calc(100% - 2 * var(--gutter)));
  margin: 78px auto 0;
  display: flex;
}
.ns-tab {
  position: relative;
  flex: 1;
  box-sizing: border-box;
  text-align: center;
  padding-bottom: 36px;
  text-decoration: none;
}
.ns-tab__label {
  font-family: var(--f-body);
  font-size: 32px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5);
}
.ns-tab--active .ns-tab__label { color: #fff; }
.ns-tab::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: rgba(255,255,255,0.3);
}
.ns-tab--active::after { background: rgba(255,255,255,0.85); }
.ns-tab__dot {
  position: absolute;
  left: 50%; bottom: -11px;
  transform: translateX(-50%);
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
}
.ns-tab--active .ns-tab__dot { background: #fff; }

/* ===== ニュース一覧 ===== */
.ns-grid {
  width: min(1096px, calc(100% - 2 * var(--gutter)));
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 40px;
  row-gap: 48px;
  padding: 32px 0 0;
}
.ns-card { display: block; text-decoration: none; }
.ns-card--hide { display: none; }
.ns-empty { width: min(1096px, calc(100% - 2 * var(--gutter))); margin: 40px auto 0; color: #cfc6b8; text-align: center; font-size: 16px; }
.ns-card__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 320 / 179;
  height: auto;
  object-fit: cover;
  border-radius: 2px;
}
.ns-card__date {
  display: block;
  font-family: var(--f-body);
  font-size: 16px;
  color: #fff;
  letter-spacing: 0.04em;
  margin-top: 16px;
}
.ns-card__title {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  line-height: 1.4;
  margin-top: 12px;
}
.ns-card__excerpt {
  font-family: var(--f-body);
  font-size: 16px;
  color: #fff;
  line-height: 1.6;
  margin-top: 12px;
}
.ns-card__alert { color: #e0584f; }

/* 葵紋装飾の位置（旧インラインstyleから移行） */
.pg-news .ab-mon--r1 { top: 407px; }
.pg-news .ab-mon--l2 { top: 1732px; }

/* =============================================
   レスポンシブ
   ============================================= */
@media (max-width: 900px) {
  .ns-tabs { margin-top: 48px; }
  .ns-tab__label { font-size: 24px; }
  .ns-tab { padding-bottom: 28px; }
  .ns-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .ns-tab__label { font-size: 19px; }
  .ns-grid { grid-template-columns: 1fr; row-gap: 28px; }
  .ns-card__title { font-size: 18px; }
  .ns-card__excerpt, .ns-card__date { font-size: 15px; }
}

/* ===================== news-detail.css（お知らせ記事） ===================== */
/* =============================================
   news-detail.css — お知らせ詳細（記事本文）（フルード／レスポンシブ）
   関連記事カードは news.css の .ns-card / .ns-row を流用。黒背景・白文字。
   ============================================= */

.nd-article {
  width: min(1094px, calc(100% - 2 * var(--gutter)));
  margin: 64px auto 0;
}

/* 上段：左テキスト + 右ポスター */
.nd-top {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.nd-main { flex: 1 1 420px; min-width: 0; max-width: 624px; }

.nd-date {
  display: block;
  font-family: var(--f-body);
  font-size: 16px;
  color: #fff;
  letter-spacing: 0.04em;
}
.nd-title {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  line-height: 1.4;
  margin-top: 12px;
}
.nd-lead {
  font-family: var(--f-body);
  font-size: 16px;
  color: #fff;
  line-height: 1.7;
  margin-top: 16px;
}
.nd-alert { color: #b3372a; font-weight: 700; margin: 6px 0 0; line-height: 1.7; }
.nd-datahead {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  margin-top: 30px;
}
.nd-data {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}
.nd-data li {
  font-family: var(--f-body);
  font-size: 16px;
  color: #fff;
  line-height: 2;
  letter-spacing: 0.02em;
}

/* 右上ポスター（299x422） */
.nd-poster {
  flex: 0 0 auto;
  width: 299px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 299 / 422;
  object-fit: cover;
  border-radius: 2px;
}

/* イベント画像プレースホルダー */
.nd-imgph {
  width: 100%;
  aspect-ratio: 1094 / 530;
  margin-top: 56px;
  background: #d9d9d9;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-body);
  font-size: 18px;
  letter-spacing: 0.3em;
  color: #9a9a9a;
}

/* 結びの文 */
.nd-close {
  font-family: var(--f-body);
  font-size: 16px;
  color: #fff;
  line-height: 1.9;
  margin-top: 18px;
}
.nd-close a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-word;
}
.nd-close a:hover { opacity: 0.8; }

/* ===== 関連記事 ===== */
.nd-related {
  width: min(1094px, calc(100% - 2 * var(--gutter)));
  margin: 70px auto 0;
}
.nd-related__head {
  font-family: var(--f-sec-title);
  font-weight: 500;
  font-size: 30px;
  color: #fff;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.nd-related__head::after {
  content: "";
  display: block;
  width: 170px;
  height: 1px;
  background: rgba(255,255,255,0.45);
  margin-top: 14px;
}
.nd-related__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 40px;
  row-gap: 36px;
  margin: 18px 0 0;
  padding: 24px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.25);
  border-bottom: 1px solid rgba(255,255,255,0.25);
}

/* 葵紋装飾の位置（旧インラインstyleから移行） */
.pg-newsdetail .ab-mon--r1 { top: 413px; }
.pg-newsdetail .ab-mon--l2 { top: 1738px; }

/* =============================================
   レスポンシブ
   ============================================= */
@media (max-width: 768px) {
  .nd-article { margin-top: 40px; }
  .nd-top { gap: 24px; }
  .nd-main { max-width: 100%; }
  .nd-poster { margin: 0 auto; }
  .nd-imgph { margin-top: 36px; font-size: 15px; }
  .nd-related { margin-top: 48px; }
  .nd-related__head { font-size: 24px; }
  .nd-related__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .nd-related__row { grid-template-columns: 1fr; row-gap: 28px; }
}

/* ===================== kakomon.css（過去問） ===================== */
/* =============================================
   kakomon.css — 過去問 ページ専用（フルード／レスポンシブ）
   共通レイアウト/ヘッダー/タイトル帯/CTA/フッターは style.css・about.css を流用。
   本ページのメインは黒背景（クリームパネルなし）。
   ============================================= */

.kk-section { margin-top: 84px; }
.kk-section--triv { margin-top: 92px; }

/* セクション見出し（黒背景・白文字） */
.kk-h2 {
  font-family: var(--f-sec-title);
  font-weight: 500;
  font-size: 38px;
  color: #fff;
  letter-spacing: 0.04em;
  margin: 0 var(--gutter) 14px;
}
.kk-h2::after {
  content: "";
  display: block;
  width: 270px;
  max-width: 60%;
  height: 1px;
  background: rgba(255,255,255,0.45);
  margin-top: 16px;
}
.kk-intro {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.02em;
  margin: 0 var(--gutter) 30px;
}

/* =============================================
   過去問ダウンロード リスト
   ============================================= */
.kk-dl {
  max-width: 924px;
  margin: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.kk-dl__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  box-sizing: border-box;
  min-height: 64px;
  padding: 12px 22px;
  background: #d9d9d9;
  border-radius: 2px;
  text-decoration: none;
}
.kk-dl__row:hover { background: #e3e3e3; }
.kk-dl__label {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: var(--f-sec-title);
  font-size: 22px;
  font-weight: 500;
  color: #1c1c1c;
  letter-spacing: 0.03em;
}
.kk-dl__tri { font-size: 15px; color: #1c1c1c; }
.kk-dl__btn {
  flex-shrink: 0;
  font-family: var(--f-body);
  font-size: 15px;
  color: #1c1c1c;
  letter-spacing: 0.04em;
  border: 1px solid #1c1c1c;
  border-radius: 2px;
  padding: 9px 24px;
  white-space: nowrap;
}
.kk-dl__row:hover .kk-dl__btn { background: rgba(0,0,0,0.05); }

/* =============================================
   家康公トリビア
   ============================================= */
.kk-trivia {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  margin: 0 var(--gutter);
}
.kk-card {
  width: 100%;
  max-width: 800px;
  box-sizing: border-box;
  background: #e9e4dc;
  border: 4px solid #d1ccc4;
  border-radius: 2px;
  padding: 26px 34px 32px;
}
.kk-card__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 20px;
  color: #1a1a1a;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.kk-card__icon { width: 28px; height: 28px; flex-shrink: 0; }
.kk-card__body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.85;
  color: #1a1a1a;
  letter-spacing: 0.01em;
}
.kk-card__img {
  display: block;
  height: auto;
  max-width: 100%;
  margin: 24px auto 0;
  border-radius: 2px;
}
.kk-card__img--statue { width: 490px; }
.kk-card__img--slide  { width: 589px; }
.kk-card__img--mon    { width: 330px; }
.kk-card__img--ukiyoe { width: 678px; }
.kk-card__cap {
  font-family: var(--f-body);
  font-size: 13px;
  color: #4a3f33;
  text-align: left;
  margin: 8px 0 0;
}

/* 葵紋装飾の位置（旧インラインstyleから移行） */
.pg-kakomon .ab-mon--r1 { top: 380px; }
.pg-kakomon .ab-mon--l2 { top: 3000px; }
.pg-kakomon .ab-mon--r2 { top: 4200px; }

/* =============================================
   レスポンシブ
   ============================================= */
@media (max-width: 1024px) {
  .kk-h2 { font-size: 32px; }
}
@media (max-width: 768px) {
  .kk-section { margin-top: 52px; }
  .kk-section--triv { margin-top: 60px; }
  .kk-h2 { font-size: 26px; }
  .kk-dl__row { padding: 12px 16px; min-height: 56px; }
  .kk-dl__label { font-size: 17px; gap: 12px; }
  .kk-dl__btn { font-size: 13px; padding: 7px 14px; }
  .kk-card { padding: 22px 20px 26px; }
  .kk-card__title { font-size: 18px; }
}

/* ===================== faq.css（よくある質問） ===================== */
/* =============================================
   faq.css — よくある質問・お問い合わせ（フルード／レスポンシブ）
   共通レイアウト/タイトル帯/フッター/CTA/ボタンは style.css・about.css 流用。黒背景。
   ============================================= */

/* セクション見出し（白・下線） */
.fq-h2 {
  font-family: var(--f-sec-title);
  font-weight: 500;
  font-size: 38px;
  color: #fff;
  letter-spacing: 0.04em;
  margin: 0 var(--gutter) 4px;
}
.fq-h2::after {
  content: "";
  display: block;
  width: 260px; max-width: 60%; height: 1px;
  background: rgba(255,255,255,0.45);
  margin-top: 16px;
}

.fq-section { margin-top: 80px; }
.fq-section--contact { margin-top: 92px; }

/* ===== よくある質問 ===== */
.fq-list { max-width: 1111px; margin: 30px var(--gutter) 0; }
.fq-group { margin-bottom: 40px; }
.fq-subhead {
  position: relative;
  padding-left: 24px;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 32px;
  color: #fff;
  letter-spacing: 0.03em;
  margin: 0 0 6px;
  line-height: 1.4;
}
.fq-subhead::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 44px;
  background: #fff;
}

.fq-item { border-bottom: 1px solid rgba(255,255,255,0.18); }
.fq-q {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
  background: none;
  border: none;
  padding: 18px 4px;
  cursor: pointer;
  text-align: left;
}
.fq-q__label {
  flex-shrink: 0;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 20px;
  color: #fff;
}
.fq-q__text {
  flex: 1;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  letter-spacing: 0.02em;
}
/* 開閉アイコン（円＋ ＋/−） */
.fq-icon {
  flex-shrink: 0;
  position: relative;
  width: 27px; height: 27px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 50%;
}
.fq-icon::before, .fq-icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  background: #fff;
}
.fq-icon::before { width: 11px; height: 1.6px; transform: translate(-50%,-50%); }
.fq-icon::after  { width: 1.6px; height: 11px; transform: translate(-50%,-50%); }
.fq-item--open .fq-icon::after { display: none; }

.fq-a {
  display: flex;
  gap: 8px;
  padding: 0 4px 22px 37px;
}
.fq-item:not(.fq-item--open) .fq-a { display: none; }
.fq-a__label {
  flex-shrink: 0;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 20px;
  color: #fff;
}
.fq-a__text {
  font-family: var(--f-body);
  font-size: 16px;
  color: #fff;
  line-height: 1.85;
  letter-spacing: 0.02em;
}

/* ===== お問い合わせ ===== */
.fq-contact {
  display: flex;
  gap: 27px;
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: 1163px;
  margin: 30px var(--gutter) 0;
}

/* 左：メールフォーム（クリームパネル） */
.fq-form {
  flex: 1 1 420px;
  min-width: 0;
  max-width: 568px;
  box-sizing: border-box;
  background: #f3ede3;
  border-radius: 6px;
  padding: 36px 30px 44px;
}
.fq-form__head {
  font-family: var(--f-sec-title);
  font-weight: 700;
  font-size: 26px;
  color: #2f2519;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}
.fq-field { margin-top: 18px; }
.fq-field:first-of-type { margin-top: 0; }
.fq-label {
  display: block;
  font-family: var(--f-body);
  font-size: 14px;
  color: #4a3d2e;
  margin-bottom: 8px;
}
.fq-input, .fq-select, .fq-textarea {
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #d8cdb8;
  border-radius: 4px;
  font-family: var(--f-body);
  font-size: 15px;
  color: #2f2519;
  padding: 11px 14px;
}
.fq-input::placeholder, .fq-textarea::placeholder { color: #b3a892; }
.fq-select { appearance: none; -webkit-appearance: none; color: #6b5f4d;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M3 5l5 6 5-6' fill='none' stroke='%236b5f4d' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.fq-textarea { height: 240px; resize: vertical; line-height: 1.6; }
.fq-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-family: var(--f-body);
  font-size: 15px;
  color: #4a3d2e;
}
.fq-check input { width: 18px; height: 18px; accent-color: #7a6a4f; }
.fq-submit {
  width: 313px;
  max-width: 100%;
  margin: 26px auto 0;
}

/* 右：運営事務局 / 電話 */
.fq-info-col {
  flex: 1 1 320px;
  min-width: 0;
  max-width: 568px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.fq-info {
  box-sizing: border-box;
  background: #f3ede3;
  border-radius: 6px;
  padding: 30px 40px;
}
.fq-info__head {
  font-family: var(--f-sec-title);
  font-weight: 700;
  font-size: 22px;
  color: #2f2519;
  margin-bottom: 16px;
}
.fq-info__body {
  font-family: var(--f-body);
  font-size: 16px;
  color: #3a3128;
  line-height: 1.85;
}

/* 葵紋装飾の位置（旧インラインstyleから移行） */
.pg-faq .ab-mon--r1 { top: 420px; }
.pg-faq .ab-mon--l2 { top: 1500px; }

/* =============================================
   レスポンシブ
   ============================================= */
@media (max-width: 1024px) {
  .fq-h2 { font-size: 32px; }
  .fq-subhead { font-size: 28px; }
}
@media (max-width: 768px) {
  .fq-section { margin-top: 52px; }
  .fq-section--contact { margin-top: 60px; }
  .fq-h2 { font-size: 26px; }
  .fq-subhead { font-size: 22px; }
  .fq-q__label, .fq-q__text { font-size: 17px; }
  .fq-q { gap: 10px; padding: 15px 2px; }
  .fq-a { padding: 0 2px 18px 24px; }
  .fq-a__label { font-size: 17px; }
  .fq-contact { gap: 20px; }
  .fq-form { flex-basis: 100%; max-width: 100%; padding: 26px 20px 34px; }
  .fq-info-col { flex-basis: 100%; max-width: 100%; gap: 20px; }
  .fq-form__head { font-size: 22px; }
}

/* ===================== company.css（法人概要） ===================== */
/* =============================================
   company.css — 法人概要 ページ（フルード／レスポンシブ）
   共通レイアウト/タイトル帯/フッターは style.css・about.css 流用。黒背景・白文字。
   ============================================= */

.co-section { padding: 0 var(--gutter); margin-top: 80px; }
.co-section--koukoku { margin-top: 76px; }

/* セクション見出し（白・下線） */
.co-h2 {
  font-family: var(--f-sec-title);
  font-weight: 500;
  font-size: 36px;
  color: #fff;
  letter-spacing: 0.04em;
  margin: 0 0 6px;
}
.co-h2::after {
  content: "";
  display: block;
  width: 738px;
  max-width: 56%;
  height: 1px;
  background: rgba(255,255,255,0.5);
  margin-top: 18px;
}
.co-h2--sub::after { width: 320px; }

/* テキスト＋画像 2カラム行 */
.co-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.co-text { flex: 1 1 360px; min-width: 0; max-width: 693px; }
.co-text p {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.95;
  color: #fff;
  letter-spacing: 0.02em;
}
.co-text p + p { margin-top: 26px; }
.co-img {
  width: min(501px, 100%);
  height: auto;
  aspect-ratio: 501 / 334;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 2px;
}

/* ロゴ（中央） */
.co-logo {
  display: block;
  width: 300px;
  max-width: 100%;
  height: auto;
  margin: 54px auto 0;
}

/* 法人公告事項等 リスト */
.co-koukoku {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}
.co-koukoku li { line-height: 1; }
.co-koukoku a {
  display: inline-block;
  font-family: var(--f-body);
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.04em;
  padding: 14px 0;
}
.co-koukoku a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* 葵紋装飾の位置（旧インラインstyleから移行） */
.pg-company .ab-mon--r1 { top: 356px; }
.pg-company .ab-mon--l2 { top: 1681px; }

/* =============================================
   レスポンシブ
   ============================================= */
@media (max-width: 1024px) {
  .co-h2 { font-size: 30px; }
}
@media (max-width: 768px) {
  .co-section { margin-top: 52px; }
  /* 「一般社団法人徳川家康公に学ぶ会」について を1行に収める（可変フォント＋折返し禁止） */
  .co-h2 { font-size: clamp(13px, 4vw, 25px); letter-spacing: 0.02em; white-space: nowrap; }
  .co-h2::after { max-width: 100%; width: 100%; }
  .co-row { gap: 24px; margin-top: 28px; }
  .co-text, .co-img { flex-basis: 100%; max-width: 100%; }
  .co-img { width: 100%; }
  .co-logo { margin-top: 40px; }
}

/* ===================== privacy.css（個人情報保護方針） ===================== */
/* =============================================
   privacy.css — 個人情報保護方針（フルード／レスポンシブ）
   共通レイアウト/タイトル帯/フッターは style.css・about.css 流用。黒背景・白文字。
   ============================================= */

.pv-section {
  max-width: 1320px;
  margin: 64px auto 0;
  padding: 0 var(--gutter);
  box-sizing: border-box;
}

.pv-h2 {
  font-family: var(--f-sec-title);
  font-weight: 500;
  font-size: 36px;
  color: #fff;
  letter-spacing: 0.04em;
  margin: 0 0 6px;
}
.pv-h2::after {
  content: "";
  display: block;
  width: 533px;
  max-width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.5);
  margin-top: 18px;
}

.pv-p {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.95;
  color: #fff;
  letter-spacing: 0.02em;
  margin-top: 40px;
}

/* 区切り線（やや内側） */
.pv-sep {
  height: 1px;
  background: rgba(255,255,255,0.25);
  margin: 40px 0 0 72px;
  width: calc(100% - 72px);
}

/* 開示し得る条件のリスト（インデント・中黒） */
.pv-list {
  list-style: none;
  margin: 32px 0 0 104px;
  padding: 0;
}
.pv-list li {
  position: relative;
  padding-left: 22px;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.95;
  color: #fff;
  letter-spacing: 0.02em;
}
.pv-list li + li { margin-top: 12px; }
.pv-list li::before { content: "・"; position: absolute; left: 0; }

/* 日付・署名 */
.pv-sign {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.95;
  color: #fff;
  letter-spacing: 0.02em;
  margin-top: 36px;
}

/* 葵紋装飾の位置（旧インラインstyleから移行） */
.pg-privacy .ab-mon--r1 { top: 356px; }

/* =============================================
   レスポンシブ
   ============================================= */
@media (max-width: 768px) {
  .pv-section { margin-top: 44px; }
  .pv-h2 { font-size: 26px; }
  .pv-p { margin-top: 28px; }
  .pv-sep { margin-left: 24px; width: calc(100% - 24px); }
  .pv-list { margin-left: 24px; }
}

/* ===================== motion.css（アニメーション層(最後)） ===================== */
/* =============================================================
   motion.css — 全ページ共通アニメーション層
   方針：静的な「見た目（停止状態）」は一切変更しない。
   ・隠す指定はすべて html.motion 配下のみ（motion.js が読めない/無効なら全表示＝デグレ安全）
   ・リビール対象は静止状態で transform を持たない本文ブロックのみ（最終 transform:none = 元の状態）
   ・prefers-reduced-motion では全アニメ無効・即表示
   ============================================================= */

:root {
  --m-ease: cubic-bezier(0.16, 1, 0.3, 1);   /* なめらかに減速（高級感） */
  --m-ease-curtain: cubic-bezier(0.76, 0, 0.24, 1);
  --m-dur: 1s;
}

/* ---- スクロール・リビール（共通の本文ブロック） ---------------- */
html.motion :is(
  .hm-hero__quote, .hm-portrait, .hm-news__item, .hm-rekishi__inner,
  .hm-org__card, .hm-tokugawa__inner,
  .ab-titleband, .ab-intro, .ab-h2, .ab-card, .ab-accordion__item, .ab-row, .ab-cta,
  .ns-tabs, .ns-card,
  .kk-intro, .kk-h2, .kk-card, .kk-dl__row,
  .nd-main, .nd-poster, .nd-imgph, .nd-related__head,
  .page-header-inner, .content-section
) {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition:
    opacity var(--m-dur) var(--m-ease),
    transform 1.1s var(--m-ease);
  /* will-change は使わない：transform:none の停止後もスタッキングコンテキストが残り、
     ヘッダーのドロップダウン(サブメニュー)がコンテンツ背面に隠れてしまうため。 */
}
html.motion :is(
  .hm-hero__quote, .hm-portrait, .hm-news__item, .hm-rekishi__inner,
  .hm-org__card, .hm-tokugawa__inner,
  .ab-titleband, .ab-intro, .ab-h2, .ab-card, .ab-accordion__item, .ab-row, .ab-cta,
  .ns-tabs, .ns-card,
  .kk-intro, .kk-h2, .kk-card, .kk-dl__row,
  .nd-main, .nd-poster, .nd-imgph, .nd-related__head,
  .page-header-inner, .content-section
).is-in {
  opacity: 1;
  transform: none;
}

/* ---- ヘッダーの入場 ----
   site-header 自体は opacity アニメしない：opacity<1 の間だけ site-header が
   スタッキングコンテキスト化し、内側の固定/スティッキー nav がコンテンツ背面へ落ちて
   サブメニュー(ドロップダウン)が隠れるため。入場は nav 内の要素だけで表現する。
   nav-brand / nav-links は静的要素なので fixed/sticky 位置に影響しない。 */
html.motion .nav-brand { animation: m-fade-down 0.85s 0.12s var(--m-ease) both; }
html.motion .nav-links { animation: m-fade-down 0.85s 0.24s var(--m-ease) both; }

@keyframes m-fade-down {
  from { opacity: 0; transform: translate3d(0, -10px, 0); }
  to   { opacity: 1; transform: none; }
}

/* ---- 微細なホバー（停止状態は不変・ホバー時のみ浮く＝ワクワク感） ---- */
html.motion :is(.ns-card, .hm-news__item) {
  transition:
    opacity var(--m-dur) var(--m-ease),
    transform 0.45s var(--m-ease),
    box-shadow 0.45s var(--m-ease);
}
html.motion .ns-card.is-in:hover,
html.motion .hm-news__item.is-in:hover {
  transform: translate3d(0, -4px, 0);
}
html.motion .ns-card.is-in:hover {
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
}

/* =============================================================
   トップページ オープニング（ローディング）演出
   ・index.html にのみ .opening マークアップを置く
   ・html.motion の時だけ表示。未読込時は display:none（コンテンツを塞がない）
   ============================================================= */
.opening { display: none; }

html.motion .opening {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(120% 90% at 50% 38%, #2a1710 0%, #1a0f07 55%, #120a04 100%);
  animation: m-open-out 1s var(--m-ease-curtain) 2.25s forwards;
}
html.motion .opening__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding: 0 24px;
}
/* 葵紋（白SVG）＋金のグロー */
html.motion .opening__mon {
  width: clamp(96px, 16vw, 168px);
  height: auto;
  aspect-ratio: 1 / 1;   /* viewBox 54x54。SVGが preserveAspectRatio="none" のため比率を明示 */
  opacity: 0;
  transform: scale(0.62) rotate(-9deg);
  filter: drop-shadow(0 0 18px rgba(201, 162, 90, 0.55));
  animation: m-open-mon 1.15s var(--m-ease) 0.2s both;
}
/* 紋を囲む金のリング */
html.motion .opening__ring {
  position: absolute;
  top: clamp(-22px, -2.4vw, -14px);
  width: clamp(150px, 24vw, 252px);
  height: clamp(150px, 24vw, 252px);
  border: 1px solid rgba(201, 162, 90, 0.7);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.4);
  animation: m-open-ring 1.4s var(--m-ease) 0.35s both;
}
/* ロゴ（家康公検定 ワードマーク） */
html.motion .opening__logo {
  width: clamp(186px, 30vw, 300px);
  height: auto;
  aspect-ratio: 248 / 45;   /* viewBox 248x45。preserveAspectRatio="none" のため比率を明示し縦伸び防止 */
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  animation: m-fade-up 1s var(--m-ease) 0.95s both;
}
/* 金の細線 */
html.motion .opening__line {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 90, 0.9), transparent);
  animation: m-open-line 0.9s var(--m-ease) 1.5s both;
}

@keyframes m-open-mon {
  0%   { opacity: 0; transform: scale(0.62) rotate(-9deg); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes m-open-ring {
  0%   { opacity: 0; transform: scale(0.4); }
  55%  { opacity: 0.9; }
  100% { opacity: 0.32; transform: scale(1); }
}
@keyframes m-open-line {
  from { width: 0; opacity: 0; }
  to   { width: clamp(120px, 22vw, 220px); opacity: 1; }
}
@keyframes m-fade-up {
  from { opacity: 0; transform: translate3d(0, 12px, 0); }
  to   { opacity: 1; transform: none; }
}
/* 幕が上へ引き上がって本編へ */
@keyframes m-open-out {
  0%   { transform: translate3d(0, 0, 0); opacity: 1; }
  99%  { opacity: 1; }
  100% { transform: translate3d(0, -100%, 0); opacity: 1; visibility: hidden; pointer-events: none; }
}

/* =============================================================
   モーション低減設定：すべて無効化し、即・最終状態で表示
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html.motion :is(
    .hm-hero__quote, .hm-portrait, .hm-news__item, .hm-rekishi__inner,
    .hm-org__card, .hm-tokugawa__inner,
    .ab-titleband, .ab-intro, .ab-h2, .ab-card, .ab-accordion__item, .ab-row, .ab-cta,
    .ns-tabs, .ns-card,
    .kk-intro, .kk-h2, .kk-card, .kk-dl__row,
    .nd-main, .nd-poster, .nd-imgph, .nd-related__head,
    .page-header-inner, .content-section
  ) {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  html.motion .site-header,
  html.motion .nav-brand,
  html.motion .nav-links,
  html.motion .opening__mon,
  html.motion .opening__ring,
  html.motion .opening__logo,
  html.motion .opening__line { animation: none !important; opacity: 1 !important; transform: none !important; }
  html.motion .opening { display: none !important; }
}


/* ===================== 汎用固定ページ page.php 用（新規・既存に非干渉） ===================== */
.pg-page__body {
  width: min(1094px, calc(100% - 2 * var(--gutter)));
  margin: 40px auto 0;
  font-family: var(--f-body);
  color: #ece6da;
  font-size: 16px;
  line-height: 1.95;
}
.pg-page__body h2 { font-family: var(--f-sec-title); font-weight: 700; color: #fff; font-size: 26px; margin: 40px 0 14px; letter-spacing: 0.04em; }
.pg-page__body h3 { font-family: var(--f-sec-title); font-weight: 700; color: #fff; font-size: 20px; margin: 28px 0 10px; }
.pg-page__body p { margin: 0 0 18px; }
.pg-page__body ul, .pg-page__body ol { margin: 0 0 18px; padding-left: 1.4em; }
.pg-page__body li { margin: 0 0 8px; line-height: 1.8; }
.pg-page__body a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.pg-page__body img { max-width: 100%; height: auto; border-radius: 4px; }
@media (max-width: 768px) {
  .pg-page__body { font-size: 15px; margin-top: 28px; }
  .pg-page__body h2 { font-size: 22px; }
}

/* ===================== notfound.css（404ページ用） ===================== */
/* =============================================
   notfound.css — 404 ページ専用（about.css を継承）
   配色・余白変数(--cream/--gold/--gutter等)は .ab-canvas のものを継承
   ============================================= */
.nf {
  margin: 40px var(--gutter) 72px;
  background: #fffdf8;
  border-radius: 14px;
  text-align: center;
  padding: 110px 40px 120px;
}

.nf__code {
  font-family: var(--f-sec-title);
  font-weight: 700;
  font-size: 112px;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--gold, #c9962f);
  margin-bottom: 10px;
}

.nf__title {
  font-family: var(--f-sec-title);
  font-weight: 700;
  font-size: 30px;
  color: #1f1a12;
  letter-spacing: 0.04em;
  margin-bottom: 22px;
}

.nf__text {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 2;
  color: #4a3d2e;
  margin: 0 auto 44px;
  max-width: 640px;
}

.nf__btn {
  width: 360px;
  max-width: 100%;
  margin: 0 auto;
}

.nf__links {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 28px;
}
.nf__links a {
  font-family: var(--f-body);
  font-size: 15px;
  color: #5c4f3f;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.nf__links a:hover { color: #1f1a12; }

@media (max-width: 768px) {
  .nf { margin: 24px var(--gutter) 48px; padding: 64px 20px 72px; }
  .nf__code { font-size: 78px; }
  .nf__title { font-size: 23px; }
  .nf__text { font-size: 15px; }
}

/* ===================== 関連団体カード（記念財団/学ぶ会）最下部・新デザイン ===================== */
.hm-orgcards { background: #f2e9de; padding: 56px var(--gut); }
.hm-orgcards__inner { max-width: var(--maxw); margin-inline: auto; display: grid; grid-template-columns: 1fr; gap: 24px; }
.hm-orgcard { background: #000; border-radius: 8px; padding: clamp(28px, 5vw, 44px); display: flex; flex-direction: column; gap: 26px; }
.hm-orgcard__head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.hm-orgcard__mon { width: clamp(96px, 22vw, 124px); height: auto; flex-shrink: 0; }
.hm-orgcard__kind { font-family: var(--f-sec-title); font-size: clamp(15px, 4vw, 18px); color: #fff; margin: 0 0 6px; letter-spacing: 0.08em; }
.hm-orgcard__title { font-family: var(--f-sec-title); font-weight: 700; font-size: clamp(24px, 6vw, 33px); color: #fff; margin: 0; line-height: 1.25; letter-spacing: 0.02em; white-space: nowrap; }
.hm-orgcard__btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; max-width: 360px; margin-top: 4px; padding: 14px 28px; background: rgba(255,255,255,0.14); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,0.28); border-radius: 999px; color: #fff; text-decoration: none; font-family: var(--f-body); font-size: clamp(16px, 4vw, 20px); letter-spacing: 0.04em; transition: background 0.2s; }
.home .hm-orgcard__btn { color: #fff; }
.hm-orgcard__btn:hover { background: rgba(255,255,255,0.24); }
.hm-orgcard__btn .btn-arrow-svg { width: 43px; height: 30px; flex-shrink: 0; }
.hm-orgcard__addr { font-size: clamp(13px, 3.5vw, 15px); color: #e3ddd0; line-height: 1.95; }
.hm-orgcard__addr p { margin: 0; }
.hm-orgcard__addr a { color: #e3ddd0; text-decoration: underline; text-underline-offset: 3px; word-break: break-all; }
@media (min-width: 1024px) { .hm-orgcards { padding: 80px var(--gut); } .hm-orgcards__inner { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (min-width: 1240px) { .hm-orgcard__head { flex-direction: row; align-items: center; gap: 22px; } }
