@charset "utf-8";
/*
Theme Name: はら英語教室
Theme URI: https://haraenglish.com/
Author: 株式会社splight
Description: はら英語教室のホームページ用テーマ。見た目は静的サイト（sample-site）の styles.css をそのまま使う。このファイルは build_wp_theme.py が作るので、直接は編集しないこと。
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: hara-english
*/


/* =========================================================
   はら英語教室 サンプルサイト
   配色はロゴ実測値：grey #6E6E6E / yellow #FFF23D / blue #87D2FF
   ========================================================= */

:root {
  /* 文字は読みやすさを優先して濃くする（ロゴの線画色 #6E6E6E は画像側でそのまま） */
  --ink: #2f2f2f;          /* 本文 */
  --grey: #333333;         /* 見出し */
  --grey-light: #6b6b6b;   /* 補助。白地でも読める濃さにする */
  --yellow: #ffe500;
  --yellow-deep: #e0c400;
  --blue: #7cc8f5;
  --blue-deep: #1b7fb8;
  --blue-ink: #0f5d8a;     /* 水色の上に載せる文字 */
  --bg: #ffffff;
  --bg-soft: #eef7fd;      /* セクションの下地をはっきりさせる */
  --cream: #fffbe6;
  --line: #dcdcdc;
  --radius: 14px;
  --radius-lg: 28px;
  --shadow: 0 6px 24px rgba(110, 110, 110, .12);
  --shadow-soft: 0 2px 10px rgba(110, 110, 110, .08);
  --maxw: 1140px;
  --header-h: 92px;
  /* ロゴの水色の波と同じ形の線（logo.svg の波から作成。作り直しは make_waves.py） */
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8.00 -25.73 239.63 43.86'%3E%3Cpath d='M0.00 -1.64 C41.17 -27.83 71.97 -16.89 105.03 -4.88 C138.09 7.14 173.41 20.23 223.63 -1.64' fill='none' stroke='%23000' stroke-width='14' stroke-linecap='round'/%3E%3C/svg%3E");
  --wave-bold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-12.00 -29.73 247.63 51.86'%3E%3Cpath d='M0.00 -1.64 C41.17 -27.83 71.97 -16.89 105.03 -4.88 C138.09 7.14 173.41 20.23 223.63 -1.64' fill='none' stroke='%23000' stroke-width='22' stroke-linecap='round'/%3E%3C/svg%3E");
  --wave-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0.00 -27.73 223.63 47.86' preserveAspectRatio='none'%3E%3Cpath d='M-223.63 -1.64 C-182.46 -27.83 -151.67 -16.89 -118.61 -4.88 C-85.55 7.14 -50.23 20.23 0.00 -1.64 M0.00 -1.64 C41.17 -27.83 71.97 -16.89 105.03 -4.88 C138.09 7.14 173.41 20.23 223.63 -1.64 M223.63 -1.64 C264.81 -27.83 295.60 -16.89 328.66 -4.88 C361.72 7.14 397.04 20.23 447.27 -1.64' fill='none' stroke='%23000' stroke-width='18' stroke-linecap='round'/%3E%3C/svg%3E");
  --wave-under: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0.00 -33.73 223.63 59.86' preserveAspectRatio='none'%3E%3Cpath d='M-223.63 -1.64 C-182.46 -27.83 -151.67 -16.89 -118.61 -4.88 C-85.55 7.14 -50.23 20.23 0.00 -1.64 M0.00 -1.64 C41.17 -27.83 71.97 -16.89 105.03 -4.88 C138.09 7.14 173.41 20.23 223.63 -1.64 M223.63 -1.64 C264.81 -27.83 295.60 -16.89 328.66 -4.88 C361.72 7.14 397.04 20.23 447.27 -1.64' fill='none' stroke='%23ffe500' stroke-width='30' stroke-linecap='round'/%3E%3C/svg%3E");
  --wave-under-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0.00 -33.73 223.63 59.86' preserveAspectRatio='none'%3E%3Cpath d='M-223.63 -1.64 C-182.46 -27.83 -151.67 -16.89 -118.61 -4.88 C-85.55 7.14 -50.23 20.23 0.00 -1.64 M0.00 -1.64 C41.17 -27.83 71.97 -16.89 105.03 -4.88 C138.09 7.14 173.41 20.23 223.63 -1.64 M223.63 -1.64 C264.81 -27.83 295.60 -16.89 328.66 -4.88 C361.72 7.14 397.04 20.23 447.27 -1.64' fill='none' stroke='%23ebcb78' stroke-width='30' stroke-linecap='round'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: min(var(--maxw), calc(100% - 32px)); margin-inline: auto; }

/* メニューから飛んだとき、見出しが上の固定メニューに隠れないようにする */
section[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

/* ---------- 見出し ---------- */
.sec-head { text-align: center; margin-bottom: 44px; }
.sec-head .en {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .24em;
  color: var(--blue-ink); text-transform: uppercase; margin-bottom: 10px;
  padding: 5px 14px; border-radius: 999px; background: #e3f3fd;
}
.sec-head h2 {
  font-size: clamp(26px, 4.4vw, 38px); margin: 0; color: var(--grey);
  font-weight: 700; letter-spacing: .06em;
}
/* 見出しの下の線は、ロゴの水色の波と同じ形（色は background で付ける） */
.sec-head h2::after {
  content: ""; display: block; width: clamp(76px, 8vw, 96px); aspect-ratio: 239.63 / 43.86;
  background: var(--yellow); margin: 12px auto 0;
  -webkit-mask: var(--wave) center / 100% 100% no-repeat; mask: var(--wave) center / 100% 100% no-repeat;
}
.sec-head.blue .en { color: #7a5c00; background: #fff4b8; }
.sec-head.blue h2::after { background: var(--blue); }

/* ---------- ヘッダー（浮くピル型） ---------- */
.header {
  position: fixed; inset: 16px 0 auto; z-index: 100;
  display: flex; justify-content: center; pointer-events: none;
}
.header__inner {
  pointer-events: auto;
  width: min(1240px, calc(100% - 32px));
  background: #fff; border-radius: 999px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px 10px 22px;
}
/* ロゴはマークと文字を別の画像にして、文字をマークの上下中央にそろえる（元の1枚の画像は文字が下寄り）。
   --logo-w は元のロゴ1枚分の横幅。間隔と各画像の幅は、元画像（横900px）での位置から割り出す */
.header__logo, .footer__logo {
  --logo-w: 190px; flex: 0 0 auto; display: flex; align-items: center; gap: calc(var(--logo-w) * 54 / 900);
}
.logo__mark { width: calc(var(--logo-w) * 236 / 900); }
/* 文字はマークより少し下げる。マークは鳥と土台で下が重く、文字は小さな英字の行がぶら下がるため、
   箱の中心でそろえると文字が上がって見える。「はら英語教室」の行の濃さの重心を
   マークの重心に合わせた位置（元画像の寸法で22.3px下）にする */
.logo__text {
  width: calc(var(--logo-w) * 610 / 900);
  transform: translateY(calc(var(--logo-w) * 22.3 / 900));
}

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
/* アイコンと文字のかたまりが白い枠の上下中央にくるよう、上下の余白をそろえ、文字の行の高さを詰める */
.nav a {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  position: relative; padding: 10px 14px; border-radius: 12px; transition: background .2s ease;
}
.nav a:hover { background: #f4f9fc; }
/* いま見ているページが分かるようにする */
.nav a[aria-current="page"] { background: var(--bg-soft); }
.nav a[aria-current="page"] .ja { color: var(--blue-ink); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 34px; aspect-ratio: 247.63 / 51.86;
  transform: translateX(-50%); background: var(--yellow);
  -webkit-mask: var(--wave-bold) center / 100% 100% no-repeat; mask: var(--wave-bold) center / 100% 100% no-repeat;
}
.nav .ico { width: 22px; height: 22px; stroke: var(--grey); fill: none; stroke-width: 1.6; }
.nav .ja { font-size: 13px; font-weight: 700; color: var(--grey); letter-spacing: .02em; line-height: 1.35; white-space: nowrap; }
.nav .en { font-size: 9px; color: var(--grey-light); letter-spacing: .1em; }

.header__cta { display: flex; gap: 8px; margin-left: 10px; }
.btn-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 20px; border-radius: 999px; font-size: 13px; font-weight: 700;
  border: 1.5px solid var(--grey); color: var(--grey); white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-pill:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-pill--fill {
  background: var(--yellow); border-color: var(--yellow);
  font-size: 14px; padding: 12px 22px; box-shadow: 0 3px 0 var(--yellow-deep);
}
.btn-pill--fill:hover { background: var(--yellow-deep); border-color: var(--yellow-deep); }

.hamburger { display: none; }

/* スマホ用のメニューは、パソコン幅では出さない */
.drawer { display: none; }

/* ---------- ヒーロー ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
/* ヒーローの写真は順番に切り替わる（1枚目だけ先に読み込み、残りは後から） */
.hero__img { position: absolute; inset: 0; background: #eef4f7; }
.hero__img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
  opacity: 0; transition: opacity 1.4s ease;
}
.hero__img img.is-on { opacity: 1; }

/* 今どの写真かを示す小さな点 */
.hero__dots {
  position: absolute; left: 0; right: 0; bottom: 18px; z-index: 6;
  display: flex; justify-content: center; gap: 9px;
}
.hero__dots button {
  width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.hero__dots button::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid rgba(70,70,70,.55); background: rgba(255,255,255,.8);
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.hero__dots button:focus-visible::before { outline: 3px solid var(--blue-deep); outline-offset: 3px; }
.hero__dots button.is-on::before { background: var(--yellow); border-color: var(--yellow-deep); transform: scale(1.3); }
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(255,255,255,.88) 0%, rgba(255,255,255,.5) 30%, rgba(255,255,255,0) 54%),
    linear-gradient(to top, rgba(255,255,255,.72) 0%, rgba(255,255,255,.2) 26%, rgba(255,255,255,0) 48%);
}
.hero__copy { position: relative; padding: 0 0 56px; }
.hero__copy h1 {
  margin: 0 0 10px; font-size: clamp(30px, 5.4vw, 56px); line-height: 1.35;
  color: var(--grey); font-weight: 700; letter-spacing: .03em;
}
.hero__copy h1 .mark {
  /* 文字にかぶらないよう、下線に近い細さにする */
  background: linear-gradient(transparent 74%, var(--yellow) 74%, var(--yellow) 96%, transparent 96%);
  padding: 0 3px;
}
.hero__copy p { margin: 0 0 22px; font-size: clamp(14px, 1.8vw, 17px); color: var(--grey); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-main {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 30px; border-radius: 999px; font-weight: 700; font-size: 16px;
  background: var(--yellow); color: var(--ink); box-shadow: 0 4px 0 var(--yellow-deep);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-main:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--yellow-deep); }
.btn-sub {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px; border-radius: 999px; font-weight: 700; font-size: 15px;
  background: #fff; color: var(--grey); border: 1.5px solid var(--line);
  box-shadow: 0 4px 0 var(--line);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-sub:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--line); }

/* 丸バッジ（ライトハウス開校の告知）。色はライトハウスのロゴ実測値 */
.badge {
  position: absolute; right: 4%; top: 20%; width: 208px; height: 208px; z-index: 5;
  display: grid; place-items: center; text-align: center;
  background: #fffdf5; border: 3px solid #4C6B7A; border-radius: 50%;
  box-shadow: 0 8px 22px rgba(76,107,122,.22);
  animation: floaty 4s ease-in-out infinite;
}
.badge__in { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 0 12px; }
.badge__sub {
  font-size: 11px; font-weight: 700; letter-spacing: .14em; color: #4C6B7A;
  background: #EBCB78; padding: 3px 12px; border-radius: 999px;
}
.badge__main { font-size: 18px; font-weight: 700; color: #3c5a68; line-height: 1.45; letter-spacing: .02em; }
.badge__kids { width: 96px; margin: 1px auto 0; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- 学年タイル ---------- */
.grades { padding: 64px 0 8px; }
.grades__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grade {
  display: block; background: #fff; border: 2px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.grade:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--blue); }
.grade img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.grade__body { padding: 20px 22px 24px; }
.grade__body h3 { margin: 0 0 4px; font-size: 21px; color: var(--grey); }
.grade__body .age { font-size: 12px; color: var(--blue-ink); letter-spacing: .08em; font-weight: 700; }
.grade__body p { margin: 10px 0 0; font-size: 14px; line-height: 1.8; }
.grade__body .more {
  display: inline-block; margin-top: 14px; font-size: 13.5px; font-weight: 700; color: #fff;
  background: var(--grey); padding: 8px 18px; border-radius: 999px;
}
.grade:hover .more { background: var(--blue-deep); }

/* ---------- 今、空いているクラス ---------- */
.seats { padding: 64px 0 8px; }
.seats__note { text-align: center; font-size: 13px; color: var(--grey-light); margin: -24px 0 28px; }
/* 時間割（横＝曜日／縦＝時間） */
.seats__scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 2px solid var(--line); border-radius: var(--radius-lg); background: #fff;
}
.timetable { width: 100%; border-collapse: collapse; table-layout: fixed; }
.timetable th, .timetable td {
  border: 1px solid var(--line); padding: 10px; vertical-align: top; text-align: center;
}
.timetable thead th {
  background: #eaf6fe; color: var(--grey); font-weight: 700; font-size: 15px;
  letter-spacing: .1em; border-bottom: 2px solid var(--blue); padding: 13px 10px;
}
.timetable thead th:first-child { background: #f5fafd; }
.timetable .th-time small { display: block; font-size: 10.5px; font-weight: 700; opacity: .8; }
.timetable .th-time {
  background: #e8f4fc; color: var(--blue-ink); font-size: 16px; font-size: 12.5px; font-weight: 700;
  white-space: nowrap; width: 92px; letter-spacing: .04em; line-height: 1.6;
  vertical-align: middle;
}
.timetable td.empty { background: #fcfcfc; color: #d4d4d4; font-size: 13px; vertical-align: middle; }

/* ひとコマ（空き状況は右上に斜めのリボンで重ねる＝縦を詰めるため） */
.slot {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 12px 8px 11px; border-radius: 10px;
  background: #fbfdff; border: 1px solid #e3f1fb; min-height: 96px;
}
.slot--few { background: #fffdf3; border-color: #f4ead0; }
.slot--closed { background: #fafafa; border-color: #eee; }
/* リボンと重ならないよう、クラス名の左右に余白を取る（折り返さない幅に調整） */
.slot__name {
  font-size: 14px; font-weight: 700; color: var(--grey); line-height: 1.45;
  padding: 0 22px; white-space: nowrap;
}
.slot__meta { font-size: 11.5px; color: #5a5a5a; line-height: 1.6; }

.ribbon {
  position: absolute; top: 9px; right: -30px; width: 104px;
  transform: rotate(45deg);
  padding: 3px 0; text-align: center;
  font-size: 11px; font-weight: 700; letter-spacing: .02em; line-height: 1.5;
  box-shadow: 0 1px 3px rgba(110,110,110,.18);
  pointer-events: none;
}
.ribbon--ok   { background: #8ed2f7; color: #0c4f76; }
.ribbon--few  { background: #ffe14d; color: #6b5200; }
.ribbon--full { background: #d2d2d2; color: #4f4f4f; }
.ribbon--tbd  { background: #e4e4e4; color: #5f5f5f; }

.seat-btn {
  margin-top: auto;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 14px; border-radius: 999px; border: 0; cursor: pointer;
  font-family: inherit; font-size: 12px; font-weight: 700; color: var(--ink);
  background: var(--yellow); box-shadow: 0 3px 0 var(--yellow-deep);
  transition: transform .15s ease, box-shadow .15s ease;
}
.seat-btn:hover, .seat-btn:focus-visible { transform: translateY(2px); box-shadow: 0 1px 0 var(--yellow-deep); outline: 3px solid var(--blue-deep); outline-offset: 2px; }
.seat-btn--wait { background: #fff; color: var(--grey); border: 1.5px solid var(--line); box-shadow: 0 3px 0 var(--line); }
.seat-btn--wait:hover { box-shadow: 0 1px 0 var(--line); }
.slot .none { margin-top: auto; font-size: 11.5px; color: var(--grey-light); }

/* ===== スマホ用：学年でしぼり込むカード形式（パソコンでは隠す） ===== */
.seats__mobile { display: none; }

.lvfilter { display: flex; gap: 8px; margin-bottom: 18px; }
.lv {
  flex: 1; padding: 11px 6px; border-radius: 12px; cursor: pointer;
  font-family: inherit; font-size: 13.5px; font-weight: 700; color: var(--grey);
  background: #fff; border: 1.5px solid var(--line);
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.lv.is-on { background: var(--blue); border-color: var(--blue); color: #10465f; }

.lvlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.lvcard {
  display: grid; grid-template-columns: 5px 1fr; align-items: stretch;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.lvcard__bar { background: var(--blue); }           /* 空きあり＝水色（パソコン版と同じ） */
.lvcard--few    .lvcard__bar { background: var(--yellow); }
.lvcard--full   .lvcard__bar,
.lvcard--tbd    .lvcard__bar { background: #d8d8d8; }
.lvcard--full, .lvcard--tbd { background: #fafafa; }

.lvcard__body { padding: 15px 16px 15px 14px; display: flex; flex-direction: column; gap: 7px; }
.lvcard__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lvcard__name { font-size: 16px; font-weight: 700; color: var(--grey); line-height: 1.4; }
.lvcard__meta { font-size: 13px; color: var(--grey-light); line-height: 1.75; }
.lvcard__meta b { color: var(--grey); font-weight: 700; }
.lvcard__foot { display: flex; align-items: center; justify-content: flex-end; margin-top: 2px; }
.lvcard .seat-btn { margin-top: 0; min-height: 44px; padding: 11px 20px; font-size: 13.5px; }
.lvcard .none { margin: 0; font-size: 12.5px; color: var(--grey-light); text-align: right; line-height: 1.7; }

.lvempty {
  margin: 18px 0 0; padding: 18px; border-radius: var(--radius);
  background: #fafafa; border: 1.5px dashed var(--line);
  font-size: 13.5px; color: var(--grey-light); text-align: center; line-height: 1.9;
}

/* 表の下の注記 */
.seats__legend {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px;
  margin-top: 20px; font-size: 13px; color: var(--grey-light);
}
.seats__legend span { display: inline-flex; align-items: center; gap: 6px; }
.seats__foot { margin-top: 14px; font-size: 13px; color: var(--grey-light); text-align: center; line-height: 1.9; }

.tag {
  display: inline-block; padding: 4px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.tag--ok { background: #d4ecfb; color: #0f5d8a; }
.tag--few { background: #fff0a8; color: #7a5c00; }
.tag--full { background: #e8e8e8; color: #5f5f5f; }
.tag--tbd { background: #eeeeee; color: #6b6b6b; }

/* 料金表の空き列 */
.fee__table td.seat-col { text-align: center; white-space: nowrap; }
.fee__table .row-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; margin-top: 6px; padding: 8px 16px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; background: var(--yellow); color: var(--ink);
  border: 0; cursor: pointer; font-family: inherit;
  transition: transform .15s ease;
}
.fee__table .row-btn:hover { transform: translateY(-1px); }
.fee__table .row-btn--wait { background: #fff; border: 1px solid var(--line); }

/* 選択中のボタン */
.seat-btn.is-picked, .row-btn.is-picked {
  background: var(--blue); color: #10465f; box-shadow: 0 3px 0 var(--blue-deep);
}
.seat-btn.is-picked::before, .row-btn.is-picked::before { content: "✓ "; }

/* 申込セクションに表示する「選んだクラス」（複数可） */
.picked {
  display: none; flex-direction: column; align-items: center; gap: 10px;
  margin: 0 auto 22px; padding: 16px 20px; max-width: 720px;
  background: #fff; border: 2px solid var(--yellow); border-radius: var(--radius);
  color: var(--grey);
}
.picked.is-on { display: flex; }
.picked__label { font-size: 13px; font-weight: 700; color: var(--grey-light); letter-spacing: .06em; }
.picked__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
}
.picked__list li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 8px 7px 14px; border-radius: 999px;
  background: #fffdf0; border: 1px solid #f0e4a8;
  font-size: 13.5px; font-weight: 700; line-height: 1.5; text-align: left;
}
.picked__x {
  border: 0; background: #fff; cursor: pointer; font-family: inherit;
  width: 22px; height: 22px; border-radius: 50%; color: var(--grey-light);
  font-size: 13px; line-height: 1; display: grid; place-items: center;
  border: 1px solid var(--line);
}
.picked__x:hover { background: var(--grey); color: #fff; border-color: var(--grey); }
.picked__clear {
  border: 0; background: transparent; cursor: pointer;
  min-height: 44px; padding: 0 10px;
  color: #5a5a5a; font-size: 13px; text-decoration: underline; font-family: inherit;
}

/* ---------- 選ばれる理由（ジグザグ） ---------- */
.reasons { padding: 76px 0; background: var(--bg-soft); margin-top: 64px; }
.reason { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; margin-bottom: 52px; }
.reason:last-child { margin-bottom: 0; }
/* 1つ目を写真左、2つ目を写真右…と交互にする
   （.sec-head が最初の子なので、.reason の並びは even/odd が反転する） */
.reason:nth-child(odd) .reason__img { order: 2; }
.reason__img img { border-radius: var(--radius-lg); aspect-ratio: 4/3; object-fit: cover; width: 100%; box-shadow: var(--shadow-soft); }
.reason__num {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em;
  color: #fff; background: var(--blue-deep); padding: 5px 14px; border-radius: 999px;
}
.reason h3 { margin: 6px 0 12px; font-size: clamp(20px, 2.6vw, 27px); color: var(--grey); line-height: 1.5; }
.reason p { margin: 0; font-size: 15px; }

/* ---------- 料金 ---------- */
.fee { padding: 84px 0; }
.fee__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fee__table { width: 100%; border-collapse: collapse; font-size: 14px; }
.fee__table th, .fee__table td { border: 1px solid var(--line); padding: 13px 14px; text-align: left; }
.fee__table thead th { background: var(--grey); color: #fff; font-weight: 700; letter-spacing: .04em; }
.fee__table tbody tr:nth-child(even) { background: #fafafa; }
.fee__table .price { font-weight: 700; color: var(--grey); white-space: nowrap; }
/* 「小1〜小3」「月4回・70分」が途中で折り返さないようにする */
.fee__table td:nth-child(1),
.fee__table td:nth-child(2),
.fee__table td:nth-child(3) { white-space: nowrap; }
.fee__note { margin-top: 14px; font-size: 13px; color: var(--grey-light); }
.fee__note strong { color: #c0392b; }
.fee__cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
.fee__card { border: 2px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.fee__card h4 { margin: 0 0 6px; font-size: 15px; color: var(--grey); }
.fee__card p { margin: 0; font-size: 14px; }

/* ---------- 講師 ---------- */
.teacher { padding: 76px 0; background: var(--bg-soft); }
.teacher__inner { display: grid; grid-template-columns: 380px 1fr; gap: 44px; align-items: start; }
.teacher__photo img { border-radius: var(--radius-lg); width: 100%; box-shadow: var(--shadow-soft); }
.teacher__name { margin: 0 0 2px; font-size: 26px; color: var(--grey); }
.teacher__name .ruby { display: block; font-size: 12px; color: var(--grey-light); letter-spacing: .1em; margin-bottom: 4px; }
.teacher__role { font-size: 13px; color: var(--blue-deep); font-weight: 700; letter-spacing: .06em; }
.teacher p { font-size: 15px; }
.teacher__quals { margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.teacher__quals li {
  font-size: 12px; padding: 6px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--grey);
}

/* ---------- 理念（木のたとえ） ---------- */
.philosophy { padding: 84px 0; background: var(--cream); }
.philosophy__lead { text-align: center; max-width: 720px; margin: 0 auto 40px; font-size: 15px; }
.tree { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tree__item { border-radius: var(--radius-lg); padding: 28px 24px; text-align: center; border: 2px solid var(--line); }
.tree__item .label { font-size: 12px; letter-spacing: .14em; color: var(--grey-light); }
.tree__item h3 { margin: 6px 0 10px; font-size: 20px; color: var(--grey); }
.tree__item p { margin: 0; font-size: 14px; }
.tree__item:nth-child(1) { background: #fbfdf5; }
.tree__item:nth-child(2) { background: #f7fbfd; }
.tree__item:nth-child(3) { background: #fffdf0; }

/* ---------- 詳細ページへのボタン ---------- */
.sec-more { text-align: center; margin: 34px 0 0; }
.more-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 34px; border-radius: 999px;
  font-size: 15px; font-weight: 700; color: var(--grey);
  background: #fff; border: 2px solid var(--grey);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.more-btn::after { content: "→"; font-size: 15px; }
.more-btn:hover { background: var(--yellow); border-color: var(--yellow); transform: translateY(-2px); box-shadow: var(--shadow-soft); }

/* ---------- 料金のめやす（トップ用の要約） ---------- */
.feesum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feesum__item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 30px 22px 28px; border-radius: var(--radius-lg);
  background: #fff; border: 2px solid var(--line); text-align: center;
}
.feesum__item--free { background: #fffdf0; border-color: #f0e4a8; }
.feesum__label {
  font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--grey-light);
  padding: 4px 14px; border-radius: 999px; background: #f4f8fb;
}
.feesum__value { font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; color: var(--grey); line-height: 1.3; }
.feesum__value small { font-size: 16px; margin-left: 2px; }
.feesum__value i { font-style: normal; font-size: 18px; margin: 0 6px; color: var(--grey-light); }
.feesum__item--free .feesum__value { color: #b08900; }
.feesum__note { font-size: 13px; color: var(--grey-light); line-height: 1.7; }

/* ---------- 木の図解（トップ用の要約） ---------- */
.tree2 { display: grid; grid-template-columns: 400px 1fr; gap: 48px; align-items: center; }
.tree2__img { text-align: center; }
.tree2__img img { max-width: 360px; margin-inline: auto; }
.tree2__text p { font-size: 16px; line-height: 2.1; margin: 0 0 18px; }
.tree2__text b { color: var(--grey); font-weight: 700; padding-bottom: 6px; background: var(--wave-under) repeat-x 0 100% / 22px 5.89px; }
.tree2__text .sec-more { text-align: left; margin-top: 26px; }

/* ---------- 背景に写真・イラストを敷く ---------- */
.reasons { position: relative; overflow: hidden; }
.reasons::before {
  content: ""; position: absolute; inset: 0;
  background: url("images/bg-book.jpg") center/cover no-repeat;
  opacity: .16; pointer-events: none;
}
.reasons > .wrap { position: relative; z-index: 1; }
/* 横スライドはスマホだけ。PCでは出さない（出すと同じ内容が二重に並ぶ） */
.slidehint, .reasons__slider { display: none; }

.access { position: relative; overflow: hidden; }
.access::before {
  content: ""; position: absolute; inset: 0;
  background: url("images/bg-sea.jpg") center 30%/cover no-repeat;
  opacity: .2; pointer-events: none;
}
.access > .wrap { position: relative; z-index: 1; }

/* 学年タイルの下に、教室のイラストを帯で置く */
.kidsband {
  margin-top: 64px; padding: 0 0 8px;
  background: linear-gradient(to bottom, #fff 0%, #fffdf0 100%);
}
.kidsband__inner { max-width: 780px; margin-inline: auto; padding: 0 16px; }
.kidsband img { width: 100%; height: auto; display: block; }

/* ---------- 体験の流れ ---------- */
.flow { padding: 84px 0; background: #fff; }
.flow__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.flow__item { background: #fff; border-radius: var(--radius); padding: 26px 20px; position: relative; border: 2px solid var(--line); }
.flow__item::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -14px; left: 20px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--yellow);
  display: grid; place-items: center; font-weight: 700; font-size: 14px; color: var(--ink);
}
.flow__item h3 { margin: 6px 0 8px; font-size: 16px; color: var(--grey); }
.flow__item p { margin: 0; font-size: 13.5px; }
.flow__note { margin-top: 22px; text-align: center; font-size: 14px; color: var(--grey); }

/* ---------- 声 ---------- */
.voices { padding: 84px 0; background: var(--cream); }
.voices__list { columns: 3; column-gap: 20px; }
.voice {
  break-inside: avoid; background: #fff; border: 2px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px; margin-bottom: 20px;
}
.voice p { margin: 0 0 10px; font-size: 14px; }
.voice .who { font-size: 12px; color: var(--grey-light); font-weight: 700; }

/* ---------- アクセス ---------- */
.access { padding: 76px 0; background: var(--bg-soft); }
.access__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.access__item {
  background: #fff; border-radius: var(--radius-lg); border: 2px solid var(--line);
  overflow: hidden; display: flex; flex-direction: column;
}
.access__map { aspect-ratio: 16 / 10; background: #eef4f7; }
.access__map iframe { width: 100%; height: 100%; border: 0; display: block; }
.access__body { padding: 24px 28px 26px; display: flex; flex-direction: column; flex: 1; }
.access__item h3 { margin: 0 0 12px; font-size: 20px; color: var(--grey); }
.access__item dl { margin: 0; display: grid; grid-template-columns: 62px 1fr; gap: 10px 14px; font-size: 14px; line-height: 1.8; }
.access__item dt { color: var(--grey-light); font-size: 13px; }
.access__item dd { margin: 0; }
.map-btn {
  margin-top: 18px; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-size: 14px; font-weight: 700;
  background: #fff; color: var(--grey); border: 1.5px solid var(--line);
  box-shadow: 0 3px 0 var(--line);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.map-btn::before {
  content: ""; width: 16px; height: 16px; flex: 0 0 16px;
  background: var(--blue); border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
}
.map-btn:hover { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); border-color: var(--blue); }
.access__note { margin: 14px 0 0; font-size: 12.5px; color: var(--grey-light); line-height: 1.8; }

/* ---------- 申込 ---------- */
.contact { padding: 84px 0; }
.contact__box {
  border-radius: var(--radius-lg); padding: 48px 40px; text-align: center;
  background: linear-gradient(180deg, #fffdf0 0%, #f7fbfd 100%);
  border: 2px solid var(--line);
}
.contact__box h2 { margin: 0 0 8px; font-size: clamp(22px, 3.2vw, 30px); color: var(--grey); }
.contact__box p { margin: 0 0 26px; font-size: 15px; }
.contact__ways { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.way {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-width: 200px; padding: 20px 26px; border-radius: var(--radius);
  background: #fff; border: 2px solid var(--line);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.way:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue); }
.way .ttl { font-weight: 700; font-size: 16px; color: var(--grey); }
.way .sub { font-size: 12px; color: var(--grey-light); }
.way--line { background: #f2fbf3; border-color: #cfe9d4; }
.way--tel .ttl { letter-spacing: .04em; }

/* ===== ページ内の申込フォーム ===== */
.cform {
  margin: 30px auto 0; max-width: 760px; text-align: left;
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 30px 28px;
}
.cform__ttl { margin: 0 0 6px; font-size: 20px; color: var(--grey); }
.cform__lead { margin: 0 0 22px !important; font-size: 13.5px; color: var(--grey-light); }
.cform .req {
  display: inline-block; margin-left: 4px; padding: 2px 7px; border-radius: 4px;
  background: var(--yellow); color: #6b5c00; font-size: 10.5px; font-style: normal;
  font-weight: 700; letter-spacing: .06em; vertical-align: 2px;
}
.cform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.fld { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.fld--wide { grid-column: 1 / -1; }
.fld label { font-size: 13.5px; font-weight: 700; color: var(--grey); }
.fld input, .fld select, .fld textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px;
  background: #fff; transition: border-color .2s ease, box-shadow .2s ease;
}
.fld textarea { resize: vertical; line-height: 1.7; }
.fld input::placeholder, .fld textarea::placeholder { color: #767676; font-size: 13.5px; }
.fld input:focus, .fld select:focus, .fld textarea:focus {
  outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(124,200,245,.35);
}
.fld.is-bad input, .fld.is-bad select { border-color: #d8544a; background: #fff8f7; }
.fld__err { font-size: 12.5px; color: #c0392b; min-height: 0; }
.fld__err:empty { display: none; }

.cform__note {
  margin: 20px 0 0 !important; padding: 12px 16px; border-radius: 12px;
  background: #fff3f2; border: 2px solid #f0c8c4; color: #b0392c; font-size: 13.5px;
}
.cform__send {
  display: block; width: 100%; margin: 22px 0 0; padding: 17px 20px; border: 0;
  border-radius: 999px; background: var(--yellow); box-shadow: 0 4px 0 var(--yellow-deep);
  font: inherit; font-size: 17px; font-weight: 700; color: var(--grey); cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.cform__send:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--yellow-deep); }
.cform__send:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--yellow-deep); }
.cform__send:focus-visible { outline: 3px solid var(--blue-deep); outline-offset: 3px; }
/* 送っているあいだ（WordPress で送信するとき）。押せないことが分かるよう薄くし、動かさない */
.cform__send[disabled] { opacity: .6; cursor: wait; transform: none; box-shadow: 0 4px 0 var(--yellow-deep); }
/* 迷惑な送信をよける見えない入力欄（人には見えず、読み上げもしない。機械だけが入力する） */
.fld--trap { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cform__privacy { margin: 12px 0 0 !important; font-size: 12px; color: var(--grey-light); text-align: center; }

.cform__done {
  margin: 30px auto 0; max-width: 760px; text-align: left;
  background: #fff; border: 2px solid var(--blue); border-radius: var(--radius-lg);
  padding: 30px;
}
.cform__done-ttl { margin: 0 0 18px !important; font-size: 20px; font-weight: 700; color: var(--blue-ink); }
.cform__sum { display: grid; grid-template-columns: 8.5em 1fr; gap: 10px 14px; margin: 0 0 22px; font-size: 14.5px; }
.cform__sum dt { color: var(--grey-light); font-weight: 700; }
.cform__sum dd { margin: 0; color: var(--ink); white-space: pre-wrap; }
.cform__pending {
  margin: 0 0 18px !important; padding: 14px 16px; border-radius: 12px;
  background: var(--cream); border: 2px solid var(--yellow-deep); font-size: 13.5px; color: var(--grey);
}
.cform__back {
  padding: 12px 26px; border: 2px solid var(--line); border-radius: 999px;
  background: #fff; font: inherit; font-weight: 700; color: var(--grey); cursor: pointer;
}
.cform__back:hover { border-color: var(--blue); }

@media (max-width: 720px) {
  .cform, .cform__done { padding: 24px 18px 22px; border-radius: 18px; }
  .cform__grid { grid-template-columns: 1fr; gap: 14px; }
  .cform__sum { grid-template-columns: 1fr; gap: 2px 0; }
  .cform__sum dd { margin-bottom: 10px; }
  /* 拡大表示になるのを防ぐため、入力欄の文字は16px以上にする */
  .fld input, .fld select, .fld textarea { font-size: 16px; }
}

/* ---------- フッター ---------- */
.footer { background: #dff0fb; color: var(--ink); padding: 52px 0 0; }
.footer .footband { margin-bottom: -1px; }  /* 継ぎ目の線を出さない */
.footer__inner { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; }
.footer__tag { font-size: 12.5px; color: var(--grey-light); margin-top: 8px; letter-spacing: .06em; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; }
.footer__nav a { color: var(--grey); font-weight: 500; }
.footer__nav a:hover { color: var(--blue-ink); text-decoration: underline; }
.footer__copy { margin-top: 16px; font-size: 12.5px; color: var(--grey-light); }

/* ---------- スマホ用 固定バー ---------- */
.spbar { display: none; }

/* ---------- スクロールで表示 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .badge { animation: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   タブレット以下
   ========================================================= */
/* パソコンでも幅1220px以下では、メニュー7つとボタン2つが横1列に入りきらない
   （文字が1〜2字ずつ折り返して崩れていた。1201pxでやっと1行に入るので、ゆとりを見て1220px）ので、スマホと同じ「メニュー」ボタンに切り替える */
@media (max-width: 1220px) {
  :root { --header-h: 68px; }

  .nav, .header__cta { display: none; }
  .header { inset: 10px 0 auto; }
  .header__inner { padding: 8px 10px 8px 14px; border-radius: 18px; }
  .header__logo { --logo-w: 176px; }
  /* メニューを開くボタン（案3：まんなかが波線／開くと×） */
  .hamburger {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
    margin-left: auto; width: 46px; height: 46px; cursor: pointer;
    border: 0; background: transparent; padding: 0;
  }
  .hamburger__mark { width: 30px; height: 30px; overflow: visible; }
  .hamburger__mark .bar {
    stroke: var(--grey); stroke-width: 4; stroke-linecap: round; fill: none;
    transition: transform .34s cubic-bezier(.2,.7,.3,1), stroke .3s ease;
  }
  /* 回転の中心を、それぞれの線の真ん中に置く（中心がずれると×が崩れる） */
  .hamburger__mark .bar-top    { transform-origin: 24px 14px; }
  .hamburger__mark .bar-bottom { transform-origin: 24px 34px; }
  .hamburger__mark .wave {
    stroke: var(--blue); stroke-width: 4; stroke-linecap: round; fill: none;
    transition: transform .3s ease, opacity .22s ease; transform-origin: 24px 24px;
  }
  .hamburger__label {
    font-size: 9px; font-weight: 700; letter-spacing: .04em; color: var(--grey); line-height: 1;
  }
  /* 開いたとき＝きれいな × になる（波線は消え、下の線が水色に変わる） */
  body.menu-open .hamburger__mark .bar-top    { transform: translateY(10px) rotate(45deg); }
  body.menu-open .hamburger__mark .bar-bottom { transform: translateY(-10px) rotate(-45deg); stroke: var(--blue); }
  body.menu-open .hamburger__mark .wave       { transform: scaleX(0); opacity: 0; }



  /* メニューは左からすべり出て、閉じるときは右へ消える */
  .drawer {
    position: fixed; inset: 0; z-index: 99; background: rgba(255,255,255,.985);
    padding: 84px 22px 14px; display: block; overflow-y: auto;
    transform: translateX(-100%); visibility: hidden;
    transition: transform .42s cubic-bezier(.4,0,.2,1), visibility 0s linear .42s;
  }
  .drawer.is-open {
    transform: translateX(0); visibility: visible;
    transition: transform .42s cubic-bezier(.4,0,.2,1), visibility 0s;
  }
  .drawer.is-closing {
    transform: translateX(100%); visibility: visible;
    transition: transform .42s cubic-bezier(.4,0,.2,1);
  }
  .drawer.is-resetting { transition: none !important; }
  /* メニューの項目が順に現れる */
  .drawer.is-open > a { animation: drawerIn .38s ease both; }
  .drawer.is-open > a:nth-child(1) { animation-delay: .06s; }
  .drawer.is-open > a:nth-child(2) { animation-delay: .10s; }
  .drawer.is-open > a:nth-child(3) { animation-delay: .14s; }
  .drawer.is-open > a:nth-child(4) { animation-delay: .18s; }
  .drawer.is-open > a:nth-child(5) { animation-delay: .22s; }
  .drawer.is-open > a:nth-child(6) { animation-delay: .26s; }
  .drawer.is-open > a:nth-child(7) { animation-delay: .30s; }
  .drawer.is-open > a:nth-child(8) { animation-delay: .34s; }
  .drawer.is-open .drawer__band { animation: drawerIn .5s ease .38s both; }
  @keyframes drawerIn { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
  .drawer a {
    display: block; padding: 12px 4px; border-bottom: 1px solid var(--line);
    font-weight: 700; color: var(--grey);
  }
  .drawer a .en { font-size: 10px; color: var(--grey-light); margin-left: 8px; letter-spacing: .1em; }
  /* いま見ているページに黄色い印 */
  .drawer a[aria-current="page"] { border-left: 4px solid var(--yellow); padding-left: 10px; color: var(--blue-ink); }
  /* 申込はボタンにして、ほかの項目と見分けがつくように */
  .drawer a.drawer__cta {
    margin-top: 12px; border-bottom: 0; border-radius: 999px;
    background: var(--yellow); box-shadow: 0 3px 0 var(--yellow-deep);
    text-align: center; padding: 14px 4px; color: var(--grey);
  }
  .drawer a.drawer__cta .en { color: #7a6a00; }
  /* 幅の広い画面で開いたときに、一覧が横に間延びしないよう中央に寄せる（スマホでは今までどおり） */
  .drawer { padding-left: max(22px, calc(50% - 360px)); padding-right: max(22px, calc(50% - 360px)); }
}

@media (max-width: 900px) {

  /* スマホは画面が狭く文字が写真に重なるので、白いベールを強めて読めるようにする */
  .hero { min-height: 72vh; }
  .hero__img img { object-position: center 30%; }
  .hero__veil {
    background: linear-gradient(to top,
      rgba(255,255,255,.93) 0%,
      rgba(255,255,255,.80) 30%,
      rgba(255,255,255,.42) 48%,
      rgba(255,255,255,.08) 72%,
      rgba(255,255,255,0) 100%);
  }
  .hero__copy h1 { text-shadow: 0 1px 0 #fff, 0 0 12px rgba(255,255,255,.9); }
  .hero__copy p { font-weight: 500; }
  .badge {
    width: 124px; height: 124px; right: 12px; top: 132px;
    border-width: 2.5px;
  }
  .badge__in { gap: 1px; padding: 0 8px; }
  .badge__sub { font-size: 9px; padding: 2px 8px; letter-spacing: .06em; }
  .badge__main { font-size: 13px; line-height: 1.4; }
  .badge__kids { width: 58px; margin-top: 1px; }


  .grades__list { grid-template-columns: 1fr; }
  .reason { grid-template-columns: 1fr; gap: 20px; }
  .reason:nth-child(odd) .reason__img { order: 0; }
  .teacher__inner { grid-template-columns: 1fr; }
  .tree { grid-template-columns: 1fr; }
  .flow__list { grid-template-columns: repeat(2, 1fr); }
  .voices__list { columns: 1; }
  .access__list { grid-template-columns: 1fr; }
  .fee__cards { grid-template-columns: 1fr; }

  /* 列が多いので、スマホでは表を横にスクロールさせる */
  .fee__table { font-size: 13px; min-width: 720px; }
  .fee__table th, .fee__table td { padding: 10px 8px; }
  .fee__scroll { margin-inline: -16px; padding-inline: 16px; }

  /* スマホでは時間割の表をしまい、学年でしぼり込むカード形式に切り替える
     （4列を画面幅に押し込むと文字が潰れて読めないため） */
  .seats__scroll { display: none; }
  .seats__mobile { display: block; }
  .seat-btn { min-height: 44px; padding: 10px 18px; font-size: 13px; }

  /* 料金のめやす・木の図解も縦積みに */
  .feesum { grid-template-columns: 1fr; gap: 14px; }
  .feesum__item { padding: 22px 20px 20px; }
  .tree2 { grid-template-columns: 1fr; gap: 26px; }
  .tree2__img img { max-width: 280px; }
  .tree2__text p { font-size: 15px; line-height: 2; text-align: center; }
  .tree2__text .sec-more { text-align: center; }
  .more-btn { padding: 13px 26px; font-size: 14px; }
  .kidsband { margin-top: 44px; }

  /* 画面下に固定する3つのボタン */
  .spbar {
    display: grid; grid-template-columns: 1fr 1.1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px rgba(0,0,0,.08);
  }
  .spbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    padding: 10px 4px 11px; font-size: 12.5px; font-weight: 700; color: var(--grey);
  }
  .spbar a + a { border-left: 1px solid var(--line); }
  .spbar a svg { width: 20px; height: 20px; stroke: var(--grey); fill: none; stroke-width: 1.8; }
  .spbar .is-primary { background: var(--yellow); }
  .footer { padding-bottom: 0; }
  body { padding-bottom: 64px; }   /* 画面下の固定バーの分。フッターの色は残さない */
}

@media (max-width: 520px) {
  body { font-size: 15px; }
  .hero__copy { padding-bottom: 40px; }
  .flow__list { grid-template-columns: 1fr; }
  .contact__box { padding: 34px 20px; }
  .way { min-width: 100%; }
}


/* =========================================================
   下層ページ 共通
   ========================================================= */
.page { padding-top: 0; }

/* ページの見出し帯 */
.phead {
  padding: calc(var(--header-h) + 46px) 0 48px;
  background: linear-gradient(180deg, #eef7fd 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.crumb { font-size: 12.5px; color: var(--grey-light); margin-bottom: 18px; }
.crumb a { color: var(--blue-ink); font-weight: 700; }
.crumb a:hover { text-decoration: underline; }
.crumb span { margin: 0 8px; }
.phead__en {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .24em;
  color: var(--blue-ink); background: #e3f3fd; padding: 5px 14px; border-radius: 999px;
}
.phead__title {
  margin: 12px 0 0; font-size: clamp(28px, 5vw, 42px); color: var(--grey);
  font-weight: 700; letter-spacing: .06em;
}
.phead__title::after {
  content: ""; display: block; width: clamp(76px, 8vw, 96px); aspect-ratio: 239.63 / 43.86;
  background: var(--yellow); margin: 14px auto 0;
  -webkit-mask: var(--wave) center / 100% 100% no-repeat; mask: var(--wave) center / 100% 100% no-repeat;
}
.phead__lead { margin: 22px auto 0; max-width: 720px; font-size: 15.5px; line-height: 2.1; }

/* =========================================================
   ライトハウス紹介ページ
   ========================================================= */
.lh-hero { padding: 48px 0 10px; text-align: center; }
.lh-illust { max-width: 300px; width: 62%; margin: 0 auto 22px; }
.lh-logo { max-width: 420px; width: 80%; margin: 0 auto; }
.lh-note { margin: 18px 0 0; font-size: 13px; color: var(--grey-light); line-height: 1.9; }
.lh-note a { color: var(--blue-ink); font-weight: 700; text-decoration: underline; }

.lh-about { padding: 60px 0 70px; }
.lh-lead { max-width: 760px; margin: 0 auto; text-align: center; }
.lh-lead p { font-size: 16px; line-height: 2.2; margin: 0 0 22px; }
.lh-lead b { color: #3c5a68; padding-bottom: 6px; background: var(--wave-under-gold) repeat-x 0 100% / 22px 5.89px; }

.lh-can { padding: 76px 0; background: #f6fafc; }
.lh-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.lh-card {
  background: #fff; border: 2px solid #dfe9ee; border-radius: var(--radius-lg);
  padding: 28px 30px 26px;
}
.lh-card__no {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em;
  color: #fff; background: #4C6B7A; padding: 5px 13px; border-radius: 999px;
}
.lh-card h3 { margin: 12px 0 8px; font-size: 20px; color: #3c5a68; }
.lh-card p { margin: 0; font-size: 14.5px; }

.lh-rel { padding: 76px 0; }
.lh-rel__box {
  max-width: 820px; margin: 0 auto; padding: 40px 44px;
  background: #fffdf5; border: 2px solid #EBCB78; border-radius: var(--radius-lg); text-align: center;
}
.lh-rel__box h2 { margin: 0 0 18px; font-size: 22px; color: #3c5a68; }
.lh-rel__box p { margin: 0 0 16px; font-size: 15px; line-height: 2.1; }
.lh-rel__box p:last-child { margin-bottom: 0; }

.lh-open { padding: 76px 0 84px; background: #f6fafc; }
.lh-dl {
  max-width: 640px; margin: 0 auto; display: grid; grid-template-columns: 130px 1fr;
  gap: 0; border-top: 1px solid #dfe9ee; font-size: 15px;
}
.lh-dl dt, .lh-dl dd { padding: 16px 12px; border-bottom: 1px solid #dfe9ee; margin: 0; }
.lh-dl dt { font-weight: 700; color: #3c5a68; background: #fff; }
.lh-dl dd { background: #fff; }

.more-btn--lh { border-color: #4C6B7A; color: #3c5a68; }
.more-btn--lh:hover { background: #EBCB78; border-color: #EBCB78; }
.more-btn[aria-disabled="true"] { opacity: .75; cursor: default; }
.more-btn[aria-disabled="true"]:hover { transform: none; box-shadow: none; background: #fff; border-color: #4C6B7A; }

@media (max-width: 900px) {
  .lh-illust { max-width: 210px; }
  .phead { padding: calc(var(--header-h) + 34px) 0 36px; }
  .phead__lead { font-size: 14.5px; }
  .lh-cards { grid-template-columns: 1fr; }
  .lh-rel__box { padding: 28px 22px; }
  .lh-dl { grid-template-columns: 96px 1fr; font-size: 14px; }
  .lh-dl dt, .lh-dl dd { padding: 13px 10px; }
  .lh-logo { max-width: 300px; }
}


/* クラスの種類の説明（時間割の上） */
.classkind {
  list-style: none; margin: 0 0 12px; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.classkind li {
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 13px 16px; font-size: 13.5px; line-height: 1.7;
}
.classkind b {
  display: inline-block; margin-right: 8px; padding: 3px 11px; border-radius: 999px;
  background: var(--blue); color: var(--blue-ink); font-size: 12.5px;
}
.classkind__note { margin: 0 0 22px; font-size: 13px; color: var(--grey-light); text-align: center; }

/* 空き状況の更新日 */
.seats__upd {
  display: inline-block; margin-right: 8px; padding: 3px 12px; border-radius: 999px;
  background: var(--grey); color: #fff; font-size: 12px; font-weight: 700;
}
.seats__foot b { color: var(--grey); padding-bottom: 6px; background: var(--wave-under) repeat-x 0 100% / 22px 5.89px; }

@media (max-width: 900px) {
  .classkind { grid-template-columns: 1fr; gap: 8px; }
  .classkind li { padding: 11px 14px; font-size: 13px; }
}


/* キーボードで操作しているときだけ、位置がはっきり分かるようにする */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--blue-deep); outline-offset: 2px; border-radius: 6px;
}

/* 写真の切り替えを止めるボタン */
.hero__pause {
  position: absolute; right: 14px; bottom: 14px; z-index: 6;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 1.5px solid rgba(70,70,70,.35); background: rgba(255,255,255,.85);
  display: grid; place-items: center; font-size: 13px; color: var(--grey);
}
.hero__pause:hover { background: #fff; }


/* キーボードで操作する方が、メニューを飛ばして本文へ行けるリンク（普段は見えない） */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  padding: 12px 20px; background: var(--grey); color: #fff;
  font-size: 14px; font-weight: 700; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }


/* =========================================================
   スマホでの見え方の調整（2026-09-20）
   ========================================================= */

/* 運営会社の表記 */
.footer__biz { margin-top: 16px; font-size: 13px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.footer__biz > span:first-child {
  font-size: 11px; letter-spacing: .1em; padding: 3px 10px; border-radius: 999px;
  background: #fff; color: var(--grey);
}
.footer__biz a { font-weight: 700; color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }
.footer__biz a:hover { opacity: .8; }
.footer__biz-sub { color: #5a5a5a; font-size: 12px; }
.footer__cr { margin-top: 10px; font-size: 12px; line-height: 1.5; color: var(--grey-light); }

/* LINEのボタン。白文字が読めるよう、緑は少し濃くしている（白との明るさの差 4.69:1。読みやすさの基準 4.5:1 以上。元の #06C755 は 2.26:1 で読みにくい） */
.way--line {
  background: #068639; border-color: #068639; color: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.way--line .ttl, .way--line .sub { color: #fff; }
.way--line .sub { opacity: 1; }
.way--line:hover { background: #05793A; border-color: #05793A; }
.way__ico { width: 26px; height: 26px; margin-bottom: 2px; }

.spbar a.is-line { background: #068639; color: #fff; }
.spbar a.is-line svg { stroke: none; fill: #fff; }

/* 講師の写真が大きすぎたので抑える */
.teacher__photo img { max-width: 340px; margin-inline: auto; }

/* 木の図は白い台紙が目立たないよう、角を丸めて余白を持たせる */
.tree2__img img { border-radius: var(--radius); background: #fff; padding: 10px; }

@media (max-width: 900px) {
  /* 学年タイルは横にスライドして選ぶ */
  .grades__list {
    grid-template-columns: none;
    display: flex; gap: 14px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin-inline: -16px; padding: 4px 16px 14px;
  }
  .grades__list .grade { flex: 0 0 78%; scroll-snap-align: center; }
  .grades__list::-webkit-scrollbar { height: 6px; }
  .grades__list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

  /* 「選ばれる理由」も横にスライド */
  .reasons .wrap > .reason { display: none; }
  .reasons__slider {
    display: flex !important; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; margin-inline: -16px; padding: 4px 16px 14px;
  }
  .reasons__slider .rcard {
    flex: 0 0 82%; scroll-snap-align: center;
    background: #fff; border: 2px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  }
  .reasons__slider .rcard img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
  .reasons__slider .rcard__body { padding: 18px 20px 20px; }
  .reasons__slider .rcard__body h3 { margin: 10px 0 8px; font-size: 18px; color: var(--grey); line-height: 1.5; }
  .reasons__slider .rcard__body p { margin: 0; font-size: 14px; }

  /* 横にスライドできることを伝える */
  .slidehint { display: block; margin: 0 0 10px; font-size: 12.5px; color: var(--grey-light); text-align: center; }

  .teacher__photo img { max-width: 260px; }
  .tree2__img img { padding: 6px; }
}


/* 内容に合わせて足したイラスト（2026-09-20） */
.reason__img--ill { display: grid; place-items: center; background: #f7fbfd; border-radius: var(--radius-lg); padding: 18px; }
.reason__img--ill img { width: 78%; max-width: 330px; box-shadow: none; border-radius: 0; aspect-ratio: auto; }

.classkind li { display: flex; align-items: center; gap: 12px; }
.classkind li img { width: 46px; height: 40px; object-fit: contain; flex: 0 0 46px; }
.classkind li > span { flex: 1; }

.flow__ill {
  width: auto; height: 104px; max-width: 100%; object-fit: contain;
  margin: 2px auto 10px; display: block;
}

@media (max-width: 900px) {
  .reason__img--ill img { width: 62%; }
  .classkind li img { width: 40px; height: 34px; flex-basis: 40px; }
  .flow__ill { height: 84px; }
}


/* フッターの一番下に置くキャラクターの帯（背景は透明なのでフッターの色に乗る） */
.footband { position: relative; overflow: hidden; margin-top: -5%; padding: 0; line-height: 0; }
.footband picture { display: block; line-height: 0; }
/* 画像の上にある空白（8.3%）を切り、足元の線に黄色い地面を合わせる */
.footband::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7.5%; background: #ffff99; }
.footband img { position: relative; width: 100%; max-width: none; display: block; margin-top: -1.95%; }
@media (max-width: 900px) {
  /* スマホでは小さくなりすぎるので、少し拡大して中央に寄せる */
  .footband { margin-top: -3%; }
  .footband::before { height: 12.5%; }
  .footband img { width: 150%; margin-left: -47%; margin-top: -3.81%; }
}


/* スマホのメニューの中に置くイラスト */
.drawer__band { position: relative; z-index: 1; margin-top: 14px; line-height: 0; overflow: hidden; }
.drawer__band img { width: 150%; max-width: none; margin-left: -47%; margin-top: -3.81%; display: block; }

/* メニューの中の黄色い矢印（元のイラストにあった矢印を、文字ごと作り直したもの） */
.wingarrow { position: relative; z-index: 0; display: block; width: 100%; height: auto; margin: -9.7% 0 4px; overflow: visible; }
.wingarrow__body { fill: var(--yellow); stroke: var(--yellow); stroke-width: 18; stroke-linejoin: round; }
.wingarrow__shine { fill: #fff; opacity: .5; }
.wingarrow__t {
  font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif; font-weight: 700;
  font-size: 52px; fill: var(--blue-ink);
}
.drawer.is-open .wingarrow        { animation: wingIn .52s cubic-bezier(.2,.8,.3,1) .46s both; }
.drawer.is-open .wingarrow__g     { animation: wingNudge 2.8s ease-in-out 1.12s infinite; }
.drawer.is-open .wingarrow__t     { animation: wingText .46s ease .70s both; }
.drawer.is-open .wingarrow__shine { animation: wingShine 1.15s ease .92s both; }
@keyframes wingIn    { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes wingNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(13px); } }
@keyframes wingText  { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
@keyframes wingShine { from { transform: translateX(-100px) skewX(-18deg); } to { transform: translateX(1320px) skewX(-18deg); } }


@media (prefers-reduced-motion: reduce) {
  .drawer, .drawer.is-open, .drawer.is-closing { transition: none; }
  .drawer.is-open > a, .drawer.is-open .drawer__band { animation: none; }
  .drawer.is-open .wingarrow, .drawer.is-open .wingarrow__g,
  .drawer.is-open .wingarrow__t, .drawer.is-open .wingarrow__shine { animation: none; }
}


/* ===== 下層ページの共通部品 ===== */
.psec { padding: 62px 0; }
.psec--soft { background: var(--bg-soft); }
.psec--cream { background: var(--cream); }
.psec__head { margin: 0 0 30px; }
.psec__head h2 { margin: 0 0 8px; font-size: clamp(20px, 2.6vw, 26px); color: var(--grey); }
.psec__head h2::after {
  content: ""; display: block; width: 68px; aspect-ratio: 239.63 / 43.86; background: var(--yellow); margin-top: 10px;
  -webkit-mask: var(--wave) center / 100% 100% no-repeat; mask: var(--wave) center / 100% 100% no-repeat;
}
.psec__head p { margin: 14px 0 0; font-size: 15px; color: var(--grey-light); }
.psec h3 { font-size: 18px; color: var(--grey); margin: 0 0 10px; }
.psec p { line-height: 1.95; }

/* 2列の読み物 */
.pcols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 34px; }
.pcols--photo { grid-template-columns: 1fr 1.15fr; align-items: center; }
.pcard {
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px 26px 26px;
}
.pcard__lb {
  display: inline-block; margin-bottom: 10px; padding: 4px 12px; border-radius: 999px;
  background: #d4ecfb; color: var(--blue-ink); font-size: 11.5px; font-weight: 700; letter-spacing: .08em;
}
.pcard p:last-child { margin-bottom: 0; }
.pcard img { border-radius: 14px; margin-bottom: 16px; }

/* 定義リスト（料金・持ち物など） */
.pdl { display: grid; grid-template-columns: 11em 1fr; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.pdl dt, .pdl dd { padding: 14px 4px; border-bottom: 1px solid var(--line); margin: 0; font-size: 15px; }
.pdl dt { font-weight: 700; color: var(--grey); }
.pdl dd { color: var(--ink); }

/* まだ確認できていないことの印 */
.todo {
  display: block; margin-top: 14px; padding: 12px 16px; border-radius: 12px;
  background: var(--cream); border: 2px dashed var(--yellow-deep);
  font-size: 13.5px; color: var(--grey); line-height: 1.85;
}
.todo b { color: #8a6d00; }

/* よくある質問 */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 34px; position: relative;
  font-weight: 700; color: var(--grey); font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; position: absolute; left: 4px; top: 17px; color: var(--blue-deep); font-size: 17px; }
.faq summary::after {
  content: ""; position: absolute; right: 10px; top: 24px; width: 10px; height: 10px;
  border-right: 2px solid var(--grey-light); border-bottom: 2px solid var(--grey-light);
  transform: rotate(45deg); transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .faq__a { margin: 0; padding: 0 10px 20px 34px; font-size: 15px; color: var(--ink); line-height: 1.95; }

/* 次に読むとよいページ */
.nextsec { padding: 46px 0 8px; }
.nextsec__lb { margin: 0 0 16px; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--grey-light); }
.nextsec__list { display: flex; flex-wrap: wrap; gap: 14px; }
.nextcard {
  flex: 1 1 260px; display: flex; flex-direction: column; gap: 5px;
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px 22px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.nextcard:hover { transform: translateY(-3px); border-color: var(--blue); box-shadow: var(--shadow-soft); }
.nextcard__ttl { font-weight: 700; color: var(--grey); font-size: 16px; }
.nextcard__ttl::after { content: " →"; color: var(--blue-deep); }
.nextcard__sub { font-size: 12.5px; color: var(--grey-light); }

@media (max-width: 860px) {
  .psec { padding: 46px 0; }
  .pcols, .pcols--photo { grid-template-columns: 1fr; gap: 18px; }
  .pdl { grid-template-columns: 1fr; }
  .pdl dt { padding-bottom: 0; border-bottom: 0; }
  .pdl dd { padding-top: 6px; }
}

/* ===== お知らせ・ブログの一覧（WordPressの投稿がここに並ぶ） ===== */
.postlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.postlist > li { border-bottom: 1px solid var(--line); }
.postlist a {
  display: grid; grid-template-columns: 132px 1fr; gap: 18px; align-items: center;
  padding: 18px 6px; transition: background .2s ease;
}
.postlist a:hover { background: var(--bg-soft); }
.postlist__thumb { width: 132px; height: 88px; border-radius: 10px; overflow: hidden; background: var(--bg-soft); }
.postlist__thumb img { width: 100%; height: 100%; object-fit: cover; }
.postlist__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.postlist__date { font-size: 12.5px; color: var(--grey-light); letter-spacing: .04em; }
.postlist__cat {
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: #d4ecfb; color: var(--blue-ink); letter-spacing: .06em;
}
.postlist__cat--news { background: var(--yellow); color: #6b5c00; }
.postlist__ttl { display: block; font-size: 16.5px; font-weight: 700; color: var(--grey); line-height: 1.6; }
.postlist a:hover .postlist__ttl { color: var(--blue-ink); }
.postlist__ex { display: block; margin-top: 6px; font-size: 13.5px; color: var(--grey-light); line-height: 1.8; }

/* 見本であることを示す帯 */
.sample-note {
  margin: 0 0 16px !important; padding: 11px 16px; border-radius: 10px;
  background: var(--cream); border: 2px dashed var(--yellow-deep);
  font-size: 13px; color: var(--grey);
}
.postlist--sample a { opacity: .78; pointer-events: none; }
.postlist--sample .postlist__ttl::after {
  content: "見本"; margin-left: 10px; padding: 2px 8px; border-radius: 4px;
  background: #e8e8e8; color: #5f5f5f; font-size: 10.5px; vertical-align: 2px;
}

@media (max-width: 620px) {
  .postlist a { grid-template-columns: 96px 1fr; gap: 12px; padding: 14px 4px; }
  .postlist__thumb { width: 96px; height: 68px; }
  .postlist__ttl { font-size: 15px; }
  .postlist__ex { display: none; }
}

/* ===== 教室理念の3つの箇条書き ===== */
.creed { list-style: none; counter-reset: creed; margin: 18px 0 20px; padding: 0; }
.creed li {
  counter-increment: creed; position: relative; padding: 0 0 0 40px; margin-bottom: 14px;
  font-size: 15.5px; line-height: 1.9; color: var(--ink);
}
.creed li::before {
  content: counter(creed); position: absolute; left: 0; top: 2px;
  width: 26px; height: 26px; border-radius: 50%; background: #d4ecfb;
  color: var(--blue-ink); font-size: 14px; font-weight: 700; display: grid; place-items: center;
}
.creed li:last-child { margin-bottom: 0; }

/* 格子の中身が画像の元の幅に引っぱられて、スマホで画面の外へはみ出さないようにする
   （格子の各マスは、何も指定しないと中身の最小幅より細くなれない） */
.pcols > *, .pdl > *, .postlist a > *, .nextsec__list > *, .faq > * { min-width: 0; }
.pcols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pcols--photo { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.pcols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pcols--1 { grid-template-columns: minmax(0, 1fr); }
.pdl dd { overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .pcols, .pcols--photo, .pcols--3, .pcols--1 { grid-template-columns: minmax(0, 1fr); }
}

/* ヒーローの見出しを1行に収める（スマホ）
   「できるから、もっと知りたくなる」は15文字（字間を入れて15.45文字分）。
   黄色いマーカーの左右の余白（計6px）と、1文字ごとの幅の丸め（端末によって1字あたり最大0.5px広がる）の
   ゆとりを差し引いた横幅を、15.6等分した大きさにする。30pxより大きくはしない */
@media (max-width: 520px) {
  .hero__copy { container-type: inline-size; }
  .hero__copy h1 { font-size: min(30px, calc((100cqi - 20px) / 15.6)); }
}

/* ===== お知らせページ：左にブログ、右にnote（スマホは上下に並ぶ） ===== */
.newscols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 44px; align-items: start; }
.newscols > * { min-width: 0; }
.newscol__head {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; position: relative;
  margin: 0 0 16px; padding-bottom: 18px;
}
/* 列の見出しの下の線も、ロゴの波をくり返した形（1周期 40px。端で波が切れないよう数を丸める） */
.newscol__head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8.56px; background: var(--yellow);
  -webkit-mask: var(--wave-line) 0 50% / 40px 100% round no-repeat; mask: var(--wave-line) 0 50% / 40px 100% round no-repeat;
}
.newscol__head h2 { margin: 0; font-size: clamp(20px, 2.4vw, 24px); color: var(--grey); }
.newscol__head span { font-size: 12.5px; color: var(--grey-light); }
.newscol .postlist a { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; }
.newscol .postlist__thumb { width: 110px; height: 74px; }
.newscol .postlist__ttl { font-size: 15.5px; }
.postlist__cat--note { background: #41c9b4; color: var(--grey); }
.newscol__more { margin: 16px 0 0; text-align: right; }
@media (max-width: 860px) {
  .newscols { grid-template-columns: minmax(0, 1fr); gap: 44px; }
}

/* ===== Instagramの投稿（公式の埋め込み）を3つ並べる。スマホは1列 ===== */
.instagrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.instagrid > * { min-width: 0; }
.instagrid .instagram-media, .instagrid iframe { min-width: 0 !important; width: 100% !important; margin: 0 !important; }
.instagrid blockquote.instagram-media {
  background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 18px; text-align: center;
}
@media (max-width: 860px) {
  .instagrid { grid-template-columns: minmax(0, 1fr); max-width: 420px; margin-inline: auto; }
}

/* 体験の流れページ：トップと同じ「4つのステップ」の部品を使う。
   イラストは縦横の比がばらばら（縦長〜横長）なので、高さをそろえて横幅は絵に合わせる */
.page--trial .flow__ill { height: 132px; }
@media (max-width: 900px) { .page--trial .flow__ill { height: 110px; } }


/* スマホでは「住所」などの見出しが左を占めるため、住所（22文字）が入りきらず折り返していた。
   見出しを上・中身を下に置いて横幅を使い切る。左右の余白も少し詰める */
@media (max-width: 520px) {
  .access__body { padding: 22px 20px 24px; }
  .access__item dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .access__item dt { margin-top: 12px; }
  .access__item dt:first-of-type { margin-top: 0; }
}


/* お知らせ・SNS：各列の下の「すべて見る」ボタン（サイト共通の丸いボタンを使う） */
.newscol__btn { margin: 22px 0 0; text-align: center; }
/* 左右の列で記事の長さが違っても、2つのボタンの高さがそろうように、ボタンを列の下端に寄せる */
.newscols { align-items: stretch; }
.newscols > .newscol { display: flex; flex-direction: column; }
.newscols .newscol__btn { margin-top: auto; padding-top: 22px; }
/* 2026-09-24 トップの写真差し替えに合わせて
   ・講師紹介の写真を2枚に。PCは縦に2枚、スマホは横に2枚並べる（どちらも 4:3 にそろえてある）
   ・トップの「教室理念」は文章だけにする（木の図は講師ページに残す） */
.teacher__photo { display: grid; gap: 14px; align-content: start; }
.tree2--text { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin-inline: auto; }
.tree2--text .sec-more { text-align: center; }
@media (max-width: 900px) {
  .teacher__photo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 540px; margin-inline: auto; }
}
/* 2026-09-24 ライトハウスの印が見出しに重ならないようにする
   これまでは印を「画面の上から決まった距離」、見出しを「画面の下」にそろえていたため、
   画面の高さが低いと両方がぶつかっていた（スマホは高さ740以下、幅1100以下のパソコンは高さ657以下）。
   印を見出しのすぐ上に積む形にして、余白があれば今までと同じ位置に置き、
   足りないときはヒーローを縦にのばして見出しを下へ送る（印と見出しの間は16px以上あける）。
   幅の広いパソコン（1221px以上）は、印と見出しが横に離れていて重ならないので今のまま */
@media (max-width: 1220px) {
  .hero { flex-direction: column; align-items: stretch; justify-content: flex-end; }
  .badge {
    position: relative; top: auto; right: auto; flex: none; align-self: flex-end;
    margin: 20vh 4% auto 0; margin-top: 20svh;   /* 今までの top: 20%・right: 4% と同じ位置 */
  }
  .hero__copy { margin-top: 16px; }
}
@media (max-width: 900px) {
  /* 今までの top: 132px と同じ。画面の高さが低いときは、上のメニューにかからない範囲で少し上げる */
  .badge { margin: clamp(96px, 18vh, 132px) 12px auto 0; }
}
/* 2026-09-24 WordPress のブログ用（一覧のページ送り・記事がないとき・記事のページ）。
   静的サイトのページでは使わないが、見た目の正本はこのファイルなので、ここに書く。
   色・角の丸み・見出しの波線は、サイトのほかの部分と同じものを使う。DS の確認（同日）を反映済み */
/* 記事がないとき：やわらかい地の箱。お知らせ・SNS では「ブログをすべて見る」も出さない（空の一覧へ案内しない） */
.postlist__empty {
  margin: 0; padding: 24px 20px; font-size: 14px; color: var(--grey-light); text-align: center;
  border: 0; border-radius: var(--radius); background: var(--bg-soft);
}
.newscol:first-child .postlist__empty + .newscol__btn { display: none; }
.pagination { margin-top: 30px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers {
  min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--line); border-radius: 999px; background: #fff; color: var(--grey); font-weight: 700; font-size: 14px;
}
.pagination a.page-numbers:hover { border-color: var(--blue); color: var(--blue-ink); }
.pagination .page-numbers.current { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.pagination .page-numbers.dots { border-color: transparent; background: none; min-width: 0; padding: 0 4px; }
/* スマホは「前へ・今のページ・次へ」の1段にする（ページが多いと「次へ」が2段目に落ちるため） */
@media (max-width: 520px) {
  .pagination a.page-numbers:not(.prev):not(.next), .pagination .dots { display: none; }
}
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
/* 記事のページの見出し：長い題名でも、スマホの最初の画面に本文が入るようにする。
   パンくずは「ホーム › ブログ」までにする（題名は大きな見出しに出ている）。
   text-wrap: balance は使わない（日本語が語の途中で割れる） */
.phead--post .phead__title { font-size: clamp(22px, 5.6vw, 42px); line-height: 1.5; line-break: strict; }
.phead--post .crumb span:last-of-type, .phead--post .crumb b { display: none; }
.post-meta { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; color: var(--grey-light); }
.post-eyecatch { margin: 0 auto 30px; }
.post-eyecatch img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); }
/* 本文：PC で1行40字ほど */
.post-body, .post-eyecatch { max-width: 40em; margin-inline: auto; }
.post-body { font-size: 16px; line-height: 2; color: var(--ink); overflow-wrap: anywhere; }
.post-body > * { margin: 0 0 1.4em; }
.post-body > :last-child { margin-bottom: 0; }
.post-body h2 { margin: 2.2em 0 .9em; font-size: clamp(20px, 2.6vw, 24px); color: var(--grey); line-height: 1.5; }
.post-body h2::after {
  content: ""; display: block; width: 68px; aspect-ratio: 239.63 / 43.86; background: var(--yellow); margin-top: 10px;
  -webkit-mask: var(--wave) center / 100% 100% no-repeat; mask: var(--wave) center / 100% 100% no-repeat;
}
/* 見出し（小）は、太字の段落と見分けられるよう左に線 */
.post-body h3 { margin: 1.8em 0 .6em; padding-left: 12px; border-left: 4px solid var(--blue); font-size: 18px; color: var(--grey); line-height: 1.5; }
.post-body a { color: var(--blue-ink); text-decoration: underline; }
.post-body ul, .post-body ol { padding-left: 1.4em; }
.post-body li { margin: .3em 0; }
.post-body img { max-width: 100%; height: auto; border-radius: var(--radius); }
.post-body .aligncenter img, .post-body img.aligncenter { display: block; margin-inline: auto; }
.post-body figure { margin: 1.8em 0; }
.post-body figcaption { margin-top: 8px; font-size: 13px; color: var(--grey-light); text-align: center; }
.post-body blockquote {
  margin: 1.8em 0; padding: 16px 20px; background: var(--bg-soft);
  border-left: 4px solid var(--yellow); border-radius: 0 var(--radius) var(--radius) 0;
}
.post-body blockquote > * { margin: 0; }
.post-body blockquote > * + * { margin-top: .6em; }
.post-body cite { display: block; font-style: normal; font-size: 13px; color: var(--grey-light); }
.post-body table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.7; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
.post-body iframe { max-width: 100%; }
.post-body .wp-block-embed iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; }

/* 2026-09-24 DS 案：お知らせ帯・トップの「お知らせ・ブログ」（styles.css の末尾にそのまま足す）
   色は今ある色だけを使う（クリーム #fffbe6・その枠 #f0e4a8・黄色の札・本文の色・水色の地 #eef7fd）。白い文字は使わない */

/* =========================================================
   お知らせ帯（全ページのいちばん上。先生が管理画面で出す／出さないを切り替える）
   ・ヘッダーの「上」に置き、ページと一緒に流れて消える（画面に居座らない＝閉じるボタンは付けない）
   ・帯がある間は、浮いているヘッダーを帯の高さだけ下げる。--infobar-push は script.js が入れる（帯がなければ 0）
     → 帯を出しても、ヘッダー・ライトハウスの印・見出しの位置関係は今と同じ（全部が同じだけ下がる）
   ========================================================= */
.infobar {
  position: relative;
  background: var(--cream); border-bottom: 1px solid #f0e4a8; color: var(--ink);
}
.infobar__in {
  width: min(var(--maxw), calc(100% - 32px)); margin-inline: auto;
  display: flex; justify-content: center;   /* 1行に入るときはまんなか */
}
/* 文章の箱。折り返すときは左そろえ（まんなかそろえの2行は行頭がそろわず読みにくい）。
   上下の余白は箱の側に持たせて、リンクのときに押せる高さを 44px 以上にする */
.infobar__body {
  display: block; margin: 0; padding: 11px 0; min-width: 0; min-height: 44px; text-align: left;
  font-size: 14px; font-weight: 500; line-height: 1.6; letter-spacing: .02em; color: var(--ink);
  line-break: strict;          /* 小さい「っ」「ー」を行の頭に出さない */
  word-break: auto-phrase;     /* 語の切れ目で折り返す（「日｜程」を「振替の｜日程」に）。Chrome 系だけに効き、iPhone の Safari では無視されて今までどおり */
  overflow-wrap: anywhere;     /* 長い英数字でも画面の外へはみ出さない */
}
/* 札は「お知らせ・SNS」の一覧のお知らせの札（.postlist__cat--news）と同じ見た目 */
.infobar__tag {
  display: inline-block; margin-right: 10px; padding: 0 10px; border-radius: 999px;
  background: var(--yellow); color: #6b5c00;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; line-height: 22px; vertical-align: 1px;
  white-space: nowrap;
}
/* 押せるとき：下線と矢印。押せないときは下線も矢印も出さない（押せると誤解させない） */
a.infobar__body { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a.infobar__body:hover { color: var(--blue-ink); }
.infobar__arrow { display: inline-block; margin-left: 6px; color: var(--blue-deep); font-weight: 700; }
/* 外のサイトが開くときの「（別のサイトが開きます）」は、今ある .screen-reader-text で見た目には出さない */
@media (max-width: 520px) {
  /* 40字でも2行に収める（14px だと 360px 幅で3行になる） */
  .infobar__body { font-size: 13.5px; letter-spacing: 0; padding: 10px 0; }
  .infobar__tag { margin-right: 8px; }
}

/* 帯がある間だけ、ヘッダーを帯の下へ（帯が流れて消えたら 0 に戻る。帯がなければ常に 0） */
.header { transform: translateY(var(--infobar-push, 0px)); }
@media (max-width: 1220px) {
  /* スマホのメニューを開いたとき、最初の項目がヘッダーに隠れないよう、ヘッダーが下がった分だけ下げる */
  .drawer { padding-top: calc(84px + var(--infobar-push, 0px)); }
}


/* =========================================================
   トップ：お知らせ・ブログ（ブログの新しい3件。体験の流れの下・生徒の声の上）
   ・一覧の形は「お知らせ・SNS」「ブログ」と同じ .postlist の1件（WordPress の hara_post_item_html() をそのまま使う）
   ・トップ用に軽くする：抜粋は出さない・写真は小さく・白い箱にまとめる
   ・記事が0件のときは、この節ごと出さない（D3）
   ========================================================= */
.topnews { padding: 84px 0; background: var(--bg-soft); }
.topnews__box {
  max-width: 820px; margin-inline: auto; padding: 4px 22px;
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius-lg);
}
.postlist--top { border-top: 0; }
.postlist--top > li:last-child { border-bottom: 0; }
.postlist--top a { grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 16px 4px; }
.postlist--top .postlist__thumb { width: 110px; height: 74px; }
.postlist--top .postlist__ttl { font-size: 15.5px; line-break: strict; }
.postlist--top .postlist__ex { display: none; }
/* 日付と札が1行に入らないほど狭いときは、札を日付の下へ（札の中の文字は折り返さない） */
.postlist--top .postlist__meta { flex-wrap: wrap; row-gap: 4px; }
.postlist--top .postlist__cat { white-space: nowrap; }
.topnews .sec-more { margin-top: 30px; }
@media (max-width: 620px) {
  .topnews__box { padding: 2px 14px; border-radius: var(--radius); }
  .postlist--top a { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 14px 0; }
  .postlist--top .postlist__thumb { width: 96px; height: 68px; }
  .postlist--top .postlist__ttl { font-size: 15px; }
}

/* 2026-09-25 DS: 文の最後の語句を途中で改行させない（体験の流れのカード・ライトハウスの案内）。日本語の本文に text-wrap: pretty は使わない（Safari で行が増える） */
.nobr { white-space: nowrap; }
/* 2026-09-25 DS: 料金ページで空席表の下の注意書きを消したあと、次の節がくっつかないように（トップと同じ72pxの間） */
.seats + .psec { margin-top: 64px; }
/* 2026-10-15 お知らせ・SNS：note の列をやめ、ブログの列を幅いっぱいに（1列。見出しと一覧はページの基準線にそろう） */
.newscols--1 { grid-template-columns: minmax(0, 1fr); }
/* 2026-10-15 料金ページの月謝の一覧（クラス名の列を広めに。スマホは上下）と、一覧・表のすぐ下の一文 */
.pdl--fee { grid-template-columns: 14em minmax(0, 1fr); }
.pdl__after { margin: 14px 0 0; }
@media (max-width: 860px) {
  .pdl--fee { grid-template-columns: minmax(0, 1fr); }
}

/* 2026-10-20 オーナー: トップの並びを入れ替えたので、隣どうしが同じ背景にならないよう色を交互にする（2回目の並び）
   理由（水色）→ 学年（クリーム）→ 料金（白）→ 講師（水色）→ 声（クリーム）→ 空席（白）→ 体験の流れ（クリーム）→ 教室のご案内（水色）→ 申込（白）
   .grades・.flow はトップだけにある。.seats は料金ページにもあるので、声の次のときだけ下の余白を広げる */
.grades { padding-bottom: 64px; background: var(--cream); }
.voices + .seats { padding-bottom: 64px; }
.flow { background: var(--cream); }
