/* 鳥越塾 いきいき — スマホ優先
   色：緑（見出し・リンク）／オレンジ（お問い合わせ・電話のボタンだけ）／白と生成りの背景2種類
   Darumadrop One は強いので、ロゴの「いきいき」だけ
   余白：--s1〜--s5 の5段階だけを使う */
:root {
  --green: #2f7d4f;
  --green-deep: #24613d;
  --orange: #e8792a;
  --orange-deep: #cf6618;
  --ink: #1f2622;
  --ink-soft: #5f6661;
  --line: #e4e1da;
  --line-strong: #bdb8ae;
  --bg: #fff;
  --bg-alt: #f6f4ef;
  /* 薄い緑は白い面の上だけ（生成りの背景にじかに置かない） */
  --green-pale: #e8f2ec;
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 40px;
  --s5: 64px;
  --radius: 12px;
  --header-h: 56px;
  --hand: 'Darumadrop One', 'Zen Maru Gothic', sans-serif;
  --maru: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'Hiragino Sans', sans-serif;
  --sans: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', 'Meiryo', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 72px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--maru); font-weight: 700; line-height: 1.4; letter-spacing: .02em; font-feature-settings: 'palt'; margin: 0 0 var(--s2); }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.375rem; }
h3 { font-size: 1.0625rem; margin-bottom: var(--s1); }
p { margin: 0 0 var(--s2); text-wrap: pretty; }
h1, h2 { text-wrap: balance; }
ul, ol { margin: 0 0 var(--s2); }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--s2); }
.narrow { max-width: 760px; }
.small { font-size: .875rem; color: var(--ink-soft); }
.note { font-size: .875rem; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 100; background: #fff; padding: 8px; }
mark.tbd { background: #fff3a8; color: inherit; padding: 0 .2em; border-radius: 3px; }

/* ---------- header ---------- */
/* ページを移るとき、ヘッダーはそのままで本文だけを短くなじませる（対応ブラウザのみ） */
/* ページ移動：ヘッダーとお知らせはそのまま、本文は上へ抜けて下からふわっと入る。メニューの下線は次のページの項目へすべって移る */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
.site-header { view-transition-name: site-header; }
.notice { view-transition-name: notice; }
::view-transition-old(root) { animation: vt-out .2s ease-in both; }
::view-transition-new(root) { animation: vt-in .5s cubic-bezier(.2, .8, .2, 1) .16s both; }
::view-transition-group(nav-ink) { animation-duration: .45s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }
.nav-ink { display: none; }
main:focus { outline: none; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: var(--s2); height: var(--header-h); }
.logo { display: flex; align-items: center; gap: var(--s1); text-decoration: none; color: var(--ink); margin-right: auto; flex: none; white-space: nowrap; }
.logo-text { font-family: var(--hand); font-size: 1.5rem; line-height: 1; letter-spacing: .02em; color: var(--green); }
/* ロゴの「いきいき」は真ん中の「き」と「い」の間を 0.10em あける（名刺・印刷物と同じマスター） */
.kern { margin-left: .1em; }
.logo-text small { display: block; margin-bottom: 2px; font-family: var(--maru); font-weight: 700; font-size: .625rem; color: var(--ink-soft); letter-spacing: .2em; }
.header-tel { display: none; }
.menu-btn { width: 44px; height: 44px; margin-right: -8px; border: 0; background: none; display: grid; place-content: center; gap: 5px; cursor: pointer; padding: 0; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-btn b { position: absolute; left: -9999px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* メニューは開いたら画面の下まで覆う（下の本文のボタンが透けて見えないように） */
.site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; background: var(--bg); }
.site-nav.open { display: flex; flex-direction: column; }
.site-nav ul { list-style: none; margin: 0 auto; padding: var(--s1) var(--s2) var(--s3); max-width: 1080px; }
/* スマホのメニューは画面いっぱいの1枚。お問い合わせと電話は画面の下に寄せる */
.site-nav.open ul { display: flex; flex-direction: column; flex: 1 0 auto; width: 100%; padding-bottom: calc(var(--s3) + env(safe-area-inset-bottom)); }
.site-nav.open .nav-cta { margin-top: auto; padding-top: var(--s3); }
body.menu-open { overflow: hidden; }
body.menu-open .site-header { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: transparent; }
/* 開くときは、ふわっと出して項目を上から順に少しだけ持ち上げる */
@media (prefers-reduced-motion: no-preference) {
  .site-nav.open { animation: menu-in .25s ease-out both; }
  .site-nav.open li { animation: menu-item .45s cubic-bezier(.2, .8, .2, 1) both; }
  .site-nav.open li:nth-child(2) { animation-delay: .025s; }
  .site-nav.open li:nth-child(3) { animation-delay: .050s; }
  .site-nav.open li:nth-child(4) { animation-delay: .075s; }
  .site-nav.open li:nth-child(5) { animation-delay: .100s; }
  .site-nav.open li:nth-child(6) { animation-delay: .125s; }
  .site-nav.open li:nth-child(7) { animation-delay: .150s; }
  .site-nav.open li:nth-child(8) { animation-delay: .175s; }
  .site-nav.open li:nth-child(9) { animation-delay: .200s; }
  .site-nav.open li:nth-child(10) { animation-delay: .225s; }
}
@keyframes menu-in { from { opacity: 0; } }
@keyframes menu-item { from { opacity: 0; transform: translateY(8px); } }
.site-nav a { display: block; padding: 12px 0; text-decoration: none; color: var(--ink); font-family: var(--maru); font-weight: 700; }
.site-nav a[aria-current] { color: var(--green); }
.nav-tel { margin-top: var(--s2); }
.nav-tel a { display: flex; align-items: center; justify-content: center; gap: var(--s1); padding: 12px; border: 1px solid var(--line-strong); border-radius: 99px; color: var(--green); }
.nav-tel svg { width: 18px; height: 18px; }
.nav-cta { margin-top: var(--s2); }
.nav-cta + .nav-tel { margin-top: var(--s1); }
.site-nav .nav-cta a { display: flex; align-items: center; justify-content: center; gap: var(--s1); padding: 12px; border-radius: 99px; background: var(--orange); color: #fff; }
.nav-cta svg { width: 18px; height: 18px; }
.header-cta { display: none; }
/* メニューを開いている間は、下の帯（電話・お問い合わせ）を隠す。同じボタンがメニューの中にあるため */
body.menu-open .mobile-bar { display: none; }

/* ---------- notice（1行。タップで全文） ---------- */
.notice { background: var(--bg-alt); cursor: pointer; }
.notice p { margin: 0 auto; padding: var(--s1) var(--s2); font-size: .875rem; display: flex; justify-content: center; gap: var(--s1); align-items: baseline; }
.notice b { flex: none; color: var(--ink); font-weight: 700; }
.notice p > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice.open p > span { white-space: normal; }
/* 1行に収まらないときは、ゆっくり横に流す（触ると止まる） */
.notice.flow p { justify-content: flex-start; max-width: none; padding-left: 0; padding-right: 0; }
.notice.flow p > span { text-overflow: clip; }
.notice .ticker { display: inline-flex; gap: 3em; animation: ticker var(--dur, 20s) linear infinite; }
.notice .ticker span { flex: none; }
.notice .ticker b { margin-right: .75em; }
.notice.flow:hover .ticker, .notice.paused .ticker { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(calc(-50% - 1.5em)); } }

/* ---------- buttons / links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s1); min-height: 52px; padding: 12px var(--s3); border-radius: 99px; text-decoration: none; font-family: var(--maru); font-weight: 700; font-size: 1rem; border: 1px solid transparent; cursor: pointer; }
.btn svg { width: 20px; height: 20px; }
.icon { width: 1.2em; height: 1.2em; flex: none; }
.btn-main { background: var(--orange); color: #fff; }
.btn-main:hover { background: var(--orange-deep); }
.btn-sub { background: var(--bg); color: var(--green); border-color: var(--line-strong); }
.btn-block { display: flex; width: 100%; }
.sec-end { margin: var(--s4) 0 0; text-align: center; }
.sec-end .btn { min-width: 240px; }
.sec-end .btn .icon { width: 18px; height: 18px; transition: transform .15s; }
.sec-end .btn:hover .icon { transform: translateX(3px); }

/* 控えめな動き：セクションがふわっと出る、ボタンが少し浮く。動きを減らす設定の人には出さない */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.is-in { opacity: 1; transform: none; }
  .btn { transition: background-color .15s, transform .15s; }
  .btn:hover { transform: translateY(-1px); }
}

/* ---------- photo placeholder ---------- */
.photo-ph { margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--bg-alt) repeating-linear-gradient(135deg, transparent 0 14px, rgba(0, 0, 0, .025) 14px 28px); display: grid; place-items: center; color: #9a958b; font-size: .8125rem; text-align: center; padding: var(--s2); }
.alt .photo-ph { background-color: #ebe8e0; }

/* ---------- sections ---------- */
.section { padding: var(--s5) 0; }
.alt { background: var(--bg-alt); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s3); }
.sec-head h2 { margin: 0; }
.two-col { display: grid; gap: var(--s3); }

.page-head { padding: var(--s4) 0 0; }
.page-head + .section, .page-head + .jump + .section { padding-top: var(--s4); }
.page-head h1 { margin: 0; }
.page-head .lead { margin: var(--s1) 0 0; color: var(--ink-soft); }

/* hero */
.hero { padding: var(--s2) 0 var(--s4); }
.hero-grid { display: grid; gap: var(--s3); }
.hero-photo .photo-ph { aspect-ratio: 16 / 10; }
.hero-place { margin: 0 0 var(--s1); font-size: .875rem; font-weight: 700; color: var(--green); }
.hero-catch { margin: 0 0 var(--s2); font-size: 1.75rem; line-height: 1.45; }
.hero-catch span { display: block; }
.hero-text { position: relative; z-index: 0; }
.hero-lead { color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin: var(--s3) 0 0; }
.hero-actions .btn { flex: 1 1 100%; }
.btn-sub { border: 1.5px solid var(--green); }


/* 合格実績：単独で大きく */
.result-band { overflow: hidden; padding: var(--s4) 0 var(--s5); text-align: center; }
.rb-year { margin: 0; font-size: .875rem; font-weight: 700; color: var(--ink-soft); }
.rb-main { position: relative; display: inline-block; margin: var(--s3) 0; padding: var(--s2) var(--s4); }
.rb-main span { position: relative; z-index: 1; display: block; font-family: var(--maru); font-weight: 700; font-size: 2rem; line-height: 1.35; color: var(--green); }
.rb-sub { margin: 0 0 var(--s1); font-size: .875rem; color: var(--ink-soft); }

/* お知らせ（日付とタイトルだけ） */
.news { padding-top: var(--s4); }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list a { display: grid; gap: 2px; padding: 10px 0; text-decoration: none; color: var(--ink); }
.news-list time { font-size: .8125rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
/* /news：旧サイトの新着情報のように、日付と本文をそのまま並べる */
.news-list.full { display: grid; gap: var(--s4); }
.news-list.full time { display: block; margin-bottom: 4px; font-weight: 700; }
.news-body p { margin: 0 0 var(--s1); }
.news-body p:last-child { margin: 0; }
.news-body a { color: var(--green); text-decoration: underline; }
.news-body a:hover { color: var(--green-deep); }
/* 管理ページで段落のあいだに入れた写真 */
.news-body figure, .article-body figure { margin: var(--s2) 0; }
.news-body figure:last-child { margin-bottom: 0; }
.article-body figure { margin: var(--s3) 0; }
.news-body figure img, .article-body figure img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.news-body figure img { max-width: 480px; }
.news-photos { display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: var(--s2); }
.news-photos img { width: 160px; border-radius: 8px; }

/* features：箱も罫線もなし、アイコンで区切る */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; }
.feature-list li { display: grid; grid-template-columns: 48px 1fr; gap: var(--s2); align-items: start; padding: var(--s2) 0; }
.feature-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--bg); color: var(--green); }
.feature-icon .icon { width: 28px; height: 28px; }
.feature-list h3 { margin-bottom: 4px; }
.feature-list p { margin: 0; color: var(--ink-soft); font-size: .9375rem; }

/* course summary：1行に1コース、月謝の目安を出す（行ごとリンク、矢印なし） */
.course-summary { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.course-summary li { border-bottom: 1px solid var(--line); }
.course-summary a { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name fee" "desc desc"; align-items: baseline; gap: 2px var(--s2); padding: var(--s2) 0; text-decoration: none; color: var(--ink); }
.course-summary a:hover b { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.course-summary b { grid-area: name; font-family: var(--maru); font-size: 1.0625rem; }
.course-summary span { grid-area: desc; font-size: .875rem; color: var(--ink-soft); }
.course-summary em { grid-area: fee; text-align: right; font-style: normal; font-weight: 700; font-size: .9375rem; color: var(--green); }

/* 教室：2つの教室を分けて見せる */
.facts { list-style: none; margin: 0 0 var(--s2); padding: 0; display: grid; gap: 4px; }
.facts li { display: flex; gap: var(--s1); align-items: flex-start; }
.facts .icon { color: var(--green); margin-top: .25em; }

/* 先生：写真＋ひとことの吹き出し */
.bubble { position: relative; background: var(--bg-alt); border-radius: 16px; padding: 12px var(--s2); margin: 0 0 var(--s2); font-family: var(--maru); font-weight: 500; }
.alt .bubble { background: var(--bg); }
.bubble::before { content: ""; position: absolute; top: -9px; left: 28px; border: 10px solid transparent; border-top: 0; border-bottom-color: var(--bg-alt); }
.alt .bubble::before { border-bottom-color: var(--bg); }

/* story */
/* 見出し → 写真 → 文。PCでは写真を左に置き、見出しと文を右に */
.story { display: grid; gap: var(--s3); }
.story .sec-head { margin-bottom: 0; }
.story .photo-ph { aspect-ratio: 16 / 9; }

/* teachers */
.teacher-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); }
.teacher { text-align: center; }
.teacher-head { display: grid; justify-items: center; gap: var(--s2); margin-bottom: var(--s2); }
.teacher-head h2, .teacher-head h3 { margin: 0; }
.teacher-head .role { margin: 2px 0 0; }
.photo-ph.face { width: 96px; aspect-ratio: 1; border-radius: 50%; padding: 8px; font-size: .6875rem; line-height: 1.4; }
.role { font-size: .875rem; color: var(--ink-soft); margin-bottom: var(--s1); }
.teacher .bubble { margin: 0; }
.teacher .bubble::before { display: none; }
/* 先生紹介ページの詳しいプロフィール */
.tp + .tp { margin-top: var(--s5); }
.tp-head { display: grid; justify-items: center; gap: var(--s2); text-align: center; margin-bottom: var(--s3); }
.tp-head .photo-ph.face { width: 120px; margin: 0; }
.tp-head h2 { margin: 0; line-height: 1.3; }
.tp-head h2 small { display: block; margin-bottom: 2px; font-size: .75rem; font-weight: 500; letter-spacing: .1em; color: var(--ink-soft); }
.tp-head .role { margin: 4px 0 0; font-size: .9375rem; }
.tp-msg { margin: 0 auto var(--s4); max-width: 560px; text-align: center; font-family: var(--maru); font-weight: 500; font-size: 1.0625rem; line-height: 1.9; }
.tp h3 { margin: 0 0 var(--s1); font-size: 1.0625rem; }
.tp-facts { display: grid; gap: var(--s2); margin: 0 0 var(--s4); }
.tp-facts div { display: grid; gap: 2px; }
.tp-facts dt { font-family: var(--maru); font-weight: 700; font-size: .8125rem; color: var(--green); }
.tp-facts dd { margin: 0; }
.tp-story { margin: 0 0 var(--s4); }
.tp-story p { margin: 0 0 var(--s1); }
.tp-qa { background: var(--bg-alt); border-radius: var(--radius); padding: var(--s3); }
.tp-qa dl { margin: 0; display: grid; gap: var(--s2); }
.tp-qa dt { font-family: var(--maru); font-weight: 700; }
.tp-qa dt::before { content: "Q. "; color: var(--green); }
.tp-qa dd { margin: 2px 0 0; color: var(--ink-soft); }

/* blog cards（箱を使うのはブログと料金だけ） */
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.post-card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.alt .post-card a { border-color: transparent; }
.post-card .thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-alt); }
.post-card .thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* 写真のない記事も同じ大きさの枠にして、カードの高さをそろえる（中はロゴの文字を薄く） */
.post-card .thumb-none { display: grid; place-items: center; background: var(--green-pale); font-family: var(--hand); font-size: 2rem; color: var(--green); }
.post-card .thumb-none > span { opacity: .4; }
.post-text { padding: var(--s2); }
.post-card h3 { margin: 4px 0; font-size: 1rem; }
.post-excerpt { margin: 0; font-size: .875rem; color: var(--ink-soft); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { display: flex; gap: var(--s2); align-items: center; margin: 0; font-size: .8125rem; color: var(--ink-soft); white-space: nowrap; }
/* ページ送り：丸い番号ボタン。今のページは緑で塗る */
.pager { display: flex; align-items: center; justify-content: center; gap: var(--s1); margin-top: var(--s4); }
.pager-nums { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.pager-num, .pager-step { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 4px; border-radius: 999px; font-family: var(--maru); font-weight: 700; font-size: 1rem; color: var(--ink); text-decoration: none; transition: background-color .15s, color .15s; }
.pager-num:hover, .pager-step:hover { background: var(--green-pale); color: var(--green-deep); }
.pager-num.is-current { background: var(--green); color: #fff; }
.pager-step { color: var(--green); }
.pager-step.is-off { color: var(--line-strong); }
.pager-step .icon { width: 20px; height: 20px; }
.pager-gap { min-width: 20px; text-align: center; color: var(--ink-soft); }
.pager-count { margin: var(--s1) 0 0; text-align: center; font-size: .8125rem; color: var(--ink-soft); }
@media (max-width: 360px) { .pager-num, .pager-step { min-width: 38px; height: 38px; } }
.empty { color: var(--ink-soft); }

.article { padding: var(--s4) 0 var(--s5); }
.article h1 { margin: var(--s1) 0 var(--s3); }
.crumbs { margin: 0 0 var(--s3); }
.crumbs a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px 6px 10px; margin-left: -10px; border-radius: 999px; font-family: var(--maru); font-weight: 700; font-size: .875rem; color: var(--ink-soft); text-decoration: none; transition: color .15s, background .15s; }
.crumbs a:hover { color: var(--green); background: var(--bg-alt); }
.crumbs .icon { width: 16px; height: 16px; transition: transform .15s; }
.crumbs a:hover .icon { transform: translateX(-3px); }
.article-photos { display: grid; gap: var(--s2); margin: var(--s3) 0 0; }
.article-photos figure { margin: 0; }
.article-photos img { border-radius: var(--radius); width: 100%; }
/* ブログ本文は読みものなので、ふつうの文（1.75）より行間と段落の間をたっぷり */
.article-body { font-size: 1.0625rem; line-height: 2.05; letter-spacing: .02em; }
.article-body p { margin: 0 0 1.4em; }
.article-body h2 { font-size: 1.1875rem; margin: var(--s4) 0 var(--s1); }
/* 記事の下の「前の記事／次の記事」。箱は使わず文字だけで軽く、スマホでも左右に並べる */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); margin: var(--s4) 0 0; }
.post-nav-link { display: flex; flex-direction: column; gap: 4px; padding: var(--s1) 12px; border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: background-color .15s; }
.post-nav-link:hover { background: var(--bg-alt); }
.post-nav-link.prev { margin-left: -12px; }
.post-nav-link.next { margin-right: -12px; align-items: flex-end; text-align: right; }
.post-nav-label { display: inline-flex; align-items: center; gap: 6px; font-family: var(--maru); font-weight: 700; font-size: .8125rem; color: var(--green); }
.post-nav-label .icon { width: 16px; height: 16px; transition: transform .15s; }
.post-nav-link.prev:hover .icon { transform: translateX(-3px); }
.post-nav-link.next:hover .icon { transform: translateX(3px); }
.post-nav-title { font-weight: 700; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 640px) { .post-nav { gap: var(--s3); } }
.author { margin-top: var(--s4); font-size: .875rem; color: var(--ink-soft); }
.preview-flag { background: #fff3a8; padding: var(--s1) var(--s2); border-radius: 8px; font-weight: 700; }

/* prose / about */
.prose h2 { margin: var(--s5) 0 var(--s2); }
.prose h2:first-child { margin-top: 0; }
.prose .photo-ph { margin: var(--s4) 0; aspect-ratio: 3 / 2; }
.quote { margin: var(--s4) 0; padding: 4px 0 4px var(--s3); border-left: 3px solid var(--green); }
.quote p { margin: 0; font-family: var(--maru); font-weight: 700; font-size: 1.25rem; line-height: 1.7; color: var(--green-deep); }
.quote span { display: inline-block; }
.policy-list { margin: 0; }
.policy-list > div { padding: var(--s2) 0; }
.policy-list dt { font-family: var(--maru); font-weight: 700; font-size: 1.0625rem; margin-bottom: 4px; }
.policy-list dd { margin: 0; }

/* course */
.jump { z-index: 40; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.jump .wrap { display: flex; gap: var(--s1); overflow-x: auto; padding-top: var(--s1); padding-bottom: var(--s1); scrollbar-width: none; }
.jump + .section { padding-top: var(--s4); }
.jump a { flex: none; padding: 4px 14px; border-radius: 99px; border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; font-size: .875rem; font-weight: 700; }
/* 最初は隠し、ページの見出しが上に抜けたらヘッダーの下からすっと出す（site.js が .show を付ける） */
.jump { position: fixed; top: var(--header-h); left: 0; right: 0; transform: translateY(-100%); visibility: hidden; transition: transform .35s cubic-bezier(.2, .8, .2, 1), visibility 0s .35s; }
.jump.show { transform: none; visibility: visible; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
@media (prefers-reduced-motion: reduce) { .jump, .jump.show { transition: none; } }
/* スマホ：なるべく1行に収め、はみ出すときは右端をぼかして横にすべらせられることを見せる */
@media (max-width: 759.98px) {
  .jump .wrap { gap: 6px; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
  .jump a { padding: 4px 11px; font-size: .8125rem; }
}
.yen { white-space: nowrap; font-size: .8125em; }
.yen b { font-size: 1.23em; }
.table-wrap { overflow-x: auto; margin-bottom: var(--s2); }
.overview-table, .data-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.overview-table th, .overview-table td, .data-table th, .data-table td { padding: 10px var(--s1); text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.overview-table thead th, .data-table thead th { font-size: .8125rem; color: var(--ink-soft); font-weight: 700; border-bottom-color: var(--line-strong); }
.overview-table tbody th { font-family: var(--maru); white-space: nowrap; }
.overview-table tbody th a { color: var(--ink); text-decoration: none; }
.overview-table tbody th { width: 7em; padding-top: 10px; }
.overview-table .fee-lines li { padding: 1px 0; }
.data-table tbody th { font-weight: 400; white-space: nowrap; }
.course-list { display: grid; gap: var(--s2); }
.course-card { background: var(--bg); border-radius: var(--radius); padding: var(--s3) var(--s2); }
.course-group { margin: 0; font-size: .8125rem; font-weight: 700; color: var(--ink-soft); }
.course-card h3 { font-size: 1.1875rem; margin-bottom: var(--s1); }
.course-content { padding-left: 1.2em; font-size: .9375rem; color: var(--ink-soft); }
.course-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.course-table th, .course-table td { padding: 10px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.course-table th { width: 5.5em; font-weight: 700; font-size: .8125rem; color: var(--ink-soft); padding-top: 12px; }
.fee-lines { list-style: none; margin: 0; padding: 0; }
.fee-lines li { display: flex; justify-content: space-between; gap: var(--s2); }
.fee-lines li span:first-child { color: var(--ink-soft); }
.info-dl { display: grid; grid-template-columns: 6em 1fr; margin: 0 0 var(--s3); font-size: .9375rem; }
.info-dl dt { font-weight: 700; font-size: .8125rem; color: var(--ink-soft); padding: 8px 0 6px; }
.info-dl dd { margin: 0; padding: 6px 0; }

/* results */
.result-lead { padding: var(--s3) var(--s2); margin-bottom: var(--s5); background: var(--bg-alt); border-radius: var(--radius); text-align: center; }
.result-year { margin: 0; font-size: .875rem; font-weight: 700; color: var(--ink-soft); }
.result-big { margin: 4px 0 var(--s1); font-family: var(--maru); font-size: 1.875rem; font-weight: 700; color: var(--green); line-height: 1.4; }
.result-lead .small { margin: 0; }
.section h2 + .table-wrap, .sec-head + .table-wrap { margin-bottom: var(--s5); }
.school-list + .small { margin: var(--s1) 0 var(--s4); }
.school-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s2); font-size: .9375rem; }
.school-list li { padding: 4px 0; }

/* access */
.room + .room { margin-top: var(--s5); }
.route { padding-left: 1.4em; }
.map-wrap { position: relative; margin: 0 0 var(--s2); border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg-alt); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.room-sub { margin-top: var(--s1); }
.room-sub p { margin: 0; }
.room .photo-ph { margin-bottom: var(--s3); aspect-ratio: 3 / 2; }

/* contact */
.cw-tel { display: inline-flex; align-items: center; gap: 6px; font-family: var(--maru); font-weight: 700; font-size: 1.375rem; }
.cw-tel svg { width: 20px; height: 20px; }
.contact-form { display: grid; gap: var(--s3); }
.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 6px; padding: 0; }
.req { display: inline-block; vertical-align: 2px; margin-left: 8px; padding: 1px 6px; font-size: .6875rem; font-weight: 700; line-height: 1.5; color: #fff; background: var(--green); border-radius: 4px; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field textarea, .field select {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff;
}
.field select { appearance: none; padding-right: 40px; color: var(--ink); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235f6661' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--green); outline-offset: -1px; border-color: var(--green); }
.choices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.choices-purpose, .choices-reply { grid-template-columns: 1fr 1fr; }
.field label small { display: block; font-weight: 400; font-size: .8125rem; color: var(--ink-soft); }
.opt { font-size: .75rem; font-weight: 400; color: var(--ink-soft); margin-left: 6px; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: flex; align-items: center; justify-content: center; height: 100%; padding: 10px 6px; line-height: 1.4; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; cursor: pointer; text-align: center; font-size: .875rem; }
.choice input:checked + span { background: var(--green); border-color: var(--green); color: #fff; font-weight: 700; }
.choice input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.form-error { color: #c0392b; font-weight: 700; margin: 0; }
.form-send { display: grid; gap: var(--s1); margin-top: var(--s1); }
.form-send .small { margin: 0; text-align: center; }
.contact-form[hidden], .form-done[hidden], .fd-mail[hidden] { display: none; }
.cf-turnstile { min-height: 65px; }
/* 送信後はフォームの場所にこれだけ出す */
.form-done { text-align: center; outline: none; }
.form-done > .icon { width: 64px; height: 64px; color: var(--green); }
.form-done h2 { margin: var(--s2) 0 var(--s2); }
.form-done p { margin: 0 0 var(--s1); }
.form-done strong { word-break: break-all; }
.fd-mail { margin-top: var(--s3); font-size: .875rem; color: var(--ink-soft); }
.fd-mail p { text-wrap: balance; }
.fd-mail strong { font-size: 1rem; color: var(--ink); }
.form-done .sec-end { margin-top: var(--s4); }
@media (prefers-reduced-motion: no-preference) {
  .form-done:not([hidden]) { animation: vt-in .45s ease both; }
}

/* ページ末の相談の帯（スマホでも出す） / footer */
.cta { padding: var(--s5) 0; }
.cta-card { background: var(--green); color: #fff; border-radius: 24px; padding: var(--s5) var(--s3); text-align: center; }
.cta h2 { font-size: 1.5rem; margin-bottom: var(--s1); }
.cta p { margin: 0 auto; max-width: 30em; color: #e4f1e8; }
.cta-buttons { display: grid; gap: 12px; max-width: 420px; margin: var(--s3) auto 0; }
.btn-line { background: #fff; color: var(--green); font-size: 1.125rem; }
.cta .cta-hours { margin-top: var(--s2); font-size: .8125rem; }
.site-footer { background: var(--ink); color: #c8cec9; padding: var(--s4) 0 var(--s3); font-size: .875rem; }
/* スマホは下部バーの裏に隠れないよう、フッターの下にバーの高さ分の余白をとる */
body:not(.no-bar) .site-footer { padding-bottom: calc(var(--s3) + 61px + env(safe-area-inset-bottom)); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer b { color: #fff; font-weight: 700; }
.footer-inner { display: grid; gap: var(--s3); }
.footer-name { font-family: var(--maru); font-size: 1.125rem; font-weight: 700; color: #fff; }
.footer-nav { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s1) var(--s2); }
.copy { margin: var(--s3) auto 0; font-size: .75rem; opacity: .6; }

.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s1); padding: var(--s1) var(--s2) calc(var(--s1) + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); }
.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 6px; height: 44px; border-radius: 99px; text-decoration: none; font-family: var(--maru); font-weight: 700; font-size: .9375rem; color: var(--green); border: 1px solid var(--line-strong); }
.mobile-bar a + a { background: var(--orange); border-color: var(--orange); color: #fff; }
.mobile-bar svg { width: 18px; height: 18px; }

/* ---------- タブレット・PC ---------- */
@media (min-width: 760px) {
  :root { --header-h: 72px; }
  body:not(.no-bar) .site-footer { padding-bottom: var(--s3); }
  .mobile-bar { display: none; }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.625rem; }
  .section { padding: 96px 0; }
  .header-tel { display: flex; align-items: center; gap: 6px; font-family: var(--maru); font-weight: 700; font-size: 1.0625rem; text-decoration: none; color: var(--green); white-space: nowrap; }
  .header-tel svg { width: 18px; height: 18px; }
  .header-cta { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; border-radius: 99px; background: var(--orange); color: #fff; font-family: var(--maru); font-weight: 700; font-size: .9375rem; text-decoration: none; white-space: nowrap; }
  .header-cta:hover { background: var(--orange-deep); }
  .header-cta svg { width: 18px; height: 18px; }
  .page-head { padding: var(--s5) 0 0; }
  .page-head + .section { padding-top: var(--s5); }
  .hero { padding: var(--s5) 0; }
  .hero-grid { grid-template-columns: 1fr 1.1fr; align-items: center; gap: var(--s5); }
  .hero-photo { order: 2; }
  .hero-photo .photo-ph { aspect-ratio: 4 / 3; }
  .hero-actions .btn { flex: none; }
  .two-col { grid-template-columns: 1fr 1fr; gap: var(--s5); align-items: center; }
  .two-col.top { align-items: start; }
  .access-home { grid-template-areas: "main map" "sub map"; grid-template-rows: auto 1fr; row-gap: var(--s3); }
  .room-main { grid-area: main; }
  .room-map { grid-area: map; }
  .room-sub { grid-area: sub; margin-top: 0; }
  .feature-list { grid-template-columns: 1fr 1fr; column-gap: var(--s4); }
  /* 幼児→高校生が左から順に読めるよう、横一列に4つ並べる */
  /* 幼児→高校生を上から1行ずつ。名前・料金・説明を横一列にして読み比べやすく */
  .course-summary a { grid-template-columns: 7em 1fr auto; grid-template-areas: "name desc fee"; }
  .course-summary span { font-size: .9375rem; }
  .story { grid-template-columns: 1fr 1.1fr; grid-template-areas: "photo head" "photo body"; grid-template-rows: auto 1fr; gap: var(--s3) var(--s5); }
  .story .sec-head { grid-area: head; align-self: end; }
  .story .photo-ph { grid-area: photo; align-self: center; }
  .story-body { grid-area: body; }
  .teacher-list { grid-template-columns: 1fr 1fr; gap: var(--s4); }
  .tp-facts { grid-template-columns: 1fr 1fr; gap: var(--s3) var(--s4); }
  .tp-qa { padding: var(--s3) var(--s4); }
  .story .photo-ph { aspect-ratio: 3 / 2; }
  .hero-catch { font-size: 2.25rem; }
  .rb-main span { font-size: 2.5rem; }
  
  .post-list { grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
  .policy-list > div { display: grid; grid-template-columns: 12em 1fr; gap: var(--s3); }
  .course-list { grid-template-columns: 1fr 1fr; gap: var(--s3); }
  .course-card { padding: var(--s4) var(--s4) var(--s3); }
  .jump .wrap { justify-content: center; }
  .school-list { grid-template-columns: repeat(3, 1fr); }
  .quote { margin: var(--s5) 0; }
  .quote p { font-size: 1.5rem; }
  .cta h2 br { display: none; }
  .cta h2 { font-size: 1.875rem; }
  .cta-buttons { grid-template-columns: 1fr 1fr; max-width: 640px; }
  .footer-inner { grid-template-columns: 1.4fr 1fr; gap: var(--s5); }
  .footer-nav { align-content: start; }
}
@media (min-width: 1100px) {
  .menu-btn { display: none; }
  .site-nav, .site-nav.open { display: block; position: static; height: auto; overflow: visible; background: none; border: 0; box-shadow: none; animation: none; }
  .site-nav ul, .site-nav.open ul { display: flex; flex-direction: row; gap: 20px; width: auto; padding: 0; margin: 0; }
  .site-nav.open li { animation: none; }
  body.menu-open { overflow: visible; }
  .site-nav a { padding: 4px 0; font-size: .875rem; white-space: nowrap; border-bottom: 2px solid transparent; }
  .site-nav a { position: relative; }
  .nav-ink { display: block; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--green); view-transition-name: nav-ink; }
  .site-nav li:first-child, .nav-tel, .nav-cta { display: none; }
  /* PCのヘッダーは電話番号を出さずにすっきりさせる（電話は相談カードとフッターにある） */
  .header-tel { display: none; }
  .header-cta { margin-left: var(--s4); }
  .site-nav ul { gap: 28px; }
}

@media (min-width: 1200px) {
  .site-nav ul { gap: 32px; }
}
