/* =========================================================
   走れ！クレアちゃん 公式サイト
   テーマ：カラフルな積み木 × パステルのステージ
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* ロゴ・キービジュアルから抽出したカラー */
  --ink: #4a2412;
  --ink-soft: #7a4a32;
  --line: #8b2c0c;
  --line-deep: #5b2510;
  --cream: #fff8e6;
  --paper: #fffdf7;

  --wood: #f8d888;
  --wood-light: #fde8b0;
  --butter: #fbe9b9;

  --yellow: #fbe193;
  --yellow-deep: #f6c443;
  --pink: #fa5a8a;
  --pink-strong: #e8437a;
  --pink-soft: #fa9aba;
  --pink-pale: #ffe3ee;
  --blue: #5ad2fa;
  --blue-soft: #8adafa;
  --blue-deep: #0a9fd6;
  --green: #5cc982;
  --green-soft: #93e3a6;
  --orange: #f88850;
  --orange-soft: #ffc08f;
  --purple: #8a62c2;

  /* ステージ背景色（ゲーム画面より） */
  --stage-green: #bdefba;
  --stage-cyan: #b4e8e4;
  --stage-pink: #ecc8e2;

  --font-body: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", "Meiryo", sans-serif;
  --font-pop: "Mochiy Pop One", "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", sans-serif;
  --font-en: "Fredoka", "M PLUS Rounded 1c", sans-serif;

  --header-h: 64px;
  --gutter: 20px;
  --container: 1120px;
  --radius: 24px;
  --bw: 3px;

  --outline-white: 2px 0 #fff, -2px 0 #fff, 0 2px #fff, 0 -2px #fff, 1.5px 1.5px #fff, -1.5px -1.5px #fff, 1.5px -1.5px #fff, -1.5px 1.5px #fff;
  --outline-line: 2px 0 var(--line), -2px 0 var(--line), 0 2px var(--line), 0 -2px var(--line), 1.5px 1.5px var(--line), -1.5px -1.5px var(--line), 1.5px -1.5px var(--line), -1.5px 1.5px var(--line);
  --outline-deep: 2px 0 var(--line-deep), -2px 0 var(--line-deep), 0 2px var(--line-deep), 0 -2px var(--line-deep), 1.5px 1.5px var(--line-deep), -1.5px -1.5px var(--line-deep), 1.5px -1.5px var(--line-deep), -1.5px 1.5px var(--line-deep);
  --outline-thin: 1.5px 0 var(--line), -1.5px 0 var(--line), 0 1.5px var(--line), 0 -1.5px var(--line), 1px 1px var(--line), -1px -1px var(--line), 1px -1px var(--line), -1px 1px var(--line);

  --wood-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='48' viewBox='0 0 160 48'%3E%3Cg fill='none'%3E%3Cpath d='M0 12Q20 4 40 12T80 12T120 12T160 12' stroke='%23fde8b0' stroke-width='6'/%3E%3Cpath d='M0 34Q20 42 40 34T80 34T120 34T160 34' stroke='%23eec070' stroke-width='2.5' stroke-opacity='.55'/%3E%3C/g%3E%3C/svg%3E");
  --wood-grain-soft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='60' viewBox='0 0 200 60'%3E%3Cg fill='none'%3E%3Cpath d='M0 15Q25 6 50 15T100 15T150 15T200 15' stroke='%23fff3d4' stroke-width='7' stroke-opacity='.75'/%3E%3Cpath d='M0 43Q25 52 50 43T100 43T150 43T200 43' stroke='%23f0cf86' stroke-width='3' stroke-opacity='.28'/%3E%3C/g%3E%3C/svg%3E");
  --pattern-green: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='%23fff' fill-opacity='.42'%3E%3Cg transform='translate(32 32) rotate(15)'%3E%3Ccircle cy='-6' r='6'/%3E%3Ccircle cx='6' r='6'/%3E%3Ccircle cy='6' r='6'/%3E%3Ccircle cx='-6' r='6'/%3E%3C/g%3E%3Cg transform='translate(114 100) rotate(-12) scale(.8)'%3E%3Ccircle cy='-6' r='6'/%3E%3Ccircle cx='6' r='6'/%3E%3Ccircle cy='6' r='6'/%3E%3Ccircle cx='-6' r='6'/%3E%3C/g%3E%3Cpath transform='translate(100 18) rotate(28)' d='M0 10C0 3 6 0 16 0 16 8 10 13 0 10Z'/%3E%3Cpath transform='translate(30 112) rotate(-24) scale(1.2)' d='M0 10C0 3 6 0 16 0 16 8 10 13 0 10Z'/%3E%3C/g%3E%3C/svg%3E");
  --pattern-cyan: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='%23fff' fill-opacity='.45'%3E%3Cpath transform='translate(22 18) rotate(-12)' d='M7 0C7 0 0 9 0 13a7 7 0 0 0 14 0C14 9 7 0 7 0Z'/%3E%3Cpath transform='translate(108 74) rotate(14) scale(1.25)' d='M7 0C7 0 0 9 0 13a7 7 0 0 0 14 0C14 9 7 0 7 0Z'/%3E%3Cpath transform='translate(44 112) scale(.85)' d='M7 0C7 0 0 9 0 13a7 7 0 0 0 14 0C14 9 7 0 7 0Z'/%3E%3Ccircle cx='122' cy='26' r='5'/%3E%3Ccircle cx='134' cy='38' r='3'/%3E%3Ccircle cx='28' cy='80' r='4'/%3E%3C/g%3E%3C/svg%3E");
  --pattern-pink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='%23fff' fill-opacity='.42'%3E%3Cpath transform='translate(18 20) rotate(-14)' d='M10 17.5C3 12 0 8.6 0 5.2 0 2.3 2.3 0 5.1 0 7 0 8.8 1 10 2.7 11.2 1 13 0 14.9 0 17.7 0 20 2.3 20 5.2 20 8.6 17 12 10 17.5Z'/%3E%3Cpath transform='translate(102 86) rotate(12) scale(1.3)' d='M10 17.5C3 12 0 8.6 0 5.2 0 2.3 2.3 0 5.1 0 7 0 8.8 1 10 2.7 11.2 1 13 0 14.9 0 17.7 0 20 2.3 20 5.2 20 8.6 17 12 10 17.5Z'/%3E%3Cpath transform='translate(36 116) rotate(-6) scale(.8)' d='M10 17.5C3 12 0 8.6 0 5.2 0 2.3 2.3 0 5.1 0 7 0 8.8 1 10 2.7 11.2 1 13 0 14.9 0 17.7 0 20 2.3 20 5.2 20 8.6 17 12 10 17.5Z'/%3E%3Cg transform='translate(96 22) rotate(10)'%3E%3Cpath d='M0 0 11 6 0 12ZM24 0 13 6 24 12Z'/%3E%3Ccircle cx='12' cy='6' r='3.4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  --pattern-cream: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='%23f6d98a' fill-opacity='.5'%3E%3Cpath transform='translate(20 22) rotate(-10)' d='M12 2 14.7 8.78 21.99 9.26 16.37 13.92 18.17 20.99 12 17.1 5.83 20.99 7.63 13.92 2.01 9.26 9.3 8.78Z'/%3E%3Cpath transform='translate(104 84) rotate(12) scale(1.3)' d='M12 2 14.7 8.78 21.99 9.26 16.37 13.92 18.17 20.99 12 17.1 5.83 20.99 7.63 13.92 2.01 9.26 9.3 8.78Z'/%3E%3Cpath transform='translate(40 116) scale(.7)' d='M12 2 14.7 8.78 21.99 9.26 16.37 13.92 18.17 20.99 12 17.1 5.83 20.99 7.63 13.92 2.01 9.26 9.3 8.78Z'/%3E%3Ccircle cx='124' cy='28' r='4'/%3E%3C/g%3E%3C/svg%3E");
}

@media (min-width: 860px) {
  :root { --header-h: 76px; --gutter: 32px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  word-break: auto-phrase;
  overflow-wrap: break-word;
}

@media (min-width: 860px) { body { font-size: 17px; } }

body.is-menu-open,
body.is-lock { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
strong { font-weight: 800; }
p { text-wrap: pretty; }
::selection { background: var(--pink-soft); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--blue-deep);
  outline-offset: 3px;
  border-radius: 8px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--paper);
  border: var(--bw) solid var(--line);
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.br-md, .br-sp { display: none; }
@media (min-width: 860px) { .br-md { display: inline; } }
@media (max-width: 599px) { .br-sp { display: inline; } }

.note {
  margin-top: 18px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--paper);
  --btn-fg: var(--line);
  --btn-shadow: var(--line);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: 12px 24px;
  font-family: var(--font-pop);
  font-size: 15px;
  line-height: 1.3;
  color: var(--btn-fg);
  text-decoration: none;
  white-space: nowrap;
  background: var(--btn-bg);
  border: var(--bw) solid var(--line);
  border-radius: 999px;
  box-shadow: 0 5px 0 var(--btn-shadow);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--btn-shadow); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--btn-shadow); }

.btn__icon { width: 1.35em; height: 1.35em; flex: none; }
.btn__icon--after { width: 1.05em; height: 1.05em; }

.btn--steam {
  --btn-bg: var(--pink-strong);
  --btn-fg: #fff;
  text-shadow: 0 2px 0 rgba(91, 37, 16, .45);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 55%);
}
.btn--steam .btn__icon {
  padding: 3px;
  width: 1.7em;
  height: 1.7em;
  color: var(--pink-strong);
  background: #fff;
  border-radius: 50%;
}
.btn--steam:hover { filter: brightness(1.06) saturate(1.05); }

.btn--ghost { --btn-bg: #fff; }
.btn--ghost:hover { --btn-bg: var(--yellow); }

.btn--sm { padding: 8px 16px; font-size: 13.5px; box-shadow: 0 4px 0 var(--btn-shadow); }
.btn--sm:hover { box-shadow: 0 6px 0 var(--btn-shadow); }
.btn--lg { padding: 16px 30px; font-size: clamp(16px, 1.6vw, 19px); }
.btn--xl { padding: 18px 38px; font-size: clamp(17px, 2vw, 22px); box-shadow: 0 7px 0 var(--btn-shadow); }
.btn--xl:hover { box-shadow: 0 9px 0 var(--btn-shadow); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
}
/* 背景は疑似要素に持たせる（ヘッダー本体に backdrop-filter を付けると、
   中の position: fixed なモバイルメニューの基準がヘッダーになってしまうため） */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: rgba(255, 248, 230, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 3px 0 rgba(139, 44, 12, .14), 0 8px 24px rgba(139, 44, 12, .08);
  opacity: 0;
  transition: opacity .3s ease;
}
.site-header.is-scrolled::before,
body.is-menu-open .site-header::before { opacity: 1; }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 calc(var(--gutter) - 6px) 0 var(--gutter);
}

.site-header__logo {
  flex: none;
  width: clamp(110px, 12vw, 150px);
  margin-right: auto;
  opacity: 0;
  transform: translateY(-8px) scale(.9);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.site-header.is-scrolled .site-header__logo,
body.is-menu-open .site-header__logo {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* グローバルナビ（モバイル：全画面メニュー） */
.gnav {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 49;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px var(--gutter) calc(40px + env(safe-area-inset-bottom));
  overflow-y: auto;
  background: var(--cream) var(--pattern-cream);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
body.is-menu-open .gnav {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity .25s ease, transform .25s ease;
}

.gnav__list { display: grid; gap: 12px; }
.gnav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  font-family: var(--font-pop);
  font-size: 18px;
  color: var(--line);
  text-decoration: none;
  background: var(--paper);
  border: var(--bw) solid var(--line);
  border-radius: 18px;
  box-shadow: 0 5px 0 var(--line);
}
.gnav__list li:nth-child(1) .gnav__link { background: var(--pink-pale); }
.gnav__list li:nth-child(2) .gnav__link { background: #dff6f4; }
.gnav__list li:nth-child(3) .gnav__link { background: #f7e5f1; }
.gnav__list li:nth-child(4) .gnav__link { background: #fff3cf; }
.gnav__list li:nth-child(5) .gnav__link { background: #e2f7df; }
.gnav__en {
  order: 2;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--ink-soft);
}
.gnav__steam { align-self: center; margin-top: 8px; padding: 14px 28px; font-size: 16px; }

.site-header__steam { display: none; }

/* スコア表示（ページ内ミニゲーム） */
.score-hud {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 7px;
  background: var(--wood) var(--wood-grain);
  border: var(--bw) solid var(--line);
  border-radius: 12px;
  box-shadow: 0 3px 0 var(--line);
  cursor: help;
  user-select: none;
}
.score-hud__label {
  display: flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 11px;
  line-height: 1;
  color: var(--line);
}
.score-hud__label svg { width: 17px; height: 17px; }
.score-hud__value {
  min-width: 3.2ch;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.2;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--line);
}
.score-hud.is-bump { animation: hud-bump .4s ease; }

/* メニューボタン */
.menu-toggle {
  flex: none;
  display: grid;
  place-items: center;
  gap: 2px;
  width: 52px;
  height: 48px;
  padding: 6px 0 4px;
  background: var(--paper);
  border: var(--bw) solid var(--line);
  border-radius: 14px;
  box-shadow: 0 4px 0 var(--line);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.menu-toggle:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.menu-toggle__bars { position: relative; display: block; width: 22px; height: 14px; }
.menu-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--line);
  border-radius: 3px;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.menu-toggle__bars span:nth-child(1) { top: 0; }
.menu-toggle__bars span:nth-child(2) { top: 5.5px; }
.menu-toggle__bars span:nth-child(3) { top: 11px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(1) { top: 5.5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(3) { top: 5.5px; transform: rotate(-45deg); }
.menu-toggle__label {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: .08em;
  line-height: 1;
  color: var(--line);
}

@media (min-width: 1080px) {
  .site-header__inner { gap: 18px; padding-right: var(--gutter); }
  .menu-toggle { display: none; }
  .site-header__steam { display: inline-flex; }
  .gnav {
    position: static;
    inset: auto;
    flex-direction: row;
    padding: 0;
    overflow: visible;
    background: none;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }
  .gnav__steam { display: none; }
  .gnav__list { display: flex; gap: 2px; }
  .gnav__link {
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding: 6px 12px;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 14.5px;
    line-height: 1.3;
    background: none !important;
    border: 0;
    border-radius: 12px;
    box-shadow: none;
    text-shadow: var(--outline-white);
    transition: background-color .2s, color .2s;
  }
  .gnav__en { order: -1; font-size: 10px; color: var(--pink-strong); text-shadow: none; }
  .gnav__link:hover { color: var(--pink-strong); }
  .gnav__link.is-current { background-color: rgba(255, 255, 255, .7) !important; }
  .site-header.is-scrolled .gnav__link { text-shadow: none; }
  .score-hud { padding: 4px 12px 4px 8px; }
  .score-hud__value { font-size: 21px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + 8px) 0 88px;
}

.hero__bg {
  position: absolute;
  inset: -2%;
  z-index: -2;
  background: #f8d888 url("../img/title-bg.webp") center 30% / cover no-repeat;
  animation: bg-drift 26s ease-in-out infinite alternate;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 42% at 50% 20%, rgba(255, 252, 240, .72), rgba(255, 252, 240, 0) 72%),
    linear-gradient(180deg, rgba(255, 250, 235, .5) 0%, rgba(255, 250, 235, 0) 30%, rgba(255, 250, 235, 0) 75%, rgba(255, 250, 235, .35) 100%);
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* モバイル：ロゴ → キャラ → コピーの順に並べる */
.hero__copy { display: contents; }
.hero__logo { order: 1; }
.hero__visual { order: 2; }
.hero__catch, .hero__genre, .hero__badges, .hero__cta, .hero__platform { order: 3; }

.hero__logo {
  position: relative;
  z-index: 2;
  width: min(88vw, 500px);
  margin-top: 6px;
}
.hero__logo img {
  width: 100%;
  filter: drop-shadow(0 10px 16px rgba(139, 44, 12, .22));
  animation: logo-in .9s cubic-bezier(.2, 1.5, .4, 1) both;
}

.hero__visual {
  position: relative;
  z-index: 1;
  width: 116vw;
  max-width: 760px;
  margin: -8vw 0 -2vw 6vw;
}
.hero__chara { animation: chara-in 1.1s .15s cubic-bezier(.2, .9, .3, 1) both; }
.hero__chara img {
  width: 100%;
  transform-origin: 55% 60%;
  animation: bob 3.2s ease-in-out infinite;
  filter: drop-shadow(0 16px 18px rgba(91, 37, 16, .2));
}

.hero__catch {
  position: relative;
  z-index: 2;
  margin-top: 4px;
  font-family: var(--font-pop);
  font-size: clamp(18px, 5vw, 26px);
  line-height: 1.6;
  text-align: center;
  color: var(--line);
  text-shadow: var(--outline-white), 0 4px 0 rgba(255, 255, 255, .8);
  word-break: auto-phrase;
}

.hero__genre {
  position: relative;
  z-index: 2;
  margin-top: 12px;
  padding: 4px 16px;
  font-weight: 800;
  font-size: clamp(12.5px, 3.4vw, 15px);
  line-height: 1.6;
  color: #fff;
  background: var(--line);
  border-radius: 999px;
}

.hero__badges {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  margin-top: 16px;
}
.badge {
  padding: 5px 13px;
  font-family: var(--font-pop);
  font-size: clamp(12.5px, 3.3vw, 14.5px);
  line-height: 1.5;
  color: var(--line);
  border: var(--bw) solid var(--line);
  border-radius: 12px;
  box-shadow: 0 3px 0 var(--line);
}
.badge--pink { background: var(--pink-soft); transform: rotate(-3deg); }
.badge--blue { background: var(--blue-soft); transform: rotate(2deg); }
.badge--yellow { background: var(--yellow); transform: rotate(-1.5deg); }

.hero__cta {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
}
.hero__platform {
  position: relative;
  z-index: 2;
  margin-top: 14px;
  font-weight: 800;
  font-size: 13px;
  color: var(--ink-soft);
  text-shadow: var(--outline-white);
}

@media (min-width: 860px) {
  .hero {
    display: flex;
    align-items: center;
    min-height: min(100svh, 940px);
    padding: calc(var(--header-h) + 20px) 0 120px;
  }
  .hero__bg::after {
    background:
      radial-gradient(ellipse 48% 60% at 24% 46%, rgba(255, 252, 240, .78), rgba(255, 252, 240, 0) 70%),
      linear-gradient(180deg, rgba(255, 250, 235, .55) 0%, rgba(255, 250, 235, 0) 26%, rgba(255, 250, 235, 0) 78%, rgba(255, 250, 235, .3) 100%);
  }
  .hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
    align-items: center;
    width: 100%;
  }
  .hero__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    z-index: 2;
  }
  .hero__logo { width: min(100%, 580px); margin: 0 0 0 -12px; }
  .hero__catch { text-align: left; margin-top: 6px; }
  .hero__badges, .hero__cta { justify-content: flex-start; }
  .hero__visual {
    width: 132%;
    max-width: none;
    margin: 4% -6% 0 -26%;
  }
}

@media (min-width: 1280px) {
  .hero__visual { width: 128%; margin-left: -22%; }
}

/* ---------- Sections ---------- */
.section {
  --sec-bg: var(--cream);
  position: relative;
  padding: clamp(72px, 9vw, 120px) 0;
  background-color: var(--sec-bg);
}

.section--green { --sec-bg: var(--stage-green); background-image: var(--pattern-green); }
.section--cyan { --sec-bg: var(--stage-cyan); background-image: var(--pattern-cyan); }
.section--pink { --sec-bg: var(--stage-pink); background-image: var(--pattern-pink); }
.section--cream { --sec-bg: #fff6df; background-image: var(--pattern-cream); }
.section--wood { --sec-bg: var(--butter); background-image: var(--wood-grain-soft); background-size: 200px 60px; }

/* 積み木の形（○△□）の区切り線 */
.section--green, .news { --sec-bg: var(--stage-green); }
[class*="edge-"]::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% - 1px);
  height: calc(var(--edge-h) + 1px);
  background-color: var(--sec-bg);
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
  -webkit-mask-position: center bottom;
  mask-position: center bottom;
  pointer-events: none;
}
.edge-circle::before {
  --edge-h: 22px;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='23' viewBox='0 0 44 23'%3E%3Cpath d='M0 23V22a22 22 0 0 1 44 0v1Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='23' viewBox='0 0 44 23'%3E%3Cpath d='M0 23V22a22 22 0 0 1 44 0v1Z'/%3E%3C/svg%3E");
  -webkit-mask-size: 44px 23px;
  mask-size: 44px 23px;
}
.edge-triangle::before {
  --edge-h: 20px;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='21' viewBox='0 0 40 21'%3E%3Cpath d='M0 21v-1L20 0l20 20v1Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='21' viewBox='0 0 40 21'%3E%3Cpath d='M0 21v-1L20 0l20 20v1Z'/%3E%3C/svg%3E");
  -webkit-mask-size: 40px 21px;
  mask-size: 40px 21px;
}
.edge-square::before {
  --edge-h: 16px;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='17' viewBox='0 0 48 17'%3E%3Crect x='11' width='26' height='24' rx='6'/%3E%3Crect y='16' width='48' height='1'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='17' viewBox='0 0 48 17'%3E%3Crect x='11' width='26' height='24' rx='6'/%3E%3Crect y='16' width='48' height='1'/%3E%3C/svg%3E");
  -webkit-mask-size: 48px 17px;
  mask-size: 48px 17px;
}

/* セクション見出し（ゲーム内の木の看板風） */
.sec-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-items: center;
  column-gap: clamp(10px, 3vw, 22px);
  margin-bottom: clamp(36px, 5vw, 56px);
  text-align: center;
}
.sec-head__en {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  z-index: 2;
  margin-bottom: -8px;
  padding: 3px 16px 2px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: .14em;
  color: #fff;
  text-shadow: var(--outline-thin);
  background: var(--accent, var(--pink));
  border: var(--bw) solid var(--line);
  border-radius: 999px;
  box-shadow: 0 3px 0 var(--line);
  transform: rotate(-3deg);
}
.sec-head__ja {
  grid-column: 2;
  grid-row: 2;
  position: relative;
  padding: 16px clamp(30px, 5vw, 46px) 12px;
  font-family: var(--font-pop);
  font-weight: 400;
  font-size: clamp(25px, 4.2vw, 38px);
  line-height: 1.35;
  color: var(--line);
  background: var(--wood) var(--wood-grain);
  border: var(--bw) solid var(--line);
  border-radius: 16px;
  box-shadow: 0 6px 0 var(--line), 0 16px 26px rgba(91, 37, 16, .16);
  text-shadow: 0 2px 0 rgba(255, 255, 255, .6);
}
.sec-head__ja::before,
.sec-head__ja::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -4px;
  background: var(--line);
  border-radius: 50%;
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, .35);
}
.sec-head__ja::before { left: 12px; }
.sec-head__ja::after { right: 12px; }

.sec-head__collect {
  grid-column: 1;
  grid-row: 1 / span 2;
  justify-self: end;
  width: clamp(34px, 5vw, 46px);
  margin-top: 14px;
}
.sec-head__collect--r { grid-column: 3; justify-self: start; }
.sec-head__collect svg { width: 100%; height: auto; aspect-ratio: 1; animation: float 4.2s ease-in-out infinite; }
.sec-head__collect--r svg { animation-duration: 3.6s; animation-delay: -1.2s; }

.section--green { --accent: var(--green); }
.section--cyan { --accent: var(--blue-deep); }
.section--pink { --accent: var(--pink); }
.section--cream { --accent: var(--orange); }
.section--wood { --accent: var(--purple); }

.sec-lead {
  max-width: 760px;
  margin: -12px auto clamp(28px, 4vw, 44px);
  font-weight: 800;
  font-size: clamp(16px, 2vw, 18px);
  text-align: center;
  word-break: auto-phrase;
}

/* ---------- News ---------- */
.news { position: relative; z-index: 3; padding: 0; background-color: var(--sec-bg); background-image: var(--pattern-green); }
.news__box {
  position: relative;
  display: grid;
  gap: 8px 22px;
  max-width: 940px;
  margin: -50px auto 0;
  padding: 18px 20px 16px;
  background: var(--paper);
  border: var(--bw) solid var(--line);
  border-radius: 22px;
  box-shadow: 0 6px 0 var(--line), 0 18px 30px rgba(91, 37, 16, .12);
}
.news__title {
  justify-self: start;
  padding: 2px 14px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .14em;
  line-height: 1.5;
  color: #fff;
  text-shadow: var(--outline-thin);
  background: var(--pink);
  border: var(--bw) solid var(--line);
  border-radius: 999px;
}
.news__item {
  display: grid;
  gap: 0 16px;
  padding: 8px 0;
  font-size: 14.5px;
  line-height: 1.7;
}
.news__item + .news__item { border-top: 2px dashed rgba(139, 44, 12, .2); }
.news__item time {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 14px;
  color: var(--pink-strong);
}
.news__item a { font-weight: 700; text-decoration: none; }
.news__item a:hover { color: var(--pink-strong); text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 700px) {
  .news__box { grid-template-columns: auto 1fr; align-items: start; padding: 18px 28px; }
  .news__title { margin-top: 8px; }
  .news__item { grid-template-columns: 6.4em 1fr; }
}

.section--after-news { padding-top: clamp(56px, 7vw, 96px); }

/* ---------- About ---------- */
.about {
  display: grid;
  gap: 36px;
  align-items: center;
}
.about__text p + p { margin-top: 14px; }
.about__lead {
  margin-bottom: 20px;
  font-family: var(--font-pop);
  font-size: clamp(19px, 2.6vw, 27px);
  line-height: 1.7;
  color: var(--line);
  word-break: auto-phrase;
}
.about__text { font-weight: 700; }

.about__shot {
  position: relative;
  width: calc(100% - 12px);
  max-width: 620px;
  margin: 0 auto;
  transform: rotate(1.6deg);
}
.about__shot img {
  width: 100%;
  border: 5px solid #fff;
  border-radius: 18px;
  outline: var(--bw) solid var(--line);
  box-shadow: 0 8px 0 var(--line), 0 20px 30px rgba(91, 37, 16, .2);
}
.about__shot figcaption {
  position: absolute;
  left: 50%;
  bottom: -18px;
  padding: 4px 18px;
  font-family: var(--font-pop);
  font-size: 14px;
  line-height: 1.6;
  white-space: nowrap;
  color: var(--line);
  background: var(--yellow);
  border: var(--bw) solid var(--line);
  border-radius: 999px;
  transform: translateX(-50%) rotate(-3deg);
}

@media (min-width: 860px) {
  .about { grid-template-columns: 1fr 1fr; gap: 56px; }
}

.features {
  display: grid;
  gap: 64px 28px;
  margin-top: clamp(84px, 9vw, 110px);
}
.feature {
  --accent: var(--pink);
  position: relative;
  padding: 50px 24px 26px;
  text-align: center;
  background: var(--paper);
  border: var(--bw) solid var(--line);
  border-radius: 28px;
  box-shadow: 0 8px 0 var(--line), 0 18px 30px rgba(40, 90, 40, .14);
}
.feature--jump { --accent: var(--orange); }
.feature--craft { --accent: var(--blue-deep); }
.feature__icon {
  position: absolute;
  top: -44px;
  left: 50%;
  width: 84px;
  height: 84px;
  margin-left: -42px;
  filter: drop-shadow(0 6px 0 rgba(139, 44, 12, .28));
  transition: transform .4s cubic-bezier(.2, 1.6, .4, 1);
}
.feature:hover .feature__icon { transform: translateY(-8px) rotate(-10deg) scale(1.06); }
.feature__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
  line-height: 1.2;
}
.feature__en {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 36px;
  letter-spacing: .04em;
  color: var(--accent);
  text-shadow: var(--outline-deep), 0 4px 0 var(--line-deep);
}
.feature__ja {
  margin-top: 8px;
  font-family: var(--font-pop);
  font-weight: 400;
  font-size: 17px;
  color: var(--line);
}
.feature p { font-size: 15px; font-weight: 700; text-align: left; }

@media (max-width: 759px) {
  .features, .steps { max-width: 560px; margin-left: auto; margin-right: auto; }
}
@media (min-width: 760px) {
  .features { grid-template-columns: repeat(3, 1fr); gap: 64px 20px; }
  .feature { padding: 50px 18px 24px; }
}
@media (min-width: 1000px) {
  .features { gap: 64px 28px; }
  .feature { padding: 50px 24px 26px; }
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  gap: 44px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 22px 20px 24px;
  background: var(--paper);
  border: var(--bw) solid var(--line);
  border-radius: 26px;
  box-shadow: 0 8px 0 var(--line), 0 18px 30px rgba(20, 90, 100, .14);
}
.step__num {
  position: absolute;
  top: -22px;
  left: 16px;
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding: 0 14px 2px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.4;
  color: #fff;
  text-shadow: var(--outline-thin);
  background: var(--blue-deep);
  border: var(--bw) solid var(--line);
  border-radius: 14px;
  box-shadow: 0 4px 0 var(--line);
  transform: rotate(-4deg);
}
.step__num span { font-size: 12px; letter-spacing: .1em; }
.step:nth-child(2) .step__num { background: var(--orange); }
.step:nth-child(3) .step__num { background: var(--pink); }

.step__visual {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin: 10px 0 16px;
  border: var(--bw) solid var(--line);
  border-radius: 16px;
}
.step__visual img { width: 100%; height: 100%; object-fit: cover; }
.step__visual--craft {
  display: grid;
  place-items: center;
  background: var(--stage-green) var(--pattern-green);
}
.step__title {
  margin-bottom: 8px;
  font-family: var(--font-pop);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.5;
  color: var(--line);
}
.step p:not(.step__num) { font-size: 15px; font-weight: 700; }

/* 次のステップへの矢印 */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -36px;
  width: 26px;
  height: 22px;
  margin-left: -13px;
  background: var(--line);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .step:not(:last-child)::after {
    left: auto;
    right: -33px;
    top: 50%;
    bottom: auto;
    width: 22px;
    height: 26px;
    margin: -13px 0 0;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
  }
}

/* CRAFT! ボタン（ゲーム内UIをイメージ） */
.craft-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  background: linear-gradient(135deg, #fff3a0, #ffc93c 55%, #ff9f2e);
  border: 4px solid #fff;
  border-radius: 16px;
  outline: var(--bw) solid var(--line);
  transform: rotate(45deg);
  animation: craft-glow 1.6s ease-in-out infinite;
}
.craft-btn__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 17px;
  line-height: 1;
  color: #fff;
  text-shadow: var(--outline-line);
  transform: rotate(-45deg);
}
.craft-btn__inner svg { width: 34px; height: 34px; }

/* ---------- Panel (操作方法・攻略メモ・製品情報) ---------- */
.panel {
  position: relative;
  margin-top: clamp(48px, 6vw, 72px);
  padding: clamp(24px, 4vw, 40px) clamp(18px, 4vw, 40px);
  background: var(--paper);
  border: var(--bw) solid var(--line);
  border-radius: 28px;
  box-shadow: 0 8px 0 var(--line), 0 18px 30px rgba(91, 37, 16, .12);
}
.panel__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-bottom: 22px;
  font-family: var(--font-pop);
  font-weight: 400;
  font-size: clamp(20px, 2.6vw, 25px);
  line-height: 1.4;
  color: var(--line);
}
.panel__title::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  background: var(--accent, var(--pink));
  border: var(--bw) solid var(--line);
  border-radius: 6px;
  transform: rotate(12deg);
}
.panel__title small {
  padding: 2px 12px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 12.5px;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 999px;
}

/* 操作方法 */
.controls__grid {
  display: grid;
  gap: 18px;
}
.control {
  overflow: hidden;
  border: var(--bw) solid var(--line);
  border-radius: 20px;
  background: #fff;
}
.control__name {
  padding: 8px 16px;
  font-family: var(--font-pop);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  text-align: center;
  color: var(--line);
  background: var(--pink-pale);
  border-bottom: var(--bw) solid var(--line);
}
.control--double .control__name { background: #fff1c7; }
.control--craft .control__name { background: #dcf4fb; }

.control__inputs { padding: 6px 16px; }
.control__inputs li {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}
.control__inputs li + li { border-top: 2px dashed rgba(139, 44, 12, .18); }
.control__icon { width: 28px; height: 28px; color: var(--line); }
.mouse-l { --ml: var(--pink); }
.mouse-r { --mr: var(--pink); }
.control__type { font-size: 13px; font-weight: 800; color: var(--ink-soft); }
.control__key { font-family: var(--font-pop); font-size: 15px; color: var(--line); }

.key {
  display: inline-block;
  min-width: 2.6em;
  padding: 3px 10px;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  color: var(--line);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 3px 0 var(--line);
}
.key--wide { min-width: 6.2em; }

.pad {
  display: inline-grid;
  place-items: center;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  color: #fff;
  border: 2px solid var(--line);
  box-shadow: 0 3px 0 var(--line);
}
.pad--a { width: 34px; height: 34px; background: #3fbf5f; border-radius: 50%; }
.pad--rb { height: 30px; padding: 0 12px; background: #5b5b6b; border-radius: 12px 12px 7px 7px; }

.control__double {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 150px;
  padding: 18px 16px 20px;
  text-align: center;
}
.control__double-icon {
  width: 54px;
  height: 54px;
  color: var(--orange);
  filter: drop-shadow(2px 2px 0 var(--line));
  animation: double-jump 1.6s ease-in-out infinite;
}
.control__double p { font-weight: 800; font-size: 15px; line-height: 1.7; }
.control__double strong { font-family: var(--font-pop); font-weight: 400; font-size: 17px; color: var(--line); }

@media (min-width: 860px) {
  .controls__grid { grid-template-columns: repeat(3, 1fr); }
  .control__double { min-height: calc(100% - 46px); }
}

/* 攻略メモ */
.tips { --accent: var(--yellow-deep); }
.controls { --accent: var(--blue); }

.score-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 2vw, 20px);
}
.score-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 16px 8px 14px;
  text-align: center;
  background: #fffaf0;
  border: var(--bw) dashed rgba(139, 44, 12, .45);
  border-radius: 20px;
  transition: transform .2s ease, background-color .2s ease;
}
.score-item:hover { transform: translateY(-3px); background: #fff3d6; }
.score-item__icon {
  width: clamp(48px, 9vw, 72px);
  height: clamp(48px, 9vw, 72px);
  object-fit: contain;
  transition: transform .3s cubic-bezier(.2, 1.6, .4, 1);
}
.score-item:hover .score-item__icon { transform: rotate(-8deg) scale(1.08); }
.score-item__name { font-weight: 800; font-size: clamp(13px, 2.4vw, 15px); }
.score-item__pt {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(24px, 4.6vw, 34px);
  line-height: 1.1;
  color: var(--pink);
  text-shadow: var(--outline-deep), 0 3px 0 var(--line-deep);
}
.score-item__pt small { margin-left: 2px; font-size: .55em; }
.score-item.is-collected::after {
  content: "GET!";
  position: absolute;
  top: 8px;
  right: 6px;
  padding: 1px 8px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.5;
  color: #fff;
  text-shadow: var(--outline-thin);
  background: var(--green);
  border: 2px solid var(--line);
  border-radius: 999px;
  transform: rotate(10deg);
  animation: stamp .35s cubic-bezier(.2, 1.8, .4, 1) both;
}

.tips__list { display: grid; gap: 14px; margin-top: 24px; }
.tip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.7;
  background: #fff;
  border: 2px solid rgba(139, 44, 12, .25);
  border-radius: 16px;
}
.tip__icon {
  flex: none;
  width: 48px;
  height: 48px;
  padding: 9px;
  color: var(--line);
  border: var(--bw) solid var(--line);
  border-radius: 50%;
}
.tip__icon--burst { color: #fff; background: var(--orange); }
.tip__icon--warn { padding: 8px; background: #fff; }

.tips__hint {
  display: table;
  margin: 22px auto 0;
  padding: 6px 16px;
  font-weight: 800;
  font-size: 13.5px;
  line-height: 1.6;
  text-align: center;
  color: var(--line);
  background: var(--pink-pale);
  border-radius: 14px;
}

@media (min-width: 860px) {
  .tips__list { grid-template-columns: 1fr 1fr; }
}

/* ---------- Vehicles ---------- */
.vehicles {
  display: grid;
  gap: 76px 24px;
  margin-top: 84px;
}
.vehicle {
  --accent: var(--pink);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 18px 22px;
  text-align: center;
  background: var(--wood) var(--wood-grain);
  border: var(--bw) solid var(--line);
  border-radius: 26px;
  box-shadow: 0 8px 0 var(--line), 0 18px 30px rgba(110, 30, 70, .16);
}
.vehicle--train { --accent: var(--green); }
.vehicle--rocket { --accent: var(--orange); }
.vehicle--mystery { --accent: var(--purple); }

.vehicle__recipe {
  width: 152px;
  margin: -70px auto 4px;
  transform: rotate(-5deg);
  filter: drop-shadow(0 6px 0 rgba(139, 44, 12, .22));
  transition: transform .35s cubic-bezier(.2, 1.6, .4, 1);
}
.vehicle:nth-child(even) .vehicle__recipe { transform: rotate(4deg); }
.vehicle:hover .vehicle__recipe { transform: translateY(-8px) rotate(-1deg) scale(1.06); }

.vehicle__en {
  padding: 1px 14px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .12em;
  line-height: 1.6;
  color: #fff;
  text-shadow: var(--outline-thin);
  background: var(--accent);
  border: 2px solid var(--line);
  border-radius: 999px;
}
.vehicle__name {
  margin: 6px 0 12px;
  font-family: var(--font-pop);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.3;
  color: var(--line);
  text-shadow: 0 2px 0 rgba(255, 255, 255, .6);
}
.vehicle__effect {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 88px;
  margin-top: auto;
  padding: 12px 14px 12px 10px;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.6;
  text-align: left;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 16px;
}
.vehicle__effect strong { color: var(--pink-strong); }
.vehicle__up {
  flex: none;
  width: 36px;
  height: 36px;
  color: var(--blue-deep);
  animation: up-bounce 1.3s ease-in-out infinite;
}

.vehicle--mystery {
  background: linear-gradient(160deg, #9d7bd0, #6c4ba3);
  box-shadow: 0 8px 0 var(--line), 0 18px 30px rgba(70, 30, 110, .25);
}
.vehicle--mystery::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .5) 0 2px, transparent 3px),
              radial-gradient(circle at 78% 22%, rgba(255, 255, 255, .6) 0 2px, transparent 3px),
              radial-gradient(circle at 86% 64%, rgba(255, 255, 255, .45) 0 1.5px, transparent 2.5px),
              radial-gradient(circle at 12% 74%, rgba(255, 255, 255, .45) 0 1.5px, transparent 2.5px);
  pointer-events: none;
}
.vehicle--mystery .vehicle__name { color: #fff; text-shadow: var(--outline-line), 0 4px 0 var(--line); }
.vehicle--mystery .vehicle__en { background: #4b2f78; }
.vehicle__effect--mystery {
  justify-content: center;
  text-align: center;
  background: rgba(255, 255, 255, .92);
  border-style: dashed;
}
.vehicle__effect--mystery small { font-size: 12.5px; color: var(--ink-soft); }

@media (min-width: 560px) { .vehicles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .vehicles { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px clamp(14px, 3vw, 32px);
}
.gallery__cell { position: relative; }
.gallery__cell::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  z-index: 2;
  width: 64px;
  height: 20px;
  background: var(--tape, var(--pink-soft));
  border-radius: 4px;
  opacity: .9;
  transform: translateX(-50%) rotate(-4deg);
  pointer-events: none;
}
.gallery__cell:nth-child(4n+2) { --tape: var(--blue-soft); }
.gallery__cell:nth-child(4n+3) { --tape: var(--yellow); }
.gallery__cell:nth-child(4n) { --tape: var(--green-soft); }

.gallery__item {
  --tilt: -1.2deg;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: var(--bw) solid var(--line);
  border-radius: 16px;
  box-shadow: 0 6px 0 var(--line), 0 14px 22px rgba(91, 37, 16, .14);
  cursor: zoom-in;
  transform: rotate(var(--tilt));
  transition: transform .25s ease, box-shadow .25s ease;
}
.gallery__cell:nth-child(even) .gallery__item { --tilt: 1.2deg; }
.gallery__item:hover { transform: rotate(0) translateY(-4px); box-shadow: 0 10px 0 var(--line), 0 20px 26px rgba(91, 37, 16, .18); }
.gallery__item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s ease; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__cap {
  margin-top: 12px;
  font-weight: 800;
  font-size: clamp(12.5px, 2.2vw, 14.5px);
  line-height: 1.5;
  text-align: center;
}

@media (min-width: 860px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 40px 32px; } }

/* Lightbox */
.lightbox {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  overflow: hidden;
}
.lightbox[open] { display: grid; place-items: center; animation: fade-in .25s ease; }
.lightbox::backdrop {
  background: rgba(50, 20, 8, .84);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.lightbox__frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: min(92vw, 1200px);
}
.lightbox__img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #fff;
  border: 4px solid #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}
.lightbox__cap {
  padding: 4px 18px;
  font-weight: 800;
  font-size: 15px;
  color: var(--line);
  background: var(--yellow);
  border: var(--bw) solid var(--line);
  border-radius: 999px;
}
.lightbox__btn,
.lightbox__close {
  position: fixed;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 12px;
  color: var(--line);
  background: #fff;
  border: var(--bw) solid var(--line);
  border-radius: 50%;
  box-shadow: 0 4px 0 var(--line);
  cursor: pointer;
}
.lightbox__btn:hover, .lightbox__close:hover { background: var(--yellow); }
.lightbox__btn svg, .lightbox__close svg { width: 100%; height: 100%; }
.lightbox__btn--prev { left: 14px; top: 50%; margin-top: -26px; }
.lightbox__btn--next { right: 14px; top: 50%; margin-top: -26px; }
.lightbox__close { top: 14px; right: 14px; }
@media (max-width: 699px) {
  .lightbox__btn { top: auto; bottom: 24px; margin: 0; }
  .lightbox__btn--prev { left: calc(50% - 70px); }
  .lightbox__btn--next { right: calc(50% - 70px); }
}

/* ---------- Info ---------- */
.info {
  display: grid;
  gap: 32px;
}
.info .panel { margin-top: 0; }
.info__card:nth-child(1) { --accent: var(--pink); }
.info__card:nth-child(2) { --accent: var(--green); }

.spec__row {
  display: grid;
  grid-template-columns: 7em 1fr;
  gap: 14px;
  align-items: start;
  padding: 11px 0;
}
.spec__row + .spec__row { border-top: 2px dashed rgba(139, 44, 12, .18); }
.spec dt {
  padding: 2px 0;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
  color: var(--line);
  background: var(--butter);
  border-radius: 8px;
}
.spec dd { font-weight: 700; font-size: 15px; line-height: 1.75; padding-top: 1px; }
.spec__sub { display: inline-block; font-size: 13px; color: var(--ink-soft); }
.spec__note { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.65; color: var(--ink-soft); }

@media (min-width: 860px) {
  .info { grid-template-columns: 1fr 1fr; align-items: start; }
}

.streaming {
  --accent: var(--pink);
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
}
.streaming__icon {
  width: 72px;
  height: 72px;
  padding: 16px;
  color: #fff;
  background: var(--pink);
  border: var(--bw) solid var(--line);
  border-radius: 50%;
  box-shadow: 0 4px 0 var(--line);
}
.streaming__title {
  margin-bottom: 8px;
  font-family: var(--font-pop);
  font-weight: 400;
  font-size: clamp(19px, 2.4vw, 23px);
  color: var(--line);
}
.streaming__body p { font-weight: 700; font-size: 15px; text-align: left; }
.streaming__body p + p { margin-top: 8px; }

@media (min-width: 860px) {
  .streaming {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
    text-align: left;
  }
}

/* info → CTA の区切り（△が下向き） */
.section--wood::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 1px);
  z-index: 2;
  height: 21px;
  background-color: var(--sec-bg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='21' viewBox='0 0 40 21'%3E%3Cpath d='M0 0v1l20 20L40 1V0Z'/%3E%3C/svg%3E") center top / 40px 21px repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='21' viewBox='0 0 40 21'%3E%3Cpath d='M0 0v1l20 20L40 1V0Z'/%3E%3C/svg%3E") center top / 40px 21px repeat-x;
  pointer-events: none;
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(84px, 10vw, 130px) 0 clamp(120px, 13vw, 170px);
}
.cta__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #f8d888 url("../img/title-bg.webp") center 40% / cover no-repeat;
}
.cta__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 45%, rgba(255, 251, 238, .88), rgba(255, 251, 238, .45) 65%, rgba(255, 251, 238, .2));
}
.cta__inner {
  display: grid;
  justify-items: center;
  gap: 8px;
}
.cta__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.cta__logo { width: min(420px, 82vw); filter: drop-shadow(0 8px 14px rgba(139, 44, 12, .2)); }
.cta__title {
  margin: 14px 0 28px;
  font-family: var(--font-pop);
  font-weight: 400;
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.6;
  color: var(--line);
  text-shadow: var(--outline-white), 0 4px 0 rgba(255, 255, 255, .85);
}
.cta__note {
  margin-top: 16px;
  font-weight: 800;
  font-size: 13.5px;
  color: var(--ink-soft);
  text-shadow: var(--outline-white);
}
.cta__chara { width: min(520px, 92vw); margin-top: 10px; }
.cta__chara img { width: 100%; animation: bob 3.6s ease-in-out infinite; filter: drop-shadow(0 14px 16px rgba(91, 37, 16, .2)); }

@media (min-width: 860px) {
  .cta__inner { grid-template-columns: 1.05fr .95fr; align-items: center; }
  .cta__chara { width: 100%; margin: 0; }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  padding: 52px 0 calc(28px + env(safe-area-inset-bottom));
  color: #ffefd2;
  background: var(--line-deep);
}
.site-footer__blocks {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% - 2px);
  height: 64px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='64' viewBox='0 0 400 64'%3E%3Cg stroke='%235b2510' stroke-width='3' stroke-linejoin='round'%3E%3Crect x='14' y='26' width='38' height='42' rx='4' fill='%23fa9aba'/%3E%3Cpath d='M58 68V42a20 20 0 0 1 40 0v26Z' fill='%23f8d888'/%3E%3Cpath d='M104 68 128 24l24 44Z' fill='%23fbe193'/%3E%3Crect x='158' y='10' width='26' height='58' rx='3' fill='%238adafa'/%3E%3Ccircle cx='210' cy='45' r='19' fill='%2393e3a6'/%3E%3Cpath d='M236 68h46V26Z' fill='%23ffb27a'/%3E%3Crect x='288' y='36' width='30' height='32' rx='4' fill='%238adafa'/%3E%3Crect x='324' y='20' width='54' height='48' rx='6' fill='%23f8d888'/%3E%3C/g%3E%3C/svg%3E") left bottom / 400px 64px repeat-x;
  pointer-events: none;
}
.site-footer__inner {
  display: grid;
  gap: 22px;
  text-align: center;
}
.site-footer__name {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: .08em;
  line-height: 1.3;
}
.site-footer__name span {
  display: block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--yellow);
}
.site-footer__desc { margin-top: 6px; font-size: 13.5px; opacity: .85; }
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.site-footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  color: var(--line-deep);
  background: #ffefd2;
  border-radius: 999px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .25);
  transition: transform .15s ease, background-color .15s ease;
}
.site-footer__links a:hover { background: var(--yellow); transform: translateY(-2px); }
.site-footer__links svg { width: 17px; height: 17px; }
.site-footer__legal { font-size: 11.5px; line-height: 1.7; opacity: .65; }
.site-footer__copy { font-family: var(--font-en); font-weight: 600; font-size: 14px; letter-spacing: .06em; }
.site-footer__copy small { font-size: inherit; }

/* ---------- To top / Toast ---------- */
.to-top {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .06em;
  color: #fff;
  text-decoration: none;
  text-shadow: var(--outline-thin);
  background: var(--pink);
  border: var(--bw) solid var(--line);
  border-radius: 50%;
  box-shadow: 0 4px 0 var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
}
.to-top svg { width: 22px; height: 22px; margin-bottom: 1px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .3s ease, transform .3s ease; }
.to-top:hover { background: var(--pink-strong); }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 60;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 12px 20px;
  font-weight: 800;
  font-size: 14.5px;
  line-height: 1.6;
  text-align: center;
  color: var(--line);
  background: var(--paper);
  border: var(--bw) solid var(--line);
  border-radius: 18px;
  box-shadow: 0 5px 0 var(--line), 0 14px 26px rgba(91, 37, 16, .2);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 24px);
  transition: opacity .3s ease, transform .35s cubic-bezier(.2, 1.4, .4, 1), visibility 0s linear .35s;
}
.toast.is-show { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .3s ease, transform .35s cubic-bezier(.2, 1.4, .4, 1); }
.toast a { color: var(--pink-strong); }

/* ---------- 集められる★と積み木 ---------- */
.collect { cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; }
.collect.is-collected:not(.collect--demo) { pointer-events: none; animation: collect-pop .5s ease-out forwards; }
.collect--demo.is-collected { cursor: default; }

.hero__deco { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.float-block,
.float-star {
  position: absolute;
  left: var(--xm, var(--x));
  top: var(--ym, var(--y));
  pointer-events: auto;
  transition: translate .5s ease-out;
}
.float-block { width: clamp(40px, 5vw, 64px); }
.float-block--sm { width: clamp(32px, 3.8vw, 48px); }
.float-star { width: clamp(28px, 3vw, 40px); }
.float-block svg,
.float-star svg {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  rotate: var(--r, 0deg);
  filter: drop-shadow(0 4px 0 rgba(139, 44, 12, .25));
  animation: float var(--dur, 4s) ease-in-out infinite;
}
.float-star svg { animation-name: twinkle; }
.collect:hover svg { filter: drop-shadow(0 4px 0 rgba(139, 44, 12, .25)) brightness(1.08); }

@media (min-width: 860px) {
  .float-block, .float-star { left: var(--x); top: var(--y); }
}
@media (max-width: 859px) {
  .float--pc { display: none; }
}

.pt-pop {
  position: fixed;
  z-index: 70;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  color: var(--yellow-deep);
  text-shadow: var(--outline-line), 0 3px 0 var(--line);
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: pt-pop .9s ease-out forwards;
}
.pt-pop--big { color: var(--pink-soft); font-size: 28px; }

.confetti {
  position: fixed;
  z-index: 69;
  width: 26px;
  height: 26px;
  pointer-events: none;
  animation: confetti 1.6s cubic-bezier(.2, .6, .4, 1) forwards;
}

/* ---------- Reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px) scale(.98);
  transition: opacity .6s ease, transform .7s cubic-bezier(.2, 1.25, .4, 1);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js .about__shot[data-reveal].is-visible { transform: rotate(1.6deg); }

/* ---------- Keyframes ---------- */
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(-1.5deg); }
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(6deg); }
}
@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.14) rotate(14deg); }
}
@keyframes bg-drift {
  from { transform: scale(1.04) translateX(-1%); }
  to { transform: scale(1.08) translateX(1%); }
}
@keyframes logo-in {
  0% { opacity: 0; transform: translateY(-30px) scale(.8) rotate(-4deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes chara-in {
  0% { opacity: 0; transform: translate(40%, 10%) scale(.9); }
  100% { opacity: 1; transform: none; }
}
@keyframes craft-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 214, 51, .0), 0 0 12px 2px rgba(255, 214, 51, .35); filter: brightness(1); }
  50% { box-shadow: 0 0 0 10px rgba(255, 214, 51, .35), 0 0 26px 8px rgba(255, 214, 51, .7); filter: brightness(1.08); }
}
@keyframes double-jump {
  0%, 100% { transform: translateY(4px); }
  30% { transform: translateY(-6px); }
  45% { transform: translateY(-2px); }
  65% { transform: translateY(-10px); }
}
@keyframes up-bounce {
  0%, 100% { transform: translateY(2px); }
  50% { transform: translateY(-4px); }
}
@keyframes hud-bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.18) rotate(-3deg); }
  100% { transform: scale(1); }
}
@keyframes collect-pop {
  0% { opacity: 1; transform: scale(1); }
  35% { opacity: 1; transform: scale(1.45) rotate(18deg); }
  100% { opacity: 0; transform: scale(0) rotate(50deg); }
}
@keyframes pt-pop {
  0% { opacity: 0; transform: translate(-50%, -30%) scale(.6); }
  20% { opacity: 1; transform: translate(-50%, -80%) scale(1.15); }
  100% { opacity: 0; transform: translate(-50%, -220%) scale(1); }
}
@keyframes stamp {
  0% { opacity: 0; transform: scale(2) rotate(10deg); }
  100% { opacity: 1; transform: scale(1) rotate(10deg); }
}
@keyframes confetti {
  0% { opacity: 1; transform: translate(0, 0) rotate(0deg); }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) rotate(var(--tr)); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js [data-reveal] { transform: none; }
}
