/* ほいくん 紹介サイト。決まりは DESIGN.md、見た目の正本は デザイン候補/候補2_写真とUI.jpg（2026-11-26 に作り直し、同じ日に社長の指摘で明るく作り直した） */

@font-face {
  font-family: "Zen Maru Gothic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/zen-maru-400.woff2") format("woff2");
}
@font-face {
  font-family: "Zen Maru Gothic";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/zen-maru-700.woff2") format("woff2");
}
/* 900 はヒーローの見出しの字だけを入れてある。h1 のほかで使わない */
@font-face {
  font-family: "Zen Maru Gothic";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("fonts/zen-maru-900.woff2") format("woff2");
}

/* 色相は 緑・焦げ茶・はちみつ の3つまで。地は紙・白・セージが主で、3〜4段に1回、色の全面の段を入れる
   （園＝はちみつ、機能一覧＝森の緑、いっしょに＝緑、フッター＝森の緑。濃い段は続けない。17番 §1.6）。
   緑の字は紙と白の地だけ（セージとはちみつの地では深い緑にする）。濃い地の字は白。数は DESIGN.md の表 */
:root {
  color-scheme: light;
  --paper: #FAF7F1;
  --white: #fff;
  --sage: #EDF3EE;
  --sage-2: #DCEADF;
  --honey-soft: #FCF1D6;
  --line: #E7E0D5;
  --green: #2E7D4F;
  --green-deep: #1E5C3A;
  --forest: #163A28;
  --ink: #2E231C;
  --ink-2: #5F5148;
  --honey: #F3D58A;
  --honey-deep: #E9C15F;
  --frame: #23272B;
  --head-h: 64px;
  /* 角丸の面と画面の端の間（面を全幅の帯にしない） */
  --gut: 10px;
  --panel-r: 32px;
  --shadow: 0 1px 2px rgba(46, 35, 28, .04), 0 8px 24px rgba(46, 35, 28, .06);
  --grid: linear-gradient(rgba(46, 125, 79, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(46, 125, 79, .07) 1px, transparent 1px);
  /* はちみつの点（飾り。字の下には敷かない） */
  --dots: radial-gradient(circle, var(--honey-deep) 0 2.5px, transparent 3px);
  --arc: rgba(30, 92, 58, .3);
  /* 紙吹雪（段の隅に散らす小さな丸。字の下には敷かない）。はちみつと森の地に置く */
  --confetti-dark: radial-gradient(circle at 10% 22%, var(--honey) 0 7px, transparent 7.5px),
    radial-gradient(circle at 34% 8%, rgba(255, 255, 255, .55) 0 4px, transparent 4.5px),
    radial-gradient(circle at 62% 30%, rgba(255, 255, 255, .16) 0 12px, transparent 12.5px),
    radial-gradient(circle at 88% 12%, var(--honey-deep) 0 5px, transparent 5.5px),
    radial-gradient(circle at 22% 70%, rgba(255, 255, 255, .2) 0 7px, transparent 7.5px),
    radial-gradient(circle at 54% 88%, var(--honey) 0 4px, transparent 4.5px),
    radial-gradient(circle at 84% 66%, rgba(255, 255, 255, .5) 0 5px, transparent 5.5px);
  --font: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .04em;
  word-break: auto-phrase;
  line-break: strict;
  overflow-wrap: break-word;
}
::selection { background: var(--honey); color: var(--ink); }

/* 長い本文（class の無い段落と、ほいくんとはの本文）は字の単位で折って右をそろえる。
   auto-phrase は文節ごとに折るので、何行も続くと右がぎざぎざになる。見出し・短い文・引用は auto-phrase のまま。
   pretty は、最後の行が数文字だけ残るのを避ける（効かないブラウザでは普通に折るだけ） */
p:not([class]), .about__body { word-break: normal; text-wrap: pretty; }
.quote blockquote p, .voice__quote p { word-break: auto-phrase; }

img, video { display: block; max-width: 100%; height: auto; }
/* 動く挿絵（白い地の mp4・2026-11-26）。白を下の地（紙・セージ・白・淡いはちみつ）に溶かし、白い四角を出さない。濃い地には置かない。
   各 video の直後に同じ絵の静止画 img.il-still（透明な webp）を置き、ふだんは隠す。
   動きを減らす設定では、下の「動き」で video を隠してこの静止画を出す（見ている途中で設定を変えても追いつく。
   source の media は読み込みのときしか見られないため）。静止画は loading="lazy" なので、隠れている間は届かない */
.il-anim { mix-blend-mode: multiply; }
.il-still { display: none; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.5; font-weight: 700; }
a { color: var(--green); text-underline-offset: 3px; }
/* 囲みは白い輪の外に焦げ茶の線。明るい地でも暗い地（フッター）でも見える */
a:focus-visible, summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; box-shadow: 0 0 0 3px var(--white); }

.wrap { max-width: 1184px; margin-inline: auto; padding-inline: 16px; }
.wrap--narrow { max-width: 932px; }

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  border-radius: 12px;
}
.skip:focus { top: 8px; }

/* ---------- ボタンと申し込みの組 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 8px 32px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .06em;
  text-align: center;
  text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
/* 主のボタンは緑の地に白い字（5.05）。従のボタンは線だけで、明るい地では深い緑（7.4 以上） */
.btn--main { background: var(--green); color: var(--white); box-shadow: 0 8px 20px rgba(30, 92, 58, .22); }
.btn--main:hover { background: var(--green-deep); transform: translateY(-2px); }
.btn--sub { background: transparent; border-color: currentColor; color: var(--green-deep); }
.btn--sub:hover { background: var(--sage); transform: translateY(-2px); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 999px; box-shadow: 0 0 0 4px var(--white); }
.btn--head { min-height: 44px; padding: 6px 20px; font-size: 15px; background: var(--green); color: var(--white); }
.btn--head:hover { background: var(--green-deep); }

.cta { margin-top: 32px; max-width: 640px; }
.cta__note { margin-bottom: 12px; font-size: 16px; font-weight: 700; letter-spacing: .1em; text-align: center; }
.cta__btns { display: flex; flex-wrap: wrap; gap: 16px; }
.cta__btns .btn { flex: 1 1 240px; padding-inline: 24px; white-space: nowrap; }
.cta--center { margin-inline: auto; }

/* ---------- 見出し ---------- */

/* 見出しは左寄せ。上に緑の短い線を1本だけ置く（中央寄せの見出しとカードの並びにしない） */
.h2 {
  color: var(--ink);
  font-size: clamp(28px, 4.6vw, 52px);
  line-height: 1.4;
  margin-bottom: 40px;
}
/* 見出しの最後の句に、はちみつのマーカー（1段に1か所。字は焦げ茶のまま 10.7） */
.h2 span:last-child { background: linear-gradient(transparent 64%, rgba(243, 213, 138, .9) 64%); }
.h2::before {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  margin-bottom: 16px;
  border-radius: 2px;
  background: var(--green);
}
.h2 span, .h3 span, .hero__title span, .hero__lead span, #side-title span { display: inline-block; }

/* 段の名札（先生にとって など）。緑の地に白い字の札（5.05）。左にはちみつの点 */
.tag {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-bottom: 32px;
  padding: 6px 22px 6px 16px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-size: 18px;
  letter-spacing: .1em;
}
.tag::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--honey);
}

.h3 {
  color: var(--ink);
  font-size: clamp(26px, 3.8vw, 42px);
  line-height: 1.4;
  margin-bottom: 32px;
}

/* ---------- ヘッダー ---------- */

/* いつも不透明の紙の地に焦げ茶の字（2026-11-26 から。写真の上に透かして載せる作りと、スクロールで色を替える動きはやめた） */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--paper);
  box-shadow: 0 1px 0 rgba(46, 35, 28, .08);
}
.site-header__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--head-h);
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
}
.logo img { width: 48px; }
.gnav { display: none; }
.gnav ul { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; }
.gnav a { display: block; padding-block: 10px; color: var(--ink); font-size: 15px; font-weight: 700; text-decoration: none; }
.gnav a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* ---------- ヒーロー ---------- */

/* 地は紙。ヘッダーの下から始める。
   スマホとタブレットは、写真を角丸の面にして上に置き、字はその下の紙の地に載せる（写真の上に字を重ねない）。
   object-position はピンマイクの位置（横 74.07%・縦 51.41%）。こうすると、箱の大きさが変わっても
   マイクは常に箱の同じ割合の所に来るので、PC では線とカードをそこから引ける */
.hero {
  --photo-h: min(88vw, 500px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
}
.hero__photo {
  width: calc(100% - 2 * var(--gut));
  max-width: none;
  height: var(--photo-h);
  margin: var(--gut) auto 0;
  border-radius: 28px;
  object-fit: cover;
  object-position: 74.07% 51.41%;
}
.hero__in { padding-block: 32px 64px; }
.hero__text { position: relative; }
.hero__lead { color: var(--green-deep); font-size: 15px; font-weight: 700; letter-spacing: .06em; margin-bottom: 12px; }
.hero__head { position: relative; font-size: clamp(32px, 6vw, 44px); }
.hero__title { font-size: 1em; font-weight: 900; line-height: 1.38; letter-spacing: .02em; }
.hero__title span:first-child { display: block; }
/* 最後の句にだけ、はちみつの下線を引く（字は焦げ茶のまま。はちみつの上でも 10.7） */
.hero__title span:last-child { background: linear-gradient(transparent 64%, rgba(243, 213, 138, .9) 64%); }
.hero__fly {
  position: absolute;
  left: 6.55em;
  top: -.35em;
  display: flex;
  align-items: center;
  pointer-events: none;
}
/* 点線は HTML では白。紙の地で見えるよう、ここで緑にする（CSS の stroke は属性より強い） */
.hero__trail { width: 1.3em; height: auto; margin-top: .5em; stroke: var(--green); }
.hero__fly img { width: 2.1em; }
.hero__sub { margin-top: 16px; font-size: clamp(19px, 3.6vw, 26px); font-weight: 700; }
.hero .cta__note { color: var(--green-deep); }
.hero .btn--sub { background: var(--white); }
.hero .btn--sub:hover { background: var(--sage); }
/* 画面のカードとマイクからの線は PC だけ。スマホでは出さない（画面の絵は lazy なので届かない） */
.hero__visual, .hero__wire { display: none; }

/* ---------- ほいくんとは ---------- */

.about { position: relative; isolation: isolate; padding: 64px 0 56px; }
.about::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grid);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 60% 75% at 18% 45%, #000 0, transparent 72%);
  mask-image: radial-gradient(ellipse 60% 75% at 18% 45%, #000 0, transparent 72%);
}
.about__body { max-width: 40em; font-size: 16px; }

/* ---------- 保育室の絵と白いカード ---------- */

/* 絵は全幅にせず、角丸の面にする。白いカードはその下の端に重ねる */
.side { padding-bottom: clamp(64px, 8vw, 104px); }
.side__room {
  width: calc(100% - 2 * var(--gut));
  height: clamp(200px, 40.5vw, 520px);
  margin-inline: auto;
  border-radius: var(--panel-r);
  object-fit: cover;
  object-position: 24% 50%;
}
.side__card {
  position: relative;
  display: grid;
  gap: 24px;
  margin-top: -20px;
  padding: 24px 20px 32px;
  border-radius: 28px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 2px 4px rgba(46, 35, 28, .04), 0 24px 48px rgba(46, 35, 28, .1);
}
/* 図の線は HTML では白。セージの小さな面に深い緑の線で描く（前の紙の塗りもセージにそろえる） */
.side__fig { width: 100%; max-width: 280px; height: auto; margin-inline: auto; padding: 16px; border-radius: 20px; background: var(--sage); stroke: var(--green-deep); }
.side__fig rect[fill] { fill: var(--sage); }
#side-title { font-size: clamp(20px, 4.2vw, 28px); margin-bottom: 12px; }
.side .cta { margin-top: 40px; }

/* ---------- 段の共通 ---------- */

/* 段は全幅の帯にせず、画面の端との間を残した大きな角丸の面にする。
   先生（白）は左の端に付けて右を丸め、園（セージ）は右の端に付けて左を丸め、保護者（白）はまた左へ。
   互い違いにして、同じ形の箱が積み重なって見えないようにする。
   園ははちみつの面（色の段の1つ目）。機能一覧は上の辺を弧にした森の緑の面、いっしょには上下の辺を波にした緑の全幅の帯、
   最後は上だけ丸めた白い面。境目の形は「弧」と「波」の2種類だけ */
.sec { padding: 64px 0; }
.sec.teacher, .sec.school, .sec.parent, .sec.join { position: relative; isolation: isolate; }
.sec.teacher, .sec.parent {
  margin-right: var(--gut);
  border-radius: 0 var(--panel-r) var(--panel-r) 0;
  background: var(--white);
  box-shadow: 0 20px 48px rgba(46, 35, 28, .05);
}
.sec.school { margin: 16px 0 0 var(--gut); border-radius: var(--panel-r) 0 0 var(--panel-r); background: var(--honey); }
.sec.parent { margin-top: 16px; }
/* いっしょには全幅の緑の帯。上下の辺は丸の並び（波）で、帯の外へ 20px はみ出す */
.sec.join { margin: 72px 0 56px; background: var(--green); color: var(--white); }
.sec.join::before, .sec.join::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 20px;
  background-size: 40px 20px;
  background-repeat: repeat-x;
  pointer-events: none;
}
.sec.join::before { top: -19px; background-image: radial-gradient(circle at 50% 100%, var(--green) 0 19.5px, transparent 20px); }
.sec.join::after { bottom: -19px; background-image: radial-gradient(circle at 50% 0, var(--green) 0 19.5px, transparent 20px); }
.sec.join .h2 { color: var(--white); }
.sec.join .h2::before { background: var(--honey); }
/* 白い字なので、マーカーは字の下の細い線にする */
.sec.join .h2 span:last-child { background: linear-gradient(transparent 88%, var(--honey) 88%, var(--honey) 97%, transparent 97%); }
/* ちょうちょが上の波をまたいで飛び込む。点線の道は右上へ */
.sec.join .wrap { position: relative; }
.sec.join .wrap::before {
  content: "";
  position: absolute;
  top: -112px;
  right: 24px;
  width: 76px;
  height: 64px;
  background: url("img/chocho-192.webp") center / contain no-repeat;
  transform: rotate(10deg);
  pointer-events: none;
}
.sec.join .wrap::after {
  content: "";
  position: absolute;
  top: -60px;
  right: 92px;
  width: 120px;
  height: 90px;
  border: 3px dotted transparent;
  border-top-color: rgba(255, 255, 255, .7);
  border-left-color: rgba(255, 255, 255, .7);
  border-radius: 50%;
  transform: rotate(18deg);
  pointer-events: none;
}

/* 飾り：点線の弧と、はちみつの点（先生）。どれも字の下には来ない所に置く */
.sec.teacher::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 132px;
  height: 132px;
  border: 3px dotted transparent;
  border-top-color: var(--arc);
  border-right-color: var(--arc);
  border-radius: 50%;
  pointer-events: none;
}
.sec.teacher::before { top: 20px; right: 20px; transform: rotate(-24deg); }
.sec.teacher::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 84px;
  height: 56px;
  background-image: var(--dots);
  background-size: 14px 14px;
  pointer-events: none;
}
.sec.teacher::after { left: 24px; bottom: 28px; }

/* ---------- 画面の枠 ---------- */

.device { position: relative; background: var(--frame); box-shadow: 0 16px 40px rgba(35, 39, 43, .18); }
.device img { width: 100%; }
.device--tablet { padding: 12px; border-radius: 28px; }
.device--tablet img { border-radius: 16px; }
.device--phone { padding: 10px; border-radius: 36px; }
.device--phone img { border-radius: 28px; }
.device--laptop { padding: 12px 12px 14px; border-radius: 18px 18px 6px 6px; margin-bottom: 20px; }
.device--laptop img { border-radius: 6px; }
.device--laptop::after {
  content: "";
  position: absolute;
  left: -12px;
  right: -12px;
  bottom: -16px;
  height: 16px;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(#D5D9E1, #B9BFCB);
}

/* ---------- 先生にとって ---------- */

.row + .row { margin-top: 80px; }
.row__body { display: grid; gap: 32px; align-items: center; }
/* 画面の枠の後ろに、少し傾けたやわらかい面を敷く（1つ目ははちみつ、2つ目はセージで向きも逆）。
   縦に並ぶ幅では、面を下へはみ出させない（すぐ下の本文の1行目にかぶる）。下へ出すのは横に並ぶ 1024px から。
   2つ目（逆向き）も上へはみ出させない（傾けた左上の角が、すぐ上の見出しの字にかぶる）。
   isolation の層は見出しより手前に描かれるので、見出しと本文は z-index で前に出しておく */
.row__media { position: relative; isolation: isolate; }
.row > .h3, .row__text { position: relative; z-index: 1; }
.row__media::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 8%;
  right: -2%;
  bottom: 6%;
  left: 10%;
  border-radius: 36px;
  background: var(--honey-soft);
  transform: rotate(-4deg);
}
.row--rev .row__media::before { top: 4%; right: 10%; bottom: 10%; left: -2%; background: var(--sage); transform: rotate(4deg); }
.row__text p { max-width: 36em; }
.row__text p + p { margin-top: 16px; }
.row__il { width: min(280px, 72%); margin: 24px auto 0; }
.row__chocho { position: absolute; top: -44px; right: 8px; width: 72px; }

/* スマホでは顔を上に置き、文の幅を取る（横に並べると1行が10字ほどになり、句が1つずつ落ちる）。
   形は吹き出し（左下だけ角を小さくする） */
.quote {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 12px;
  align-items: center;
  max-width: 880px;
  margin: 72px auto 0;
  padding: 28px 20px 24px;
  border-radius: 32px 32px 32px 8px;
  background: var(--sage);
  text-align: center;
}
.quote img { width: 96px; }
.quote blockquote p { font-size: 18px; font-weight: 700; line-height: 1.7; }
.quote blockquote p span { display: inline-block; }
.quote figcaption { margin-top: 8px; color: var(--ink-2); font-size: 14px; }

/* ---------- 園にとって ---------- */

.school__grid { display: grid; gap: 40px; align-items: center; }
/* 挿絵（園長が書類を確かめる絵）は端末の下に流し、上へ少しだけ引き上げて、ふちと台にだけ掛ける（画面の字を隠さない）。
   端末の後ろには、地より一段濃いはちみつの丸みのある形を敷く。右上の隅に紙吹雪 */
.school__media { position: relative; isolation: isolate; }
.school__media::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -6%;
  right: -2%;
  bottom: 14%;
  left: 2%;
  border-radius: 58% 42% 46% 54% / 52% 44% 56% 48%;
  background: var(--honey-deep);
}
.school__media .device { width: 92%; margin-left: auto; }
.school__il { position: relative; width: min(300px, 62%); margin-top: -36px; }
.sec.school::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 24px;
  right: 16px;
  width: 200px;
  height: 120px;
  background: var(--confetti-dark);
  pointer-events: none;
}
.sec.school .card { box-shadow: 0 12px 32px rgba(120, 84, 10, .12); }
.school__cards { display: grid; gap: 20px; }
.card { padding: 28px 24px; border-radius: 24px; background: var(--white); }
.card h3 { margin-bottom: 8px; font-size: 20px; color: var(--ink); }
.note { max-width: 46em; margin-top: 40px; color: var(--ink-2); font-size: 14px; }

/* ---------- 保護者にとって ---------- */

.parent__grid { display: grid; gap: 40px; align-items: center; }
.parent__text p + p { margin-top: 16px; }
/* 電話の後ろにセージの丸、右上にはちみつの点 */
.parent__media {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: end;
  max-width: 520px;
  margin-inline: auto;
}
.parent__media::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 14%;
  left: 2%;
  width: 82%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sage);
}
.parent__media::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 4%;
  right: 6%;
  width: 84px;
  height: 56px;
  background-image: var(--dots);
  background-size: 14px 14px;
}
.parent__media .device { max-width: 280px; }
.parent__il { width: 100%; max-width: 220px; margin-left: -12px; }

/* ---------- 機能一覧 ---------- */

/* 森の緑の面に白いカード（色の段の2つ目。字は白で 12.9）。上の辺を弧にし、頂にちょうちょを止める。
   カードの挿絵の後ろには、セージとはちみつの楕円を互い違いに敷く */
.features {
  position: relative;
  isolation: isolate;
  margin: 40px var(--gut) 0;
  padding: 80px 0 64px;
  border-radius: 50% 50% var(--panel-r) var(--panel-r) / 56px 56px var(--panel-r) var(--panel-r);
  background: var(--forest);
  color: var(--white);
}
.features .h2 { color: var(--white); }
.features .h2::before { background: var(--honey); }
.features::before {
  content: "";
  position: absolute;
  top: -44px;
  left: calc(50% - 44px);
  width: 88px;
  height: 74px;
  background: url("img/chocho-192.webp") center / contain no-repeat;
  pointer-events: none;
}
.features::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 48px;
  right: 24px;
  width: 220px;
  height: 130px;
  background: var(--confetti-dark);
  pointer-events: none;
}
.features__grid { display: grid; gap: 24px; max-width: 560px; align-items: start; }
.fcard {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 28px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.fcard__head { padding: 24px 24px 0; font-size: 21px; line-height: 1.4; }
.fcard__sub { display: block; margin-top: 4px; color: var(--ink-2); font-size: 14px; font-weight: 400; letter-spacing: .06em; }
.fcard__il {
  width: auto;
  max-width: min(240px, 80%);
  height: 150px;
  object-fit: contain;
  margin: 16px auto 8px;
  background: radial-gradient(closest-side, var(--sage) 0 94%, transparent 100%);
}
.fcard:nth-child(2) .fcard__il { background-image: radial-gradient(closest-side, var(--honey-soft) 0 94%, transparent 100%); }
.fcard__list { margin: 0 20px; padding: 0 0 12px; list-style: none; }
.fcard__list li + li { border-top: 1px solid var(--line); }
.fcard__list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 4px;
  font-weight: 700;
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
}
.fcard__list summary::-webkit-details-marker { display: none; }
.fcard__list summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
  transition: transform .2s ease;
}
.fcard__list details[open] > summary::after { transform: rotate(45deg); }
.fcard__list summary:hover { color: var(--green-deep); }
.fcard__list summary:focus-visible { outline-offset: -3px; box-shadow: none; }
.fcard__list details p { padding: 0 4px 14px; color: var(--ink-2); font-size: 15px; line-height: 1.8; }
.features__note { margin-top: 32px; color: rgba(255, 255, 255, .88); font-size: 15px; }

/* ---------- ほいくんを作った理由 ---------- */

/* カードの後ろに、少し傾けた淡いはちみつの紙をもう1枚重ねる。スマホはカードが縦に長く、傾けると角が画面の外へ出るので、
   角度を小さくし、段の左右で切る（overflow-x: clip は縦には効かないので、上のちょうちょは切れない） */
.reason { position: relative; isolation: isolate; overflow-x: clip; padding: 104px 0 56px; }
.reason__card {
  position: relative;
  max-width: 960px;
  margin-inline: auto;
  padding: 56px 24px 40px;
  border-radius: 24px;
  background: var(--sage);
  color: var(--ink);
}
.reason__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--honey-soft);
  transform: rotate(-1deg);
}
.reason__chocho { position: absolute; top: -52px; right: 16px; width: 104px; }
.reason__title { margin-bottom: 24px; font-size: clamp(24px, 3.4vw, 34px); }
.reason__card p { max-width: 36em; }
.reason__card p + p { margin-top: 20px; }
.reason__card strong { color: var(--green-deep); background: linear-gradient(transparent 60%, rgba(243, 213, 138, .8) 60%); }

/* ---------- もとになった声 ---------- */

/* 方眼の白いカードの後ろに、逆に傾けたセージの紙を重ねる（スマホの角度と切り方は 理由 と同じ） */
.voice { position: relative; isolation: isolate; overflow-x: clip; padding: 56px 0 88px; }
.voice__card {
  position: relative;
  max-width: 960px;
  margin: 24px auto 0;
  padding: 64px 24px 40px;
  border-radius: 24px;
  background-color: var(--white);
  background-image:
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(46, 125, 79, .09) 27px 28px),
    repeating-linear-gradient(90deg, transparent 0 27px, rgba(46, 125, 79, .09) 27px 28px);
  box-shadow: var(--shadow);
}
.voice__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--sage-2);
  transform: rotate(1deg);
}
.ribbon {
  position: absolute;
  top: -20px;
  left: 24px;
  padding: 6px 24px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-size: 18px;
  white-space: nowrap;
}
.voice__il { width: min(220px, 70%); margin: 0 auto 24px; }
.voice__il--bottom { margin: 24px auto 0; }
.voice__card > p, .voice__quote { max-width: 34em; }
.voice__card > p + p, .voice__card > .voice__quote + p { margin-top: 16px; }
.voice__quote { margin-top: 20px; }
.voice__quote p { font-size: clamp(19px, 3.6vw, 24px); font-weight: 700; line-height: 1.6; }
/* 数字は本文の2倍近くにし、はちみつの手描きの丸で囲む（字は深い緑で 7.4） */
.num {
  display: inline-block;
  margin: 0 .1em;
  padding: .02em .32em .06em;
  border: 3px solid var(--honey-deep);
  border-radius: 50% 46% 52% 48% / 56% 50% 50% 44%;
  color: var(--green-deep);
  font-size: 1.8em;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  transform: rotate(-4deg);
}
/* 丸の前後のかっこを、丸と同じ行に置く */
.nobr { white-space: nowrap; }
.voice__src { color: var(--ink-2); font-size: 14px; }
.voice__src a { color: var(--ink-2); display: inline-block; padding-block: 12px; margin-block: -12px; }

/* ---------- いっしょに ---------- */

.join__grid { display: grid; gap: 24px; }
.join-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 24px;
  border-radius: 24px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 16px 40px rgba(10, 40, 24, .22);
}
.join-card h3 { color: var(--green-deep); font-size: 24px; }
.join-card p { flex: 1; }
.join-card img, .join-card video { width: min(280px, 80%); margin-inline: auto; }
.join-card .btn { width: 100%; }

/* ---------- よくある質問 ---------- */

.faq__list { display: grid; gap: 16px; }
.qa {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px 16px;
  align-items: center;
  padding: 24px 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
}
.qa__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
}
.qa h3 { font-size: 17px; line-height: 1.6; }
.qa p { grid-column: 1 / -1; }

/* ---------- 最後 ---------- */

/* 上だけ丸めた白い面を、フッターの上に載せる */
.final {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-inline: var(--gut);
  padding: 72px 0 0;
  border-radius: var(--panel-r) var(--panel-r) 0 0;
  background: var(--white);
}
.final::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grid);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 25% 40%, #000 0, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 25% 40%, #000 0, transparent 75%);
}
.final__in { display: flex; flex-direction: column; }
/* 「メールでご相談ください」は1つの句だと列より長く、inline-block の箱の中で折れて、マーカーが字の先まで伸びる。
   「メールで」「ご相談ください」に分けて、2つともにマーカーを引く（同じ行に並べば、すき間なく1本につながる） */
.final .h2 span + span { background: linear-gradient(transparent 64%, rgba(243, 213, 138, .9) 64%); }
.final .cta { width: 100%; margin-top: 0; }
.final__il { width: min(360px, 80%); margin: 40px auto 0; }

/* ---------- フッター ---------- */

.site-footer { padding: 56px 0 40px; background: var(--forest); color: rgba(255, 255, 255, .86); font-size: 14px; }
.site-footer__in { display: grid; gap: 24px; }
.site-footer__brand { display: flex; align-items: center; gap: 12px; }
.site-footer__brand img { width: 72px; }
.site-footer__name { color: var(--white); font-size: 30px; font-weight: 700; letter-spacing: .08em; }
.site-footer__info dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin-bottom: 16px; }
.site-footer__info dt { color: var(--white); font-weight: 700; }
.site-footer__info p { line-height: 1.8; }
.site-footer__info p + p { margin-top: 8px; }
.site-footer a { color: var(--white); overflow-wrap: anywhere; display: inline-block; padding-block: 12px; margin-block: -12px; }
.site-footer__copy { margin-top: 16px; }

/* ---------- 768px から ---------- */

@media (min-width: 768px) {
  :root { --gut: 16px; --panel-r: 48px; }
  body { font-size: 17px; }
  .wrap { padding-inline: 32px; }
  .hero__photo { border-radius: 36px; }
  .hero__lead { font-size: 17px; }
  .about { padding: 88px 0 72px; }
  .about__body { font-size: 18px; }
  .about__body .ln { display: block; }
  .side__card { grid-template-columns: 220px 1fr; align-items: center; gap: 40px; margin-top: -24px; padding: 40px 48px; border-radius: 36px; }
  .side__fig { max-width: none; padding: 20px; }
  .sec { padding: 88px 0; }
  .sec.school, .sec.parent { margin-top: 24px; }
  .sec.teacher::before { top: 32px; right: 40px; width: 168px; height: 168px; }
  .sec.join { margin-block: 96px 72px; }
  .sec.join::before, .sec.join::after { height: 28px; background-size: 56px 28px; }
  .sec.join::before { top: -27px; background-image: radial-gradient(circle at 50% 100%, var(--green) 0 27.5px, transparent 28px); }
  .sec.join::after { bottom: -27px; background-image: radial-gradient(circle at 50% 0, var(--green) 0 27.5px, transparent 28px); }
  .sec.join .wrap::before { top: -128px; right: 64px; width: 96px; height: 80px; }
  .sec.join .wrap::after { top: -70px; right: 150px; width: 160px; height: 110px; }
  .sec.school::after { width: 260px; height: 150px; top: 32px; right: 32px; }
  .tag { font-size: 20px; padding: 8px 26px 8px 20px; }
  .sec.teacher::after { left: 40px; bottom: 40px; width: 112px; height: 70px; }
  .quote { grid-template-columns: 140px 1fr; justify-items: stretch; gap: 32px; padding: 32px 40px; text-align: left; border-radius: 40px 40px 40px 10px; }
  .quote img { width: 100%; }
  .quote blockquote p { font-size: 22px; }
  .card { padding: 32px; }
  .card h3 { font-size: 22px; }
  .features { margin-top: 56px; padding: 112px 0 80px; border-radius: 50% 50% var(--panel-r) var(--panel-r) / 96px 96px var(--panel-r) var(--panel-r); }
  .features::before { top: -56px; left: calc(50% - 56px); width: 112px; height: 94px; }
  .features::after { top: 72px; right: 48px; width: 300px; height: 170px; }
  .features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
  /* 2列のときに最後の1枚が半幅で残らないよう、横いっぱいにして、絵を左・一覧を右に置く */
  .fcard:last-child:nth-child(odd) { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: center; }
  .fcard:last-child:nth-child(odd) .fcard__head { grid-column: 1 / -1; }
  .reason { padding: 120px 0 64px; }
  .reason__card { padding: 72px 64px 56px; border-radius: 36px; }
  .reason__card::before { transform: rotate(-2.5deg); }
  .reason__chocho { top: -64px; right: 48px; width: 132px; }
  .voice__card { padding: 72px 48px 48px; border-radius: 36px; }
  .voice__card::before { transform: rotate(2deg); }
  .ribbon { left: 48px; padding: 8px 28px; font-size: 20px; }
  .join__grid { grid-template-columns: 1fr 1fr; }
  .join-card { padding: 40px 32px; }
  .qa { grid-template-columns: 52px 1fr; gap: 8px 20px; padding: 28px 32px; }
  .qa__mark { width: 52px; height: 52px; font-size: 22px; }
  .qa h3 { font-size: 19px; }
  .qa p { grid-column: 2; }
  .final { padding-top: 88px; }
  .site-footer__in { grid-template-columns: auto 1fr; gap: 56px; align-items: start; }
}

/* ---------- 1024px から ---------- */

@media (min-width: 1024px) {
  :root { --head-h: 76px; --gut: 24px; --panel-r: 64px; }
  .logo { font-size: 26px; }
  .logo img { width: 56px; }
  .gnav { display: block; }

  /* 写真は --pl から右の端の手前（--gut）まで。右の2つの角を丸める。
     左は紙の無地から写真へ、紙の色の幕でつなぐ（写真の左の白い壁と紙がなじむ）。
     全面に敷くと、左の男の子（写真の横 41% から）がボタンの下に来るため、写真は右に寄せてある。
     --pt は写真の上の余白。--mx は写真の箱の中のマイクの横位置。カードはその真下に中央をそろえ、線はマイクからカードの上の辺まで */
  .hero {
    --pl: 27%;
    --pt: 16px;
    --pw: calc(100% - var(--pl) - var(--gut));
    --mx: calc(var(--pl) + var(--pw) * .7407);
    --cw: clamp(300px, 28vw, 420px);
    z-index: 2;
    height: clamp(560px, calc(56.25vw - 76px), 800px);
    overflow: visible;
  }
  .hero__photo {
    position: absolute;
    top: var(--pt);
    left: var(--pl);
    z-index: -2;
    width: var(--pw);
    height: calc(100% - var(--pt));
    margin: 0;
    border-radius: 0 var(--panel-r) var(--panel-r) 0;
  }
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, var(--paper) 0, var(--paper) var(--pl), rgba(250, 247, 241, .94) calc(var(--pl) + 3%), rgba(250, 247, 241, .72) 43%, rgba(250, 247, 241, .3) 52%, rgba(250, 247, 241, 0) 60%);
  }
  .hero__in { display: flex; align-items: center; height: 100%; padding-block: var(--pt) 24px; }
  .hero__text { max-width: clamp(440px, 38vw, 500px); }
  .hero__head { font-size: clamp(34px, 3.3vw, 42px); }
  .hero .cta { margin-inline: 0; }
  .hero .cta__note, .final .cta__note { text-align: left; }
  .hero__visual {
    display: block;
    position: absolute;
    z-index: 1;
    left: calc(var(--mx) - var(--cw) / 2);
    top: calc(100% - 150px);
    width: var(--cw);
  }
  .hero__visual .device {
    padding: 10px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: 0 24px 56px rgba(46, 35, 28, .2), 0 2px 6px rgba(46, 35, 28, .08);
  }
  .hero__visual .device img { border-radius: 12px; }
  .hero__wire {
    display: block;
    position: absolute;
    z-index: 1;
    left: var(--mx);
    top: calc(var(--pt) + (100% - var(--pt)) * .5141);
    width: 4px;
    height: calc((100% - var(--pt)) * .4859 - 150px);
    margin-left: -2px;
    border-radius: 2px;
    background: repeating-linear-gradient(180deg, var(--white) 0 10px, var(--green) 10px 20px);
    box-shadow: 0 0 0 1px rgba(22, 58, 40, .35);
  }
  .hero__wire::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 28px;
    height: 28px;
    border: 3px solid var(--green);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .9);
    transform: translate(-50%, -50%);
  }

  /* 右上にヒーローのカードが掛かるので、文は左の 58% に収める */
  .about { padding: 104px 0 96px; }
  .about .h2, .about__body { max-width: 58%; }

  .side__card { grid-template-columns: 280px 1fr; gap: 48px; margin-top: -32px; padding: 48px 56px; border-radius: 40px; }

  .sec { padding: 104px 0; }
  .sec.teacher::before { top: 44px; right: 56px; width: 200px; height: 200px; }
  .sec.teacher::after { left: 56px; bottom: 56px; }
  .row__body { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; }
  .row--rev .row__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .row--rev .row__media { order: 2; }
  .row__media::before { top: 12%; right: -4%; bottom: -8%; left: 8%; }
  .row--rev .row__media::before { right: 8%; left: -4%; }
  .row__chocho { width: 88px; top: -52px; right: -20px; }

  .school__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; }
  .school__media::before { left: -4%; right: -4%; }
  .school__il { width: min(320px, 54%); margin-top: -56px; margin-left: -2%; }

  .parent__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }

  .features { padding: 136px 0 96px; border-radius: 50% 50% var(--panel-r) var(--panel-r) / 128px 128px var(--panel-r) var(--panel-r); }
  .features::before { top: -64px; left: calc(50% - 64px); width: 128px; height: 108px; }
  .features::after { top: 96px; right: 64px; }
  .sec.join { margin-block: 112px 88px; padding-block: 112px; }
  .sec.join .wrap::before { top: -150px; right: 96px; width: 112px; height: 94px; }
  .sec.join .wrap::after { top: -84px; right: 196px; width: 190px; height: 130px; }
  .features__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fcard:last-child:nth-child(odd) { grid-column: auto; display: flex; align-items: stretch; }
  /* 3枚が一列にそろって見えないよう、まん中の1枚だけ下げる */
  .fcard:nth-child(2) { margin-top: 48px; }

  .voice__card { padding: 80px 64px 64px; min-height: 560px; }
  .voice__card > p, .voice__quote { max-width: 58%; }
  .voice__il { position: absolute; margin: 0; }
  .voice__il--top { top: 56px; right: 40px; width: 220px; }
  .voice__il--bottom { right: 40px; bottom: 32px; width: 240px; }

  /* 最後は左に見出しとボタン、右に動く挿絵 */
  .final { padding: 96px 0 48px; }
  .final__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; align-items: center; }
  .final .h2 { grid-column: 1; align-self: end; }
  .final .cta { grid-column: 1; align-self: start; margin-inline: 0; }
  .final__il { grid-column: 2; grid-row: 1 / span 2; width: min(440px, 100%); margin: 0 auto; }
}

/* ---------- 動き ---------- */

/* 読み込みのときに動かすのは、ヒーローのカードの1つだけ（400ms）。線の点は声が流れる向きにゆっくり動かす。
   ヘッダーはいつも同じ色なので、スクロールで動かす物は無い。
   透明にはしない（全体の撮影では幅が一瞬変わって動きがやり直され、カードが薄く写る） */
@keyframes rise { from { transform: translateY(16px); } to { transform: none; } }
@keyframes flow { to { background-position: 0 20px; } }

@keyframes up { from { transform: translateY(28px); } to { transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero__visual { animation: rise .4s ease-out both; }
  .hero__wire { animation: flow 1.6s linear infinite; }
}
/* スクロールで、カードと画面が下から少し上がって来る。透明にはしない（全体の撮影や、効かない所でも見えている） */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .row__media, .school__media, .parent__media, .card, .fcard, .join-card, .qa, .reason__card, .voice__card {
      animation: up linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover { transform: none; }
  video { display: none; }
  .il-still { display: block; }
}
