/*
Theme Name: 北海道体育文化協会 / Hokkaido Physical Education & Culture Association
Theme URI: https://hokkaido-taiiku-bunka.jp/
Author: 一般社団法人 北海道アーバンスポーツ協会
Author URI: https://hokkaido-urbansports.jp/
Description: 一般財団法人 北海道体育文化協会の公式サイト用カスタムテーマ。v12採用版モックアップをベースにWordPress化。4階層の情報設計（重要告知・最新ニュース・セクション内お知らせ・アーカイブ）を実装。フェーズ3 v10 でお知らせアーカイブテンプレート(archive.php)とカテゴリ/検索フィルタ機能を追加。フェーズ3 v11 で情報公開アーカイブ(archive-info_public.php)とACFフィールド(pdf_file/nendo/nendo_sort/info_name_en)を追加。フェーズ3 v12 で施設アーカイブ(archive-facility.php)と施設シングル(single-facility.php、external_url 301リダイレクト方式)を追加。フェーズ3 v13 で防災ページ用ネットワーク図(.network-diagram)と2枚並び画像(.image-row)のスタイルを追加。v13.1 で .network-diagram の余白圧縮、.network-title への rich-content h3 装飾(緑縦線・左パディング)リセット、リストマーカー打ち消しを追加。v13.2 で .numbered-cards を 2列レイアウト化(minmax 220→280)・パディング圧縮で間延び解消、.rich-content table.timeline で日付列nowrapを追加。v13.3 で table:has(thead) フォールバックを追加し、about.html未差替えでも沿革テーブル日付列のnowrapが効くように。フェーズ3 v14 でサイト内検索モーダル(.search-modal)と検索結果ページ(.search-results)のスタイルを追加、モバイル時のサイト内検索フォーム(.mobile-search)も追加。検索対象を全コンテンツ横断(post / page / facility / info_public)に拡張。フェーズ3 v15 でスクロール演出パッケージ(フェードイン .fade-in / パララックス .parallax-img / ヘッダー縮小 .scrolled)を追加。prefers-reduced-motion に完全対応。フェーズ3 v16 でFAQページの ACF 化に伴い、page-faq.php / template-parts/faq-list.php / FAQページ用スタイル(.faq-page / .faq-toc / .faq-section / .faq-item)を追加。フェーズ3 v17 でFAQをCPT化(faq CPT + faq_category タクソノミ)、archive-faq.php / template-parts/faq-list.php(CPT版)に置換。検索対象に faq を追加(全5種横断)。フェーズ3 v20 でFAQページ全体の余白を詰めた(faq-page padding 64→48 / faq-page-head margin 48→32 / faq-toc margin 48→24・padding 24→16 / faq-section margin 64→32 / faq-section-head margin 24→16)。フェーズ3 v21 でFAQ さらに詰める(faq-item padding 24→16 / faq-q margin 12→8 / faq-section margin 32→24 / faq-section-head margin 16→12・padding 12→8)。これで Q&A同士・セクション同士の余白がほぼ最小限に。フェーズ3 v23 でグローバル section padding-block の上限を 140px→100px に縮小(全ページの上下余白が約3割圧縮)。加えて FAQ リストの `<section class="faq-section">` を `<div class="faq-section">` 化し、グローバル section 指定の対象外に(FAQ余白の根本解決、応急処置の打ち消しリスト不要に)。フェーズ3 v24 でフローティングクイックナビ(.fqn)を追加。グローバルナビ7項目を5項目にスリム化(協会について/施設紹介/お知らせ/防災への取り組み/情報公開)+ FAQとアクセスを右下フローティングへ移行。意匠は kaminishi 風の右下ノッチ(--notch-fqn:14px、モバイル12px)、緑塗り+白字、ホバーで --green-deep。枠線は外側ボックス+1pxインセット ::before の二重レイヤーで擬似表現(clip-pathが素のborderを綺麗に切れないため)。フッター手前で自動フェードアウト(JS連動、.fqn.hide-near-footer)。派生サイトでは :root の --green / --green-deep 上書きだけで色追従。フェーズ3 v27 で /access/ ページの「各施設のアクセス」セクションを facility-card-compact.php で動的化(写真自動取得・リンク化)、.facility-row-link のスタイルを追加。
Version: 1.5.1-phase3-v21
Requires at least: 6.0
Requires PHP: 8.0
License: Proprietary
License URI: -
Text Domain: hokkaido-taiiku-bunka
Tags: custom-logo, custom-menu, featured-images, translation-ready
*/

/* ============================================
   DESIGN TOKENS — Orthodox / Clean Editorial
   ============================================ */
:root {
  --bg:        #FAFAF7;
  --bg-alt:    #F2F0E9;
  --bg-pure:   #FFFFFF;
  --ink:       #1A1A1A;
  --ink-soft:  #3A3A3A;
  --ink-mute:  #7A7A7A;
  --rule:      #DCD9CF;
  --rule-soft: #ECEAE2;

  --green:       #1E7A4E;
  --green-deep:  #0F5A36;
  --green-light: #8FBFA3;
  --green-soft:  #E6F0EA;

  --font-jp-mincho: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  --font-jp-gothic: "Noto Sans JP", system-ui, sans-serif;
  --font-en-serif:  "Cormorant Garamond", Georgia, serif;
  --font-en-sans:   "Jost", system-ui, sans-serif;

  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px;

  --max-w: 1280px;
  --gutter: clamp(20px, 4.5vw, 56px);
  --header-h: 88px;
  --notch: 22px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-jp-gothic);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.95;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; font-family: inherit; color: inherit; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
section { padding-block: clamp(80px, 10vw, 100px); }

/* HERO・STRIP系は section デフォルトの上下padding を打ち消す（独自に高さ管理） */
section.hero,
.news-strip,
.news-recent { padding-block: 0; }
.news-strip   { padding-block: 8px; }
.news-recent  { padding-block: var(--s-4); }

/* ヘッダーオフセット：fixed なヘッダー分を body 全体で確保
   これで、最上部に news-strip が来ても hero が来ても 隙間ゼロでベタ付け
   .admin-bar クラスは WP管理バー表示時に自動で付与される（先生からは32px見える） */
body { padding-top: var(--header-h); }

/* Eyebrow — small caps en + dash */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-en-sans);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--green-deep);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--green-deep);
}
/* センター配置時は両側にダッシュ (page-hero / post-hero で使用) */
.eyebrow.is-centered::after {
  content: "";
  width: 28px; height: 1px;
  background: var(--green-deep);
}

/* H2 standard */
.h2 {
  font-family: var(--font-jp-mincho);
  font-weight: 500;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.45;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.h2-en {
  font-family: var(--font-en-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--ink-mute);
  letter-spacing: 0.02em;
  margin-top: 6px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 24px 14px 26px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  font-family: var(--font-jp-gothic);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.16em;
  transition: background 0.3s, color 0.3s, gap 0.3s, border-color 0.3s;
}
.btn:hover { background: var(--ink); color: var(--bg); gap: 22px; }
.btn .arr {
  font-family: var(--font-en-serif);
  font-size: 16px;
  font-weight: 400;
}
.btn.green { color: var(--green-deep); border-color: var(--green-deep); }
.btn.green:hover { background: var(--green-deep); color: #fff; }
.btn.solid { background: var(--green-deep); color: #fff; border-color: var(--green-deep); }
.btn.solid:hover { background: var(--ink); border-color: var(--ink); }

/* "VIEW MORE" simple link */
.view-more {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-en-sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--ink);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
  transition: gap 0.3s, color 0.2s, border-color 0.2s;
}
.view-more:hover { gap: 22px; color: var(--green-deep); border-color: var(--green-deep); }

/* ============================================
   HEADER — Clean, fixed top
   ============================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule-soft);
  transition: background 0.3s;
}
.header-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--gutter);
  max-width: var(--max-w);
  margin-inline: auto;
}
.brand {
  display: flex; align-items: center;
  color: var(--ink);
  flex-shrink: 0;
  height: 100%;
}
/* フルロゴ画像（SVG）：マーク+日本語+英文+小タグライン込みで1枚 */
.brand-logo {
  height: 56px;
  width: auto;
  max-width: 280px;
  display: block;
  object-fit: contain;
  transition: opacity 0.2s;
}
.brand:hover .brand-logo { opacity: 0.85; }

/* モバイル：ヘッダー高さに合わせてロゴ縮小 */
@media (max-width: 860px) {
  .brand-logo { height: 44px; max-width: 220px; }
}
@media (max-width: 480px) {
  .brand-logo { height: 38px; max-width: 190px; }
}

.global-nav { display: flex; align-items: center; gap: var(--s-7); }
.global-nav ul { display: flex; gap: var(--s-6); align-items: center; }
.global-nav a {
  position: relative;
  padding: 8px 0;
  font-family: var(--font-jp-gothic);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}
.global-nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--green-deep);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}
.global-nav a:hover { color: var(--green-deep); }
.global-nav a:hover::after { transform: scaleX(1); }

.header-utils {
  display: flex; align-items: center; gap: var(--s-4);
  padding-left: var(--s-5);
  border-left: 1px solid var(--rule);
}
.lang {
  font-family: var(--font-en-sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  display: flex; align-items: center; gap: 6px;
  color: var(--ink-mute);
}
.lang .active {
  color: var(--ink);
  font-weight: 500;
  padding: 4px 2px;
}
.lang .sep { color: var(--rule); }
.lang-en {
  padding: 4px 6px;
  color: var(--ink-mute);
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.lang-en:hover { color: var(--green-deep); border-bottom-color: var(--green-deep); }
.icon-btn {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--rule);
  border-radius: 50%;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.icon-btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-nav {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 99;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
  padding: calc(var(--header-h) + 32px) var(--gutter) var(--s-7);
  overflow-y: auto;
}
.mobile-nav.open { opacity: 1; pointer-events: auto; }
.mobile-nav ul { display: flex; flex-direction: column; }
.mobile-nav li { border-bottom: 1px solid var(--rule); }
.mobile-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
  font-family: var(--font-jp-mincho);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.08em;
}
.mobile-nav a .mn-num {
  font-family: var(--font-en-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--green-deep);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================
   HERO — Photo-first slider
   ============================================ */
.hero {
  position: relative;
  /* margin-top は #site-content または body に集約（後述） */
  height: calc(100vh - var(--header-h));
  min-height: 580px;
  max-height: 800px;
  overflow: hidden;
}
.hero-slider {
  position: absolute; inset: 0;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
}
.hero-slide.active {
  opacity: 1;
}
.hero-slide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.0) 35%, rgba(0,0,0,0.4) 100%);
}
.hero-content {
  position: absolute;
  bottom: var(--s-9);
  left: 0; right: 0;
  z-index: 3;
  color: #fff;
}
.hero-content .container {
  display: flex; flex-direction: column; gap: var(--s-5);
}
.hero-eyebrow {
  font-family: var(--font-en-sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 14px;
}
.hero-eyebrow::before {
  content: ""; width: 32px; height: 1px;
  background: rgba(255,255,255,0.7);
}
.hero h1 {
  font-family: var(--font-jp-mincho);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.55;
  letter-spacing: 0.12em;
  color: #fff;
  max-width: 900px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.hero-en {
  font-family: var(--font-en-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(16px, 1.6vw, 22px);
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.04em;
  margin-top: 4px;
}
.hero-name {
  position: absolute;
  top: var(--s-7);
  right: var(--gutter);
  z-index: 3;
  font-family: var(--font-en-serif);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.75);
}
.hero-scroll {
  position: absolute;
  bottom: var(--s-5);
  left: var(--gutter);
  z-index: 3;
  font-family: var(--font-en-sans);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  display: flex; align-items: center; gap: 14px;
}
.hero-scroll::after {
  content: ""; width: 60px; height: 1px;
  background: rgba(255,255,255,0.5);
  animation: scrollLine 2s ease-in-out infinite;
  transform-origin: left;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleX(0.4); opacity: 0.4; }
  50% { transform: scaleX(1); opacity: 1; }
}

/* ============================================
   HERO 採用版 A: ファーストビューに What's New が見える高さ
   85vh で News Recent帯が画面下端に収まる
   ============================================ */
.hero.hero-a {
  height: calc(85vh - var(--header-h));
}

/* ============================================
   HERO 派生サイト用 C: 右下フロートニュースパネル
   ⚠️ 協会本体では使用していない（A案統一・2026-04-26）
   施設サイト（アイスアリーナ・スタジアム・真駒内公園・野幌）で
   観光/レジャー寄りのデザインを作る時に流用する用に保管
   - 件数：最新3件
   - 文字読みづらさ対策：黒半透明背景＋背景ぼかし＋テキストシャドウ
   - スマホ（720px以下）ではフロート自動解除（CSS下部の @media 参照）
   ============================================ */
.hero-news-float {
  position: absolute;
  z-index: 4;
  display: flex; flex-direction: column;
  padding: 16px 22px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  max-width: min(440px, 92vw);
  border-left: 2px solid var(--green-light);
  transition: background 0.3s;
}
/* 右下配置（C案 v2 の標準位置） */
.hero-news-float-r {
  right: var(--gutter);
  bottom: var(--s-7);
}
.hero-news-float:hover {
  background: rgba(0, 0, 0, 0.6);
}
.hero-news-label {
  font-family: var(--font-en-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  display: inline-flex; align-items: center; gap: 8px;
  color: #E0EBE6;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.hero-news-label .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green-light);
  flex-shrink: 0;
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.8); }
}

/* 3件並びのリスト */
.hero-news-list {
  display: flex; flex-direction: column;
  gap: 6px;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 10px;
}
.hero-news-item {
  display: flex; align-items: baseline; gap: 14px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #fff;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: padding-left 0.2s;
}
.hero-news-item:last-child { border-bottom: none; }
.hero-news-item:hover { padding-left: 6px; }
.hero-news-date {
  font-family: var(--font-en-sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #C8D6CE;
  flex-shrink: 0;
  min-width: 78px;
}
.hero-news-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
}
.hero-news-more {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-family: var(--font-en-sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-light);
  display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-end;
  transition: gap 0.3s, color 0.2s;
}
.hero-news-more:hover {
  color: #fff;
  gap: 14px;
}

/* C案 v2: SCROLLアイコンを左下へ */
.hero.hero-c-v2 .hero-scroll {
  right: auto;
  left: var(--gutter);
}

/* ============================================
   C案：レスポンシブ切替（派生サイト用）
   - デスクトップ（721px以上）：右下フロートパネル表示
   - モバイル（720px以下）：フロート完全非表示
     → 派生サイトでC案を使う場合は、A案のnews-recentを併用するなど別途対応
   ============================================ */
@media (max-width: 720px) {
  /* モバイル：C案フロートパネルを完全非表示 */
  .hero-news-float { display: none !important; }
  /* C案 v2 のSCROLLアイコンも非表示（モバイルは画面狭いため） */
  .hero.hero-c-v2 .hero-scroll { display: none; }
}

/* ============================================
   NEWS strip (just below hero)
   ============================================ */
/* ============================================
   NEWS STRIP — Important Notices (常設ではない・最大2件)
   ヘッダー直下に配置、該当告知がある時のみ表示。カテゴリ色分け
   ============================================ */
.news-strip {
  background: #FBF6EE;
  border-bottom: 1px solid #E8DCC2;
  padding-block: 8px;
  position: relative;
  /* margin-top は不要（HERO/news-recent側でheaderオフセットを処理） */
}
.news-strip::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: #B8722C;
}
.news-strip-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-5);
  align-items: center;
}

/* 一行化ラベル：丸「!」 + IMPORTANT + 縦罫 + 重要なお知らせ */
.news-strip-label {
  display: flex; align-items: center; gap: 10px;
  white-space: nowrap;
}
.news-strip-label::before {
  content: "!";
  display: inline-grid; place-items: center;
  width: 18px; height: 18px;
  background: #B8722C;
  color: #fff;
  border-radius: 50%;
  font-family: var(--font-jp-gothic);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding-bottom: 1px;
  flex-shrink: 0;
}
.news-strip-label .en {
  font-family: var(--font-en-sans);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: #B8722C;
  font-weight: 500;
  text-transform: uppercase;
}
.news-strip-label .sep {
  width: 1px; height: 14px;
  background: #D4BB99;
}
.news-strip-label .jp {
  font-family: var(--font-jp-mincho);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.news-strip-list { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.news-strip-list a {
  display: flex; align-items: center; gap: 12px;
  font-size: 13.5px;
  color: var(--ink);
  transition: color 0.2s;
  min-width: 0;
}
.news-strip-list a:hover { color: var(--green-deep); }
.news-strip-list a:hover .ns-title { text-decoration: underline; text-underline-offset: 3px; }

/* カテゴリバッジ */
.ns-cat {
  font-family: var(--font-jp-gothic);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  padding: 2px 9px;
  color: #fff;
  flex-shrink: 0;
  line-height: 1.5;
}
.ns-cat.cat-kinkyu   { background: #C0392B; }  /* 緊急：赤 */
.ns-cat.cat-event    { background: #2E6B9E; }  /* イベント：青 */
.ns-cat.cat-juyou    { background: #B8722C; }  /* 重要：ブラウン */

.news-strip-list .dt {
  font-family: var(--font-en-sans);
  font-size: 12.5px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.ns-title {
  font-size: 13.5px;
  color: var(--ink);
  transition: color 0.2s;
  /* 長すぎたら1行で省略（…） */
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================
   NEWS RECENT — 最新ニュース・さりげない表示（ヒーロー下）
   Lv.2: 最新3件を常設、VIEW RECENT NEWSで下の#newsセクションへ
   ============================================ */
.news-recent {
  background: var(--bg-pure);
  border-bottom: 1px solid var(--rule-soft);
  padding-block: var(--s-4);
}
.news-recent-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s-6);
  align-items: center;
}
.news-recent-label {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-en-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--green-deep);
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;
}
.news-recent-label::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
}
.news-recent-list {
  display: flex; flex-direction: column; gap: 3px;
  min-width: 0;
}
.news-recent-list a {
  display: flex; align-items: baseline; gap: 18px;
  font-size: 13.5px;
  color: var(--ink);
  transition: color 0.2s;
  min-width: 0;
}
.news-recent-list a:hover { color: var(--green-deep); }
.news-recent-list a:hover .nr-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.news-recent-list .nr-date {
  font-family: var(--font-en-sans);
  font-size: 12.5px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  flex-shrink: 0;
  min-width: 80px;
}
.news-recent-list .nr-title {
  /* 長すぎたら1行で省略（…） */
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.news-recent-more {
  font-family: var(--font-en-sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink);
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ink);
  transition: color 0.2s, border-color 0.2s, gap 0.3s;
}
.news-recent-more:hover {
  color: var(--green-deep);
  border-color: var(--green-deep);
  gap: 14px;
}

/* ============================================
   ABOUT (intro)
   ============================================ */
.about { background: var(--bg); }
.about-inner {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}
.about .h2 { margin-top: var(--s-5); margin-bottom: var(--s-3); }
.about .h2-en { margin-bottom: var(--s-7); }
.about-lead {
  font-family: var(--font-jp-mincho);
  font-weight: 400;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 2.2;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
.about-divider {
  width: 1px; height: 60px;
  background: var(--rule);
  margin: var(--s-8) auto var(--s-7);
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
  text-align: center;
  border-top: 1px solid var(--rule);
  padding-top: var(--s-7);
}
.about-stat .num {
  font-family: var(--font-en-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  color: var(--green-deep);
  letter-spacing: 0.02em;
}
.about-stat .num small {
  font-family: var(--font-en-sans);
  font-style: normal;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
  margin-left: 4px;
}
.about-stat .label {
  margin-top: var(--s-3);
  font-family: var(--font-jp-mincho);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
.about-more {
  margin-top: var(--s-8);
  text-align: center;
}

/* ============================================
   FACILITY — Clean photo cards
   ============================================ */
.facility { background: var(--bg-alt); }
.facility-head {
  text-align: center;
  margin-bottom: var(--s-8);
}
.facility-head .eyebrow { justify-content: center; }
.facility-head .h2 { margin-top: var(--s-4); }

.facility-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-7) var(--s-6);
}
.facility-card { display: block; }
.facility-img-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ink);
  position: relative;
}
.facility-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s ease;
}
.facility-card:hover .facility-img { transform: scale(1.05); }
.facility-img-wrap::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.0) 70%, rgba(0,0,0,0.25) 100%);
}
.facility-num {
  position: absolute;
  top: var(--s-4); left: var(--s-5);
  z-index: 2;
  font-family: var(--font-en-serif);
  font-style: italic;
  font-size: 18px;
  color: rgba(255,255,255,0.95);
}
.facility-body {
  padding-top: var(--s-5);
  display: flex; flex-direction: column; gap: var(--s-3);
}
.facility-en {
  font-family: var(--font-en-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--green-deep);
  letter-spacing: 0.02em;
}
.facility-name {
  font-family: var(--font-jp-mincho);
  font-weight: 500;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.5;
  letter-spacing: 0.06em;
}
.facility-lead {
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.facility-link {
  margin-top: var(--s-3);
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-en-sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  width: fit-content;
  transition: gap 0.3s, color 0.2s, border-color 0.2s;
}
.facility-card:hover .facility-link {
  gap: 18px; color: var(--green-deep); border-color: var(--green-deep);
}

/* ============================================
   NEWS — 通常お知らせ カード型一覧
   ============================================ */
.news { background: var(--bg); }
.news-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-6);
  align-items: end;
  margin-bottom: var(--s-8);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--rule);
}
.news-head-title h2 { margin-top: 14px; }
.news-tabs {
  display: flex; gap: var(--s-4);
}
.news-tab {
  font-family: var(--font-jp-gothic);
  font-size: 12px;
  letter-spacing: 0.14em;
  padding: 8px 14px;
  color: var(--ink-mute);
  border: 1px solid var(--rule);
  background: var(--bg-pure);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.news-tab.active {
  color: var(--bg-pure);
  background: var(--ink);
  border-color: var(--ink);
}
.news-tab:hover:not(.active) {
  color: var(--green-deep);
  border-color: var(--green-deep);
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.news-card {
  display: flex; flex-direction: column;
  padding: var(--s-6) var(--s-5);
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  background: var(--bg-pure);
  transition: background 0.2s;
  cursor: pointer;
}
.news-card:hover { background: var(--green-soft); }
.news-card:nth-child(3n) { border-right: none; }
.news-meta {
  display: flex; align-items: center; gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.news-date {
  font-family: var(--font-en-sans);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.news-cat {
  font-family: var(--font-jp-gothic);
  font-size: 10px;
  letter-spacing: 0.16em;
  padding: 3px 10px;
  border: 1px solid var(--ink-mute);
  color: var(--ink-mute);
}
.news-cat.cat-oshirase { color: var(--green-deep); border-color: var(--green-deep); }
.news-cat.cat-houkoku { color: #8B6B3D; border-color: #8B6B3D; }
.news-title {
  font-family: var(--font-jp-mincho);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: var(--s-5);
  flex-grow: 1;
}
.news-read {
  font-family: var(--font-en-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color 0.2s, gap 0.2s;
}
.news-card:hover .news-read {
  color: var(--green-deep);
  gap: 14px;
}
.news-more {
  margin-top: var(--s-8);
  text-align: center;
}

/* ============================================
   PRINCIPLES — quiet 7 column with stripe
   ============================================ */
.principles { background: var(--bg-pure); }
.principles-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  align-items: end;
  margin-bottom: var(--s-8);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--rule);
}
.principles-head .lead {
  font-family: var(--font-jp-mincho);
  font-weight: 400;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 2.2;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.principles-head .lead .em { color: var(--green-deep); font-weight: 500; }

.principles-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
}
.principle {
  padding: var(--s-6) var(--s-4);
  border-left: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: var(--s-4);
  min-height: 220px;
  transition: background 0.3s;
}
.principle:last-child { border-right: 1px solid var(--rule); }
.principle:hover { background: var(--green-soft); }
.principle-num {
  font-family: var(--font-en-serif);
  font-style: italic;
  font-size: 24px;
  color: var(--green-deep);
  font-weight: 400;
}
.principle-text {
  margin-top: auto;
  font-family: var(--font-jp-mincho);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.85;
  letter-spacing: 0.04em;
  color: var(--ink);
}

/* ============================================
   BOUSAI
   ============================================ */
.bousai { background: var(--bg-alt); }
.bousai-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--s-9);
  align-items: center;
}
.bousai-img {
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.0) 50%, rgba(0,0,0,0.4) 100%),
    linear-gradient(160deg, #6E5036 0%, #3D2A1A 60%, #1A1208 100%);
  position: relative;
  overflow: hidden;
}
.bousai-img-label {
  position: absolute;
  top: var(--s-5); left: var(--s-5);
  font-family: var(--font-en-sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
}
.bousai-img-bottom {
  position: absolute;
  bottom: var(--s-5); left: var(--s-5); right: var(--s-5);
  z-index: 2;
}
.bousai-img-jp {
  font-family: var(--font-jp-mincho);
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.5;
  letter-spacing: 0.1em;
  color: #fff;
}
.bousai-text { display: flex; flex-direction: column; gap: var(--s-5); }
.bousai-text p {
  font-size: 14px;
  line-height: 2;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
}
.bousai-keys {
  margin-top: var(--s-4);
  padding-top: var(--s-5);
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
.bousai-key .label {
  font-family: var(--font-en-sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.bousai-key .value {
  font-family: var(--font-jp-mincho);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: 0.06em;
}

/* ============================================
   INFO DISCLOSURE
   ============================================ */
.info { background: var(--bg-pure); }
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: var(--s-9);
}
.info-side .h2 { margin-top: var(--s-3); }
.info-side p {
  margin-top: var(--s-5);
  font-size: 14px;
  line-height: 2;
  color: var(--ink-soft);
  max-width: 380px;
}
.info-list {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--rule);
}
.info-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: var(--s-5);
  align-items: center;
  padding: var(--s-5) var(--s-4);
  border-bottom: 1px solid var(--rule);
  transition: padding 0.3s, background 0.3s;
}
.info-row:hover { padding-left: 18px; background: var(--bg-alt); }
.info-pill {
  font-family: var(--font-en-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  border: 1px solid var(--rule);
  padding: 6px 9px;
  text-transform: uppercase;
}
.info-name {
  font-family: var(--font-jp-mincho);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.06em;
}
.info-name .meta {
  display: block;
  font-family: var(--font-en-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-mute);
  margin-top: 2px;
}
.info-size {
  font-family: var(--font-en-sans);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
}
.info-arr {
  font-family: var(--font-en-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-mute);
  transition: transform 0.3s, color 0.2s;
}
.info-row:hover .info-arr { transform: translateX(4px); color: var(--green-deep); }

/* ============================================
   PAGE HEAD (固定ページ用ヘッダーブロック)
   ============================================ */
.page-head {
  background: var(--bg-pure);
  padding-block: clamp(80px, 9vw, 120px) clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--rule);
}
.page-head-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--s-9);
  align-items: end;
}
.page-head h1 {
  font-family: var(--font-jp-mincho);
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.35;
  letter-spacing: 0.06em;
  margin-top: var(--s-4);
}
.page-head .h1-en {
  font-family: var(--font-en-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--ink-mute);
  letter-spacing: 0.02em;
  margin-top: var(--s-3);
}
.page-head .lead {
  font-size: 14px;
  line-height: 2.1;
  color: var(--ink-soft);
  max-width: 520px;
}

/* ============================================
   INFO ARCHIVE (/info/ 一覧ページ専用)
   ============================================ */
.info-archive {
  background: var(--bg-pure);
  padding-block: clamp(48px, 6vw, 80px) clamp(80px, 10vw, 140px);
}
.info-cat {
  margin-bottom: var(--s-9);
}
.info-cat:last-child { margin-bottom: 0; }

.info-cat-head {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--s-5);
  align-items: baseline;
  padding-bottom: var(--s-4);
  margin-bottom: var(--s-4);
  border-bottom: 1px solid var(--green-deep);
}
.info-cat-num {
  font-family: var(--font-en-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  color: var(--green-deep);
  letter-spacing: 0.04em;
}
.info-cat-title {
  font-family: var(--font-jp-mincho);
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: 0.08em;
  color: var(--ink);
}
.info-cat-title .meta-en {
  font-family: var(--font-en-serif);
  font-style: italic;
  font-size: clamp(13px, 1.2vw, 15px);
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  margin-left: var(--s-3);
  font-weight: 400;
}

/* archive内の info-row は5カラムに上書き (TOPは4カラムのまま) */
.info-archive .info-row {
  grid-template-columns: auto 1fr 130px 80px auto;
}
.info-nendo {
  font-family: var(--font-jp-mincho);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  text-align: right;
}
.info-nendo.is-empty {
  color: var(--ink-mute);
  font-family: var(--font-en-serif);
  font-style: italic;
  font-size: 16px;
}
.info-archive .info-size { text-align: right; }

/* 件数ゼロ時の空状態 */
.info-empty {
  padding: var(--s-7) var(--s-4);
  text-align: center;
  color: var(--ink-mute);
  font-size: 13px;
  letter-spacing: 0.06em;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}


/* ============================================
   PARTNERS
   ============================================ */
.partners { background: var(--bg); }
.partners-head { text-align: center; margin-bottom: var(--s-7); }
.partners-head .eyebrow { justify-content: center; }
.partners-head .h2 { margin-top: var(--s-4); }
.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.partner-cell {
  background: var(--bg);
  padding: var(--s-6) var(--s-4);
  display: grid; place-items: center;
  text-align: center;
  font-family: var(--font-jp-mincho);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.65;
  letter-spacing: 0.04em;
  color: var(--ink);
  min-height: 100px;
  transition: background 0.3s, color 0.3s;
}
.partner-cell:hover { background: var(--green-soft); color: var(--green-deep); }

/* ============================================
   ACCESS
   ============================================ */
.access { background: var(--bg-alt); }
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--s-8);
  align-items: stretch;
}
.access-info .h2 { margin-top: var(--s-3); }
.access-info .h2-en { margin-bottom: var(--s-7); }
.access-rows {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--rule);
}
.access-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: var(--s-5);
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.access-row dt {
  font-family: var(--font-en-sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--green-deep);
  text-transform: uppercase;
}
.access-row dd {
  font-family: var(--font-jp-mincho);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.06em;
}
.access-row dd .num {
  font-family: var(--font-en-sans);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.04em;
}
.access-actions { margin-top: var(--s-6); display: flex; gap: var(--s-3); flex-wrap: wrap; }

.access-map {
  background: var(--bg-pure);
  border: 1px solid var(--rule);
  position: relative;
  display: grid; place-items: center;
  overflow: hidden;
  min-height: 440px;
}
.access-map::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(0deg, rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 36px 36px;
}
.access-map-pin {
  width: 50px; height: 50px;
  background: var(--green-deep);
  border-radius: 50%;
  display: grid; place-items: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.access-map-pin::after {
  content: "";
  position: absolute;
  width: 100px; height: 100px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 50%;
  animation: ripple 2.4s ease-out infinite;
}
.access-map-pin span {
  width: 12px; height: 12px;
  background: #fff;
  border-radius: 50%;
}
@keyframes ripple {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}
.access-map-label {
  position: absolute;
  top: var(--s-5); left: var(--s-5);
  font-family: var(--font-en-sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

/* ============================================================
   PHASE 3 — Page / Single Templates (下層ページ実装)
   v1.2.0-phase3-v8  2026-04-26
   - .page-hero / .post-hero: 固定ページ・投稿個別のヒーロー
   - .rich-content: Classic Editor 出力の汎用整形
   - .feature-box / .callout / .numbered-cards / .tag-row / .facility-row: 拡張ユーティリティ
   - .post-nav: 投稿個別末尾の前後ナビ
   ============================================================ */

/* ---------- Page Hero (page.php) ---------- */
.page-hero {
  position: relative;
  padding-block: clamp(80px, 10vw, 130px);
  background: var(--bg-alt);
  overflow: hidden;
}
.page-hero::before {
  /* 右下のコーナー装飾 (緑薄三角) */
  content: "";
  position: absolute;
  bottom: 0; right: 0;
  width: clamp(80px, 14vw, 180px);
  height: clamp(80px, 14vw, 180px);
  background: var(--green-soft);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  opacity: 0.7;
}
.page-hero-inner {
  position: relative;
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  z-index: 2;
}
.page-hero-eyebrow { margin-bottom: var(--s-5); }
.page-hero-title {
  font-family: var(--font-jp-mincho);
  font-weight: 600;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.4;
  letter-spacing: 0.1em;
  color: var(--ink);
}
.page-hero-divider {
  display: block;
  width: 56px;
  height: 1px;
  background: var(--ink);
  margin: var(--s-5) auto;
}
.page-hero-en {
  font-family: var(--font-en-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}

.page-body {
  padding-block: clamp(48px, 6vw, 80px);
  background: var(--bg);
}

/* ---------- Page Hero (アイキャッチが背景になるモード) ---------- */
.page-hero.has-image {
  background-color: var(--ink);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: clamp(360px, 42vw, 520px);
  display: flex;
  align-items: center;
  padding-block: clamp(80px, 10vw, 130px);
}
/* 暗いオーバーレイで文字を読みやすく */
.page-hero.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.45) 100%);
  z-index: 1;
}
/* 既存の右下ノッチ装飾は写真モードでは非表示 (写真の主役感を邪魔しないため) */
.page-hero.has-image::before { display: none; }
/* テキストを白に */
.page-hero.has-image .page-hero-inner { color: #fff; }
.page-hero.has-image .page-hero-eyebrow {
  color: rgba(255, 255, 255, 0.9);
}
.page-hero.has-image .eyebrow.is-centered::before,
.page-hero.has-image .eyebrow.is-centered::after {
  background: rgba(255, 255, 255, 0.7);
}
.page-hero.has-image .page-hero-title {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.page-hero.has-image .page-hero-divider {
  background: rgba(255, 255, 255, 0.7);
}
.page-hero.has-image .page-hero-en {
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Single Hero (single.php) ---------- */
.post-hero {
  position: relative;
  padding-block: clamp(70px, 9vw, 110px) clamp(40px, 5vw, 70px);
  background: var(--bg-alt);
  overflow: hidden;
}
.post-hero::before {
  content: "";
  position: absolute;
  bottom: 0; right: 0;
  width: clamp(80px, 12vw, 140px);
  height: clamp(80px, 12vw, 140px);
  background: var(--green-soft);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  opacity: 0.7;
}
.post-hero-inner {
  position: relative;
  max-width: 880px;
  margin-inline: auto;
  z-index: 2;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin-bottom: var(--s-5);
  flex-wrap: wrap;
}
.post-date {
  font-family: var(--font-en-serif);
  font-style: italic;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.post-category {
  display: inline-block;
  padding: 5px 14px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-family: var(--font-jp-gothic);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  border-radius: 2px;
}
.post-category.is-important {
  background: #FBE9E5;
  color: #C0392B;
}
.post-hero-title {
  font-family: var(--font-jp-mincho);
  font-weight: 600;
  font-size: clamp(24px, 3.8vw, 42px);
  line-height: 1.55;
  letter-spacing: 0.06em;
  color: var(--ink);
}

/* Featured Image (アイキャッチ・任意) */
.post-featured {
  margin-block: 0;
  background: var(--bg-alt);
  overflow: hidden;
}
.post-featured img {
  display: block;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.post-body {
  padding-block: clamp(48px, 6vw, 80px);
  background: var(--bg);
}

/* ---------- .rich-content — Classic Editor 出力の汎用整形 ---------- */
.rich-content {
  max-width: 760px;
  margin-inline: auto;
  font-family: var(--font-jp-gothic);
  font-size: 15px;
  line-height: 2;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.rich-content > * + * { margin-top: var(--s-5); }
.rich-content > h2 + *,
.rich-content > h3 + *,
.rich-content > h4 + * { margin-top: var(--s-3); }

.rich-content h2 {
  position: relative;
  font-family: var(--font-jp-mincho);
  font-weight: 600;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-top: var(--s-8);
  padding-bottom: var(--s-4);
}
.rich-content h2::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 40px;
  height: 2px;
  background: var(--green-deep);
}
.rich-content h3 {
  font-family: var(--font-jp-mincho);
  font-weight: 600;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
  letter-spacing: 0.05em;
  color: var(--ink);
  margin-top: var(--s-7);
  padding-left: var(--s-4);
  border-left: 3px solid var(--green);
}
.rich-content h4 {
  font-family: var(--font-jp-gothic);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.7;
  color: var(--green-deep);
  margin-top: var(--s-6);
}
.rich-content p { color: var(--ink-soft); }
.rich-content a {
  color: var(--green-deep);
  border-bottom: 1px solid var(--green-light);
  transition: color 0.2s, border-color 0.2s;
}
.rich-content a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.rich-content ul,
.rich-content ol { padding-left: 1.4em; }
.rich-content ul { list-style: disc outside; }
.rich-content ol { list-style: decimal outside; }
.rich-content li { margin-top: 6px; }
.rich-content li::marker { color: var(--green); }

.rich-content blockquote {
  margin: var(--s-6) 0;
  padding: var(--s-5) var(--s-6);
  border-left: 3px solid var(--green);
  background: var(--bg-alt);
  font-family: var(--font-jp-mincho);
  color: var(--ink-soft);
}
.rich-content blockquote p { margin: 0; }

.rich-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-block: var(--s-5);
}
.rich-content th,
.rich-content td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}
.rich-content th {
  background: var(--bg-alt);
  font-family: var(--font-jp-mincho);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  white-space: nowrap;
}

/* Timeline table (沿革等の年表) — 1列目を nowrap で日付改行を防ぐ
   2系統で発火: (1) class="timeline" が付与されている (2) thead を持つテーブル
   :has() による (2) で about.html 未差し替えでも効くようにしている */
.rich-content table.timeline thead th:first-child,
.rich-content table.timeline tbody td:first-child,
.rich-content table:has(thead) tbody td:first-child {
  white-space: nowrap;
  width: 1%;
  padding-right: var(--s-6);
  font-family: var(--font-jp-mincho);
  color: var(--ink);
  letter-spacing: 0.04em;
}

.rich-content figure { margin-block: var(--s-6); }
.rich-content img {
  margin-block: var(--s-5);
  border-radius: 2px;
}
.rich-content figcaption {
  margin-top: var(--s-3);
  font-size: 12px;
  color: var(--ink-mute);
  text-align: center;
  letter-spacing: 0.04em;
}
.rich-content hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin-block: var(--s-7);
}
.rich-content strong { font-weight: 600; color: var(--ink); }
.rich-content em { font-style: italic; }
.rich-content code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
  padding: 2px 6px;
  background: var(--bg-alt);
  border-radius: 2px;
}

/* ---------- 拡張ユーティリティ (Classic Editor で <div class="..."> で使用) ---------- */

/* Feature Box (デフォルト = アウトライン / 普通の枠線) */
.feature-box {
  position: relative;
  margin-block: var(--s-7);
  padding: var(--s-7) var(--s-6);
  background-color: transparent;
  border: 1px solid var(--ink);
  color: var(--ink-soft);
}
.feature-box .feature-box-title {
  display: inline-block;
  margin: 0 0 var(--s-5) 0 !important;
  padding: var(--s-2) var(--s-5) !important;
  border: 1px solid var(--ink);
  font-family: var(--font-jp-mincho);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.1em;
  color: var(--ink);
  background: transparent;
}
.feature-box p { color: var(--ink-soft) !important; line-height: 2; }

/* Feature Box .dark (黒塗り版・右下ノッチ / 強訴求用) */
.feature-box.dark {
  background-color: var(--ink);
  border: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%);
  color: rgba(250, 250, 247, 0.85);
}
.feature-box.dark .feature-box-title {
  border-color: rgba(250, 250, 247, 0.7);
  color: #fff;
}
.feature-box.dark p { color: rgba(250, 250, 247, 0.85) !important; }
.feature-box.dark a {
  color: var(--green-light) !important;
  border-bottom-color: rgba(143, 191, 163, 0.5) !important;
}

/* Callout (淡・補足情報) */
.callout {
  margin-block: var(--s-6);
  padding: var(--s-5) var(--s-6);
  background: var(--bg-alt);
  border-radius: 2px;
  position: relative;
}
.callout::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--green-deep);
}
.callout .callout-title {
  font-family: var(--font-jp-mincho);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: var(--s-3) !important;
  letter-spacing: 0.06em;
}

/* Numbered Cards (kaminishi 4つの役割風 / 右下ノッチ)
   v13.2: minmax 220→280 で desktop 2列化、垂直余白圧縮(間延び解消) */
.numbered-cards {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-4);
  list-style: none !important;
  padding: 0 !important;
  margin-block: var(--s-7);
  counter-reset: ncard;
}
.numbered-cards > li {
  position: relative;
  padding: var(--s-5) var(--s-5);
  background: var(--bg-alt);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%);
  counter-increment: ncard;
  margin-top: 0 !important;
  font-family: var(--font-jp-mincho);
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink);
  text-align: center;
}
.numbered-cards > li::before {
  content: counter(ncard);
  display: block;
  font-family: var(--font-en-serif);
  font-style: italic;
  font-size: 36px;
  font-weight: 400;
  color: var(--green-deep);
  margin-bottom: var(--s-2);
  line-height: 1;
}
.numbered-cards > li::marker { content: none; }

/* Tag Row (枠線アロー型ラベル / kaminishi 車・バス・タクシー風) */
.tag-row {
  display: grid !important;
  grid-template-columns: auto 1fr;
  gap: var(--s-4) var(--s-5);
  align-items: baseline;
  list-style: none !important;
  padding: 0 !important;
  margin-block: var(--s-5);
}
.tag-row > dt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 26px 0 14px;
  min-width: 84px;
  height: 30px;
  font-family: var(--font-jp-gothic);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink);
  background-image: url("data:image/svg+xml;charset=utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 30' preserveAspectRatio='none'><path d='M0.5,0.5 L88,0.5 L99.5,15 L88,29.5 L0.5,29.5 Z' fill='%23FFFFFF' stroke='%231A1A1A' stroke-width='1' vector-effect='non-scaling-stroke'/></svg>");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  white-space: nowrap;
  justify-self: start;
}
.tag-row > dd {
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin: 0;
}

/* Facility Row (4施設カード横並び・固定ページ本文用)
   ⚠️ TOP の .facility-grid / .facility-card とは別物。.facility-row の中だけにスコープ */
.facility-row {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
  list-style: none !important;
  padding: 0 !important;
  margin-block: var(--s-7);
}
.facility-row > li {
  margin-top: 0 !important;
  display: flex;
  flex-direction: column;
}
.facility-row > li::marker { content: none; }
.facility-row .facility-img {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}
.facility-row .facility-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.facility-row .facility-img-label {
  position: absolute;
  bottom: var(--s-3); left: var(--s-3);
  font-family: var(--font-en-sans);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
}
/* 写真未設定時の施設別カラープレースホルダー */
.facility-row .facility-img.is-icearena {
  background: linear-gradient(160deg, #2C5F7E 0%, #1A3A4E 60%, #0E2230 100%);
}
.facility-row .facility-img.is-stadium {
  background: linear-gradient(160deg, #2E7A4E 0%, #1A5A36 60%, #0E3520 100%);
}
.facility-row .facility-img.is-koen {
  background: linear-gradient(160deg, #4E5F2E 0%, #36421A 60%, #20280E 100%);
}
.facility-row .facility-img.is-nopporo {
  background: linear-gradient(160deg, #9E5A2E 0%, #6E3A1A 60%, #3E200E 100%);
}
.facility-row .facility-name {
  font-family: var(--font-jp-mincho);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-top: var(--s-3) !important;
}
.facility-row .facility-en {
  font-family: var(--font-en-serif);
  font-style: italic;
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
  line-height: 1.5;
  margin-top: 4px !important;
}
.facility-row .facility-desc {
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  margin-top: var(--s-2) !important;
}

/* Map Embed (Googleマップなどの iframe ラッパー) */
.map-embed {
  margin-block: var(--s-5);
  width: 100%;
  border: 1px solid var(--rule);
  background: var(--bg-alt);
  overflow: hidden;
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: 450px;
  border: 0;
}
@media (max-width: 860px) {
  .map-embed iframe { height: 320px; }
}

/* FAQ List (折りたたみ Q&A / details + summary) */
.faq-list {
  margin-block: var(--s-7);
  border-top: 1px solid var(--rule);
}
.faq-list details {
  border-bottom: 1px solid var(--rule);
  padding-block: var(--s-5);
  margin-top: 0 !important;
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 0 40px 0 36px;
  font-family: var(--font-jp-mincho);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before {
  content: "Q";
  position: absolute;
  left: 0; top: -2px;
  font-family: var(--font-en-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--green-deep);
  line-height: 1.4;
}
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 8px; top: 0;
  font-family: var(--font-en-sans);
  font-size: 22px;
  font-weight: 300;
  color: var(--ink-mute);
  line-height: 1;
  transition: color 0.2s;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list summary:hover { color: var(--green-deep); }
.faq-list summary:hover::after { color: var(--green-deep); }
.faq-list details > p {
  margin-top: var(--s-4);
  padding-left: 36px;
  position: relative;
  color: var(--ink-soft);
  line-height: 2;
}
.faq-list details > p::before {
  content: "A";
  position: absolute;
  left: 0; top: -4px;
  font-family: var(--font-en-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink-mute);
  line-height: 1.4;
}

/* ---------- Post Navigation (single.php 末尾) ---------- */
.post-nav {
  max-width: 760px;
  margin: var(--s-8) auto 0;
  padding-top: var(--s-6);
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--s-5);
  align-items: center;
}
.post-nav-prev a,
.post-nav-next a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: color 0.2s;
}
.post-nav-prev a:hover,
.post-nav-next a:hover { color: var(--green-deep); }
.post-nav-next { text-align: right; }
.post-nav-label {
  font-family: var(--font-en-sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
}
.post-nav-title {
  font-family: var(--font-jp-mincho);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-nav-back { justify-self: center; }

/* ============================================================
   ARCHIVE — お知らせ一覧 (archive.php / 検索結果 / カテゴリ別)
   Phase 3 v10  2026-04-26
   ------------------------------------------------------------
   - 全体白ベース・余白広め・装飾少なめ (KAMINISHI参照)
   - ヒーロー: タイトル + 下線のみ
   - タブ: テキスト型 (Category ▶ すべて お知らせ 報告)
   - リスト: 横長1列・上下ライン・カテゴリは枠付きピル
   - ページネーション: 下線スタイル
   ============================================================ */

.archive-main {
  background: var(--bg-pure);
}

/* ---- Archive Hero (シンプル) ---- */
.archive-hero {
  padding-block: clamp(80px, 9vw, 120px) clamp(48px, 5vw, 72px);
  background: var(--bg-pure);
  text-align: center;
}
.archive-hero-title {
  font-family: var(--font-jp-mincho);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.4;
  letter-spacing: 0.14em;
  color: var(--ink);
}
.archive-hero-divider {
  display: block;
  width: 48px;
  height: 1px;
  background: var(--ink);
  margin: var(--s-5) auto 0;
}

/* ---- Controls (タブ + 検索) ---- */
.archive-controls {
  padding-block: 0 clamp(28px, 3vw, 40px);
  background: var(--bg-pure);
}
.archive-controls-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}

/* テキスト型タブ */
.archive-tabs {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-jp-gothic);
}
.archive-tabs-label {
  font-family: var(--font-en-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin-right: var(--s-2);
}
.archive-tabs-arrow {
  color: var(--ink-mute);
  font-size: 11px;
  margin-right: var(--s-2);
}
.archive-tab {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  padding: 6px 4px;
  position: relative;
  transition: color 0.2s;
  cursor: pointer;
}
.archive-tab:hover { color: var(--ink); }
.archive-tab.is-active {
  color: var(--ink);
  font-weight: 500;
}
.archive-tab.is-active::after {
  content: "";
  position: absolute;
  left: 4px; right: 4px; bottom: 0;
  height: 1px;
  background: var(--ink);
}

/* 検索ボックス (軽量・下線のみ) */
.archive-search {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 4px;
}
.archive-search input[type="search"] {
  font-family: var(--font-jp-gothic);
  font-size: 13px;
  padding: 6px 8px;
  border: none;
  outline: none;
  background: transparent;
  width: 200px;
  color: var(--ink);
  letter-spacing: 0.04em;
}
.archive-search input::placeholder {
  color: var(--ink-mute);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.archive-search button {
  padding: 6px 8px;
  font-family: var(--font-en-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  text-transform: uppercase;
  transition: color 0.2s;
}
.archive-search button:hover { color: var(--green-deep); }

/* 結果サマリー (検索/フィルタ時のみ表示) */
.archive-summary {
  margin-top: var(--s-5);
  padding-bottom: var(--s-3);
  font-family: var(--font-jp-gothic);
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}
.archive-summary strong { color: var(--ink); font-weight: 600; }
.archive-summary .clear {
  display: inline-block;
  margin-left: var(--s-3);
  padding: 3px 10px;
  font-size: 11px;
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.archive-summary .clear:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ---- List (横長1列) ---- */
.archive-list {
  padding-block: 0 clamp(64px, 7vw, 96px);
}
.archive-list-inner {
  border-top: 1px solid var(--rule);
}
.archive-row {
  display: grid;
  grid-template-columns: 120px 90px 1fr;
  gap: var(--s-5);
  align-items: baseline;
  padding: var(--s-6) var(--s-2);
  border-bottom: 1px solid var(--rule);
  transition: background 0.2s;
  cursor: pointer;
}
.archive-row:hover { background: var(--bg); }

.archive-date {
  font-family: var(--font-en-sans);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  font-weight: 400;
}

/* カテゴリラベル (枠線+色付きピル型 = 既存 .news-cat と同じ系統) */
.archive-cat {
  justify-self: start;
  font-family: var(--font-jp-gothic);
  font-size: 10px;
  letter-spacing: 0.16em;
  padding: 4px 12px;
  border: 1px solid var(--ink-mute);
  color: var(--ink-mute);
  white-space: nowrap;
}
.archive-cat.cat-oshirase { color: var(--green-deep); border-color: var(--green-deep); }
.archive-cat.cat-houkoku  { color: #8B6B3D;          border-color: #8B6B3D; }
.archive-cat.cat-juyou    { color: #C0392B;          border-color: #C0392B; background: #FCEFEE; }

.archive-title {
  font-family: var(--font-jp-mincho);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.archive-row:hover .archive-title { color: var(--green-deep); }

/* 検索ハイライト */
.archive-title mark {
  background: rgba(248, 215, 117, 0.55);
  color: inherit;
  padding: 0 2px;
}

/* 0件メッセージ */
.archive-empty {
  padding: var(--s-9) var(--s-5);
  text-align: center;
  color: var(--ink-mute);
  font-family: var(--font-jp-mincho);
  font-size: 16px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

/* ---- ページネーション (paginate_links 出力対応) ---- */
.archive-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-8);
  flex-wrap: wrap;
}
.archive-pagination .page-numbers {
  font-family: var(--font-en-sans);
  font-size: 13px;
  letter-spacing: 0.06em;
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  color: var(--ink-mute);
  transition: color 0.2s, border-color 0.2s;
  border-bottom: 1px solid transparent;
  text-decoration: none;
}
.archive-pagination a.page-numbers:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.archive-pagination .page-numbers.current {
  color: var(--ink);
  font-weight: 500;
  border-bottom-color: var(--ink);
}
.archive-pagination .page-numbers.dots { border: none; }
.archive-pagination .page-numbers.prev,
.archive-pagination .page-numbers.next {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
  padding-inline: 14px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--ink);
  color: rgba(250, 250, 247, 0.7);
  padding-block: var(--s-9) var(--s-5);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--s-7);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid rgba(250, 250, 247, 0.12);
}
/* フッターのブランドエリア：フルロゴSVG（白文字）を1枚で表示 */
.footer-logo-link {
  display: inline-block;
  line-height: 0;
  transition: opacity 0.2s;
}
.footer-logo-link:hover { opacity: 0.85; }
.footer-brand-logo {
  height: 64px;
  width: auto;
  max-width: 320px;
  display: block;
  object-fit: contain;
}
.footer-brand p {
  margin-top: var(--s-5);
  font-size: 13px;
  line-height: 1.85;
}
.footer-brand .num { font-family: var(--font-en-sans); }

/* モバイル時は少し縮小 */
@media (max-width: 860px) {
  .footer-brand-logo { height: 52px; max-width: 280px; }
}

.footer-col h4 {
  font-family: var(--font-en-sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--green-light);
  text-transform: uppercase;
  margin-bottom: var(--s-5);
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  font-family: var(--font-jp-mincho);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--green-light); }

.footer-bot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--s-5);
  font-size: 11px;
  color: rgba(250, 250, 247, 0.4);
  flex-wrap: wrap;
  gap: var(--s-3);
}
.footer-bot .copyright {
  font-family: var(--font-en-sans);
  letter-spacing: 0.12em;
}
.footer-bot .reuse {
  font-family: var(--font-jp-mincho);
  font-size: 12px;
}

/* ============================================
   FACILITY ARCHIVE — Large alternating panels (v12)
   ============================================ */
.facility-archive {
  background: var(--bg-pure);
  padding-block: clamp(64px, 8vw, 120px) clamp(80px, 10vw, 140px);
}

.facility-panel {
  margin-bottom: clamp(96px, 12vw, 160px);
  position: relative;
}
.facility-panel:last-child { margin-bottom: 0; }

.facility-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  min-height: 540px;
}

.facility-panel-photo {
  aspect-ratio: 4 / 3;
  background-color: var(--ink);
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
}
.facility-panel-photo .photo-num {
  position: absolute;
  top: var(--s-4);
  left: var(--s-5);
  font-family: var(--font-en-serif);
  font-style: italic;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.18em;
  background: rgba(0, 0, 0, 0.45);
  padding: 6px 14px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.facility-panel-card {
  background: var(--ink);
  color: #fff;
  padding: clamp(40px, 5vw, 56px) clamp(28px, 4vw, 52px);
  z-index: 2;
  position: relative;
  align-self: center;
  margin-left: -120px;
}
/* 偶数番目 (02 / 04) は写真右・カード左の鏡像配置 */
.facility-panel.right .facility-panel-photo { order: 2; }
.facility-panel.right .facility-panel-card {
  order: 1;
  margin-left: 0;
  margin-right: -120px;
}

.facility-panel-title-frame {
  border: 1px solid rgba(255, 255, 255, 0.65);
  padding: var(--s-4) var(--s-5) 14px;
  margin-bottom: var(--s-6);
}
.facility-panel-title-en {
  display: block;
  font-family: var(--font-en-serif);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 6px;
  line-height: 1.3;
}
.facility-panel-title-jp {
  display: block;
  font-family: var(--font-jp-mincho);
  font-size: clamp(18px, 2vw, 21px);
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.facility-panel-subitems {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px var(--s-5);
  margin-bottom: var(--s-6);
  font-size: 13px;
  color: #fff;
  letter-spacing: 0.04em;
  list-style: none;
  padding: 0;
}
.facility-panel-subitems li { line-height: 1.6; }

.facility-panel-desc {
  font-size: 13.5px;
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 var(--s-6);
  letter-spacing: 0.03em;
}

.facility-panel-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #fff;
  color: var(--ink);
  padding: 14px 24px 14px 32px;
  border-radius: 999px;
  font-family: var(--font-en-sans);
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 400;
  min-width: 200px;
  transition: transform 0.25s ease, background 0.25s ease;
}
.facility-panel-cta:hover {
  transform: translateY(-2px);
  background: #f0f0f0;
}
.facility-panel-cta-arrow {
  width: 26px;
  height: 26px;
  background: var(--ink);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: transform 0.25s ease;
}
.facility-panel-cta:hover .facility-panel-cta-arrow {
  transform: translateX(3px);
}

.facility-empty {
  text-align: center;
  padding: var(--s-9) 0;
  color: var(--ink-mute);
  font-size: 14px;
}

/* ============================================
   FACILITY SINGLE — 浅い概要紹介 (フォールバック表示)
   external_url 設定時は wp_redirect でこのテンプレに到達しない
   ============================================ */
.facility-single-main { background: var(--bg-pure); }

.facility-single-hero {
  position: relative;
  height: 64vh;
  min-height: 460px;
  background-color: var(--ink);
  background-size: cover;
  background-position: center;
}
.facility-single-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.55) 100%);
  z-index: 1;
}
.facility-single-hero .container {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  z-index: 2;
}
.facility-single-hero-meta {
  color: #fff;
  padding-bottom: clamp(32px, 5vw, 56px);
  max-width: 720px;
}
.facility-single-num {
  font-family: var(--font-en-serif);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.3em;
  margin-bottom: var(--s-3);
  opacity: 0.9;
}
.facility-single-name-en {
  font-family: var(--font-en-serif);
  font-style: italic;
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: 0.15em;
  margin-bottom: var(--s-2);
  opacity: 0.95;
  line-height: 1.4;
}
.facility-single-name-jp {
  font-family: var(--font-jp-mincho);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.4;
  margin: 0;
}

.facility-single-body {
  background: var(--bg-pure);
  padding-block: clamp(64px, 8vw, 100px);
}
.facility-single-body .container {
  max-width: 720px;
}

.facility-single-catch {
  font-family: var(--font-jp-mincho);
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.9;
  text-align: center;
  color: var(--ink);
  letter-spacing: 0.06em;
  font-weight: 500;
  margin: 0 0 var(--s-7);
}

.facility-single-prose {
  font-size: 15px;
  line-height: 2.1;
  color: var(--ink);
  letter-spacing: 0.03em;
  margin-bottom: var(--s-9);
}
.facility-single-prose p { margin-bottom: 1.5em; }
.facility-single-prose p:last-child { margin-bottom: 0; }

.facility-single-back-wrap { text-align: center; }
.facility-single-back {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-en-sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--ink);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
  transition: gap 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.facility-single-back:hover {
  gap: 22px;
  color: var(--green-deep);
  border-color: var(--green-deep);
}
.facility-single-back-arrow {
  font-size: 14px;
  transition: transform 0.25s ease;
}
.facility-single-back:hover .facility-single-back-arrow {
  transform: translateX(-3px);
}

/* ============================================
   NETWORK DIAGRAM (防災ページ用 / カミニシ風)
   rich-content 内に <aside class="network-diagram"> として記述
   2施設(真駒内・野幌)を中央の細い縦線で対比、タイポ主導のクリーン構成
   ============================================ */
.network-diagram {
  background: var(--bg-pure);
  border: 1px solid var(--rule);
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 48px);
  margin: var(--s-6) 0;
}
.network-head {
  text-align: center;
  margin-bottom: var(--s-6);
}
.network-eyebrow {
  font-family: var(--font-en-sans);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
/* network-title は h3 だが rich-content h3 のデフォルト装飾(緑の縦線・左パディング)を打ち消す */
.network-diagram .network-title,
.rich-content .network-diagram h3.network-title {
  font-family: var(--font-jp-mincho);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.08em;
  margin: var(--s-3) 0 var(--s-3);
  line-height: 1.5;
  padding-left: 0;
  border-left: 0;
}
.network-divider {
  display: block;
  width: 56px;
  height: 1px;
  background: var(--green);
  margin: 0 auto;
}
.network-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
  align-items: start;
  position: relative;
}
.network-grid::before {
  /* 中央の細い縦線(2施設の関係性を示唆) */
  content: "";
  position: absolute;
  left: 50%;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--rule-soft);
}
.network-node {
  text-align: center;
  padding: 0 var(--s-3);
}
.network-node-region {
  font-family: var(--font-en-sans);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--green-deep);
  margin-bottom: var(--s-3);
  text-transform: uppercase;
}
.network-node-name {
  font-family: var(--font-jp-mincho);
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: var(--s-2);
  line-height: 1.5;
}
.network-node-meta {
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
  margin-bottom: var(--s-3);
  font-family: var(--font-en-sans);
}
.network-node-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  line-height: 2.0;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.network-node-list li {
  padding: 0;
  position: relative;
}
/* rich-content 内の li マーカー(緑●)を打ち消す */
.network-node-list li::marker { content: none; }

/* ============================================
   IMAGE ROW (rich-content 内の2枚並び画像)
   防災ページの「火災予防訓練」「共同実働訓練」用、その他汎用
   ============================================ */
.image-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  margin: var(--s-7) 0;
}
.image-row figure {
  margin: 0;
}
.image-row figure img {
  width: 100%;
  height: auto;
  display: block;
}
.image-row figcaption {
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: var(--s-3);
  letter-spacing: 0.04em;
  text-align: center;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .principles-grid { grid-template-columns: repeat(4, 1fr); }
  .principle { border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .news-card:nth-child(3n) { border-right: 1px solid var(--rule); }
  .news-card:nth-child(2n) { border-right: none; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .global-nav, .header-utils { display: none; }
  .menu-toggle { display: flex; }

  .hero { height: auto; min-height: 480px; max-height: 640px; }
  .hero-content { bottom: var(--s-7); }
  .hero h1 { letter-spacing: 0.08em; }
  .hero-name { display: none; }

  .news-strip-inner { grid-template-columns: 1fr; gap: var(--s-2); }
  .news-strip-list a { font-size: 13px; gap: 10px; }

  .news-recent-inner { grid-template-columns: 1fr; gap: var(--s-3); }
  .news-recent-more { justify-self: start; }

  .about-stats { grid-template-columns: repeat(2, 1fr); }

  .facility-grid { grid-template-columns: 1fr; gap: var(--s-7); }

  .news-head { grid-template-columns: 1fr; gap: var(--s-4); align-items: start; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card { border-right: none !important; }

  .principles-head { grid-template-columns: 1fr; gap: var(--s-5); }
  .principles-grid { grid-template-columns: repeat(2, 1fr); }

  .bousai-grid { grid-template-columns: 1fr; gap: var(--s-7); }

  .info-grid { grid-template-columns: 1fr; gap: var(--s-7); }
  .info-row { grid-template-columns: auto 1fr auto; }
  .info-row .info-size { display: none; }

  /* PAGE HEAD (情報公開ページ等) */
  .page-head-inner { grid-template-columns: 1fr; gap: var(--s-7); }

  /* INFO ARCHIVE レスポンシブ : 年度をタイトル下meta扱いに */
  .info-archive .info-row {
    grid-template-columns: auto 1fr auto;
    gap: var(--s-4);
    row-gap: 4px;
  }
  .info-archive .info-nendo {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    text-align: left;
    font-size: 12px;
    color: var(--ink-mute);
  }
  .info-archive .info-nendo.is-empty { display: none; }
  .info-archive .info-arr { grid-row: 1 / 3; align-self: center; }
  .info-cat-head { grid-template-columns: 40px 1fr; gap: var(--s-3); }
  .info-cat-num { font-size: 20px; }
  .info-cat-title .meta-en {
    display: block;
    margin-left: 0;
    margin-top: 4px;
  }

  .partner-grid { grid-template-columns: repeat(2, 1fr); }

  .access-grid { grid-template-columns: 1fr; gap: var(--s-7); }
  .access-map { min-height: 320px; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: var(--s-5); }
  .footer-bot { flex-direction: column; align-items: start; }

  /* ---- PHASE 3 ---- */
  :root { --notch: 16px; }

  .post-nav {
    grid-template-columns: 1fr;
    gap: var(--s-4);
    text-align: left;
  }
  .post-nav-next { text-align: left; }
  .post-nav-back { justify-self: start; order: 3; }

  .rich-content table { font-size: 13px; }
  .rich-content th,
  .rich-content td { padding: 10px 12px; }

  .numbered-cards { grid-template-columns: 1fr 1fr; }
  .facility-row { grid-template-columns: 1fr 1fr; }
  .tag-row { grid-template-columns: 1fr; gap: var(--s-2); }
  .feature-box { padding: var(--s-6) var(--s-5); }

  /* ---- ARCHIVE (Phase 3 v10) ---- */
  .archive-controls-inner {
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-4);
  }
  .archive-tabs { flex-wrap: wrap; justify-content: center; }
  .archive-search { width: 100%; }
  .archive-search input[type="search"] { width: 100%; }
  .archive-row {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "date cat"
      "title title";
    gap: var(--s-2) var(--s-4);
    padding: var(--s-5) var(--s-2);
  }
  .archive-date { grid-area: date; }
  .archive-cat  { grid-area: cat; justify-self: start; }
  .archive-title { grid-area: title; }

  /* ---- FACILITY ARCHIVE / SINGLE (Phase 3 v12) ---- */
  .facility-archive { padding-block: clamp(48px, 6vw, 80px) clamp(64px, 8vw, 100px); }
  .facility-panel { margin-bottom: clamp(64px, 9vw, 100px); }
  .facility-panel-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .facility-panel-photo { aspect-ratio: 16 / 10; }
  .facility-panel-card,
  .facility-panel.right .facility-panel-card {
    margin: -56px var(--s-5) 0;
    padding: var(--s-6) var(--s-5);
    align-self: stretch;
    order: unset;
  }
  .facility-panel.right .facility-panel-photo { order: unset; }
  .facility-panel-title-jp { font-size: 18px; }

  .facility-single-hero { height: 52vh; min-height: 360px; }
  .facility-single-hero-meta { padding-bottom: var(--s-6); }

  /* ---- NETWORK DIAGRAM / IMAGE ROW (Phase 3 v13) ---- */
  .network-grid {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }
  .network-grid::before {
    left: var(--s-5);
    right: var(--s-5);
    top: 50%;
    bottom: auto;
    width: auto;
    height: 1px;
  }
  .network-node {
    padding: var(--s-3) 0;
  }
  .image-row {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }
}

@media (max-width: 480px) {
  .principles-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }

  /* ---- PHASE 3 ---- */
  .numbered-cards { grid-template-columns: 1fr; }
  .facility-row { grid-template-columns: 1fr; }

  /* ---- FACILITY ARCHIVE (Phase 3 v12) ---- */
  .facility-panel-subitems { grid-template-columns: 1fr; }
  .facility-panel-card,
  .facility-panel.right .facility-panel-card {
    margin: -40px var(--s-4) 0;
    padding: var(--s-5) var(--s-4);
  }
  .facility-panel-title-frame { padding: 14px var(--s-4) 12px; }
  .facility-panel-cta { min-width: 0; padding: 12px 18px 12px 24px; gap: 14px; }
}

/* ============================================
   ENTRANCE
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow { animation: fadeUp 0.9s ease 0.4s both; }
.hero h1 { animation: fadeUp 0.9s ease 0.55s both; }
.hero-en { animation: fadeUp 0.9s ease 0.7s both; }

/* ============================================
   SEARCH MODAL (Phase 3 v14)
   ヘッダー右の🔍アイコンクリックで開くサイト内検索モーダル
   ============================================ */
.search-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  display: none;
  pointer-events: none;
}
.search-modal.open {
  display: block;
  pointer-events: auto;
}
.search-modal-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26, 26, 26, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: searchFadeIn 0.25s ease both;
}
.search-modal-inner {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100% - 32px));
  background: var(--bg-pure);
  border: 1px solid var(--rule);
  padding: var(--s-7) var(--s-6) var(--s-6);
  animation: searchSlideUp 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.search-modal-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  background: transparent;
  border: none;
  color: var(--ink-mute);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}
.search-modal-close:hover { color: var(--ink); }
.search-modal-eyebrow {
  font-family: var(--font-en-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  display: block;
  margin-bottom: var(--s-2);
}
.search-modal-title {
  font-family: var(--font-jp-mincho);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 var(--s-5);
  letter-spacing: 0.04em;
}
.search-modal-form {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--rule);
  background: var(--bg);
  transition: border-color 0.2s ease;
}
.search-modal-form:focus-within {
  border-color: var(--green);
}
.search-modal-form input[type="search"] {
  flex: 1;
  padding: 14px 16px;
  font-size: 15px;
  font-family: var(--font-jp-gothic);
  color: var(--ink);
  background: transparent;
  border: none;
  outline: none;
}
.search-modal-form input::placeholder {
  color: var(--ink-mute);
}
.search-modal-submit {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 18px;
  background: var(--green);
  color: #fff;
  border: none;
  font-family: var(--font-en-sans);
  font-size: 13px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s ease;
}
.search-modal-submit:hover {
  background: var(--green-deep);
}
.search-modal-hint {
  margin: var(--s-4) 0 0;
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}

@keyframes searchFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes searchSlideUp {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 12px)); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}

/* スクリーンリーダー専用 */
.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px; height: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}

/* モバイル時の検索フォーム (mobile-nav 内) */
.mobile-search {
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--rule);
}
.mobile-search .search-form {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--rule);
  background: var(--bg-pure);
}
.mobile-search input[type="search"] {
  flex: 1;
  padding: 12px 14px;
  font-size: 14px;
  font-family: var(--font-jp-gothic);
  color: var(--ink);
  background: transparent;
  border: none;
  outline: none;
}
.mobile-search button {
  width: 44px;
  background: var(--green);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-search button:hover { background: var(--green-deep); }

@media (max-width: 768px) {
  .search-modal-inner {
    padding: var(--s-6) var(--s-5) var(--s-5);
  }
  .search-modal-title { font-size: 18px; }
  .search-modal-submit span { display: none; }
  .search-modal-submit { padding: 0 14px; }
}

/* ============================================
   SEARCH RESULTS PAGE (Phase 3 v14)
   /?s=キーワード での検索結果ページ
   ============================================ */
.search-page {
  padding: var(--s-8) 0;
  min-height: 60vh;
}
.search-page-head {
  margin-bottom: var(--s-7);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--rule);
}
.search-page-head .eyebrow {
  font-family: var(--font-en-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  display: block;
  margin-bottom: var(--s-3);
}
.search-page-title {
  font-family: var(--font-jp-mincho);
  font-size: 28px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 var(--s-3);
  letter-spacing: 0.03em;
  line-height: 1.4;
}
.search-page-count {
  font-size: 13px;
  color: var(--ink-mute);
  margin: 0 0 var(--s-5);
  letter-spacing: 0.04em;
}
.search-page-form {
  display: flex;
  align-items: stretch;
  max-width: 480px;
  border: 1px solid var(--rule);
  background: var(--bg-pure);
  transition: border-color 0.2s ease;
}
.search-page-form:focus-within {
  border-color: var(--green);
}
.search-page-form input[type="search"] {
  flex: 1;
  padding: 12px 14px;
  font-size: 14px;
  font-family: var(--font-jp-gothic);
  color: var(--ink);
  background: transparent;
  border: none;
  outline: none;
}
.search-page-form button {
  width: 44px;
  background: var(--green);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.search-page-form button:hover { background: var(--green-deep); }

.search-results {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.search-result-item {
  border-bottom: 1px solid var(--rule-soft);
}
.search-result-item:first-child {
  border-top: 1px solid var(--rule-soft);
}
.search-result-item a {
  display: block;
  padding: var(--s-5) var(--s-4);
  text-decoration: none;
  color: var(--ink);
  position: relative;
  transition: background 0.18s ease, padding-left 0.18s ease;
}
.search-result-item a:hover {
  background: var(--bg-alt);
  padding-left: var(--s-5);
}
.search-result-meta {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-2);
  font-size: 11px;
  letter-spacing: 0.06em;
}
.search-result-type {
  display: inline-block;
  padding: 3px 10px;
  font-family: var(--font-en-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  border-radius: 2px;
}
.search-result-type.type-news     { color: var(--green); }
.search-result-type.type-page     { color: var(--ink-soft); }
.search-result-type.type-facility { color: #b8732e; }
.search-result-type.type-info     { color: #2d5a8c; }
.search-result-type.type-default  { color: var(--ink-mute); }
.search-result-date {
  font-family: var(--font-en-sans);
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}
.search-result-title {
  font-family: var(--font-jp-mincho);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 var(--s-2);
  letter-spacing: 0.03em;
  line-height: 1.5;
}
.search-result-excerpt {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0;
  letter-spacing: 0.02em;
}
.search-result-arr {
  position: absolute;
  top: 50%;
  right: var(--s-4);
  transform: translateY(-50%);
  font-family: var(--font-en-sans);
  font-size: 18px;
  color: var(--ink-mute);
  opacity: 0;
  transition: opacity 0.18s ease, right 0.18s ease;
}
.search-result-item a:hover .search-result-arr {
  opacity: 1;
  right: var(--s-3);
}

/* 検索結果ページ ページネーション */
.search-pagination {
  margin-top: var(--s-7);
  display: flex;
  justify-content: center;
  gap: var(--s-2);
}
.search-pagination .page-item a,
.search-pagination .page-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  font-family: var(--font-en-sans);
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
  border: 1px solid var(--rule);
  background: var(--bg-pure);
  transition: all 0.18s ease;
}
.search-pagination .page-item a:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.search-pagination .page-item .current {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.search-pagination .page-item .dots {
  border: none;
  background: transparent;
}

/* 検索結果なしの表示 */
.search-no-results {
  padding: var(--s-7) 0;
  text-align: center;
}
.search-no-results-msg {
  font-family: var(--font-jp-mincho);
  font-size: 17px;
  color: var(--ink);
  margin: 0 0 var(--s-5);
  letter-spacing: 0.03em;
  line-height: 1.6;
}
.search-no-results-tips {
  list-style: none;
  margin: 0 0 var(--s-6);
  padding: var(--s-5);
  background: var(--bg-alt);
  border: 1px solid var(--rule-soft);
  display: inline-block;
  text-align: left;
}
.search-no-results-tips li {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.9;
  padding-left: 18px;
  position: relative;
}
.search-no-results-tips li::before {
  content: "·";
  position: absolute;
  left: 6px;
  color: var(--green);
  font-weight: bold;
}
.search-no-results-back {
  margin-top: var(--s-5);
}
.search-no-results-back .btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  font-family: var(--font-jp-gothic);
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--rule);
  background: var(--bg-pure);
  letter-spacing: 0.06em;
  transition: all 0.2s ease;
}
.search-no-results-back .btn:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

@media (max-width: 768px) {
  .search-page { padding: var(--s-6) 0; }
  .search-page-title { font-size: 22px; }
  .search-result-item a { padding: var(--s-4) var(--s-3); }
  .search-result-item a:hover { padding-left: var(--s-4); }
  .search-result-title { font-size: 16px; }
  .search-result-excerpt { font-size: 12px; }
}

/* ============================================
   SCROLL EFFECTS — Phase 3 v15
   フェードイン + パララックス + ヘッダー縮小
   ============================================ */

/* --- フェードイン --- */
/* JS で .fade-in を付与、ビューポート入りで .fade-in-visible を追加 */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}
.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

/* h2 は若干強めに上から降りる */
.h2.fade-in {
  transform: translateY(28px);
}
.h2.fade-in-visible {
  transform: translateY(0);
}

/* facility-card / partner-cell は控えめ (グリッドで連動するため) */
.facility-card.fade-in,
.partner-cell.fade-in {
  transform: translateY(16px);
}

/* --- パララックス --- */
/* 親に overflow:hidden が必須 (ヒーロー・bousai-img はもともと持っている想定) */
.parallax-img {
  will-change: transform;
  transition: transform 0.05s linear; /* スクロール時の細かいガタつきを抑える */
}

/* --- ヘッダー縮小 (.scrolled 状態) --- */
/* JS側で window.scrollY > 60 のとき header に .scrolled が付く */
.site-header {
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease,
    backdrop-filter 0.3s ease;
}
.site-header .header-inner {
  transition:
    padding 0.3s ease,
    height 0.3s ease;
}
.site-header .brand-logo {
  transition: transform 0.3s ease;
  transform-origin: left center;
}

.site-header.scrolled {
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--rule-soft), 0 8px 24px rgba(0, 0, 0, 0.04);
}
.site-header.scrolled .header-inner {
  padding-top: 12px;
  padding-bottom: 12px;
}
.site-header.scrolled .brand-logo {
  transform: scale(0.86);
}

/* --- prefers-reduced-motion : 全機能を無効化 --- */
/* OS設定で「視差効果を減らす」にしている人を保護 */
@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .fade-in-visible,
  .h2.fade-in,
  .h2.fade-in-visible,
  .facility-card.fade-in,
  .partner-cell.fade-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .parallax-img {
    transform: none !important;
    transition: none !important;
  }
  .site-header,
  .site-header .header-inner,
  .site-header .brand-logo {
    transition: none !important;
  }
  .site-header.scrolled .brand-logo {
    transform: none !important;
  }
}

/* ============================================
   FAQ PAGE — Phase 3 v16 / v20 余白調整
   よくあるご質問ページ専用スタイル
   v20 (2026-04-27): セクション間の余白を全体的に詰める
     - faq-page padding 上下: 64/48 → 48/48
     - faq-page-head margin-bottom: 48 → 32 / padding-bottom: 32 → 24
     - faq-page-title-en margin-bottom: 24 → 16
     - faq-toc margin-bottom: 48 → 24 / padding 上下: 24 → 16 / label margin: 12 → 8
     - faq-section margin-bottom: 64 → 32
     - faq-section-head margin-bottom: 24 → 16
   ============================================ */

.faq-page {
  padding: var(--s-7) 0 var(--s-7);
}

/* --- ページヘッダー --- */
.faq-page-head {
  text-align: center;
  margin-bottom: var(--s-6);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--rule);
}
.faq-page-head .eyebrow {
  font-family: var(--font-en-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  display: block;
  margin-bottom: var(--s-3);
}
.faq-page-title {
  font-family: var(--font-jp-mincho);
  font-size: 32px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 var(--s-2);
  letter-spacing: 0.04em;
  line-height: 1.4;
}
.faq-page-title-en {
  font-family: var(--font-en-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-mute);
  margin-bottom: var(--s-4);
  letter-spacing: 0.02em;
}
.faq-page-lead {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.9;
  letter-spacing: 0.02em;
  max-width: 640px;
  margin: 0 auto;
}
.faq-page-lead a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.faq-page-lead a:hover { color: var(--green-deep); }

/* --- カテゴリ目次 --- */
.faq-toc {
  margin: 0 auto var(--s-5);
  max-width: 720px;
  padding: var(--s-4) var(--s-5);
  background: var(--bg-alt);
  border: 1px solid var(--rule-soft);
}
.faq-toc-label {
  display: block;
  font-family: var(--font-en-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: var(--s-2);
  text-align: center;
}
.faq-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  justify-content: center;
}
.faq-toc-list li { margin: 0; }
.faq-toc-list a {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 8px 16px;
  background: var(--bg-pure);
  border: 1px solid var(--rule);
  font-family: var(--font-jp-gothic);
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: all 0.18s ease;
}
.faq-toc-list a:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.faq-toc-name { line-height: 1.2; }
.faq-toc-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-family: var(--font-en-sans);
  font-size: 11px;
  font-weight: 500;
  transition: all 0.18s ease;
}
.faq-toc-list a:hover .faq-toc-count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* --- FAQ セクション (カテゴリ別) --- */
.faq-list-wrap {
  max-width: 800px;
  margin: 0 auto;
}
.faq-section {
  margin-bottom: var(--s-5);
  scroll-margin-top: 100px; /* アンカーリンク時のヘッダー分オフセット */
}
.faq-section:last-child { margin-bottom: 0; }

.faq-section-head {
  margin-bottom: var(--s-3);
  padding-bottom: var(--s-2);
  border-bottom: 2px solid var(--ink);
}
.faq-section-eyebrow {
  font-family: var(--font-en-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  display: block;
  margin-bottom: var(--s-2);
}
.faq-section-title {
  font-family: var(--font-jp-mincho);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  letter-spacing: 0.05em;
}

/* --- FAQ アイテム (Q&A) --- */
.faq-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.faq-item {
  border-bottom: 1px solid var(--rule-soft);
  padding: var(--s-4) 0;
}
.faq-item:first-child { padding-top: 0; }
.faq-item:last-child { border-bottom: none; }

/* 質問部分 */
.faq-q {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
  margin-bottom: var(--s-2);
}
.faq-q-mark {
  flex-shrink: 0;
  display: inline-block;
  font-family: var(--font-en-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--green);
  padding: 2px 0;
  min-width: 42px;
  border-bottom: 2px solid var(--green);
}
.faq-q-text {
  flex: 1;
  font-family: var(--font-jp-mincho);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  letter-spacing: 0.04em;
  line-height: 1.65;
}

/* 回答部分 */
.faq-a {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
  padding-left: 0;
}
.faq-a-mark {
  flex-shrink: 0;
  display: inline-block;
  font-family: var(--font-en-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  padding-top: 4px;
  min-width: 42px;
}
.faq-a-text {
  flex: 1;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.95;
  letter-spacing: 0.02em;
}
.faq-a-text p {
  margin: 0 0 var(--s-3);
}
.faq-a-text p:last-child { margin-bottom: 0; }
.faq-a-text a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.18s ease;
}
.faq-a-text a:hover { color: var(--green-deep); }
.faq-a-text ul,
.faq-a-text ol {
  margin: var(--s-3) 0;
  padding-left: var(--s-5);
}
.faq-a-text li {
  margin-bottom: var(--s-2);
  line-height: 1.85;
}
.faq-a-text strong {
  color: var(--ink);
  font-weight: 500;
}

/* --- フッター CTA --- */
.faq-footer-cta {
  max-width: 720px;
  margin: var(--s-8) auto 0;
  padding: var(--s-6) var(--s-5);
  background: var(--green-soft);
  border: 1px solid var(--green-light);
  text-align: center;
}
.faq-footer-cta-title {
  font-family: var(--font-jp-mincho);
  font-size: 18px;
  font-weight: 500;
  color: var(--green-deep);
  margin: 0 0 var(--s-3);
  letter-spacing: 0.04em;
}
.faq-footer-cta-text {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.9;
  margin: 0;
  letter-spacing: 0.02em;
}
.faq-footer-cta-text a {
  color: var(--green-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}
.faq-footer-cta-text a:hover { color: var(--green); }

/* --- 空状態 (ACF未登録) --- */
.faq-empty {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--s-7) var(--s-5);
  text-align: center;
  background: var(--bg-alt);
  border: 1px solid var(--rule-soft);
}
.faq-empty p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin: 0 0 var(--s-3);
}
.faq-empty p:last-child { margin-bottom: 0; }
.faq-empty a {
  color: var(--green);
  text-decoration: underline;
}

/* --- モバイル調整 --- */
@media (max-width: 768px) {
  .faq-page { padding: var(--s-6) 0; }
  .faq-page-title { font-size: 24px; }
  .faq-page-title-en { font-size: 12px; }
  .faq-page-lead { font-size: 13px; }

  .faq-toc { padding: var(--s-4) var(--s-3); }
  .faq-toc-list a { padding: 6px 12px; font-size: 12px; }
  .faq-toc-count { min-width: 20px; height: 20px; font-size: 10px; }

  .faq-section-title { font-size: 18px; }
  .faq-q { gap: var(--s-3); }
  .faq-a { gap: var(--s-3); }
  .faq-q-mark, .faq-a-mark { min-width: 36px; font-size: 11px; }
  .faq-q-text { font-size: 15px; }
  .faq-a-text { font-size: 13px; line-height: 1.85; }

  .faq-footer-cta { padding: var(--s-5) var(--s-4); }
  .faq-footer-cta-title { font-size: 16px; }
  .faq-footer-cta-text { font-size: 12px; }
}

/* ============================================
   v17 追加: 検索結果の FAQ タイプラベル
   ============================================ */
.search-result-type.type-faq { color: #8a4ea8; }


/* ============================================
   v24 追加: フローティングクイックナビ (FAQ / ACCESS)

   グローバルナビをスリム化し、FAQ・アクセスへの常時動線として
   右下フローティングを設置。kaminishi風の右下ノッチ意匠を継承。
   - 角丸なし、右下ノッチ(--notch-fqn:14px、モバイル12px)
   - 緑塗り+白字、ホバーで --green-deep に変化
   - 枠線は外側=緑塗り / 内側=同色 1pxインセット ::before の擬似表現
     (clip-path は素の border を綺麗に切れないため)
   - フッター手前で自動フェードアウト(JS連動、.fqn.hide-near-footer)
   - prefers-reduced-motion 対応
   - 派生サイトでは :root の --green / --green-deep 上書きで色追従
   ============================================ */

:root { --notch-fqn: 14px; }

.fqn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 40;
  transition: opacity 0.3s ease;
}
.fqn.hide-near-footer {
  opacity: 0;
  pointer-events: none;
}

.fqn-btn {
  position: relative;
  width: 64px;
  height: 64px;
  background: var(--green);
  border-radius: 0;
  text-decoration: none;
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - var(--notch-fqn)),
    calc(100% - var(--notch-fqn)) 100%,
    0 100%
  );
  transition: transform 0.25s ease;
}
.fqn-btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--green);
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - calc(var(--notch-fqn) - 1px)),
    calc(100% - calc(var(--notch-fqn) - 1px)) 100%,
    0 100%
  );
  transition: background 0.25s ease;
  z-index: 0;
}
.fqn-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #fff;
  transition: color 0.25s ease;
}
.fqn-btn:hover { transform: translateX(-3px); }
.fqn-btn:hover::before { background: var(--green-deep); }
.fqn-btn:focus-visible {
  outline: 2px solid var(--green-deep);
  outline-offset: 4px;
}

.fqn-icon {
  font-family: var(--font-en-serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}
.fqn-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  display: block;
}
.fqn-label {
  font-family: var(--font-en-sans);
  font-size: 9px;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .fqn { right: 16px; bottom: 16px; gap: 8px; }
  .fqn-btn { width: 54px; height: 54px; }
  :root { --notch-fqn: 12px; }
  .fqn-icon { font-size: 18px; }
  .fqn-icon svg { width: 18px; height: 18px; }
  .fqn-label { font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .fqn { transition: opacity 0.2s; }
  .fqn-btn,
  .fqn-btn::before,
  .fqn-inner { transition: background 0.2s, color 0.2s; }
  .fqn-btn:hover { transform: none; }
}


/* ============================================
   v27 追加: .facility-row のリンク化対応

   /access/ ページの「各施設のアクセス」セクションを
   facility-card-compact.php で動的化したのに伴い、
   <li> 内の <a class="facility-row-link"> にスタイルを当てる。
   既存の .facility-row レイアウトはそのまま流用。
   ============================================ */

.facility-row-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}
.facility-row-link:hover {
  opacity: 0.85;
}
.facility-row-link:hover .facility-img {
  transform: scale(1.02);
}
.facility-row-link .facility-img {
  transition: transform 0.5s ease;
}

/* 真駒内公園のように施設名が短い場合、ACFに <br> を入れて2行化することで揃える運用。
   万一 <br> が入っていない場合の保険として min-height で最低高を確保 */
.facility-row .facility-name {
  min-height: 2.4em;
}
