/* ============================================================
   style.css — スイカリオ公式ページ
   色・ボタン・地面（方眼）はゲームと同じ（src/style.css）。動きは、ぽよん（行きすぎてもどる）・ふわふわ・押すと沈むボタン
   ============================================================ */
:root {
  --bg: #fbf7ee; --ink: #4a3a2a; --ink2: #8a7560; --red: #e5323e; --red2: #ff6b6b; --redd: #a31d28;
  --green: #2e9b45; --green2: #5cc46e; --greend: #1b6a2d; --pink: #ff8fab; --card: #fffdf8; --line: #efe3cf;
  --yellow: #ffd43b; --orange: #ff9b1a; --grid: rgba(150, 120, 80, .14);
  --sh: 0 10px 30px rgba(90, 60, 30, .15);
  --font: "Zen Maru Gothic", "Nunito", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  /* 動きの曲線 */
  --back: cubic-bezier(.34, 1.56, .64, 1);          /* ぽよん（行きすぎてもどる） */
  --back2: cubic-bezier(.3, 1.9, .55, 1);           /* もっとぽよん */
  --inout: cubic-bezier(.76, 0, .24, 1);            /* はじめと終わりがゆっくり（幕） */
  --out: cubic-bezier(.16, 1, .3, 1);               /* すっと止まる */
  --sine: cubic-bezier(.37, 0, .63, 1);             /* ふわふわ */
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background-color: var(--bg); line-height: 1.7;
  /* ゲームの地面と同じ方眼 */
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px; overflow-x: hidden;
}
body.op-on { overflow: hidden; }
html[lang="en"] body { --font: "Nunito", "Zen Maru Gothic", system-ui, sans-serif; }
img { max-width: 100%; display: block; }
/* 文は言葉の切れ目で折り返す（「ま」「戦」だけが次の行に落ちないように） */
h1, h2, h3, p, b { word-break: auto-phrase; text-wrap: pretty; }
h3, .hero-catch, .hero-date, .ft-date, .plat-when { text-wrap: balance; }
a { color: inherit; }
button { font-family: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ---------------- ボタン（ゲームと同じ：下に厚み・押すと沈む）---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 22px; padding: 15px 26px 15px 16px;
  font-size: 19px; font-weight: 900; letter-spacing: .03em; text-decoration: none; cursor: pointer; position: relative; white-space: nowrap;
  transition: translate .12s var(--out), box-shadow .12s var(--out), filter .15s;
}
.btn em { font-style: normal; font-size: 12px; font-weight: 900; padding: 3px 9px; border-radius: 99px; margin-left: 2px; }
.btn-red { color: #fff; background: linear-gradient(180deg, var(--red2), var(--red)); box-shadow: 0 6px 0 var(--redd), 0 14px 26px rgba(229, 50, 62, .28); }
.btn-red em { background: #fff; color: var(--red); }
.btn-white { color: var(--ink); background: #fff; box-shadow: 0 6px 0 #e3d5bf, 0 14px 26px rgba(90, 60, 30, .14); }
.btn-white em { background: var(--line); color: var(--ink2); }
.btn:hover { translate: 0 2px; filter: brightness(1.04); }
.btn-red:hover { box-shadow: 0 4px 0 var(--redd), 0 10px 20px rgba(229, 50, 62, .25); }
.btn-white:hover { box-shadow: 0 4px 0 #e3d5bf, 0 10px 20px rgba(90, 60, 30, .12); }
.btn:active { translate: 0 6px; }
.btn-red:active { box-shadow: 0 0 0 var(--redd), 0 4px 10px rgba(229, 50, 62, .2); }
.btn-white:active { box-shadow: 0 0 0 #e3d5bf, 0 4px 10px rgba(90, 60, 30, .1); }
.btn-ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; transition: scale .3s var(--back); }
.btn-red .btn-ic { background: rgba(255, 255, 255, .25); }
.btn-white .btn-ic { background: #1b2838; color: #fff; }
.btn-ic svg { width: 22px; height: 22px; }
.btn:hover .btn-ic { scale: 1.15; }
.btn.small { font-size: 16px; padding: 12px 20px; border-radius: 18px; box-shadow: 0 5px 0 var(--redd); }
.btn-white.small { box-shadow: 0 5px 0 #e3d5bf; }
.btn.is-soon { cursor: default; }
.btn.is-soon:hover, .btn.is-soon:active { translate: 0 0; filter: none; }
.btn.is-closed { filter: grayscale(.85) brightness(1.05); }

/* ---------------- ヘッダー ---------------- */
#hd {
  position: fixed; z-index: 50; top: 12px; left: 50%; translate: -50% 0; width: min(1180px, calc(100% - 24px));
  display: flex; align-items: center; gap: 18px; padding: 8px 10px 8px 18px; border-radius: 999px;
  background: rgba(255, 253, 248, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 8px 24px rgba(90, 60, 30, .12);
  transition: translate .5s var(--out), opacity .4s;
}
body.op-on #hd { translate: -50% -140%; opacity: 0; }
.hd-logo img { height: 34px; width: auto; transition: scale .3s var(--back); }
.hd-logo:hover img { scale: 1.08 1.08; }
.hd-nav { display: flex; gap: 4px; margin-left: auto; }
.hd-nav a { position: relative; text-decoration: none; font-weight: 900; font-size: 15px; padding: 8px 12px; border-radius: 99px; transition: background .2s; }
.hd-nav a::after { content: ""; position: absolute; left: 50%; bottom: 1px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--red); scale: 0; transition: scale .3s var(--back2); }
.hd-nav a:hover { background: #f6efe3; }
.hd-nav a:hover::after { scale: 1; }
.hd-right { display: flex; align-items: center; gap: 8px; }
.lang { display: flex; background: #f3eadb; border-radius: 99px; padding: 3px; }
.lang button { border: 0; background: none; font-weight: 900; font-size: 13px; padding: 6px 10px; border-radius: 99px; cursor: pointer; color: var(--ink2); transition: background .2s, color .2s; }
.lang button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(90, 60, 30, .15); }
.hd-menu { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--red); cursor: pointer; position: relative; box-shadow: 0 4px 0 var(--redd); }
.hd-menu span { position: absolute; left: 13px; width: 18px; height: 3px; border-radius: 3px; background: #fff; transition: translate .35s var(--back), rotate .35s var(--back), opacity .2s; }
.hd-menu span:nth-child(1) { top: 15px; } .hd-menu span:nth-child(2) { top: 21px; } .hd-menu span:nth-child(3) { top: 27px; }
body.menu-open .hd-menu span:nth-child(1) { translate: 0 6px; rotate: 45deg; }
body.menu-open .hd-menu span:nth-child(2) { opacity: 0; }
body.menu-open .hd-menu span:nth-child(3) { translate: 0 -6px; rotate: -45deg; }

/* ---------------- キービジュアル ---------------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 110px 0 70px; }
#hero-cv { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-in { position: relative; z-index: 1; width: min(1180px, 100% - 40px); margin: 0 auto; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px; pointer-events: none; }
.hero-in a, .hero-in button { pointer-events: auto; }
.hero-logo { margin: 0 0 6px; }
.hero-logo img { width: min(560px, 100%); filter: drop-shadow(0 10px 0 rgba(120, 80, 40, .1)); }
.hero-catch { margin: 0; font-size: clamp(24px, 3.1vw, 38px); font-weight: 900; line-height: 1.45; letter-spacing: .02em; }
.hero-sub { margin: 6px 0 26px; font-size: clamp(15px, 1.6vw, 19px); font-weight: 700; color: var(--ink2); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 18px; }
.cta-play { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.cta-note { margin: 2px 0 0; font-size: 13px; font-weight: 700; color: var(--ink2); }
.hero-date { margin: 22px 0 0; font-size: 14px; font-weight: 700; color: var(--ink2); }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 900; padding: 5px 12px 5px 10px; border-radius: 99px; background: #fff; box-shadow: 0 3px 10px rgba(90, 60, 30, .1); }
.status i { width: 10px; height: 10px; border-radius: 50%; background: #c9bba7; }
.status[data-state="open"] i { background: var(--green2); box-shadow: 0 0 0 0 rgba(92, 196, 110, .6); animation: ping 1.6s var(--out) infinite; }
.status[data-state="open"] { color: var(--green); }
@keyframes ping { to { box-shadow: 0 0 0 9px rgba(92, 196, 110, 0); } }
.hero-art { position: relative; aspect-ratio: 1; width: min(560px, 100%); justify-self: center; }
.h-mandala, .h-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.h-mandala { opacity: .38; animation: spin 90s linear infinite; }
.h-ring { inset: 9%; width: 82%; height: 82%; animation: spin 40s linear infinite reverse; filter: drop-shadow(0 6px 10px rgba(255, 143, 177, .35)); }
@keyframes spin { to { rotate: 360deg; } }
.h-suika { position: absolute; inset: 20%; border: 0; padding: 0; background: none; cursor: pointer; animation: float 4.6s var(--sine) infinite alternate; }
.h-suika img { width: 100%; filter: drop-shadow(0 16px 18px rgba(46, 155, 69, .3)); transition: scale .35s var(--back2); }
.h-suika:hover img { scale: 1.05; }
.h-suika.squish img { animation: squish .55s var(--back) both; }
@keyframes squish { 0% { scale: 1 1; } 30% { scale: 1.16 .86; } 55% { scale: .92 1.1; } 80% { scale: 1.04 .97; } 100% { scale: 1 1; } }
@keyframes float { from { translate: 0 -9px; } to { translate: 0 9px; } }
.scroll-cue { position: absolute; z-index: 1; left: 50%; bottom: 18px; translate: -50% 0; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--red); display: grid; place-items: center; box-shadow: 0 5px 0 #e3d5bf; animation: cue 1.8s var(--sine) infinite; }
.scroll-cue svg { width: 24px; height: 24px; }
@keyframes cue { 50% { translate: -50% 7px; } }

/* キービジュアルの登場（オープニングのあと・オープニングがないときはすぐ） */
.hero-logo, .hero-catch, .hero-sub, .hero-cta, .hero-date { opacity: 0; translate: 0 34px; transition: opacity .7s var(--out), translate .9s var(--out); }
.hero-art { opacity: 0; scale: .7; transition: opacity .5s, scale .9s var(--back); }
body.ready .hero-logo, body.ready .hero-catch, body.ready .hero-sub, body.ready .hero-cta, body.ready .hero-date { opacity: 1; translate: 0 0; }
body.ready .hero-catch { transition-delay: .08s; } body.ready .hero-sub { transition-delay: .14s; } body.ready .hero-cta { transition-delay: .2s; } body.ready .hero-date { transition-delay: .26s; }
body.ready .hero-art { opacity: 1; scale: 1; transition-delay: .1s; }

/* ---------------- セクション ---------------- */
.sec { position: relative; padding: 96px 20px; }
.sec > * { width: min(1100px, 100%); margin-left: auto; margin-right: auto; }
.sec-white { background: rgba(255, 253, 248, .92); }
.sec-white::before, .sec-white::after { content: ""; position: absolute; left: 0; right: 0; height: 26px; background: radial-gradient(circle at 13px 26px, rgba(255, 253, 248, .92) 13px, transparent 14px) 0 0 / 26px 26px repeat-x; }
.sec-white::before { top: -25px; }
.sec-white::after { bottom: -25px; rotate: 180deg; }
.ttl { display: flex; align-items: center; justify-content: center; gap: 10px; width: fit-content; margin: 0 auto 14px; padding: 10px 26px 10px 14px; border-radius: 999px; background: #fff; box-shadow: 0 6px 0 #e3d5bf, var(--sh); font-size: clamp(22px, 2.6vw, 30px); font-weight: 900; letter-spacing: .04em; }
.ttl img { width: 46px; height: 46px; animation: float 3.2s var(--sine) infinite alternate; }
.lead { text-align: center; font-weight: 700; color: var(--ink2); margin: 0 auto 34px; font-size: 17px; }

/* あそびかた */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { position: relative; background: var(--card); border-radius: 26px; padding: 14px 14px 20px; box-shadow: 0 6px 0 #ecdfca, var(--sh); transition: translate .35s var(--back), box-shadow .35s; }
.step:hover { translate: 0 -6px; }
.step-pic { border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; background: #eee5d6; }
.step-pic img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--out); }
.step:hover .step-pic img { scale: 1.07; }
.step-no { position: absolute; top: -14px; left: -10px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; font-weight: 900; color: #fff; background: linear-gradient(180deg, var(--red2), var(--red)); box-shadow: 0 4px 0 var(--redd); font-family: "Nunito", var(--font); }
.step h3 { margin: 14px 6px 2px; font-size: 19px; font-weight: 900; }
.step p { margin: 0 6px; font-size: 14.5px; font-weight: 700; color: var(--ink2); }

/* くだもの */
.chain { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 4px 2px; margin: 34px auto 30px; }
.chain button { position: relative; border: 0; background: none; padding: 4px; cursor: pointer; display: flex; align-items: center; }
.chain button img { width: var(--s); height: var(--s); transition: scale .35s var(--back2), translate .35s var(--back2); }
.chain .arr { color: #d6c3a6; font-weight: 900; font-size: 18px; margin: 0 1px; }
.chain button:hover img { scale: 1.12; translate: 0 -6px; }
.chain button.on img { scale: 1.18; translate: 0 -10px; filter: drop-shadow(0 8px 8px rgba(90, 60, 30, .25)); }
.chain button.on::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--red); }
.chain .pop { animation: pop .55s var(--back2) both; animation-delay: var(--d, 0s); }
.fcard { display: grid; grid-template-columns: 220px 1fr; align-items: center; gap: 26px; max-width: 760px; background: var(--card); border-radius: 30px; padding: 22px 30px 22px 22px; box-shadow: 0 7px 0 #ecdfca, var(--sh); }
.fcard-pic { position: relative; aspect-ratio: 1; border-radius: 24px; background: radial-gradient(circle at 50% 55%, #fff 0, #fff 35%, transparent 36%), repeating-conic-gradient(from 0deg, #fff1d8 0 15deg, #fde6c4 15deg 30deg); display: grid; place-items: center; overflow: hidden; }
.fcard-pic img { width: 80%; }
.fcard-pic img.jump { animation: jump .6s var(--back) both; }
@keyframes jump { 0% { scale: .4; translate: 0 30px; } 60% { scale: 1.1; translate: 0 -10px; } 100% { scale: 1; translate: 0 0; } }
.fcard-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fcard-top b { font-size: 30px; font-weight: 900; }
.tag { display: inline-block; font-style: normal; font-size: 13px; font-weight: 900; padding: 4px 11px; border-radius: 99px; background: #ffe9b0; color: #8a5a00; }
.fcard-skill { display: flex; align-items: center; gap: 8px; margin: 8px 0 6px; font-weight: 900; }
.fcard-skill span { font-size: 12px; color: #fff; background: var(--green); padding: 3px 9px; border-radius: 99px; }
.fcard-skill b { font-size: 20px; color: var(--green); }
.fcard p { margin: 0; font-weight: 700; color: var(--ink2); }
.fcard.swap .fcard-body { animation: swap .45s var(--out) both; }
@keyframes swap { from { opacity: 0; translate: 18px 0; } to { opacity: 1; translate: 0 0; } }

/* とくちょう */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.feat { background: var(--card); border-radius: 26px; padding: 24px 20px 22px; text-align: center; box-shadow: 0 6px 0 #ecdfca, var(--sh); transition: translate .35s var(--back); }
.feat:hover { translate: 0 -6px; }
.feat-ic { position: relative; height: 86px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.feat-ic img, .feat-ic svg { width: 78px; height: 78px; transition: rotate .5s var(--back2), scale .4s var(--back2); }
.feat:hover .feat-ic img, .feat:hover .feat-ic svg { rotate: -10deg; scale: 1.1; }
.feat-ic b { position: absolute; right: calc(50% - 64px); top: 2px; font-family: "Nunito", var(--font); font-size: 22px; font-weight: 900; color: #fff; background: var(--red); padding: 0 9px; border-radius: 99px; box-shadow: 0 3px 0 var(--redd); }
.feat-ic.two img { width: 64px; height: 64px; margin: 0 -8px; }
.feat-ic.two img:last-child { filter: hue-rotate(185deg) saturate(1.3); }
.feat-ic.spin img { animation: spin 14s linear infinite; }
.feat-ic .crown { position: absolute; top: -4px; left: calc(50% + 6px); font-size: 30px; rotate: 18deg; }
.feat h3 { margin: 6px 0 2px; font-size: 19px; font-weight: 900; }
.feat p { margin: 0; font-size: 14px; font-weight: 700; color: var(--ink2); }

/* 画面 */
.gal { position: relative; }
.gal-track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 30px 6px 18px; scrollbar-width: none; }
.gal-track::-webkit-scrollbar { display: none; }
.gal-item { flex: 0 0 min(640px, 82%); scroll-snap-align: center; border: 0; padding: 0; background: none; cursor: zoom-in; border-radius: 20px; overflow: hidden; box-shadow: 0 6px 0 #e3d5bf, var(--sh); transition: scale .4s var(--back), translate .4s var(--back); }
.gal-item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gal-item:hover { scale: 1.02; translate: 0 -4px; }
.gal-btn { position: absolute; z-index: 2; top: 50%; translate: 0 -50%; width: 52px; height: 52px; border: 0; border-radius: 50%; background: #fff; color: var(--red); cursor: pointer; display: grid; place-items: center; box-shadow: 0 5px 0 #e3d5bf, var(--sh); transition: translate .12s var(--out), box-shadow .12s, scale .3s var(--back); }
.gal-btn svg { width: 26px; height: 26px; }
.gal-btn:hover { scale: 1.08; }
.gal-btn:active { translate: 0 calc(-50% + 4px); box-shadow: 0 1px 0 #e3d5bf; }
.gal-btn.prev { left: -8px; } .gal-btn.next { right: -8px; }
.gal-dots { display: flex; justify-content: center; gap: 8px; }
.gal-dots i { width: 10px; height: 10px; border-radius: 50%; background: #e3d5bf; transition: background .3s, scale .3s var(--back2); }
.gal-dots i.on { background: var(--red); scale: 1.3; }

/* あそべるところ */
.plats { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 30px; }
.plat { background: var(--card); border-radius: 28px; padding: 26px 28px; box-shadow: 0 6px 0 #ecdfca, var(--sh); display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.plat-top { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 900; }
.plat-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.plat-ic.steam { background: #1b2838; } .plat-ic.web { background: var(--green); }
.plat-ic svg { width: 26px; height: 26px; }
.plat p { margin: 0; font-weight: 700; color: var(--ink2); }
.plat .plat-when { font-size: 19px; font-weight: 900; color: var(--ink); margin-top: 6px; }
.plat .plat-note { font-size: 13.5px; }
.plat .btn { margin-top: 14px; }

/* フッター：果物が進化の順にならんで顔を出す */
#ft { position: relative; margin-top: 60px; padding: 150px 20px 40px; background: linear-gradient(180deg, transparent 0, transparent 110px, #f3eadb 110px); text-align: center; overflow: hidden; }
.ft-pile { position: absolute; left: 50%; top: 0; translate: -50% 0; height: 140px; width: min(1100px, 100%); display: flex; align-items: flex-end; justify-content: center; }
.ft-pile img { width: calc(var(--s) * var(--k, 1)); height: calc(var(--s) * var(--k, 1)); margin: 0 -2px; translate: 0 22%; cursor: pointer; transition: translate .35s var(--back2); }
.ft-pile img:hover, .ft-pile img.hop { translate: 0 0; }
.ft-in { position: relative; }
.ft-logo { width: 260px; margin: 0 auto 10px; }
.ft-date { margin: 0; font-weight: 700; color: var(--ink2); font-size: 14px; }
.ft-copy { margin: 16px 0 0; font-size: 13px; color: var(--ink2); font-family: "Nunito", var(--font); }

.ft-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 14px 0 0; font-weight: 900; font-size: 14px; }
.ft-links a { text-decoration: none; padding: 4px 2px; border-bottom: 2px solid transparent; transition: border-color .2s; }
.ft-links a:hover { border-color: var(--red); }

/* 利用規約・プライバシーポリシー */
.legal-page #hd { position: sticky; left: auto; translate: none; margin: 12px auto 0; }
.legal { width: min(860px, calc(100% - 32px)); margin: 28px auto 0; }
.legal-card { background: var(--card); border-radius: 28px; padding: 34px 40px; box-shadow: 0 6px 0 #ecdfca, var(--sh); }
.legal-card h1 { font-size: 26px; margin: 0 0 18px; }
.legal-card h2 { font-size: 18px; margin: 26px 0 6px; padding-left: 12px; border-left: 5px solid var(--red); }
.legal-card p, .legal-card li { font-size: 15px; font-weight: 500; }
.legal-card ul, .legal-card ol { padding-left: 1.4em; margin: 6px 0; }
.legal-card a { color: var(--red); font-weight: 700; }
.legal-back { text-align: center; margin: 26px 0 0; }
.legal-ft { padding-top: 40px; margin-top: 40px; background: #f3eadb; }
@media (max-width: 860px) { .legal-card { padding: 24px 20px; } .legal-nav { display: none; } }

/* 上へ（さくらんぼのダッシュ） */
#to-top { position: fixed; z-index: 40; right: 18px; bottom: 18px; width: 64px; height: 64px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 5px 0 #e3d5bf, var(--sh); cursor: pointer; padding: 6px; scale: 0; transition: scale .4s var(--back2), translate .12s var(--out); }
#to-top.show { scale: 1; }
#to-top:active { translate: 0 4px; }
#to-top img { width: 100%; transition: rotate .4s var(--back2); }
#to-top:hover img { rotate: -18deg; }
#to-top.dash img { animation: dash .5s cubic-bezier(.55, 0, 1, .45) both; }
#to-top.dash::before { content: ""; position: absolute; left: 50%; top: 60%; width: 6px; height: 60px; margin-left: -3px; border-radius: 3px; background: linear-gradient(transparent, rgba(229, 50, 62, .5)); animation: trail .5s ease-out both; }
@keyframes dash { 0% { translate: 0 0; } 20% { translate: 0 8px; scale: 1.1 .9; } 100% { translate: 0 -110vh; scale: .9 1.2; } }
@keyframes trail { 0% { opacity: 0; translate: 0 0; } 30% { opacity: 1; } 100% { opacity: 0; translate: 0 -60vh; height: 160px; } }
#to-top.back img { animation: drop .6s var(--back) both; }
@keyframes drop { 0% { translate: 0 -60px; opacity: 0; } 60% { translate: 0 4px; opacity: 1; } 80% { translate: 0 -3px; } 100% { translate: 0 0; } }

/* 拡大 */
#lightbox { position: fixed; z-index: 90; inset: 0; background: rgba(40, 28, 16, .72); display: grid; place-items: center; padding: 20px; cursor: zoom-out; animation: fade .25s both; }
#lightbox img { max-width: min(1280px, 100%); max-height: 90vh; border-radius: 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); animation: zoomin .45s var(--back) both; }
@keyframes fade { from { opacity: 0; } }
@keyframes zoomin { from { scale: .8; opacity: 0; } }

/* ---------------- 画面に入ったら出る ---------------- */
[data-rv] { opacity: 0; translate: 0 40px; transition: opacity .7s var(--out) var(--d, 0s), translate .9s var(--out) var(--d, 0s); }
[data-rv].in { opacity: 1; translate: 0 0; }
[data-pop] { scale: 0; transition: scale .6s var(--back2) var(--d, 0s); }
[data-pop].in { scale: 1; }
@keyframes pop { from { scale: 0; } }

/* ---------------- オープニング ---------------- */
#op { position: fixed; z-index: 100; inset: 0; background-color: var(--bg); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 44px 44px; clip-path: inset(0 0 0 0); transition: clip-path .85s var(--inout); }
#op.out { clip-path: inset(0 0 100% 0); }
#op-cv { position: absolute; inset: 0; width: 100%; height: 100%; }
#op-logo { position: absolute; left: 50%; top: 50%; width: min(620px, 82vw); translate: -50% -50%; scale: 0; opacity: 0; transition: scale .7s var(--back2), opacity .2s; pointer-events: none; }
#op-logo.in { scale: 1; opacity: 1; }
#op-skip { position: absolute; right: 18px; bottom: 18px; border: 0; background: #fff; border-radius: 99px; padding: 9px 18px; font-weight: 900; color: var(--ink2); cursor: pointer; box-shadow: 0 4px 0 #e3d5bf; }
#op-skip:active { translate: 0 3px; box-shadow: 0 1px 0 #e3d5bf; }

/* ---------------- スマホ ---------------- */
@media (max-width: 860px) {
  #hd { top: 8px; padding: 6px 6px 6px 14px; }
  .hd-logo img { height: 28px; }
  .hd-nav { position: fixed; z-index: -1; top: -8px; left: -6px; right: -6px; translate: 0 0; flex-direction: column; gap: 6px; padding: 76px 18px 22px; margin: 0; border-radius: 0 0 28px 28px; background: rgba(255, 253, 248, .98); box-shadow: 0 16px 40px rgba(90, 60, 30, .18); clip-path: inset(0 0 100% 0 round 0 0 28px 28px); transition: clip-path .5s var(--inout); }
  body.menu-open .hd-nav { clip-path: inset(0 0 0 0 round 0 0 28px 28px); }
  .hd-nav a { font-size: 19px; padding: 12px 16px; opacity: 0; translate: 0 -10px; transition: opacity .3s, translate .4s var(--back), background .2s; }
  body.menu-open .hd-nav a { opacity: 1; translate: 0 0; }
  body.menu-open .hd-nav a:nth-child(2) { transition-delay: .04s; } body.menu-open .hd-nav a:nth-child(3) { transition-delay: .08s; } body.menu-open .hd-nav a:nth-child(4) { transition-delay: .12s; } body.menu-open .hd-nav a:nth-child(5) { transition-delay: .16s; }
  .hd-right { margin-left: auto; }
  .hd-menu { display: block; }
  .hero { padding: 96px 0 80px; align-items: flex-start; }
  .hero-in { grid-template-columns: 1fr; text-align: center; gap: 0; }
  .hero-text { display: flex; flex-direction: column; align-items: center; order: 2; }
  .hero-art { order: 1; width: min(340px, 80vw); margin-bottom: -10px; }
  .hero-logo img { width: min(400px, 88vw); }
  .hero-cta { justify-content: center; flex-direction: column; align-items: center; }
  .cta-play { align-items: center; }
  .btn { font-size: 17px; }
  .hero-cta .btn, .cta-play { width: min(340px, 100%); }
  .hero-cta .btn { justify-content: center; }
  .ft-pile { --k: .44; height: 84px; }
  #ft { padding-top: 110px; background: linear-gradient(180deg, transparent 0, transparent 72px, #f3eadb 72px); }
  .feat h3 { text-wrap: balance; }
  .steps, .feats, .plats { grid-template-columns: 1fr; }
  .feats { grid-template-columns: 1fr 1fr; gap: 14px; }
  .feat { padding: 18px 12px; }
  .feat-ic img, .feat-ic svg { width: 62px; height: 62px; }
  .feat h3 { font-size: 16px; }
  .feat p { font-size: 12.5px; }
  .sec { padding: 72px 16px; }
  .fcard { grid-template-columns: 1fr; text-align: center; padding: 18px; gap: 12px; }
  .fcard-pic { width: 200px; margin: 0 auto; }
  .fcard-top, .fcard-skill { justify-content: center; }
  .gal-btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-rv], [data-pop], .hero-logo, .hero-catch, .hero-sub, .hero-cta, .hero-date, .hero-art { opacity: 1 !important; translate: 0 0 !important; scale: 1 !important; }
}
