/* =========================================================
   いろは幼稚園 前の版（_web-2026）のデザイン
   顧客の版（style.css）の後に読み込み、見た目だけを前の版に合わせる。
   HTML の中身（文章・メニュー項目・ページの構成）は変えない。
   フッターとスマホの画面下のバーは、顧客の版のまま。
   ========================================================= */

/* ---------- 色・文字・寸法 ---------- */
.theme-forest {
  --paper: #e9dfcf;      /* メインビジュアルの台紙 */
  --sand: #d8cbb5;       /* 線・控えめな面 */
  --sage-deep: #4f6b4c;  /* 小さい文字に使う濃いセージ */
  --sage-soft: #dfe5d6;
  --sage-light: #b5c7ae;
  --cta-shadow: transparent;  /* ボタンに影は付けない */
  --focus: #2f4a3a;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic UI", sans-serif;
  --font-sans: var(--font-body);
  --font-round: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", var(--font-body);
  --max-width: 1120px;
  --section-y: clamp(72px, 9vw, 128px);
  --r-md: 14px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 84px;
  /* トップページの帯の飾りの画像（同じ画像を何か所かで使うので、ここに1つだけ書く） */
  /* 波の形：アイボリー（#f7f3ec）とベージュ（#eee6d9） */
  --wave-ivory: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'%3E%3Cpath fill='%23f7f3ec' d='M0 30C160 6 330 4 520 22s380 34 560 18 260-30 360-26v42H0Z'/%3E%3C/svg%3E");
  --wave-beige: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'%3E%3Cpath fill='%23eee6d9' d='M0 30C160 6 330 4 520 22s380 34 560 18 260-30 360-26v42H0Z'/%3E%3C/svg%3E");
  /* 紙の質感（細かいざらつき） */
  --paper-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .25 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (width < 920px) {
  .theme-forest { --header-h: 64px; }
}
/* フッターは顧客の版のまま（文字・角の丸み・幅を元に戻す）。スマホの画面下のバーは下の「画面下のバー」で整える */
.theme-forest .site-footer {
  --font-sans: -apple-system, "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", "Noto Sans CJK JP", sans-serif;
  --font-round: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", ui-rounded, var(--font-sans);
  --max-width: 1200px;
  --r-md: 18px;
  --cta-shadow: #2f4a3a38;
  font-family: var(--font-sans);
  letter-spacing: normal;
}

/* フッターの波と本体の境目に、スマホでアイボリーの細い線が出るのを防ぐ（本体を 1px 上に重ねる） */
.site-footer__body { margin-top: -1px; }

/* ---------- 基本 ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h, 84px) + 16px); }
body:lang(ja) { letter-spacing: .04em; }
/* キーボードで選んだときの枠。角の丸みは書かない（書くと丸いボタンやタブの形が変わってしまう） */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
h1, h2, h3 { line-height: 1.5; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { font-feature-settings: normal; letter-spacing: .06em; }
/* 大きな見出しは字間を詰める（丸ゴシックは平仮名の左右に余白が多く、.06em だと間延びして見えるため） */
:lang(ja) h2 { letter-spacing: .02em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.125rem); }
.note { font-size: .8125rem; }

/* セクションの区切りの波は顧客の版のまま（帯の色も顧客の版に合わせてある） */

/* ---------- ボタン・リンク ---------- */
main .btn, .top-hero .btn {
  min-height: 52px; padding: .7em 1.8em; gap: .6em;
  border-width: 1px; letter-spacing: .08em;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
main .btn::after, .top-hero .btn::after {
  content: "→"; font-family: var(--font-body); font-weight: 400;
  transition: transform .3s var(--ease);
}
main .btn:hover::after, .top-hero .btn:hover::after { transform: translateX(3px); }
.theme-forest main .btn:not(.btn--primary) { background: transparent; }
.theme-forest main .btn:not(.btn--primary):hover { background: rgb(47 74 58 / .08); border-color: var(--cta); color: var(--cta); }

/* 「〜をくわしく」などのリンク：文字の下に線＋最後の言葉のすぐ後ろに矢印。
   英語のように2行に折り返しても、線は各行の文字の下にだけ引かれ、矢印だけが離れたり次の行に落ちたりしない */
.more > a:not(.btn) {
  font-family: var(--font-round); font-weight: 700; color: var(--cta);
  text-decoration: underline 1px var(--sand); text-underline-offset: 7px;
  transition: text-decoration-color .3s var(--ease);
}
.more > a:not(.btn)::after {
  content: "\00a0→"; /* 改行しない空白で、矢印を最後の言葉につなげる */
  word-spacing: .15em; font-family: var(--font-body); font-weight: 400;
  transition: word-spacing .3s var(--ease);
}
.more > a:not(.btn):hover { text-decoration-color: var(--cta); color: var(--cta); }
.more > a:not(.btn):hover::after { word-spacing: .45em; }
.more { margin-top: clamp(32px, 4vw, 48px); max-width: none; line-height: 2.1; text-wrap: balance; } /* 英語の段落の最大幅（40em）を外し、中央寄せが帯の中央になるように。2行になるときは行の長さをそろえる */
@media (width < 900px) {
  .more { text-align: center; } /* スマホでは「〜をくわしく →」のリンクをすべて中央寄せ */
}

/* ---------- 写真 ---------- */
.figure img, .day-split__photo img, .play-map__places img, .route-steps img, .enrich__photo img { border-radius: var(--r-md); }
/* 園バスのページ「対象エリアの地図」：PC では地図（左）とエリアの一覧（右）を並べ、
   一覧にマウスを乗せたとき、強調された地区がすぐ横の地図で見えるようにする。スマホは縦に並べ、間に余白を取る */
section:has(> .bus-map) > .bus-areas { margin-top: 32px; }
section:has(> .bus-map) > .more { margin-top: 24px; } /* 「アレンジ可能…ご連絡ください。」のすぐ下に「範囲か聞く」のボタン */
@media (width >= 900px) {
  section:has(> .bus-map) {
    display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    grid-template-rows: auto auto auto auto 1fr; /* 右の列は上から詰めて並べ、余りは最後の行に */
    column-gap: clamp(32px, 4vw, 56px); align-items: start;
  }
  section:has(> .bus-map) > * { grid-column: 2; }
  section:has(> .bus-map) > h2 { grid-column: 1 / -1; }
  section:has(> .bus-map) > .bus-map { grid-column: 1; grid-row: 2 / span 4; }
  section:has(> .bus-map) > .note { margin-top: 12px; }
  section:has(> .bus-map) > .bus-areas { margin-top: 0; }
  section:has(> .bus-map) > .bus-areas ul { grid-template-columns: 1fr; }
}

/* 地図（img/map.webp）：写真の右端に幅7pxの白い帯がある（横581pxのうち574pxまでが地図）。
   写真は保存し直さず、表示を 581/574 倍に広げて白い帯を枠の外に出し、はみ出しを隠す。
   印（.play-map__pin）の left は、この広げた分に合わせて HTML で 581/574 倍にしてある。
   地図の写真を差し替えるときは、この倍率と印の left を元に戻すこと */
.play-map__frame { overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-md); }
.play-map__frame > img { width: calc(100% * 581 / 574); max-width: none; border: 0; border-radius: 0; }

/* 先生と学び：帯の直下の1枚だけの写真（5枚）は、PC で横幅を 1008px にそろえる。
   顧客の版は「高さ最大 720px」のため、横長の写真の比率の違いで横幅がばらばらになっていた。高さの上限はそのまま残す */
main:has(.teacher-photos) > section > .figure > img { width: 100%; max-width: 1008px; }
/* ほかのページの1枚だけの写真は、同じページに並べて比べる大きな写真がないので、顧客の版のまま（そろえない） */

/* 1枚だけの大きな写真（外遊びの室内プレイエリア）は、ほかのページと同じく中央に置く */
.figure--left > img { margin-inline: auto; }
/* 園バスのページの「バスの様子」の2枚は、PC でも横幅いっぱいに広げる（右半分が空かないように） */
main:has(.bus-map) .photo-grid--two:not(.photo-grid--three-pc) { max-width: none; }
/* スマホ：顧客の版では一部の写真の並び（photos-max）を画面の左右いっぱいに広げていたが、
   ほかのページと同じく左右に余白を取り、角を丸めた写真にそろえる。すき間もほかの写真の並びと同じ 12px */
@media (width <= 599px) {
  .photos-max { --photo-gap: var(--s3); }
  .photos-max, .photos-max.play-map__places { margin-inline: 0; }
  .photos-max img, .photos-max.play-map__places img { border-radius: var(--r-md); }
  .photos-max figcaption, .photos-max .play-map__name { padding-inline: 0; }
}

/* =========================================================
   ヘッダー（メニューの項目と、幅ごとに見える項目は顧客の版のまま）
   ・アイボリーの地に、丸ゴシック太字のメニュー。いつも画面の上に見えている
   ・MENU は右上から下がる深緑のタブ
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 80;
  height: var(--header-h);
  background: var(--white); /* 半透明にするとロゴの白地が浮くので不透明 */
  border-bottom: 0;
  transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 6px 20px rgb(var(--shadow-rgb) / .05); }
.site-header__inner {
  height: 100%; max-width: none; margin: 0;
  gap: 28px;
  padding: 0 calc(var(--header-h) + 24px) 0 clamp(16px, 3vw, 48px);
}
.site-header__logo { min-height: 0; }
.site-header__logo img { width: auto; height: clamp(44px, 4.4vw, 56px); mix-blend-mode: multiply; }

/* 主なメニュー：下線がのびる。今いるページは下線を出したまま */
.header-nav ul { gap: clamp(16px, 1.7vw, 32px); }
.header-nav a {
  position: relative; min-height: 0; padding: 6px 0; border-radius: 0;
  font-family: var(--font-round); font-weight: 700; font-size: .9375rem; letter-spacing: .08em;
}
.header-nav a::after {
  content: ""; position: absolute; left: 50%; bottom: -2px; width: 0; height: 1px; background: var(--cta);
  transition: width .3s var(--ease), left .3s var(--ease);
}
.header-nav a:hover, .header-nav a[aria-current=page] { background: none; color: var(--cta); }
.header-nav a:hover::after, .header-nav a[aria-current=page]::after { width: 100%; left: 0; }

/* 見学を予約：マウスを乗せると明るい緑に（濃い緑どうしの差では見分けられないため） */
.header-tour { min-height: 40px; padding: 6px 20px; font-size: .875rem; letter-spacing: .08em; transition: background-color .3s, border-color .3s; }
.header-tour:hover { background: var(--green); border-color: var(--green); color: var(--cream); }

/* 言語の切り替え */
.lang-switch {
  flex-shrink: 0; min-width: 0; min-height: 0; padding: 2px 10px;
  border: 1.5px solid var(--sand); border-radius: 999px;
  font-family: var(--font-round); font-size: .75rem; letter-spacing: .1em; color: var(--ink-soft); text-decoration: none;
  transition: color .3s, border-color .3s;
}
.lang-switch:hover { color: var(--cta); border-color: var(--cta); }

/* MENU：右上から下がる深緑のタブ */
.menu { position: static; }
.menu summary.menu__summary--label {
  position: absolute; top: 0; right: 0; z-index: 2;
  width: var(--header-h); height: var(--header-h); padding: 0;
  gap: 8px; border-radius: 0 0 0 28px;
  background: var(--cta); color: var(--cream);
  transition: background-color .3s var(--ease);
}
.menu summary.menu__summary--label:hover { background: var(--green); }
.menu__label { color: inherit; letter-spacing: .2em; }
.menu__icon, .menu[open] .menu__icon { width: 30px; height: 8px; background: none; }
.menu__icon::before, .menu__icon::after {
  width: 100%; height: 1.5px; background: currentColor;
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.menu__icon::before { top: 0; }
.menu__icon::after { top: 100%; }
.menu[open] .menu__icon::before { top: 50%; transform: rotate(18deg); }
.menu[open] .menu__icon::after { top: 50%; transform: rotate(-18deg); }

/* MENU を開いたとき：画面いっぱいのメニュー（ヘッダーの帯は上に残す） */
.menu__panel {
  position: fixed; inset: 0; z-index: -1;
  width: auto; padding: calc(var(--header-h) + 48px) max(var(--gutter), calc((100% - 1040px) / 2)) 64px;
  overflow-y: auto;
  background: var(--white); border: 0; border-radius: 0; box-shadow: none;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 72px; align-content: start;
  animation: menu-in .4s var(--ease);
}
@keyframes menu-in { from { opacity: 0; } to { opacity: 1; } }
.menu__panel ul { animation: menu-rise .5s var(--ease) backwards; }
.menu__panel ul + ul { margin-top: 0; padding-top: 0; border-top: 0; animation-delay: .06s; }
@keyframes menu-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.menu__panel a {
  min-height: 0; padding: 14px 4px; border-bottom: 1px solid var(--line);
  font-family: var(--font-round); font-weight: 700; font-size: 1.125rem;
  transition: color .3s var(--ease), padding .3s var(--ease);
}
.menu__panel a:hover { color: var(--cta); padding-left: 14px; }
.menu__panel a[aria-current=page] { color: var(--cta); }
body.is-menu-open { overflow: hidden; }

/* MENU ボタンはどの幅でも出す（ヘッダーにない園バス・保護者の声・お知らせなどへ行けるように） */
/* 1180〜1439px：顧客の版と同じくメニューを並べるので、文字と間隔を詰めて MENU ボタンと1行に入れる */
@media (width >= 1180px) and (width < 1440px) {
  .site-header__inner { gap: 18px; padding-right: calc(var(--header-h) + 16px); }
  .header-nav ul { gap: 16px; }
  .header-nav a { font-size: .875rem; letter-spacing: .04em; }
  .header-tour { padding: 6px 16px; letter-spacing: .04em; }
}
@media (width < 920px) {
  .site-header__inner { gap: 16px; padding-right: calc(var(--header-h) + 12px); }
  .menu summary.menu__summary--label { gap: 6px; border-radius: 0 0 0 20px; }
  .menu__icon, .menu[open] .menu__icon { width: 26px; }
  .menu__panel { grid-template-columns: 1fr; padding-top: calc(var(--header-h) + 24px); }
  .menu__panel ul + ul { margin-top: 32px; }
}

/* ---------- 右端の縦タブ ---------- */
/* 2つをつなげた1本のタブ。見学予約はグリーン、お問い合わせはアイボリー */
@media (width >= 900px) and (hover: hover) and (pointer: fine) {
  .side-tabs > li { justify-content: flex-end; }
  .side-tabs__item {
    border: 1px solid var(--cta); border-right: 0;
    transition: width .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), border-radius .3s var(--ease);
  }
  .side-tabs > li:first-child .side-tabs__item { border-bottom: 0; }
  .side-tabs__item--contact { background: var(--white); color: var(--cta); }
  /* マウスを乗せたタブは少し左へ伸び、上下の角を丸める */
  .side-tabs > li .side-tabs__item:hover { width: 56px; border-radius: 12px 0 0 12px; }
  /* 文字の色も書く（顧客の版の a:hover が文字をこげ茶にして、緑の地で読めなくなるため） */
  .side-tabs > li .side-tabs__item--visit:hover { background: var(--cta-deep); border-color: var(--cta-deep); color: var(--cream); }
  .side-tabs > li .side-tabs__item--contact:hover { background: var(--white); color: var(--cta); }
  body.is-menu-open .side-tabs { visibility: hidden; }
}

/* ---------- スマホの画面下のバー ---------- */
/* 左に「見学を予約」の大きなボタン、右に電話・メール・Instagram の丸いアイコンを3つ並べる */
.theme-forest { --bottom-bar-height: 64px; }
.theme-forest .bottom-bar {
  grid-template-columns: 1fr repeat(3, 48px);
  align-items: center; gap: 10px;
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
  background: rgb(247 243 236 / .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgb(var(--shadow-rgb) / .06);
}
.theme-forest .bottom-bar a {
  min-height: 48px;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.theme-forest .bottom-bar a.bottom-bar__tour {
  gap: .5em; padding: 0 20px;
  background: var(--cta); color: var(--cream);
  font-family: var(--font-round); font-weight: 700; font-size: .9375rem; letter-spacing: .08em;
}
.theme-forest .bottom-bar a.bottom-bar__tour::after { content: "→"; font-family: var(--font-body); font-weight: 400; }
.theme-forest .bottom-bar a.bottom-bar__tour:hover,
.theme-forest .bottom-bar a.bottom-bar__tour:active { background: var(--green); color: var(--cream); }
.theme-forest .bottom-bar a:is(.bottom-bar__call, .bottom-bar__mail, .bottom-bar__ig) {
  width: 48px; height: 48px; padding: 0;
  border: 1px solid var(--cta); border-radius: 50%;
  background: transparent; color: var(--cta);
}
.theme-forest .bottom-bar a:is(.bottom-bar__call, .bottom-bar__mail, .bottom-bar__ig):hover,
.theme-forest .bottom-bar a:is(.bottom-bar__call, .bottom-bar__mail, .bottom-bar__ig):active { background: rgb(47 74 58 / .08); color: var(--cta); }
.theme-forest .bottom-bar svg { width: 22px; height: 22px; }
/* 幅の狭いスマホ（iPhone SE など）：矢印を外し、間隔を詰めて「見学を予約」を1行に */
@media (width < 360px) {
  .theme-forest .bottom-bar { gap: 6px; padding-inline: 10px; }
  .theme-forest .bottom-bar a.bottom-bar__tour { padding: 0 10px; letter-spacing: .04em; white-space: nowrap; }
  .theme-forest .bottom-bar a.bottom-bar__tour::after { content: none; }
}

/* ---------- スクロールで表示（main.js が .js-reveal と .is-in を付ける） ---------- */
/* 下から 40px 浮き上がりながら 1 秒でふんわり。並んだ要素は順番に遅らせる */
.js-reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js-reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   セクション共通
   ========================================================= */
/* 英語の小見出し：葉の飾り＋セージの文字 */
.sec-eyebrow {
  display: flex; align-items: center; justify-content: center; gap: .5em;
  margin-bottom: .5em;
  font-weight: 500; font-size: .8125rem; letter-spacing: .18em; color: var(--sage-deep);
}
.sec-eyebrow--left { justify-content: flex-start; }
.sec-eyebrow::before {
  content: ""; width: 1.1em; height: 1.1em; flex: none; background: var(--sage);
  /* 葉の形（古いブラウザ用の -webkit-mask と mask の両方で使う） */
  --leaf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 19.5C4.5 10.5 10.5 4.5 19.5 4.5c0 9-6 15-15 15Z'/%3E%3Cpath d='M4.5 19.5 14 10'/%3E%3C/svg%3E");
  -webkit-mask: var(--leaf) center / contain no-repeat;
          mask: var(--leaf) center / contain no-repeat;
}
/* 英語のトップページは日本語版と鏡合わせに、日本語の小見出し（lang="ja"）を付ける。日本語は字間を少し詰める */
.sec-eyebrow[lang="ja"] { letter-spacing: .12em; }
.sec-eyebrow + h2 { margin-bottom: clamp(36px, 5vw, 64px); }
.sec-eyebrow--left + h2 { margin-bottom: 32px; }

/* 下層ページの見出しの帯 */
.page-head { padding-block: clamp(48px, 6vw, 88px) clamp(32px, 4vw, 56px); }
.page-head h1 { letter-spacing: .08em; }

/* カード：白い面に角丸。線と影は付けない */
.card { border-color: transparent; background: var(--cream); border-radius: var(--r-md); }
.enrich__card { border-color: transparent; background: var(--cream); }
.contact-form { border-radius: var(--r-md); }

/* よくある質問：Q と、開閉の矢印 */
.faq { border-top-color: var(--sand); }
.faq details { border-bottom-color: var(--sand); }
.faq summary { padding: 18px 40px 18px 2em; }
.faq summary::before { content: "Q"; position: absolute; left: 0; color: var(--sage-deep); }
.faq summary::after,
.faq details[open] summary::after {
  width: 10px; height: 10px; margin-top: 0; border-radius: 0; background: none;
  border-right: 1.5px solid var(--cta); border-bottom: 1.5px solid var(--cta);
  right: 8px; transform: translateY(-75%) rotate(45deg);
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(225deg); }
.faq__answer { padding: 0 8px 20px 2em; }
.faq__answer p { font-size: .9375rem; }

/* お知らせ：日付と題名を丸ゴシックで */
.news-list { border-top: 1px solid var(--sand); }
.news-list li { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px 16px; padding: 18px 4px; border-bottom-color: var(--sand); }
.news-list__meta { font-family: var(--font-round); font-weight: 700; font-size: .875rem; font-variant-numeric: tabular-nums; color: var(--sage-deep); }
.news-list a { min-height: 0; font-family: var(--font-round); font-weight: 700; color: var(--ink); text-decoration: none; transition: color .3s var(--ease); }
.news-list a:hover { color: var(--cta); }
@media (width < 768px) {
  .news-list li { grid-template-columns: 1fr; gap: 4px; }
}

/* 保護者の声：白いカードに大きな引用符 */
.voice { position: relative; padding: 40px 32px 32px; background: var(--cream); }
.voice::before { content: "\201C"; position: absolute; top: 4px; left: 24px; font-family: var(--font-round); font-size: 4rem; line-height: 1; color: var(--sage-soft); }
.voice blockquote { font-size: .9375rem; }
/* 誰の声か：ほかの補足と同じく、本文の書体・普通の太さ・小さめ・薄い茶色で控えめに */
.voice figcaption { margin-top: 24px; padding-top: 16px; font-family: var(--font-body); font-weight: 400; font-size: .8125rem; line-height: 1.7; color: var(--ink-soft); }
/* 改行：声の本文（日本語）は普通の日本語の組み方で行をそろえる（文節でしか改行しないと行の長さがばらつくため）。
   誰の声かは、そのまま流して行の端で折り返す。日本語は文節の切れ目で折り返す（「進／学」のような単語の途中の改行を防ぐ） */
:lang(ja) .voice blockquote p { word-break: normal; line-break: strict; text-wrap: pretty; }
/* スマホはカードの左右の余白を狭めて、文字を置ける幅を広げる */
@media (width < 900px) {
  .voice { padding: 36px 20px 24px; }
  .voice::before { left: 14px; }
  /* 誰の声か：少し小さく、字間を詰めて、多くのスマホで1行に収める */
  .voice figcaption { font-size: .75rem; letter-spacing: 0; }
}
:lang(ja) .voice figcaption { word-break: auto-phrase; }
/* 英語：最後の行に1語だけ残さない（本文・誰の声か） */
:lang(en) .voice blockquote p, :lang(en) .voice figcaption { text-wrap: pretty; }
.voice-carousel__nav button { border: 1px solid var(--cta); background: transparent; color: var(--cta); transition: background-color .3s var(--ease), color .3s var(--ease); }
.voice-carousel__nav button:hover { background: var(--cta); color: var(--cream); border-color: var(--cta); }

/* 毎日の連絡：スマホの本体の色 */
.phone { background: #1f1c1a; }
.phone-shots__label { font-weight: 500; font-size: .875rem; letter-spacing: .06em; color: var(--ink-soft); }

/* いろはの一日 */
.timeline--dots::before { border-left-color: var(--sand); }
.timeline--dots li::before { border: 1.5px solid var(--cta); }

/* 園バスのエリア一覧：線で区切った一覧 */
.bus-areas ul { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
.bus-areas .card {
  display: grid; grid-template-columns: 6em 1fr; gap: 16px;
  padding: 14px 8px; border: 0; border-bottom: 1px solid var(--line); border-radius: 6px 6px 0 0;
  background: none; box-shadow: none; font-size: .9375rem; color: var(--ink-soft);
  transition: background-color .2s;
}
.bus-areas--in .card { background: none; box-shadow: none; border-color: var(--line); }
.bus-areas .card:hover, .bus-areas .card:focus-visible { background: rgb(255 253 249 / .6); }
.bus-areas .card strong { color: var(--cta); }

/* 園バス：「ご自宅がバスの範囲か聞く」（枠のボタン）の下の「園バスのくわしい案内」を、ボタンの中の文字の左端にそろえる
   （ボタンの左の余白 1.8em ＋ 枠線 1px だけ右へ）。スマホは2つとも中央寄せ */
.more:has(> .btn) + .more { padding-left: calc(1.8rem + 1px); }
@media (width < 900px) {
  .more:has(> .btn), .more:has(> .btn) + .more { text-align: center; padding-left: 0; }
}
/* 英語のスマホ：「Ask if your home is in the bus area」を1行に収める（文字を少し小さく、字間と左右の余白を詰める） */
@media (width < 600px) {
  :lang(en) .more > .btn { white-space: nowrap; font-size: 15px; letter-spacing: .02em; padding-inline: 1.2em; }
}
@media (width < 360px) {
  :lang(en) .more > .btn { font-size: 14px; letter-spacing: 0; padding-inline: 1em; }
}

/* アクセス */
.access-card { background: transparent; padding: 0; }
.access-card p:first-child { font-family: var(--font-round); font-weight: 700; font-size: 1.125rem; color: var(--cta); line-height: 1.7; }
/* スマホ：ピンは住所の行の頭に小さく置き、ほかの文章と地図の左端をそろえる。
   住所は一回り小さくして行の切れ目をそろえる。リンク2つは縦に並べ、ほかの帯と同じ「→」付きのリンクにして中央寄せ */
@media (width < 900px) {
  .access-card { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: start; }
  .access-card > div { display: contents; }
  .access-card > svg { width: 22px; height: 22px; margin-top: .3em; }
  .access-card > div > p { grid-column: 1 / -1; max-width: none; text-wrap: pretty; }
  .access-card > div > p:first-child { grid-column: 2; font-size: 1rem; text-wrap: balance; }
  .access-card > div > p:last-child {
    display: flex; flex-direction: column; align-items: center; gap: 16px;
    margin-top: 8px; font-size: 0; /* リンクの間の「／」「|」は見せない */
  }
  /* 見た目は、上の「〜をくわしく」のリンク（.more > a）と同じ（スマホのときだけなので、別に書いている） */
  .access-card > div > p:last-child > a {
    font-size: 1rem; line-height: 2.1; white-space: nowrap;
    font-family: var(--font-round); font-weight: 700; color: var(--cta);
    text-decoration: underline 1px var(--sand); text-underline-offset: 7px;
    transition: text-decoration-color .3s var(--ease);
  }
  .access-card > div > p:last-child > a::after { content: "\00a0→"; word-spacing: .15em; font-family: var(--font-body); font-weight: 400; transition: word-spacing .3s var(--ease); }
  .access-card > div > p:last-child > a:hover { text-decoration-color: var(--cta); color: var(--cta); }
  .access-card > div > p:last-child > a:hover::after { word-spacing: .45em; }
}

/* 最後のボタン（見学を予約・よくある質問） */
main > .cta-bar:last-child { gap: 12px 24px; padding-block: clamp(56px, 7vw, 96px); }
/* スマホ：ページの途中のボタン（入園案内の「入園の流れ」の下など）も、一番下のボタンと同じく中央寄せ */
@media (width < 900px) {
  main > .cta-bar { justify-content: center; }
}
/* ページの途中のボタン（入園案内の「入園の流れ」の下）：前の帯のすぐ下に寄せる。
   前の帯の下の余白をなくし、ボタンの上の余白だけにする（PC 40px・スマホ 32px）。ボタンの下は帯の区切りとして残す */
main > section:has(+ .cta-bar:not(:last-child)) { padding-bottom: 0; }
main > .cta-bar:not(:last-child) { margin-top: 40px; }
@media (width < 900px) {
  main > .cta-bar:not(:last-child) { margin-top: 32px; }
}
/* 住所（address）は、ブラウザの初期設定の斜めの文字にしない */
address { font-style: normal; }

/* =========================================================
   トップページ
   ========================================================= */
/* 帯：3つの特長からアクセスまで、アイボリーとベージュを交互にし、境目はすべて波で区切る。
   最後のボタンの帯（見学を予約・よくある質問）はアクセスと同じベージュの帯として続け、波で区切らない。
   波は各帯の上の余白に、前の帯の色の地＋この帯の色の波形を描く（HTML の波は使わない）
   帯は HTML に付けた名前で指定する（上から順に）：
     .top-hero-section メインビジュアル / .top-features 3つの特長 / .top-glance ひと目でわかる /
     .top-outdoor 外遊び / .top-updates 毎日の連絡 / .top-day いろはの一日 / .top-bus 園バス /
     .top-voices 保護者の声 / .top-news お知らせ / .top-faq よくある質問 / .top-access アクセス
   帯を足したり並べ替えたりしたときは、下の「ベージュの帯」の一覧で、色が交互になるように直す */
main:has(> .top-hero-section) > .wave { display: none; }
/* 余白：波が区切りの役目をするので、前の版より詰める（下は最大 80px、上は波の高さ＋最大 40px） */
body main:has(> .top-hero-section) > section:not(.top-hero-section) {
  --wave-h: 28px;
  position: relative;
  padding-block: calc(var(--wave-h) + clamp(32px, 2.8vw, 40px)) clamp(48px, 5.5vw, 80px);
  background: var(--white);
}
/* ベージュの帯 */
body main:has(> .top-hero-section) > section:is(.top-glance, .top-updates, .top-bus, .top-news, .top-access) { background: var(--sky); }
body main:has(> .top-hero-section) > .cta-bar:last-child { padding-block: 0 clamp(56px, 7vw, 96px); background: var(--sky); }
/* その下のフッターの波も、上側の地をベージュに合わせる
   （スマホは間に画面下のバー（アイボリー）が入るので、顧客の版のままアイボリー） */
@media (width >= 900px) {
  body:has(> main > .top-hero-section) .site-footer > .wave { background: #eee6d9; }
}
main:has(> .top-hero-section) > section:not(.top-hero-section)::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: var(--wave-h);
  pointer-events: none;
  /* アイボリーの帯：前はベージュ */
  background: var(--wave-ivory) 0 0 / 100% 100% no-repeat, #eee6d9;
}
/* ベージュの帯：前はアイボリー。向きを左右反対に */
main:has(> .top-hero-section) > section:is(.top-glance, .top-updates, .top-bus, .top-news, .top-access)::before {
  background: var(--wave-beige) 0 0 / 100% 100% no-repeat, #f7f3ec;
  transform: scaleX(-1);
}
/* 3つの特長：前はメインビジュアルの紙の台紙 */
main:has(> .top-hero-section) > section.top-features::before {
  background: var(--wave-ivory) 0 0 / 100% 100% no-repeat, var(--paper-noise), #e9dfcf;
}
@media (width >= 900px) {
  body main:has(> .top-hero-section) > section:not(.top-hero-section) { --wave-h: 48px; }
}

/* 見出し：3つの特長・外遊び・園バス・保護者の声は中央、ほかは左（見出しの下の余白は「セクション共通」の .sec-eyebrow + h2） */
main:has(> .top-hero-section) > section:is(.top-features, .top-outdoor, .top-bus, .top-voices) > h2 { text-align: center; }
main:has(> .top-hero-section) > section:is(.top-features, .top-outdoor, .top-voices) > .more { text-align: center; }
/* スマホはどの帯も1列なので、見出しと小見出しはすべて中央寄せにそろえる（本文・一覧は左寄せのまま） */
@media (width < 900px) {
  main:has(> .top-hero-section) h2 { text-align: center; }
  main:has(> .top-hero-section) .sec-eyebrow--left { justify-content: center; }
}

/* メインビジュアル：紙の質感の台紙に写真を敷き詰める */
.theme-forest .top-hero-section {
  background-color: var(--paper);
  background-image: var(--paper-noise);
}
.top-hero__tile { background: var(--sand); }
.top-hero__tile img { transition: transform 1.6s var(--ease); }
.top-hero__tile:hover img { transform: scale(1.04); }
.top-hero__card { background: var(--white); }
.top-hero__eyebrow { font-weight: 500; color: var(--sage-deep); }
.top-hero__card h1 { color: var(--cta); }
/* 英語の見出しは字間を詰める（日本語に合わせた .08em は英語では広すぎる）。1語だけが次の行に落ちないよう行の長さをそろえる */
:lang(en) .top-hero__card h1 { letter-spacing: .02em; }
:lang(en) .top-hero__card h1 span { text-wrap: balance; }
@media (width < 600px) {
  :lang(en) .top-hero__card h1 { font-size: 1.25rem; }
}
/* キャッチコピーの下の一文：最後の言葉だけが次の行に落ちないよう、行の長さをそろえて文節で折り返す */
.top-hero__sub { text-wrap: balance; }
/* 日本語は「〜のびのびと遊び、」と「心も体も育つ場所〜」の2つのまとまり（あつこ先生、2026-11-30）。入らないときは読点の後で改行 */
.top-hero__sub > span { display: inline-block; }
/* スマホ：少し小さく字間を詰めて、幅 375px 以上なら1行に収める（入らないときは読点の後で2行に） */
@media (width < 600px) {
  .top-hero__sub { font-size: 13.5px; letter-spacing: 0; }
}
.top-hero__dots button[aria-current=true]::before { background: var(--cta); }
.top-hero__insta { background: transparent; color: var(--cta); border: 1px solid var(--cta); }
.top-hero__insta:hover { background: rgb(47 74 58 / .08); color: var(--cta); border-color: var(--cta); }
@media (width >= 1100px) and (hover: hover) and (pointer: fine) {
  .top-hero__tiles { height: clamp(560px, calc(100svh - var(--header-h)), 940px); }
  .top-hero__tile { animation: tile-in 1.2s var(--ease) backwards; }
  .top-hero__tile--t1 { animation-delay: 80ms; }  .top-hero__tile--t3 { animation-delay: 160ms; }
  .top-hero__tile--t4 { animation-delay: 240ms; } .top-hero__tile--t5 { animation-delay: 320ms; }
  .top-hero__tile--t6 { animation-delay: 400ms; } .top-hero__tile--t7 { animation-delay: 480ms; }
  .top-hero__tile--t8 { animation-delay: 560ms; } .top-hero__tile--t9 { animation-delay: 640ms; }
  .top-hero__card { animation: rise 1s var(--ease) .7s backwards; }
}
@keyframes tile-in { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* いろはの一日：スマホでも写真を先に置く（写真 → 見出し → 時間割 → リンク）。PC で写真が左にあるのと同じ並び */
.day-split__photo { order: -1; }

/* 保護者の声：下の一文も、見出し・カード・ボタンに合わせて中央寄せ */
#voices > p:last-child { text-align: center; max-width: none; }

/* アクセス（PC）：住所・リンクを左、地図を右の2列にして、右側が空かないようにする */
@media (width >= 900px) {
  main:has(> .top-hero-section) > section.top-access {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    grid-template-rows: auto auto 1fr; column-gap: clamp(40px, 6vw, 96px);
  }
  main:has(> .top-hero-section) > section.top-access > .play-map { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin: 0; }
  main:has(> .top-hero-section) > section.top-access > .play-map .play-map__frame { max-width: none; }
}

/* 3つの特長：顧客の版と同じく、写真と文を1枚のカード（枠）にまとめる。番号は付けない。
   カードの形は顧客の版のまま、文字の書体と大きさは前の版に合わせる */
main:has(> .top-hero-section) .pillars li { background: var(--cream); }
main:has(> .top-hero-section) .pillars h3 { font-size: 1.25rem; }
main:has(> .top-hero-section) .pillars p { font-size: .9375rem; }

/* ひと目でわかる：アイボリーの面に線で区切る */
.glance { border-radius: var(--r-md); }
/* 室内プレイエリアの「のびのび遊べる」：PC ではほかの数字に近い大きさに（スマホと英語は顧客の版のまま） */
@media (width >= 900px) {
  :lang(ja) .glance__value--sm { font-size: clamp(1.25rem, 1.9vw, 1.75rem); line-height: 1.3; }
}
/* マスの中身は上下の中央に置き、余白の偏りをなくす */
.glance li { justify-content: center; }
/* 同じ段のマスでアイコンの高さをそろえるため、中身の高さをそろえる
   ・数字の行はどのマスも同じ高さ（大きい数字1行分）
   ・補足（「18か月から」など）のないマスにも、補足1行分の見えない余白を下に取る */
.glance__value { display: flex; align-items: center; justify-content: center; min-height: calc(1.75rem * 1.3); color: var(--cta); }
.glance li:not(:has(.glance__note, .glance__row-name))::after { content: ""; display: block; font-size: .8125rem; height: 1lh; }
/* 英語のスマホ：アクセスの「Direct from MRT」を1行に収める */
@media (width < 900px) {
  :lang(en) .glance li:last-child .glance__value { font-size: clamp(.9375rem, 4.6vw, 1.75rem); white-space: nowrap; }
}
/* 卒園後の進路：2つの値を左右に並べ、ほかのマスと同じく「数字＋その下に補足（日本人小学校・インター）」の形にする
   （アイコンと見出しは2列にまたがる） */
.glance li:has(.glance__row-name) {
  display: grid; grid-template-columns: auto auto; justify-content: center; align-content: center;
  column-gap: clamp(16px, 2.4vw, 32px); row-gap: 4px;
}
.glance li:has(.glance__row-name) > .icon { grid-column: 1 / -1; justify-self: center; }
.glance li:has(.glance__row-name) > .glance__label { grid-column: 1 / -1; }
.glance li:has(.glance__row-name) > span:nth-of-type(2) { grid-area: 4 / 1; }
.glance li:has(.glance__row-name) > span:nth-of-type(3) { grid-area: 3 / 1; }
.glance li:has(.glance__row-name) > span:nth-of-type(4) { grid-area: 4 / 2; }
.glance li:has(.glance__row-name) > span:nth-of-type(5) { grid-area: 3 / 2; }
.glance li:has(.glance__row-name) > .glance__row-name { margin-top: 0; font-size: .8125rem; color: var(--ink-soft); }
@media (width < 900px) {
  /* スマホ：卒園後の進路は横幅いっぱいのマスにして一番下へ。アクセスは外遊び場所の隣に（見た目の順番だけ入れ替える） */
  .glance li:has(.glance__row-name) { grid-column: 1 / -1; order: 1; }
  .glance li:last-child { grid-column: auto; }
  /* 2つの値はマスを左右半分ずつに分けて、それぞれの真ん中に置く。間に細い縦線（上の段のマスの区切りとそろう） */
  .glance li:has(.glance__row-name) { grid-template-columns: 1fr 1fr; justify-content: stretch; column-gap: 0; }
  .glance li:has(.glance__row-name)::after {
    content: ""; grid-area: 3 / 1 / 5 / 2; justify-self: end; align-self: stretch;
    width: 1px; background: var(--line);
  }
}

/* 外遊びの写真：マウスを乗せると少し寄る */
@media (width >= 600px) {
  .photo-mosaic .figure { overflow: hidden; border-radius: var(--r-md); }
  .photo-mosaic .figure img { transition: transform 1.2s var(--ease); }
  .photo-mosaic .figure:hover img { transform: scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-reveal { opacity: 1; transform: none; }
  .top-hero__tile, .top-hero__card, .menu__panel, .menu__panel ul { animation: none; }
}

/* ---------- ボタン・リンクの「→」を消す（園のまなさん・Li、2026-11-30「以前のように文字だけの方がスッキリ」） ----------
   業者が足した矢印を、前の版（文字だけ）に戻す。日本語が先、英語も合わせた（Li「日本語版の変更をすべて英語版に」、2026-11-30） */
main .btn::after, .top-hero .btn::after,
.more > a:not(.btn)::after,
.theme-forest .bottom-bar a.bottom-bar__tour::after,
.access-card > div > p:last-child > a::after { content: none; }

/* ---------- ページの見出しの下の文が2段落以上のとき、段落の間をあける（外遊びの前書き。Li、2026-11-30。日英とも） ---------- */
.page-head p + p { margin-top: .9em; }
