/* ロボとこ プログラミング教室（デモ）
   地は白にドットの方眼。線は炭、差し色はブロックの赤と黄緑。グラデーションと影は使わない。
   動きは transform と opacity だけ。steps() でカクカク動かす。 */

:root {
  --white: #FFFFFF;
  --dot: #E8EBE4;
  --ink: #1E2124;
  --red: #E5483A;
  --green: #86BE3A;
  --ink20: rgba(30, 33, 36, .2);
  --red15: color-mix(in srgb, #E5483A 15%, #FFFFFF);
  --green15: color-mix(in srgb, #86BE3A 15%, #FFFFFF);
  --ink15: color-mix(in srgb, #1E2124 15%, #FFFFFF);
  --dotf: "DotGothic16", "M PLUS 1p", sans-serif;
  --body: "M PLUS 1p", "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif;
  --grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Crect width='1' height='1' fill='%23E8EBE4'/%3E%3C/svg%3E");
  --rule: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4'%3E%3Crect width='4' height='4' fill='%231E2124' fill-opacity='.2'/%3E%3C/svg%3E");
  --rule-red: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4'%3E%3Crect width='4' height='4' fill='%23E5483A'/%3E%3C/svg%3E");
  --head-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 12px); }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  font-size: clamp(15px, .35vw + 13.8px, 17px);
  line-height: 1.85;
  letter-spacing: .02em;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; word-break: auto-phrase; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.px { shape-rendering: crispEdges; image-rendering: pixelated; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - 40px); }

/* ---------- ブロック（命令のブロックの形: 上の辺に凸・下の辺に凹） ---------- */
.blk {
  --t: 4px; --bx1: 12px; --bx2: 28px; --rx1: 12px; --rx2: 28px;
  --c: var(--ink); --fg: #fff;
  position: relative;
  display: inline-flex; align-items: center;
  padding: calc(var(--t) + 8px) 16px calc(var(--t) + 8px);
  background: var(--c);
  color: var(--fg);
  font-family: var(--dotf);
  line-height: 1.3;
  letter-spacing: .06em;
  clip-path: polygon(0 calc(var(--t) + 2px), 2px var(--t), var(--bx1) var(--t), var(--bx1) 0, var(--bx2) 0, var(--bx2) var(--t), calc(100% - 2px) var(--t), 100% calc(var(--t) + 2px), 100% calc(100% - 2px), calc(100% - 2px) 100%, var(--rx2) 100%, var(--rx2) calc(100% - var(--t)), var(--rx1) calc(100% - var(--t)), var(--rx1) 100%, 2px 100%, 0 calc(100% - 2px));
}
.blk--g { --c: var(--green); --fg: var(--ink); }
.blk--c { --c: var(--ink); --fg: #fff; }
.blk--r { --c: var(--red); --fg: #fff; }
/* 炭の線の枠で中が白のブロック */
.blk--line { --c: var(--ink); --fg: var(--ink); }
.blk--line::before {
  content: ""; position: absolute; inset: 2px; z-index: 0;
  background: #fff;
  --bx1: 12px; --bx2: 24px; --rx1: 8px; --rx2: 28px;
  clip-path: polygon(0 calc(var(--t) + 2px), 2px var(--t), var(--bx1) var(--t), var(--bx1) 0, var(--bx2) 0, var(--bx2) var(--t), calc(100% - 2px) var(--t), 100% calc(var(--t) + 2px), 100% calc(100% - 2px), calc(100% - 2px) 100%, var(--rx2) 100%, var(--rx2) calc(100% - var(--t)), var(--rx1) calc(100% - var(--t)), var(--rx1) 100%, 2px 100%, 0 calc(100% - 2px));
}
.blk--line > * { position: relative; z-index: 1; }

/* 見出しの左の小さなブロック */
.mb {
  --t: 3px; --bx1: 7px; --bx2: 15px; --rx1: 7px; --rx2: 15px;
  flex: none; width: 34px; height: 24px; padding: 0;
  vertical-align: middle;
}

/* ---------- ふきだし（子どもの言葉だけ） ---------- */
.say { display: flex; align-items: center; gap: 18px; margin: 0 0 20px; }
.say__bot { flex: none; width: 32px; height: 32px; }
.say__b {
  position: relative;
  display: inline-block;
  padding: 7px 14px 6px;
  background: #fff;
  font-family: var(--dotf);
  font-size: clamp(15px, .3vw + 14px, 17px);
  line-height: 1.6;
  letter-spacing: .05em;
  box-shadow: 0 -2px 0 var(--ink), 0 2px 0 var(--ink), -2px 0 0 var(--ink), 2px 0 0 var(--ink);
}
.say__b::before {
  content: ""; position: absolute; left: -6px; top: calc(50% - 6px);
  width: 4px; height: 4px; background: var(--ink);
  box-shadow: -4px 4px 0 var(--ink), -8px 8px 0 var(--ink);
}

/* ---------- ボタンとリンク ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px;
  padding: 12px 24px;
  background: var(--red);
  color: #fff;
  font-family: var(--body);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .04em;
  line-height: 1.4;
  text-decoration: none;
  border: 0; border-radius: 2px;
  cursor: pointer;
  transition: transform .08s steps(1);
}
.btn:active { transform: translateY(2px); }
.btn--sm { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.lnk {
  display: inline-block;
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.lnk:hover { text-decoration-thickness: 4px; }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }

/* ---------- ヘッダー ---------- */
.head {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
}
.head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--rule) repeat-x; }
.head__in { display: flex; align-items: center; gap: 12px; height: var(--head-h); width: min(1240px, 100% - 32px); margin-inline: auto; }
.brand { display: flex; align-items: center; text-decoration: none; }
.logo { width: 168px; height: auto; overflow: visible; }
.logo__name { font-family: var(--dotf); font-size: 24px; fill: var(--ink); }
.logo__sub { font-family: var(--body); font-size: 10.5px; font-weight: 700; fill: var(--ink); }
.demo {
  font-family: var(--body); font-size: 10px; font-weight: 700; letter-spacing: .12em;
  padding: 0 5px; line-height: 16px;
  color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink20);
  align-self: center;
}
.gnav { margin-left: auto; }
.gnav ul { display: flex; gap: 26px; }
.gnav li a { position: relative; display: block; padding: 8px 0; text-decoration: none; font-weight: 700; font-size: 15px; letter-spacing: .03em; }
.gnav li a[aria-current="page"]::after,
.gnav li a:hover::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 20px; height: 4px; margin-left: -10px;
  background: var(--rule-red) repeat-x;
}
.gnav li a:hover:not([aria-current])::after { opacity: .45; }
.gnav .gnav__btn { display: none; }
.head__btn { margin-left: 20px; }
.menu {
  display: none;
  flex-direction: column; align-items: center; gap: 2px;
  margin: 0; padding: 4px; border: 0; background: none; color: var(--ink);
  font: 700 10px/1 var(--body); letter-spacing: .04em; cursor: pointer;
}
.menu svg { width: 32px; height: 32px; }

@media (max-width: 1099px) {
  .menu { display: flex; }
  .head__btn { margin-left: auto; }
  .gnav {
    display: none;
    position: absolute; left: 0; right: 0; top: var(--head-h);
    margin: 0; padding: 8px 20px 28px;
    background: #fff;
  }
  .gnav::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--rule) repeat-x; }
  .is-menu .gnav { display: block; }
  .gnav ul { display: block; }
  .gnav li { background: var(--rule) left bottom repeat-x; }
  .gnav li a { padding: 15px 4px; font-size: 16px; }
  .gnav li a[aria-current="page"]::after, .gnav li a:hover::after { left: auto; right: 4px; bottom: calc(50% - 2px); margin: 0; }
  .gnav .gnav__btn { display: flex; margin-top: 22px; width: 100%; }
}
@media (max-width: 520px) {
  :root { --head-h: 64px; }
  .head__in { gap: 8px; width: calc(100% - 24px); }
  .logo { width: 120px; }
  .demo { font-size: 9px; padding: 0 4px; }
  .head__btn { min-height: 36px; padding: 6px 9px; font-size: 12px; white-space: nowrap; letter-spacing: 0; }
  .menu { font-size: 9px; letter-spacing: 0; padding: 2px 0; }
  .menu span { white-space: nowrap; }
}
@media (max-width: 359px) {
  .head__btn { display: none; }
  .menu { margin-left: auto; }
}

/* ---------- 区画 ---------- */
.sec { position: relative; padding: clamp(64px, 6vw + 30px, 104px) 0; }
.sec--grid { background: var(--grid); }
.sec + .sec::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--rule) repeat-x; }
.h2 {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 28px;
  font-family: var(--dotf);
  font-size: clamp(25px, 1.4vw + 19px, 36px);
  line-height: 1.35;
  letter-spacing: .04em;
}
.h2--sm { font-size: clamp(19px, .6vw + 16px, 23px); }
.h3 {
  font-family: var(--dotf);
  font-size: clamp(19px, .5vw + 17px, 23px);
  line-height: 1.4;
  letter-spacing: .04em;
  margin-bottom: 10px;
}
.lead { max-width: 40em; }
.note { font-size: .86em; line-height: 1.75; color: var(--ink); margin-top: 18px; }
.more { margin-top: 36px; }
.sec__head { margin-bottom: 8px; }

/* 表（ドットの区切り線で行を分ける） */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { padding: 14px 0 16px; text-align: left; vertical-align: top; background: var(--rule) left bottom repeat-x; }
.tbl tr:first-child th, .tbl tr:first-child td { box-shadow: inset 0 4px 0 -2px transparent; }
.tbl thead th { font-size: .86em; font-weight: 700; padding-top: 0; }
.tbl th { font-weight: 700; padding-right: 24px; width: 30%; }
.tbl--price th { width: auto; font-weight: 400; }
.tbl--price td { text-align: right; white-space: nowrap; }
.tbl--4 th, .tbl--4 td { width: auto; padding-right: 16px; }
.tbl--4 td:last-child { text-align: right; padding-right: 0; }
.tbl--small { font-size: .9em; }
.tbl--small th, .tbl--small td { padding: 10px 0 12px; }
.yen { color: var(--red); font-weight: 700; font-size: 1.22em; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
@media (max-width: 640px) {
  .tbl--stack th, .tbl--stack td { display: block; width: auto; padding-right: 0; }
  .tbl--stack th { padding-bottom: 0; background: none; }
  .tbl--stack td { padding-top: 2px; }
  .tbl--4 thead { display: none; }
  .tbl--4 tr { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; background: var(--rule) left bottom repeat-x; padding: 12px 0 14px; }
  .tbl--4 th, .tbl--4 td { background: none; padding: 0; }
  .tbl--4 th { grid-column: 1 / -1; }
  .tbl--4 td { font-size: .9em; }
  .tbl--4 td:nth-of-type(1)::after { content: "・"; }
  .tbl--4 td:nth-of-type(1) { grid-column: 1; grid-row: 2; }
  .tbl--4 td:nth-of-type(2) { grid-column: 2; grid-row: 2; }
  .tbl--4 td:last-child { grid-column: 3; grid-row: 2; font-size: 1em; }
}

/* ---------- 最初の画面 ---------- */
.hero { position: relative; overflow: hidden; background: var(--grid); }
.hero__in { position: relative; display: grid; grid-template-columns: 5fr 7fr; min-height: clamp(540px, calc(100svh - var(--head-h) - 110px), 660px); }
.hero__floor { display: none; }
.hero__stage::after { content: ""; position: absolute; left: -100vw; right: -8px; bottom: 33.3%; height: 2px; background: var(--ink); }
.hero__stage { position: relative; min-height: 420px; }
.hero__unit { position: absolute; right: 56px; bottom: calc(33.3% + 2px); display: flex; flex-direction: column; align-items: center; }
.hero__stack { display: flex; flex-direction: column; align-items: center; margin-bottom: 6px; }
.hero__stack .blk { font-size: 21px; min-width: 168px; justify-content: center; }
.hero__stack .blk + .blk { margin-top: -4px; }
.hero__bot { position: relative; width: 128px; height: 128px; }
.hero__bot svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__text { align-self: center; padding: 40px 0 40px 24px; position: relative; z-index: 1; }
.hero__text .note-row { background: #fff; }
.hero h1 {
  font-family: var(--dotf);
  font-size: clamp(32px, 2.6vw + 16px, 56px);
  line-height: 1.38;
  letter-spacing: .03em;
  margin-bottom: 26px;
  white-space: nowrap;
}
.hero__lead { max-width: 36em; padding: 4px 0; background: #fff; box-shadow: 0 0 0 10px #fff; }
.hero .acts { margin-top: 30px; }
.hero .acts .lnk { background: #fff; box-shadow: 0 0 0 6px #fff; }

@media (max-width: 899px) {
  .hero__in { grid-template-columns: 1fr; min-height: 0; }
  .hero__stage { height: 40svh; min-height: 260px; }
  .hero__unit { right: auto; left: 50%; bottom: 2px; margin-left: -66px; width: 132px; }
  .hero__stage::after { left: -50vw; right: -50vw; bottom: 0; }
  .hero__bot { width: 96px; height: 96px; }
  .hero__stack .blk { font-size: 17px; min-width: 132px; padding-top: 10px; padding-bottom: 10px; }
  .hero__text { padding: 36px 0 64px; }
  .hero h1 { font-size: clamp(26px, 6.6vw, 44px); }
}

/* 最初の画面の動き（JS があり、動きを減らす設定でないときだけ） */
@keyframes walk { from { transform: translateX(-62vw); } to { transform: translateX(0); } }
@keyframes wheel { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes drop { from { transform: translateY(-160px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes show { from { opacity: 0; } to { opacity: 1; } }
.js .hero__bot { animation: walk 1.6s steps(8, jump-none) both; }
.js .hero__bot .wb { animation: wheel .4s steps(1) 4; }
.hero__bot .wb { opacity: 0; }
.js .hero__stack .blk { animation: drop .25s steps(4, jump-none) both; }
.js .hero__stack .blk:nth-child(3) { animation-delay: 1.6s; }
.js .hero__stack .blk:nth-child(2) { animation-delay: 1.85s; }
.js .hero__stack .blk:nth-child(1) { animation-delay: 2.1s; }
.js .hero h1 { animation: show .3s steps(3, jump-none) 2.35s both; }

/* ---------- 見えたら出す ---------- */
.js .rv { opacity: 0; transform: translateY(8px); transition: opacity .3s steps(3), transform .3s steps(3); }
.js .is-in .rv, .js .rv.is-in { opacity: 1; transform: none; }
.js .say__b { opacity: 0; transform: scale(.9); transform-origin: left center; transition: opacity .2s steps(2) .4s, transform .2s steps(2) .4s; }
.js .is-in .say__b { opacity: 1; transform: none; }
.js .fb { opacity: 0; transition: opacity .2s steps(3); transition-delay: calc(var(--i, 0) * .1s + .15s); }
.js .is-in .fb { opacity: 1; }

/* ---------- トップの区画 ---------- */
/* 学年ごとのコース（階段） */
.stairs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 28px; align-items: start; margin-top: 12px; }
.stairs__s:nth-child(1) { margin-top: 96px; }
.stairs__s:nth-child(2) { margin-top: 48px; }
.stairs__s .blk { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding-left: 18px; padding-right: 18px; min-height: 96px; justify-content: center; }
.stairs__s .blk b { font-weight: 400; font-size: clamp(19px, .6vw + 15px, 23px); }
.stairs__s .blk span { font-size: 15px; }
.stairs__s p { margin-top: 16px; }
.stairs__after { margin-top: 32px; font-weight: 700; }
@media (max-width: 760px) {
  .stairs { grid-template-columns: 1fr; gap: 28px; }
  .stairs__s:nth-child(1), .stairs__s:nth-child(2) { margin-top: 0; }
  .stairs__s .blk { min-height: 0; width: 100%; }
}

/* 図と文を並べる区画 */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
.split--rev { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
@media (max-width: 860px) { .split, .split--rev { grid-template-columns: 1fr; gap: 32px; } }

/* 料金（トップ） */
.price-box { max-width: 720px; }

/* おうちの方へ（3つを縦に） */
.rows > div { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 22px 0 24px; background: var(--rule) left bottom repeat-x; }
.rows > div:first-child { background-image: var(--rule), var(--rule); background-position: left top, left bottom; background-repeat: repeat-x; padding-top: 26px; }
.rows h3 { font-family: var(--dotf); font-size: clamp(19px, .5vw + 16px, 22px); line-height: 1.45; letter-spacing: .04em; }
@media (max-width: 640px) { .rows > div { grid-template-columns: 1fr; gap: 6px; } }

/* 教えている人 */
.teacher__art { width: min(100%, 320px); }
.teacher__art svg { width: 100%; height: auto; }

/* ---------- 下層の頭 ---------- */
.phead { padding: clamp(48px, 4vw + 24px, 88px) 0 clamp(52px, 4vw + 28px, 92px); background: var(--grid); position: relative; }
.phead__in { display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: center; }
.phead__art { display: flex; align-items: flex-end; gap: 14px; position: relative; padding-bottom: 2px; min-width: 220px; }
.phead__art::after { content: ""; position: absolute; left: -16px; right: -16px; bottom: 0; height: 2px; background: var(--ink); }
.phead__bot { width: 64px; height: 64px; flex: none; }
.phead__obj { width: 64px; height: 64px; flex: none; }
.phead h1 {
  font-family: var(--dotf);
  font-size: clamp(32px, 2.2vw + 22px, 52px);
  line-height: 1.3; letter-spacing: .04em;
  margin-bottom: 18px;
}
.phead .say { margin-bottom: 16px; }
.phead p.lead { margin: 0; }
.phead__stair { display: flex; align-items: flex-end; gap: 0; }
.phead__stair .blk { width: 44px; height: 30px; padding: 0; }
.phead__stair .blk:nth-child(1) { margin-bottom: 0; }
.phead__stair .blk:nth-child(2) { margin-bottom: 26px; margin-left: -2px; }
.phead__stair .blk:nth-child(3) { margin-bottom: 52px; margin-left: -2px; }
.phead__chain { display: flex; align-items: center; }
.phead__chain .blk { font-size: 14px; padding-left: 10px; padding-right: 10px; }
.phead__chain .blk + .blk { margin-left: 4px; }
.phead__art--wide { min-width: 0; flex-wrap: nowrap; }
.phead__price .blk { font-size: 18px; }
@media (max-width: 860px) {
  .phead__in { grid-template-columns: 1fr; gap: 32px; }
  .phead__art { min-width: 0; justify-self: start; }
}
@media (max-width: 420px) {
  .phead__chain .blk { font-size: 12px; padding-left: 7px; padding-right: 7px; }
  .phead__chain .blk + .blk { margin-left: 2px; }
  .phead__art--wide { gap: 8px; }
  .phead__art--wide .phead__bot { width: 48px; height: 48px; }
}
.js .phead__chain .blk { animation: show .2s steps(3, jump-none) both; }
.js .phead__chain .blk:nth-child(1) { animation-delay: .3s; }
.js .phead__chain .blk:nth-child(2) { animation-delay: .6s; }
.js .phead__chain .blk:nth-child(3) { animation-delay: .9s; }
.js .phead__stair .blk { animation: drop .25s steps(4, jump-none) both; }
.js .phead__stair .blk:nth-child(1) { animation-delay: .2s; }
.js .phead__stair .blk:nth-child(2) { animation-delay: .45s; }
.js .phead__stair .blk:nth-child(3) { animation-delay: .7s; }

/* 本文の区画（下層） */
.prose { max-width: 42em; }
.course { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 860px) { .course { grid-template-columns: 1fr; gap: 24px; } }
.dots-list li { position: relative; padding-left: 22px; margin: 6px 0; }
.dots-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 8px; background: var(--ink); }
.box-list { margin-top: 18px; padding: 20px 22px; background: #fff; box-shadow: 0 -2px 0 var(--ink), 0 2px 0 var(--ink), -2px 0 0 var(--ink), 2px 0 0 var(--ink); max-width: 36em; }
.box-list .h3 { font-size: 17px; }
.months p { margin-bottom: 1.2em; }
.months b { display: block; font-family: var(--dotf); font-weight: 400; font-size: 1.15em; letter-spacing: .04em; }
.sign { font-family: var(--dotf); font-size: 20px; letter-spacing: .08em; margin-top: 24px; }
.next { display: flex; flex-wrap: wrap; gap: 14px 36px; }
.next-sec { padding: 56px 0 72px; }

/* LINE の案内（ここだけ・LINE の緑と公式の印は使わない） */
.line-guide { display: flex; align-items: flex-start; gap: 14px; margin: 22px 0 10px; padding: 16px 18px; max-width: 36em; background: #fff; box-shadow: 0 -2px 0 var(--ink), 0 2px 0 var(--ink), -2px 0 0 var(--ink), 2px 0 0 var(--ink); }
.line-guide svg { flex: none; width: 32px; height: 32px; margin-top: 2px; }

/* フォーム */
.form { max-width: 640px; margin-top: 32px; }
.field { margin-bottom: 22px; }
.field > label, .field > .field__l { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 8px; }
.req, .opt { font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 0 6px; line-height: 20px; }
.req { background: var(--red); color: #fff; }
.opt { box-shadow: inset 0 0 0 1px var(--ink20); }
.field input[type="text"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 10px 12px;
  border: 2px solid var(--ink); border-radius: 2px; background: #fff;
  font: 400 16px/1.6 var(--body); color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h12v2H0zM2 2h8v2H2zM4 4h4v2H4z' fill='%231E2124'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 22px; border: 0; margin: 0; padding: 0; }
.checks legend { font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; padding: 0; }
.checks label { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; }
.checks input { width: 20px; height: 20px; accent-color: var(--ink); }
.form .is-checked :invalid, .form.is-checked :invalid { border-color: var(--red); }
.form__msg { display: none; margin-top: 14px; font-weight: 700; color: var(--ink); }
.form.is-checked .form__msg { display: block; }
.form .note { margin: 0 0 18px; }

/* ---------- 図解 ---------- */
.fig { margin: 0; }
.fig__t { font-family: var(--dotf); font-size: clamp(18px, .4vw + 16px, 21px); letter-spacing: .05em; margin-bottom: 22px; display: flex; align-items: center; gap: 10px; }
.fig__t::before { content: ""; width: 10px; height: 10px; background: var(--ink); }
.fig__note { font-size: .86em; margin-top: 20px; }

/* Z-1 学年ごとのコース */
.z1 { padding: 8px 0; }
.z1__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; }
.z1__s { display: flex; flex-direction: column; align-items: flex-start; position: relative; }
.z1__s:nth-child(2) { margin-left: -6px; margin-bottom: 64px; }
.z1__s:nth-child(3) { margin-left: -12px; margin-bottom: 128px; }
.z1__tool { width: 48px; height: 48px; margin: 0 0 8px 18px; }
.z1__s .blk { flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; padding: 18px 20px 20px; font-family: var(--body); letter-spacing: .02em; line-height: 1.55; }
.z1__s .blk b { font-family: var(--dotf); font-weight: 400; font-size: clamp(18px, .6vw + 15px, 22px); letter-spacing: .05em; }
.z1__s .blk .g { font-family: var(--dotf); font-size: 16px; }
.z1__s .blk .t { font-weight: 700; font-variant-numeric: tabular-nums; }
.z1__s .blk .d { font-size: 14px; }
.z1__arrow { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: .9em; font-weight: 700; }
.z1__arrow i { position: relative; flex: 1; max-width: 420px; height: 4px; background: var(--rule) repeat-x; }
.z1__arrow i::after { content: ""; position: absolute; right: -8px; top: -8px; width: 4px; height: 20px; background: var(--ink); }
.z1__arrow i::before { content: ""; position: absolute; right: -12px; top: -4px; width: 4px; height: 12px; background: var(--ink); }
@media (max-width: 760px) {
  .z1__steps { grid-template-columns: 1fr; }
  .z1__s:nth-child(2), .z1__s:nth-child(3) { margin: -4px 0 0; }
  .z1__s + .z1__s .z1__tool { margin-top: 16px; }
  .z1__arrow { display: none; }
}

/* Z-2 作品ができるまでの3か月 */
.z2__row { display: grid; grid-template-columns: 1fr 1.6fr 1fr auto; align-items: end; gap: 0; position: relative; }
.z2__m { display: flex; flex-direction: column; align-items: stretch; min-width: 0; }
.z2__m + .z2__m { margin-left: -4px; }
.z2__ico { width: 48px; height: 48px; margin: 0 0 8px 14px; }
.z2__m .blk { flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 16px 16px; font-family: var(--body); }
.z2__m .blk b { font-family: var(--dotf); font-weight: 400; font-size: 18px; }
.z2__m .blk span { font-weight: 700; font-size: 15px; letter-spacing: .02em; }
.z2__wk { display: flex; gap: 6px; margin-top: 12px; padding: 10px 6px 0; border-top: 2px solid var(--ink); }
.z2__wk li { flex: 1; height: 10px; box-shadow: inset 0 0 0 2px var(--ink); }
.z2__end { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 0 0 34px 14px; max-width: 200px; font-size: 13px; font-weight: 700; line-height: 1.5; }
.z2__sq { width: 20px; height: 20px; background: var(--red); margin-bottom: 8px; }
.z2--mini .z2__row { grid-template-columns: 1fr 1.6fr 1fr auto; }
.z2--mini .z2__end { padding-bottom: 32px; }
@media (max-width: 760px) {
  .z2__row { grid-template-columns: 1fr; }
  .z2__m + .z2__m { margin-left: 0; margin-top: 8px; }
  .z2__m { display: grid; grid-template-columns: 48px 1fr; gap: 0 14px; align-items: center; padding-left: 16px; border-left: 2px solid var(--ink); }
  .z2__ico { margin: 0; grid-row: 1; }
  .z2__m .blk { grid-column: 2; }
  .z2__wk { grid-column: 2; border-top: 0; padding: 0; margin: 8px 0 0; }
  .z2--mini .z2__row { grid-template-columns: 1fr; }
  .z2__end { flex-direction: row; align-items: center; gap: 10px; padding: 16px 0 0 16px; max-width: none; }
  .z2__sq { margin: 0; flex: none; }
}

/* Z-3 教室の1回 */
.z3 { display: grid; grid-template-columns: minmax(0, 440px) auto; justify-content: start; gap: 56px; align-items: start; }
.z3__prog { display: flex; flex-direction: column; align-items: flex-start; max-width: 420px; }
.z3__prog > .blk, .z3__loop .blk { min-width: 240px; font-size: 17px; padding-top: 14px; padding-bottom: 14px; }
.z3__prog > * + * { margin-top: -4px; }
.z3__loop { width: 100%; position: relative; padding: 0 0 18px 22px; }
.z3__loop::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 22px; background: var(--ink); }
.z3__loop::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18px; background: var(--ink); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2px), calc(100% - 2px) 100%, 28px 100%, 28px calc(100% - 4px), 12px calc(100% - 4px), 12px 100%, 0 100%); }
.z3__lab { display: block; margin-left: -22px; padding: 12px 16px 12px; background: var(--ink); color: #fff; font-family: var(--dotf); font-size: 16px; letter-spacing: .05em; line-height: 1.4; clip-path: polygon(0 4px, 2px 4px, 12px 4px, 12px 0, 28px 0, 28px 4px, calc(100% - 2px) 4px, 100% 6px, 100% 100%, 0 100%); padding-top: 16px; }
.z3__loop .blk { margin-top: -4px; }
.z3__loop .blk:first-of-type { margin-top: 0; }
.z3__time { font-size: 14px; line-height: 1.8; padding-top: 8px; }
.z3__time li { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.z3__time li::before { content: ""; width: 10px; height: 10px; background: var(--c); }
.z3--mini .z3__prog .blk { font-size: 16px; }
@media (max-width: 640px) { .z3 { grid-template-columns: 1fr; gap: 18px; } }

/* Z-4 週の時間割 */
.z4__legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 20px; font-size: 13px; margin-bottom: 14px; }
.z4__legend li { display: flex; align-items: center; gap: 8px; }
.z4__legend li::before { content: ""; width: 14px; height: 14px; background: var(--c); }
.tt { display: grid; grid-template-columns: 56px repeat(4, minmax(0, 1fr)); gap: 0 8px; background: var(--grid); padding: 8px 0; }
.tt__h { font-family: var(--dotf); text-align: center; font-size: 17px; padding-bottom: 8px; background: var(--rule) left bottom repeat-x; }
.tt__h--axis { background: none; }
.tt__axis, .tt__day { display: grid; grid-template-rows: repeat(34, 16px); position: relative; margin-top: 8px; }
.tt__axis span { font-size: 12px; line-height: 1; font-variant-numeric: tabular-nums; transform: translateY(-6px); white-space: nowrap; }
.tt__day { border-left: 2px solid var(--ink20); }
.slot { --c: var(--ink); margin: 1px 0 1px 6px; padding: 6px 8px; border-radius: 2px; background: var(--c); color: #fff; font-size: 13px; font-weight: 700; line-height: 1.35; font-variant-numeric: tabular-nums; overflow: hidden; }
.slot b { display: block; font-family: var(--dotf); font-weight: 400; font-size: 15px; letter-spacing: .04em; }
.slot--g { --c: var(--green); color: var(--ink); }
.slot--r { --c: var(--red); }
.slot--event { background: #fff; color: var(--ink); box-shadow: none; outline: 2px dashed var(--red); outline-offset: -2px; font-size: 12px; }
.slot--event b { font-size: 14px; }
.tt-mob { display: none; }
@media (max-width: 760px) {
  .tt { display: none; }
  .tt-mob { display: block; }
  .tt-mob > li { padding: 12px 0 14px; background: var(--rule) left bottom repeat-x; display: grid; grid-template-columns: 56px 1fr; gap: 8px; }
  .tt-mob h4 { margin: 0; font-family: var(--dotf); font-weight: 400; font-size: 18px; padding-top: 4px; }
  .tt-mob .slot { margin: 0 0 6px; }
  .z4__legend { justify-content: flex-start; }
}

/* 見取り図・駅からの道 */
.plan svg, .map svg { width: 100%; height: auto; }
.plan, .map { max-width: 760px; }
.plan text, .map text { font-family: var(--body); font-size: 19px; font-weight: 700; fill: var(--ink); }
.plan .ld { stroke: var(--ink); stroke-width: 1.5; fill: none; }
@media (max-width: 520px) { .plan text, .map text { font-size: 22px; } }

/* ---------- フッター ---------- */
.foot { position: relative; margin-top: 56px; background: var(--ink); color: #fff; padding: 64px 0 32px; }
.foot__bot { position: absolute; left: max(20px, 50% - 520px); top: -48px; width: 48px; height: 48px; }
.foot__in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; }
.foot .logo { width: 196px; --pc: #FFFFFF; --pw: #1E2124; }
.foot .logo__name, .foot .logo__sub { fill: #fff; }
.foot__info { margin-top: 18px; font-size: 14px; line-height: 1.9; font-variant-numeric: tabular-nums; }
.foot__links { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 6px 36px; font-size: 14px; align-content: start; }
.foot__links a { text-decoration: none; display: inline-block; padding: 4px 0; }
.foot__links a:hover { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 5px; }
.foot__copy { margin-top: 40px; font-size: 12px; color: #D2D3D3; }
@media (max-width: 760px) { .foot__in { grid-template-columns: 1fr; } }
@media (max-width: 380px) { .foot__links { grid-template-columns: 1fr; } }

/* 動きを減らす設定では、すべて完成形 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv, .say__b, .fb, .hero h1, .hero__stack .blk, .phead__chain .blk, .phead__stair .blk { opacity: 1 !important; transform: none !important; }
  .hero__bot .wb { opacity: 0 !important; }
}
.nw { display: inline-block; white-space: nowrap; }
.h2 > span:last-child { word-break: auto-phrase; }
/* 見出しを左、本文を右に置く区画（おうちの方へ） */
.side { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: start; }
.side__h .h2 { margin-bottom: 0; }
@media (min-width: 901px) { .side__h { position: sticky; top: calc(var(--head-h) + 32px); } }
@media (max-width: 900px) { .side { grid-template-columns: 1fr; gap: 0; } .side__h .h2 { margin-bottom: 24px; } }
.phead__obj--big { width: 96px; height: 96px; }
