/* Noodles — shared styles for the LP and legal pages.
   Follows the app design system: ink outlines, flat offset shadows,
   chili red / mustard / ink on warm paper with a dot texture, Archivo Black headings. */
:root {
  --bg: #f3e7cd;
  --surface: #fffdf4;
  --surface-2: #ecd9ac;
  --ink: #1d130a;
  --dim: #6d573a;
  --red: #d92b12;
  --red-deep: #a81f08;
  --mustard: #ffb703;
  --white: #ffffff;
  --radius: 14px;
  --font-body: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --font-display: "Archivo Black", "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.8;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(29, 19, 10, 0.09) 1.3px, transparent 1.5px);
  background-size: 16px 16px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.pc { display: inline; }
.hero__sub, .hero__catch, .cta h2 { text-wrap: balance; }
.display { font-family: var(--font-display); font-weight: 400; letter-spacing: .01em; }

/* ---------- red stripe band (the app's signboard header) ---------- */
.stripe {
  height: 18px;
  background: repeating-linear-gradient(-45deg, var(--red) 0 14px, var(--surface) 14px 28px);
  border-block: 4px solid var(--ink);
}
.stripe--move { background-size: 39.6px 39.6px; animation: stripe-move 1.6s linear infinite; }
@keyframes stripe-move { to { background-position: 39.6px 0; } }

.topbar {
  background: var(--red);
  color: var(--white);
  border-bottom: 4px solid var(--ink);
}
.topbar__inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 20px;
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark img { width: 38px; height: 38px; border: 3px solid var(--ink); border-radius: 10px; }
.wordmark__text { font-family: var(--font-display); font-size: 24px; color: var(--ink); text-shadow: 2px 2px 0 var(--red), 4px 4px 0 rgba(255, 183, 3, .45); }
.wordmark__text i { font-style: normal; color: var(--mustard); }
.topbar__link { font-weight: 900; font-size: 14px; text-decoration: none; background: var(--mustard); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 999px; padding: .15em .9em; box-shadow: 3px 3px 0 var(--ink); }

/* ---------- common blocks ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head__en {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(30px, 5.4vw, 48px);
  line-height: 1.1;
  background: var(--surface);
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--ink);
  padding: .15em .6em;
  transform: rotate(-1.5deg);
}
.section-head__ja { margin: 14px 0 0; font-weight: 900; font-size: 17px; }

.box {
  background: var(--surface);
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--ink);
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 9vw, 110px); }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
/* ヒーローのロゴ: 四角いアイコンはアプリアイコンそのまま。ワードマークは「Noodles.」で、
   アプリ側は赤ヘッダー上の白文字のため、LPでは文字を墨色にし影の構成（二重オフセット）だけを合わせている。 */
.hero__logo { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 24px); margin: 0; }
.hero__appicon {
  flex: none;
  width: clamp(78px, 11vw, 106px); height: clamp(78px, 11vw, 106px);
  border: 4px solid var(--ink); border-radius: 24%;
  box-shadow: 6px 6px 0 var(--ink);
  transform: rotate(-3deg);
}
.logo-word {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(52px, 9.5vw, 100px);
  line-height: .95; letter-spacing: -0.01em;
  color: var(--ink);
  text-shadow: 5px 5px 0 var(--red), 10px 10px 0 rgba(255, 183, 3, .45);
}
.logo-word i { font-style: normal; color: var(--mustard); }
.hero__catch { margin: 22px 0 6px; font-size: clamp(24px, 4.2vw, 38px); font-weight: 900; line-height: 1.35; }
.hero__catch mark { background: linear-gradient(transparent 58%, var(--mustard) 58%); color: inherit; padding: 0 .1em; }
.hero__sub { margin: 0 0 26px; font-weight: 700; color: var(--dim); }

.stores { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
/* 公式バッジ画像は各社のガイドラインに従い無加工で使う（枠・影・ホバー変形は付けない） */
.store-badge { position: relative; display: inline-block; line-height: 0; text-decoration: none; }
.store-badge[aria-disabled="true"] { cursor: default; }
.store-badge img { height: 52px; width: auto; display: block; }
.store-badge--lg img { height: 60px; }
.store-badge .soon {
  position: absolute; top: -12px; right: -10px; z-index: 1;
  background: var(--mustard); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 999px;
  font-size: 12px; font-weight: 900; padding: 0 .7em; line-height: 1.6;
  transform: rotate(6deg);
  animation: wobble 2.8s ease-in-out infinite;
}

/* phone + floating record button */
.hero__visual { position: relative; display: flex; justify-content: center; }
.hero__visual .shot { width: min(260px, 70vw); transform: rotate(3deg); }
.rec-btn {
  position: absolute; left: max(0px, calc(50% - 190px)); bottom: 8%;
  width: 104px; height: 104px; border-radius: 50%;
  display: grid; place-items: center; align-content: center;
  background: var(--red); color: var(--white);
  border: 4px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  font-weight: 900; font-size: 14px; line-height: 1.1; text-align: center;
  animation: float 3.6s ease-in-out infinite, pulse 2.4s ease-in-out infinite;
}
.rec-btn b { font-family: var(--font-display); font-weight: 400; font-size: 40px; line-height: .9; }
.rec-btn span { font-size: 13px; line-height: 1.3; }
.sticker {
  position: absolute; right: max(0px, calc(50% - 180px)); top: 4%;
  background: var(--mustard); border: 4px solid var(--ink); border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ink);
  padding: .3em 1em; font-weight: 900; font-size: 15px;
  transform: rotate(10deg);
  animation: bob 4s ease-in-out infinite;
}
.hero__bubbles span {
  position: absolute; border: 4px solid var(--ink); border-radius: 50%; pointer-events: none; z-index: -1;
}
.hero__bubbles span:nth-child(1) { width: 90px; height: 90px; background: var(--mustard); top: 10%; left: -30px; animation: bob 5s ease-in-out infinite; }
.hero__bubbles span:nth-child(2) { width: 54px; height: 54px; background: var(--red); bottom: 12%; right: 4%; animation: bob 4.4s ease-in-out infinite .8s; }
.hero__bubbles span:nth-child(3) { width: 30px; height: 30px; background: var(--surface); top: 22%; right: 42%; animation: bob 3.8s ease-in-out infinite 1.4s; }

@keyframes float { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(2deg); } }
@keyframes bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes pulse { 0%,100% { box-shadow: 5px 5px 0 var(--ink), 0 0 0 0 rgba(217,43,18,.45); } 50% { box-shadow: 5px 5px 0 var(--ink), 0 0 0 16px rgba(217,43,18,0); } }

/* ---------- marquee (ink band) ---------- */
.marquee { overflow: hidden; background: var(--ink); color: var(--mustard); border-block: 4px solid var(--ink); white-space: nowrap; transform: rotate(-1.5deg); margin: 0 -12px; }
.marquee__track { display: inline-flex; gap: 1.1em; padding: .5em 0; font-family: var(--font-display); font-size: clamp(16px, 2.6vw, 24px); animation: marquee 24s linear infinite; }
.marquee__track i { font-style: normal; color: var(--red); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- screenshots ---------- */
.shots { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.shot {
  width: 220px;
  aspect-ratio: 9 / 19.5;
  border: 5px solid var(--ink);
  border-radius: 32px;
  box-shadow: 8px 8px 0 var(--ink);
  background:
    repeating-linear-gradient(-45deg, rgba(29,19,10,.05) 0 10px, transparent 10px 20px),
    var(--surface);
  display: grid; place-items: center;
  overflow: hidden;
}
.shot span { font-family: var(--font-display); font-size: 20px; color: var(--dim); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shots .shot:nth-child(odd) { transform: rotate(-2deg); }
.shots .shot:nth-child(even) { transform: rotate(2deg) translateY(18px); }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; }
.plan { padding: 30px 22px 26px; text-align: center; display: flex; flex-direction: column; position: relative; }
.plan__name { margin: 0; font-size: 19px; font-weight: 900; line-height: 1.4; }
.plan__price { margin: 14px 0 4px; font-family: var(--font-display); font-size: 46px; line-height: 1; }
.plan__price small { font-family: var(--font-body); font-weight: 900; font-size: 15px; margin-left: 2px; }
.plan__type { display: inline-block; margin: 0 auto 16px; font-size: 13px; font-weight: 900; background: var(--surface-2); border: 2px solid var(--ink); border-radius: 999px; padding: 0 .8em; }
.plan ul { list-style: none; margin: 0; padding: 0; text-align: left; font-size: 15px; }
.plan li { padding: 6px 0 6px 28px; position: relative; border-top: 2px dashed var(--surface-2); }
.plan li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 16px; height: 16px; border-radius: 50%; background: var(--mustard); border: 2px solid var(--ink); }
.plan--hot { background: var(--red); color: var(--white); }
.plan--hot .plan__type { color: var(--ink); background: var(--mustard); }
.plan--hot li { border-top-color: rgba(255,255,255,.35); }
.plan--hot li::before { background: var(--white); }
.plan__ribbon {
  position: absolute; top: -16px; left: 50%; translate: -50% 0;
  background: var(--mustard); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 999px; padding: 0 1em;
  font-weight: 900; font-size: 13px; white-space: nowrap; rotate: -3deg;
}
.plans-note { margin: 28px auto 0; max-width: 46em; font-size: 13px; color: var(--dim); }
.plans-note p { margin: 2px 0; }

/* ---------- CTA ---------- */
.cta { text-align: center; padding: clamp(48px, 7vw, 80px) 24px; }
.cta h2 { margin: 0 0 8px; font-size: clamp(24px, 4vw, 34px); font-weight: 900; line-height: 1.4; }
.cta p { margin: 0 0 24px; font-weight: 700; }
.cta .stores { justify-content: center; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--white); padding: 34px 20px 38px; text-align: center; font-size: 14px; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-bottom: 12px; font-weight: 700; }
.footer a { color: var(--mustard); }
.footer p { margin: 4px 0; }
.footer__copy { font-family: var(--font-display); opacity: .75; }

/* =====================================================================
   第2パス追加: できること / ダウンロードCTA / アニメーション
   方針: 動きはCSS中心。モックの「出てくる」動きは .is-in（表示時）にだけ付け、
   既定の見た目＝最終状態にしてあるので、reduced-motion で全停止しても内容は欠けない。
   ===================================================================== */

/* ---------- topbar CTA ---------- */
.topbar__right { display: flex; align-items: center; gap: 10px; }
.topbar__cta {
  font-weight: 900; font-size: 14px; text-decoration: none; white-space: nowrap;
  background: var(--ink); color: var(--white);
  border: 3px solid var(--ink); border-radius: 999px; padding: .15em .9em;
  box-shadow: 3px 3px 0 var(--mustard);
  transition: transform .12s, box-shadow .12s;
}
.topbar__cta:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--mustard); }
.wordmark img { transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.wordmark:hover img { transform: rotate(-12deg) scale(1.1); }

/* ---------- download CTA block (shared) ---------- */
.dl__lead {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  margin: 0 0 18px; font-weight: 900; font-size: clamp(17px, 2.4vw, 20px);
}
.dl__lead--center { justify-content: center; }
.dl__arrow { display: inline-block; color: var(--red); font-family: var(--font-display); animation: nudge 1.4s ease-in-out infinite; }
.free-pill {
  display: inline-block;
  background: var(--red); color: var(--white);
  border: 3px solid var(--ink); border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  padding: .05em .8em; font-size: .9em; line-height: 1.6;
  rotate: -3deg;
}
.free-pill--big { font-size: .7em; vertical-align: .15em; margin-right: .4em; }



/* mid-page band */
.cta-band {
  position: relative; overflow: hidden; text-align: center;
  background: var(--red); color: var(--white);
  border-block: 4px solid var(--ink);
  padding: clamp(48px, 7vw, 80px) 0;
  background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,.07) 0 16px, transparent 16px 32px);
}
.cta-band .stores { justify-content: center; }
.cta-band .store-badge { box-shadow: 5px 5px 0 var(--ink); border-color: var(--ink); }
.cta-band .store-badge:hover { box-shadow: 7px 7px 0 var(--ink); }
.dl__kicker { margin: 0; font-weight: 900; color: var(--mustard); letter-spacing: .06em; }
.dl__title { margin: 6px 0 24px; font-size: clamp(26px, 5vw, 42px); font-weight: 900; line-height: 1.35; text-shadow: 3px 3px 0 var(--ink); }
.dl__title .free-pill { text-shadow: none; background: var(--mustard); color: var(--ink); }
.dl__note { margin: 22px 0 0; font-size: 14px; font-weight: 700; opacity: .95; }
.cta-band__deco span { position: absolute; border: 4px solid var(--ink); border-radius: 50%; background: var(--mustard); }
.cta-band__deco span:nth-child(1) { width: 110px; height: 110px; left: -36px; top: 18%; animation: bob 5s ease-in-out infinite; }
.cta-band__deco span:nth-child(2) { width: 64px; height: 64px; right: 5%; bottom: 14%; background: var(--surface); animation: bob 4.2s ease-in-out infinite .7s; }

/* final CTA */
.cta__box { position: relative; max-width: 760px; padding: 48px 24px 36px; }
.cta__icon { width: 88px; height: 88px; margin: 0 auto 14px; border: 4px solid var(--ink); border-radius: 26%; box-shadow: 4px 4px 0 var(--ink); animation: float 4.5s ease-in-out infinite; }
.steam.cta__steam { left: 50%; top: 2px; translate: -50% 0; }
.cta__note { margin: 18px 0 0 !important; font-size: 13px; color: var(--dim); }

/* sticky dock */
.dock {
  position: fixed; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 50;
  width: min(520px, calc(100% - 24px));
  display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 10px;
  background: var(--surface); color: var(--ink); text-decoration: none;
  border: 4px solid var(--ink); border-radius: 18px; box-shadow: 5px 5px 0 var(--ink);
  translate: -50% 150%; opacity: 0; pointer-events: none;
  transition: translate .4s cubic-bezier(.2, .9, .3, 1.2), opacity .3s;
}
.dock.is-show { translate: -50% 0; opacity: 1; pointer-events: auto; }
.dock img { width: 36px; height: 36px; border: 3px solid var(--ink); border-radius: 10px; flex: 0 0 auto; }
.dock__txt { flex: 1; font-weight: 900; font-size: 14px; line-height: 1.3; }
.dock__txt b { display: block; color: var(--red); font-size: 12px; }
.dock__btn {
  flex: 0 0 auto; background: var(--red); color: var(--white);
  border: 3px solid var(--ink); border-radius: 12px; padding: .45em .9em;
  font-weight: 900; font-size: 13px; box-shadow: 3px 3px 0 var(--ink);
  animation: pulse-sm 2.4s ease-in-out infinite;
}
.js .footer { padding-bottom: 110px; }

/* ---------- hero additions ---------- */
.hero__icon-wrap { position: relative; display: inline-block; }
.hero__icon { transition: rotate .4s cubic-bezier(.3, 1.6, .5, 1); }
.hero__icon:hover { rotate: 8deg; }
.shot--hero { width: min(260px, 70vw); transform: rotate(3deg); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.shot--hero:hover { transform: rotate(-1deg) scale(1.03); }
.stamp-free {
  position: absolute; right: max(0px, calc(50% - 200px)); bottom: 2%;
  width: 92px; height: 92px; display: grid; place-items: center;
  background: var(--mustard); border: 4px solid var(--ink); border-radius: 50%; box-shadow: 4px 4px 0 var(--ink);
}
.stamp-free svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 14s linear infinite; }
.stamp-free text { font-family: var(--font-display); font-size: 12.5px; letter-spacing: .06em; fill: var(--ink); }
.stamp-free b { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1; }

/* steam wisps */
.steam { position: absolute; left: 50%; top: -6px; translate: -50% -100%; display: flex; gap: 10px; pointer-events: none; }
.steam i {
  display: block; width: 8px; height: 34px; border-radius: 99px;
  border: 3px solid var(--ink); border-left-color: transparent; border-bottom-color: transparent;
  opacity: .55; animation: steam 2.8s ease-in-out infinite;
}
.steam i:nth-child(2) { animation-delay: .6s; height: 42px; }
.steam i:nth-child(3) { animation-delay: 1.2s; }
.steam--sm { top: 18%; }
.steam--sm i { width: 6px; height: 22px; border-width: 2.5px; }
.steam--sm i:nth-child(2) { height: 28px; }

/* ---------- できること一覧 ---------- */
.section--tight { padding-bottom: clamp(24px, 4vw, 40px); }
.can { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px; }
.can a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px 8px 8px; text-decoration: none; font-weight: 900; font-size: 15px;
  background: var(--surface); border: 3px solid var(--ink); border-radius: 999px; box-shadow: 4px 4px 0 var(--ink);
  transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), box-shadow .2s;
}
.can a:hover { transform: translate(-2px, -3px) rotate(-2deg); box-shadow: 6px 6px 0 var(--ink); }
.can a:hover .can__ic { animation: boing .5s ease; }
.can__ic { width: 36px; height: 36px; display: grid; place-items: center; font-size: 18px; background: var(--mustard); border: 2px solid var(--ink); border-radius: 50%; }

/* ---------- できること 1機能ずつ ---------- */
.section--fx { padding-top: clamp(32px, 5vw, 56px); }
.fxs { display: grid; gap: clamp(56px, 9vw, 104px); }
.fx { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; scroll-margin-top: 24px; }
.fx:nth-child(even) .fx__visual { order: 2; }
.fx .fx__visual, .js .fx .fx__visual.reveal {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  display: grid; place-items: center; padding: 22px;
  background:
    radial-gradient(rgba(29,19,10,.08) 1.3px, transparent 1.5px) 0 0 / 14px 14px,
    var(--surface);
  rotate: -1.5deg;
  transition: opacity .6s ease, translate .6s cubic-bezier(.2, .9, .3, 1.3), transform .3s cubic-bezier(.3, 1.6, .5, 1), box-shadow .3s;
}
.fx:nth-child(even) .fx__visual { rotate: 1.5deg; }
.fx .fx__visual:hover { transform: rotate(2deg) scale(1.02); box-shadow: 9px 9px 0 var(--ink); }
.fx:nth-child(even) .fx__visual:hover { transform: rotate(-2deg) scale(1.02); }
.img-tag { position: absolute; right: 10px; bottom: 8px; font-size: 11px; font-weight: 900; color: var(--dim); }
.fx__no {
  display: inline-block; font-family: var(--font-display); font-size: 18px;
  background: var(--red); color: var(--white);
  border: 3px solid var(--ink); border-radius: 10px; padding: 0 .55em; box-shadow: 3px 3px 0 var(--ink);
  rotate: -4deg;
}
.fx__text h3 { margin: 14px 0 10px; font-size: clamp(22px, 3.2vw, 30px); font-weight: 900; line-height: 1.4; text-wrap: balance; }
.fx__text p { margin: 0; font-size: 16px; }
.fx__text .note { margin-top: 10px; font-size: 13px; color: var(--dim); }

/* mock parts */
.ln { display: block; height: 10px; width: 100%; border-radius: 99px; background: var(--surface-2); border: 2px solid var(--ink); }
.ln--s { width: 62%; }
.m-btn {
  display: inline-block; font-weight: 900; font-size: 13px; line-height: 1.5;
  background: var(--mustard); border: 3px solid var(--ink); border-radius: 10px; padding: .2em .8em; box-shadow: 3px 3px 0 var(--ink);
}
.m-btn--red { background: var(--red); color: var(--white); }

.m-record { width: min(100%, 340px); display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; }
.m-record__photo { position: relative; aspect-ratio: 1; display: grid; place-items: end center; padding-bottom: 14%; background: var(--surface-2); border: 3px solid var(--ink); border-radius: 14px; }
.bowl { width: 72%; height: 36%; background: var(--red); border: 3px solid var(--ink); border-radius: 6px 6px 50% 50% / 6px 6px 100% 100%; position: relative; }
.bowl::before { content: ""; position: absolute; left: -8%; right: -8%; top: -8px; height: 10px; background: var(--mustard); border: 3px solid var(--ink); border-radius: 99px; }
.m-record__lines { display: grid; gap: 8px; }
.m-record__lines b { font-size: 13px; }
.m-chips { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.m-chips li { font-size: 13px; font-weight: 900; background: var(--surface); border: 2px solid var(--ink); border-radius: 999px; padding: 0 .75em; box-shadow: 2px 2px 0 var(--ink); }
.m-chips li:nth-child(2), .m-chips li:nth-child(3) { background: var(--mustard); }
.is-in .m-chips li { animation: pop .45s cubic-bezier(.3, 1.6, .5, 1) both; }
.is-in .m-chips li:nth-child(1) { animation-delay: .3s; } .is-in .m-chips li:nth-child(2) { animation-delay: .4s; }
.is-in .m-chips li:nth-child(3) { animation-delay: .5s; } .is-in .m-chips li:nth-child(4) { animation-delay: .6s; }
.is-in .m-chips li:nth-child(5) { animation-delay: .7s; }

.m-queue { width: min(100%, 320px); display: grid; gap: 10px; }
.m-queue__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface); border: 3px solid var(--ink); border-radius: 12px; padding: 8px 12px; }
.m-queue__row .m-btn { min-width: 6.5em; text-align: center; }
.m-queue__row time { font-family: var(--font-display); font-size: 22px; }
.m-queue__sum { text-align: center; font-weight: 900; background: var(--ink); color: var(--white); border-radius: 12px; padding: 6px; }
.m-queue__sum b { font-family: var(--font-display); font-weight: 400; color: var(--mustard); font-size: 20px; }
.is-in .m-queue__row time { animation: stamp .4s cubic-bezier(.3, 1.6, .5, 1) both; }
.is-in .m-queue__row:nth-child(1) time { animation-delay: .35s; }
.is-in .m-queue__row:nth-child(2) time { animation-delay: .75s; }
.is-in .m-queue__row:nth-child(3) time { animation-delay: 1.15s; }
.is-in .m-queue__sum { animation: pop .5s 1.5s cubic-bezier(.3, 1.6, .5, 1) both; }

.m-ai { width: min(100%, 340px); display: grid; gap: 12px; }
.m-ai__bar { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 3px solid var(--ink); border-radius: 999px; padding: 6px 6px 6px 16px; }
.m-ai__typing { flex: 1; font-weight: 900; overflow: hidden; white-space: nowrap; border-right: 3px solid var(--red); width: 5.2em; max-width: 5.2em; }
.is-in .m-ai__typing { animation: typing 4s steps(6) infinite, caret .7s step-end infinite; }
.m-ai__go { font-weight: 900; font-size: 13px; background: var(--red); color: var(--white); border: 3px solid var(--ink); border-radius: 999px; padding: .15em .8em; white-space: nowrap; }
.m-ai__result { display: grid; gap: 6px; background: var(--surface); border: 3px solid var(--ink); border-radius: 14px; padding: 12px 14px; box-shadow: 4px 4px 0 var(--ink); }
.m-ai__result .m-btn { justify-self: start; margin-top: 6px; }
.m-ai__label { font-size: 12px; font-weight: 900; color: var(--dim); }
.is-in .m-ai__result { animation: rise .5s .6s cubic-bezier(.3, 1.4, .5, 1) both; }

.m-map {
  position: relative; width: 100%; height: 100%; border: 3px solid var(--ink); border-radius: 12px; overflow: hidden;
  background:
    linear-gradient(var(--surface-2) 2px, transparent 2px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--surface-2) 2px, transparent 2px) 0 0 / 28px 28px,
    #f7efd9;
}
.road { position: absolute; background: var(--white); border: 3px solid var(--ink); }
.road--h { left: -5%; right: -5%; top: 46%; height: 18px; }
.road--v { top: -5%; bottom: -5%; left: 62%; width: 18px; }
.road--d { left: -10%; width: 70%; top: 70%; height: 14px; rotate: -24deg; }
.pin { position: absolute; left: var(--x); top: var(--y); width: 26px; height: 26px; translate: -50% -100%;
  background: var(--red); border: 3px solid var(--ink); border-radius: 50% 50% 50% 0; rotate: -45deg; box-shadow: 2px 2px 0 var(--ink); }
.pin::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--white); border: 2px solid var(--ink); }
.is-in .pin { animation: pin-drop .6s var(--d) cubic-bezier(.3, 1.6, .5, 1) both; }

.m-wish { width: min(100%, 340px); display: grid; gap: 8px; }
.m-wish__filter { display: flex; gap: 6px; margin-bottom: 4px; }
.m-wish__filter span { font-size: 12px; font-weight: 900; border: 2px solid var(--ink); border-radius: 999px; padding: 0 .7em; background: var(--surface); }
.m-wish__filter .on { background: var(--ink); color: var(--mustard); }
.m-wish__row { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 3px solid var(--ink); border-radius: 12px; padding: 10px 12px; }
.m-wish__row .ln { flex: 1; }
.m-wish__row em { font-style: normal; font-size: 12px; font-weight: 900; background: var(--surface-2); border: 2px solid var(--ink); border-radius: 999px; padding: 0 .6em; }
.m-wish__row--go { box-shadow: 4px 4px 0 var(--red); }
.m-wish__row--go .m-btn { font-size: 12px; white-space: nowrap; }
.is-in .m-wish__row { animation: slide-in .5s cubic-bezier(.3, 1.4, .5, 1) both; }
.is-in .m-wish__row:nth-child(2) { animation-delay: .25s; } .is-in .m-wish__row:nth-child(3) { animation-delay: .4s; }
.is-in .m-wish__row:nth-child(4) { animation-delay: .55s; }
.is-in .m-wish__row--go .m-btn { animation: slide-in .5s .55s both, bob 2.4s 1.2s ease-in-out infinite; }

.m-widget { display: grid; gap: 14px; justify-items: center; }
.m-widget__apps { display: flex; gap: 14px; }
.m-widget__apps i { width: 40px; height: 40px; border: 3px solid var(--ink); border-radius: 11px; background: var(--surface-2); }
.m-widget__apps i:nth-child(2) { background: var(--mustard); } .m-widget__apps i:nth-child(4) { background: var(--white); }
.m-widget__card { width: 218px; background: var(--ink); color: var(--white); border: 3px solid var(--ink); border-radius: 18px; overflow: hidden; box-shadow: 5px 5px 0 var(--red); }
.m-widget__head { background: repeating-linear-gradient(-45deg, var(--red) 0 8px, #b52410 8px 16px); padding: 4px 12px; font-weight: 900; font-size: 13px; color: var(--mustard); }
.m-widget__nums { display: flex; justify-content: space-around; padding: 10px 6px 12px; font-weight: 900; font-size: 12px; }
.m-widget__nums b { font-family: var(--font-display); font-weight: 400; font-size: 30px; color: var(--mustard); margin-right: 2px; }
.m-widget__card { animation: float 5s ease-in-out infinite; }

.m-stats { position: relative; width: min(100%, 320px); height: 78%; display: flex; align-items: flex-end; justify-content: space-around; gap: 14px; border-bottom: 4px solid var(--ink); padding-top: 34px; }
.m-stats__col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.m-stats__col b { font-size: 13px; white-space: nowrap; }
.bar { display: block; width: 70%; height: var(--h); background: var(--red); border: 3px solid var(--ink); border-radius: 10px 10px 0 0; transform-origin: bottom; box-shadow: 3px 0 0 var(--ink); }
.m-stats__col:nth-child(2) .bar { background: var(--mustard); }
.m-stats__col:nth-child(3) .bar { background: var(--surface-2); }
.is-in .bar { animation: grow .8s cubic-bezier(.3, 1.4, .5, 1) both; }
.is-in .m-stats__col:nth-child(2) .bar { animation-delay: .15s; } .is-in .m-stats__col:nth-child(3) .bar { animation-delay: .3s; }
.m-stats__inf { position: absolute; top: 0; right: 0; font-size: 12px; font-weight: 900; background: var(--ink); color: var(--mustard); border-radius: 999px; padding: .1em .8em; rotate: 4deg; }

/* screenshots: hover tilt + gentle float */
.shots .shot { transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.shots .shot:hover { transform: rotate(0) translateY(-10px) scale(1.03); }
.shots.is-in .shot { animation: bob 6s ease-in-out infinite; }
.shots.is-in .shot:nth-child(2) { animation-delay: -2s; }
.shots.is-in .shot:nth-child(3) { animation-delay: -4s; }
.js .plan.reveal, .plan { transition: opacity .6s ease, translate .6s cubic-bezier(.2, .9, .3, 1.3), transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.plan:hover { transform: translateY(-6px) rotate(-.8deg); }

/* ---------- parallax (scroll-driven; 対応ブラウザのみ。非対応は静止のまま) ---------- */
@supports (animation-timeline: view()) {
  .hero__bubbles span:nth-child(1) { animation: bob 5s ease-in-out infinite, px-far linear both; animation-timeline: auto, view(); }
  .hero__bubbles span:nth-child(2) { animation: bob 4.4s ease-in-out infinite .8s, px-near linear both; animation-timeline: auto, view(); }
  .hero__bubbles span:nth-child(3) { animation: bob 3.8s ease-in-out infinite 1.4s, px-far linear both; animation-timeline: auto, view(); }
  .px-phone { animation: px-phone linear both; animation-timeline: view(); animation-range: exit; }
  .sticker { animation: bob 4s ease-in-out infinite, px-near linear both; animation-timeline: auto, view(); }
  .stamp-free { animation: px-far linear both; animation-timeline: view(); }
  .cta-band__deco span:nth-child(1) { animation: bob 5s ease-in-out infinite, px-near linear both; animation-timeline: auto, view(); }
  .cta-band__deco span:nth-child(2) { animation: bob 4.2s ease-in-out infinite .7s, px-far linear both; animation-timeline: auto, view(); }
  .fx__visual > [class^="m-"]:not(.m-map) { animation: px-inner linear both; animation-timeline: view(); }
}

/* ---------- keyframes (第2パス) ---------- */
@keyframes spin { to { rotate: 360deg; } }
@keyframes nudge { 0%,100% { translate: 0 0; } 50% { translate: 0 5px; } }
@keyframes wobble { 0%,100% { rotate: 0deg; } 8% { rotate: -10deg; } 16% { rotate: 8deg; } 24% { rotate: 0deg; } }
@keyframes shine { 0%, 55% { background-position: 130% 0; } 100% { background-position: -30% 0; } }
@keyframes pulse-sm { 0%,100% { box-shadow: 3px 3px 0 var(--ink), 0 0 0 0 rgba(217,43,18,.45); } 50% { box-shadow: 3px 3px 0 var(--ink), 0 0 0 10px rgba(217,43,18,0); } }
@keyframes steam { 0% { transform: translateY(8px) scaleY(.7); opacity: 0; } 30% { opacity: .6; } 100% { transform: translateY(-16px) scaleY(1.1) skewX(-10deg); opacity: 0; } }
@keyframes boing { 0% { scale: 1; } 30% { scale: 1.25 .85; } 60% { scale: .9 1.1; } 100% { scale: 1; } }
@keyframes pop { from { scale: .2; opacity: 0; } to { scale: 1; opacity: 1; } }
@keyframes stamp { from { scale: 2.2; opacity: 0; rotate: -12deg; } to { scale: 1; opacity: 1; rotate: 0deg; } }
@keyframes rise { from { translate: 0 24px; opacity: 0; } to { translate: 0 0; opacity: 1; } }
@keyframes slide-in { from { translate: 40px 0; opacity: 0; } to { translate: 0 0; opacity: 1; } }
@keyframes pin-drop { 0% { translate: -50% -260%; opacity: 0; } 60% { opacity: 1; } 100% { translate: -50% -100%; opacity: 1; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes typing { 0% { max-width: 0; } 45%, 85% { max-width: 5.2em; } 100% { max-width: 0; } }
@keyframes caret { 50% { border-right-color: transparent; } }
@keyframes px-far { from { transform: translateY(40px); } to { transform: translateY(-40px); } }
@keyframes px-near { from { transform: translateY(90px); } to { transform: translateY(-90px); } }
@keyframes px-phone { to { transform: translateY(-60px) rotate(-3deg); } }
@keyframes px-inner { from { transform: translateY(14px); } to { transform: translateY(-14px); } }

/* ---------- reveal on scroll (only when JS is running) ---------- */
.js .reveal { opacity: 0; translate: 0 28px; transition: opacity .6s ease, translate .6s cubic-bezier(.2, .9, .3, 1.3); }
.js .reveal.is-in { opacity: 1; translate: 0 0; }

/* ---------- legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 48px 20px 72px; }
.legal__title { margin: 0 0 6px; font-size: clamp(26px, 5vw, 34px); font-weight: 900; line-height: 1.35; }
.legal__meta { margin: 0 0 28px; color: var(--dim); font-size: 14px; }
.legal__body { padding: clamp(20px, 4vw, 40px); box-shadow: 5px 5px 0 var(--ink); }
.legal__body section + section { margin-top: 28px; }
.legal__body h2 { margin: 0 0 6px; font-size: 18px; font-weight: 900; padding-left: 14px; border-left: 6px solid var(--red); line-height: 1.5; }
.legal__body p { margin: 0; font-size: 15px; line-height: 1.95; }
.legal__back { margin-top: 32px; text-align: center; }
.legal__back a { display: inline-block; font-weight: 900; text-decoration: none; background: var(--mustard); border: 3px solid var(--ink); border-radius: 999px; padding: .4em 1.4em; box-shadow: 4px 4px 0 var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__icon { margin: 0 auto; }
  .stores { justify-content: center; }
  .hero__visual { margin-top: 24px; }
  .plans { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; gap: 36px; }
  .pc { display: none; }
  .hero__bubbles span:nth-child(3) { display: none; }
  .hero__visual .shot { width: min(220px, 54vw); }
  .hero__icon-wrap { display: block; width: fit-content; margin: 0 auto; }
  .fx { grid-template-columns: 1fr; gap: 22px; }
  .fx:nth-child(even) .fx__visual { order: 0; }
  .fx__text { text-align: center; }
  .dl__lead { justify-content: center; }
}
@media (max-width: 520px) {
  .shot { width: 42vw; border-radius: 24px; border-width: 4px; }
  .shots { gap: 14px; }
  .rec-btn { width: 84px; height: 84px; font-size: 12px; }
  .rec-btn b { font-size: 32px; }
  .hero__name { -webkit-text-stroke-width: 2px; text-shadow: 4px 4px 0 var(--ink); }
  .stamp-free { width: 74px; height: 74px; }
  .stamp-free text { font-size: 13px; }
  .stamp-free b { font-size: 19px; }
  .topbar__link { display: none; }
  .store-badge, .store-badge--lg { min-width: 0; flex: 1 1 150px; padding: 10px 12px; }
  .store-badge--lg strong { font-size: 18px; }
  .fx .fx__visual, .js .fx .fx__visual.reveal { aspect-ratio: auto; min-height: 240px; }
  .hero__visual .shot--hero { width: min(180px, 46vw); }
  .m-record { grid-template-columns: 96px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; translate: none; }
  .m-ai__typing { max-width: none; width: auto; border-right: 0; }
  .dock { transition: none; }
  html { scroll-behavior: auto; }
}
