/*
Theme Name: 永興富士見こども園
Theme URI: https://eikou-fujimi.jp/
Author: 社会福祉法人 禅心福祉会
Author URI: https://www.eikou-zenshin.ed.jp/
Description: 永興富士見こども園の公式サイト用WordPressテーマ。保育理念「たくましく・やさしい・感謝のある子ども」を体現する、やさしく明るく元気な配色。お知らせ・お問い合わせフォーム・経営情報の開示・園児の活動紹介を備えています。
Version: 1.2.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eikou-fujimi
Tags: children, nursery, kindergarten, colorful, bright, blog
*/
:root {
  /* 永興富士見こども園 — 既存サイト(base.css)の配色を踏襲
     焦茶 #5A2C21 を基調に、ベージュ #D0C3AC・朱 #96372A・緑 #1B7318 を
     差し色とした、温かみのある配色 */

  /* メイン：既存サイトのナビ焦茶 #5A2C21 とその系統 */
  --color-green:       #5A2C21;  /* メイン焦茶（ナビ・ヘッダー背景／旧深緑から変更） */
  --color-green-mid:   #1B7318;  /* 見出し・帯の緑（差し色） */
  --color-green-dark:  #3E1E16;  /* 濃い焦茶（文字） */
  --color-green-line:  #6E382B;  /* 罫線の焦茶 */

  /* 差し色（既存サイトより） */
  --color-orange:      #FFAC50;  /* オレンジ（ボタン等のアクセント） */
  --color-vermilion:   #96372A;  /* 朱・赤茶（タブ等） */
  --color-vermilion2:  #943427;
  --color-brown:       #5A2C21;  /* 焦茶 */
  --color-beige:       #D0C3AC;  /* ベージュ茶（罫線・サブ文字） */
  --color-beige-light: #EFE4D8;  /* bgPage01 の亜麻色に合わせて調整 */
  --color-link:        #007597;  /* リンク水色 */

  /* コントラスト確保用（白文字で 4.5:1 以上）。カスタマイザーでは変更しない */
  --color-cta:         #C44D2C;  /* ヘッダーの「お問い合わせ」ボタン（白文字 4.72:1） */
  --color-cta-dark:    #A33E22;  /* 同ボタンのホバー（白文字 6.42:1） */
  --color-coral-dark:  var(--color-green-dark);  /* 送信ボタンのホバー #3E1E16（白文字 14.98:1） */
  --color-placeholder: #6E6258;  /* プレースホルダー（入力欄 #F5EADE の上 4.99:1・白の上 5.91:1） */
  --color-error:       #CC0000;  /* フォームのエラー文・無効枠（白の上 5.89:1・入力欄の上 4.96:1） */

  /* 直書きだった色を変数化したもの（既定値は元の色のまま。見た目は変わらない）。
     カスタマイザーで色を変えたときは functions.php の出力が上書きする */
  --color-footer:      #5A2C21;  /* フッター背景（メインカラー変更時は追従） */
  --color-btn:         #C8442C;  /* 主ボタン背景（メインカラー変更時は追従） */
  --color-btn-dark:    #A83820;  /* 主ボタンのホバー */
  --color-btn-shadow:  rgba(200,68,44,0.35);
  --color-btn-shadow-strong: rgba(200,68,44,0.45);
  --color-submit-shadow:        rgba(255,107,107,0.35);  /* 送信ボタンの影（旧配色の色味のまま） */
  --color-submit-shadow-strong: rgba(255,107,107,0.45);
  --color-wpcf7-submit-shadow:  rgba(150,55,42,0.3);     /* CF7 送信ボタンの影（アクセントカラー変更時は追従） */
  --color-footer-text: #F0E8DF;
  --color-footer-sub:  #D9C4B2;
  --color-line-soft:   rgba(160,118,90,0.28);  /* 区切り線 */
  --color-line-faint:  rgba(155,140,100,0.15);
  --color-card-border: rgba(208,195,172,0.55); /* カードの枠線 */
  --color-shadow-nav:  rgba(110,68,48,0.14);
  --color-shadow-card-soft: rgba(110,95,75,0.10);
  --color-shadow-card-hover: rgba(110,95,75,0.18);
  --color-bg-overlay:  rgba(245,234,222,0.78);  /* --color-bg の半透明（ヒーロー画像の覆い） */
  --color-text-hero:   #3A3028;
  --color-amber-text:  #8A5A20;  /* 淡いオレンジ地の上の文字 */
  --color-sun-text:    #7A4A10;
  --color-icon-blue:   #C8E6F0;  /* 特長アイコンの薄い水色 */
  --color-sand:        #EAE6D8;
  --color-cream:       #F5F1E8;
  --color-paper:       #FDFCF8;
  --color-focus-ring:  rgba(78,205,196,0.15);  /* 問い合わせフォームの入力枠（旧配色の色味のまま） */
  --color-focus-ring-main: rgba(90,44,33,0.14); /* CF7 入力欄のフォーカスの輪（メインカラー変更時は追従） */
  --color-invalid:      #E05870;
  --color-invalid-bg:   #FEF0F3;
  --color-invalid-ring: rgba(224,88,112,0.15);

  /* 役割エイリアス（テーマ内の既存変数名に既存色を割り当て） */
  --color-sun:        var(--color-orange);    /* 元気：オレンジ */
  --color-sun-light:  #FBE9CC;
  --color-sky:        var(--color-vermilion); /* アクセント：朱（旧深緑から変更） */
  --color-sky-light:  #E2CAAD;                /* 茶寄りのタン */
  --color-coral:      var(--color-brown);     /* メイン：焦茶（旧朱から変更） */
  --color-coral-light:#F5DDD8;                /* bgPage01 の赤みに寄せたソフトピーチ */
  --color-mint:       #CFE0C4;  /* 藤尾テーマと同じ mint（pillar-1 label 用）*/
  --color-mint-dark:  #166213;   /* 献立バッジの文字。--color-green-mid #1B7318 は #CFE0C4 の上で 4.30:1 のため暗くした（5.42:1） */
  --color-leaf:       var(--color-green-mid);
  --color-lavender:   #E4D0C8;   /* 亜麻色に合う温かみのあるモーブ */
  --color-white:      #FFFFFF;
  --color-white-70:   rgba(255,255,255,0.7);   /* フッターの区切り・著作権表記 */
  --color-white-20:   rgba(255,255,255,0.2);   /* フッターの区切り線 */
  --color-black:      #000;                    /* 停止ボタンのフォーカスの外側リング */
  --color-black-85:   rgba(0,0,0,0.85);        /* 停止ボタンのホバー背景 */
  --color-black-70:   rgba(0,0,0,0.7);         /* 停止ボタンの背景 */
  --color-black-20:   rgba(0,0,0,0.2);         /* バッジの影 */
  --color-black-12:   rgba(0,0,0,0.12);        /* モバイル固定バーの影 */
  --color-black-08:   rgba(0,0,0,0.08);        /* タイムラインのラベルの影 */
  --color-card:       #FFFFFF;   /* カード背景：白（bgPage01 のクリームと明確に区別） */
  --color-card-tint:  #EDE0D5;   /* カード内アクセント帯：bgPage01 の赤み寄りに */
  --color-bg:         #F5EADE;   /* bgPage01の実測平均色(#F5EADE) */
  --color-text:       #2A2420;   /* 基本文字色：亜麻色背景でも締まる深褐色 */
  --color-text-light: #4A3E36;   /* 補助文字色：背景に馴染みつつ可読 */
  --color-border:     #D0C3AC;   /* ベージュ系の罫線（視認性改善） */

  /* バッジ専用色（藤尾テーマのデザインのまま固定） */
  --color-badge-bg:   #E2CAAD;   /* 茶寄りのタン */
  --color-badge-text: #96372A;   /* 藤尾の朱 */

  --font-heading: 'Zen Maru Gothic', 'M PLUS Rounded 1c', 'Noto Sans JP', sans-serif;
  --font-body:    'Zen Maru Gothic', 'M PLUS Rounded 1c', 'Noto Sans JP', sans-serif;
  /* 丸みのあるフラットデザイン */
  --radius-sm:  12px;
  --radius-md:  20px;
  --radius-lg:  28px;
  --radius-xl:  999px;
  --shadow-soft: 0 6px 24px rgba(110,68,48,0.16);  /* 亜麻色 bg 向け赤みのある影 */
  --shadow-card: 0 3px 16px rgba(110,68,48,0.12);
  --shadow-policy-card: 0 2px 8px rgba(42, 36, 32, 0.12);  /* 入園案内の保育方針カード（768px 以下）の影 */

  /* 寸法（唯一の定義。T-0017）
     --header-height: 固定ヘッダーの高さ（.header-inner と、モバイルでナビを出す位置）
     --header-offset: ハッシュで移動したとき固定ヘッダーに隠れないよう空ける量（scroll-margin-top）。
                      main.js の HEADER_OFFSET と同じ値にそろえること（JS は CSS 変数を読まない）
     --container-narrow: 地図を置くセクションなど、本文を狭めるコンテナの最大幅（.container--narrow）
     ブレークポイント（@media の 1100px・768px など）は CSS 変数にできないためリテラルのまま。
     1100px は main.js の MOBILE_NAV_QUERY と対で、互いのコメントで指し合う
     （PC 幅の側は min-width: 1101px ではなく not all and (max-width: 1100px) と書き、端数の幅で食い違わせない） */
  --header-height:    72px;
  --header-offset:    90px;
  --container-narrow: 900px;
}

/* ===== リセット & ベース ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* スクリーンリーダー専用テキスト */
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  position: fixed;
  top: 8px; left: 8px;
  width: auto; height: auto;
  padding: 12px 20px;
  background: var(--color-white);
  color: var(--color-coral);
  border-radius: var(--radius-sm);
  z-index: 9999;
  clip: auto;
}

/* スキップリンク等でフォーカスを移しただけの領域（main.js が付与）には枠を出さない */
[data-anchor-focus]:focus { outline: none; }

html { scroll-behavior: smooth; font-size: 106.25%; } /* 全体フォント拡大の基準（16px→17px / +6.25%）。増減はこの%を変更 */

body {
  font-family: var(--font-body);
  font-size: 1rem; /* ルート基準に連動して拡大 */
  line-height: 1.8;
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image: url('assets/images/bgPage01.jpg');
  background-repeat: repeat;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===== タイポグラフィ ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }

p { margin-bottom: 1rem; }

/* ===== レイアウト ===== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
/* 本文を狭めるコンテナ（.container の後に置き、max-width を上書きする） */
.container--narrow { max-width: var(--container-narrow); }

.section {
  padding: 72px 0;
  border-bottom: 1px solid var(--color-line-soft);
}
.section:last-of-type {
  border-bottom: none;
}

/* ハッシュリンクの移動先（sticky ヘッダーに隠れない。ヘッダーの高さに余白を足した値。main.js の HEADER_OFFSET と同じ） */
.scroll-anchor { scroll-margin-top: var(--header-offset); }

/* 区切り線（hr）。線の色は --color-line-soft。余白は修飾クラスで選ぶ（mt = margin-top、mb = margin-bottom） */
.section-divider {
  border: none;
  border-top: 1px solid var(--color-line-soft);
  margin: 0;
}
.section-divider--mb-48 { margin: 0 0 48px; }
.section-divider--mt-48 { margin: 48px 0 0; }
.section-divider--mt-56 { margin: 56px 0 0; }
.section-divider--mt-64 { margin: 64px 0 0; }

/* ===== ヘッダー ===== */
.site-header {
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo .logo-image img {
  max-height: 52px;
  width: auto;
}

/* ===== ナビゲーション ===== */
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav li {
  position: relative;
}

.site-nav a {
  font-size: 0.9rem;   /* 全体拡大(106.25%)でも8項目が横並びに収まるよう個別調整 */
  font-weight: 600;
  padding: 8px 10px;
  border-radius: var(--radius-xl);
  transition: all 0.2s;
  color: var(--color-text);
}

.site-nav a:hover,
.site-nav .current-menu-item a {
  background: var(--color-sky-light);
  color: var(--color-sky);
}

/* ===== ドロップダウンメニュー ===== */
.site-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  flex-direction: column;
  gap: 0;
  min-width: 140px;
  padding-top: 8px; /* ギャップをpadding化してホバー領域を維持 */
  z-index: 300;
  white-space: nowrap;
}

/* 背景は各 li に敷く（ul の padding-top はホバー領域維持用の透明なすき間のため）。
   影は透明部分を除いた形に沿う drop-shadow で付ける */
.site-nav .sub-menu {
  filter: drop-shadow(0 8px 12px var(--color-shadow-nav));
}

.site-nav .sub-menu li {
  width: 100%;
  background: var(--color-white);
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
}

.site-nav .sub-menu li:first-child {
  border-top: 1px solid var(--color-border);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.site-nav .sub-menu li:last-child {
  border-bottom: 1px solid var(--color-border);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.site-nav .sub-menu li:only-child {
  border-radius: var(--radius-md);
}

.site-nav .sub-menu a {
  display: block;
  padding: 11px 20px;
  border-radius: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-line-faint);
  transition: background 0.15s;
}

.site-nav .sub-menu li:last-child a {
  border-bottom: none;
}

/* li の角丸で a の背景を切り取らない（overflow:hidden は 3 階層目を切るため使わない）。
   先頭・末尾の a 自身を丸め、hover の背景が li の角からはみ出さないようにする。
   半径は li の枠線（1px）の内側に合わせて 1px 小さくする */
.site-nav .sub-menu li:first-child > a {
  border-radius: calc(var(--radius-md) - 1px) calc(var(--radius-md) - 1px) 0 0;
}

.site-nav .sub-menu li:last-child > a {
  border-radius: 0 0 calc(var(--radius-md) - 1px) calc(var(--radius-md) - 1px);
}

.site-nav .sub-menu li:only-child > a {
  border-radius: calc(var(--radius-md) - 1px);
}

.site-nav .sub-menu a:hover {
  background: var(--color-sky-light);
  color: var(--color-sky);
}

/* 親 li にカーソルが乗ったとき・キーボードで中にフォーカスがあるときに表示 */
.site-nav .menu-item-has-children:hover > .sub-menu,
.site-nav .menu-item-has-children:focus-within > .sub-menu,
.site-nav .menu-item-has-children.is-open > .sub-menu {
  display: flex;
}

/* 3 階層目は親（2 階層目の項目）の右横へ出す。真下に重ねると親リンクを覆う。
   外側の .sub-menu の drop-shadow が入れ子の中身にも掛かるので、内側の影は外す */
.site-nav .sub-menu .sub-menu {
  top: 0;
  left: 100%;
  transform: none;
  padding-top: 0;
  filter: none;
}

/* 右端を越える位置にある 3 階層目は、親の左横へ出す（main.js が開くたびに測って付ける）。
   位置は決め打ちにせず、実際に画面からはみ出すときだけ反転する */
.site-nav .sub-menu .sub-menu.opens-left {
  left: auto;
  right: 100%;
}

/* PC 幅で Esc を押したとき main.js が付ける「閉じた」状態。
   上の表示の規則（詳細度 0,4,0）に勝つよう同じ詳細度で後に置く。
   main.js の !matchMedia(MOBILE_NAV_QUERY)（max-width: 1100px の外側）と同じ境界にするため、
   min-width: 1101px ではなく not all and (max-width: 1100px) と書く
   （ズームで 1100.5px のような端数の幅になっても、どちらかの条件が必ず真になる） */
@media not all and (max-width: 1100px) {
  .site-nav .menu-item-has-children.is-dismissed > .sub-menu {
    display: none;
  }
}

/* 親リンクに矢印アイコン */
.site-nav .menu-item-has-children > a::after {
  content: ' ▼';
  font-size: 0.75rem;
  color: var(--color-green);
  opacity: 1;
  font-weight: 900;
  vertical-align: middle;
  margin-left: 2px;
}

.nav-contact-btn a {
  background: var(--color-cta);
  color: var(--color-white) !important;
  padding: 10px 14px;
  border-radius: var(--radius-xl);
}

.nav-contact-btn a:hover {
  background: var(--color-cta-dark) !important;
  color: var(--color-white) !important;
}

/* 現在のページ（WordPress が current-menu-item を付ける）でも、ボタンは通常時と同じ背景にする。
   上の `.site-nav .current-menu-item a`（タン色の背景）が勝って白文字が薄くなるのを防ぐ。
   ホバー時は上の !important の規則がそのまま勝つ */
.site-nav .nav-contact-btn.current-menu-item a {
  background: var(--color-cta);
}

/* ハンバーガーメニュー */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--color-coral);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== ヒーローセクション ===== */
.hero {
  position: relative;
  padding: 35px 0 35px;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: -10px;  /* ぼかしの縁を隠すため少し外側へ拡張 */
  background: url('assets/images/hero-building.jpg') center / cover no-repeat;
  filter: blur(3px);
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-bg-overlay);  /* bgPage01 亜麻色の半透明オーバーレイ */
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  grid-template-rows: auto;
  grid-template-areas:
    "content visual";
  gap: 32px;
  align-items: start;
}
.hero-content  { grid-area: content; }
.hero-visual   { grid-area: visual; margin-top: 0; align-self: end; }

.hero-title {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 700;
  font-family: 'Kaisei Decol', serif;
  margin-bottom: 20px;
  line-height: 1.5;
  color: var(--color-green);
  position: relative;
  padding-left: 20px;
  white-space: nowrap;
}

.hero-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 6px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--color-coral), var(--color-sun), var(--color-sky));
}

.hero-desc {
  font-size: 1.05rem;
  font-family: var(--font-body);
  color: var(--color-text-hero);
  margin-bottom: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-xl);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-btn);
  color: var(--color-white);
  box-shadow: 0 4px 16px var(--color-btn-shadow);
}

.btn-primary:hover {
  background: var(--color-btn-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--color-btn-shadow-strong);
}

.btn-secondary {
  background: var(--color-white);
  color: var(--color-sky);
  border: 2px solid var(--color-sky);
}

.btn-secondary:hover {
  background: var(--color-sky-light);
  transform: translateY(-2px);
}

/* ヒーロー右側イラスト風ボックス */
.hero-visual {
  display: block;
  position: relative;
  grid-area: visual;
}

/* ===== セクションタイトル ===== */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-badge {
  display: inline-block;
  background: var(--color-badge-bg);
  color: var(--color-badge-text);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: var(--radius-xl);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-coral), var(--color-sun));
  border-radius: 2px;
}

/* ===== お知らせセクション ===== */
.news-section {
  background: transparent;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.news-card {
  background: var(--color-card);
  border: 1.5px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

/* カード全体をクリッカブルに（stretched-link） */
.news-card .news-title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* カテゴリバッジはリンク上に重ねて独立クリック可能に */
.news-card .news-category,
.news-card .news-date {
  position: relative;
  z-index: 2;
}

.news-card-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.news-card-body {
  padding: 20px 24px 24px;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.news-date {
  font-size: 0.82rem;
  color: var(--color-text-light);
}

.news-category {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: var(--radius-xl);
  background: var(--color-sun-light);
  color: var(--color-amber-text);
}

.news-category.cat-event { background: var(--color-sky-light); color: var(--color-sky); }
.news-category.cat-info  { background: var(--color-coral-light); color: var(--color-coral); }
.news-category.cat-menu  { background: var(--color-mint); color: var(--color-mint-dark); }

.news-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 8px;
}

.news-excerpt {
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-more {
  text-align: center;
  margin-top: 40px;
}

/* ===== 特徴セクション ===== */
.features-section {
  background: transparent;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s;
}

.feature-card:hover { transform: translateY(-4px); }

.feature-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.feature-card:nth-child(1) .feature-icon { background: var(--color-sun-light); }
.feature-card:nth-child(2) .feature-icon { background: var(--color-icon-blue); } /* やさしく：薄い水色 */
.feature-card:nth-child(3) .feature-icon { background: var(--color-coral-light); }
.feature-card:nth-child(4) .feature-icon { background: var(--color-mint); }

.feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-text);
}

.feature-desc {
  font-size: 0.98rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* ===== 経営情報セクション ===== */

.disclosure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.disclosure-item {
  background: var(--color-card);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.disclosure-item:hover {
  border-color: var(--color-sky);
  box-shadow: var(--shadow-card);
}

.disclosure-icon-wrap {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--color-sky-light);
}

.disclosure-info h2,
.disclosure-info h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--color-text);
}

.disclosure-info p {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-bottom: 0;
  line-height: 1.5;
}

/* ===== 問い合わせフォーム ===== */
.contact-section {
  background: transparent;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}

.contact-info h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--color-text-light);
  margin-bottom: 32px;
}

.contact-detail-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-card);
}

.contact-form-wrap {
  background: var(--color-card);
  border: 1.5px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-soft);
}

.form-row {
  margin-bottom: 20px;
}

.form-row label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text);
}

.form-required {
  display: inline-block;
  font-size: 0.75rem;
  background: var(--color-coral);
  color: var(--color-white);
  padding: 2px 8px;
  border-radius: var(--radius-xl);
  margin-left: 8px;
  vertical-align: middle;
}

.cf7-required-mark {
  color: var(--color-error);
  font-weight: 700;
  margin-left: 3px;
}

.form-optional {
  display: inline-block;
  font-size: 0.75rem;
  background: var(--color-border);
  color: var(--color-text-light);
  padding: 2px 8px;
  border-radius: var(--radius-xl);
  margin-left: 8px;
  vertical-align: middle;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-sky);
  box-shadow: 0 0 0 3px var(--color-focus-ring);
  background: var(--color-white);
}

.form-control::placeholder {
  color: var(--color-placeholder);
  opacity: 1; /* Firefox が既定でプレースホルダーを半透明にして比が下がるのを防ぐ */
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}


.form-privacy {
  font-size: 0.82rem;
  color: var(--color-text-light);
  text-align: center;
  margin: 20px 0 24px;
}

.form-privacy a {
  color: var(--color-sky);
  text-decoration: underline;
}

.form-submit-btn {
  width: 100%;
  background: var(--color-coral);
  color: var(--color-white);
  border: none;
  padding: 16px;
  border-radius: var(--radius-xl);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px var(--color-submit-shadow);
}

.form-submit-btn:hover {
  background: var(--color-coral-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--color-submit-shadow-strong);
}

/* 送信中（main.js が二重押しを防ぐために disabled にする） */
.form-submit-btn:disabled,
.form-submit-btn:disabled:hover {
  background: var(--color-coral);
  opacity: 0.7;
  cursor: progress;
  transform: none;
}

/* 送信結果の全体メッセージ（role="alert"。入力エラー・期限切れ・送信間隔・送信失敗） */
.form-alert {
  background: var(--color-coral-light);
  color: var(--color-coral);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.88rem;
  font-weight: 600;
}

/* 送信を処理中の案内（role="status"。同じ内容を送信中に重ねて送ったとき） */
.form-notice {
  background: var(--color-beige-light);
  color: var(--color-text);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.88rem;
  font-weight: 600;
}

/* 欄ごとのエラー（入力欄の aria-describedby が指す） */
.form-error {
  color: var(--color-error);
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 6px;
}

.form-control[aria-invalid="true"] {
  border-color: var(--color-error);
}

/* honeypot（人には見せない欄）。display:none だけに頼らず画面外へ出す */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* フォーム送信後メッセージ */
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success .success-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

/* ===== フッター ===== */
.site-footer {
  background: var(--color-footer);
  color: var(--color-footer-text);
  padding: 32px 0 0;
}

/* ブランド行：ロゴ＋（園名／住所）左、リンク群右 */
.footer-brand-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-white-20);
}
.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.footer-brand-name {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--color-white);
  font-family: var(--font-heading);
  line-height: 1.2;
}
.footer-brand-address {
  font-size: 0.8rem;
  color: var(--color-footer-sub);
  line-height: 1.4;
}

/* リンク群（ブランド行右側） */
.footer-links-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 2px 0;
}
.footer-links-inline a {
  font-size: 0.82rem;
  color: var(--color-footer-sub);
  padding: 2px 4px;
  transition: color 0.2s;
}
.footer-links-inline a:hover { color: var(--color-white); }
/* 「入園のご案内」で列が 4px 足りなくなり最後のリンクが折り返すため、広い画面だけ左右の余白を 1px ずつ詰める */
@media (min-width: 769px) {
  .footer-links-inline a { padding: 2px 3px; }
}
.footer-sep {
  color: var(--color-white-70);
  font-size: 0.75rem;
  padding: 0 2px;
}

/* 管理画面のメニュー（フッターナビゲーション）を割り当てたときの並び。区切りは既定リンクと同じ「｜」 */
.footer-menu-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 2px 0;
  list-style: none;
}
.footer-menu-list li + li::before {
  content: '｜';
  color: var(--color-white-70);
  font-size: 0.75rem;
  padding: 0 2px;
}

/* フッターウィジェット（管理画面「外観 → ウィジェット」の「フッターウィジェット」） */
.footer-widgets {
  padding: 16px 0;
  border-bottom: 1px solid var(--color-white-20);
  font-size: 0.85rem;
}
.footer-widgets .widget + .widget { margin-top: 16px; }
.footer-widgets .widget-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 6px;
  /* 一般の .widget-title（淡い地・左線）を、暗いフッターでは打ち消す。残すと白文字が淡い地に埋もれて読めない */
  padding: 0;
  background: none;
  border-left: 0;
  border-radius: 0;
}
.footer-widgets a { color: var(--color-footer-sub); text-decoration: underline; }
.footer-widgets a:hover { color: var(--color-white); }

.footer-bottom {
  padding: 14px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.8rem;
  color: var(--color-white-70);
}

@media (max-width: 768px) {

  .footer-brand-row { grid-template-columns: 1fr; }
  .footer-brand-logo { justify-content: center; }
  .footer-brand-text { align-items: center; text-align: center; }
  .footer-links-inline { justify-content: center; }
  .footer-menu-list { justify-content: center; }
}

/* ===== シングル投稿 ===== */
.post-header {
  position: relative;
  overflow: hidden;
  background: var(--color-paper);
  padding: 56px 0;
  text-align: center;
}
.post-header::before {
  content: '';
  position: absolute;
  inset: -12px;
  background: var(--post-header-bg, url('assets/images/title-bg.jpg')) center / cover no-repeat;
  filter: blur(5px);
  opacity: 0.35;
  z-index: 0;
}
.post-header .container {
  position: relative;
  z-index: 1;
}

.post-header-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.post-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px;
}

.post-body h2, .post-body h3 {
  margin: 2rem 0 1rem;
  padding-left: 16px;
  border-left: 4px solid var(--color-sky);
}

.post-body img {
  border-radius: var(--radius-md);
  margin: 24px 0;
}

/* 本文中のリンクは色が本文と同じ（a{color:inherit}）ため、下線で本文と区別する。
   .post-body 内のリンクを対象にし、ボタン（WP 6.1 より前の旧形式を含む）・前後ナビ・ページ送り・コメントは除く（除外リスト方式）。
   詳細度は (0,2,1)（:not() は引数のうち最も強いものだけを数える）。 */
.post-body a:not(.btn, .wp-element-button, .wp-block-button__link, .wp-block-file__button, .comments-area *, .page-links *, .post-navigation *) {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* 画像だけを包むリンクは下線を外す。:has() 非対応のブラウザでは、この除外だけが効かない。
   詳細度は (0,2,2) で、上の規則（0,2,1）に勝つ。 */
.post-body a:has(> img:only-child) {
  text-decoration: none;
}

.post-navigation {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

/* ===== お知らせ一覧 ===== */
.news-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.news-list-item {
  background: var(--color-card);
  border: 1.5px solid var(--color-card-border);
  padding: 20px 28px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: background 0.2s;
}

.news-list-item:hover { background: var(--color-bg); }

.news-list-item a {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  transition: color 0.2s;
}

.news-list-item a:hover { color: var(--color-sky); }

/* ===== ページネーション ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid var(--color-border);
  color: var(--color-text);
  transition: all 0.2s;
}

.page-numbers.current,
.news-filter .page-numbers[aria-current="page"],
.page-numbers:hover {
  background: var(--color-sky);
  border-color: var(--color-sky);
  color: var(--color-white);
}

/* ===== 経営情報ページ ===== */
.disclosure-page-section {
  background: var(--color-card);
  border: 1.5px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.disclosure-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.disclosure-table th,
.disclosure-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.disclosure-table th {
  font-weight: 700;
  background: var(--color-sand);
  color: var(--color-text-light);
  width: 34%;
}

.disclosure-table td { color: var(--color-text); }

/* ===== 入園案内: 入園の流れ ===== */

table.guide-flow-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
table.guide-flow-table th {
  width: 110px;
  background: var(--color-orange);
  color: var(--color-brown);
  font-weight: 700;
  font-size: 0.92rem;
  text-align: center;
  padding: 0.75em 0.5em;
  border-radius: 8px 0 0 8px;
}
table.guide-flow-table td {
  padding: 0.75em 1.1em;
  background: var(--color-card);
  border: 2px solid var(--color-border);
  border-left: none;
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
  vertical-align: middle;
}
.guide-flow-arrow {
  text-align: center;
  padding: 4px 0;
  color: var(--color-border);
  font-size: 1.3rem;
  line-height: 1;
}

/* ===== 入園案内: 募集要項 ===== */
.recruit-spec-card {
  background: var(--color-white);
  border: 1.5px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  box-shadow: var(--shadow-soft);
}
table.recruit-spec-table {
  width: 100%;
  border-collapse: collapse;
}
table.recruit-spec-table th,
table.recruit-spec-table td {
  padding: 0.65em 0.7em;
  border-bottom: 1px dashed var(--color-border);
  font-size: 0.9rem;
  text-align: left;
  vertical-align: top;
}
table.recruit-spec-table th {
  width: 90px;
  font-weight: 700;
  color: var(--color-brown);
  white-space: nowrap;
}
table.recruit-spec-table tr:last-child th,
table.recruit-spec-table tr:last-child td { border-bottom: none; }

@media (max-width: 768px) {
  table.guide-flow-table th { width: 80px; font-size: 0.82rem; }
  .admission-course-grid { grid-template-columns: 1fr !important; }
}
.widget { margin-bottom: 32px; }

.widget-title {
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 16px;
  background: var(--color-paper);
  border-left: 4px solid var(--color-sky);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 16px;
}

/* ===== レスポンシブ ===== */
/* 1100px は main.js の MOBILE_NAV_QUERY と同じ境界（@media は CSS 変数にできないため、互いのコメントで対応づける） */
@media (max-width: 1100px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    box-shadow: var(--shadow-soft);
    padding: 16px 24px 24px;
    z-index: 99;
  }

  .site-nav.is-open { display: block; }

  /* JS 無効時は開閉できないので、ナビを最初から展開する（印は header.php の head 内スクリプトが JS 有効時に外す）。
     固定ヘッダーが縦に伸びて本文を覆わないよう、ヘッダーは通常の流れに戻し、ナビもその中に収める */
  .no-js .site-header { position: static; }
  .no-js .header-inner { height: auto; flex-wrap: wrap; }
  .no-js .nav-toggle { display: none; }
  .no-js .site-nav {
    display: block;
    position: static;
    width: 100%;
    box-shadow: none;
    padding: 0 0 16px;
  }

  .site-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  /* 各項目を全幅の行にして破線の区切り線で仕切る */
  .site-nav > ul > li {
    width: 100%;
    border-bottom: 1px dashed var(--color-border);
  }
  .site-nav > ul > li:last-child {
    border-bottom: none;
  }

  .site-nav a { display: block; padding: 14px 10px; border-radius: 0; font-size: 1.1rem; }

  /* 子を持つ項目：矢印を右端に寄せる */
  .site-nav .menu-item-has-children > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .site-nav .menu-item-has-children > a::after {
    margin-left: auto;
  }

  /* サブメニューはモバイルでは静的に展開（インデント＋薄い区切り線） */
  .site-nav .sub-menu {
    position: static;
    transform: none;
    min-width: 0;
    width: 100%;
    padding-top: 0;
    white-space: normal;
    filter: none;
  }
  .site-nav .sub-menu li,
  .site-nav .sub-menu li:first-child,
  .site-nav .sub-menu li:last-child,
  .site-nav .sub-menu li:only-child {
    border: none;
    border-radius: 0;
    background: var(--color-sky-light);
  }
  .site-nav .sub-menu a,
  .site-nav .sub-menu li:first-child > a,
  .site-nav .sub-menu li:last-child > a,
  .site-nav .sub-menu li:only-child > a {
    padding: 12px 10px 12px 28px;
    font-size: 1rem;
    border-radius: 0;
  }

  /* お問い合わせボタンは全幅の行に */
  .site-nav .nav-contact-btn {
    border-bottom: none;
    margin-top: 14px;
  }
  .site-nav .nav-contact-btn a {
    text-align: center;
    padding: 13px;
  }

  .hero-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .hero-content  { order: 1; }
  .hero-visual   { order: 2; display: block !important; visibility: visible !important; margin-top: 0; width: 100%; align-self: stretch; }
  .hero-title { white-space: normal; font-size: clamp(1.6rem, 6vw, 2rem); }

  .contact-inner { grid-template-columns: 1fr; }
  .footer-bottom { text-align: center; }
  .site-footer { padding-bottom: 56px; } /* 下部固定バー(採用情報/お問い合わせ)に隠れないよう余白 */

  .disclosure-table th { width: 42%; }
  .section { padding: 48px 0; }
}

/* ============================================================
   園児の活動ページ用スタイル
   （参考: 永興藤尾こども園の構成）
============================================================ */

/* 導線写真カード */
.link-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.link-card {
  background: var(--color-white);
  border: 1.5px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}
.link-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}
.link-card-thumb {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.link-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.link-card:hover .link-card-thumb img { transform: scale(1.06); }
.link-card-body { padding: 16px 18px; }
.link-card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-green);
}
.link-card-body p {
  font-size: 0.92rem;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .link-cards { grid-template-columns: 1fr 1fr; }
}

/* ヒーロー・スライドショー（園のメインビジュアル） */
.hero-slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 735 / 400;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--color-bg);
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

/* ===== 年齢別タブ ===== */
.age-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.age-tab {
  padding: 10px 24px;
  border-radius: var(--radius-xl);
  border: 2px solid var(--color-border);
  background: var(--color-white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.2s;
}

.age-tab:hover { border-color: var(--color-sky); }

.age-tab.is-active {
  background: var(--color-sky);
  border-color: var(--color-sky);
  color: var(--color-white);
}

/* scroll-margin-top: URL のハッシュでパネルへ直接移動したとき固定ヘッダーに隠れない（main.js の HEADER_OFFSET と同じ値） */
.age-panel { display: none; scroll-margin-top: var(--header-offset); }
.age-panel.is-active { display: block; animation: fadeIn 0.4s ease; }

@keyframes fadeIn {

  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== タイムライン（一日の流れ） ===== */
.timeline {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  padding-left: 8px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 94px;
  top: 12px;
  bottom: 12px;
  width: 3px;
  background: linear-gradient(180deg, var(--color-sun), var(--color-sky), var(--color-coral));
  border-radius: 2px;
}

.timeline-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 28px;
  position: relative;
}

.timeline-time {
  flex-shrink: 0;
  width: 56px;
  text-align: right;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-sky);
  padding-top: 14px;
}

.timeline-dot {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-white);
  border: 3px solid var(--color-coral);
  margin-top: 16px;
  z-index: 1;
}

.timeline-content {
  flex: 1;
  background: var(--color-white);
  border: 1.5px solid var(--color-card-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-card);
}

.timeline-content h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.timeline-content p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: 0;
  line-height: 1.7;
}

/* ===== 保育の柱（活動カテゴリ） ===== */
.pillar-block { margin-bottom: 56px; }

.pillar-heading {
  text-align: center;
  margin-bottom: 28px;
}

.pillar-label {
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 800;
  padding: 6px 22px;
  border-radius: var(--radius-xl);
  margin-bottom: 12px;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 6px var(--color-black-08);
}

.pillar-1 .pillar-label { background: var(--color-mint);         color: var(--color-green-dark); }
.pillar-2 .pillar-label { background: var(--color-sun-light);     color: var(--color-sun-text); }
.pillar-3 .pillar-label { background: var(--color-coral-light);   color: var(--color-coral); }

.pillar-heading h3 {
  font-size: 1.4rem;
  font-weight: 700;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.activity-card {
  background: var(--color-card);
  border: 1.5px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s;
}

.activity-card:hover { transform: translateY(-4px); }

.activity-thumb {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: var(--color-bg);
}

.activity-thumb-photo {
  height: 160px;
  padding: 0;
  overflow: hidden;
}
.activity-thumb-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.activity-card-body {
  padding: 18px 20px;
}

.activity-card-body h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.activity-card-body p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 12px;
}

.activity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.activity-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-xl);
  background: var(--color-bg);
  color: var(--color-text-light);
}

.activity-tag-provider {
  background: var(--color-sky-light);
  color: var(--color-sky);
}

.activity-tag-target {
  background: var(--color-orange);
  color: var(--color-brown);
  font-weight: 700;
}

/* ===== 食育セクション ===== */
.shokuiku-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.shokuiku-card {
  background: var(--color-white);
  border: 1.5px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
}



.shokuiku-card .icon {
  font-size: 2.2rem;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.shokuiku-card:nth-child(1) .icon { background: var(--color-mint); }
.shokuiku-card:nth-child(2) .icon { background: var(--color-sun-light); }
.shokuiku-card:nth-child(3) .icon { background: var(--color-coral-light); }
.shokuiku-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.shokuiku-card p { font-size: 0.95rem; color: var(--color-text); line-height: 1.7; margin-bottom: 0; opacity: 0.85; }

/* レスポンシブ */
@media (max-width: 768px) {
  .timeline::before { left: 74px; }
  .timeline-item { gap: 14px; }
  .timeline-time { width: 46px; font-size: 0.8rem; }
}

/* ============================================================
   園長挨拶・入園案内・マップ用スタイル
============================================================ */

/* ===== Googleマップ埋め込み ===== */
.map-embed {
  width: 100%;
  line-height: 0;
  border: 2px solid var(--color-border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 16px var(--color-shadow-card-soft);
}
.map-embed iframe {
  display: block;
  width: 100%;
  border-radius: 0; /* 親要素のoverflow:hiddenでクリップするため不要 */
}

/* ===== 園長挨拶レイアウト ===== */
.greeting-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 48px;
}

.greeting-photo {
  text-align: center;
}

.greeting-name {
  margin-top: 14px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-text);
}

.greeting-text p {
  font-size: 1.1rem;
  line-height: 2;
  margin-bottom: 1.2rem;
}

.greeting-philosophy {
  background: var(--color-card);
  border: 1.5px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  border: 2px solid var(--color-border);
}

.greeting-philosophy h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.greeting-philosophy p {
  font-size: 1.1rem;
  line-height: 2;
  color: var(--color-text-light);
  margin-bottom: 0;
}

@media (max-width: 768px) {

  .greeting-layout { grid-template-columns: 1fr; gap: 24px; }
  .greeting-photo { max-width: 240px; margin: 0 auto; }
}

/* ============================================================
   アクセス（行き方カード。page-facility.php のアクセス節）
============================================================ */
/* アクセスの行き方カード */
.access-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.access-card {
  background: var(--color-card);
  border: 1.5px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.access-card .access-icon {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--color-sky-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}
.access-card:nth-child(2) .access-icon { background: var(--color-sun-light); }
.access-card:nth-child(3) .access-icon { background: var(--color-coral-light); }
.access-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.access-card p { font-size: 0.88rem; color: var(--color-text-light); line-height: 1.8; margin-bottom: 0; }

@media (max-width: 768px) {

  .access-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   施設紹介・保育教諭紹介
============================================================ */
.facility-block { margin-bottom: 48px; }

.facility-group-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 18px;
  padding-left: 14px;
  border-left: 5px solid var(--color-green-mid);
  color: var(--color-green-dark);
}

.facility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.facility-item {
  margin: 0;
  background: var(--color-card);
  border: 1.5px solid var(--color-card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.facility-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.facility-item figcaption {
  padding: 12px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
}

@media (max-width: 600px) {

  .facility-grid { grid-template-columns: 1fr 1fr; }
}

.effort-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.effort-card {
  background: var(--color-card);
  border: 1.5px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow-card);
}
.effort-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-green-dark);
}
.effort-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.9;
  margin-bottom: 12px;
}
.effort-card p:last-child { margin-bottom: 0; }

@media (max-width: 768px) {

  .effort-cards { grid-template-columns: 1fr; }
  .effort-card > div[style*="grid"] { grid-template-columns: 1fr !important; }
}

/* ============================================================
   汎用タブ（園長挨拶・施設紹介の切り替え等）
============================================================ */
.tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.tab-btn {
  padding: 12px 36px;
  border-radius: var(--radius-xl);
  border: 2px solid var(--color-border);
  background: var(--color-white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn:hover { border-color: var(--color-green-mid); }

/* 入園案内のタブの絵文字は装飾なので CSS の生成内容にし、代替テキストを空にして読み上げから外す。
   HTML の中に置くと、JS 無効時（タブの列が display:none）に tabpanel の名前が aria-labelledby 経由でこのボタンの全文を取り込み、絵文字ごと読まれる。
   1 行目は代替テキスト構文（2 行目）に未対応の環境での退避（その環境では絵文字は従来どおり読まれる） */
#tab-course-nursery::before { content: '🍼 '; content: '🍼 ' / ''; }
#tab-course-kinder::before { content: '🎒 '; content: '🎒 ' / ''; }

.tab-btn.is-active {
  background: var(--color-green);
  border-color: var(--color-green);
  color: var(--color-white);
}

/* scroll-margin-top: URL のハッシュでパネルへ直接移動したとき固定ヘッダーに隠れない（main.js の HEADER_OFFSET と同じ値） */
.tab-panel { display: none; scroll-margin-top: var(--header-offset); }
.tab-panel.is-active { display: block; animation: fadeIn 0.4s ease; }

/* JS 無効時はタブを切り替えられないので、全パネルを表示してタブの列を隠す
   （role=tab のまま操作できないボタンを残さない）。固定ページ側のタブの列は inline style で display を持つため !important */
.no-js .tab-panel,
.no-js .age-panel { display: block; }
.no-js .tab-panel { margin-bottom: 48px; }
.no-js [role="tablist"] { display: none !important; }

/* ============================================================
   Contact Form 7 をテーマのフォームデザインに合わせる
============================================================ */
/* 入力欄・選択欄・テキストエリア */
.contact-form-wrap .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-list-item-label):not([type="radio"]):not([type="checkbox"]) {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}

.contact-form-wrap .wpcf7-form-control::placeholder {
  color: var(--color-placeholder);
  opacity: 1; /* Firefox が既定でプレースホルダーを半透明にして比が下がるのを防ぐ */
}

.contact-form-wrap .wpcf7-form-control:not(.wpcf7-submit):focus {
  outline: none;
  border-color: var(--color-sky);
  box-shadow: 0 0 0 3px var(--color-focus-ring-main);
  background: var(--color-white);
}

.contact-form-wrap textarea.wpcf7-form-control {
  min-height: 120px;
  resize: vertical;
}

.contact-form-wrap select.wpcf7-form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23777' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* ラベル（CF7はpタグやlabelで段組みされることが多い） */
.contact-form-wrap .wpcf7-form p {
  margin-bottom: 18px;
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.9rem;
}

.contact-form-wrap .wpcf7-form label {
  display: block;
  font-weight: 600;
  color: var(--color-text);
}

/* 必須マーク */
.contact-form-wrap .wpcf7-not-valid-tip {
  color: var(--color-coral);
  font-size: 0.82rem;
  font-weight: 600;
}

/* エラー項目のハイライト */
.contact-form-wrap .wpcf7-not-valid {
  border-color: var(--color-invalid) !important;
  background-color: var(--color-invalid-bg) !important;
  box-shadow: 0 0 0 3px var(--color-invalid-ring) !important;
  outline: none;
}

/* ラジオ・チェックボックス */
.contact-form-wrap .wpcf7-list-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 16px 6px 0;
}
.contact-form-wrap input[type="radio"],
.contact-form-wrap input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-sky);
  cursor: pointer;
}

/* 送信ボタン */
.contact-form-wrap .wpcf7-submit {
  width: 100%;
  background: var(--color-coral);
  color: var(--color-white);
  border: none;
  padding: 16px;
  border-radius: var(--radius-xl);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px var(--color-wpcf7-submit-shadow);
  margin-top: 8px;
}
.contact-form-wrap .wpcf7-submit:hover {
  filter: brightness(0.94);
  transform: translateY(-2px);
}

/* 送信結果メッセージ */
.contact-form-wrap .wpcf7-response-output {
  border-radius: var(--radius-sm);
  padding: 14px 18px !important;
  margin: 16px 0 0 !important;
  font-size: 0.88rem;
  font-weight: 600;
}
.contact-form-wrap .wpcf7 form.invalid .wpcf7-response-output,
.contact-form-wrap .wpcf7 form.unaccepted .wpcf7-response-output {
  border-color: var(--color-coral);
  background: var(--color-coral-light);
  color: var(--color-coral);
}
.contact-form-wrap .wpcf7 form.sent .wpcf7-response-output {
  border-color: var(--color-green-mid);
  background: var(--color-sky-light);
  color: var(--color-green-dark);
}

/* 送信中スピナー位置 */
.contact-form-wrap .wpcf7-spinner {
  margin: 12px auto 0;
  display: block;
}

/* ============================================================
   保育の特長（年齢別ブロック）
============================================================ */
.feature-age-block {
  background: var(--color-card);
  border: 1.5px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  box-shadow: var(--shadow-card);
  margin-bottom: 22px;
}
.feature-age-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--color-border);
}
.feature-age-badge {
  flex-shrink: 0;
  background: var(--color-green);
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 20px;
  border-radius: var(--radius-xl);
}
.feature-age-head p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
}
.feature-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}
.feature-age-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}
.feature-age-body .feature-points {
  grid-template-columns: 1fr;
}
.feature-age-photo img {
  width: 100%;
  border-radius: var(--radius-md);
  display: block;
}
.feature-point h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--color-green-dark);
  margin-bottom: 6px;
  padding-left: 14px;
  position: relative;
}
.feature-point h3::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-orange);
}
.feature-point p {
  font-size: 0.96rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin: 0;
}

@media (max-width: 700px) {
  .feature-age-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .feature-points { grid-template-columns: 1fr; }
  .feature-age-body { grid-template-columns: 1fr; }
}

/* ============================================================
   年間行事カード（月別：写真＋活動内容）
============================================================ */
.event-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.event-card {
  background: var(--color-card);
  border: 1.5px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s;
}
.event-card:hover { transform: translateY(-3px); }
.event-card-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--color-bg);
}
.event-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.event-card-month {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: var(--color-green);
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 5px 16px;
  border-radius: var(--radius-xl);
  box-shadow: 0 2px 8px var(--color-black-20);
}
.event-card-body {
  padding: 16px 20px;
}
.event-card-body ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.event-card-body li {
  font-size: 1rem;
  color: var(--color-text);
  padding: 4px 0 4px 18px;
  position: relative;
}
.event-card-body li::before {
  content: '🌸';
  content: '🌸' / '';
  position: absolute;
  left: 0;
  font-size: 0.75rem;
}

@media (max-width: 900px) {
  .event-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .event-cards { grid-template-columns: 1fr; }
}

/* 食育カードの写真 */
.effort-card.has-photo {
  padding: 0;
  overflow: hidden;
}
.effort-card.has-photo .effort-card-photo {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.effort-card.has-photo .effort-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.effort-card.has-photo .effort-card-text {
  padding: 22px 26px 26px;
}
.effort-card.has-photo .effort-card-text h3 {
  margin-bottom: 12px;
}

/* 食育 献立例カード */
.menu-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.menu-card {
  margin: 0;
  background: var(--color-card);
  border: 1.5px solid var(--color-card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.menu-card-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.menu-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 700px) {
  .menu-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* フッター シルエット帯 */
.footer-silhouette {
  width: 100%;
  line-height: 0;
  overflow: hidden;
}
.footer-silhouette img {
  width: 100%;
  height: auto;
  display: block;
}

/* セクション区切り線（全セクション共通） */
.features-section,
.contact-section,
.news-section {
  border-bottom: 1px solid var(--color-line-soft);
}

/* トップページ：セクション区切り線をコンテナ幅に制限 */
body.home .section {
  border-bottom: none;
  position: relative;
}
body.home .section::after {
  content: '';
  display: block;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  border-bottom: 1px solid var(--color-line-soft);
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}
body.home .section:last-of-type::after {
  display: none;
}

/* ============================================================
   サイド固定CTA（採用情報 / お問い合わせ）
   禅心福祉会サイトの右端固定カード(.side-bar)を踏襲し、
   永興富士見こども園テーマのデザイントークンで再構築。
============================================================ */
.side-cta {
  position: fixed;
  top: 22%;
  right: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* 各カードを常に画面右端へ密着させる */
  gap: 12px;
  pointer-events: none; /* カード以外の余白部分はクリックを透過 */
}

.side-cta__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 56px;
  padding: 16px 0 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  overflow: hidden;
  pointer-events: auto; /* カードはクリック可能 */
  transition: width 0.25s ease, box-shadow 0.25s ease;
}

.side-cta__card:hover {
  width: 62px; /* 基準56px + 張り出し6px。調整時はこの値を変更 */
  box-shadow: 0 10px 28px var(--color-shadow-card-hover);
}

.side-cta__icon {
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
}

.side-cta__icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.side-cta__card--recruit .side-cta__icon { color: var(--color-orange); }
.side-cta__card--visit   .side-cta__icon { color: var(--color-green); }

.side-cta__label {
  writing-mode: vertical-rl;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  color: var(--color-green-dark);
}

.side-cta__card--recruit .side-cta__label { color: var(--color-brown); }

.side-cta__more {
  display: block;
  width: 100%;
  padding: 9px 0;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--color-white);
}

.side-cta__card--recruit .side-cta__more { background: var(--color-orange); color: var(--color-brown); }
.side-cta__card--visit   .side-cta__more { background: var(--color-green); }

/* スマホ（768px以下）：縦カードを隠し、下部固定の横並びバーに切替 */
.side-cta-sp { display: none; }

@media (max-width: 768px) {

  .side-cta { display: none; }

  .side-cta-sp {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    box-shadow: 0 -2px 12px var(--color-black-12);
  }

  .side-cta-sp a {
    flex: 1;
    padding: 10px 4px;
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    color: var(--color-white);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .side-cta-sp__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .side-cta-sp__icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
  }

  .side-cta-sp a.is-recruit { background: var(--color-orange); color: var(--color-brown); }
  .side-cta-sp a.is-visit   { background: var(--color-green); }
}

/* ============================================================
   園の概要テーブル：モバイルでは項目名と内容を縦並びにし、
   内容欄の幅をしっかり確保する（このテーブルのみに適用）
============================================================ */
@media (max-width: 768px) {
  .overview-table,
  .overview-table tbody,
  .overview-table tr,
  .overview-table th,
  .overview-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  .overview-table tr {
    border-bottom: 1px solid var(--color-border);
  }
  .overview-table tr:last-child {
    border-bottom: none;
  }
  .overview-table th,
  .overview-table td {
    border-bottom: none;
  }
  .overview-table th {
    padding-bottom: 4px;
  }
  .overview-table td {
    padding-top: 4px;
  }
}

/* モバイルでは保育理念テキスト等の改行(br)を無効化し、自然に折り返す */
@media (max-width: 768px) {
  .pc-br { display: none; }
}

/* ===== スライドショーの一時停止／再生ボタン（main.js が生成） ===== */
.hero-slide-toggle {
  position: absolute;
  left: 12px; /* 右端の固定カード（.side-cta）と重ならない側へ置く */
  bottom: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--color-white);
  border-radius: 50%;
  background: var(--color-black-70);
  color: var(--color-white);
  cursor: pointer;
}

.hero-slide-toggle:hover { background: var(--color-black-85); }

/* 写真の上でも見えるよう、白と黒の二重の輪にする */
.hero-slide-toggle:focus-visible {
  outline: 3px solid var(--color-white);
  outline-offset: 0;
  box-shadow: 0 0 0 6px var(--color-black);
}

.hero-slide-toggle svg { width: 20px; height: 20px; fill: currentColor; }

/* 一時停止中は再生の三角、再生中は一時停止の縦棒を出す */
.hero-slide-toggle .icon-play { display: none; }
.hero-slide-toggle[data-state="paused"] .icon-play { display: block; }
.hero-slide-toggle[data-state="paused"] .icon-pause { display: none; }

/* ===== 入園案内: 保育方針の枠（page-admission.php） =====
   769px 以上は枠画像（860x345）に文章を重ねる従来の見た目。
   枠の内側: x=111-750px, y=4-335px / 画像 860x345 */
.policy-card {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  aspect-ratio: 860 / 345;
  background: url('assets/images/guide/gui_want01.png') no-repeat center / contain;
}

.policy-card__text {
  position: absolute;
  top: 4%;
  bottom: 4%;
  left: 14%;
  right: 14%;
  display: flex;
  align-items: center;
  line-height: 2;
  color: var(--color-text);
  font-size: clamp(0.75rem, 1.4vw, 0.9rem);
  text-align: left;
  margin: 0;
  overflow: hidden;
}

/* 768px 以下は枠画像に頼らず、白いカードに通常の流れで全文を出す（高さは内容で決まる） */
@media (max-width: 768px) {
  .policy-card {
    aspect-ratio: auto;
    background: var(--color-card);
    padding: 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-policy-card);
  }

  .policy-card__text {
    position: static;
    display: block;
    font-size: 0.9rem;
    overflow: visible;
  }
}

/* ===== 動きを減らす設定（OS の「動きを減らす」） =====
   main.js も同じ設定を見て、自動切替・スムーズスクロール・スクロール連動フェードを止める */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tab-panel.is-active,
  .age-panel.is-active { animation: none; }
  .hero-slide { transition-duration: 0s; }
}

/* ===== 印刷 =====
   スクロール連動フェードは JS が opacity:0 を inline style で付ける。印刷では !important で打ち消し、
   まだ画面に出ていない（スクロールしていない）要素も印刷されるようにする */
@media print {
  .feature-card,
  .news-card,
  .disclosure-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ===== 検索フォームと主要ページへの導線（404・検索 0 件） ===== */
.search-guidance {
  max-width: 480px;
  margin: 0 auto 32px;
}

.search-form {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.search-form label { flex: 1; }

.search-field {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-white);
}

.search-field::placeholder { color: var(--color-text-light); opacity: 1; }

.search-field:focus-visible,
.search-submit:focus-visible {
  outline: 3px solid var(--color-green);
  outline-offset: 2px;
}

.search-submit {
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-xl);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-white);
  background: var(--color-btn);
  cursor: pointer;
}

.search-submit:hover { background: var(--color-btn-dark); }

.search-guidance-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
}

.search-guidance-links a {
  color: var(--color-green);
  text-decoration: underline;
}
