/* =========================================================
   ピポッとラボ 天王寺 — style.css
   配色は「積み木の原色」を、紺(ink)とクリーム(paper)で締めて上品に寄せる。
   ========================================================= */

:root {
  --ink: #1d2142;
  --ink-soft: #4a4f70;
  --ink-mute: #767a96;
  --paper: #fff8ee;
  --paper-deep: #ffeedb;
  --white: #fff;
  --line: rgba(29, 33, 66, .12);

  --red: #ff5a3c;
  --red-d: #db3d20;
  --yellow: #ffc425;
  --yellow-d: #e8a600;
  --blue: #3168ff;
  --blue-d: #1f4fd6;
  --green: #17b37b;
  --green-d: #0b8a5d;
  --purple: #8a63f5;
  --purple-d: #6a43d6;
  --pink: #ff86ad;
  --pink-d: #e85a8b;
  --orange: #ff9a1f;
  --orange-d: #e07a00;
  --cyan: #2bb7d9;
  --cyan-d: #1590b0;

  --font: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-en: "Fredoka", "Zen Maru Gothic", sans-serif;

  --r-xl: 40px;
  --r-l: 28px;
  --r-m: 18px;
  --r-s: 12px;

  --pop: 0 5px 0 var(--ink);
  --pop-sm: 0 3px 0 var(--ink);
  --soft: 0 24px 48px -24px rgba(29, 33, 66, .35);

  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);

  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .02em;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "palt" 1;
  word-break: auto-phrase;
  line-break: strict;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
blockquote { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--yellow); color: var(--ink); }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nb { display: inline-block; }
.en { font-family: var(--font-en); letter-spacing: .02em; }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--red);
  --fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 56px;
  padding: 12px 28px;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-weight: 900;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: .06em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--pop);
  transition: transform .25s var(--ease-spring), box-shadow .25s var(--ease-spring), background-color .2s;
  will-change: transform;
}
.btn .ic { width: 22px; height: 22px; stroke-width: 2.4; transition: transform .3s var(--ease-spring); }
.btn:hover { transform: translate(var(--tx, 0), calc(var(--ty, 0px) - 3px)); box-shadow: 0 8px 0 var(--ink); }
.btn:hover .ic { transform: translateX(4px); }
.btn:hover > .btn__in { animation: boing .6s var(--ease-out); }
.btn:active { transform: translate(var(--tx, 0), calc(var(--ty, 0px) + 3px)); box-shadow: 0 2px 0 var(--ink); transition-duration: .08s; }
.btn__in { display: inline-flex; align-items: center; gap: .55em; }
.btn--ghost { --bg: var(--white); --fg: var(--ink); }
.btn--yellow { --bg: var(--yellow); --fg: var(--ink); }
.btn--blue { --bg: var(--blue); }
.btn--sm { min-height: 44px; padding: 8px 20px; font-size: 15px; box-shadow: var(--pop-sm); }
.btn--sm:hover { box-shadow: 0 5px 0 var(--ink); }
.btn--lg { min-height: 68px; padding: 16px 40px; font-size: 19px; }

@keyframes boing {
  0% { transform: scale(1); }
  25% { transform: scale(1.08, .9); }
  45% { transform: scale(.95, 1.06); }
  65% { transform: scale(1.03, .97); }
  100% { transform: scale(1); }
}

/* ---------- header ---------- */
.hd {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 248, 238, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  transition: box-shadow .3s, background-color .3s;
}
.hd.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(29, 33, 66, .35); background: rgba(255, 248, 238, .94); }
.hd__in { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo__mark { width: 44px; height: 44px; transition: transform .5s var(--ease-spring); }
.logo:hover .logo__mark { transform: rotate(-12deg) scale(1.08); }
.logo__txt { display: grid; line-height: 1.1; }
.logo__name { font-weight: 900; font-size: 21px; letter-spacing: 0; }
.logo__sub { font-family: var(--font-en); font-weight: 600; font-size: 10.5px; letter-spacing: .22em; color: var(--ink-soft); }
.gnav { margin-left: auto; }
.gnav ul { display: flex; gap: 4px; }
.gnav a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0;
  text-decoration: none;
  transition: background-color .2s, transform .3s var(--ease-spring);
}
.gnav a:hover { background: var(--paper-deep); transform: translateY(-2px); }
.gnav a[aria-current="page"] { background: var(--ink); color: #fff; }
.hd .btn { flex: none; }

.mnav { display: none; margin-left: auto; position: relative; }
.mnav > summary {
  list-style: none;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--pop-sm);
  cursor: pointer;
}
.mnav > summary::-webkit-details-marker { display: none; }
.mnav > summary .ic { width: 24px; height: 24px; stroke-width: 2.4; }
.mnav .ic--x { display: none; }
.mnav[open] .ic--x { display: block; }
.mnav[open] .ic--menu { display: none; }
.mnav__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: min(320px, calc(100vw - 32px));
  padding: 12px;
  background: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: 22px;
  box-shadow: var(--pop);
  animation: drop .35s var(--ease-spring);
  transform-origin: top right;
}
.mnav__panel a { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 12px; font-weight: 700; text-decoration: none; }
.mnav__panel a:hover { background: var(--paper); }
.mnav__panel .btn { margin-top: 8px; width: 100%; justify-content: center; }
@keyframes drop { from { opacity: 0; transform: scale(.9) translateY(-8px); } }

/* ---------- section shells ---------- */
.sec { position: relative; padding-block: clamp(80px, 11vw, 140px); }
.sec--white { background: var(--white); }
.sec--ink { background: var(--ink); color: #fff; }
.sec-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.sec-head--c { margin-inline: auto; text-align: center; }
.sec-label {
  --c: var(--red);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 5px 16px 7px 12px;
  border-radius: 8px;
  background: var(--c);
  color: #fff;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .14em;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .14);
}
/* Scratchのブロックの「出っぱり」 */
.sec-label::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -7px;
  width: 22px;
  height: 8px;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 78% 100%, 22% 100%);
}
.sec-label .ic { width: 16px; height: 16px; stroke-width: 2.4; }
.sec-title {
  font-weight: 900;
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1.38;
  letter-spacing: 0;
}
.sec-title .mk { position: relative; white-space: nowrap; z-index: 0; }
.sec-title .mk::after {
  content: "";
  position: absolute;
  left: -4px; right: -4px;
  bottom: .06em;
  height: .36em;
  background: var(--mk, var(--yellow));
  border-radius: 6px;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s var(--ease-out) .25s;
}
.js .is-shown .sec-title .mk::after { transform: scaleX(1); }
html:not(.js) .sec-title .mk::after { transform: scaleX(1); }
.sec-lead { margin-top: 18px; color: var(--ink-soft); font-size: 16.5px; }
.sec--ink .sec-lead { color: rgba(255, 255, 255, .78); }

.wave { position: absolute; left: 0; right: 0; height: clamp(28px, 4vw, 56px); width: 100%; pointer-events: none; }
.wave--top { top: -1px; }
.wave--bottom { bottom: -1px; transform: scaleY(-1); }

/* ---------- reveal ---------- */
.js .rv { opacity: 0; transform: translateY(32px); }
.js .rv.is-in { animation: rise .9s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 110ms); }
.js .rv--pop.is-in { animation-name: pop-in; animation-duration: .8s; animation-timing-function: var(--ease-spring); }
@keyframes rise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes pop-in { 0% { opacity: 0; transform: translateY(30px) scale(.92) rotate(var(--rot, -2deg)); } 100% { opacity: 1; transform: none; } }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; padding: clamp(28px, 5vw, 64px) 0 clamp(72px, 9vw, 120px); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); }
.blob--1 { width: 620px; height: 620px; right: -160px; top: -200px; background: radial-gradient(circle at 40% 40%, #ffe08a, #ffd25a 60%, rgba(255, 210, 90, 0) 70%); opacity: .7; }
.blob--2 { width: 420px; height: 420px; left: -180px; bottom: -160px; background: radial-gradient(circle, rgba(49, 104, 255, .16), rgba(49, 104, 255, 0) 68%); }
.shape {
  position: absolute;
  width: var(--s, 36px);
  transform: translate(calc(var(--mx, 0) * var(--dp, 10px)), calc(var(--my, 0) * var(--dp, 10px)));
  transition: transform .6s var(--ease-out);
}
.shape > svg { width: 100%; height: auto; animation: float 6s ease-in-out infinite; animation-delay: var(--fd, 0s); }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(8deg); } }

.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  padding: 7px 16px 7px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.5;
}
.eyebrow__dot { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; }
.eyebrow__dot .ic { width: 15px; height: 15px; stroke-width: 2.6; }
.eyebrow__sep { width: 2px; height: 14px; background: var(--line); }

.hero__title {
  margin-top: 24px;
  font-weight: 900;
  font-size: clamp(40px, 5.4vw, 78px);
  line-height: 1.22;
  letter-spacing: -.01em;
}
.hero__title .line { display: block; white-space: nowrap; }
.hero__title .ch { display: inline-block; transition: transform .4s var(--ease-spring); }
.hero__title .ch:hover { transform: translateY(-.16em) rotate(-6deg); }
.js .hero__title .ch { animation: char-in .9s var(--ease-spring) both; animation-delay: calc(var(--i) * 45ms + 150ms); }
@keyframes char-in { 0% { opacity: 0; transform: translateY(.6em) scale(.6); } 100% { opacity: 1; transform: none; } }
.hero__title .c1 { color: var(--red); }
.hero__title .c2 { color: var(--blue); }
.hero__title .c3 { color: var(--green-d); }
.hero__title .c4 { color: var(--purple); }
.hero__title .c5 { color: var(--orange-d); }
.hero__title .q { color: var(--ink-mute); font-weight: 700; }
/* 括弧と読点はぶら下げて、見た目の幅を詰める */
.hero__title .q-open { margin-left: -.42em; margin-right: -.08em; }
.hero__title .q-close { margin-right: -.42em; margin-left: -.06em; }
.hero__title .comma { margin-right: -.4em; }

.hero__lead { margin-top: 22px; max-width: 34em; font-size: clamp(15.5px, 1.35vw, 17.5px); line-height: 2; color: var(--ink-soft); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px 16px; margin-top: 30px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; font-weight: 700; font-size: 14.5px; }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts .ic { width: 30px; height: 30px; padding: 6px; border-radius: 10px; color: #fff; background: var(--c); stroke-width: 2.4; }

.hero__visual { position: relative; aspect-ratio: 1 / .92; margin-right: calc(-1 * clamp(0px, 3vw, 48px)); }
.hero__frame {
  position: absolute;
  inset: 4% 0 6% 6%;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
  background: #fbe7cb;
  box-shadow: 10px 12px 0 var(--ink);
  animation: morph 14s ease-in-out infinite;
}
.hero__frame picture, .feat__img picture, .work__media picture, .msg__thumb picture { display: block; height: 100%; }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; transform: scale(1.06); }
@keyframes morph {
  0%, 100% { border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; }
  33% { border-radius: 56% 44% 52% 48% / 44% 56% 46% 54%; }
  66% { border-radius: 42% 58% 60% 40% / 56% 48% 52% 44%; }
}

/* ヒーローのスクリプト(ブロック) */
.hero__visual > .hero__script { position: absolute; left: -9%; bottom: 3%; width: min(270px, 52%); z-index: 2; }
.hero__pipo { position: absolute; right: -2%; bottom: -4%; width: clamp(130px, 30%, 210px); z-index: 3; }
.hero__visual > .hero__sticker { position: absolute; right: 4%; top: -2%; width: clamp(96px, 22%, 132px); z-index: 2; }
.sticker { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.sticker__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.sticker__core {
  position: relative;
  width: 62%;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  border: 2.5px solid var(--ink);
  text-align: center;
  font-weight: 900;
  line-height: 1.15;
  font-size: clamp(13px, 1.3vw, 16px);
  box-shadow: var(--pop-sm);
}
.sticker__core b { display: block; font-family: var(--font-en); font-size: 1.6em; font-weight: 600; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   SCRATCH風ブロック(共通部品)
   ========================================================= */
.blk {
  --c: var(--blue);
  --cd: var(--blue-d);
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 16px 12px;
  border-radius: 8px;
  background: var(--c);
  color: #fff;
  font-weight: 700;
  line-height: 1.5;
  box-shadow: inset 0 -4px 0 var(--cd);
}
/* 下側の出っぱり。次のブロックの上に重なり、はまって見える */
.blk::after {
  content: "";
  position: absolute;
  left: 22px;
  bottom: -9px;
  width: 30px;
  height: 10px;
  background: var(--cd);
  clip-path: polygon(0 0, 100% 0, 78% 100%, 22% 100%);
  z-index: 1;
}
.blk::before {
  content: "";
  position: absolute;
  left: 22px;
  bottom: -5px;
  width: 30px;
  height: 6px;
  background: var(--c);
  clip-path: polygon(0 0, 100% 0, 84% 100%, 16% 100%);
  z-index: 2;
}
.blk--end::before, .blk--end::after { display: none; }
.blk--hat { border-radius: 26px 26px 8px 8px; padding-top: 18px; }
.blk--y { --c: var(--yellow); --cd: var(--yellow-d); color: var(--ink); }
.blk--p { --c: var(--purple); --cd: var(--purple-d); }
.blk--g { --c: var(--green); --cd: var(--green-d); }
.blk--o { --c: var(--orange); --cd: var(--orange-d); color: var(--ink); }
.blk--pk { --c: var(--pink); --cd: var(--pink-d); color: var(--ink); }
.blk--r { --c: var(--red); --cd: var(--red-d); }
.blk--c { --c: var(--cyan); --cd: var(--cyan-d); }
.blk__slot {
  display: inline-block;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-en);
  font-weight: 600;
  line-height: 1.6;
}
.blk__flag { width: 20px; height: 20px; flex: none; }

.script { display: grid; }
.script .blk { font-size: 13.5px; min-height: 40px; padding: 7px 12px 9px; transform-origin: left center; }
.script .blk--hat { padding-top: 14px; }
.js .hero__script .blk { animation: stack-in .7s var(--ease-spring) both; animation-delay: calc(var(--i) * 160ms + 600ms); }
@keyframes stack-in {
  0% { opacity: 0; transform: translate(-40px, -50px) rotate(-14deg); }
  70% { opacity: 1; transform: translate(0, 3px) rotate(1deg); }
  100% { opacity: 1; transform: none; }
}
.hero__script .blk:nth-child(2) { margin-left: 0; }
.hero__script { filter: drop-shadow(0 14px 18px rgba(29, 33, 66, .22)); }

/* ---------- ribbon (marquee) ---------- */
/* 傾けた帯の端がはみ出して横スクロールが出ないよう、横だけ切る */
.ribbon-clip { position: relative; z-index: 2; overflow-x: clip; padding-block: 24px; margin-block: -24px; }
.ribbon {
  position: relative;
  z-index: 2;
  margin-top: -36px;
  background: var(--ink);
  color: #fff;
  transform: rotate(-2deg);
  border-block: 3px solid var(--ink);
  overflow: hidden;
  padding-block: 14px;
  width: calc(100% + 40px);
  margin-left: -20px;
}
.ribbon__track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.ribbon__set { display: flex; align-items: center; gap: 28px; padding-right: 28px; }
.ribbon__set span { font-weight: 900; font-size: clamp(18px, 2.2vw, 26px); white-space: nowrap; }
.ribbon__set i { width: 14px; height: 14px; border-radius: 4px; background: var(--c); transform: rotate(45deg); }
.ribbon__set .en { font-weight: 600; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   FEATURES
   ========================================================= */
.feats { display: grid; gap: clamp(64px, 9vw, 120px); }
.feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.feat:nth-child(even) .feat__media { order: 2; }
.feat__media { position: relative; }
.feat__plate {
  position: absolute;
  inset: 0;
  border-radius: var(--r-xl);
  background: var(--c);
  transform: rotate(var(--tilt, -4deg)) translate(14px, 16px);
  border: 3px solid var(--ink);
}
.feat__img {
  position: relative;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: var(--r-xl);
  aspect-ratio: 4 / 3;
  background: var(--paper-deep);
  transition: transform .6s var(--ease-spring);
}
.feat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.feat__media:hover .feat__img { transform: rotate(calc(var(--tilt, -4deg) * -.4)) translateY(-6px); }
.feat__media:hover .feat__img img { transform: scale(1.05); }
.feat__badge {
  position: absolute;
  left: -14px;
  bottom: 24px;
  z-index: 2;
}
.feat__num {
  display: block;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: clamp(72px, 9vw, 120px);
  line-height: .9;
  color: var(--paper);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  text-shadow: 6px 6px 0 var(--c);
  letter-spacing: 0;
}
.sec--white .feat__num { color: var(--white); }
.feat__tag { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px 4px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--white);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.6;
}
.chip--c { background: var(--c); color: #fff; }
.chip--dark { color: var(--ink); }
.chip .ic { width: 15px; height: 15px; stroke-width: 2.4; }
.feat__title { font-weight: 900; font-size: clamp(23px, 2.7vw, 32px); line-height: 1.5; }
.feat__text { margin-top: 18px; color: var(--ink-soft); }
.feat__points { display: grid; gap: 10px; margin-top: 24px; }
.feat__points li { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; font-size: 15px; line-height: 1.7; }
.feat__points .ic { margin-top: 2px; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--c); color: #fff; stroke-width: 3; }

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(80px, 10vw, 130px);
}
.stat {
  position: relative;
  padding: 26px 22px 24px;
  border: 2.5px solid var(--ink);
  border-radius: var(--r-l);
  background: var(--white);
  box-shadow: var(--pop);
  text-align: center;
  transition: transform .4s var(--ease-spring);
}
.stat:hover { transform: translateY(-6px) rotate(var(--r, -1.5deg)); }
.stat__k { font-weight: 700; font-size: 14px; color: var(--ink-soft); }
.stat__v { display: flex; align-items: baseline; justify-content: center; gap: 4px; margin-top: 6px; line-height: 1; }
.stat__v .num { font-family: var(--font-en); font-weight: 600; font-size: clamp(46px, 5.2vw, 64px); color: var(--c); letter-spacing: 0; }
.stat__v .u { font-weight: 900; font-size: 18px; }
.stat__note { margin-top: 10px; font-size: 13px; line-height: 1.6; color: var(--ink-mute); }

/* =========================================================
   COURSE
   ========================================================= */
.picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
  margin: -16px auto 44px;
  padding: 14px 20px;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  background: var(--paper);
  border: 2px dashed rgba(29, 33, 66, .25);
}
.picker__q { font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.picker__q .ic { color: var(--purple); }
.picker__btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.picker__btn {
  min-width: 52px;
  height: 44px;
  padding: 0 12px;
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  background: var(--white);
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  box-shadow: var(--pop-sm);
  transition: transform .3s var(--ease-spring), background-color .2s, box-shadow .2s;
}
.picker__btn:hover { transform: translateY(-3px); }
.picker__btn[aria-pressed="true"] { background: var(--ink); color: #fff; transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.picker__hint { width: 100%; text-align: center; font-size: 13.5px; color: var(--ink-mute); min-height: 1.6em; }
html:not(.js) .picker { display: none; }

.courses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); align-items: stretch; }
.course {
  --c: var(--blue);
  --cd: var(--blue-d);
  position: relative;
  display: flex;
  flex-direction: column;
  border: 3px solid var(--ink);
  border-radius: var(--r-l);
  background: var(--white);
  box-shadow: var(--pop);
  transition: transform .5s var(--ease-spring), opacity .4s, filter .4s, box-shadow .4s;
}
.course--y { --c: var(--yellow); --cd: var(--yellow-d); }
.course--g { --c: var(--green); --cd: var(--green-d); }
.course--p { --c: var(--purple); --cd: var(--purple-d); }
.course.is-dim { opacity: .45; filter: saturate(.4); transform: scale(.97); }
.course.is-pick { transform: translateY(-10px); box-shadow: 0 14px 0 var(--ink); }
.course.is-pick .course__rec { opacity: 1; transform: translate(-50%, 0) rotate(-3deg) scale(1); }
.course__rec {
  position: absolute;
  left: 50%;
  top: -22px;
  z-index: 3;
  padding: 4px 16px 6px;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 10px) scale(.6);
  transition: opacity .3s, transform .5s var(--ease-spring);
}
.course__head {
  position: relative;
  padding: 26px 26px 26px;
  border-radius: calc(var(--r-l) - 3px) calc(var(--r-l) - 3px) 0 0;
  background: var(--c);
  color: #fff;
  box-shadow: inset 0 -5px 0 var(--cd);
}
.course--y .course__head { color: var(--ink); }
.course__head::after {
  content: "";
  position: absolute;
  left: 34px;
  bottom: -11px;
  width: 38px;
  height: 12px;
  background: var(--cd);
  clip-path: polygon(0 0, 100% 0, 78% 100%, 22% 100%);
}
.course__grade { display: inline-block; padding: 2px 12px 3px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: var(--ink); font-weight: 900; font-size: 13.5px; }
.course__name { margin-top: 12px; font-weight: 900; font-size: 27px; line-height: 1.3; }
.course__name .en { display: block; font-size: 13px; font-weight: 600; letter-spacing: .2em; opacity: .85; }
.course__catch { margin-top: 8px; font-weight: 700; font-size: 15px; line-height: 1.6; }
.course__body { display: flex; flex-direction: column; gap: 20px; padding: 32px 26px 28px; flex: 1; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 6px; }
.price__k { width: 100%; font-weight: 700; font-size: 13px; color: var(--ink-mute); }
.price__v { font-family: var(--font-en); font-weight: 600; font-size: 46px; line-height: 1; letter-spacing: 0; }
.price__u { font-weight: 900; font-size: 15px; }
.price__tax { font-size: 12.5px; color: var(--ink-mute); }
.course__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.course__meta li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 10px; background: var(--paper); font-weight: 700; font-size: 13.5px; line-height: 1.5; }
.course__meta .ic { width: 17px; height: 17px; color: var(--cd); }
.course__list { display: grid; gap: 10px; padding-top: 18px; border-top: 2px dashed var(--line); }
.course__list li { display: flex; gap: 10px; font-size: 15px; line-height: 1.7; }
.course__list .ic { flex: none; margin-top: 3px; width: 20px; height: 20px; padding: 3px; border-radius: 6px; background: var(--c); color: #fff; stroke-width: 3; }
.course--y .course__list .ic { color: var(--ink); }
.course__for { margin-top: auto; padding: 14px 16px; border-radius: 14px; background: var(--paper); font-size: 14px; line-height: 1.7; }
.course__for b { display: block; font-size: 12.5px; color: var(--cd); }
.course--y .course__for b { color: #9b6a00; }

.terms {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 40px;
  border: 2.5px solid var(--ink);
  border-radius: var(--r-m);
  background: var(--white);
  overflow: hidden;
}
.terms > div { padding: 18px 20px; border-right: 2px dashed var(--line); }
.terms > div:last-child { border-right: 0; }
.terms dt { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; color: var(--ink-mute); }
.terms dt .ic { width: 17px; height: 17px; color: var(--blue); }
.terms dd { margin-top: 4px; font-weight: 900; font-size: 16.5px; line-height: 1.5; }
.terms dd small { display: block; font-weight: 500; font-size: 12.5px; color: var(--ink-soft); }
.terms-note { margin-top: 14px; font-size: 13px; color: var(--ink-mute); text-align: center; }

/* =========================================================
   FLOW (授業の流れ)
   ========================================================= */
.flow-sec {
  background-color: var(--ink);
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1.5px, transparent 1.6px);
  background-size: 22px 22px;
}
.flow-sec .sec-title .mk::after { --mk: var(--blue); }
.flow { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.flow__script { display: grid; max-width: 640px; }
.flow__script > .blk, .flow__script > .cblk { font-size: clamp(14.5px, 1.4vw, 16.5px); }
.flow__script .blk { min-height: 64px; padding: 14px 18px 16px; gap: 14px; }
.flow__script .blk--hat { padding-top: 22px; }
.flow__script .blk--hat .blk__flag { width: 26px; height: 26px; }
.blk__main { flex: 1; min-width: 0; }
.blk__main small { display: block; font-weight: 500; font-size: .84em; opacity: .9; line-height: 1.6; margin-top: 2px; }
.blk__t {
  flex: none;
  padding: 2px 12px 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .95);
  color: var(--ink);
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.blk__t small { font-family: var(--font); font-weight: 700; font-size: 11px; margin-left: 1px; }
.blk__ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, .22); }
.blk--y .blk__ico, .blk--o .blk__ico, .blk--pk .blk__ico { background: rgba(29, 33, 66, .1); }
.blk__ico .ic { width: 22px; height: 22px; stroke-width: 2.2; }

/* C型ブロック(もし〜なら) */
.cblk { --c: var(--orange); --cd: var(--orange-d); position: relative; color: var(--ink); }
.cblk__top, .cblk__bot { position: relative; background: var(--c); }
.cblk__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 18px 12px; border-radius: 8px 8px 0 0; font-weight: 700; }
.cblk__cond {
  display: inline-block;
  padding: 2px 16px 3px;
  background: var(--orange-d);
  color: #fff;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0 50%);
}
.cblk__mid { display: grid; grid-template-columns: 26px 1fr; }
.cblk__arm { background: var(--c); }
.cblk__inner { display: grid; padding: 0 0 10px; }
.cblk__inner .blk { min-height: 54px; font-size: .94em; }
.cblk__bot { height: 26px; border-radius: 0 0 8px 8px; box-shadow: inset 0 -4px 0 var(--cd); }
.cblk__bot::after {
  content: "";
  position: absolute;
  left: 22px;
  bottom: -9px;
  width: 30px;
  height: 10px;
  background: var(--cd);
  clip-path: polygon(0 0, 100% 0, 78% 100%, 22% 100%);
  z-index: 1;
}
.cblk__inner .blk:first-child { border-radius: 0 8px 8px 8px; }

/* スクロールで「はまる」 */
.js .flow__script > * { opacity: 0; }
.js .flow__script > *.is-in { animation: snap .8s var(--ease-spring) both; }
.js .flow__script > *:nth-child(even).is-in { animation-name: snap-r; }
@keyframes snap { 0% { opacity: 0; transform: translate(-70px, -14px) rotate(-7deg); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes snap-r { 0% { opacity: 0; transform: translate(70px, -14px) rotate(6deg); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
.flow__script > * { position: relative; }
.flow__script > *:nth-child(1) { z-index: 9; }
.flow__script > *:nth-child(2) { z-index: 8; }
.flow__script > *:nth-child(3) { z-index: 7; }
.flow__script > *:nth-child(4) { z-index: 6; }
.flow__script > *:nth-child(5) { z-index: 5; }
.flow__script > *:nth-child(6) { z-index: 4; }
.flow__script > *:nth-child(7) { z-index: 3; }
.flow__script > *:nth-child(8) { z-index: 2; }
.flow__total { margin-top: 26px; display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .78); font-size: 14px; }
.flow__total b { color: var(--yellow); font-family: var(--font-en); font-weight: 600; font-size: 20px; }

/* 保護者に届くレポート(スマホ) */
.flow__aside { position: sticky; top: calc(var(--header-h) + 32px); }
.flow__aside-label { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font-weight: 700; color: rgba(255, 255, 255, .85); }
.flow__aside-label .ic { color: var(--yellow); }
.phone {
  position: relative;
  max-width: 340px;
  margin-inline: auto;
  padding: 14px;
  border-radius: 44px;
  background: #0e1130;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .14), 0 40px 60px -30px rgba(0, 0, 0, .7);
  transform: rotate(3deg);
  transition: transform .8s var(--ease-spring);
}
.phone:hover { transform: rotate(0) translateY(-6px); }
.phone__scr { overflow: hidden; border-radius: 32px; background: #f4f1ea; color: var(--ink); }
.phone__bar { display: flex; align-items: center; gap: 10px; padding: 18px 18px 12px; background: var(--white); border-bottom: 1px solid var(--line); }
.phone__av { width: 36px; height: 36px; flex: none; }
.phone__bar b { display: block; font-size: 14px; line-height: 1.3; }
.phone__bar span { font-size: 11.5px; color: var(--ink-mute); }
.phone__body { display: grid; gap: 10px; padding: 14px 14px 18px; }
.msg { padding: 12px 14px; border-radius: 4px 18px 18px 18px; background: var(--white); font-size: 13px; line-height: 1.7; box-shadow: 0 1px 0 var(--line); }
.msg b { display: block; margin-bottom: 2px; font-size: 11.5px; color: var(--blue-d); }
.msg--video { padding: 6px; }
.msg__thumb { position: relative; overflow: hidden; border-radius: 12px; aspect-ratio: 16 / 10; background: var(--paper-deep); }
.msg__thumb img { width: 100%; height: 100%; object-fit: cover; }
.msg__play { position: absolute; inset: 0; display: grid; place-items: center; }
.msg__play span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--red); box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }
.msg__play .ic { width: 20px; height: 20px; fill: currentColor; margin-left: 3px; }
.msg__dur { position: absolute; right: 8px; bottom: 8px; padding: 0 8px; border-radius: 6px; background: rgba(0, 0, 0, .6); color: #fff; font-family: var(--font-en); font-size: 11px; }
.js .phone .msg { opacity: 0; transform: translateY(12px) scale(.96); }
.js .phone.is-in .msg { animation: msg-in .6s var(--ease-spring) both; animation-delay: calc(var(--i) * 450ms + 300ms); }
@keyframes msg-in { to { opacity: 1; transform: none; } }
.flow__aside-note { margin-top: 26px; font-size: 13.5px; color: rgba(255, 255, 255, .7); text-align: center; }

/* =========================================================
   WORKS
   ========================================================= */
.works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px) clamp(24px, 4vw, 48px); }
.works--home > .work:nth-child(even) { margin-top: clamp(0px, 8vw, 96px); }
.works--home > .work:nth-child(odd):not(:first-child) { margin-top: clamp(0px, -6vw, 0px); }
.work { --c: var(--blue); position: relative; }
.work__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10.5;
  border: 3px solid var(--ink);
  border-radius: var(--r-l);
  background: var(--paper-deep);
  box-shadow: 8px 10px 0 var(--c);
  transition: transform .6s var(--ease-spring), box-shadow .6s var(--ease-spring);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.work:hover .work__media { box-shadow: 12px 16px 0 var(--c); }
.work__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transform-origin: 50% 50%; }
/* 画面に入ったら作品が「動き出す」 */
.work.is-live .work__media img { animation: alive 9s ease-in-out infinite alternate; }
@keyframes alive {
  0% { transform: scale(1.08) translate(0, 0); }
  50% { transform: scale(1.14) translate(-2%, -1.5%); }
  100% { transform: scale(1.1) translate(2%, 1%); }
}
.work__fx { position: absolute; inset: 0; pointer-events: none; }
.work__fx > * { position: absolute; opacity: 0; }
.work.is-live .work__fx > * { animation: fx 2.6s var(--ease-out) infinite; animation-delay: calc(var(--i, 0) * .45s); }
@keyframes fx {
  0% { opacity: 0; transform: translateY(14px) scale(.5) rotate(0); }
  20% { opacity: 1; transform: translateY(0) scale(1) rotate(-8deg); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-34px) scale(.9) rotate(12deg); }
}
.work__cat {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 2;
}
.work__body { padding: 26px 6px 0; }
.work__who { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 700; font-size: 13.5px; color: var(--ink-soft); }
.work__who .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.work__title { margin-top: 6px; font-weight: 900; font-size: clamp(21px, 2.2vw, 26px); line-height: 1.5; }
.work__text { margin-top: 10px; color: var(--ink-soft); font-size: 15.5px; }
.work__skills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.work__skills li { padding: 2px 10px 3px; border-radius: 8px; background: var(--paper-deep); font-weight: 700; font-size: 12.5px; }
.sec--white .work__skills li { background: var(--paper); }
.works-more { display: flex; justify-content: center; margin-top: clamp(48px, 7vw, 80px); }

/* =========================================================
   VOICES
   ========================================================= */
.voices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 32px); align-items: start; }
.voice { --c: var(--yellow); }
.voice:nth-child(2) { margin-top: 48px; }
.voice__bubble {
  position: relative;
  padding: 30px 28px 28px;
  border: 2.5px solid var(--ink);
  border-radius: var(--r-l);
  background: var(--white);
  box-shadow: var(--pop);
  transition: transform .5s var(--ease-spring);
}
.voice__bubble:hover { transform: translateY(-6px) rotate(-.8deg); }
.voice__bubble::after {
  content: "";
  position: absolute;
  left: 40px;
  bottom: -12px;
  width: 22px;
  height: 22px;
  background: var(--white);
  border-right: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  border-bottom-right-radius: 4px;
  box-shadow: 3.5px 3.5px 0 var(--ink);
  transform: rotate(45deg);
}
.voice__q { position: absolute; right: 22px; top: -22px; font-family: var(--font-en); font-weight: 600; font-size: 74px; line-height: 1; color: var(--c); -webkit-text-stroke: 2.5px var(--ink); paint-order: stroke fill; }
.voice__lead { font-weight: 900; font-size: 18.5px; line-height: 1.6; }
.voice__text { margin-top: 12px; font-size: 15px; line-height: 1.95; color: var(--ink-soft); }
.voice__who { display: flex; align-items: center; gap: 12px; margin-top: 30px; padding-left: 20px; }
.voice__av { width: 52px; height: 52px; flex: none; }
.voice__who b { display: block; font-size: 14.5px; line-height: 1.5; }
.voice__who span { font-size: 12.5px; color: var(--ink-mute); line-height: 1.5; display: block; }

/* =========================================================
   FAQ
   ========================================================= */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-side { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-side .sec-head { margin-bottom: 28px; }
.faq-side__pipo { width: 150px; margin-top: 10px; }
.faq { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.qa { border: 2.5px solid var(--ink); border-radius: var(--r-m); background: var(--white); transition: box-shadow .3s, transform .3s var(--ease-spring); }
.qa:hover { transform: translateY(-2px); box-shadow: var(--pop-sm); }
.qa[open] { box-shadow: var(--pop); }
.qa > summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 64px 18px 20px;
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 16.5px;
  line-height: 1.6;
}
.qa > summary::-webkit-details-marker { display: none; }
.qa__q { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--c, var(--blue)); color: #fff; font-family: var(--font-en); font-weight: 600; font-size: 18px; }
.qa__pm { position: absolute; right: 18px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; background: var(--paper); transition: transform .45s var(--ease-spring), background-color .2s; }
.qa__pm::before, .qa__pm::after { content: ""; position: absolute; left: 8px; right: 8px; top: 50%; height: 2.5px; margin-top: -1.25px; border-radius: 2px; background: var(--ink); }
.qa__pm::after { transform: rotate(90deg); transition: transform .45s var(--ease-spring); }
.qa[open] .qa__pm { transform: rotate(180deg); background: var(--yellow); }
.qa[open] .qa__pm::after { transform: rotate(0); }
.qa__a { display: flex; gap: 14px; padding: 0 24px 22px 20px; color: var(--ink-soft); font-size: 15.5px; }
.qa__a::before { content: "A"; flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--paper); color: var(--red); font-family: var(--font-en); font-weight: 600; font-size: 18px; line-height: 1; }
.qa[open] .qa__a { animation: qa-open .45s var(--ease-out); }
@keyframes qa-open { from { opacity: 0; transform: translateY(-8px); } }

/* =========================================================
   TRIAL (申し込み)
   ========================================================= */
.trial-sec { background: var(--yellow); overflow: hidden; }
.trial-sec::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(29, 33, 66, .11) 1.6px, transparent 1.7px);
  background-size: 24px 24px;
  pointer-events: none;
}
.trial { position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.trial__info .sec-head { margin-bottom: 30px; }
.trial__info .sec-lead { color: var(--ink); }
.steps { display: grid; gap: 12px; counter-reset: step; }
.steps li { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 2.5px solid var(--ink); border-radius: 18px; background: var(--white); font-weight: 700; line-height: 1.6; }
.steps li div span { font-weight: 500; font-size: 13.5px; color: var(--ink-soft); display: block; }
.steps__n { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--yellow); font-family: var(--font-en); font-weight: 600; font-size: 19px; }
.promise { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, .5); font-size: 14.5px; line-height: 1.8; }
.promise .ic { flex: none; width: 26px; height: 26px; color: var(--green-d); }

.form {
  position: relative;
  padding: clamp(24px, 4vw, 44px);
  border: 3px solid var(--ink);
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: 10px 12px 0 var(--ink);
}
.form__title { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 22px; }
.form__title .ic { width: 30px; height: 30px; padding: 5px; border-radius: 10px; background: var(--red); color: #fff; stroke-width: 2.4; }
.form__req-note { margin-top: 6px; font-size: 13px; color: var(--ink-mute); }
.fld { margin-top: 24px; border: 0; padding: 0; min-width: 0; }
.fld__label { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 0; font-weight: 700; font-size: 15px; }
.req { padding: 1px 8px 2px; border-radius: 6px; background: var(--red); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; }
.opt { padding: 1px 8px 2px; border-radius: 6px; background: var(--paper-deep); color: var(--ink-soft); font-size: 11.5px; font-weight: 700; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 16px;
  border: 2px solid rgba(29, 33, 66, .22);
  border-radius: 14px;
  background: var(--paper);
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.4;
  transition: transform .3s var(--ease-spring), border-color .2s, background-color .2s, box-shadow .2s;
}
.choice:hover span { border-color: var(--ink); transform: translateY(-2px); }
.choice input:checked + span { border-color: var(--ink); background: var(--blue); color: #fff; box-shadow: var(--pop-sm); animation: boing .5s var(--ease-out); }
.choice input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.choices--slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choices--slots .choice span { width: 100%; }
.choice--slot span { display: grid; gap: 0; min-width: 132px; padding: 10px 16px; }
.choice--slot small { font-weight: 500; font-size: 12px; opacity: .8; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.input, .textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 2px solid rgba(29, 33, 66, .22);
  border-radius: 14px;
  background: var(--paper);
  font-size: 16px;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.7; }
.input::placeholder, .textarea::placeholder { color: #a5a7b9; }
.input:hover, .textarea:hover { border-color: rgba(29, 33, 66, .45); }
.input:focus, .textarea:focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 4px rgba(49, 104, 255, .18); }
.agree { display: flex; align-items: flex-start; gap: 10px; margin-top: 26px; font-size: 14.5px; line-height: 1.7; cursor: pointer; }
.agree input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--blue); }
.form__submit { margin-top: 26px; width: 100%; }
.form__demo { margin-top: 14px; font-size: 12.5px; color: var(--ink-mute); text-align: center; }
.form__done {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: clamp(56px, 10vw, 112px) 32px 32px;
  border-radius: calc(var(--r-xl) - 3px);
  background: var(--white);
  text-align: center;
}
.form.is-done .form__done { display: flex; animation: pop-in .7s var(--ease-spring); }
.form__done-pipo { width: 140px; animation: hop 1s var(--ease-out) infinite; }
@keyframes hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-18px) rotate(-4deg); } 60% { transform: translateY(-14px) rotate(3deg); } }
.form__done h3 { font-weight: 900; font-size: 24px; }
.form__done p { max-width: 26em; color: var(--ink-soft); font-size: 15px; }
.form__done small { font-size: 12.5px; color: var(--ink-mute); }

/* =========================================================
   ACCESS
   ========================================================= */
.access { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.map { position: relative; border: 3px solid var(--ink); border-radius: var(--r-xl); overflow: hidden; background: #fdf3e1; box-shadow: 10px 12px 0 var(--blue); }
.map svg { width: 100%; height: auto; }
.map__pin { animation: pin 1.6s var(--ease-out) infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes pin { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(-10px); } 50% { transform: translateY(0) scale(1.05, .95); } }
.map__route { stroke-dasharray: 2 9; animation: route 1.2s linear infinite; }
@keyframes route { to { stroke-dashoffset: -22; } }
.map__note { position: absolute; left: 14px; top: 12px; padding: 2px 10px; border-radius: 8px; background: rgba(255, 255, 255, .85); font-size: 11.5px; color: var(--ink-mute); }
.info { display: grid; gap: 0; }
.room { position: relative; margin-top: clamp(48px, 6vw, 72px); }
.room picture { display: block; overflow: hidden; aspect-ratio: 16 / 6; border: 3px solid var(--ink); border-radius: var(--r-xl); background: var(--paper-deep); }
.room img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.room figcaption { position: absolute; left: 28px; bottom: -16px; padding: 4px 16px 5px; border: 2.5px solid var(--ink); border-radius: 999px; background: var(--yellow); font-weight: 900; font-size: 14px; box-shadow: var(--pop-sm); }
.info__name { font-weight: 900; font-size: 26px; line-height: 1.4; }
.info__name small { display: block; font-family: var(--font-en); font-weight: 600; font-size: 12px; letter-spacing: .2em; color: var(--ink-mute); }
.info dl { margin-top: 22px; display: grid; gap: 0; }
.info dl > div { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 14px 0; border-top: 2px dashed var(--line); }
.info dt { display: flex; align-items: flex-start; gap: 8px; font-weight: 700; font-size: 14px; line-height: 1.8; }
.info dt .ic { margin-top: 3px; width: 18px; height: 18px; color: var(--red); }
.info dd { font-size: 15px; line-height: 1.8; }
.info dd small { display: block; font-size: 13px; color: var(--ink-mute); }

/* =========================================================
   CTA / FOOTER
   ========================================================= */
.cta { position: relative; padding-block: clamp(64px, 9vw, 110px); }
.cta__box {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  padding: clamp(28px, 5vw, 56px) clamp(24px, 5vw, 64px);
  border: 3px solid var(--ink);
  border-radius: var(--r-xl);
  background: var(--blue);
  color: #fff;
  box-shadow: 10px 12px 0 var(--ink);
  overflow: hidden;
}
.cta__box::before { content: ""; position: absolute; right: -80px; top: -120px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.cta__box::after { content: ""; position: absolute; left: 34%; bottom: -150px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.cta__pipo { position: relative; z-index: 1; width: clamp(96px, 12vw, 150px); }
.cta__txt { position: relative; z-index: 1; }
.cta__txt h2 { font-weight: 900; font-size: clamp(24px, 2.8vw, 36px); line-height: 1.45; }
.cta__txt p { margin-top: 8px; opacity: .9; }
.cta .btn { position: relative; z-index: 1; }

.ft { background: var(--ink); color: rgba(255, 255, 255, .86); padding: 72px 0 28px; }
.ft__top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: start; }
.ft .logo__name { color: #fff; }
.ft .logo__sub { color: rgba(255, 255, 255, .6); }
.ft__addr { margin-top: 18px; font-size: 14px; line-height: 1.9; color: rgba(255, 255, 255, .72); }
.ft__nav ul { display: grid; grid-template-columns: repeat(2, auto); gap: 6px 36px; }
.ft__nav a { font-size: 14.5px; font-weight: 700; text-decoration: none; opacity: .86; transition: opacity .2s, color .2s; }
.ft__nav a:hover { opacity: 1; color: var(--yellow); }
.ft__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 12px; color: rgba(255, 255, 255, .55); }
.ft__credit a { color: rgba(255, 255, 255, .8); text-underline-offset: 3px; }
.ft__credit a:hover { color: #fff; }

/* =========================================================
   MASCOT (ピポ)
   ========================================================= */
.pipo { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hero__visual > .hero__pipo { position: absolute; }
.page-hero .page-hero__pipo { position: absolute; }
.pipo svg { width: 100%; height: auto; overflow: visible; }
.pipo__body { transform-origin: 50% 90%; transform-box: fill-box; }
.pipo__antenna { transform-origin: 50% 100%; transform-box: fill-box; animation: antenna 3.2s ease-in-out infinite; }
@keyframes antenna { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(8deg); } }
.pipo__arm { transform-box: fill-box; transform-origin: 0% 100%; animation: wave 2.8s ease-in-out infinite; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-22deg); } 80% { transform: rotate(4deg); } 90% { transform: rotate(-16deg); } }
.pipo__eyes { transform-box: fill-box; transform-origin: 50% 50%; }
.pipo.is-blink .pipo__eyes { animation: blink .18s ease-in-out; }
@keyframes blink { 50% { transform: scaleY(.1); } }
.pipo__pupil { transition: transform .18s ease-out; }
.pipo__head { transform-box: view-box; transform-origin: 100px 150px; transition: transform .4s var(--ease-out); }
.pipo.is-jump .pipo__body { animation: jump .7s var(--ease-out); }
@keyframes jump { 0% { transform: scale(1); } 15% { transform: scale(1.06, .92); } 45% { transform: translateY(-26px) scale(.96, 1.04); } 75% { transform: translateY(0) scale(1.04, .96); } 100% { transform: none; } }
.pipo__say {
  position: absolute;
  left: -10%;
  top: -14%;
  padding: 6px 14px 8px;
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  background: var(--white);
  font-weight: 900;
  font-size: 15px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(8px) scale(.7);
  transition: opacity .2s, transform .4s var(--ease-spring);
  pointer-events: none;
  box-shadow: var(--pop-sm);
}
.pipo__say::after { content: ""; position: absolute; right: 22px; bottom: -9px; width: 14px; height: 14px; background: var(--white); border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); }
.pipo.is-say .pipo__say { opacity: 1; transform: none; }

/* =========================================================
   WORKS 下層ページ
   ========================================================= */
.page-hero { position: relative; isolation: isolate; padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; z-index: -1; right: -140px; top: -180px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #ffe08a, #ffd25a 60%, rgba(255, 210, 90, 0) 70%); opacity: .7; }
.crumb { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 13px; color: var(--ink-mute); margin-bottom: 26px; }
.crumb a { text-underline-offset: 3px; }
.page-hero .sec-title { font-size: clamp(34px, 5.4vw, 64px); }
.page-hero__pipo { position: absolute; right: max(var(--gutter), calc((100vw - 1200px) / 2 + 40px)); bottom: 10px; width: clamp(110px, 16vw, 200px); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 8px 20px;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  box-shadow: var(--pop-sm);
  transition: transform .3s var(--ease-spring), background-color .2s, box-shadow .2s;
}
.filter:hover { transform: translateY(-3px); }
.filter[aria-pressed="true"] { background: var(--ink); color: #fff; transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.filter__n { font-family: var(--font-en); font-weight: 600; font-size: 13px; padding: 0 8px; border-radius: 999px; background: var(--paper-deep); color: var(--ink); }
html:not(.js) .filters { display: none; }
.works--all .work.is-hide { display: none; }
.works--all .work.is-show { animation: pop-in .6s var(--ease-spring) both; animation-delay: calc(var(--n, 0) * 70ms); }
.work__more { margin-top: 18px; padding: 16px 18px; border-radius: 16px; background: var(--white); border: 2px dashed rgba(29, 33, 66, .16); font-size: 14.5px; line-height: 1.85; }
.work__more b { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--blue-d); }
.work__more b .ic { width: 17px; height: 17px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .gnav, .hd__cta { display: none; }
  .mnav { display: block; }
  .terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .terms > div:nth-child(2) { border-right: 0; }
  .terms > div:nth-child(-n+2) { border-bottom: 2px dashed var(--line); }
}
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { max-width: 560px; width: 100%; margin: 8px auto 0; }
  .feat, .flow, .faq-wrap, .trial, .access { grid-template-columns: minmax(0, 1fr); }
  .feat:nth-child(even) .feat__media { order: 0; }
  .feat__media { max-width: 620px; width: 100%; }
  .courses { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow__aside, .faq-side { position: static; }
  .faq-side__pipo { display: none; }
  .voices { grid-template-columns: minmax(0, 1fr); max-width: 600px; margin-inline: auto; }
  .voice:nth-child(2) { margin-top: 0; }
  .cta__box { grid-template-columns: auto minmax(0, 1fr); }
  .cta__box .btn { grid-column: 1 / -1; justify-self: start; }
  .ft__top { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .works { grid-template-columns: minmax(0, 1fr); }
  .works--home > .work:nth-child(even) { margin-top: 0; }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .page-hero .page-hero__pipo { position: relative; right: auto; bottom: auto; margin: 24px 0 0 auto; }
}
@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .hero__bg .shape { display: none; }
  .feat__media { width: calc(100% - 12px); }
  .feat__plate { transform: rotate(calc(var(--tilt, -4deg) * .6)) translate(8px, 10px); }
  .choices--grades { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .choices--grades .choice span { width: 100%; justify-content: center; }
  .logo__mark { width: 38px; height: 38px; }
  .logo__name { font-size: 18px; }
  .hero__title { font-size: clamp(34px, 10.4vw, 48px); }
  .hero__cta .btn { width: 100%; }
  .hero__facts { display: grid; gap: 10px; }
  .hero__visual { aspect-ratio: 1 / 1.02; }
  .hero__frame { inset: 10% 2% 10% 4%; box-shadow: 6px 8px 0 var(--ink); }
  .hero__visual > .hero__script { left: -2%; bottom: 2%; width: 58%; }
  .script .blk { font-size: 12px; min-height: 34px; padding: 5px 10px 7px; }
  .hero__pipo { right: -2%; width: 34%; bottom: -2%; }
  .hero__visual > .hero__sticker { right: 0; top: 2%; width: 25%; }
  .sticker__core { font-size: 11px; }
  .ribbon { margin-top: -24px; padding-block: 10px; }
  .stats { gap: 12px; }
  .stat { padding: 20px 12px 18px; border-radius: 22px; }
  .stat__note { font-size: 12px; }
  .picker { border-radius: 24px; }
  .course__head, .course__body { padding-inline: 20px; }
  .terms { grid-template-columns: minmax(0, 1fr); }
  .terms > div { border-right: 0; border-bottom: 2px dashed var(--line); }
  .terms > div:last-child { border-bottom: 0; }
  .flow__script .blk { min-height: 56px; padding: 12px 12px 14px; gap: 10px; }
  .blk__ico { display: none; }
  .cblk__mid { grid-template-columns: 16px 1fr; }
  .cblk__top { padding-inline: 12px; }
  .phone { transform: none; }
  .feat__badge { left: -6px; bottom: 14px; }
  .voice__bubble { padding: 26px 22px 24px; }
  .qa > summary { padding: 16px 54px 16px 14px; font-size: 15.5px; gap: 10px; }
  .qa__q { width: 32px; height: 32px; font-size: 16px; }
  .qa__a { padding: 0 16px 20px 14px; font-size: 15px; gap: 10px; }
  .qa__a::before { width: 32px; height: 32px; font-size: 16px; }
  .qa__pm { right: 12px; }
  .choice--slot span { min-width: 0; }
  .form { box-shadow: 6px 8px 0 var(--ink); border-radius: 28px; }
  .info dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .map { box-shadow: 6px 8px 0 var(--blue); border-radius: 26px; }
  .room picture { aspect-ratio: 4 / 3; border-radius: 26px; }
  .room figcaption { left: 16px; font-size: 13px; }
  .cta__box { grid-template-columns: minmax(0, 1fr); text-align: left; box-shadow: 6px 8px 0 var(--ink); }
  .cta__pipo { width: 96px; }
  .cta__box .btn { width: 100%; }
  .ft__nav ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 20px; }
  .filters { gap: 8px; }
  .filter { min-height: 40px; padding: 6px 14px; font-size: 14px; }
}
@media (max-width: 360px) {
  .hero__title { font-size: 31px; }
  .eyebrow__sep { display: none; }
  .hero__visual > .hero__script { width: 68%; }
  .script .blk { font-size: 11px; white-space: nowrap; }
  .eyebrow { font-size: 12.5px; }
  .btn { padding-inline: 20px; font-size: 16px; }
  .btn--lg { padding-inline: 20px; font-size: 17px; }
  .stat__v .num { font-size: 40px; }
  .course__name { font-size: 24px; }
  .price__v { font-size: 40px; }
  .blk__t { font-size: 12.5px; padding-inline: 8px; }
  .flow__script > .blk, .flow__script > .cblk { font-size: 14px; }
}

/* =========================================================
   動きを減らす設定
   全体の動きを一括で止めるため、個別指定より強い !important をここでだけ使う。
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
  }
  .js .rv, .js .flow__script > *, .js .phone .msg { opacity: 1; transform: none; }
  .ribbon__track { animation: none !important; }
  .work.is-live .work__fx > * { opacity: 0; }
  .shape { transform: none; }
}
