/* =========================================================
   NarukeSoft — ステッカーブック
   1本目 cute（地・形・書体）× 2本目 pop（黄色の帯1本・極太の数字・ずらした影のボタン）
   Japan Audio Guide の章だけ、ガイドアプリ本体の濃紺 #0B1F3A と朱 #E8452C を使う
   ========================================================= */
:root {
  --cream: #FFF6E9;
  --ink: #4A2E2A;
  --berry: #F26B7A;
  --butter: #FFD98A;
  --mint: #BFE6D6;
  --yellow: #FFD400;
  --navy: #0B1F3A;
  --shu: #E8452C;
  --white: #FFFFFF;

  --ink-2: rgba(74, 46, 42, .72);
  --line: rgba(74, 46, 42, .14);

  --f-round: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", system-ui, sans-serif;
  --f-pop: "Dela Gothic One", "Zen Maru Gothic", system-ui, sans-serif;
  --f-hand: "Klee One", "Zen Maru Gothic", cursive;

  --ease: cubic-bezier(.22, .9, .3, 1);
  --pon: cubic-bezier(.34, 1.56, .64, 1);
  --shadow: 0 6px 0 rgba(74, 46, 42, .12);
  --pad: clamp(20px, 5vw, 64px);
  --max: 1240px;
  --hd: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
html:not(.rm) { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-round);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.9;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt" 0;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--butter); color: var(--ink); }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; border-radius: 12px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sp { display: none; }
@media (max-width: 640px) { .sp { display: inline; } }

h1, h2, h3, .h-sec, .h-sub {
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: balance;
  line-break: strict;
}

.skip {
  position: fixed; left: 12px; top: -80px; z-index: 200;
  background: var(--ink); color: var(--cream); padding: 12px 20px; border-radius: 999px;
  text-decoration: none; font-weight: 700; transition: top 135ms var(--ease);
}
.skip:focus { top: 12px; }

/* ---------- ボタン（pop：太い縁＋ずらした影、押すと沈む） ---------- */
/* From Uiverse.io by Gautammsharma（button-Gautammsharma_wicked-cobra-3：太い縁とずらした影、押すと沈む）— 色・角・影を定義に合わせて書きかえ */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 0 24px 0 28px;
  border-radius: 999px; border: 3px solid var(--ink);
  font-weight: 700; font-size: 17px; text-decoration: none; letter-spacing: .02em;
  cursor: pointer;
  transition: transform 100ms var(--ease), box-shadow 100ms var(--ease), background-color 135ms;
}
.btn svg { width: 22px; height: 22px; transition: transform 165ms var(--ease); }
.btn-pop { background: var(--yellow); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn-pop:hover { background: var(--butter); }
.btn-pop:hover svg { transform: translateY(3px); }
.btn-pop:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }

/* =========================================================
   開いた瞬間
   ========================================================= */
.intro {
  position: fixed; inset: 0; z-index: 150;
  display: grid; place-items: center; align-content: center; gap: 4px;
  background: var(--cream);
  pointer-events: none;
}
.intro-mochi { width: min(34vw, 180px); animation: introDrop 600ms var(--ease) both; transform-origin: 50% 100%; }
.intro-pon {
  font-family: var(--f-pop); font-size: clamp(40px, 9vw, 72px); line-height: 1; color: var(--ink);
  animation: introPon 335ms var(--pon) 415ms both;
}
@keyframes introDrop {
  0% { transform: translateY(-60vh) scale(.9, 1.1); }
  55% { transform: translateY(0) scale(1.18, .8); }
  72% { transform: translateY(-14px) scale(.95, 1.06); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes introPon { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
html.ready .intro { animation: introOut 465ms var(--ease) both; }
@keyframes introOut { to { clip-path: circle(0% at 50% 46%); } }
html:not(.js) .intro, html.no-intro .intro { display: none; }
.intro { clip-path: circle(150% at 50% 46%); }

/* =========================================================
   ヘッダー
   ========================================================= */
.hd {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--hd);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--pad);
  transition: transform 300ms var(--ease), background-color 200ms, color 200ms;
}
.hd::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--cream); border-bottom: 2px solid var(--line);
  opacity: 0; transition: opacity 200ms;
}
.hd.is-solid::before { opacity: 1; }
.hd.is-hide { transform: translateY(-100%); }
.hd.on-dark { color: var(--cream); }
.hd.on-dark::before { background: var(--navy); border-color: rgba(255, 246, 233, .14); }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo-mark { width: 40px; height: 40px; transition: transform 200ms var(--pon); }
.logo:hover .logo-mark { transform: rotate(-10deg) scale(1.08); }
.logo-word { font-weight: 900; font-size: 21px; letter-spacing: .01em; line-height: 1; white-space: nowrap; }

.nav { display: flex; gap: 4px; }
.nav a {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px; border-radius: 999px;
  text-decoration: none; font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: background-color 135ms;
}
.nav a i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); border: 2px solid currentColor; }
.nav a:hover { background: rgba(74, 46, 42, .07); }
.hd.on-dark .nav a:hover { background: rgba(255, 246, 233, .1); }
.nav a.is-cur { background: var(--ink); color: var(--cream); }
.hd.on-dark .nav a.is-cur { background: var(--cream); color: var(--navy); }

.menu-btn {
  display: none; align-items: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border-radius: 999px;
  border: 3px solid currentColor; background: transparent; cursor: pointer; font-weight: 700;
}
.menu-btn svg { width: 22px; height: 22px; }

.menu {
  position: fixed; inset: 0; z-index: 120; background: var(--cream);
  padding: 96px var(--pad) 40px; overflow-y: auto;
}
.menu-close {
  position: absolute; top: 12px; right: var(--pad);
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px;
  border-radius: 999px; border: 3px solid var(--ink); background: var(--white); font-weight: 700; cursor: pointer;
}
.menu-close svg { width: 22px; height: 22px; }
.menu nav { display: grid; gap: 12px; }
.menu nav a {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 16px; border-radius: 24px; background: var(--white); border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink); text-decoration: none; font-weight: 900; font-size: 20px; line-height: 1.3;
}
.menu nav a svg { width: 72px; height: 72px; flex-shrink: 0; }
.menu nav a small { display: block; font-family: var(--f-pop); font-weight: 400; font-size: 14px; color: var(--ink-2); }
.menu:not([hidden]) nav a { animation: pon 300ms var(--pon) both; animation-delay: calc(var(--d) * 40ms + 55ms); }

@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ステッカーがぽんと弾む（cute の動き） */
@keyframes pon {
  0% { opacity: 0; transform: scale(.6) rotate(var(--r, 0deg)); }
  60% { opacity: 1; transform: scale(1.06) rotate(var(--r, 0deg)); }
  100% { opacity: 1; transform: scale(1) rotate(var(--r, 0deg)); }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--hd) + 24px) var(--pad) 72px;
  display: grid; align-items: center;
  background-image: radial-gradient(rgba(74, 46, 42, .12) 1.6px, transparent 1.8px);
  background-size: 28px 28px;
  background-position: -6px -6px;
}
.hero-in {
  width: 100%; max-width: 1360px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); align-items: center;
  gap: clamp(24px, 4vw, 72px);
}
.hero-k {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 15px; color: var(--ink-2); margin-bottom: 20px;
}
.hero-k::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--berry); }
.h-hero {
  font-weight: 900;
  font-size: clamp(42px, 6.4vw, 108px);
  line-height: 1.12;
  letter-spacing: -.01em;
}
.h-hero .ln { display: block; }
.pon { position: relative; display: inline-block; margin: 0 .08em 0 -.02em; padding: 0 .18em; }
.pon-bg {
  position: absolute; inset: -.06em -.02em -.02em; z-index: -1;
  background: var(--berry); border: .05em solid var(--ink); border-radius: 999px;
  transform: rotate(-4deg); box-shadow: .06em .07em 0 var(--ink);
}
.pon-tx { position: relative; color: var(--white); display: inline-block; }
html.js .pon-bg { transform: rotate(-4deg) scale(0); }
html.ready .pon-bg { animation: ponBg 400ms var(--pon) 500ms both; }
@keyframes ponBg { from { transform: rotate(-30deg) scale(0); } to { transform: rotate(-4deg) scale(1); } }

.hero-lead { margin-top: 28px; max-width: 34em; font-size: clamp(16px, 1.25vw, 18px); line-height: 2; color: var(--ink-2); }
.hero-act { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.hero-hint { font-family: var(--f-hand); font-size: 16px; color: var(--ink-2); display: none; }
@media (pointer: fine) { .hero-hint { display: block; } }

/* 文字がぽんぽん跳ねて出てくる（JS で1字ずつに分ける） */
.ph { display: inline-block; white-space: nowrap; }
html.js [data-pop] .c { display: inline-block; opacity: 0; transform: translateY(.5em) scale(.6); }
html.js [data-pop].is-in .c { animation: chPop 365ms var(--pon) both; animation-delay: calc(var(--i) * 25ms); }
@keyframes chPop { 0% { opacity: 0; transform: translateY(.5em) scale(.6); } 100% { opacity: 1; transform: none; } }

/* ステッカーの台紙 */
.sheet {
  position: relative;
  width: 100%; max-width: 640px; justify-self: center;
  aspect-ratio: 1 / 1;
}
.sheet-paper {
  position: absolute; inset: 2%;
  background: var(--white);
  border-radius: 40px; border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  transform: rotate(2deg);
}
.cut {
  position: absolute; left: calc(var(--x) + 1%); top: calc(var(--y) + 1%); width: calc(var(--w) - 2%); aspect-ratio: 1;
  border-radius: 50%; border: 3px dashed rgba(74, 46, 42, .22);
  transform: rotate(var(--r));
}
.stk {
  --mx: 0px; --my: 0px; --dx: 0px; --dy: 0px; --dr: 0deg; --s: 1;
  position: absolute; left: var(--x); top: var(--y); width: var(--w);
  aspect-ratio: 1; display: block; text-decoration: none;
  transform: translate3d(calc(var(--mx) + var(--dx)), calc(var(--my) + var(--dy)), 0) rotate(calc(var(--r) + var(--dr))) scale(var(--s));
  transition: transform 335ms var(--ease);
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}
.stk > svg { width: 100%; height: 100%; overflow: visible; transition: transform 235ms var(--pon); }
html.js .stk > svg { opacity: 0; }
html.ready .stk > svg { animation: stkIn 365ms var(--pon) both; animation-delay: calc(var(--d) * 60ms + 600ms); }
@keyframes stkIn { 0% { opacity: 0; transform: scale(.4) rotate(-12deg); } 60% { opacity: 1; transform: scale(1.08) rotate(2deg); } 100% { opacity: 1; transform: none; } }
.stk-main:hover > svg { transform: scale(1.05) rotate(-3deg); }
.stk.is-drag { transition: none; z-index: 5; cursor: grabbing; }
.stk.is-drag > svg { transform: scale(1.1); }
.stk.is-bump > svg { animation: bump 300ms var(--pon); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(.88, 1.1); } 70% { transform: scale(1.08, .94); } 100% { transform: scale(1); } }
@media (pointer: fine) { .stk-main { cursor: grab; } }
.tag {
  position: absolute; left: 50%; bottom: -2%;
  translate: -50% 0; rotate: var(--tr);
  background: var(--ink); color: var(--cream);
  font-weight: 700; font-size: clamp(12px, 1.1vw, 15px); line-height: 1; white-space: nowrap;
  padding: 8px 14px 9px; border-radius: 999px; border: 3px solid var(--white);
}
html.js .tag { opacity: 0; }
html.ready .tag { animation: tagIn 265ms var(--ease) both; animation-delay: calc(var(--d) * 60ms + 865ms); }
@keyframes tagIn { from { opacity: 0; translate: -50% 10px; } to { opacity: 1; translate: -50% 0; } }

/* スクロールでステッカーが少し散る */
.hero .sheet { --p: 0; }
.hero .stk { translate: 0 calc(var(--p) * var(--z) * -120px); }

/* =========================================================
   黄色の帯（pop の帯は1本だけ）
   ========================================================= */
.band {
  position: relative; z-index: 3;
  background: var(--yellow);
  border-block: 3px solid var(--ink);
  transform: rotate(-2.4deg);
  margin: -28px -20px 0;
  overflow: hidden;
  padding: 14px 0;
}
.band-track { display: flex; align-items: center; gap: 28px; width: max-content; will-change: transform; padding-left: 28px; }
.band-track span { font-family: var(--f-pop); font-size: clamp(22px, 3vw, 40px); line-height: 1.2; white-space: nowrap; }
.band-track svg { width: clamp(34px, 3.6vw, 52px); height: auto; flex-shrink: 0; }

/* =========================================================
   4人の顔
   ========================================================= */
.hello { position: relative; padding: clamp(112px, 14vw, 200px) var(--pad) clamp(140px, 16vw, 220px); }
.hello-pin { max-width: var(--max); margin: 0 auto; }
.sec-k {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 15px; color: var(--ink-2); margin-bottom: 16px;
}
.sec-k::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--berry); }
.hello-h { font-weight: 900; font-size: clamp(30px, 4.6vw, 64px); line-height: 1.3; max-width: 14em; }

.faces {
  margin-top: clamp(48px, 6vw, 88px);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px;
}
.face { grid-column: span 6; }
.face:nth-child(1) { grid-column: 1 / span 7; }
.face:nth-child(2) { grid-column: 8 / span 5; margin-top: 120px; }
.face:nth-child(3) { grid-column: 2 / span 5; margin-top: -40px; }
.face:nth-child(4) { grid-column: 7 / span 6; margin-top: 64px; }
.face a {
  position: relative; display: flex; align-items: center; gap: clamp(12px, 2vw, 24px);
  text-decoration: none; padding: 16px 0;
}
.face svg { width: clamp(108px, 12vw, 168px); height: auto; flex-shrink: 0; overflow: visible; transition: transform 235ms var(--pon); }
.face:nth-child(odd) svg { rotate: -6deg; }
.face:nth-child(even) svg { rotate: 6deg; }
.face a:hover svg { transform: scale(1.07) rotate(-4deg); }
.face-t { display: block; font-weight: 900; font-size: clamp(20px, 2.3vw, 32px); line-height: 1.45; }
.face-p {
  position: absolute; left: clamp(120px, 14vw, 192px); bottom: -14px;
  font-family: var(--f-pop); font-size: 14px; line-height: 1; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 8px;
}
.face-p::after { content: "→"; font-family: var(--f-round); font-weight: 900; transition: transform 165ms var(--ease); }
.face a:hover .face-p::after { transform: translateX(4px); }
.face a > span:not(.face-p) { display: block; }
html.js .face { opacity: .14; transform: translateY(24px); transition: opacity 335ms var(--ease), transform 400ms var(--ease); }
html.js .face svg { transform: scale(.6); opacity: 0; transition: transform 335ms var(--pon), opacity 200ms; }
html.js .face.on { opacity: 1; transform: none; }
html.js .face.on svg { transform: scale(1); opacity: 1; }
html.js .face.on a:hover svg { transform: scale(1.07) rotate(-4deg); }

/* =========================================================
   章（ステッカーの台紙が重なっていく）
   ========================================================= */
.ch {
  position: relative;
  margin-top: -56px;
  border-radius: 56px 56px 0 0;
  border-top: 3px solid var(--ink);
  padding: clamp(64px, 8vw, 112px) 0 clamp(120px, 12vw, 176px);
}
.ch-guide { z-index: 4; background: var(--navy); color: var(--cream); }
.ch-jobs { z-index: 5; background: var(--butter); }
.ch-age { z-index: 6; background: var(--mint); }
.ch-pon { z-index: 7; background: var(--cream); }
.ch-guide { border-top-color: var(--navy); }

.ch-top {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.ch-id { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); }
.ch-num {
  font-family: var(--f-pop); font-size: clamp(72px, 12vw, 176px); line-height: .9; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.ch-guide .ch-num { color: var(--shu); }
.ch-jobs .ch-num { color: var(--ink); }
.ch-age .ch-num { color: var(--ink); }
.ch-pon .ch-num { color: var(--berry); -webkit-text-stroke: 0; }
.ch-kind { font-weight: 700; font-size: 15px; opacity: .8; }
.ch-name { font-family: var(--f-pop); font-size: clamp(26px, 3.6vw, 52px); line-height: 1.15; word-break: keep-all; }
.ch-badge { width: clamp(96px, 11vw, 150px); flex-shrink: 0; rotate: 8deg; }
.ch-badge svg { overflow: visible; }
html.js .ch-badge { opacity: 0; transform: scale(.5); }
html.js .ch-badge.is-in { animation: pon 335ms var(--pon) both; }

.ch-intro { max-width: var(--max); margin: clamp(40px, 6vw, 80px) auto 0; padding: 0 var(--pad); }
.h-sec { font-weight: 900; font-size: clamp(32px, 5.4vw, 76px); line-height: 1.25; max-width: 15em; }
.h-sub { font-weight: 900; font-size: clamp(30px, 4.4vw, 60px); line-height: 1.25; }
.en-lead { margin-top: 16px; font-weight: 700; font-size: clamp(16px, 1.6vw, 22px); opacity: .7; }
.ch-p { margin-top: 24px; max-width: 36em; font-size: clamp(16px, 1.25vw, 18px); line-height: 2; }
.ch-guide .ch-p { color: rgba(255, 246, 233, .86); }
.ch-note { max-width: var(--max); margin: 16px auto 0; padding: 0 var(--pad); font-size: 13px; opacity: .6; }

/* App Store で販売中（スクロールで回るシール） */
.sale { position: relative; width: clamp(120px, 13vw, 180px); flex-shrink: 0; aspect-ratio: 1; }
.sale-ring { width: 100%; height: 100%; transform: rotate(var(--rot, 0deg)); }
.sale-ring text { font-family: var(--f-round); font-weight: 900; font-size: 17px; letter-spacing: .06em; fill: var(--ink); }
.sale-face { position: absolute; inset: 22%; width: 56%; }
html.js .sale { opacity: 0; transform: scale(.5) rotate(-20deg); }
html.js .sale.is-in { animation: pon 365ms var(--pon) both; }

/* ---------- スクロールで進む舞台（共通） ---------- */
.scrolly { position: relative; --p: 0; }
.pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.caps { position: relative; }
.cap {
  position: absolute; inset: 0 auto auto 0; width: 100%;
  opacity: 0; transform: translateY(24px);
  transition: opacity 300ms var(--ease), transform 365ms var(--ease);
  pointer-events: none;
}
.cap.is-on { opacity: 1; transform: none; }
.cap b { display: block; font-weight: 900; font-size: clamp(26px, 3.4vw, 48px); line-height: 1.35; word-break: keep-all; overflow-wrap: anywhere; }
.cap span { display: block; margin-top: 16px; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.9; opacity: .78; max-width: 26em; }

/* =========================================================
   01 Japan Audio Guide
   ========================================================= */
.ch-guide .scrolly { height: 313svh; margin-top: 40px; }
.guide-pin {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center; gap: 48px;
  max-width: var(--max); margin: 0 auto; padding: var(--hd) var(--pad) 32px;
}
.steps { display: grid; gap: 8px; counter-reset: s; }
.step {
  position: relative; padding: 18px 20px 18px 76px; border-radius: 24px;
  opacity: .38; transition: opacity 265ms var(--ease), background-color 265ms var(--ease);
}
.step.is-on { opacity: 1; background: rgba(255, 246, 233, .07); }
.step-n {
  position: absolute; left: 16px; top: 16px;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--f-pop); font-size: 20px; line-height: 1;
  background: transparent; border: 3px solid currentColor;
  transition: background-color 200ms, color 200ms, transform 265ms var(--pon);
}
.step.is-on .step-n { background: var(--shu); border-color: var(--shu); color: var(--white); transform: scale(1.08) rotate(-6deg); }
.step h3 { font-weight: 900; font-size: clamp(19px, 1.8vw, 24px); line-height: 1.45; }
.step p { margin-top: 6px; font-size: 15px; line-height: 1.85; color: rgba(255, 246, 233, .82); }
.step .step-en { margin-top: 4px; font-weight: 700; font-size: 13px; color: var(--butter); }

.stage { position: relative; display: grid; place-items: center; height: 100%; }
.phone {
  position: relative; z-index: 2;
  height: min(76svh, 640px); aspect-ratio: 9 / 19;
  border-radius: 48px; background: var(--ink);
  padding: 10px; border: 3px solid var(--cream);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, .25);
  transform: rotate(calc(-3deg + var(--p) * 6deg));
}
.phone-in { position: relative; height: 100%; border-radius: 38px; overflow: hidden; background: var(--cream); color: var(--ink); }
.notch { position: absolute; top: 8px; left: 50%; translate: -50% 0; width: 32%; height: 22px; border-radius: 999px; background: var(--ink); z-index: 5; }
.scr {
  position: absolute; inset: 0; padding: 40px 14px 14px;
  opacity: 0; transform: translateY(16px) scale(.98);
  transition: opacity 300ms var(--ease), transform 335ms var(--ease);
  font-size: 12px; line-height: 1.5;
  display: flex; flex-direction: column; gap: 10px;
}
.scr.is-on { opacity: 1; transform: none; }
.app-top { display: flex; align-items: center; justify-content: space-between; }
.app-name { font-family: var(--f-pop); font-size: 11px; color: var(--shu); }
.app-h { font-weight: 900; font-size: 20px; line-height: 1.2; }
.chips { display: flex; gap: 6px; }
.chip { padding: 4px 10px; border-radius: 999px; border: 2px solid var(--ink); font-weight: 700; font-size: 11px; }
.chip.on { background: var(--ink); color: var(--cream); }
.feed { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.feed svg { width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: 14px; border: 2px solid var(--ink); }
.feed-big { grid-column: 1 / -1; position: relative; }
.feed-big svg { aspect-ratio: 4 / 3.4; }
.feed-cap { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; justify-content: space-between; align-items: center; gap: 4px; background: var(--white); border: 2px solid var(--ink); border-radius: 12px; padding: 6px 8px; }
.feed-cap b { font-size: 13px; }
.pinlab { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; font-size: 10px; color: var(--shu); white-space: nowrap; }
.pinlab svg { width: 14px; height: 14px; }
.feed-sm b { display: block; margin-top: 4px; font-size: 11px; }

.shot { position: relative; }
.shot > svg { width: 100%; aspect-ratio: 4 / 3.6; height: auto; border-radius: 16px; border: 2px solid var(--ink); }
.frame { position: absolute; inset: 18% 16%; border: 2px dashed var(--white); border-radius: 8px; }
.frame::before, .frame::after { content: ""; position: absolute; width: 18px; height: 18px; border: 4px solid var(--shu); }
.frame::before { left: -6px; top: -6px; border-right: 0; border-bottom: 0; }
.frame::after { right: -6px; bottom: -6px; border-left: 0; border-top: 0; }
.shot-lab { position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 4px; background: var(--shu); color: var(--white); font-weight: 700; font-size: 11px; padding: 3px 9px 3px 6px; border-radius: 999px; }
.shot-lab svg { width: 14px; height: 14px; }
.grid4 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.grid4 svg { width: 100%; aspect-ratio: 16 / 11; height: auto; border-radius: 10px; border: 2px solid var(--ink); }

.scr:nth-child(4) { padding: 0; gap: 0; }
.hist-hero svg { width: 100%; aspect-ratio: 16 / 11; height: auto; }
.hist { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; border-top: 2px solid var(--ink); flex: 1; }
.hist-k { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 11px; color: var(--shu); }
.hist-k svg { width: 14px; height: 14px; }
.hist-h { font-weight: 900; font-size: 18px; line-height: 1.25; }
.hist-p { font-size: 12px; color: var(--ink-2); }
.player { margin-top: auto; display: flex; align-items: center; gap: 10px; background: var(--navy); color: var(--cream); border-radius: 999px; padding: 6px 12px 6px 6px; }
.play { width: 34px; height: 34px; border-radius: 50%; background: var(--shu); display: grid; place-items: center; flex-shrink: 0; }
.play svg { width: 16px; height: 16px; color: var(--white); }
.wave { flex: 1; display: flex; align-items: center; gap: 3px; height: 26px; }
.wave i { flex: 1; border-radius: 2px; background: var(--cream); opacity: .5; height: 30%; }
.wave i:nth-child(3n) { height: 70%; } .wave i:nth-child(4n) { height: 50%; } .wave i:nth-child(5n) { height: 90%; } .wave i:nth-child(7n) { height: 40%; }
.wave i:nth-child(-n+7) { opacity: 1; background: var(--butter); }
.player-lab { font-weight: 700; font-size: 11px; color: var(--ink-2); text-align: center; }

.map svg { width: 100%; height: auto; aspect-ratio: 5 / 3; border-radius: 16px; border: 2px solid var(--ink); }
.route { stroke-dashoffset: 0; }
.saved { display: grid; gap: 6px; }
.saved li { display: flex; align-items: center; gap: 8px; background: var(--white); border: 2px solid var(--ink); border-radius: 12px; padding: 5px; }
.saved li > svg:first-child { width: 40px; height: 28px; border-radius: 7px; flex-shrink: 0; }
.saved b { flex: 1; font-size: 12px; }
.saved .bm { width: 16px; height: 16px; color: var(--shu); fill: var(--shu); }

/* 端末のまわりのステッカー：章の段階でぽんと貼られる */
.orbit { position: absolute; inset: 0; margin: auto; height: min(76svh, 640px); aspect-ratio: 9 / 13; pointer-events: none; z-index: 3; }
.ob { position: absolute; left: var(--x); top: var(--y); width: var(--w); aspect-ratio: 1; transform: rotate(var(--r)) scale(0); opacity: 0; transition: transform 335ms var(--pon), opacity 165ms; }
.ob svg { width: 100%; height: 100%; overflow: visible; }
.guide-pin[data-step="0"] .ob[data-for="0"],
.guide-pin[data-step="1"] .ob[data-for="1"],
.guide-pin[data-step="2"] .ob[data-for="2"],
.guide-pin[data-step="3"] .ob[data-for="3"] { opacity: 1; transform: rotate(var(--r)) scale(1); }
.guide-pin[data-step="1"] .ob[data-for="0"],
.guide-pin[data-step="2"] .ob[data-for="1"],
.guide-pin[data-step="3"] .ob[data-for="2"] { opacity: 0; transform: rotate(var(--r)) translateY(-40px) scale(.7); }

.dots { position: absolute; bottom: 4px; left: 50%; translate: -50% 0; display: none; gap: 8px; }
.dots li { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 246, 233, .3); transition: background-color 200ms, width 200ms; }
.dots li.on { background: var(--shu); }

/* =========================================================
   02 Jobs AI
   ========================================================= */
.ch-jobs .scrolly { height: 300svh; }
.jobs-pin {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center; gap: 48px;
  max-width: var(--max); margin: 0 auto; padding: var(--hd) var(--pad) 32px;
}
.jobs-pin .caps { height: 260px; }
.big10 { font-family: var(--f-pop); font-style: normal; font-size: 1.9em; line-height: .8; color: var(--berry); margin-right: .06em; -webkit-text-stroke: 0; }

.form-wrap { position: relative; justify-self: center; width: min(100%, 460px); }
.form {
  position: relative;
  background: var(--white); border: 3px solid var(--ink); border-radius: 28px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: 22px 22px 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px;
}
.form-h { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; font-weight: 900; font-size: 18px; }
.form-h small { font-weight: 700; font-size: 12px; opacity: .55; }
.fld { grid-column: 1 / -1; position: relative; }
.fld.half { grid-column: span 1; }
.fld label { display: block; font-weight: 700; font-size: 12px; line-height: 1.4; margin-bottom: 4px; }
/* From Uiverse.io by alexruix（input-alexruix_jolly-emu-80：上にラベル、面の入力欄）— 見本のフォームの見た目だけに使用 */
.box { display: flex; align-items: center; height: 36px; border-radius: 12px; border: 2px solid var(--ink); background: var(--cream); padding: 0 12px; font-weight: 700; font-size: 15px; overflow: hidden; white-space: nowrap; }
/* はがされる欄：はがした跡（点線）が残る */
.fld.drop { --t: clamp(0, (var(--p) - var(--s)) * 9, 1); }
.fld.drop::before {
  content: ""; position: absolute; inset: -3px; border-radius: 14px;
  border: 2px dashed rgba(74, 46, 42, .28);
  opacity: var(--t);
}
.fld.drop > * {
  transform: translate(calc(var(--t) * var(--dx)), calc(var(--t) * var(--t) * 220px)) rotate(calc(var(--t) * var(--rr)));
  opacity: calc(1 - var(--t) * var(--t));
  transform-origin: 0 0;
}
.fld.keep .box { transition: background-color 200ms, box-shadow 200ms; }
.jobs-pin:not([data-stage="0"]) .fld.keep .box { background: var(--white); box-shadow: 0 0 0 4px var(--butter); }
.jobs-pin:not([data-stage="0"]) .fld.keep label { color: var(--berry); }
.caret { width: 2px; height: 20px; background: var(--ink); margin-left: 2px; opacity: 0; }
.jobs-pin[data-stage="1"] .caret { opacity: 1; }
.send {
  grid-column: 1 / -1; margin-top: 6px;
  display: grid; place-items: center; min-height: 48px; border-radius: 999px;
  background: var(--berry); color: var(--white); border: 3px solid var(--ink); font-weight: 900; font-size: 16px;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 135ms var(--ease), box-shadow 135ms;
}
.jobs-pin[data-stage="2"] .send, .jobs-pin[data-stage="3"] .send { transform: translate(3px, 3px); box-shadow: none; }
.done-stamp {
  position: absolute; right: -18px; top: 46%; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px 10px 14px; border-radius: 999px;
  background: var(--berry); color: var(--white); border: 3px solid var(--ink);
  font-weight: 900; font-size: 22px; line-height: 1;
  transform: rotate(-10deg) scale(0); opacity: 0;
  transition: transform 300ms var(--pon), opacity 135ms;
  box-shadow: 4px 4px 0 var(--ink);
}
.done-stamp svg { width: 24px; height: 24px; }
.jobs-pin.is-done .done-stamp { transform: rotate(-10deg) scale(1); opacity: 1; }

.timer {
  position: absolute; left: -56px; top: -40px; z-index: 3;
  width: 128px; aspect-ratio: 1;
  background: var(--white); border: 3px solid var(--ink); border-radius: 50%;
  box-shadow: 4px 4px 0 var(--ink);
  display: grid; place-items: center;
  transform: scale(0) rotate(-20deg); opacity: 0;
  transition: transform 300ms var(--pon), opacity 135ms;
}
.jobs-pin[data-stage="2"] .timer, .jobs-pin[data-stage="3"] .timer { transform: none; opacity: 1; }
.timer svg { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); transform: rotate(-90deg); }
.t-bg { fill: none; stroke: var(--cream); stroke-width: 12; }
.t-fg { fill: none; stroke: var(--berry); stroke-width: 12; stroke-linecap: round; stroke-dasharray: 314.16; stroke-dashoffset: calc(314.16 * (1 - var(--tt, 0))); }
.t-num { position: relative; display: flex; align-items: baseline; gap: 2px; font-family: var(--f-pop); line-height: 1; }
.t-num b { font-weight: 400; font-size: 32px; font-variant-numeric: tabular-nums; }
.t-num small { font-family: var(--f-round); font-weight: 900; font-size: 14px; }

.portal {
  position: absolute; right: -40px; bottom: -48px; z-index: 4;
  width: 230px; padding: 16px 18px;
  background: var(--navy); color: var(--cream);
  border: 3px solid var(--ink); border-radius: 22px;
  box-shadow: 4px 4px 0 var(--ink);
  transform: translateY(40px) rotate(4deg) scale(.8); opacity: 0;
  transition: transform 335ms var(--pon), opacity 200ms;
}
.jobs-pin[data-stage="3"] .portal { transform: rotate(4deg); opacity: 1; }
.portal-h { font-weight: 700; font-size: 13px; opacity: .85; }
.portal ul { margin-top: 8px; display: grid; gap: 4px; }
.portal li { font-weight: 700; font-size: 14px; text-decoration: line-through; text-decoration-color: var(--berry); text-decoration-thickness: 3px; opacity: .55; }
.portal-none b { display: block; margin-top: 6px; font-family: var(--f-pop); font-weight: 400; font-size: 40px; line-height: 1; color: var(--butter); }

/* =========================================================
   03 Age Shoot Maker
   ========================================================= */
.age-letter {
  max-width: var(--max); margin: clamp(40px, 6vw, 80px) auto 0; padding: 0 var(--pad);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center;
}
.age-letter .ch-intro { margin: 0; padding: 0; }
.letter {
  position: relative; justify-self: start;
  background: var(--white); border: 3px solid var(--ink); border-radius: 18px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: clamp(28px, 3.4vw, 44px) clamp(28px, 3.4vw, 48px);
  rotate: -4deg;
  background-image: repeating-linear-gradient(transparent 0 calc(2.1em - 2px), rgba(74, 46, 42, .14) calc(2.1em - 2px) 2.1em);
  background-position: 0 calc(clamp(28px, 3.4vw, 44px) - .25em);
}
.letter::before {
  content: ""; position: absolute; top: -18px; left: 50%; translate: -50% 0;
  width: 96px; height: 30px; background: var(--butter); border: 3px solid var(--ink); border-radius: 6px; rotate: 3deg;
}
.letter-in { display: block; font-family: var(--f-hand); font-weight: 600; font-size: clamp(24px, 2.6vw, 36px); line-height: 2.1; white-space: nowrap; }
html.js .letter { opacity: 0; transform: translateY(30px) rotate(6deg); transition: opacity 335ms var(--ease), transform 465ms var(--pon); }
html.js .letter.is-in { opacity: 1; transform: none; }

.ch-age .scrolly { height: 260svh; margin-top: 24px; }
.age-pin {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center; gap: 48px;
  max-width: var(--max); margin: 0 auto; padding: var(--hd) var(--pad) 32px;
}
.age-pin .caps { height: 260px; }
.card-stage { position: relative; height: min(70svh, 560px); display: grid; place-items: center; }
.sc-tiny {
  position: absolute; width: 100%; max-width: 560px;
  background: var(--white); border: 3px solid var(--ink); border-radius: 16px; padding: 12px;
  box-shadow: 6px 6px 0 var(--ink);
  --z: clamp(0, (var(--p) - .22) * 4, 1);
  transform: scale(calc(1 + var(--z) * 1.6)) rotate(calc(-2deg + var(--z) * 2deg));
  opacity: calc(1 - var(--z) * 1.4);
  transform-origin: 18% 60%;
}
.sc-tiny table { width: 100%; border-collapse: collapse; font-size: 8px; line-height: 1.2; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sc-tiny th, .sc-tiny td { border: 1px solid rgba(74, 46, 42, .25); padding: 4px 1px; text-align: center; font-weight: 500; }
.sc-tiny th { text-align: left; padding-left: 3px; font-size: 7px; }
.sc-big {
  position: relative; z-index: 2;
  width: min(100%, 420px);
  background: var(--white); border: 3px solid var(--ink); border-radius: 32px; padding: 26px 28px 22px;
  box-shadow: 6px 6px 0 var(--ink);
  --z: clamp(0, (var(--p) - .34) * 5, 1);
  transform: translateY(calc((1 - var(--z)) * 60px)) scale(calc(.7 + var(--z) * .3));
  opacity: var(--z);
}
.sc-big-h { display: flex; justify-content: space-between; align-items: center; font-weight: 900; font-size: 26px; line-height: 1.2; }
.sc-big-h .par { background: var(--mint); border: 3px solid var(--ink); border-radius: 999px; padding: 4px 14px; font-size: 20px; }
.sc-big-n { font-family: var(--f-pop); font-size: clamp(110px, 12vw, 160px); line-height: 1; margin: 12px 0 8px; font-variant-numeric: tabular-nums; }
.sc-big-n small { font-family: var(--f-round); font-weight: 900; font-size: 32px; margin-left: 6px; }
.sc-big-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sc-big-row span { display: flex; flex-direction: column; align-items: center; background: var(--cream); border: 3px solid var(--ink); border-radius: 18px; padding: 6px 0 8px; font-family: var(--f-pop); font-size: 34px; line-height: 1.1; }
.sc-big-row small { font-family: var(--f-round); font-weight: 900; font-size: 15px; }
.sc-big-note { margin-top: 10px; font-size: 12px; text-align: right; opacity: .6; }

.green { position: absolute; left: 4%; right: 4%; bottom: -8px; height: 64px; z-index: 3; }
.green-line { position: absolute; left: 0; right: 40px; bottom: 14px; height: 0; border-top: 4px dashed rgba(74, 46, 42, .35); }
.green-flag { position: absolute; right: 0; bottom: 4px; width: 46px; height: auto; overflow: visible; }
.ball {
  --b: clamp(0, (var(--p) - .62) * 3, 1);
  position: absolute; left: 0; bottom: 14px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--ink);
  background-image: radial-gradient(circle at 30% 30%, var(--mint) 2.5px, transparent 3px), radial-gradient(circle at 65% 55%, var(--mint) 2.5px, transparent 3px), radial-gradient(circle at 40% 72%, var(--mint) 2.5px, transparent 3px);
  transform: translateX(calc(var(--b) * var(--gw, 300px))) rotate(calc(var(--b) * 900deg));
}
.age-pin.is-cup .ball { animation: cup 335ms var(--ease) both; }
@keyframes cup { to { transform: translateX(calc(var(--gw, 300px) + 26px)) translateY(10px) scale(.3); opacity: 0; } }
.age-pin.is-cup .green-flag { animation: flagWave 400ms var(--pon) 200ms both; transform-origin: 30% 92%; }
@keyframes flagWave { 0% { transform: none; } 40% { transform: rotate(-10deg) scale(1.15); } 100% { transform: none; } }

.feat3 {
  max-width: var(--max); margin: clamp(56px, 7vw, 96px) auto 0; padding: 0 var(--pad);
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 20px;
}
.feat3 li {
  background: var(--white); border: 3px solid var(--ink); border-radius: 28px; padding: 28px;
  box-shadow: 6px 6px 0 var(--ink);
}
.feat3 li:nth-child(1) { rotate: -1.5deg; }
.feat3 li:nth-child(3) { rotate: 1.5deg; }
.feat-i { width: 64px; height: 64px; margin-bottom: 16px; }
.feat3 h3 { font-weight: 900; font-size: clamp(22px, 2vw, 28px); line-height: 1.4; }
.feat3 p { margin-top: 8px; font-size: 16px; color: var(--ink-2); }
html.js .feat3 li { opacity: 0; transform: translateY(40px) scale(.9); transition: opacity 265ms var(--ease), transform 365ms var(--pon); transition-delay: calc(var(--d) * 60ms); }
html.js .feat3 li.is-in { opacity: 1; transform: none; }

/* =========================================================
   04 ホムペ de ポン
   ========================================================= */
.ch-pon .scrolly { height: 220svh; margin-top: 24px; }
.pon-pin { display: grid; place-items: center; padding: var(--hd) var(--pad) 32px; }
.meter-card {
  position: relative; text-align: center;
  --m: clamp(0, var(--p) / .55, 1);
  --k: clamp(0, (var(--p) - .62) * 6, 1);
  transform: rotate(calc(var(--k) * -6deg)) scale(calc(1 - var(--k) * .12));
  filter: saturate(calc(1 - var(--k) * .8));
  opacity: calc(1 - var(--k) * .55);
}
.meter-k { font-weight: 700; font-size: clamp(16px, 1.6vw, 20px); opacity: .7; }
.meter-m { margin-top: 8px; font-weight: 900; font-size: clamp(22px, 2.6vw, 34px); }
.meter-m b { color: var(--berry); }
.meter-n {
  margin-top: 8px;
  font-family: var(--f-pop); font-size: clamp(64px, 13vw, 200px); line-height: 1; letter-spacing: -.01em;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.meter-y { font-size: .5em; margin-right: .06em; vertical-align: .32em; }
.meter-f { margin-top: 8px; font-weight: 900; font-size: clamp(24px, 3vw, 40px); opacity: clamp(0, (var(--m) - .9) * 10, 1); }
.meter-f b { color: var(--berry); }
.meter-coins { position: absolute; inset: -40px -120px; pointer-events: none; z-index: -1; }
.meter-coins svg {
  position: absolute; width: clamp(56px, 7vw, 96px); height: auto; overflow: visible;
  --c: clamp(0, (var(--m) - var(--i) * .16) * 4, 1);
  opacity: var(--c); transform: translateY(calc((1 - var(--c)) * -80px)) rotate(calc(var(--i) * 37deg - 40deg)) scale(var(--c));
}
.meter-coins svg:nth-child(1) { left: 0; top: 10%; }
.meter-coins svg:nth-child(2) { right: 2%; top: 0; }
.meter-coins svg:nth-child(3) { left: 6%; bottom: 6%; }
.meter-coins svg:nth-child(4) { right: 0; bottom: 18%; }
.meter-coins svg:nth-child(5) { left: 46%; top: -12%; }

.kaikiri {
  position: absolute; left: 50%; top: 50%;
  translate: -50% -50%;
  display: grid; place-items: center;
  width: clamp(240px, 34vw, 440px); aspect-ratio: 1;
  border-radius: 50%; background: var(--berry); color: var(--white);
  border: 4px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
  font-weight: 900; font-size: clamp(48px, 7vw, 96px); line-height: 1;
  transform: rotate(-12deg) scale(0); opacity: 0;
  transition: transform 335ms var(--pon), opacity 135ms;
}
.kaikiri::before { content: ""; position: absolute; inset: 14px; border-radius: 50%; border: 3px dashed rgba(255, 255, 255, .7); }
.pon-pin.is-kai .kaikiri { transform: rotate(-12deg) scale(1); opacity: 1; }
.kaikiri-cap {
  position: absolute; left: 0; right: 0; bottom: 9svh; text-align: center;
  font-weight: 900; font-size: clamp(22px, 2.6vw, 34px);
  opacity: 0; transform: translateY(20px); transition: opacity 265ms var(--ease) 100ms, transform 335ms var(--ease) 100ms;
}
.kaikiri-cap b { color: var(--berry); }
.pon-pin.is-kai .kaikiri-cap { opacity: 1; transform: none; }

/* 自動販売機 */
.vend {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center;
}
.vend-reco {
  margin-top: 32px; display: flex; align-items: center; gap: 24px;
  background: var(--white); border: 3px solid var(--ink); border-radius: 28px; padding: 20px 24px;
  box-shadow: 6px 6px 0 var(--ink); max-width: 420px;
}
.vend-reco p { display: flex; flex-direction: column; line-height: 1.3; }
.vend-reco small { font-weight: 700; font-size: 14px; color: var(--berry); }
.vend-reco b { font-weight: 900; font-size: 22px; }
.vend-reco .price { font-family: var(--f-pop); font-size: 34px; line-height: 1.2; font-variant-numeric: tabular-nums; }

.cube-wrap { width: 96px; height: 96px; perspective: 600px; flex-shrink: 0; }
.cube {
  --s: 64px; position: relative; width: var(--s); height: var(--s); margin: 16px;
  transform-style: preserve-3d;
  transform: rotateX(calc(-22deg + var(--cy, 0deg))) rotateY(calc(35deg + var(--cx, 0deg)));
  transition: transform 135ms linear;
}
.cube i {
  position: absolute; inset: 0; border: 3px solid var(--ink); border-radius: 8px;
  display: flex; flex-direction: column; gap: 4px; padding: 6px;
  backface-visibility: hidden;
}
.cube b { height: 8px; border-radius: 3px; background: var(--ink); opacity: .85; }
.cube s { height: 6px; border-radius: 3px; background: var(--ink); opacity: .3; text-decoration: none; }
.cube u { flex: 1; border-radius: 4px; background: var(--white); border: 2px solid var(--ink); }
.cube .f1 { background: var(--berry); transform: translateZ(calc(var(--s) / 2)); }
.cube .f2 { background: var(--mint); transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.cube .f3 { background: var(--butter); transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.cube .f4 { background: var(--white); transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.cube .f5 { background: var(--butter); transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.cube .f6 { background: var(--ink); transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }

.vm {
  position: relative; justify-self: center; width: min(100%, 540px);
  background: var(--berry); border: 4px solid var(--ink); border-radius: 40px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: 20px 20px 24px;
}
.vm-sign {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--butter); border: 3px solid var(--ink); border-radius: 20px; padding: 8px 16px;
  font-family: var(--f-pop); font-size: clamp(20px, 2.2vw, 28px); line-height: 1.2;
}
.vm-sign svg { width: 40px; height: 40px; }
.vm-glass {
  margin-top: 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  background: var(--cream); border: 3px solid var(--ink); border-radius: 24px; padding: 16px 12px 14px;
}
.slot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.can {
  position: relative; width: 62%; aspect-ratio: 1 / 1.75;
  border: 3px solid var(--ink); border-radius: 14px 14px 12px 12px;
  display: grid; place-items: center;
  transition: transform 235ms var(--pon);
}
.can::before { content: ""; position: absolute; top: -9px; left: 16%; right: 16%; height: 9px; border: 3px solid var(--ink); border-bottom: 0; border-radius: 6px 6px 0 0; background: var(--white); }
.can::after { content: ""; position: absolute; left: 0; right: 0; top: 30%; bottom: 30%; background: var(--white); border-block: 3px solid var(--ink); }
.can span { position: relative; z-index: 1; font-family: var(--f-pop); font-size: clamp(16px, 2vw, 22px); line-height: 1; }
.c1 { background: var(--mint); }
.c3 { background: var(--butter); }
.c5 { background: var(--cream); }
.c3d { background: var(--berry); }
.slot:hover .can { transform: translateY(-4px) rotate(-4deg); }
.vm-b {
  width: 100%; min-height: 64px; border-radius: 18px;
  background: var(--white); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px 2px;
  cursor: pointer; line-height: 1.15;
  transition: transform 80ms var(--ease), box-shadow 80ms var(--ease), background-color 135ms;
}
.vm-b-n { font-weight: 900; font-size: 13px; white-space: nowrap; }
.vm-b-p { font-family: var(--f-pop); font-size: clamp(14px, 1.5vw, 17px); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vm-b:hover { background: var(--butter); }
.vm-b:active, .vm-b.is-press { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); }
.vm-b.is-sel { background: var(--yellow); }
.reco-lamp {
  position: absolute; top: -26px; left: 50%; translate: -50% 0; rotate: 6deg;
  background: var(--ink); color: var(--yellow); font-weight: 900; font-size: 12px; line-height: 1;
  padding: 6px 10px; border-radius: 999px; white-space: nowrap;
}
.vm-lower { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: stretch; }
.vm-disp {
  display: flex; align-items: center; padding: 10px 16px; min-height: 72px;
  background: var(--navy); color: var(--butter); border: 3px solid var(--ink); border-radius: 18px;
  font-weight: 700; font-size: 15px; line-height: 1.45;
}
.vm-tray {
  position: relative; min-height: 72px; overflow: hidden;
  background: var(--ink); border: 3px solid var(--ink); border-radius: 18px;
}
.vm-tray::before { content: ""; position: absolute; inset: 6px; border-radius: 12px; background: rgba(0, 0, 0, .25); }
.tray-can {
  position: absolute; left: 50%; bottom: 8px; width: 100px; height: 46px; translate: -50% 0;
  border: 3px solid var(--ink); border-radius: 12px; background: var(--berry);
  display: grid; place-items: center;
  transform: translateY(-120px) rotate(-30deg); opacity: 0;
}
.tray-can::after { content: ""; position: absolute; top: 3px; bottom: 3px; left: 30%; right: 30%; background: var(--white); border-inline: 3px solid var(--ink); }
.tray-can span { position: relative; z-index: 1; font-family: var(--f-pop); font-size: 16px; }
.tray-can.drop { animation: canDrop 465ms var(--pon) both; }
@keyframes canDrop {
  0% { transform: translateY(-120px) rotate(-30deg); opacity: 1; }
  55% { transform: translateY(6px) rotate(80deg); opacity: 1; }
  75% { transform: translateY(-10px) rotate(92deg); }
  100% { transform: translateY(0) rotate(90deg); opacity: 1; }
}
.tray-can { width: 46px; height: 100px; bottom: -22px; }
.tray-can span { rotate: -90deg; }

/* =========================================================
   OUTRO・フッター
   ========================================================= */
.outro {
  position: relative; z-index: 8; margin-top: -56px;
  background: var(--yellow);
  border-top: 3px solid var(--ink); border-radius: 56px 56px 0 0;
  padding: clamp(120px, 14vw, 200px) var(--pad) clamp(140px, 14vw, 200px);
  text-align: center; overflow: hidden;
}
.outro-stk span { position: absolute; left: var(--x); top: var(--y); width: var(--w); rotate: var(--r); }
.outro-stk svg { overflow: visible; }
html.js .outro-stk span { opacity: 0; transform: scale(.4); transition: opacity 200ms, transform 365ms var(--pon); transition-delay: calc(var(--d) * 60ms); }
.outro.is-in .outro-stk span { opacity: 1; transform: none; }
.outro-in { position: relative; z-index: 1; display: grid; justify-items: center; gap: 32px; }
.outro-mochi { width: clamp(110px, 12vw, 150px); }
.outro-mochi svg { overflow: visible; }
html.js .outro-mochi { opacity: 0; transform: translateY(-80px) scale(.8); }
html.js .outro-mochi.is-in { animation: introDrop 600ms var(--ease) both; opacity: 1; }
.outro-h { font-weight: 900; font-size: clamp(36px, 6.4vw, 96px); line-height: 1.2; max-width: 12em; }

.ft { position: relative; z-index: 9; background: var(--ink); color: var(--cream); padding: 0 var(--pad) 40px; overflow: hidden; }
.ft-word {
  font-family: var(--f-pop); font-size: clamp(64px, 17.4vw, 300px); line-height: 1; letter-spacing: -.02em;
  white-space: nowrap; text-align: center; margin: 0 calc(var(--pad) * -1); padding-top: 48px;
  color: var(--berry);
}
.ft-row { max-width: var(--max); margin: 32px auto 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 24px; border-top: 2px solid rgba(255, 246, 233, .14); }
.ft-nav { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.ft-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 15px; transition: background-color 135ms; }
.ft-nav a:hover { background: rgba(255, 246, 233, .1); }
.ft-c { opacity: .7; }

/* =========================================================
   タブレット・スマホ
   ========================================================= */
@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; }
  .sheet { max-width: 520px; }
  .guide-pin, .jobs-pin, .age-pin { grid-template-columns: 1fr; gap: 16px; align-content: center; }
  .age-letter, .vend { grid-template-columns: 1fr; }
  .feat3 { grid-template-columns: 1fr; max-width: 560px; }
  .faces { grid-template-columns: 1fr; gap: 8px; }
  .face, .face:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
  .face:nth-child(even) a { flex-direction: row-reverse; text-align: right; }
  .face:nth-child(even) .face-p { left: auto; right: clamp(120px, 14vw, 192px); }
}

@media (max-width: 960px) {
  /* 01：端末を主役に、説明は1つずつ */
  .guide-pin { grid-template-rows: auto 1fr; padding-top: calc(var(--hd) + 8px); padding-bottom: 24px; }
  .steps { position: relative; height: 150px; order: 2; }
  .step { position: absolute; inset: 0; padding: 12px 16px 12px 68px; background: rgba(255, 246, 233, .07); opacity: 0; transform: translateY(12px); transition: opacity 265ms var(--ease), transform 300ms var(--ease); }
  .step.is-on { opacity: 1; transform: none; }
  .step-n { left: 12px; top: 12px; width: 40px; height: 40px; font-size: 18px; }
  .stage { order: 1; min-height: 0; }
  .phone { height: min(54svh, 480px); border-radius: 40px; }
  .phone-in { border-radius: 30px; }
  .orbit { height: min(54svh, 480px); }
  .dots { display: flex; bottom: -14px; }

  /* 02 */
  .jobs-pin { grid-template-rows: auto 1fr; align-content: start; padding-top: calc(var(--hd) + 8px); }
  .jobs-pin .caps { height: 128px; }
  .form-wrap { width: min(100%, 380px); align-self: center; }
  .form { padding: 16px 16px 18px; gap: 8px 10px; }
  .box { height: 32px; font-size: 14px; }
  .fld label { font-size: 11px; margin-bottom: 2px; }
  .timer { width: 96px; left: auto; right: -8px; top: -36px; }
  .t-num b { font-size: 24px; }
  .portal { right: auto; left: 50%; bottom: -24px; translate: -50% 0; width: 220px; }
  .done-stamp { right: -6px; font-size: 18px; }

  /* 03 */
  .age-pin { grid-template-rows: auto 1fr; align-content: start; padding-top: calc(var(--hd) + 8px); }
  .age-pin .caps { height: 150px; }
  .card-stage { height: min(52svh, 440px); }
  .letter { justify-self: center; }
}

@media (max-width: 640px) {
  :root { --hd: 64px; }
  .logo-mark { width: 34px; height: 34px; }
  .logo-word { font-size: 19px; }
  .menu-btn { min-height: 44px; padding: 0 14px; }
  .hero { padding-top: calc(var(--hd) + 12px); padding-bottom: 64px; align-items: start; }
  .hero-in { gap: 8px; }
  .hero-k { margin-bottom: 12px; font-size: 14px; }
  .h-hero { font-size: min(12vw, 56px); }
  .sheet { width: 100%; margin-top: 8px; order: 0; }
  .hero-copy { display: contents; }
  .hero-copy > .hero-k { order: -3; }
  .hero-copy > .h-hero { order: -2; }
  .hero-lead { order: 1; margin-top: 16px; }
  .hero-act { order: 2; margin-top: 24px; }
  .btn { width: 100%; justify-content: center; }
  .tag { font-size: 11px; padding: 6px 10px 7px; border-width: 2px; }
  .band { margin-top: -20px; padding: 10px 0; }

  .ch { border-radius: 36px 36px 0 0; margin-top: -36px; }
  .ch-top { gap: 12px; }
  .ch-num { font-size: 64px; }
  .ch-name { font-size: 24px; }
  .ch-kind { font-size: 13px; }
  .ch-badge { width: 80px; }
  .sale { width: 104px; }
  .h-sec { font-size: clamp(28px, 8.4vw, 40px); }
  .cap b { font-size: 24px; }
  .cap span { margin-top: 8px; font-size: 14px; line-height: 1.75; }

  .step h3 { font-size: 18px; }
  .step p { font-size: 14px; }
  .scr { padding: 34px 10px 10px; gap: 8px; }
  .app-h { font-size: 17px; }

  .timer { width: 84px; top: -30px; }
  .t-num b { font-size: 20px; }
  .t-num small { font-size: 12px; }

  .sc-big { padding: 18px 18px 16px; border-radius: 26px; }
  .sc-big-h { font-size: 21px; }
  .sc-big-h .par { font-size: 16px; }
  .sc-big-n { font-size: 96px; }
  .sc-big-row span { font-size: 26px; }
  .sc-tiny { padding: 6px; }
  .sc-tiny table { font-size: 6px; }
  .sc-tiny th { font-size: 5px; }
  .sc-tiny th, .sc-tiny td { padding: 3px 0; }

  .vm { padding: 14px 12px 16px; border-radius: 30px; }
  .vm-glass { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; padding: 24px 12px 14px; }
  .can { width: 46%; }
  .vm-lower { grid-template-columns: 1fr; }
  .vend-reco { gap: 16px; padding: 16px 18px; }
  .vend-reco .price { font-size: 28px; }
  .kaikiri-cap { bottom: 12svh; padding: 0 20px; }
  .meter-coins { inset: -60px -10px; }
  .outro-stk span { width: calc(var(--w) * .62); }
  .outro-stk span:nth-child(1) { top: 3%; }
  .outro-stk span:nth-child(2) { top: 2%; left: 70%; }
  .outro-stk span:nth-child(3) { top: 80%; }
  .outro-stk span:nth-child(4) { top: 80%; left: 70%; }
  .ft-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .h-hero { font-size: 40px; }
  .ch-num { font-size: 56px; }
  .vm-b-n { font-size: 12px; }
}

/* 横長の低い画面（ノートPCで高さが足りないとき） */
@media (min-width: 961px) and (max-height: 760px) {
  .phone, .orbit { height: 70svh; }
  .step { padding-top: 12px; padding-bottom: 12px; }
  .step p { font-size: 14px; }
}

/* =========================================================
   見直し1：章の右側のステッカーの山・タブバーなど
   ========================================================= */
.ch-intro.has-cl { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.cluster { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1; justify-self: end; --p: inherit; }
.cl {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); aspect-ratio: 1;
  transform: translateY(calc((var(--p, .5) - .5) * var(--k) * -110px)) rotate(var(--r));
}
.cl svg { width: 100%; height: 100%; overflow: visible; }
html.js .cluster .cl svg { opacity: 0; }
html.js .cluster.is-in .cl svg { animation: stkIn 365ms var(--pon) both; animation-delay: calc(var(--d) * 75ms); }
.waves { position: absolute; inset: 0; width: 100%; height: 100%; }
.waves path { opacity: 0; }
.cluster.is-in .waves path { animation: wave 335ms var(--ease) both; }
.cluster.is-in .waves path:nth-child(1), .cluster.is-in .waves path:nth-child(3) { animation-delay: 300ms; }
.cluster.is-in .waves path:nth-child(2), .cluster.is-in .waves path:nth-child(4) { animation-delay: 400ms; }
@keyframes wave { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
.waves path { transform-origin: 50% 50%; transform-box: fill-box; }

.ch-sale {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  background: var(--yellow); color: var(--ink); border: 3px solid var(--ink); border-radius: 999px;
  padding: 4px 14px 4px 8px; font-weight: 900; font-size: 15px; line-height: 1.4;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .35);
}
.ch-sale svg { width: 20px; height: 20px; }

.hello-pin { position: relative; }
.hello-mochi { position: absolute; right: 2%; top: -24px; width: clamp(120px, 15vw, 210px); rotate: 10deg; }
.hello-mochi svg { overflow: visible; }
html.js .hello-mochi { opacity: 0; transform: translateY(-60px) scale(.8); }
html.js .hello-mochi.is-in { animation: introDrop 600ms var(--ease) both; opacity: 1; }
.face-t { word-break: keep-all; overflow-wrap: anywhere; }

/* アプリのタブバー（段階と連動） */
.tabs {
  margin-top: auto; display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--line); padding-top: 6px;
}
.tabs span { display: flex; flex-direction: column; align-items: center; gap: 1px; font-weight: 700; font-size: 9px; color: rgba(74, 46, 42, .5); }
.tabs svg { width: 18px; height: 18px; }
.tabs .on { color: var(--shu); }
.scr:nth-child(4) .tabs { margin: 0 14px; padding-bottom: 12px; }
.scr:nth-child(4) .hist { flex: 1; }
.hist .chips { margin-top: 4px; }
.player { margin-top: auto; }

/* 02：段落の大きさと位置 */
.jobs-pin { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.jobs-pin .cap b, .age-pin .cap b { font-size: clamp(26px, 3vw, 44px); }
.timer { width: 140px; left: -64px; top: -48px; }
.t-num b { font-size: 44px; }
.t-num small { font-size: 16px; }
.portal { right: -56px; bottom: 132px; }

/* 03：ボールはスクロールの進みに合わせて転がる */
.ball { --b: clamp(0, var(--p) * 1.04, 1); }

/* 見出しの「ポン」はヒーローと締めで弾む */
html.ready .pon-bg { animation: none; }
html.ready .h-hero .pon-bg { animation: ponBg 400ms var(--pon) 500ms both; }
.outro-h.is-in .pon-bg { animation: ponBg 400ms var(--pon) 335ms both; }
.outro-h .pon { margin: 0 .04em; }

.ft-word { font-size: clamp(56px, 12.6vw, 220px); }

@media (max-width: 960px) {
  .ch-intro.has-cl { grid-template-columns: 1fr; }
  .cluster { max-width: 300px; justify-self: center; margin-top: 8px; }
  .jobs-pin { grid-template-columns: 1fr; }
  .portal { right: auto; bottom: -24px; }
  .timer { width: 96px; left: auto; right: -8px; top: -40px; }
  .t-num b { font-size: 30px; }
  .hello-mochi { top: -56px; width: 110px; }
}
@media (max-width: 640px) {
  .cluster { max-width: 240px; }
  .timer { width: 84px; top: -34px; }
  .t-num b { font-size: 26px; }
  .t-num small { font-size: 12px; }
  .hello-mochi { top: -72px; right: 0; width: 88px; }
  .ch-sale { font-size: 13px; padding: 2px 12px 2px 6px; }
  .tabs svg { width: 16px; height: 16px; }
}

/* 見直し2 */
.face:nth-child(1) { grid-column: 1 / span 6; }
.face:nth-child(2) { grid-column: 7 / span 6; margin-top: 136px; }
.face:nth-child(3) { grid-column: 2 / span 6; margin-top: -24px; }
.face:nth-child(4) { grid-column: 7 / span 6; margin-top: 72px; }
.face-t { font-size: clamp(19px, 2vw, 28px); }
.done-stamp { top: 22px; right: -30px; }
.portal { bottom: 140px; right: -76px; }
.feed-big svg { aspect-ratio: 4 / 4.4; }
.feed svg { aspect-ratio: 16 / 12; }
.hist-hero svg { aspect-ratio: 16 / 13.5; }
@media (max-width: 960px) {
  .face:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
  .done-stamp { top: auto; bottom: 120px; right: -8px; }
  .portal { right: auto; bottom: -24px; }
}
/* 見直し3：スマホ */
.meter-n { font-size: clamp(40px, 12.4vw, 200px); }
@media (max-width: 960px) {
  .portal { top: 96px; bottom: auto; left: 50%; translate: -50% 0; }
  .jobs-pin[data-stage="3"] .portal { transform: rotate(-3deg); }
  .done-stamp { top: auto; bottom: 76px; right: -10px; }
  .phone, .orbit { height: min(58svh, 500px); }
}
/* 見直し4 */
.sheet { max-width: min(700px, 100%); }
@media (max-width: 960px) {
  .guide-pin { grid-template-rows: auto auto; align-content: center; gap: 28px; }
  .stage { height: auto; }
}
/* はみ出し対策：帯は外側で切る */
.band-wrap { position: relative; z-index: 3; overflow: hidden; padding: 48px 0; margin: -76px 0 -48px; pointer-events: none; }
.band { margin: 0 -20px; }
.hero, .ch, .outro, .hello { overflow-x: clip; }
@media (max-width: 640px) { .band-wrap { margin: -68px 0 -48px; } .band { margin: 0 -20px; } }
/* ステッカーブックのインデックスタブ */
.ch::before {
  content: attr(data-tab);
  position: absolute; top: -41px; right: var(--tab-r, 6%);
  height: 44px; padding: 0 20px; display: flex; align-items: center;
  border: 3px solid var(--ink); border-bottom: 0; border-radius: 16px 16px 0 0;
  background: inherit; color: inherit;
  font-family: var(--f-pop); font-size: 14px; line-height: 1; white-space: nowrap;
}
.ch-guide { --tab-r: 6%; }
.ch-jobs { --tab-r: 26%; }
.ch-age { --tab-r: 46%; }
.ch-pon { --tab-r: 66%; }
@media (max-width: 960px) { .ch::before { right: var(--pad); height: 40px; top: -37px; font-size: 12px; padding: 0 14px; } }
/* =========================================================
   動きを減らす設定：全部止めて、最後の状態で並べる
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
html.rm .intro { display: none; }
html.rm .scrolly { height: auto !important; }
html.rm .pin { position: relative; height: auto; overflow: visible; padding-top: 48px; padding-bottom: 48px; }
html.rm .cap, html.rm .step { position: relative; opacity: 1; transform: none; inset: auto; }
html.rm .caps { height: auto !important; display: grid; gap: 24px; }
html.rm .steps { height: auto; }
html.rm [data-pop] .c, html.rm .stk > svg, html.rm .tag, html.rm .face, html.rm .face svg, html.rm .ch-badge, html.rm .sale,
html.rm .letter, html.rm .feat3 li, html.rm .outro-stk span, html.rm .outro-mochi { opacity: 1 !important; transform: none !important; }
html.rm .pon-bg { transform: rotate(-4deg); }
html.rm .scr { position: absolute; }
html.rm .pin.guide-pin .ob { opacity: 1; transform: rotate(var(--r)) scale(1); }
html.rm .jobs-pin .timer, html.rm .jobs-pin .portal, html.rm .jobs-pin .done-stamp { opacity: 1; transform: none; }
html.rm .jobs-pin .portal { position: relative; right: auto; bottom: auto; left: auto; translate: none; margin: 24px auto 0; }
html.rm .jobs-pin .timer { left: auto; right: -8px; }
html.rm .kaikiri { position: relative; left: auto; top: auto; translate: none; transform: rotate(-12deg); opacity: 1; margin: 32px auto 0; }
html.rm .kaikiri-cap { position: relative; bottom: auto; opacity: 1; transform: none; margin-top: 24px; }
html.rm .pon-pin { display: block; text-align: center; }
html.rm .card-stage { height: auto; display: block; }
html.rm .sc-tiny { position: relative; opacity: 1; transform: none; margin-bottom: 24px; }
html.rm .sc-big { opacity: 1; transform: none; margin: 0 auto; }
html.rm .green { position: relative; margin-top: 24px; left: 0; right: 0; }
html.rm .cluster .cl svg, html.rm .waves path, html.rm .hello-mochi { opacity: 1 !important; transform: none !important; }
html.rm .cl { transform: rotate(var(--r)); }

/* =========================================================
   言語切替（JP / EN）— final-a で追加。ヘッダーのナビと同じ丸い札の形
   ========================================================= */
.hd-end { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lang {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px;
  border: 3px solid currentColor; border-radius: 999px;
  font-weight: 900; font-size: 13px; line-height: 1; letter-spacing: .04em;
}
.lang > * {
  display: grid; place-items: center; min-width: 40px; min-height: 36px; padding: 0 8px;
  border-radius: 999px; text-decoration: none; transition: background-color 135ms;
}
.lang [aria-current] { background: var(--ink); color: var(--cream); }
.lang a:hover { background: rgba(74, 46, 42, .1); }
.hd.on-dark .lang [aria-current] { background: var(--cream); color: var(--navy); }
.hd.on-dark .lang a:hover { background: rgba(255, 246, 233, .14); }
/* 幅の狭いスマホ：メニューボタンは絵だけにして、切替の場所をつくる（読み上げ用の名前は残す） */
@media (max-width: 480px) {
  .menu-btn { padding: 0; width: 48px; justify-content: center; }
  .menu-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hd-end { gap: 8px; }
  .lang > * { min-width: 36px; padding: 0 6px; }
}

/* =========================================================
   英語版だけの調整（html[lang="en"]）— 文字の長さに合わせるだけ。形・色・動きは同じ
   ========================================================= */
html[lang="en"] [data-pop] .w { display: inline-block; white-space: nowrap; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3,
html[lang="en"] .h-sec, html[lang="en"] .h-sub, html[lang="en"] .cap b, html[lang="en"] .face-t { overflow-wrap: break-word; }
html[lang="en"] .h-hero { letter-spacing: -.02em; line-height: 1.08; }
html[lang="en"] .h-sec { line-height: 1.15; letter-spacing: -.01em; }
html[lang="en"] .hello-h, html[lang="en"] .outro-h { line-height: 1.15; }
html[lang="en"] .sale-ring text { letter-spacing: .02em; }
html[lang="en"] .kaikiri { font-size: clamp(44px, 6vw, 84px); line-height: 1; text-align: center; }
html[lang="en"] .letter-in { line-height: 2.1; }
html[lang="en"] .face-t { line-height: 1.35; }
html[lang="en"] .cap b { line-height: 1.25; }
html[lang="en"] .cap b, html[lang="en"] .kaikiri-cap, html[lang="en"] .face-t { text-wrap: balance; }
html[lang="en"] .kaikiri-cap b { white-space: nowrap; }
@media (max-width: 640px) {
  html[lang="en"] .meter-f span { display: block; }
}
/* 英語版は「Pon」が見出しの最後の語なので、札が文字と同時に貼られるよう少し遅らせる */
html[lang="en"].ready .h-hero .pon-bg { animation-delay: 900ms; }
html[lang="en"] .outro-h.is-in .pon-bg { animation-delay: 565ms; }
html[lang="en"] .outro-h .ph { display: block; }

/* =========================================================
   ブラッシュアップ（2026-11-29）
   ・既存の動きの時間はすべて 2/3（＝1.5倍速）に一括変更済み（_tools-final-a/speedup.py）
   ・ここから下は新しく足した仕掛けと「ほぐし」。JP / EN 共通
   ========================================================= */
:root { --spring: cubic-bezier(.5, 1.8, .4, .8); }

/* --- バグ直し：登場アニメが終わった後も「最後の形」を握り続け、ホバー・ぽよんが効かなかった --- */
html.ready .stk > svg {
  opacity: 1;
  animation: stkIn 365ms var(--pon) backwards, bob 2.6s ease-in-out infinite;
  animation-delay: calc(var(--d) * 60ms + 600ms), calc(var(--d) * -.37s);
  animation-duration: 365ms, calc(2.2s + var(--d) * .17s);
}
html.ready .stk.is-bump > svg {
  animation: bump 300ms var(--pon), bob 2.6s ease-in-out infinite;
  animation-delay: 0s, calc(var(--d) * -.37s);
  animation-duration: 300ms, calc(2.2s + var(--d) * .17s);
}
html.js .cluster.is-in .cl svg {
  opacity: 1;
  animation: stkIn 365ms var(--pon) backwards, bob 2.8s ease-in-out infinite;
  animation-delay: calc(var(--d) * 75ms), calc(var(--d) * -.6s);
  animation-duration: 365ms, calc(2.4s + var(--d) * .3s);
}
/* ふわふわ浮かぶ（transform とぶつからないよう translate / rotate だけを使う） */
@keyframes bob { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -7px; rotate: 1.6deg; } }
.cluster .cl svg { transition: scale 200ms var(--pon); }
.cluster .cl:hover svg { scale: 1.08; }

/* --- スクロールの進み具合バー --- */
.prog {
  position: fixed; left: 0; top: 0; z-index: 130; width: 100%; height: 5px;
  background: linear-gradient(90deg, var(--berry), var(--yellow) 55%, var(--mint));
  border-radius: 0 999px 999px 0;
  transform-origin: 0 50%; transform: scaleX(0);
  pointer-events: none;
}

/* --- カーソルについてくる、ぷにっとした輪 --- */
.cur {
  position: fixed; left: 0; top: 0; z-index: 300; width: 0; height: 0;
  pointer-events: none; opacity: 0; transition: opacity 135ms;
}
.cur.on { opacity: 1; }
.cur i {
  position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; border-radius: 50%;
  border: 2.5px solid var(--berry); background: rgba(242, 107, 122, 0);
  transition: scale 200ms var(--spring), background-color 135ms, border-color 135ms;
}
.cur.is-hot i { scale: 1.75; background: rgba(242, 107, 122, .16); }
.cur.is-txt i { scale: 2.3; background: rgba(255, 212, 0, .32); border-color: transparent; }
.cur.is-down i { scale: .7; transition-duration: 80ms; }
.cur.is-hot.is-down i { scale: 1.3; }

/* --- クリック・タップのスプリンクル --- */
.spr {
  position: fixed; z-index: 310; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%;
  background: var(--c); box-shadow: 0 0 0 1.5px var(--ink);
  pointer-events: none; rotate: var(--rs);
  animation: spr 420ms cubic-bezier(.2, .8, .3, 1) both;
}
.spr.is-long { width: 14px; height: 5px; margin: -2.5px 0 0 -7px; border-radius: 999px; }
@keyframes spr {
  0% { transform: translate(0, 0) scale(.3); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) scale(1); opacity: 0; }
}

/* --- ボタン：少し傾けておき、触れるとまっすぐ・ふくらむ・吸い寄せられる --- */
.btn {
  transition: transform 100ms var(--ease), box-shadow 100ms var(--ease), background-color 135ms,
    translate 250ms var(--spring), rotate 200ms var(--pon), scale 200ms var(--pon);
}
.btn-pop { rotate: -1.5deg; }
.btn-pop:hover { rotate: 0deg; scale: 1.04; }
.btn-pop:hover svg { animation: arrowBob 330ms var(--ease) infinite alternate; }
@keyframes arrowBob { to { translate: 0 3px; } }
.ft-nav a { transition: background-color 135ms, translate 250ms var(--spring); }

/* --- カードの 3D 傾き（JS が rotate を軸つきで入れる）＋光 --- */
.feat3, .vend, .hero-in { perspective: 1000px; }
.tilt { transition: rotate 300ms var(--ease); }
.tilt.is-tilt { transition-duration: 80ms; }
html.js .feat3 li {
  position: relative;
  transition: opacity 265ms var(--ease), transform 365ms var(--pon), rotate 300ms var(--ease);
  transition-delay: calc(var(--d) * 60ms), calc(var(--d) * 60ms), 0s;
}
html.js .feat3 li.is-tilt { transition-duration: 265ms, 365ms, 80ms; }
.feat3 li::after, .vend-reco::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .7), transparent 55%);
  opacity: 0; transition: opacity 200ms;
}
.feat3 li.is-tilt::after, .vend-reco.is-tilt::after { opacity: 1; }
.vend-reco { position: relative; }

/* --- パララックス（JS が --py を入れる） --- */
.par { translate: 0 var(--py, 0px); }

/* --- 段落：ふわっと持ち上がって出る --- */
html.js .rv-up { opacity: 0; translate: 0 18px; transition: opacity 330ms var(--ease), translate 400ms var(--ease); }
html.js .rv-up.is-in { opacity: 1; translate: 0 0; }

/* --- 大きな見出しの文字：触れると跳ねる、押すと波打つ --- */
@media (pointer: fine) {
  html.js [data-pop].is-in .c { transition: translate 200ms var(--spring), rotate 200ms var(--spring); }
  html.js [data-pop].is-in .c:hover { translate: 0 -.14em; rotate: -8deg; }
}
@keyframes chWave {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  40% { translate: 0 -.22em; rotate: -7deg; }
  70% { translate: 0 .04em; rotate: 3deg; }
}
html.js [data-pop].is-in.is-wave .c {
  animation: chPop 365ms var(--pon) both, chWave 400ms var(--ease);
  animation-delay: calc(var(--i) * 25ms), calc(var(--i) * 22ms);
}
html.js [data-pop].is-in { cursor: pointer; }

/* --- おもち：息をして、カーソルのほうを向く --- */
@keyframes mochiBreath { 0%, 100% { scale: 1 1; } 50% { scale: 1.04 .96; } }
.hello-mochi svg, .outro-mochi svg, .intro-mochi svg {
  transform-origin: 50% 92%;
  animation: mochiBreath 1.8s ease-in-out infinite;
}
.hello-mochi svg, .outro-mochi svg, .hd .logo-mark, .vm-sign svg, .ft .logo-mark {
  rotate: var(--look, 0deg); translate: var(--lookx, 0px) var(--looky, 0px);
  transition: rotate 300ms var(--ease), translate 300ms var(--ease), transform 200ms var(--pon);
}

/* --- 帯：おもちがぴょこぴょこ跳ねる --- */
@keyframes hop { 0%, 100% { translate: 0 0; rotate: -8deg; } 50% { translate: 0 -6px; rotate: 8deg; } }
.band-track svg { animation: hop 800ms ease-in-out infinite; }
.band-track svg:nth-of-type(even) { animation-delay: -400ms; }

/* --- ふにゃっと形の変わる、背景のしずく（有機的な動き） --- */
@keyframes blob {
  0% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; rotate: 0deg; }
  50% { border-radius: 61% 39% 38% 62% / 55% 61% 39% 45%; rotate: 8deg; }
  100% { border-radius: 38% 62% 55% 45% / 62% 38% 62% 38%; rotate: -6deg; }
}
.sheet { isolation: isolate; }
.sheet::before {
  content: ""; position: absolute; inset: -4% -2% -2% 4%; z-index: -1;
  background: var(--butter); opacity: .55;
  animation: blob 5.5s ease-in-out infinite alternate;
}
.outro::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: min(78vw, 920px); aspect-ratio: 1.6; translate: -50% -50%;
  background: var(--white); opacity: .32; pointer-events: none;
  animation: blob 6s ease-in-out infinite alternate;
}
.hello { isolation: isolate; }
.hello::before {
  content: ""; z-index: -1; position: absolute; right: -8vw; top: 28%; width: min(46vw, 560px); aspect-ratio: 1;
  background: var(--mint); opacity: .35; pointer-events: none;
  animation: blob 6.5s ease-in-out infinite alternate-reverse;
}

/* --- ほぐし：遊びのあるズレと傾き --- */
.hero-k, .sec-k { rotate: -1.5deg; transform-origin: 0 50%; }
.ch-num { display: inline-block; rotate: -4deg; }
.ch-pon .ch-num, .ch-jobs .ch-num { rotate: 3deg; }
.ch::before { rotate: var(--tab-rot, 0deg); transform-origin: 50% 100%; }
.ch-guide { --tab-rot: -2deg; }
.ch-jobs { --tab-rot: 1.5deg; }
.ch-age { --tab-rot: -1deg; }
.ch-pon { --tab-rot: 2deg; }
.vend-reco { rotate: -1.5deg; }
.vm { rotate: 1.2deg; }
@media (min-width: 961px) {
  .feat3 li:nth-child(2) { margin-top: 32px; rotate: .8deg; }
  .feat3 li:nth-child(3) { margin-top: -12px; }
}
.face:nth-child(even) .face-t { rotate: .8deg; }
.face:nth-child(odd) .face-t { rotate: -.6deg; }

/* --- 「買い切り」の札：貼られた瞬間に波紋 --- */
.kaikiri::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 4px solid var(--berry); opacity: 0; pointer-events: none;
}
.pon-pin.is-kai .kaikiri::after { animation: ring 465ms var(--ease) 135ms both; }
@keyframes ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.45); } }

/* --- 自動販売機：押すと、ガタッ --- */
.vm.is-shake { animation: vmShake 265ms var(--ease); }
@keyframes vmShake { 20% { translate: -4px 0; } 45% { translate: 4px 0; } 70% { translate: -2px 0; } 100% { translate: 0 0; } }

/* --- ナビ：すべる丸い下地 --- */
.nav { position: relative; }
.nav a { position: relative; z-index: 1; }
.nav.has-blob a:hover { background: transparent; }
.nav.has-blob a.is-cur:hover { background: var(--ink); }
.hd.on-dark .nav.has-blob a.is-cur:hover { background: var(--cream); }
.nav-blob {
  position: absolute; left: 0; top: 0; height: 44px; width: 0; border-radius: 999px; z-index: 0;
  background: rgba(74, 46, 42, .08); opacity: 0; pointer-events: none;
  transition: transform 265ms var(--spring), width 265ms var(--spring), opacity 135ms;
}
.nav-blob.on { opacity: 1; }
.hd.on-dark .nav-blob { background: rgba(255, 246, 233, .12); }

/* --- フッター：大きな「NarukeSoft」はマーキーで流れる --- */
.ft-word.is-marquee { text-align: left; overflow: hidden; }
.ft-track { display: inline-flex; align-items: center; gap: .18em; padding-left: .18em; will-change: transform; }
.ft-track svg { width: .5em; height: auto; flex-shrink: 0; animation: hop 800ms ease-in-out infinite; }
.ft-track svg:nth-of-type(even) { animation-delay: -400ms; }

/* --- フッターのいちばん最後：NarukeSoft のソフトクリーム（ロゴ原画を縮小しただけ） --- */
.ft-cream {
  position: relative; width: fit-content; margin: 48px auto 8px;
  padding: 16px 20px 12px; border-radius: 36px;
  background: var(--cream); border: 5px solid var(--white);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, .28);
  rotate: -4deg; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: rotate 265ms var(--spring), scale 265ms var(--spring);
}
.ft-cream img { width: clamp(132px, 13vw, 176px); height: auto; user-select: none; -webkit-user-drag: none; }
.ft-cream:hover { rotate: 3deg; scale: 1.06; }
html.js .ft-cream { opacity: 0; }
html.js .ft-cream.is-in { opacity: 1; animation: creamIn 400ms var(--pon) backwards, bobY 2.4s ease-in-out 400ms infinite; }
@keyframes bobY { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes creamIn { 0% { opacity: 0; transform: translateY(40px) scale(.5) rotate(-14deg); } 100% { opacity: 1; transform: none; } }
.ft-cream.is-jelly img { animation: jelly 465ms var(--ease); transform-origin: 50% 80%; }
@keyframes jelly {
  0% { transform: scale(1, 1); } 25% { transform: scale(1.12, .88); } 45% { transform: scale(.92, 1.08); }
  65% { transform: scale(1.04, .97); } 100% { transform: scale(1, 1); }
}
/* まわりで、ドット絵のきらきらがまたたく */
.ft-spark {
  position: absolute; left: var(--x); top: var(--y); width: 14px; height: 14px; pointer-events: none;
  background: linear-gradient(var(--c), var(--c)) 50% 50% / 4px 100% no-repeat, linear-gradient(var(--c), var(--c)) 50% 50% / 100% 4px no-repeat;
  animation: twinkle 1.2s steps(2, jump-none) infinite; animation-delay: calc(var(--d) * -300ms);
}
@keyframes twinkle { 0%, 100% { opacity: 1; scale: 1; } 50% { opacity: .25; scale: .6; } }

/* --- 動きを減らす設定：新しい仕掛けも止めて、最後の形で見せる --- */
html.rm .rv-up, html.rm .ft-cream { opacity: 1 !important; translate: none !important; }
html.rm .prog, html.rm .cur, html.rm .spr { display: none; }
html.rm .par { translate: none; }
html.rm .stk > svg, html.rm .cluster .cl svg { opacity: 1; }
/* しずくは、動きを止めても丸い形のまま */
.sheet::before, .outro::before, .hello::before { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
