/* 割り勘と男気じゃんけんの電卓 — 明るいクリーム地・元気な橙を1色・角ゴシック */
@font-face { font-family: "ZKG"; src: url("/fonts/zkg-700.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "ZKG"; src: url("/fonts/zkg-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --bg: #FFF6E8;
  --surface: #FFFFFF;
  --ink: #24190E;
  --ink-2: #6A5641;
  --line: #EBDDC7;
  --brand: #C9490A;
  --brand-press: #A93D07;
  --brand-ink: #B13F07;
  --brand-soft: #FFE7D3;
  --red: #C62A2A;
  --red-soft: #FDE3E0;
  --green: #146E40;
  --green-soft: #DDF3E5;
  --dark: #24190E;
  --dark-press: #3A2B1C;
  --radius: 18px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --font: "ZKG", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 106.25%; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-weight: 700; font-size: 1rem; line-height: 1.55;
  -webkit-tap-highlight-color: transparent; overflow-x: hidden;
  overflow-wrap: break-word; line-break: strict;
}
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, p, ol, dl, dd { margin: 0; padding: 0; }
small { font-size: .45em; font-weight: 900; margin-left: .08em; }

#app { max-width: 480px; margin: 0 auto; min-height: 100dvh; display: grid; }
.screen {
  grid-area: 1 / 1; display: flex; flex-direction: column; min-height: 100dvh; min-width: 0;
  padding: env(safe-area-inset-top) max(16px, env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.screen > main, .sheet { flex: 1; display: flex; flex-direction: column; min-width: 0; }

/* 画面の出入り（入りはなめらかに・出は短く） */
.screen.is-in-fwd { animation: in-fwd .28s var(--ease-out) both; }
.screen.is-in-back { animation: in-back .28s var(--ease-out) both; }
.screen.is-in-up { animation: in-up .32s var(--ease-out) both; }
.screen.is-out { animation: out .16s var(--ease-out) both; pointer-events: none; }
@keyframes in-fwd { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes in-back { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes in-up { from { opacity: 0; transform: translateY(44px); } to { opacity: 1; transform: none; } }
@keyframes out { to { opacity: 0; } }

/* 上の帯 */
.top { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; min-height: 60px; gap: 8px; }
.top--home { grid-template-columns: 1fr auto; }
.top__title { text-align: center; font-size: 1.12rem; font-weight: 900; letter-spacing: .01em; outline: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top__spacer { width: 48px; }
.back, .close {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  font-size: 2.3rem; line-height: 1; font-weight: 900; color: var(--ink); padding-bottom: 4px;
  transition: background-color .15s, transform .12s var(--ease-out);
}
.close { font-size: 1.35rem; padding-bottom: 0; background: var(--surface); box-shadow: 0 0 0 2px var(--line) inset; }
.back:active, .close:active { background: var(--line); transform: scale(.94); }

.sound {
  display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 14px; border-radius: 999px;
  background: var(--surface); box-shadow: 0 0 0 2px var(--line) inset; font-size: .95rem; color: var(--ink-2);
  transition: background-color .2s, color .2s, transform .12s var(--ease-out);
}
.sound[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand-ink); box-shadow: 0 0 0 2px var(--brand) inset; }
.sound:active { transform: scale(.95); }
.sound__icon { font-size: 1.15rem; }

/* 画面1 */
.home { justify-content: center; gap: 28px; padding-bottom: 8px; }
.home__brand { text-align: center; display: grid; justify-items: center; gap: 10px; }
.home__icon { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 6px 18px rgba(120, 60, 10, .18); animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-5px) rotate(2deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.home__title { font-size: clamp(2rem, 9.2vw, 2.5rem); font-weight: 900; line-height: 1.18; letter-spacing: .01em; outline: none; }
.home__lead { font-size: 1.12rem; color: var(--ink-2); }
.home__choices { display: grid; gap: 14px; }
.big-choice {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 120px; padding: 18px 18px 18px 20px;
  border-radius: 24px; text-align: left; color: #fff;
  transition: transform .14s var(--ease-out), background-color .15s, box-shadow .2s;
  box-shadow: 0 10px 24px -12px rgba(80, 40, 5, .55);
}
.big-choice--split { background: var(--brand); }
.big-choice--split:active { background: var(--brand-press); }
.big-choice--otoko { background: var(--dark); }
.big-choice--otoko:active { background: var(--dark-press); }
.big-choice:active { transform: scale(.97); box-shadow: 0 4px 12px -8px rgba(80, 40, 5, .5); }
.big-choice__emoji { font-size: 2.6rem; line-height: 1; flex: none; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; background: rgba(255, 255, 255, .16); }
.big-choice__text { flex: 1; display: grid; gap: 2px; min-width: 0; }
.big-choice__name { font-size: clamp(1.05rem, 5.4vw, 1.42rem); font-weight: 900; line-height: 1.3; }
.big-choice__sub { font-size: .95rem; }
.big-choice__arrow { font-size: 2.2rem; font-weight: 900; opacity: .8; transition: transform .2s var(--ease-out); }
.big-choice:active .big-choice__arrow { transform: translateX(4px); }
.link { align-self: center; min-height: 48px; padding: 0 20px; font-size: 1rem; color: var(--brand-ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; border-radius: 12px; }
.link:active { background: var(--brand-soft); }

/* 画面2 */
.input { gap: 12px; }
.amount {
  background: var(--surface); border-radius: 22px; padding: 12px 18px 10px; text-align: right;
  box-shadow: 0 0 0 2px var(--line) inset; display: grid; transition: box-shadow .2s;
}
.amount__label { text-align: left; font-size: .95rem; color: var(--ink-2); }
.amount__value { font-size: clamp(2.6rem, 13.5vw, 3.4rem); font-weight: 900; line-height: 1.15; letter-spacing: .01em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: clip; transition: color .15s; }
.amount__value.is-zero { color: #9C8870; }
.amount__value small { font-size: .5em; }
.amount.is-bump .amount__value { animation: bump .18s var(--ease-out); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.035); } 100% { transform: scale(1); } }
.is-shake { animation: shake .32s ease-in-out; }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
.amount.is-shake { box-shadow: 0 0 0 2px var(--red) inset; }

.people { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface); border-radius: 22px; padding: 8px 8px 8px 18px; box-shadow: 0 0 0 2px var(--line) inset; }
.people__label { font-size: .95rem; color: var(--ink-2); }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper__btn {
  width: 56px; height: 56px; border-radius: 16px; background: var(--brand-soft); color: var(--brand-ink);
  font-size: 1.9rem; font-weight: 900; line-height: 1; display: grid; place-items: center;
  transition: transform .12s var(--ease-out), background-color .15s, opacity .2s;
}
.stepper__btn:active { transform: scale(.92); background: #FFD5B3; }
.stepper__btn.is-limit { opacity: .38; }
.stepper__value { min-width: 92px; text-align: center; font-size: 2.1rem; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.stepper__value.is-bump { animation: bump .18s var(--ease-out); }
.stepper__value small { font-size: .5em; }

.hint { text-align: center; font-size: 1rem; color: var(--ink-2); min-height: 1.6em; transition: color .2s; }
.hint.is-warn { color: var(--red); }

.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: auto; }
.key {
  min-height: clamp(52px, 8vh, 66px); border-radius: 16px; background: var(--surface);
  font-size: 1.75rem; font-weight: 900; box-shadow: 0 1px 0 2px var(--line);
  transition: transform .08s var(--ease-out), background-color .12s, box-shadow .12s;
}
.key--sub { font-size: 1.06rem; color: var(--ink-2); background: #FBF1E2; }
.key[data-key="back"] { font-size: 1.6rem; }
.key:active { transform: scale(.95); background: var(--brand-soft); box-shadow: 0 0 0 2px var(--line); }

/* ボタン */
.primary {
  width: 100%; min-height: 58px; border-radius: 18px; background: var(--brand); color: #fff;
  font-size: 1.15rem; font-weight: 900; letter-spacing: .02em;
  transition: transform .12s var(--ease-out), background-color .2s, color .2s;
}
.primary:not(:disabled):active { transform: scale(.97); background: var(--brand-press); }
.primary:disabled { background: #EADFCF; color: #8F7E69; }
.secondary {
  flex: 1; min-height: 52px; border-radius: 16px; background: var(--surface); color: var(--ink);
  font-size: 1rem; font-weight: 900; box-shadow: 0 0 0 2px var(--line) inset; padding: 0 12px;
  transition: transform .12s var(--ease-out), background-color .15s;
}
.secondary:active { transform: scale(.97); background: #FBF1E2; }
.secondary--wide { width: 100%; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.secondary.is-busy { pointer-events: none; opacity: .7; }
.actions { display: grid; gap: 10px; margin-top: auto; padding-top: 14px; }
.actions__row { display: flex; gap: 10px; }
/* 主のボタンは、中身が長くても画面の下に見えたままにする（下から地の色でぼかした帯） */
.actions {
  position: sticky; bottom: 0; z-index: 3; pointer-events: none;
  margin-inline: -16px; padding: 18px 16px 10px;
  background: linear-gradient(to bottom, rgba(255, 246, 232, 0), var(--bg) 18px);
}
.actions > * { pointer-events: auto; }
/* 使い方の紙は固定しない（上の ✕ がいつも見えている・紙の角丸の外へ帯がはみ出さないように） */
.sheet .actions { position: static; background: none; margin-inline: 0; padding: 14px 0 0; pointer-events: auto; }
/* 画面の最後のボタン: 画面の下の余白を帯の中に入れる（止まった時もボタンが下の端に付かない） */
.actions--end { margin-bottom: calc(-16px - env(safe-area-inset-bottom)); padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
.actions + .actions__row { padding-top: 0; }

.section-title { font-size: 1.06rem; font-weight: 900; margin-bottom: 10px; }

/* 画面3 */
.result { gap: 18px; }
.per { display: grid; justify-items: center; gap: 4px; padding: 18px 12px 20px; background: var(--surface); border-radius: 26px; box-shadow: 0 0 0 2px var(--line) inset; text-align: center; }
.per__label { font-size: 1.25rem; color: var(--ink-2); }
.per__value { font-size: clamp(3.6rem, 19vw, 5.4rem); font-weight: 900; line-height: 1.08; letter-spacing: .005em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.per__value small { font-size: .42em; }
.rest, .just { display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px; border-radius: 999px; font-size: 1.2rem; font-weight: 900; margin-top: 4px; }
.rest { background: var(--red-soft); color: var(--red); }
.just { background: var(--green-soft); color: var(--green); }
.per__meta { font-size: 1rem; color: var(--ink-2); margin-top: 6px; }
.screen.is-in-fwd .per__value { animation: count-in .5s var(--ease-out) .08s both; }
.screen.is-in-fwd .rest, .screen.is-in-fwd .just { animation: pop .42s var(--ease-out) .26s both; }
@keyframes count-in { from { opacity: 0; transform: translateY(14px) scale(.92); } to { opacity: 1; transform: none; } }

.ways__list { display: grid; gap: 10px; }
.way {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 68px; padding: 10px 14px; border-radius: var(--radius);
  background: var(--surface); text-align: left; box-shadow: 0 0 0 2px var(--line) inset;
  transition: box-shadow .18s, background-color .18s, transform .12s var(--ease-out);
}
.way:active { transform: scale(.98); }
.way[aria-checked="true"] { background: var(--brand-soft); box-shadow: 0 0 0 3px var(--brand) inset; }
.way__emoji { font-size: 1.7rem; width: 40px; text-align: center; flex: none; }
.way__text { flex: 1; display: grid; min-width: 0; }
.way__name { font-size: 1.08rem; font-weight: 900; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.way__sub { font-size: .95rem; color: var(--ink-2); font-weight: 700; }
.way__check { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 1rem; font-weight: 900; color: #fff; background: var(--brand); transform: scale(0); transition: transform .26s var(--ease-spring); flex: none; }
.way[aria-checked="true"] .way__check { transform: scale(1); }
.badge { font-style: normal; font-size: .95rem; color: var(--brand-ink); background: #fff; border-radius: 999px; padding: 1px 9px; box-shadow: 0 0 0 1.5px var(--brand) inset; }

/* 画面4・5 */
.game { gap: 14px; }
.game__stake { text-align: center; font-size: 1.02rem; color: var(--ink-2); }
.game__stake--big { font-size: 1.3rem; color: var(--ink); font-weight: 900; }
.hand-game { display: grid; gap: 12px; }
.stage { display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 168px; padding: 14px; background: var(--surface); border-radius: 26px; box-shadow: 0 0 0 2px var(--line) inset; text-align: center; overflow: hidden; }
.stage__emoji, .stage__count { font-size: 4.2rem; line-height: 1.1; display: block; }
.stage__count { font-weight: 900; font-variant-numeric: tabular-nums; color: var(--brand); font-size: 4.6rem; }
.stage__text { font-size: 1.5rem; font-weight: 900; line-height: 1.3; }
.is-pop { animation: pop .42s var(--ease-spring) both; }
@keyframes pop { 0% { opacity: 0; transform: scale(.55); } 100% { opacity: 1; transform: scale(1); } }
.is-wiggle { animation: wiggle .5s ease-in-out infinite; }
@keyframes wiggle { 0%, 100% { transform: rotate(-10deg) translateY(0); } 50% { transform: rotate(10deg) translateY(-6px); } }
.stage { transition: background-color .3s, box-shadow .3s; } /* 色が付く時も、戻る時もなめらかに */
.stage.is-final { background: var(--brand-soft); box-shadow: 0 0 0 3px var(--brand) inset; }

.go-btn {
  width: 100%; min-height: 64px; border-radius: 20px; background: var(--dark); color: #fff;
  font-size: 1.35rem; font-weight: 900; letter-spacing: .04em;
  transition: transform .12s var(--ease-out), background-color .15s, opacity .2s;
}
.go-btn:not(:disabled):active { transform: scale(.97); background: var(--dark-press); }
.go-btn:disabled { opacity: .45; }
.go-btn--hero { min-height: 76px; font-size: 1.7rem; }

.pick { display: grid; }
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.chip {
  min-height: 52px; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 2px var(--line) inset;
  font-size: 1.02rem; font-weight: 900; white-space: nowrap;
  transition: transform .16s var(--ease-out), background-color .16s, color .16s, box-shadow .16s;
}
.chip:active { transform: scale(.94); }
.chip[aria-checked="true"] { background: var(--brand); color: #fff; box-shadow: 0 0 0 2px var(--brand) inset; transform: scale(1.04); }
.chip.is-roll { background: var(--brand-soft); box-shadow: 0 0 0 3px var(--brand) inset; transform: scale(1.04); }
.chip.is-landed { animation: land .5s var(--ease-spring); }
.chips.is-locked { pointer-events: none; } /* スマホで決める の最中 */
@keyframes land { 0% { transform: scale(1.04); } 40% { transform: scale(1.16); } 100% { transform: scale(1.04); } }

.amida { display: grid; gap: 10px; }
.amida__box { background: var(--surface); border-radius: 22px; box-shadow: 0 0 0 2px var(--line) inset; padding: 8px 6px; }
.amida__canvas { display: block; width: 100%; height: clamp(250px, 42vh, 380px); }
.amida__canvas.is-tall { height: clamp(300px, 50vh, 440px); } /* 11人から: 線が多いので縦の段を広く */
.amida__status { text-align: center; font-size: 1.06rem; font-weight: 900; min-height: 1.6em; }
.amida__status.is-hit { color: var(--brand-ink); animation: pop .42s var(--ease-out) both; }
.go-btn--wide { min-height: 60px; }

/* 画面6 */
.final { gap: 10px; }
.final__word { text-align: center; font-size: clamp(1.3rem, 6.6vw, 1.9rem); font-weight: 900; color: var(--brand-ink); padding: 6px 0 0; animation: pop .46s var(--ease-spring) .05s both; }
.final__note { text-align: center; font-size: 1rem; color: var(--ink-2); }
.final__note:empty { display: none; }
.pays { list-style: none; display: grid; gap: 8px; margin-top: 4px; }
.pay {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; padding: 8px 16px;
  border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 2px var(--line) inset;
  animation: row-in .36s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 40ms + 80ms);
}
@keyframes row-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.pay__who { font-size: 1.06rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.pay__name { white-space: nowrap; }
.pay__amount { font-size: 1.45rem; font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pay__amount small { font-size: .7em; }
.pay__tag { font-size: .95rem; font-weight: 900; padding: 2px 10px; border-radius: 999px; background: var(--brand); color: #fff; white-space: nowrap; }
.pay__tag--soft { background: #fff; color: var(--brand-ink); box-shadow: 0 0 0 1.5px var(--brand) inset; }
.pay__sub { display: block; font-size: .95rem; color: var(--ink-2); font-weight: 700; text-align: right; }
.pay.is-payer { background: var(--brand-soft); box-shadow: 0 0 0 3px var(--brand) inset; }
.pay.is-payer .pay__amount { color: var(--brand-ink); font-size: 1.6rem; }
.pay.is-zero .pay__amount { color: #9C8870; }
.final__sum { text-align: center; font-size: 1rem; color: var(--ink-2); margin-top: 4px; }
.final__sum b { color: var(--green); }

/* 画面7 */
.screen--sheet { padding-top: calc(10px + env(safe-area-inset-top)); }
.sheet { background: var(--surface); border-radius: 26px; padding: 6px 16px 16px; box-shadow: 0 0 0 2px var(--line) inset; }
.top--sheet { grid-template-columns: 48px 1fr 48px; }
.help { display: grid; gap: 18px; padding: 6px 2px 4px; }
.help__steps { padding-left: 1.5em; display: grid; gap: 6px; font-size: 1.06rem; }
.help__steps b { color: var(--brand-ink); }
.help__ways { display: grid; gap: 4px; }
.help__ways dt { font-weight: 900; font-size: 1.04rem; margin-top: 8px; }
.help__ways dd { color: var(--ink-2); font-size: 1rem; }
.help__privacy { font-size: 1rem; color: var(--green); background: var(--green-soft); padding: 10px 14px; border-radius: 14px; }

/* 知らせ */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 1200;
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 16px; background: var(--dark); color: #fff;
  font-size: 1rem; font-weight: 900; text-align: center; pointer-events: none;
  opacity: 0; transform: translate(-50%, 14px) scale(.98); transition: opacity .22s, transform .3s var(--ease-out);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.noscript { padding: 24px; font-size: 1.1rem; }

/* 低い縦の画面（iPhone SE・Safari の帯が出ている時）: 入力の画面を1画面に収める。押せる所は48px以上のまま */
@media (max-height: 700px) and (orientation: portrait) {
  .top { min-height: 52px; }
  .screen > .input { gap: 8px; }
  .amount { padding: 8px 16px 6px; }
  .amount__value { font-size: clamp(2.3rem, 12vw, 3.4rem); }
  .people { padding: 4px 4px 4px 16px; }
  .stepper__btn { width: 52px; height: 50px; }
  .hint { min-height: 1.5em; }
  .keypad { gap: 6px; }
  .key { min-height: clamp(48px, 7.4dvh, 66px); }
  .input .primary { min-height: 54px; }
  .game { gap: 10px; }
  .stage { min-height: 128px; padding: 10px; }
  .stage__emoji { font-size: 3.4rem; }
  .stage__count { font-size: 3.8rem; }
  .go-btn--hero { min-height: 64px; font-size: 1.5rem; }
  .chip { min-height: 48px; }
  .per { padding: 12px 12px 14px; }
  .result { gap: 12px; }
  .way { min-height: 60px; padding: 8px 12px; }
}

/* 低い画面（横向き）では、入力を左右2列に */
@media (orientation: landscape) and (max-height: 520px) and (min-width: 600px) {
  #app { max-width: 880px; }
  .screen > .input { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto 1fr auto; column-gap: 16px; align-content: start; }
  .input .amount { grid-column: 1; grid-row: 1; }
  .input .people { grid-column: 1; grid-row: 2; }
  .input .hint { grid-column: 1; grid-row: 3; align-self: start; }
  .input .keypad { grid-column: 2; grid-row: 1 / 4; margin-top: 0; }
  .input .primary { grid-column: 1 / 3; grid-row: 4; }
  .key { min-height: 48px; }
  .screen > .home { flex-direction: row; flex-wrap: wrap; align-items: center; align-content: center; gap: 12px 28px; } /* .screen > main（縦並び）に詳細度で負けないよう .screen > を付ける */
  .home__brand { flex: 1 1 260px; }
  .home__choices { flex: 1 1 340px; gap: 12px; }
  .big-choice { min-height: 104px; padding-block: 12px; }
  .home .link { flex-basis: 100%; }
}

/* 揺れは「視差効果を減らす」の時だけ外す（ほかの動きは止めない） */
@media (prefers-reduced-motion: reduce) {
  .is-shake { animation: none; }
  .is-wiggle { animation: float .9s ease-in-out infinite; } /* 左右の揺れの代わりに、上下にふわっと浮く */
  .home__icon { animation-name: float; } /* 左右に傾ける揺れだけ外し、ふわっと浮く動きは残す */
}

/* 短いラベルは語の切れ目（空白・<wbr>）で折る。長い文には使わない（Safari で「（」が行末に残るため） */
.big-choice__name, .big-choice__sub, .way__sub { word-break: keep-all; overflow-wrap: anywhere; }
.nw { white-space: nowrap; }
