/* =========================================================
   template-04-natural「ナチュラル・絵本」 style.css
   モバイルファースト（基本＝スマホ、min-width:768px以上でPC調整）
   テーマ値は下の :root にまとめてあります。
   ========================================================= */

/* 見出し用フォント（自己ホストwoff2。CDN不使用。ライセンス: assets/fonts/OFL.txt） */
@font-face {
  font-family: "Zen Kaku Gothic New";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("../assets/fonts/ZenKakuGothicNew-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Zen Kaku Gothic New";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("../assets/fonts/ZenKakuGothicNew-Bold.woff2") format("woff2");
}

:root {
  --color-primary: #5f7a4a;        /* 【差し替え】メインカラー（モスグリーン） */
  --color-primary-dark: #47603a;   /* 【差し替え】メインカラー濃色（ホバー・フッター） */
  --color-accent: #b9755a;         /* 【差し替え】アクセントカラー（レンガ。主要CTA） */
  --color-accent-dark: #9c5f47;    /* 【差し替え】アクセント濃色（ホバー） */
  --color-sub1: #d3a24a;           /* 【差し替え】サブカラー（からし。バッジ・装飾） */
  --color-bg: #f8f4ec;             /* 【差し替え】ページ背景（生成り） */
  --color-bg-alt: #fffdf8;         /* 【差し替え】カード等の面の色 */
  --color-surface-green: #eef1e6;  /* 【差し替え】薄緑の面（帯・囲み） */
  --color-text: #3f3a33;           /* 【差し替え】本文文字色 */
  --color-text-muted: #71695f;     /* 【差し替え】補足文字色（背景とのコントラスト比4.5:1以上を確保） */
  --color-border: #e5ddcf;         /* 【差し替え】罫線・枠線 */
  --color-deco: #a9b58f;           /* 【差し替え】装飾SVGの色（淡いモスグリーン） */
  --radius: 12px;                  /* 【差し替え】角丸の基本値 */
  --radius-organic: 32px 12px 32px 12px;      /* 対角非対称の角丸（写真用・基本） */
  --radius-organic-large: 48px 16px 48px 16px; /* 対角非対称の角丸（写真用・要所で大きめ） */
  --font-body: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", Meiryo, sans-serif; /* 【差し替え】本文フォント */
  --font-heading: "Zen Kaku Gothic New", var(--font-body); /* 【差し替え】見出しフォント（自己ホスト） */
}

/* ---------- リセット・基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-text-size-adjust: 100%;
  padding-bottom: 72px; /* スマホ下部固定バーの分 */
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary-dark); } /* primaryは背景とのコントラスト比が4.5:1未満のためprimary-darkを使用 */
a:hover { color: var(--color-accent-dark); }
ul, ol { padding-left: 1.4em; }
table { border-collapse: collapse; width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: var(--color-primary-dark);
}

/* 装飾SVG共通（body.no-decoで一括非表示） */
.deco { color: var(--color-deco); flex: none; }
body.no-deco .deco { display: none; }
/* 情報を持つ小アイコン（季節アイコン等）。deco化しない＝親の文字色を継承する */
.icon-inline { flex: none; }

/* ---------- スキップリンク ---------- */
.skip-link {
  position: absolute;
  top: -48px;
  left: 8px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--color-primary-dark);
  color: #fff;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top 0.2s;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- レイアウト共通 ---------- */
.container {
  width: min(100% - 32px, 1040px);
  margin-inline: auto;
}

.section { padding: 48px 0; }
.section-alt { background: var(--color-surface-green); }

/* 見出し（葉っぱモチーフ付き）：他案にあわせてイラスト＋文字の塊をh2中央に寄せる（display:flexのためtext-alignではなくjustify-contentで中央寄せ） */
main .section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.4rem;
  margin: 0 0 8px;
  text-align: center;
}
/* 見出し英字サブラベル（案Aと同じクラス名・構造。中央揃えの見出しの下に添える控えめな英字） */
.section-title-en {
  display: block;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  opacity: 0.6;
  margin: 2px 0 20px;
}
.section-lead {
  margin: 0 0 28px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ページ下層のタイトル帯（下端が白背景の場合はwave-bottomを敷く。全ページ共通で該当） */
.page-header {
  position: relative;
  background: var(--color-surface-green);
  padding: 36px 0 28px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--color-border);
}
.page-header h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.6rem;
  margin: 0;
}
.page-header p {
  margin: 8px 0 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* 手描き風のゆらぎ細線（白背景の中の単なる区切り線として使用） */
.hand-rule-divider { display: block; width: 100%; height: 20px; }
.hand-rule-divider svg { display: block; width: 100%; height: 100%; }

/* 波形のセクション区切り（背景色が変わる境界に付与） */
.section--wave-top { position: relative; margin-top: 44px; }
.section--wave-bottom { position: relative; margin-bottom: 44px; }
.deco-wave-top { position: absolute; bottom: 100%; left: 0; display: block; width: 100%; height: 44px; color: var(--color-surface-green); }
.deco-wave-bottom { position: absolute; top: 100%; left: 0; display: block; width: 100%; height: 44px; color: var(--color-surface-green); }

/* 見出し横イラスト：文字の左に並べる（高さは見出し文字の約1.2倍） */
.title-hook-wrap { display: inline-flex; align-items: center; gap: 0.4em; }
.section-title .cutout-hook,
.page-header h1 .cutout-hook {
  height: 1.2em;
  width: auto;
  margin: 0;
  flex-shrink: 0;
}

/* ---------- ボタン（角丸12px＋1.5px枠のアウトライン基調） ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary {
  background: transparent;
  color: var(--color-primary-dark); /* 文字はprimary-darkでコントラスト比4.5:1以上を確保 */
  border-color: var(--color-primary);
}
.btn-primary:hover { background: var(--color-primary); color: #fff; }
/* 主要CTAはaccent-darkを基本色にして白文字とのコントラスト比4.5:1以上を確保。ホバーはさらに暗くする */
.btn-accent { background: var(--color-accent-dark); color: #fff; border-color: var(--color-accent-dark); }
.btn-accent:hover { filter: brightness(0.88); }
.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-outline:hover { background: var(--color-bg-alt); border-color: var(--color-primary); color: var(--color-primary-dark); }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  max-width: 1120px;
  margin-inline: auto;
}
/* 手描き風の下端ライン（インラインSVG。body.no-decoで非表示） */
.hand-rule-header { display: block; width: 100%; height: 8px; }
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--color-primary-dark);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  min-height: 44px;
}
.brand .deco { color: var(--color-primary); }

/* ハンバーガーボタン（JS有効時のみ表示） */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 56px;
  min-height: 48px;
  padding: 6px 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-primary-dark);
}
.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--color-primary-dark);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle-label { font-size: 0.65rem; font-weight: 700; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* グローバルナビ：JS無効時は常に表示（縦並び）。JS有効時のみ開閉式 */
.global-nav ul {
  list-style: none;
  margin: 0;
  padding: 8px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.global-nav a {
  display: block;
  padding: 11px 8px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-primary-dark);
  border-bottom: 1px dashed var(--color-border);
}
.global-nav a[aria-current="page"] { color: var(--color-accent-dark); }
.global-nav .nav-cta { margin-top: 12px; }
.global-nav .nav-cta a {
  border-bottom: none;
  border: 1.5px solid var(--color-accent-dark);
  background: var(--color-accent-dark);
  color: #fff;
  border-radius: var(--radius);
  text-align: center;
  padding: 12px 20px;
}
.global-nav .nav-cta a:hover { filter: brightness(0.88); }

/* 言語切り替え（【試験導入】現在トップページのみ） */
.lang-switch {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--color-border);
}
.lang-switch-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}
.lang-select {
  min-height: 44px;
  padding: 6px 10px;
  font: inherit;
  font-size: 0.95rem;
  color: inherit;
  background: var(--color-bg-alt);
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
}

.js .nav-toggle { display: flex; }
.js .global-nav { display: none; }
.js .global-nav.is-open { display: block; }

/* ---------- スマホ下部固定バー ---------- */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  gap: 1px;
  background: var(--color-border);
  border-top: 1px solid var(--color-border);
}
.mobile-cta a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 56px;
  padding: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}
.mobile-cta-tel { background: var(--color-primary); color: #fff; }
.mobile-cta-tel:hover { background: var(--color-primary-dark); color: #fff; }
.mobile-cta-visit { background: var(--color-accent-dark); color: #fff; }
.mobile-cta-visit:hover { filter: brightness(0.88); }

/* ---------- メインビジュアル（生成り地・非対称角丸・余白多め） ---------- */
.hero { position: relative; background: var(--color-bg); padding: 32px 0 8px; }
.hero-inner {
  display: grid;
  gap: 24px;
}
.hero-photo img {
  width: 100%;
  border-radius: var(--radius-organic-large);
}
.hero-copy { padding: 8px 4px 32px; }
.hero-copy .deco-tree { margin-bottom: 10px; }
.hero-copy .catch {
  margin: 0 0 14px;
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: var(--color-primary-dark);
}
.hero-copy p { margin: 0 0 20px; }

/* ---------- お知らせ ---------- */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { border-bottom: 1px dashed var(--color-border); }
.news-list a {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding: 14px 4px;
  text-decoration: none;
  color: var(--color-text);
}
.news-list a:hover .news-title { text-decoration: underline; }
.news-date {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-feature-settings: "tnum";
}
.news-cat {
  display: inline-block;
  min-width: 68px;
  padding: 1px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  border: 1.5px solid currentColor;
}
.news-cat-info { color: var(--color-primary-dark); }
.news-cat-event { color: var(--color-accent-dark); }
.news-cat-recruit { color: #8a6a2f; }
.news-cat-letter { color: #4f6a86; }
.news-title { flex: 1 1 100%; font-weight: 700; }
.news-more { margin-top: 20px; text-align: center; }
/* 静的なお知らせ行（詳細ページなし・リンクなし） */
.news-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding: 14px 4px;
  color: var(--color-text);
}

/* ---------- カード ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.card {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  overflow: hidden;
}
.card > a {
  display: block;
  height: 100%;
  padding: 18px 14px;
  text-decoration: none;
  color: var(--color-text);
}
.card h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--color-primary-dark); }
.card p { margin: 0; font-size: 0.88rem; color: var(--color-text-muted); }
.card > a:hover h3 { color: var(--color-accent-dark); }
.card img { border-radius: var(--radius); margin-bottom: 10px; }

/* 特徴3つ（見出し脇に葉の装飾） */
.feature-grid { display: grid; gap: 28px; }
.feature img {
  border-radius: var(--radius-organic);
  border: 4px solid var(--color-bg-alt);
}
.feature h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 8px;
  font-size: 1.15rem;
}
.feature p { margin: 0; }

/* 写真＋文章の2段組（給食紹介など） */
.media-block { display: grid; gap: 20px; align-items: center; }
.media-block img { border-radius: var(--radius-organic); }
.media-block h3 { margin: 0 0 10px; font-size: 1.2rem; }
.media-block .btn { margin-top: 16px; }

/* 葉っぱ型の写真（メイン写真用）。.media-block img 等より詳細度を上げて確実に上書きする */
img.img-leaf { border-radius: 50% 14px 50% 14px; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- 表 ---------- */
.data-table th, .data-table td {
  border: 1px solid var(--color-border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  font-size: 0.95rem;
}
.data-table th {
  background: var(--color-surface-green);
  color: var(--color-primary-dark);
  white-space: nowrap;
  font-weight: 700;
}
.data-table caption {
  text-align: left;
  font-weight: 700;
  padding-bottom: 8px;
  color: var(--color-primary-dark);
}

/* 園の一日：時系列表 */
.day-block {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 16px;
}
.day-block h3 {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--color-border);
  font-size: 1.15rem;
}
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 4.4em 1fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--color-border);
}
.timeline li:last-child { border-bottom: none; }
.timeline .time {
  font-weight: 700;
  color: var(--color-primary);
  font-feature-settings: "tnum";
}

/* ---------- 季節の行事 ---------- */
.season-grid { display: grid; gap: 20px; }
.season {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  padding: 20px 18px;
}
.season h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 1.15rem;
}
.season-spring h3 { color: #a04f6a; }
.season-summer h3 { color: #33698f; }
.season-autumn h3 { color: var(--color-accent-dark); }
.season-winter h3 { color: #4f6a86; }
.season ul { margin: 0; }
.season li { padding: 2px 0; }
.season .month { font-weight: 700; }

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.faq-item summary {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  min-height: 44px;
  color: var(--color-primary-dark);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "Q";
  flex: none;
  font-size: 1.1rem;
  color: var(--color-accent-dark);
}
.faq-item summary::after {
  content: "＋";
  margin-left: auto;
  color: var(--color-primary);
  font-weight: 700;
}
.faq-item[open] summary::after { content: "－"; }
.faq-answer {
  display: flex;
  gap: 10px;
  padding: 0 16px 16px;
  border-top: 1px dashed var(--color-border);
}
.faq-answer::before {
  content: "A";
  flex: none;
  font-weight: 700;
  color: var(--color-primary);
  padding-top: 12px;
}
.faq-answer p { margin: 12px 0 0; }

/* ---------- お知らせ詳細 ---------- */
.article { max-width: 720px; }
.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.article h1 { font-size: 1.5rem; margin: 0 0 20px; }
.article-body h2 {
  font-size: 1.15rem;
  margin: 28px 0 10px;
  padding-left: 10px;
  border-left: 4px solid var(--color-primary);
}
.article-body img { border-radius: var(--radius-organic); margin: 16px 0; }
.article-back { margin-top: 32px; }

/* ---------- ギャラリー ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.gallery-grid figure { margin: 0; }
.gallery-grid img { border-radius: var(--radius); }
.gallery-grid figure:nth-child(3n+1) img { border-radius: var(--radius-organic); }
.gallery-grid figcaption {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding-top: 4px;
}

/* ---------- フォーム ---------- */
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-primary-dark);
}
.required-label {
  display: inline-block;
  margin-left: 8px;
  padding: 0 8px;
  border-radius: 4px;
  background: var(--color-accent-dark);
  color: #fff;
  font-size: 0.75rem;
  vertical-align: 2px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  font: inherit;
  color: inherit;
  background: var(--color-bg-alt);
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
}
.form-field textarea { min-height: 160px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}
.form-note { font-size: 0.88rem; color: var(--color-text-muted); }
.form-submit { margin-top: 8px; }
.form-submit .btn { width: 100%; }

/* ---------- 汎用パーツ ---------- */
.map-placeholder {
  display: grid;
  place-items: center;
  min-height: 240px;
  background: var(--color-surface-green);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text-muted);
  text-align: center;
  padding: 20px;
}
.note-box {
  background: var(--color-surface-green);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 20px 0;
}
.note-box h3 { margin: 0 0 8px; font-size: 1rem; }
.note-box p { margin: 0; font-size: 0.95rem; }
.step-list { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.step-list li {
  counter-increment: step;
  position: relative;
  padding: 0 0 20px 56px;
}
.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.1rem;
}
.step-list h3 { margin: 0 0 4px; font-size: 1.05rem; padding-top: 6px; }
.step-list p { margin: 0; font-size: 0.95rem; }
.tel-large {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.text-center { text-align: center; }

/* ---------- フッター ---------- */
.site-footer {
  background: var(--color-primary-dark);
  color: #f2f0e6;
  padding: 40px 0 24px;
  margin-top: 48px;
}
.site-footer a { color: #f2f0e6; }
.site-footer .deco { color: rgba(242, 240, 230, 0.75); }
.footer-inner { display: grid; gap: 28px; }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 10px;
}
.footer-about p { margin: 4px 0; font-size: 0.92rem; }
.footer-sns { display: flex; gap: 12px; margin-top: 12px; }
.footer-sns a { font-size: 0.9rem; }
.footer-nav h2 { color: #f2f0e6; font-size: 0.95rem; margin: 0 0 8px; }
.footer-nav ul {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  columns: 2;
  gap: 24px;
}
.footer-nav li { padding: 4px 0; break-inside: avoid; }
.footer-nav a { text-decoration: none; font-size: 0.92rem; }
.footer-nav a:hover { text-decoration: underline; }
.copyright {
  margin: 28px 0 0;
  padding-top: 16px;
  border-top: 1px dashed rgba(242, 240, 230, 0.35);
  font-size: 0.82rem;
  text-align: center;
  color: #d8d5c6;
}

/* ---------- スクロール出現（案4は控えめ・付与要素少なめ） ---------- */
html.js .fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease-out, transform 0.35s ease-out;
}
html.js .fade-in.is-shown { opacity: 1; transform: none; }

/* ---------- PC（768px以上） ---------- */
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .mobile-cta { display: none; }

  .section { padding: 72px 0; }
  .section-title { font-size: 1.7rem; }
  .page-header h1 { font-size: 1.9rem; }

  /* ナビを横並び常時表示に */
  .js .nav-toggle { display: none; }
  .js .global-nav,
  .global-nav { display: flex; align-items: center; gap: 16px; }
  .header-inner { flex-wrap: wrap; }
  .global-nav { margin-left: auto; }
  .global-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 0;
  }
  .global-nav a {
    border-bottom: none;
    padding: 10px 10px;
    font-size: 0.95rem;
  }
  .global-nav .nav-cta { margin: 0 0 0 8px; }
  .global-nav .nav-cta a { padding: 10px 20px; }
  .lang-switch { margin-top: 0; padding-top: 0; border-top: none; }

  .hero-inner { grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 48px; }
  .hero-copy { padding: 8px 0; }
  .hero-copy .catch { font-size: 2.5rem; }

  .news-list a { flex-wrap: nowrap; }
  .news-title { flex: 1 1 auto; }

  .card-grid { grid-template-columns: repeat(4, 1fr); }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .media-block { grid-template-columns: 1fr 1fr; gap: 40px; }
  .media-block.media-reverse img,
  .media-block.media-reverse .photo-tabs { order: 2; }
  .season-grid { grid-template-columns: 1fr 1fr; }
  .day-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .form-submit .btn { width: auto; min-width: 280px; }
  .footer-inner { grid-template-columns: 1fr 1.4fr; }
  .footer-nav ul { columns: 3; }
}

/* ---------- 関連サイト（園A⇔園B⇔法人 相互リンク） ---------- */
.footer-sites { list-style: none; margin: 0 0 18px; padding: 0; }
.footer-sites li { padding: 4px 0; }
.footer-sites a { text-decoration: none; font-size: 0.92rem; }
.footer-sites a:hover { text-decoration: underline; }

/* ---------- 切り抜きモチーフ（白モチーフ・案B。白のため濃色背景にのみ配置） ---------- */
.cutout { pointer-events: none; }
/* overflow: visible にして、フッター上端の波形装飾（.deco-wave-top）を境界の外側にはみ出させる */
.site-footer { position: relative; overflow: visible; }
/* フッター上端の波（フッター背景色に合わせる。他のwave-topは帯側の色＝surface-green） */
.site-footer .deco-wave-top { color: var(--color-primary-dark); }
.cutout-footer-bird {
  position: absolute;
  top: 20px;
  right: 18px;
  width: 64px;
  height: auto;
  opacity: 0.55;
}
.cutout-footer-berry {
  position: absolute;
  bottom: 12px;
  left: 12px;
  width: 56px;
  height: auto;
  opacity: 0.4;
}
body.no-deco .cutout { display: none; }

/* ---------- お問い合わせ 3フォーム切り替え ---------- */
.form-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 28px;
}
.form-switch a {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  padding: 12px 14px;
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius);
  background: var(--color-bg-alt);
  color: var(--color-primary-dark);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}
.form-switch a:hover { background: var(--color-surface-green); }
.contact-block { scroll-margin-top: 80px; }
.contact-block + .contact-block { margin-top: 8px; }

/* ---------- 法人トップ 施設カード ---------- */
.facility-grid { display: grid; gap: 20px; }
.facility-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.facility-card > a {
  display: block;
  padding: 22px 20px;
  text-decoration: none;
  color: var(--color-text);
  height: 100%;
}
.facility-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: var(--color-primary-dark);
}
.facility-card p { margin: 0; font-size: 0.95rem; color: var(--color-text-muted); }
.facility-card > a:hover h3 { color: var(--color-accent-dark); }

@media (min-width: 768px) {
  .facility-grid { grid-template-columns: 1fr 1fr; }
  .form-switch a { flex: 1 1 0; }
}

/* ---------- 写真タブ切り替え（園の生活・年間行事） ---------- */
.photo-tabs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}
.photo-tab {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg-alt);
  color: var(--color-text);
  font-family: inherit;
  font-size: 1rem;
  padding: 8px 16px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.photo-tab:hover { background: var(--color-bg-alt); border-color: var(--color-primary); color: var(--color-primary-dark); }
.photo-tab:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 1px; }
.photo-tab[aria-selected="true"] {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  font-weight: 700;
}

/* ---------- アニメーション控えめ・reduced-motion 対応 ---------- */
@media (prefers-reduced-motion: reduce) {
  html.js .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
