/* Totonoi のサイト(トップのページ)
   暗い地に、熱の色のゆらぎと火の粉。心拍の線が流れて、Apple Watch に入っていく。
   3 つの物(サウナ・水風呂・休憩)を押すと、熱 → 水 → 風 に、最初の画面ごと切り替わる。
   「心拍グラフ」の節は、スクロールで進む 1 本の線(サウナ → 水風呂 → 休憩)。
   JS が動かない・動きを減らす設定のときは、線は止まった絵になり、章は縦に並ぶ(.scrolly が付かない)。 */

@font-face { font-family: "Unbounded"; src: url("fonts/unbounded-var.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Zen Maru Gothic"; src: url("fonts/zenmaru-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Zen Maru Gothic"; src: url("fonts/zenmaru-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --bg: #080506;
  --fg: #fff4ea;
  --ink: #131316;
  --dim: rgba(255, 244, 234, .66);
  --line: rgba(255, 244, 234, .18);
  --fire: #ff4a36;      /* サウナ */
  --ember: #ff8a3d;
  --water: #46c8ff;     /* 水風呂 */
  --leaf: #3ddc84;      /* 休憩 */
  --y: #ffd23f;         /* 屋号の黄色(「×」の札) */
  --g: clamp(18px, 4.4vw, 68px);
  --pop: cubic-bezier(.3, 1.5, .45, 1);   /* 少し行きすぎて戻る(屋号のサイトと同じ) */
  --out: cubic-bezier(.16, 1, .3, 1);
  --latin: "Unbounded", "Zen Maru Gothic", sans-serif;
  --jp: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--jp); font-weight: 500; font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; overflow-x: clip; }
main { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
svg { display: block; fill: currentColor; }
::selection { background: var(--fire); color: #fff; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: 12px; z-index: 100; padding: 10px 18px; border-radius: 100px; background: var(--y); color: var(--ink); font-weight: 900; transform: translateY(-200%); }
.skip:focus { transform: none; }
:focus-visible { outline: 3px solid var(--y); outline-offset: 4px; border-radius: 10px; }
.nb { white-space: nowrap; }
h2, h3, .hero__words, .hero__sub, .step p, .mini__t, .more p, .facts dd, .sec__lead, .chap__p { word-break: keep-all; overflow-wrap: anywhere; }

/* ---------- 上の帯 ---------- */
.top { position: absolute; left: 0; right: 0; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px; padding: calc(16px + env(safe-area-inset-top)) var(--g) 12px; font-size: 13px; font-weight: 900; line-height: 1; }
.logo { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; padding: 8px 0; font-family: var(--latin); font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.logo__dots { display: inline-flex; }
.logo__dots i { width: 12px; height: 12px; border-radius: 50%; transition: transform .6s var(--pop); }
.logo__dots i:nth-child(1) { background: var(--fire); }
.logo__dots i:nth-child(2) { background: var(--water); margin-left: -3px; }
.logo__dots i:nth-child(3) { background: var(--leaf); margin-left: -3px; }
.logo:hover .logo__dots i:nth-child(1) { transform: translateY(-5px); }
.logo:hover .logo__dots i:nth-child(2) { transform: translateY(-8px); transition-delay: .06s; }
.logo:hover .logo__dots i:nth-child(3) { transform: translateY(-5px); transition-delay: .12s; }
.nav { display: flex; gap: 8px; }
.nav a, .top__store { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 100px; border: 1.5px solid var(--line); letter-spacing: .06em; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background-color .25s, color .25s, border-color .25s, transform .5s var(--pop); }
.nav a:hover, .nav a:focus-visible { background: var(--fg); color: var(--ink); border-color: var(--fg); transform: scale(1.06) rotate(-2deg); }
.top__store { padding: 5px 5px 5px 15px; background: var(--fg); color: var(--ink); border-color: var(--fg); font-family: var(--latin); font-weight: 600; font-size: 12px; letter-spacing: 0; }
.top__store b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--fg); transition: transform .5s var(--pop); }
.top__store b svg { width: 11px; height: 11px; }
.top__store:hover { transform: scale(1.05) rotate(-1.5deg); }
.top__store:hover b { transform: rotate(45deg); }

/* ---------- 最初の画面 ---------- */
.hero {
  --p: var(--fire); --p2: var(--ember);
  position: relative; z-index: 1; min-height: 100vh; min-height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); grid-template-rows: 1fr auto auto; column-gap: clamp(20px, 3vw, 60px);
  padding: clamp(96px, 14vh, 140px) var(--g) calc(24px + env(safe-area-inset-bottom));
}
.hero[data-phase="water"] { --p: var(--water); --p2: #7fe3ff; }
.hero[data-phase="rest"] { --p: var(--leaf); --p2: #b6f5a2; }

/* 地: 熱・水・風 */
.air { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.air__l { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero[data-phase="sauna"] .air__l--sauna, .hero[data-phase="water"] .air__l--water, .hero[data-phase="rest"] .air__l--rest { opacity: 1; }
.air__l i { position: absolute; display: block; border-radius: 50%; filter: blur(60px); will-change: transform; }
/* 熱: 下から、赤とだいだいが立ちのぼる */
.air__l--sauna { background: radial-gradient(130% 78% at 50% 112%, #ff3a1c 0%, #b3160a 30%, #4a0703 55%, transparent 76%), radial-gradient(60% 50% at 88% 30%, rgba(255, 110, 40, .2), transparent 70%); }
.air__l--sauna i:nth-child(1) { left: -8%; bottom: -22%; width: 58vw; height: 58vw; background: #ff5a1f; opacity: .55; animation: rise 11s ease-in-out infinite alternate; }
.air__l--sauna i:nth-child(2) { right: -10%; bottom: -30%; width: 62vw; height: 62vw; background: #ff2a12; opacity: .5; animation: rise 14s ease-in-out -4s infinite alternate-reverse; }
.air__l--sauna i:nth-child(3) { left: 34%; bottom: -34%; width: 44vw; height: 44vw; background: #ffb02e; opacity: .34; animation: rise 9s ease-in-out -2s infinite alternate; }
/* 水: 上から、青い光がゆれる */
.air__l--water { background: radial-gradient(120% 86% at 50% -12%, #19b4ff 0%, #0a6aa8 30%, #05263f 58%, transparent 80%), radial-gradient(70% 60% at 10% 100%, rgba(40, 150, 255, .28), transparent 70%); }
.air__l--water i:nth-child(1) { left: -12%; top: -30%; width: 60vw; height: 60vw; background: #2ad0ff; opacity: .4; animation: sway 12s ease-in-out infinite alternate; }
.air__l--water i:nth-child(2) { right: -14%; top: -20%; width: 54vw; height: 54vw; background: #1b6dff; opacity: .42; animation: sway 15s ease-in-out -5s infinite alternate-reverse; }
.air__l--water i:nth-child(3) { left: 30%; bottom: -40%; width: 50vw; height: 50vw; background: #0fe0e0; opacity: .2; animation: sway 10s ease-in-out -3s infinite alternate; }
/* 風: 夜明けの空のような、緑と青 */
.air__l--rest { background: radial-gradient(110% 80% at 82% -6%, #2fd9a0 0%, #0f6f66 28%, #06302f 54%, transparent 78%), radial-gradient(80% 60% at 0% 100%, rgba(120, 220, 130, .22), transparent 70%); }
.air__l--rest i:nth-child(1) { right: -6%; top: -34%; width: 56vw; height: 56vw; background: #58e6a6; opacity: .36; animation: drift 16s ease-in-out infinite alternate; }
.air__l--rest i:nth-child(2) { left: -16%; bottom: -34%; width: 58vw; height: 58vw; background: #2aa7a0; opacity: .3; animation: drift 19s ease-in-out -6s infinite alternate-reverse; }
.air__l--rest i:nth-child(3) { left: 40%; top: -40%; width: 40vw; height: 40vw; background: #d8ff9a; opacity: .16; animation: drift 13s ease-in-out -2s infinite alternate; }
@keyframes rise { from { transform: translate3d(-3%, 6%, 0) scale(.92); } to { transform: translate3d(4%, -12%, 0) scale(1.12); } }
@keyframes sway { from { transform: translate3d(-5%, -4%, 0) scale(1); } to { transform: translate3d(6%, 6%, 0) scale(1.1); } }
@keyframes drift { from { transform: translate3d(-8%, 0, 0) scale(1); } to { transform: translate3d(8%, 4%, 0) scale(1.06); } }
.air__bits, .air__line { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.air__grain { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 5, 6, .72) 0%, rgba(8, 5, 6, .2) 22%, rgba(8, 5, 6, 0) 50%, rgba(8, 5, 6, .5) 100%); }

/* ことば */
.hero__copy { position: relative; z-index: 3; grid-column: 1; grid-row: 1; align-self: center; padding-bottom: clamp(10px, 3vh, 40px); }
.hero__tag { display: inline-block; padding: 7px 14px; border-radius: 100px; background: var(--fg); color: var(--ink); font-size: 13px; font-weight: 900; letter-spacing: .06em; line-height: 1.3; transform: rotate(-2deg); }
.hero__words { margin-top: clamp(14px, 2.4vh, 26px); font-weight: 900; font-size: clamp(30px, 4.5vw, 70px); line-height: 1.24; letter-spacing: .01em; text-shadow: 0 2px 30px rgba(8, 5, 6, .5); }
.hero__sub { margin-top: clamp(12px, 2vh, 22px); max-width: 30em; font-size: clamp(14px, 1.2vw, 17px); color: rgba(255, 244, 234, .86); line-height: 1.85; }
.hero__cta { margin-top: clamp(16px, 2.6vh, 30px); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.hero__free { font-size: 12px; letter-spacing: .08em; color: var(--dim); font-weight: 900; }

.btn { display: inline-flex; align-items: center; gap: 12px; padding: 8px 8px 8px 22px; border-radius: 100px; background: var(--fg); color: var(--ink); font-weight: 900; font-size: 15px; line-height: 1.3; letter-spacing: .02em; transition: transform .55s var(--pop); -webkit-tap-highlight-color: transparent; }
.btn b { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--fire); color: #fff; transition: transform .55s var(--pop), background-color .25s; }
.btn b svg { width: 14px; height: 14px; }
.btn:hover, .btn:focus-visible { transform: scale(1.05) rotate(-1.5deg); }
.btn:hover b, .btn:focus-visible b { transform: rotate(45deg) scale(1.1); background: var(--y); color: var(--ink); }
.btn:active { transform: scale(.95); }
.btn--line { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--line b { background: var(--fg); color: var(--ink); }
.btn--big { padding: 10px 10px 10px 28px; font-size: clamp(16px, 1.5vw, 20px); }
.btn--big b { width: 48px; height: 48px; }

/* Apple Watch(絵) */
.hero__watch { position: relative; z-index: 2; grid-column: 2; grid-row: 1 / span 3; align-self: start; justify-self: center; --s: clamp(200px, min(27vw, 42vh), 420px); }
.hero__watch::before { content: ""; position: absolute; left: 50%; top: 50%; width: 190%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--p) 55%, transparent), transparent 70%); opacity: .55; transition: background 1.2s; }
.watch { position: relative; width: var(--s); aspect-ratio: 100 / 188; font-size: calc(var(--s) / 100); rotate: 5deg; filter: drop-shadow(0 3em 4em rgba(0, 0, 0, .55)); }
.watch__strap { position: absolute; left: 13%; right: 13%; background: linear-gradient(90deg, #111114, #2c2c31 22%, #3a3a40 50%, #26262a 78%, #0d0d0f); }
.watch__strap--t { top: 0; height: 26%; border-radius: 10em 10em 0 0 / 5em 5em 0 0; }
.watch__strap--b { bottom: 0; height: 26%; border-radius: 0 0 10em 10em / 0 0 5em 5em; }
.watch__crown { position: absolute; right: -3.4em; top: 34%; width: 5em; height: 12em; border-radius: 1.6em; background: repeating-linear-gradient(180deg, #d5d5da 0 .45em, #6d6d74 .45em .9em); box-shadow: inset -1em 0 1em rgba(0, 0, 0, .45); }
.watch__side { position: absolute; right: -1.6em; top: 53%; width: 2.4em; height: 15em; border-radius: 1em; background: linear-gradient(90deg, #77777e, #cfcfd5); }
.watch__case { position: absolute; left: 0; right: 0; top: 19.5%; height: 61%; border-radius: 24em; padding: 2.8em; background: linear-gradient(140deg, #f1f1f4 0%, #8b8b93 22%, #3b3b41 50%, #9b9ba3 78%, #e6e6ea 100%); box-shadow: inset 0 0 0 .5em rgba(255, 255, 255, .2), 0 0 0 .3em rgba(0, 0, 0, .5); }
.watch__glass { position: relative; width: 100%; height: 100%; border-radius: 21.4em; background: #000; overflow: hidden; box-shadow: inset 0 0 0 2.6em #050505; color: #fff; font-family: var(--latin); font-weight: 700; line-height: 1; --wp: var(--p); }
.watch__glass::after { content: ""; position: absolute; inset: 0; background: linear-gradient(125deg, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, 0) 32%); pointer-events: none; }
.watch__glass > p { position: absolute; white-space: nowrap; }
.watch__ring { position: absolute; left: 50%; top: 55%; width: 98%; translate: -50% -50%; rotate: -90deg; overflow: visible; }
.watch__ring circle { fill: none; stroke-width: 4.6; stroke-linecap: round; }
.watch__ring .trk { stroke: color-mix(in srgb, var(--wp) 15%, transparent); }
.watch__ring .arc { stroke: color-mix(in srgb, var(--wp) 42%, transparent); stroke-dasharray: 100; stroke-dashoffset: 34; transition: stroke 1s; }
.watch__clock { right: 1.1em; top: .95em; font-size: 8.4em; font-weight: 600; }
.watch__left { left: 1.2em; top: 3.1em; font-size: 5.6em; font-weight: 600; display: flex; align-items: center; gap: .5em; padding: .5em .9em; border-radius: 3em; background: color-mix(in srgb, var(--water) 22%, transparent); color: var(--water); }
.watch__left i { width: 1.1em; height: 1.1em; border-radius: 50%; border: .2em solid currentColor; border-right-color: transparent; }
.watch__set { right: 1.7em; top: 3.7em; font-size: 5.4em; font-weight: 600; color: rgba(255, 255, 255, .56); }
.watch__phase { left: 0; right: 0; top: 4.1em; font-size: 8em; display: flex; justify-content: center; align-items: center; gap: .4em; color: var(--wp); transition: color .6s; }
.watch__phase svg { width: 1.15em; height: 1.15em; }
.watch__time { left: 0; right: 0; top: 2.05em; text-align: center; font-size: 22.5em; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.watch__bpm { left: 50%; top: 9.3em; translate: -50% 0; font-size: 8em; display: flex; align-items: baseline; gap: .4em; padding: .42em 1em .46em; border-radius: 3em; background: rgba(48, 209, 88, .17); color: #30d158; }
.watch__bpm svg { width: .95em; height: .95em; align-self: center; animation: beat 1s ease-in-out infinite; }
.watch__bpm b { font-weight: 700; font-variant-numeric: tabular-nums; }
.watch__bpm span { font-size: .62em; font-weight: 500; color: rgba(255, 255, 255, .6); }
.watch__stats { left: 0; right: 0; bottom: 1.5em; font-size: 4.3em; display: flex; justify-content: center; gap: .9em; font-family: var(--jp); font-weight: 900; color: rgba(255, 255, 255, .6); }
.watch__stats span { padding: .42em .8em; border-radius: 2em; background: rgba(255, 255, 255, .12); }
.watch__stats b { font-family: var(--latin); font-weight: 600; color: #fff; }
@keyframes beat { 0%, 100% { transform: scale(1); } 18% { transform: scale(1.28); } 36% { transform: scale(1); } }

/* 3 つの物: サウナ・水風呂・休憩 */
.trio { position: relative; z-index: 4; grid-column: 1; grid-row: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-bottom: clamp(8px, 2vh, 22px); }
.trio__b { --c: var(--fire); position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 7px 18px 7px 7px; border-radius: 100px; border: 1.5px solid var(--line); background: rgba(8, 5, 6, .35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); text-align: left; transition: transform .6s var(--pop), background-color .35s, border-color .35s, color .35s; }
.trio__b--water { --c: var(--water); }
.trio__b--rest { --c: var(--leaf); }
.trio__b i { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 36% 33% 37% 34% / 34% 37% 33% 36%; background: var(--c); color: var(--ink); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .16); transition: transform .6s var(--pop); }
.trio__b i svg { width: 22px; height: 22px; }
.trio__b span { display: grid; gap: 3px; line-height: 1; }
.trio__b b { font-family: var(--latin); font-weight: 700; font-size: 12px; letter-spacing: 0; }
.trio__b small { font-size: 11px; font-weight: 900; letter-spacing: .1em; color: var(--dim); transition: color .35s; }
.trio__b:hover { transform: translateY(-3px) rotate(-1.5deg); }
.trio__b:hover i { transform: rotate(-10deg) scale(1.08); }
.trio__b[aria-pressed="true"] { background: var(--c); border-color: var(--c); color: var(--ink); transform: scale(1.04) rotate(-1.5deg); }
.trio__b[aria-pressed="true"] i { background: var(--ink); color: var(--c); box-shadow: none; }
.trio__b[aria-pressed="true"] small { color: rgba(19, 19, 22, .7); }
.trio__hint { padding: 7px 13px; border-radius: 100px; border: 1.5px dashed rgba(255, 244, 234, .36); font-size: 11px; letter-spacing: .08em; line-height: 1.2; color: var(--dim); }
html:not(.js) .trio__hint { display: none; }

/* 大きな名前 */
.hero__title { position: relative; z-index: 3; grid-column: 1 / -1; grid-row: 3; font-family: var(--latin); font-weight: 900; font-size: 15.4vw; line-height: .86; letter-spacing: -.02em; user-select: none; pointer-events: none; }
.hero__title > span { display: flex; white-space: nowrap; overflow: hidden; padding: .04em 0 .02em; }
.hero__title .ch { display: block; background: linear-gradient(180deg, var(--fg) 34%, var(--p2) 78%, var(--p) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; will-change: transform; }
.js .hero__title .ch { transform: translate3d(0, 120%, 0) rotate(8deg); }
.js.is-in .hero__title .ch { transform: none; transition: transform .95s var(--pop); transition-delay: calc(var(--i) * 55ms + 300ms); }

/* 開いたとき */
.js [data-in] { opacity: 0; transform: translate3d(0, 18px, 0); }
.js.is-in [data-in] { opacity: 1; transform: none; transition: opacity .6s linear, transform .9s var(--pop); transition-delay: calc(var(--d, 0) * 70ms + 200ms); }
.js.is-in .hero__tag { transform: rotate(-2deg); }
.js .top { opacity: 0; }
.js.is-in .top { opacity: 1; transition: opacity .7s linear .7s; }
.js .hero__watch { opacity: 0; transform: translate3d(0, 40px, 0) scale(.9) rotate(-6deg); }
.js.is-in .hero__watch { opacity: 1; transform: none; transition: opacity .6s linear .5s, transform 1.2s var(--pop) .5s; }
.js .trio > * { opacity: 0; transform: translate3d(0, 20px, 0) scale(.8); }
.js.is-in .trio > * { opacity: 1; transform: none; transition: opacity .4s linear, transform .9s var(--pop), background-color .35s, border-color .35s, color .35s; transition-delay: calc(900ms + var(--k, 0) * 90ms), calc(900ms + var(--k, 0) * 90ms), 0s, 0s, 0s; }
.js.is-in .trio__b[aria-pressed="true"] { transform: scale(1.04) rotate(-1.5deg); }
.js.is-done .trio > * { transition-delay: 0s; }
.trio > :nth-child(2) { --k: 1; } .trio > :nth-child(3) { --k: 2; } .trio > :nth-child(4) { --k: 3; }
.js [data-rv] { opacity: 0; transform: translate3d(0, 30px, 0) rotate(1.2deg); }
.js [data-rv].in { opacity: 1; transform: none; transition: opacity .5s linear, transform .9s var(--pop); transition-delay: calc(var(--d, 0) * 90ms); }

/* ---------- 流れる帯 ---------- */
.band { position: relative; z-index: 2; margin: clamp(-18px, -1.4vw, -8px) -4vw 0; height: clamp(44px, 5.2vw, 72px); display: flex; align-items: center; overflow: hidden; background: var(--fire); color: var(--ink); transform: rotate(-1.6deg); }
.band__row { display: flex; width: max-content; will-change: transform; }
.band__row span { flex: none; white-space: pre; font-family: var(--latin); font-weight: 700; font-size: clamp(15px, 1.9vw, 27px); line-height: 1; text-transform: uppercase; padding-right: .3em; }

/* ---------- 節 ---------- */
.sec { position: relative; z-index: 1; padding: clamp(70px, 9vw, 150px) var(--g) 0; }
.sec__head { max-width: 980px; }
.sec__en { display: inline-flex; align-items: center; gap: 10px; font-family: var(--latin); font-weight: 600; font-size: 12px; letter-spacing: .02em; color: var(--ember); text-transform: uppercase; }
.sec__en::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; }
.sec__head h2 { margin-top: 14px; font-weight: 900; font-size: clamp(26px, 3.6vw, 54px); line-height: 1.3; letter-spacing: .01em; }
.sec__lead { margin-top: 14px; max-width: 34em; color: var(--dim); font-size: clamp(14px, 1.2vw, 17px); }

/* 流れ: 3 枚の札 */
.steps { margin-top: clamp(28px, 4vw, 56px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 34px); }
.step { --c: var(--fire); --c2: #5a0d06; position: relative; --rad: clamp(24px, 2.6vw, 40px); }
.step--water { --c: var(--water); --c2: #06405e; margin-top: clamp(0px, 3vw, 46px); }
.step--rest { --c: var(--leaf); --c2: #0b4a33; margin-top: clamp(0px, 6vw, 92px); }
.step__slab { position: absolute; inset: 0; border-radius: var(--rad); background: var(--c); }
.step__card { position: relative; height: 100%; border-radius: var(--rad); padding: clamp(18px, 2vw, 30px); background: linear-gradient(170deg, var(--c2) 0%, #0d0b0c 62%); border: 1.5px solid color-mix(in srgb, var(--c) 34%, transparent); transform: translate3d(-6px, -7px, 0); transition: transform .65s var(--pop); overflow: hidden; }
.step:hover .step__card { transform: translate3d(-13px, -15px, 0) rotate(-.6deg); }
.step__no { display: inline-grid; place-items: center; min-width: 46px; height: 30px; padding: 0 12px; border-radius: 100px; background: var(--c); color: var(--ink); font-family: var(--latin); font-weight: 700; font-size: 12px; line-height: 1; }
.face { margin: clamp(16px, 2vw, 28px) auto clamp(18px, 2vw, 28px); width: min(100%, 250px); aspect-ratio: 1 / .94; border-radius: 24%; background: #000; border: 6px solid #2a2a2e; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .25), 0 26px 50px -18px color-mix(in srgb, var(--c) 70%, transparent); display: grid; align-content: center; justify-items: center; gap: 8%; font-family: var(--latin); line-height: 1; container-type: inline-size; position: relative; }
.face::before { content: ""; position: absolute; inset: 9%; border-radius: 50%; border: 5px solid color-mix(in srgb, var(--c) 26%, transparent); border-top-color: color-mix(in srgb, var(--c) 70%, transparent); border-right-color: color-mix(in srgb, var(--c) 70%, transparent); rotate: 20deg; }
.face p { position: relative; }
.face__p { display: flex; align-items: center; gap: .4em; color: var(--c); font-weight: 700; font-size: 7.2cqw; }
.face__p svg { width: 1.15em; height: 1.15em; }
.face__t { font-weight: 700; font-size: 23cqw; letter-spacing: -.03em; }
.face__b { display: flex; align-items: baseline; gap: .4em; padding: .42em 1em .46em; border-radius: 3em; background: rgba(48, 209, 88, .17); color: rgba(255, 255, 255, .6); font-size: 5cqw; font-weight: 500; }
.face__b svg { width: 1.4em; height: 1.4em; align-self: center; color: #30d158; }
.face__b b { font-size: 1.6em; font-weight: 700; color: #30d158; }
.step h3 { font-weight: 900; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.3; display: flex; flex-direction: column; gap: 4px; }
.step h3 span { font-family: var(--latin); font-weight: 700; font-size: 12px; letter-spacing: 0; color: var(--c); text-transform: uppercase; }
.step__card > p:last-child { margin-top: 10px; color: rgba(255, 244, 234, .8); font-size: 15px; }

/* ---------- 心拍の線の節(まず、ふつうに縦に並べた形) ---------- */
.note { margin-top: 18px; font-size: 12px; color: rgba(255, 244, 234, .5); letter-spacing: .04em; }
.story { position: relative; z-index: 1; margin-top: clamp(70px, 9vw, 150px); background: #060405; }
.stage { position: relative; display: flex; flex-direction: column; gap: clamp(22px, 3.4vw, 44px); padding: clamp(50px, 7vw, 100px) var(--g); overflow: hidden; }
.stage__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.stage__bg i { position: absolute; inset: 0; opacity: 0; will-change: opacity; }
.stage__bg [data-bg="sauna"] { background: radial-gradient(120% 90% at 22% 112%, rgba(255, 58, 28, .6), rgba(120, 14, 6, .3) 40%, transparent 68%); }
.stage__bg [data-bg="water"] { background: radial-gradient(120% 96% at 52% -14%, rgba(25, 170, 255, .5), rgba(8, 70, 120, .3) 42%, transparent 70%); }
.stage__bg [data-bg="rest"] { background: radial-gradient(120% 90% at 82% 112%, rgba(47, 217, 160, .42), rgba(10, 80, 70, .26) 42%, transparent 70%); }
.stage__bg [data-bg="all"] { opacity: 1; background: radial-gradient(70% 70% at 10% 106%, rgba(255, 90, 60, .3), transparent 70%), radial-gradient(70% 70% at 50% -8%, rgba(70, 200, 255, .2), transparent 70%), radial-gradient(70% 70% at 92% 106%, rgba(61, 220, 132, .24), transparent 70%); }
.chaps { display: contents; }
.chap { position: relative; z-index: 2; order: 3; max-width: 640px; }
.chap--0 { order: 1; }
.stage__graph { position: relative; z-index: 1; order: 2; height: clamp(200px, 30vw, 340px); margin: 0 calc(var(--g) * -1); }
.stage__cv { display: block; width: 100%; height: 100%; }
html:not(.js) .stage__cv { display: none; }
.stage__still { display: block; width: 100%; height: 100%; }
.stage__dot { display: none; }
.chap__en { display: inline-flex; align-items: center; gap: 12px; font-family: var(--latin); font-weight: 700; font-size: clamp(13px, 1.2vw, 16px); letter-spacing: 0; text-transform: uppercase; }
.chap__en .xtag { font-size: 30px; }
.pc { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 36% 33% 37% 34% / 34% 37% 33% 36%; color: var(--ink); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .16); }
.pc svg { width: 21px; height: 21px; }
.pc--f { background: var(--fire); } .pc--w { background: var(--water); } .pc--l { background: var(--leaf); }
.chap__h { margin-top: 14px; font-weight: 900; font-size: clamp(26px, 3.6vw, 54px); line-height: 1.3; letter-spacing: .01em; }
.chap__h--big { font-size: clamp(38px, 6.2vw, 96px); line-height: 1.16; }
.chap__p { margin-top: 12px; max-width: 30em; font-size: clamp(14px, 1.2vw, 17px); color: rgba(255, 244, 234, .84); line-height: 1.85; }
.hud, .rail, .hint { display: none; }
.stage__note { position: relative; z-index: 2; order: 9; font-size: 12px; color: rgba(255, 244, 234, .5); letter-spacing: .04em; }

/* ---------- 心拍の線の節(スクロールで進む形。JS が .scrolly を付ける) ---------- */
.scrolly .story { height: 540vh; }
.scrolly .stage { position: sticky; top: 0; display: block; height: 100vh; height: 100svh; padding: 0; }
.scrolly .chaps { display: block; position: absolute; z-index: 3; left: var(--g); top: clamp(60px, 9vh, 104px); width: min(700px, calc(100% - var(--g) * 2)); }
.scrolly .chap { position: absolute; left: 0; top: 0; width: 100%; max-width: none; opacity: 0; visibility: hidden; transform: translate3d(0, 22px, 0); transition: opacity .3s linear, transform .45s var(--out), visibility 0s linear .3s; }
.scrolly .chap.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .45s linear .12s, transform .8s var(--pop) .12s, visibility 0s; }
.scrolly .stage__graph { position: absolute; left: 0; right: 0; top: 50%; height: 36%; margin: 0; }
.scrolly .stage__dot { --c: var(--fire); display: block; position: absolute; left: 0; top: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; will-change: transform; }
.stage__dot::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; background: var(--c); opacity: .36; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(.8); } 50% { transform: scale(1.3); } }
.scrolly .hud { --p: var(--fire); display: block; position: absolute; z-index: 3; right: var(--g); top: clamp(60px, 9vh, 104px); text-align: right; font-family: var(--latin); line-height: 1; }
.hud__phase { display: inline-flex; align-items: center; gap: 12px; padding: 8px 14px; border-radius: 100px; background: var(--p); color: var(--ink); font-weight: 700; font-size: clamp(11px, 1vw, 14px); transition: background-color .5s; }
.hud__phase span + span { padding-left: 12px; border-left: 1.5px solid rgba(19, 19, 22, .4); font-variant-numeric: tabular-nums; }
.hud__bpm { margin-top: 10px; display: flex; justify-content: flex-end; align-items: baseline; gap: .08em; font-size: clamp(64px, 12vw, 190px); font-weight: 800; letter-spacing: -.05em; }
.hud__bpm b { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--fg); }
.hud__bpm svg { align-self: center; width: .26em; height: .26em; margin-right: .1em; color: var(--p); transition: color .5s; animation: beat 1s ease-in-out infinite; }
.hud__bpm span { font-size: .13em; font-weight: 600; letter-spacing: 0; color: var(--dim); }
.scrolly .rail { display: flex; position: absolute; z-index: 4; left: var(--g); bottom: calc(26px + env(safe-area-inset-bottom)); gap: 8px; }
.rail__b { --c: var(--fire); display: inline-flex; align-items: center; gap: 9px; padding: 6px 16px 6px 6px; border-radius: 100px; border: 1.5px solid var(--line); background: rgba(8, 5, 6, .6); font-weight: 900; font-size: 13px; letter-spacing: .08em; line-height: 1; transition: transform .6s var(--pop), background-color .35s, color .35s, border-color .35s; }
.rail__b--w { --c: var(--water); } .rail__b--l { --c: var(--leaf); }
.rail__b i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 36% 33% 37% 34% / 34% 37% 33% 36%; background: var(--c); color: var(--ink); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .16); transition: transform .6s var(--pop); }
.rail__b i svg { width: 18px; height: 18px; }
.rail__b:hover { transform: translateY(-3px) rotate(-2deg); }
.rail__b:hover i { transform: rotate(-12deg) scale(1.1); }
.rail__b.is-on { background: var(--c); border-color: var(--c); color: var(--ink); transform: scale(1.06) rotate(-2deg); }
.rail__b.is-on i { background: var(--ink); color: var(--c); box-shadow: none; }
.scrolly .hint { display: flex; position: absolute; z-index: 4; right: var(--g); bottom: calc(26px + env(safe-area-inset-bottom)); align-items: center; gap: 10px; font-size: 12px; font-weight: 900; letter-spacing: .1em; color: var(--dim); }
.hint b { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1.5px dashed rgba(255, 244, 234, .5); color: var(--fg); animation: nod 1.6s var(--pop) infinite; }
.hint b svg { width: 14px; height: 14px; }
@keyframes nod { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(7px); } }
.scrolly .stage__note { position: absolute; z-index: 3; right: var(--g); bottom: calc(38px + env(safe-area-inset-bottom)); opacity: 0; }

/* 振り返り(iPhone): 3 枚の札 */
.cards { margin-top: clamp(26px, 3.6vw, 52px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 26px); }
.mini { border-radius: clamp(22px, 2.4vw, 36px); border: 1.5px solid var(--line); background: linear-gradient(180deg, #1b1516, #0e0b0c); padding: clamp(18px, 2vw, 30px); display: flex; flex-direction: column; }
.mini__k { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: clamp(17px, 1.5vw, 22px); letter-spacing: .04em; line-height: 1.4; }
.mini__k::before { content: ""; width: 12px; height: 12px; flex: none; border-radius: 34%; background: var(--y); }
.mini--ins .mini__k::before { background: var(--water); }
.mini--fr .mini__k::before { background: var(--leaf); }
.mini__v { margin-top: 10px; font-family: var(--latin); line-height: 1; display: flex; align-items: baseline; gap: 6px; }
.mini__v b { font-weight: 800; font-size: clamp(54px, 6vw, 92px); letter-spacing: -.04em; background: linear-gradient(180deg, var(--fg) 30%, var(--ember)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mini__v span { font-weight: 500; font-size: clamp(16px, 1.5vw, 22px); color: var(--dim); }
.mini__t { margin-top: auto; padding-top: 14px; font-size: 14px; color: rgba(255, 244, 234, .78); }
.heat { margin-top: 16px; display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; max-width: 320px; }
.heat i { aspect-ratio: 1; border-radius: 28%; background: rgba(255, 255, 255, .08); }
.heat i[data-v="1"] { background: rgba(70, 200, 255, .38); }
.heat i[data-v="2"] { background: rgba(70, 200, 255, .7); }
.heat i[data-v="3"] { background: var(--water); box-shadow: 0 0 10px rgba(70, 200, 255, .6); }
.pals { margin-top: 18px; display: flex; padding-left: 4px; }
.pals i { width: clamp(46px, 4.6vw, 66px); aspect-ratio: 1; border-radius: 36% 33% 37% 34% / 34% 37% 33% 36%; background: var(--fire); margin-left: -12px; box-shadow: 0 0 0 4px #150f10, inset 0 -5px 0 rgba(0, 0, 0, .16); }
.pals i:nth-child(1) { margin-left: 0; rotate: -6deg; } .pals i:nth-child(2) { background: var(--water); rotate: 4deg; } .pals i:nth-child(3) { background: var(--leaf); rotate: -3deg; } .pals i:nth-child(4) { background: var(--y); rotate: 7deg; }

/* メニュー */
.mgrid { margin-top: clamp(26px, 3.6vw, 52px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mgrid li { padding: clamp(18px, 2vw, 28px); border-radius: clamp(20px, 2.2vw, 32px); border: 1.5px solid var(--line); transition: background-color .3s, color .3s, border-color .3s, transform .6s var(--pop); }
.mgrid li:hover { background: var(--ember); border-color: var(--ember); color: var(--ink); transform: rotate(-1.5deg) scale(1.03); }
.m__en { font-family: var(--latin); font-weight: 700; font-size: clamp(17px, 1.7vw, 25px); letter-spacing: -.02em; line-height: 1.15; }
.m__ja { margin-top: 10px; font-size: 14px; font-weight: 900; opacity: .78; line-height: 1.5; }
.m__ja small { display: block; font-size: 12px; opacity: .8; }
.more { margin-top: 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.more li { padding: clamp(18px, 2vw, 28px); border-radius: clamp(20px, 2.2vw, 32px); background: #141315; }
.more h3 { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.4; }
.more h3::before { content: ""; width: 12px; height: 12px; flex: none; border-radius: 34%; background: var(--fire); }
.more li:nth-child(2) h3::before { background: var(--water); }
.more li:nth-child(3) h3::before { background: var(--leaf); }
.more li:nth-child(4) h3::before { background: var(--ember); }
.more li:nth-child(5) h3::before { background: var(--y); }
.more li:nth-child(6) h3::before { background: #ff9ec4; }
.more p small { font-size: .86em; opacity: .8; }
.more p { margin-top: 8px; font-size: 14px; color: rgba(255, 244, 234, .76); }

/* 画面の絵 */
.strip { margin: clamp(24px, 3.4vw, 48px) calc(var(--g) * -1) 0; padding: 6px var(--g) 18px; display: flex; gap: clamp(12px, 1.6vw, 22px); overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: rgba(255, 244, 234, .3) transparent; }
.strip li { flex: none; height: clamp(430px, 45.4vw, 628px); scroll-snap-align: center; border-radius: clamp(18px, 2vw, 28px); overflow: hidden; border: 1.5px solid var(--line); transition: transform .6s var(--pop); }
.strip img { width: auto; height: 100%; max-width: none; }
.strip li:nth-child(odd) { rotate: -1.2deg; } .strip li:nth-child(even) { rotate: 1.2deg; margin-top: 18px; }
.strip li:hover { transform: translateY(-8px) scale(1.02); }

/* 対応とサポート */
.facts { margin-top: clamp(22px, 3vw, 40px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 1120px; }
.facts__row { display: grid; grid-template-columns: 5.5em 1fr; column-gap: 16px; align-items: center; padding: clamp(16px, 1.8vw, 24px) clamp(18px, 2.2vw, 30px); border: 1.5px solid var(--line); border-radius: clamp(20px, 2.2vw, 30px); }
.facts dt { font-size: 13px; letter-spacing: .08em; font-weight: 900; color: var(--dim); }
.facts dd { font-weight: 900; font-size: clamp(16px, 1.6vw, 22px); line-height: 1.45; }
.facts dd small { font-size: .72em; opacity: .7; white-space: nowrap; }
.facts dd .dev { display: inline-block; }
.links { margin-top: clamp(22px, 3vw, 36px); display: flex; flex-wrap: wrap; gap: 12px; }
.contact { margin-top: clamp(22px, 3vw, 36px); font-size: 14px; color: var(--dim); display: grid; gap: 4px; }
.mail { justify-self: start; font-family: var(--latin); font-weight: 600; font-size: clamp(17px, 2vw, 28px); letter-spacing: -.03em; color: var(--fg); overflow-wrap: anywhere; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat; padding-bottom: 3px; transition: background-size .5s var(--out); }
.mail:hover { background-size: 0 2px; background-position: 100% 100%; }
.care { margin-top: clamp(20px, 2.6vw, 32px); max-width: 46em; font-size: 12.5px; color: rgba(255, 244, 234, .5); }

/* しめ */
.outro { position: relative; z-index: 1; margin-top: clamp(70px, 9vw, 140px); padding: clamp(50px, 7vw, 110px) var(--g) clamp(56px, 7vw, 110px); text-align: center; background: radial-gradient(90% 120% at 50% 120%, #c4200d 0%, #4a0703 46%, transparent 76%); display: grid; justify-items: center; gap: clamp(22px, 3vw, 40px); }
.outro__x { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .32em; font-family: var(--latin); font-weight: 800; font-size: clamp(24px, 5.2vw, 78px); letter-spacing: -.035em; line-height: 1.1; }
/* 黄色い角丸の「×」の札(屋号のしるし) */
.xtag { position: relative; display: inline-block; flex: none; width: .86em; height: .86em; border-radius: 30% 27% 31% 28% / 28% 31% 27% 30%; background: var(--y); rotate: 9deg; box-shadow: inset 0 -.045em 0 rgba(0, 0, 0, .16); transition: rotate .9s var(--pop); }
.xtag::before, .xtag::after { content: ""; position: absolute; left: 50%; top: 50%; width: 54%; height: .09em; border-radius: 1em; background: var(--ink); transform: translate(-50%, -50%) rotate(45deg); }
.xtag::after { transform: translate(-50%, -50%) rotate(-45deg); }
.outro__x:hover .xtag { rotate: 189deg; }

/* 足もとの帯の色(このサイトの地に合わせる) */
footer.fam { --fam-bg: #080506; --fam-fg: #fff4ea; --fam-line: rgba(255, 244, 234, .22); font-family: var(--jp); }

/* ---------- 中くらいの幅(タブレット) ---------- */
@media (max-width: 1080px) {
  .mgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini--fr { grid-column: 1 / -1; }
}

@media (min-width: 761px) and (max-width: 1080px) and (min-height: 860px) {
  .hero__watch { --s: clamp(200px, min(36vw, 42vh), 420px); align-self: center; }
  .hero__copy { align-self: start; padding-top: 4vh; }
}

/* ---------- スマホ ---------- */
@media (max-width: 760px) {
  .nav { display: none; }
  .hero { --ws: clamp(140px, min(52vw, 30vh), 240px); grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(calc(var(--ws) * 1.6 + 12px), 1fr) auto auto; padding-top: calc(78px + env(safe-area-inset-top)); row-gap: 0; }
  .hero__copy { grid-row: 1; align-self: start; padding-bottom: 0; }
  .hero__tag { font-size: 11.5px; padding: 6px 12px; }
  .hero__words { font-size: clamp(22px, 7.1vw, 40px); margin-top: 12px; }
  .hero__sub { font-size: 13px; line-height: 1.7; margin-top: 8px; }
  .hero__cta { margin-top: 12px; }
  .hero__free { display: none; }
  .hero__watch { grid-column: 1; grid-row: 2 / span 3; --s: var(--ws); margin: 12px 0 0; }
  .trio { grid-row: 3; flex-wrap: nowrap; justify-content: center; gap: 6px; padding: 0 0 10px; }
  .trio__b { padding: 5px 11px 5px 5px; gap: 6px; }
  .trio__b i { width: 32px; height: 32px; }
  .trio__b i svg { width: 17px; height: 17px; }
  .trio__b b { font-size: 9.5px; }
  .trio__b small { font-size: 10px; }
  .trio__hint { display: none; }
  .hero__title { grid-row: 4; font-size: 15.6vw; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .step--water, .step--rest { margin-top: 0; }
  .step__card { display: grid; grid-template-columns: 116px 1fr; column-gap: 16px; align-items: center; }
  .step__no { grid-column: 1 / -1; justify-self: start; margin-bottom: 14px; }
  .face { margin: 0; width: 116px; grid-row: 2 / span 2; border-width: 4px; }
  .step h3 { align-self: end; }
  .step__card > p:last-child { margin-top: 6px; font-size: 14px; align-self: start; word-break: normal; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .mini--fr { grid-column: auto; }
  .more { grid-template-columns: minmax(0, 1fr); }
  .scrolly .story { height: 470vh; }
  .scrolly .chaps { top: calc(52px + env(safe-area-inset-top)); }
  .chap__h { font-size: clamp(24px, 7.4vw, 40px); }
  .chap__h--big { font-size: clamp(36px, 11.4vw, 60px); }
  .chap__p { font-size: 13.5px; line-height: 1.75; }
  .scrolly .hud { top: auto; right: var(--g); bottom: calc(70px + env(safe-area-inset-bottom)); }
  .hud__bpm { font-size: clamp(54px, 17vw, 84px); margin-top: 6px; }
  .hud__phase { font-size: 10px; padding: 6px 11px; gap: 9px; }
  .scrolly .rail { gap: 6px; bottom: calc(18px + env(safe-area-inset-bottom)); }
  .rail__b { padding: 4px 11px 4px 4px; gap: 6px; font-size: 12px; letter-spacing: .04em; }
  .rail__b i { width: 30px; height: 30px; }
  .rail__b i svg { width: 16px; height: 16px; }
  .scrolly .hint { bottom: calc(18px + env(safe-area-inset-bottom)); }
  .hint span { display: none; }
  .scrolly .stage__note { right: auto; left: var(--g); bottom: calc(66px + env(safe-area-inset-bottom)); font-size: 10.5px; max-width: 46%; line-height: 1.5; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .strip li { height: 116vw; }
}
/* せまいスマホ: 「対応とサポート」の表は、名前を上・中身を下に */
@media (max-width: 480px) {
  .facts__row { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
}
@media (max-width: 389px) {
  .trio__b { padding: 4px 12px 4px 4px; gap: 7px; }
  .trio__b i { width: 30px; height: 30px; }
  .trio__b b { display: none; }
  .trio__b small { font-size: 12.5px; color: inherit; }
  .mgrid { grid-template-columns: minmax(0, 1fr); }
  .btn { font-size: 14px; padding-left: 18px; }
  .rail__b span { display: none; }
  .rail__b { padding: 4px; }
}
/* 背の低いスマホ: 章の説明の文をしまって、線の場所を広くとる */
@media (max-width: 760px) and (max-height: 620px) {
  .scrolly .chap__p { display: none; }
  .hud__bpm { font-size: 50px; }
}
/* 高さの足りない画面(横長の小さな窓)では、時計を小さくする */
@media (min-width: 761px) and (max-height: 700px) {
  .hero__words { font-size: clamp(28px, 3.8vw, 52px); }
  .hero__sub { display: none; }
}

/* ---------- 動きを減らす設定 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-in], .js [data-rv], .js .top, .js .hero__title .ch, .js .hero__watch, .js .trio > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .air__l i, .watch__bpm svg { animation: none; }
  .air__l { transition: none; }
  .hud__bpm svg, .hint b, .stage__dot::after { animation: none; }
}
