/* =====================================================================
   学習塾まほろば 公式サイト
   色・囲み・ボタンは、今のホームページ（スタッフが作ったもの。子テーマ lightning-pro-child の style.css）の値をそのまま写した。
   変えたのは、文字（Zen Maru Gothic）・動き・ヘッダーとスマホの下の固定ナビ・コードの整理
   ===================================================================== */
:root {
  --ink: #573F27;          /* 文字（茶） */
  --ink-2: #7a6250;        /* 補足の文字 */
  --lime: #b1ca67;         /* ボタン・テーマの色 */
  --green: #7cb869;        /* ボタンのふち・チェック */
  --green-2: #7fc06c;      /* STEP3・付箋のおり目 */
  --green-deep: #4c873a;   /* 緑の文字（白地で読める濃さ） */
  --yellow: #f2c35d;       /* テープ・点線・影 */
  --yellow-2: #fbc95c;     /* 付箋のおり目 */
  --accent: #d4880f;       /* 本文の強調の文字（オレンジ） */
  --card: #f8f7ec;         /* カードの面 */
  --tokuchou: #ecf2d9;     /* 「3つのポイント」の面（#b1ca67 の 25%） */
  --faq-bg: #fbfaf6;       /* よくある質問の面 */
  --faq-row: #f7f2ed;      /* 質問の行 */
  --beige: #f3ebe5;        /* アクセスの面 */
  --orange-pale: #fdefd2;  /* 付箋（授業料） */
  --green-pale: #e6f2e2;   /* 付箋（その他の費用） */
  --step-line: #dfccb8;
  --line-green: #06C755;
  --shadow: 4px 4px 4px rgba(0, 0, 0, .4);
  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --hd-h: 88px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hd-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); background: #fff;
  font-family: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'BIZ UDPGothic', 'Meiryo', sans-serif;
  font-weight: 500; font-size: 16px; line-height: 1.8; letter-spacing: .03em;
  word-break: auto-phrase; line-break: strict; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
em { font-style: normal; font-weight: 900; color: var(--accent); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* ---------- ヘッダー（WordPress のヘッダーを作り直した） ---------- */
.hd { position: sticky; top: 0; z-index: 50; background: #fff; transition: box-shadow .3s; }
.hd.is-scrolled { box-shadow: 0 4px 18px rgba(87, 63, 39, .1); }
.hd-in { max-width: 1240px; margin: 0 auto; padding: 0 24px; height: var(--hd-h); display: flex; align-items: center; gap: 24px; }
.hd-logo img { height: 58px; width: auto; }
.hd-nav { margin-left: auto; }
.hd-nav ul { display: flex; gap: 6px; }
.hd-nav a { display: block; padding: 8px 12px; font-size: 15px; font-weight: 700; text-decoration: none; border-radius: 99px; position: relative; transition: background .25s; }
.hd-nav a:hover { background: var(--tokuchou); }
.hd-nav a[aria-current] { background: var(--tokuchou); }
.hd-line { flex: none; display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 99px; background: var(--line-green); color: #fff; font-weight: 900; font-size: 14.5px; text-decoration: none; box-shadow: 0 3px 0 #05a648; transition: transform .2s, box-shadow .2s; }
.hd-line:hover { transform: translateY(2px); box-shadow: 0 1px 0 #05a648; }


/* ---------- 共通の区画と見出し（今のサイトの .tokuchou-title / .faq h2 と同じ） ---------- */
.sec { padding: 96px 24px; position: relative; }
.sec-in { max-width: 1110px; margin: 0 auto; }
.sec-h2 { text-align: center; font-size: 40px; font-weight: 900; line-height: 1.6; letter-spacing: .15em; margin-bottom: 48px; }
.sec-h3 { text-align: center; font-size: 24px; font-weight: 700; line-height: 1.68; letter-spacing: .15em; border-bottom: 3px dashed var(--yellow); margin: 0 .8em 28px; }
.sec-lead { text-align: center; font-weight: 700; margin: -24px auto 40px; max-width: 40em; }
.bg-tokuchou { background: var(--tokuchou); }
.bg-faq { background: var(--faq-bg); }
.bg-beige { background: var(--beige); }

/* ---------- ボタン（今のサイトの .tokuchou-button / .faq-button と同じ形） ---------- */
.btn {
  position: relative; display: flex; justify-content: space-between; align-items: center; gap: 1em;
  width: 300px; max-width: 100%; margin: 0 auto; padding: 1em 2em; border-radius: 50vh;
  background: var(--lime); color: var(--ink); font-size: 18px; font-weight: 700; letter-spacing: .1em; line-height: 1.68;
  text-decoration: none; box-shadow: var(--shadow); transition: background .3s;
}
.btn::before { content: ''; position: absolute; top: -5px; left: -5px; width: calc(100% - 4px); height: calc(100% - 4px); border: 2px solid var(--green); border-radius: 50vh; transition: top .2s, left .2s; }
.btn::after { content: ''; flex: none; width: 10px; height: 10px; border-top: 3px solid var(--card); border-right: 3px solid var(--card); transform: rotate(45deg); }
.btn:hover { background: var(--yellow); }
.btn:hover::before { top: 0; left: 0; }
.btn-wrap { margin-top: 48px; }
.btn-line {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 280px; padding: 16px 30px;
  border-radius: 99px; background: var(--line-green); color: #fff; font-size: 19px; font-weight: 900; letter-spacing: .06em; text-decoration: none;
  box-shadow: 0 5px 0 #05a648; transition: transform .2s, box-shadow .2s;
}
.btn-line:hover { transform: translateY(3px); box-shadow: 0 2px 0 #05a648; }
.ic-line { width: 26px; height: 26px; flex: none; }

/* ---------- 最初の画面（スライドショーをやめて作り直した） ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 24px 88px; background:
  radial-gradient(60% 70% at 18% 30%, #fffbe9 0%, transparent 70%),
  radial-gradient(50% 60% at 85% 70%, #f4f7dc 0%, transparent 70%),
  linear-gradient(160deg, #fdf8e4 0%, #f3f2d3 55%, #eef1cf 100%); }
.hero-in { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.hero-catch { font-size: clamp(28px, 4.1vw, 50px); font-weight: 900; line-height: 1.5; letter-spacing: .06em; text-shadow: 0 0 18px #fff, 0 0 6px #fff; }
.hero-catch span { display: block; }
.hero-sub { margin-top: 18px; font-size: clamp(17px, 1.9vw, 23px); font-weight: 900; letter-spacing: .08em; text-shadow: 0 0 12px #fff; }
.hero-badge { display: flex; width: fit-content; align-items: baseline; gap: .2em; margin-top: 26px; padding: 10px 26px 12px; background: #fff; border-radius: 99px; box-shadow: 0 6px 18px rgba(212, 136, 15, .18); font-weight: 900; color: var(--ink); font-size: 18px; }
.hero-badge b { font-size: 46px; line-height: 1; color: #ee8a1e; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.hero-badge i { font-style: normal; color: #ee8a1e; font-size: 26px; }
.hero-cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 18px 22px; align-items: center; }
.hero-cta .btn { margin: 0; width: 280px; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 40px; box-shadow: 6px 6px 0 var(--yellow); }
.hero-photo figcaption { position: absolute; left: 18px; bottom: -16px; background: #fff; padding: 6px 16px; border-radius: 99px; font-size: 14px; font-weight: 700; box-shadow: 0 4px 12px rgba(87, 63, 39, .15); }
/* 背景の飾り：ぼんやりした光の玉・星・葉の丸（今のスライドの絵の雰囲気） */
.hero-deco { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-deco .bk { position: absolute; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .95), rgba(255, 255, 255, .25) 60%, rgba(255, 255, 255, 0) 72%); animation: float 14s ease-in-out infinite; }
.hero-deco .dot { position: absolute; border-radius: 50%; animation: float 11s ease-in-out infinite; }
.hero-deco .star { position: absolute; color: var(--yellow); animation: twinkle 4.5s ease-in-out infinite; }
.hero-deco .blob { position: absolute; border-radius: 47% 53% 45% 55% / 52% 46% 54% 48%; background: radial-gradient(circle at 40% 40%, #c9d97c, #a9c35a); opacity: .9; }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(10px, -16px); } }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.82) rotate(12deg); opacity: .75; } }

/* ---------- 3つのポイント（今のサイトの .tokuchou-box と同じ） ---------- */
.point { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 64px; align-items: start; }
.point + .point-h { margin-top: 100px; }
.point-img img { border-radius: 50px; box-shadow: 4px 4px 4px var(--yellow); margin: 20px auto 0; width: 100%; max-width: 300px; }
.point-box { position: relative; background: var(--card); padding: 15px 15px 15px; box-shadow: var(--shadow); text-align: left; }
.point-box::before { content: ''; display: block; width: 200px; height: 35px; margin: -25px auto 0; background: var(--yellow); opacity: .4; transform: rotate(-3deg); }
.point-box p { font-weight: 900; font-size: 16px; line-height: 1.68; margin: 1em 0; }

/* ---------- 教室（校舎）のカード ---------- */
.school-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; background: #fff; border-radius: 30px; padding: 32px; box-shadow: 0 10px 30px rgba(87, 63, 39, .08); }
.school-card img { border-radius: 24px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; box-shadow: 4px 4px 4px var(--yellow); }
.school-name { font-size: 28px; font-weight: 900; letter-spacing: .08em; }
.school-name small { display: block; font-size: 15px; color: var(--green-deep); letter-spacing: .12em; }
.school-meta { margin: 14px 0 24px; display: grid; gap: 6px; font-weight: 700; }
.school-meta li { display: flex; gap: 10px; }
.school-meta li::before { content: ''; flex: none; width: 8px; height: 8px; margin-top: .75em; border-radius: 50%; background: var(--lime); }
.school-btns { display: flex; flex-wrap: wrap; gap: 18px; }
.school-btns .btn { margin: 0; width: 260px; }

/* ---------- 授業料（今のサイトの .course-box1 / .course-box2 と同じ付箋） ---------- */
.fees { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; align-items: start; }
.note-box { position: relative; padding: 1.3em .9em; border: 2px dashed #fff; }
.note-box.y { background: var(--orange-pale); box-shadow: 0 0 0 5px var(--orange-pale); }
.note-box.g { background: var(--green-pale); box-shadow: 0 0 0 5px var(--green-pale); }
.note-box::after { content: ''; position: absolute; right: -7px; top: -7px; border-width: 0 15px 15px 0; border-style: solid; box-shadow: -1px 1px 1px rgba(0, 0, 0, .15); }
.note-box.y::after { border-color: var(--yellow-2) #fff var(--yellow-2); }
.note-box.g::after { border-color: var(--green-2) #fff var(--green-2); }
.note-box h3 { text-align: center; font-size: 20px; font-weight: 700; letter-spacing: .1em; line-height: 1.68; margin-bottom: 14px; }
.checks li { display: flex; gap: .4em; font-weight: 900; line-height: 1.68; padding: .35em .4em; }
.checks li::before { content: ''; flex: none; width: .5em; height: .9em; margin: .2em .2em 0 .1em; border: solid var(--green); border-width: 0 3px 3px 0; transform: rotate(40deg); }
.checks .num { color: #ee8a1e; font-variant-numeric: tabular-nums; }
.checks small { font-weight: 700; color: var(--ink-2); }

/* ---------- よくある質問（色・形は今のまま。開け閉めはブラウザの動きに任せる：答えの欄の高さ 0fr ↔ 1fr） ---------- */
.faq-list { display: grid; gap: 14px; }
.qa { background: var(--faq-row); border-radius: 22px; transition: box-shadow .35s; }
.qa:hover { box-shadow: 0 6px 18px rgba(87, 63, 39, .08); }
.qa.open { box-shadow: 0 10px 26px rgba(87, 63, 39, .1); }
.qh { margin: 0; font: inherit; }
.qb { width: 100%; font: inherit; color: inherit; text-align: left; background: none; border: 0; cursor: pointer; display: grid; grid-template-columns: 38px minmax(0, 1fr) 34px; gap: 14px; align-items: center; padding: 15px 18px; font-weight: 900; font-size: 16px; line-height: 1.6; -webkit-tap-highlight-color: transparent; border-radius: 22px; }
.qa .q, .qa .ab { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 18px; line-height: 1; }
.qa .q { background: var(--green); color: #fff; transition: transform .5s var(--ease-out); }
.qa.open .q { transform: rotate(-10deg) scale(1.08); }
.qa .qi { position: relative; width: 34px; height: 34px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--lime); transition: transform .5s var(--ease-out), background .3s; }
.qa .qi::before, .qa .qi::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 3px; margin: -1.5px 0 0 -7px; border-radius: 2px; background: var(--green); transition: transform .5s var(--ease-out), background .3s; }
.qa .qi::after { transform: rotate(90deg); }
.qa.open .qi { background: var(--lime); transform: rotate(180deg); }
.qa.open .qi::before, .qa.open .qi::after { background: #fff; }
.qa.open .qi::after { transform: rotate(0deg); }
.qa .a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.4, 0, .2, 1); }
.qa.open .a { grid-template-rows: 1fr; }
.qa .a-clip { min-height: 0; overflow: hidden; }
.qa .a-in { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; padding: 0 18px 20px; opacity: 0; transform: translateY(-6px); transition: opacity .3s ease, transform .45s var(--ease-out); }
.qa.open .a-in { opacity: 1; transform: none; transition-delay: .05s; }
.qa .ab { background: var(--yellow); color: var(--ink); margin-top: 12px; }
.qa .at { padding-top: 14px; border-top: 2px dashed var(--yellow); }
.qa .at p { line-height: 1.9; }
.qa .at p:first-child { font-weight: 900; color: var(--green-deep); }
.qa .at p + p { margin-top: .6em; }
@media (max-width: 960px) {
  .qb { grid-template-columns: 32px minmax(0, 1fr) 30px; gap: 10px; padding: 13px 12px; font-size: 15px; }
  .qa .q, .qa .ab { width: 32px; height: 32px; font-size: 16px; }
  .qa .qi { width: 30px; height: 30px; }
  .qa .a-in { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; padding: 0 12px 18px; }
  .qa .at p { font-size: 15px; }
}

/* ---------- 無料体験・お問い合わせ（今のサイトの .stepbar と同じ） ---------- */
.contact-lead { text-align: center; font-size: 22px; font-weight: 700; letter-spacing: .15em; border-bottom: 3px dashed var(--yellow); max-width: 1040px; margin: 0 auto 36px; }
.contact-line { text-align: center; margin-bottom: 56px; }
.steps { max-width: 760px; margin: 0 auto; }
.step { position: relative; display: grid; grid-template-columns: 3em minmax(0, 1fr); column-gap: 14px; padding-bottom: 34px; }
.step::before { content: ''; position: absolute; left: calc(1.5em - 1.5px); top: 3.4em; bottom: 6px; width: 3px; background: var(--step-line); }
.step:last-child::before { display: none; }
.step-no { width: 3em; height: 3em; border-radius: 50%; color: #fff; display: grid; place-items: center; text-align: center; font-weight: 900; font-size: 16px; line-height: 1; }
.step-no small { display: block; font-size: 10px; letter-spacing: .04em; }
.step:nth-child(1) .step-no { background: var(--yellow); }
.step:nth-child(2) .step-no { background: var(--lime); }
.step:nth-child(3) .step-no { background: var(--green); }
.step h3 { font-size: 19px; font-weight: 900; line-height: 3em; height: 3em; }
.step p { grid-column: 2; font-size: 15px; line-height: 1.9; }
.step p + p { margin-top: .6em; }

/* ---------- フッター ---------- */
.ft { background: var(--beige); padding: 56px 24px 40px; }
.ft-in { max-width: 1110px; margin: 0 auto; display: grid; gap: 22px; justify-items: center; text-align: center; }
.ft-logo img { height: 64px; width: auto; }
.ft-addr { font-size: 14.5px; line-height: 1.9; }
.ft-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; font-size: 14px; }
.ft-links a { text-decoration: none; }
.ft-links a:hover { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; }
.ft-copy { color: var(--ink-2); }

/* ---------- スマホの下の固定ナビ（WordPress のものを作り直した） ---------- */
.fixnav { display: none; }

/* ---------- スクロールで現れる動き（今のサイトの fadeInLeft / fadeInRight を整えたもの） ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform 1s var(--ease-out); }
.rv-l { transform: translateX(-36px); }
.rv-r { transform: translateX(36px); }
.rv.in { opacity: 1; transform: none; }
/* 横から現れる部品が、現れる前に画面の右へはみ出して、スマホで画面全体が横に広がらないように（2026-10-03 遼様のスマホで見つかった） */
html, body { overflow-x: clip; }
@media (max-width: 960px) { .rv-l, .rv-r { transform: translateY(26px); } }
.rv-d1 { transition-delay: .12s; } .rv-d2 { transition-delay: .24s; } .rv-d3 { transition-delay: .36s; }
.hero-catch .rise { display: block; }
.hero .rise { opacity: 0; transform: translateY(.6em); animation: rise 1.1s var(--ease-out) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv, .hero .rise { opacity: 1 !important; transform: none !important; }
}

.hd-nav a { white-space: nowrap; }

/* =====================================================================
   スマホ・タブレット
   ===================================================================== */
@media (max-width: 960px) {
  :root { --hd-h: 64px; }
  .hd-in { padding: 0 14px; gap: 10px; }
  .hd-logo img { height: 42px; }


  .sec { padding: 64px 18px; }
  .sec-h2 { font-size: 30px; margin-bottom: 36px; }
  .sec-h3 { font-size: 19px; }
  .btn { font-size: 17px; }
  .point { grid-template-columns: 1fr; gap: 24px; }
  .point + .point-h { margin-top: 64px; }
  .point-img img { max-width: 240px; margin: 0 auto; }
  .point-box p { font-size: 14.5px; }
  .hero { padding: 36px 18px 64px; }
  .hero-in { grid-template-columns: 1fr; gap: 34px; }
  .hero-cta .btn, .hero-cta .btn-line { width: 100%; }
  .hero-photo { max-width: 520px; margin: 0 auto; }
  .school-card { grid-template-columns: 1fr; padding: 20px; gap: 22px; }
  .school-btns .btn { width: 100%; }
  .fees { grid-template-columns: 1fr; gap: 30px; }
  .contact-lead { font-size: 18px; letter-spacing: .08em; }
  .btn-line { width: 100%; min-width: 0; }

}

/* ---------- 追加：最初の画面の場所の一行・各ページの大見出し ---------- */
.page-h1 { text-align: center; font-size: 34px; font-weight: 900; letter-spacing: .12em; padding: 64px 24px 0; }
@media (max-width: 960px) { .page-h1 { font-size: 26px; padding-top: 40px; } }

/* =====================================================================
   メニュー（右からすべり出る）・スマホの下の浮いたナビ・ページの上へ
   （2026-10-03 遼様「固定ナビをモダンなフローティングに」。下野金属さんのスマホのナビを手本にした）
   ===================================================================== */
.hd-menu { display: none; }
.drawer[hidden], .dr-overlay[hidden] { display: none; }
@media (max-width: 1180px) {
  .hd-nav, .hd-line { display: none; }
  .hd-menu { display: block; position: relative; margin-left: auto; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: var(--card); cursor: pointer; z-index: 72; transition: background .3s; }
  .hd-menu span { position: absolute; right: 12px; height: 3px; border-radius: 2px; background: var(--ink); transition: transform .4s var(--ease-out), opacity .2s, width .4s var(--ease-out), top .4s var(--ease-out); }
  .hd-menu span:nth-child(1) { top: 15px; width: 22px; }
  .hd-menu span:nth-child(2) { top: 22px; width: 14px; background: var(--green); }
  .hd-menu span:nth-child(3) { top: 29px; width: 18px; }
  .hd-menu[aria-expanded="true"] { background: #fff; }
  .hd-menu[aria-expanded="true"] span { width: 22px; }
  .hd-menu[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
  .hd-menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .hd-menu[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }
  .dr-overlay { position: fixed; inset: 0; z-index: 70; background: rgba(87, 63, 39, .45); animation: fadein .35s ease; }
  .drawer { position: fixed; z-index: 71; top: 0; right: 0; bottom: 0; width: min(86%, 360px); background: #fff; padding: 84px 24px 40px; overflow-y: auto;
    border-radius: 28px 0 0 28px; box-shadow: -12px 0 40px rgba(87, 63, 39, .18); animation: slidein .45s var(--ease-out); overscroll-behavior: contain; }
  .dr-ttl { font-size: 13px; font-weight: 700; letter-spacing: .2em; color: var(--green-deep); margin-bottom: 6px; }
  .drawer ul { display: grid; margin-bottom: 26px; }
  .drawer li a { display: flex; justify-content: space-between; align-items: center; padding: 15px 4px; font-size: 17px; font-weight: 700; text-decoration: none; border-bottom: 2px dotted var(--step-line); }
  .drawer li a::after { content: ''; width: 8px; height: 8px; border-top: 2.5px solid var(--lime); border-right: 2.5px solid var(--lime); transform: rotate(45deg); }
  .drawer .btn-line { width: 100%; min-width: 0; font-size: 17px; }
  .dr-insta { display: block; text-align: center; margin-top: 18px; font-weight: 700; color: var(--green-deep); }
  @keyframes slidein { from { transform: translateX(100%); } }
  @keyframes fadein { from { opacity: 0; } }
  body.drawer-open { overflow: hidden; }
}
.fixnav { display: none; }
.pagetop { position: fixed; z-index: 58; right: 22px; bottom: 26px; width: 56px; height: 56px; border-radius: 50%; background: var(--yellow); color: var(--ink);
  display: grid; place-items: center; align-content: center; gap: 1px; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-decoration: none;
  box-shadow: 0 6px 18px rgba(242, 195, 93, .5); opacity: 0; pointer-events: none; transform: translateY(16px); transition: opacity .35s, transform .35s var(--ease-out); }
.pagetop span { width: 10px; height: 10px; border-top: 3px solid var(--ink); border-left: 3px solid var(--ink); transform: rotate(45deg) translate(2px, 2px); }
.pagetop.is-visible { opacity: 1; pointer-events: auto; transform: none; }
@media (max-width: 960px) {
  .fixnav { display: flex; gap: 6px; position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    margin: 0 auto; max-width: 480px; height: 62px; padding: 6px; background: #fff; border-radius: 34px; box-shadow: 0 10px 30px rgba(87, 63, 39, .18), 0 1px 0 rgba(87, 63, 39, .05); }
  .fixnav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 28px; background: var(--card); color: var(--green-deep); text-decoration: none; transition: transform .15s; }
  .fixnav a:active { transform: scale(.95); }
  .fixnav svg { width: 19px; height: 19px; }
  .fixnav span { font-size: 10px; font-weight: 700; line-height: 1.2; letter-spacing: 0; white-space: nowrap; }
  .fixnav .fn-line { flex: 1.35; flex-direction: row; gap: 6px; background: var(--line-green); color: #fff; }
  .fixnav .fn-line span { font-size: 13px; font-weight: 900; }
  .fixnav .fn-line .ic-line { width: 22px; height: 22px; }
  .pagetop { right: 14px; bottom: calc(86px + env(safe-area-inset-bottom)); width: 48px; height: 48px; font-size: 9px; }
  .ft { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
}

.dr-close { position: absolute; top: 14px; right: 14px; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--card); cursor: pointer; }
.dr-close::before, .dr-close::after { content: ''; position: absolute; left: 12px; top: 21.5px; width: 22px; height: 3px; border-radius: 2px; background: var(--ink); transform: rotate(45deg); }
.dr-close::after { transform: rotate(-45deg); }

/* ---------- メニューの入れ子（2026-10-03 遼様「ヘッダーかメニューから全ページへ。入れ子でもよい」） ---------- */
.hd-nav .has-sub { position: relative; }
.sub-btn { font: inherit; display: flex; align-items: center; gap: 7px; padding: 8px 12px; font-size: 15px; font-weight: 700; letter-spacing: .03em; color: var(--ink); background: none; border: 0; border-radius: 99px; cursor: pointer; white-space: nowrap; transition: background .25s; }
.sub-btn:hover, .has-sub.is-cur .sub-btn, .sub-btn[aria-expanded="true"] { background: var(--tokuchou); }
.sub-btn i { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .35s var(--ease-out); }
.sub-btn[aria-expanded="true"] i { transform: translateY(2px) rotate(225deg); }
.hd-nav .sub { position: absolute; top: calc(100% + 12px); left: 50%; display: grid; gap: 2px; min-width: 250px; padding: 10px; background: #fff; border-radius: 22px; box-shadow: 0 16px 40px rgba(87, 63, 39, .16);
  opacity: 0; visibility: hidden; transform: translate(-50%, -8px); transition: opacity .25s, transform .35s var(--ease-out), visibility .25s; }
.hd-nav .sub::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.hd-nav .has-sub:hover .sub, .hd-nav .has-sub:focus-within .sub, .sub-btn[aria-expanded="true"] + .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.hd-nav .sub a { display: block; padding: 10px 16px; border-radius: 14px; }
.drawer .dr-group { padding: 12px 4px 4px; border-bottom: 2px dotted var(--step-line); }
.drawer .dr-parent { display: block; font-size: 17px; font-weight: 900; color: var(--green-deep); }
.drawer .dr-sub { display: grid; margin: 4px 0 6px; }
.drawer .dr-sub a { position: relative; padding: 10px 4px 10px 20px; font-size: 15.5px; border-bottom: 0; }
.drawer .dr-sub a::before { content: ''; position: absolute; left: 4px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--lime); }
.drawer a[aria-current] { color: var(--green-deep); }

/* ---------- ページの中のメニュー・目次（帯に重ねない囲み） ---------- */
.lnav { padding: 36px 18px 0; }
.lnav-in { max-width: 900px; margin: 0 auto; display: flex; align-items: center; gap: 18px; padding: 14px 18px; background: #fff; border-radius: 24px; box-shadow: 0 8px 26px rgba(87, 63, 39, .1); }
.lnav-ttl { flex: none; padding-right: 18px; border-right: 2px dashed var(--yellow); font-size: 14px; font-weight: 900; letter-spacing: .1em; color: var(--green-deep); }
.lnav ul { flex: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.lnav a { display: flex; align-items: center; gap: 8px; height: 100%; padding: 10px 14px; border-radius: 14px; background: var(--card); font-size: 14.5px; font-weight: 700; line-height: 1.45; text-decoration: none; transition: background .25s, transform .2s; }
.lnav a:hover { background: var(--tokuchou); transform: translateY(-1px); }
.lnav a span { flex: 1; }
.lnav a small { font-size: 12px; color: var(--ink-2); }
.lnav a i { flex: none; width: 7px; height: 7px; border-top: 2px solid var(--green); border-right: 2px solid var(--green); transform: rotate(45deg); }
.lnav-toc a i { transform: translateY(-2px) rotate(135deg); }
.lnav a[aria-current] { background: var(--lime); }
.lnav a[aria-current] i { border-color: var(--ink); }
@media (max-width: 960px) {
  .lnav { padding-top: 24px; }
  .lnav-in { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px; }
  .lnav-ttl { padding: 0 0 8px; border-right: 0; border-bottom: 2px dashed var(--yellow); }
  .lnav ul { grid-template-columns: 1fr 1fr; }
  .lnav a { font-size: 14px; padding: 10px 12px; }
}


/* ---------- Instagram の最新の投稿（サーバーの /insta/feed.json を読む。tools/instagram/fetch.php が1時間ごとに作る） ---------- */
.insta-feed { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.insta-feed a { position: relative; display: block; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--card); box-shadow: 0 6px 16px rgba(87, 63, 39, .1); }
.insta-feed img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.insta-feed a:hover img { transform: scale(1.06); }
.insta-feed .v::after { content: ''; position: absolute; right: 10px; top: 10px; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .4)); }
@media (max-width: 960px) { .insta-feed { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .insta-feed a { border-radius: 12px; } }

/* フッターは最小限（2026-10-03 遼様「情報量が多すぎる」）。ページの一覧はヘッダー・メニューにある */
.ft { padding: 40px 24px 32px; }
.ft-in { gap: 14px; }
.ft-logo img { height: 52px; }
.ft-addr { font-size: 14px; line-height: 1.8; }
.ft-addr a { text-decoration: none; }
.ft-links { font-size: 12.5px; color: var(--ink-2); gap: 2px 16px; }
.ft-copy { font-size: 12px; }
@media (max-width: 960px) { .ft { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } }

/* ---------- 最初の画面：場所の一行（カプセル型をやめ、前に短い線・あいだに細い区切り。2026-10-04 遼様「カプセルがAIらしい」） ---------- */
.hero-place { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 16px; font-size: 15px; font-weight: 700; letter-spacing: .08em; color: var(--green-deep); text-shadow: 0 0 10px #fff; }
.hero-place::before { content: ''; width: 28px; height: 2px; border-radius: 1px; background: var(--lime); }
.hero-place span + span { display: flex; align-items: center; gap: 12px; }
.hero-place span + span::before { content: ''; width: 1.5px; height: 1em; background: var(--yellow); }
@media (max-width: 960px) { .hero-place { font-size: 13.5px; letter-spacing: .05em; gap: 4px 10px; } .hero-place::before { width: 20px; } }

/* ---------- 「10回」の鼓動（ドクン、ドクン…と2回打って休む。大きさは少しだけ。動きを減らす設定では止まる） ---------- */
.hero-badge .beat { display: inline-flex; align-items: baseline; transform-origin: 50% 75%; animation: beat 2.8s cubic-bezier(.3, 0, .3, 1) 2.2s infinite; }
@keyframes beat { 0%, 30%, 100% { transform: scale(1); } 8% { transform: scale(1.13); } 15% { transform: scale(1.02); } 22% { transform: scale(1.08); } }

/* ---------- 目次の囲み：下に余白（下の区画にくっつかないように）・項目名を途中で折らない（2026-10-04 遼様） ---------- */
.lnav { padding-bottom: 40px; }
.lnav ul { display: flex; flex-wrap: wrap; gap: 8px; }
.lnav li { flex: 1 1 auto; }
.lnav a { white-space: nowrap; gap: 10px; }
.lnav + .sec { padding-top: 64px; }
@media (max-width: 960px) {
  .lnav { padding-bottom: 28px; }
  .lnav li { flex: 1 1 calc(50% - 4px); }
  .lnav a { white-space: normal; }
  .lnav + .sec { padding-top: 48px; }
}
/* 項目は中身の幅のまま（最後の段が横いっぱいに伸びないように）。スマホでも項目名を折らない */
.lnav li { flex: 0 1 auto; }
@media (max-width: 960px) { .lnav li { flex: 0 1 auto; } .lnav a { white-space: nowrap; } }

/* iPhone の住所の崩れ対策：行の中身（span）をひとまとまりに */
.school-meta li > span { flex: 1; min-width: 0; }
.school-meta a, .info a[href^="x-apple"] { color: inherit; text-decoration: none; }

/* トップの一番下「基本情報」（AI・検索が事実を拾いやすいように。目立たせず、すっきり。2026-10-04 遼様「野暮ったくならないように・下の方に」） */
.facts { padding-top: 0; }
.facts-card { max-width: 920px; margin: 0 auto; background: var(--card); border-radius: 24px; padding: 40px 48px 44px; }
.facts-h { text-align: center; font-size: 20px; font-weight: 900; letter-spacing: .15em; margin-bottom: 28px; }
.facts-h small { display: block; font-size: 12px; letter-spacing: .3em; color: var(--green-deep); margin-bottom: 4px; }
.facts-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.facts-list > div { padding: 14px 0; border-top: 1px solid rgba(87, 63, 39, .12); }
.facts-list > .wide { grid-column: 1 / -1; }
.facts-list dt { font-size: 12.5px; font-weight: 900; letter-spacing: .12em; color: var(--green-deep); margin-bottom: 2px; }
.facts-list dd { font-size: 15px; line-height: 1.8; word-break: auto-phrase; }
.facts-list dd small { font-size: 13px; color: var(--ink-2); }
@media (max-width: 960px) {
  .facts-card { padding: 28px 20px 30px; border-radius: 18px; }
  .facts-list { grid-template-columns: 1fr; }
}
