/* こども英会話 ハローポケット（デモ）
   絵は円・半円・四角・三角の積み木だけ。線・影・質感は使わない。色は下の6つだけ。 */
:root {
  --blue: #3B7DD8;
  --orange: #FF8C42;
  --lb: #E7F0FB;
  --lo: #FFEEDF;
  --navy: #23324A;
  --white: #FFFFFF;
  --en: "Baloo 2", "M PLUS Rounded 1c", system-ui, sans-serif;
  --ja: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --wrap: 1120px;
  --pad: clamp(20px, 4vw, 40px);
  --r: 18px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--white); color: var(--navy);
  font-family: var(--ja); font-weight: 400;
  font-size: clamp(15px, 0.86rem + 0.28vw, 17px); line-height: 1.9; letter-spacing: .03em;
  overflow-wrap: anywhere; word-break: auto-phrase;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: .2em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { font-weight: 700; line-height: 1.45; margin: 0; font-feature-settings: "palt"; letter-spacing: .04em; text-wrap: balance; }
table { border-collapse: separate; border-spacing: 0; width: 100%; }
.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: var(--navy); color: var(--white); padding: 8px 14px; border-radius: 10px; }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: calc(820px + var(--pad) * 2); }

/* ---------- 英語の1語（見出しの右上に小さく傾けて） ---------- */
.en { display: inline-block; font-family: var(--en); font-weight: 700; color: var(--orange); letter-spacing: .01em; transform: rotate(-5deg); line-height: 1; }
.sh__title .en { font-size: .62em; margin-left: .5em; vertical-align: .9em; }
.en--hero { font-size: clamp(34px, 2rem + 1.4vw, 52px); margin: 0 0 .25em; transform-origin: left bottom; }
.en--page { font-size: clamp(30px, 1.6rem + 1.2vw, 44px); margin: 0 0 .2em; }

/* ---------- ボタン（角の丸い太い四角） ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 12px 28px; border: 0; border-radius: 14px;
  background: var(--orange); color: var(--navy);  /* 白い字では読みにくい（2.3:1）ので紺の字（5.6:1） */
  font: 700 18px/1.3 var(--ja); letter-spacing: .06em; text-decoration: none; cursor: pointer; word-break: auto-phrase;
  transition: transform .2s ease;
}
.btn:hover { color: var(--navy); transform: translateY(-2px); }
.btn--sm { min-height: 44px; padding: 8px 18px; font-size: 16px; border-radius: 12px; }
.btn--big { min-height: 62px; padding: 14px 36px; font-size: 19px; border-radius: 16px; }
.btn--line { background: var(--white); color: var(--blue); box-shadow: inset 0 0 0 3px var(--blue); }
.btn--line:hover { color: var(--blue); }
.btn--blue { background: var(--blue); font-size: 19px; }
.btn--blue svg { width: 22px; height: 20px; }
.more { margin: clamp(28px, 4vw, 44px) 0 0; text-align: center; }
.textlink { margin-top: 24px; text-align: right; font-weight: 700; }

/* ---------- ヘッダー ---------- */
.head { position: sticky; top: 0; z-index: 50; background: var(--white); box-shadow: 0 3px 0 var(--lb); }
.head__in { max-width: calc(var(--wrap) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); height: 76px; display: flex; align-items: center; gap: 14px; }
.brand { display: block; color: inherit; text-decoration: none; }
.logo { height: 46px; width: auto; }
.demo { font: 700 10px/1 var(--en); letter-spacing: .12em; color: var(--navy); background: var(--lb); padding: 4px 6px 3px; border-radius: 5px; margin-right: auto; }
.gnav ul { display: flex; gap: clamp(14px, 1.8vw, 30px); list-style: none; margin: 0; padding: 0; }
.gnav { display: flex; align-items: center; gap: clamp(18px, 2vw, 30px); }
.gnav a:not(.btn) { position: relative; display: block; padding: 8px 0; color: var(--navy); font-weight: 700; font-size: 15px; text-decoration: none; letter-spacing: .05em; }
.gnav a:not(.btn)::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--orange); transform: scale(0); transition: transform .2s; }
.gnav a:not(.btn):hover::after { transform: scale(.7); }
.gnav a[aria-current="page"]::after { transform: scale(1); }
.gnav a:not(.btn)[aria-current="page"] { color: var(--blue); }
.head__btn { display: none; }
.menu { display: none; }

@media (max-width: 1000px) {
  .head__in { height: 66px; }
  .logo { height: 40px; }
  .head__btn { display: inline-flex; }
  .menu { display: grid; place-items: center; gap: 2px; width: 52px; height: 52px; border: 0; border-radius: 12px; background: var(--lb); color: var(--navy); cursor: pointer; padding: 6px 0 4px; }
  .menu__bars { display: grid; gap: 4px; width: 22px; }
  .menu__bars i { display: block; height: 3px; border-radius: 2px; background: var(--navy); transition: transform .2s, opacity .2s; }
  .menu__label { font: 700 9px/1 var(--en); letter-spacing: .1em; }
  .is-menu .menu__bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .is-menu .menu__bars i:nth-child(2) { opacity: 0; }
  .is-menu .menu__bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .gnav { position: fixed; inset: 66px 0 auto 0; flex-direction: column; align-items: stretch; gap: 18px; padding: 20px var(--pad) 28px; background: var(--white); box-shadow: 0 4px 0 var(--lb); transform: translateY(-120%); opacity: 0; transition: transform .25s, opacity .25s; visibility: hidden; }
  .is-menu .gnav { transform: none; opacity: 1; visibility: visible; }
  .gnav ul { flex-direction: column; gap: 0; }
  .gnav a:not(.btn) { padding: 14px 4px; font-size: 17px; border-bottom: 2px solid var(--lb); }
  .gnav a:not(.btn)::after { left: auto; right: 8px; top: 50%; bottom: auto; margin: -5px 0 0; }
}
@media (max-width: 560px) {
  .head__btn { display: none; }
  .logo { height: 38px; }
}

/* ---------- 区画 ---------- */
.sec { padding: clamp(56px, 8vw, 104px) 0; }
.sec--lo { background: var(--lo); }
.sec--lb { background: var(--lb); }
.sec--top0 { padding-top: 0; }
.sec--lo + .sec--top0, .sec--lb + .sec--top0 { padding-top: clamp(56px, 8vw, 104px); }
.sh { display: flex; align-items: center; gap: 14px; margin: 0 0 clamp(18px, 2.4vw, 28px); }
.sh__mark { flex: none; width: clamp(28px, 2.6vw, 36px); }
.sh__mark .shape { width: 100%; height: auto; }
.sh__title { font-size: clamp(22px, 1.1rem + 1.05vw, 32px); }
.lead { max-width: 40em; margin-bottom: clamp(24px, 3vw, 40px); }
.lead--c { margin: 28px auto 0; text-align: center; }
.note { font-size: .86em; margin-top: 16px; color: var(--navy); }
.note--c { text-align: center; }

/* 積み木を横に4つ並べた帯（高さ16px） */
.strip { display: flex; justify-content: center; gap: 10px; padding: 8px 0; }
.strip i { display: block; width: 16px; height: 16px; }
.strip .s-c { border-radius: 50%; background: var(--orange); }
.strip .s-h { height: 8px; margin-top: 8px; width: 16px; border-radius: 8px 8px 0 0; background: var(--blue); }
.strip .s-s { border-radius: 2px; background: var(--orange); }
.strip .s-t { background: var(--blue); clip-path: polygon(50% 0, 100% 100%, 0 100%); }

/* ---------- 最初の画面 ---------- */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 6vw, 72px); }
.hero__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero__title { font-size: clamp(28px, 1.2rem + 2.5vw, 52px); line-height: 1.42; letter-spacing: .03em; margin-bottom: .7em; }
.hero__lead { max-width: 30em; margin-bottom: 1.6em; }
.hero__cta { margin: 0 0 .7em; }
.hero__note { font-size: .92em; font-weight: 700; }
.hero__note a { color: var(--navy); text-decoration-color: var(--orange); text-decoration-thickness: 3px; }
.hero-pic { width: 100%; height: auto; }
.hero__band { margin-top: clamp(32px, 4vw, 52px); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px; padding: 18px 24px; border-radius: var(--r); background: var(--lb); }
.hero__band-t { margin: 0; font-weight: 700; font-size: 15px; }
.hero__band-a { font-weight: 700; white-space: nowrap; }
@media (max-width: 820px) {
  .hero__in { grid-template-columns: 1fr; gap: 20px; }
  .hero__pic { order: -1; max-width: 430px; width: 100%; margin: 0 auto; }
  .hero-pic { max-height: 300px; }
  .hero__band { grid-template-columns: 1fr; gap: 12px; padding: 18px; }
  .hero__band-a { justify-self: end; }
}
@media (max-width: 560px) {
  .hero { padding-top: 16px; }
  .hero-pic { max-height: 236px; }
  .en--hero { font-size: 30px; }
  .hero__title { font-size: 26px; }
  .hero__cta .btn { width: 100%; }
}

/* ---------- 50分の帯 ---------- */
.band { position: relative; }
.band__scale { position: relative; height: 26px; margin: 0 0 6px; font: 600 16px/1 var(--en); }
.band__scale span { white-space: nowrap; position: absolute; bottom: 0; left: calc(var(--m) / 50 * 100%); transform: translateX(-50%); }
.band__scale span:first-child { transform: none; }
.band__scale span:last-child { transform: translateX(-100%); }
.band__bar { display: flex; gap: 2px; height: 46px; }
.band__seg { flex: var(--g) 1 0; background: var(--c); border-radius: 8px; display: grid; place-items: center; min-width: 0; }
.band--mini .band__scale { display: none; }
.band--mini .band__bar { height: 40px; }
.band--mini .band__seg:nth-child(4) { background: var(--white); }
.band__seg em { font-style: normal; font-weight: 700; font-size: 13px; letter-spacing: .02em; white-space: nowrap; color: var(--navy); }
.band__seg:nth-child(2) em, .band__seg:nth-child(5) em { color: var(--white); }
.band__names { display: none; }
@media (max-width: 700px) {
  .band__seg em { display: none; }
  .band__names { display: flex; flex-wrap: wrap; gap: 4px 14px; list-style: none; margin: 10px 0 0; padding: 0; font-size: 13px; font-weight: 700; }
  .band__names li { display: flex; align-items: center; gap: 6px; }
  .band__names li::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--c); }
  .band--mini .band__names li:nth-child(4)::before { background: var(--white); }
}

/* 小学生のクラスの50分（大きい図） */
.fifty { margin: 0; }
.fifty__wrap { position: relative; padding-top: 64px; }
.desk { position: absolute; top: 0; right: 0; width: max(20%, 168px); display: flex; align-items: flex-end; justify-content: center; gap: 8px; font-size: 13px; font-weight: 700; line-height: 1.3; }
.desk svg { width: 46px; flex: none; }
.fifty__list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.fifty__list li { display: flex; flex-direction: column; gap: 4px; }
.fifty__list .shape { width: 40px; margin-bottom: 6px; }
.fifty__t { font: 700 20px/1.1 var(--en); color: var(--blue); }
.fifty__list b { font-size: 17px; }
.fifty__list li > span:last-child { font-size: .92em; line-height: 1.7; }
@media (max-width: 820px) {
  .fifty__list { grid-template-columns: 1fr; gap: 14px; }
  .fifty__list li { display: grid; grid-template-columns: 44px 6.2em minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; }
  .fifty__list .shape { grid-row: 1 / 3; margin: 0; }
  .fifty__t { grid-row: 1 / 3; font-size: 18px; }
  .fifty__list b { grid-column: 3; }
  .fifty__list li > span:last-child { grid-column: 3; }
  .band__scale { font-size: 13px; }
}

/* 先生の言葉 */
.voice { margin-top: clamp(32px, 4vw, 52px); display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; padding: clamp(20px, 3vw, 32px); border-radius: var(--r); background: var(--lb); max-width: 860px; }
.voice__ico { width: 64px; height: 64px; }

/* ---------- 積み木を横に並べる（50分で、すること） ---------- */
.stack { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; align-items: flex-end; gap: clamp(10px, 2vw, 28px); }
.stack li { flex: 1 1 0; max-width: 200px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.stack__m { font-family: var(--en); font-weight: 600; font-size: 16px; line-height: 1; margin-bottom: 10px; }
.stack__m b { font-size: 36px; font-weight: 700; color: var(--blue); margin-right: 2px; }
.stack__shape { width: calc(58px + var(--m) * 4.6px); max-width: 100%; height: auto; }
.stack__l { margin-top: 12px; font-weight: 700; line-height: 1.55; }
@media (max-width: 760px) {
  .stack { flex-direction: column; align-items: stretch; gap: 10px; }
  .stack li { max-width: none; display: grid; grid-template-columns: 64px 4.4em minmax(0, 1fr); align-items: center; text-align: left; gap: 12px; border-bottom: 3px solid var(--white); padding: 10px 4px; }
  .stack__shape { width: calc(30px + var(--m) * 2px); order: -1; justify-self: center; }
  .stack__m { margin: 0; }
  .stack__m b { font-size: 28px; }
  .stack__l { margin: 0; }
}

/* ---------- 月謝の札 ---------- */
.tags { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.tags li { position: relative; padding: 46px 20px 26px; border-radius: 20px; background: var(--lb); text-align: center; font-weight: 700; line-height: 1.6; }
.tags li::before { content: ""; position: absolute; top: 16px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--white); }
.tags__p { display: block; font-family: var(--en); font-size: 20px; line-height: 1; margin-bottom: 12px; }
.tags__p b { font-size: clamp(44px, 2rem + 2vw, 62px); color: var(--blue); margin-right: 2px; letter-spacing: 0; }
@media (max-width: 760px) { .tags { grid-template-columns: 1fr; } .tags li { padding: 38px 16px 20px; } }

/* ---------- 先生から（絵と文） ---------- */
.duo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.teacher-pic { width: 100%; max-width: 380px; height: auto; margin: 0 auto; }
.duo .more { text-align: left; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } .teacher-pic { max-width: 260px; } }

/* ---------- よく聞かれること ---------- */
.qa { margin: 0; }
.qa__i { padding: 22px 0; border-bottom: 3px solid var(--white); }
.sec:not(.sec--lb) .qa__i { border-bottom-color: var(--lb); }
.qa__i:first-child { padding-top: 0; }
.qa dt { position: relative; padding-left: 30px; font-weight: 700; font-size: 1.06em; margin-bottom: 6px; }
.qa dt::before { content: ""; position: absolute; left: 0; top: .5em; width: 16px; height: 16px; border-radius: 50%; background: var(--orange); }
.qa dd { margin: 0; padding-left: 30px; }

/* ---------- 表 ---------- */
.info { border-spacing: 0 4px; }
.info th, .info td { padding: 14px 18px; text-align: left; vertical-align: top; }
.info th { width: 9.5em; background: var(--lb); border-radius: 12px 0 0 12px; font-weight: 700; white-space: nowrap; }
.info td { background: var(--white); box-shadow: inset 0 0 0 3px var(--lb); border-radius: 0 12px 12px 0; }
@media (max-width: 560px) {
  .info, .info tbody, .info tr, .info th, .info td { display: block; width: 100%; }
  .info tr { margin-bottom: 8px; }
  .info th { border-radius: 12px 12px 0 0; padding: 8px 14px; }
  .info td { border-radius: 0 0 12px 12px; padding: 10px 14px; }
}
.tbl th, .tbl td { padding: 12px 16px; text-align: left; vertical-align: top; }
.tbl thead th { background: var(--lo); font-size: .9em; }
.tbl thead th:first-child, .tbl thead td:first-child { border-radius: 10px 0 0 10px; }
.tbl thead th:last-child { border-radius: 0 10px 10px 0; }
.tbl thead td { background: var(--lo); }
.tbl tbody th, .tbl tbody td { border-bottom: 3px solid var(--lb); }
.tbl--price tbody th { font-weight: 700; }
.yen { white-space: nowrap; text-align: right !important; font-family: var(--en); font-weight: 600; }
.yen b { font-size: 1.5em; color: var(--blue); margin: 0 2px; }
.tbl--price thead th:last-child { text-align: right; }
.scroll { overflow-x: auto; }
@media (max-width: 560px) {
  .tbl--price, .tbl--price tbody, .tbl--price tr { display: block; width: 100%; }
  .tbl--price thead { display: none; }
  .tbl--price tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 12px 0; border-bottom: 3px solid var(--lb); }
  .tbl--price tbody th, .tbl--price tbody td { border: 0; padding: 2px 0; }
  .tbl--price tbody th { grid-column: 1 / -1; }
  .tbl--price td:nth-of-type(1) { font-size: .9em; }
  .tbl--price .yen { align-self: end; padding-left: 10px; }
}

/* ---------- 下層の頭 ---------- */
.phead { padding: clamp(36px, 6vw, 80px) 0 clamp(36px, 5vw, 64px); }
.phead__in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.phead__title { font-size: clamp(32px, 1.4rem + 2.6vw, 56px); margin-bottom: .45em; }
.phead__lead { max-width: 30em; font-size: 1.05em; }
.page-pic { width: 100%; max-width: 330px; height: auto; margin: 0 auto; }
.phead__deco { display: flex; align-items: flex-end; justify-content: center; gap: 6px; }
.phead__deco .b { display: block; }
.phead__deco .shape { width: clamp(52px, 7vw, 96px); height: auto; }
.phead__deco .b:nth-child(2) .shape { width: clamp(64px, 9vw, 124px); }
.phead--lb { background: var(--lb); }
.phead--teacher .teacher-pic { max-width: 340px; }
@media (max-width: 760px) {
  .phead__in { grid-template-columns: 1fr; }
  .phead__pic { order: -1; }
  .page-pic { max-width: 210px; }
  .phead--teacher .teacher-pic { max-width: 220px; }
  .phead__deco { justify-content: flex-start; }
  .phead__deco .shape { width: 40px; }
  .phead__deco .b:nth-child(2) .shape { width: 52px; }
}

/* ---------- 年齢ごとのクラス ---------- */
.ages { margin: 0; }
.ages__chart { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); row-gap: 6px; }
.ages__item { grid-column: var(--cs) / var(--ce); display: flex; flex-direction: column; align-items: flex-start; padding: 0 1px; }
.ages__item.p3 { grid-row: 1; } .ages__item.p2 { grid-row: 2; } .ages__item.p1 { grid-row: 3; } .ages__item.p0 { grid-row: 4; }
.ages__kid { height: calc(var(--k) * 140px); width: auto; margin: 0 0 2px 16px; }
.ages__kid .kh { fill: var(--orange); }
.ages__kid .kb { fill: var(--blue); }
.ages__bar { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; font-weight: 700; line-height: 1.4; }
.ages__name small { display: block; font-size: .8em; }
.ages__min { font: 600 15px/1 var(--en); white-space: nowrap; }
.ages__min b { font-size: 28px; font-weight: 700; }
.p0 .ages__bar { background: var(--lo); }
.p1 .ages__bar { background: var(--orange); }
.p2 .ages__bar { background: var(--lb); }
.p3 .ages__bar { background: var(--blue); color: var(--white); font-size: 1.04em; }
.ages__ruler { grid-row: 5; grid-column: 1 / -1; position: relative; height: 76px; margin-top: 10px; }
.ages__blocks { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 2px; height: 14px; }
.ages__blocks i { background: var(--lb); border-radius: 3px; }
.ages__blocks i:nth-child(even) { background: var(--blue); }
.ages__n { white-space: nowrap; position: absolute; top: 22px; left: calc(var(--a) / 10 * 100%); transform: translateX(-50%); font: 700 18px/1 var(--en); }
.ages__n:first-of-type { transform: none; }
.ages__n:nth-of-type(11) { transform: translateX(-100%); }
.ages__g { position: absolute; top: 48px; left: calc((var(--a) + .5) / 10 * 100%); transform: translateX(-50%); font-size: 12px; font-weight: 700; white-space: nowrap; }
@media (max-width: 760px) {
  .ages__chart { grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: repeat(10, 50px); column-gap: 6px; row-gap: 0; }
  .ages__item { grid-column: auto; grid-row: var(--cs) / var(--ce) !important; position: relative; padding: 1px 0; }
  .ages__item[data-lane="a"] { grid-column: 2; }
  .ages__item[data-lane="b"] { grid-column: 3; }
  .ages__bar { height: 100%; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 4px; padding: 10px 12px; font-size: 14px; }
  .ages__kid { position: absolute; top: 9px; right: 8px; margin: 0; height: calc(var(--k) * 64px); }
  .p1 .ages__kid .kh, .p3 .ages__kid .kh { fill: var(--white); }
  .p3 .ages__kid .kb { fill: var(--orange); }
  .ages__min b { font-size: 22px; }
  .ages__ruler { grid-column: 1; grid-row: 1 / -1; height: auto; margin: 0; }
  .ages__blocks { position: absolute; top: 0; bottom: 0; right: 0; width: 12px; height: auto; grid-template-columns: 1fr; grid-template-rows: repeat(10, minmax(0, 1fr)); }
  .ages__n { top: calc(var(--a) / 10 * 100%); left: auto; right: 18px; transform: translateY(-50%); font-size: 15px; }
  .ages__n:first-of-type { transform: none; }
  .ages__n:nth-of-type(11) { transform: translateY(-100%); }
  .ages__g { top: calc((var(--a) + .5) / 10 * 100%); left: 0; transform: translateY(-50%); font-size: 10px; }
}

/* ---------- クラスごと ---------- */
.kls { display: grid; gap: 18px; }
.kl { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(18px, 3vw, 40px); padding: clamp(22px, 3vw, 36px); border-radius: 22px; background: var(--white); }
.kl__side { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.kl__shape { width: 56px; height: auto; }
.kl__en { margin: 0; font: 700 clamp(26px, 1.2rem + 1vw, 34px)/1.05 var(--en); color: var(--blue); }
.kl__name { font-size: clamp(20px, 1rem + .7vw, 25px); margin-bottom: 10px; }
.kl__name small { display: inline-block; margin-left: .8em; font-size: .62em; font-weight: 700; background: var(--lo); padding: 2px 10px; border-radius: 8px; vertical-align: .2em; }
.kl .tbl { margin-top: 18px; table-layout: fixed; }
.kl .tbl th:nth-child(1) { width: 58%; }
.kl .tbl th:nth-child(2) { width: 18%; }
@media (max-width: 760px) {
  .kl { grid-template-columns: 1fr; }
  .kl__side { flex-direction: row; align-items: center; }
  .kl__shape { width: 40px; }
  .kl__name small { display: table; margin: 6px 0 0; }
  .kl .tbl, .kl .tbl tbody, .kl .tbl tr, .kl .tbl td { display: block; }
  .kl .tbl thead { display: none; }
  .kl .tbl td { border: 0; padding: 4px 0; }
  .kl .tbl td:nth-child(1)::before { content: "曜日と時間　"; font-weight: 700; }
  .kl .tbl td:nth-child(2)::before { content: "長さ　"; font-weight: 700; }
  .kl .tbl td:nth-child(3)::before { content: "人数　"; font-weight: 700; }
  .kl .tbl tr { background: var(--lb); border-radius: 12px; padding: 10px 14px; }
}

/* きょうだい・途中から（2つ並べる） */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 32px); }
.pair__i { padding: clamp(24px, 3.4vw, 44px); border-radius: 24px; }
.pair__i--lo { background: var(--lo); }
.pair__i--lb { background: var(--lb); border-radius: 24px 24px 24px 120px; }
.pair__i--lo { border-radius: 24px 120px 24px 24px; }
.pair .sh__title { font-size: clamp(20px, 1rem + .7vw, 25px); }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } .pair__i--lb, .pair__i--lo { border-radius: 24px; } }

/* ---------- 1年の行事 ---------- */
.year { margin: 0; }
.year__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
.year__c { min-height: 190px; padding: 12px 8px 14px; border-radius: 12px; background: var(--lb); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.year__c.is-ev { background: var(--lo); }
.year__m { font-family: var(--en); font-weight: 600; font-size: 13px; line-height: 1; }
.year__m b { font-size: 24px; font-weight: 700; }
.ev__ico { width: 52px; height: auto; margin-top: 4px; }
.year__name { word-break: keep-all; overflow-wrap: normal; font-size: 12.5px; font-weight: 700; line-height: 1.5; }
.year__fee { word-break: keep-all; font-size: 11.5px; line-height: 1.45; }
@media (max-width: 1100px) { .year__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 600px) { .year__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .year__c { min-height: 150px; } }

/* ---------- 家でのこと・気をつけていること・あいさつ ---------- */
.home, .care, .letter { font-size: 1.04em; }
.letter p:first-child::first-letter { font-size: 1em; }
.care { padding: clamp(22px, 3vw, 36px); border-radius: 22px; background: var(--lo); }
.care p { position: relative; padding-left: 28px; }
.care p::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 14px; border-radius: 3px; background: var(--orange); }
.care p:nth-child(2)::before { background: var(--blue); border-radius: 50%; }

/* ---------- 月謝のページ ---------- */
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.rules__i { padding-top: 4px; }
.rules .sh__title { font-size: clamp(19px, 1rem + .5vw, 23px); }
@media (max-width: 860px) { .rules { grid-template-columns: 1fr; } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; align-items: start; padding: 20px 22px; border-radius: 18px; background: var(--white); }
.steps__no { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--lb); font: 700 30px/1 var(--en); color: var(--blue); padding-top: 4px; }
.steps b { display: block; font-size: 1.08em; margin-bottom: 4px; }
.steps p { margin: 0; }

/* ---------- 体験レッスン ---------- */
.day { margin: 0; }
.day__list { list-style: none; margin: 0; padding: 0; }
.day__list li { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; padding-bottom: 46px; }
.day__list li:last-child { padding-bottom: 0; }
.day__no { display: flex; align-items: center; gap: 8px; }
.day__no b { font: 700 34px/1 var(--en); color: var(--navy); width: 26px; padding-top: 4px; }
.day__no .shape { width: 44px; }
.day__txt b { display: block; font-size: 1.1em; margin-bottom: 2px; }
.dots { position: absolute; left: 56px; bottom: 8px; display: grid; gap: 5px; }
.dots i { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--lb); }
.dots i:nth-child(2) { background: var(--blue); }
.day + .lead { margin: 36px 0 0; padding: 20px 24px; border-radius: 16px; background: var(--lb); max-width: none; }
.bring { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bring li { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 16px; background: var(--white); font-weight: 700; }
.bring .shape { width: 28px; flex: none; }
.apply-h { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(18px, 2.4vw, 28px); }
.apply-h .sh { margin: 0; }
.apply-h .sh__mark { display: none; }
.env-pic { width: 84px; height: auto; flex: none; }
.ways { list-style: none; margin: 0 0 clamp(36px, 5vw, 56px); padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.ways li { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 22px; background: var(--white); box-shadow: inset 0 0 0 4px var(--blue); }
.ways__t { font-size: 1.2em; }
.ways p { margin: 0 0 6px; }
.ways .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 860px) { .ways { grid-template-columns: 1fr; } }

/* フォーム */
.fm { max-width: 760px; margin: 0 auto; padding: clamp(22px, 4vw, 48px); border-radius: 26px; background: var(--lb); }
.fm__row { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.fm__row > label, .fm__row legend { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 8px; padding: 0; }
.req { font-size: 11px; line-height: 1; padding: 5px 7px 4px; border-radius: 6px; background: var(--navy); color: var(--white); letter-spacing: .08em; }
.fm input[type="text"], .fm input[type="tel"], .fm input[type="email"], .fm textarea {
  width: 100%; font: 400 16px/1.6 var(--ja); color: var(--navy); padding: 12px 14px; border: 3px solid var(--white); border-radius: 12px; background: var(--white);
}
.fm input:focus, .fm textarea:focus { outline: none; border-color: var(--blue); }
.fm.is-checked input:invalid { border-color: var(--orange); }
.fm__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.chk { position: relative; cursor: pointer; }
.chk input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chk span { display: grid; place-items: center; min-width: 52px; min-height: 46px; padding: 0 14px; border-radius: 12px; background: var(--white); font-weight: 700; transition: background .15s, color .15s; }
.chk input:checked + span { background: var(--blue); color: var(--white); }
.chk input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.fm__agree { margin: 28px 0 8px; font-weight: 700; }
.fm__agree label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.fm__agree input { width: 22px; height: 22px; accent-color: var(--blue); flex: none; }
.fm.is-checked .fm__agree input:invalid { outline: 3px solid var(--orange); outline-offset: 2px; }
.fm__err { font-weight: 700; color: var(--navy); background: var(--lo); padding: 10px 14px; border-radius: 10px; }
.fm__send { text-align: center; margin: 24px 0 0; }

/* ---------- 先生と教室 ---------- */
.name { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: clamp(20px, 4vw, 52px); align-items: center; max-width: calc(900px + var(--pad) * 2); }
.name__mark { width: 100%; height: auto; }
@media (max-width: 600px) { .name { grid-template-columns: 1fr; } .name__mark { width: 96px; } }
.room { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(22px, 4vw, 56px); align-items: center; }
.room-pic { width: 100%; height: auto; }
@media (max-width: 760px) { .room { grid-template-columns: 1fr; } }
.map { margin-top: 24px; }
.map-pic { width: 100%; height: auto; }

/* ---------- 次に読むページ ---------- */
.next { padding: 0 0 clamp(56px, 8vw, 96px); }
.next__in { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.next a { display: inline-flex; align-items: center; gap: .5em; min-height: 54px; padding: 10px 26px; border-radius: 14px; background: var(--lb); color: var(--navy); font-weight: 700; text-decoration: none; transition: transform .2s; }
.next a:hover { transform: translateY(-2px); }
.next a[href*="taiken"] { background: var(--orange); color: var(--navy);  /* 白い字では読みにくい（2.3:1）ので紺の字（5.6:1） */ }

/* ---------- フッター ---------- */
.foot { background: var(--navy); color: var(--white); padding: clamp(44px, 6vw, 72px) 0 20px; }
.foot a { color: var(--white); }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px 40px; }
.foot .logo { height: 50px; margin-bottom: 14px; }
.foot__brand p { font-size: 14px; line-height: 1.9; margin: 0; }
.foot__nav { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, auto); gap: 6px 36px; font-size: 14px; font-weight: 700; align-content: start; }
.foot__nav a { text-decoration: none; display: inline-block; padding: 4px 0; }
.foot__nav a:hover { text-decoration: underline; }
.foot__blocks { display: flex; justify-content: center; gap: 10px; margin: 40px 0 16px; }
.foot__blocks i { width: 14px; height: 14px; display: block; background: var(--orange); border-radius: 50%; }
.foot__blocks i:nth-child(4n+2) { background: var(--blue); border-radius: 7px 7px 0 0; height: 7px; margin-top: 7px; }
.foot__blocks i:nth-child(4n+3) { background: var(--lb); border-radius: 2px; }
.foot__blocks i:nth-child(4n) { background: var(--orange); border-radius: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.foot__copy { text-align: center; font-size: 12px; opacity: .85; margin: 0 auto; }

/* ---------- 動き：積み木が1つずつ落ちてきて止まる ---------- */
svg .b { transform-box: fill-box; transform-origin: 50% 100%; }
.js .pic .b { opacity: 0; transform: translateY(-56px); }
.js .pic.is-in .b { animation: drop .62s cubic-bezier(.3, 1.45, .55, 1) calc(var(--i, 0) * 80ms) both; }
.js .pic .b--pop { transform: translateY(70px) scale(.4); }
.js .pic.is-in .b--pop { animation-name: pop; animation-duration: .58s; animation-delay: calc(240ms + var(--i, 0) * 80ms); }
@keyframes drop { 0% { opacity: 0; transform: translateY(-56px); } 30% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes pop { 0% { opacity: 0; transform: translateY(70px) scale(.4); } 40% { opacity: 1; } 100% { opacity: 1; transform: none; } }
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .pic .b, .rv { opacity: 1 !important; transform: none !important; }
}
