/* 125naroom ひと息ボタン（2026-11-13）。デザイン：reference/design_handoff_125naroom_hitoiki_maru */
:root {
  --bg: #faf8f3; --ink: #2b2a27; --sub: #77736a; --line: #e8e3d8; --soft: #f3efe6; --y: #e8dc6a; --o: #ffffff; --face: #ffffff;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #2b2a27; --ink: #f3efe6; --sub: #a9a397; --line: #45433e; --soft: #34322f; --o: #34322f; --face: #f3efe6; color-scheme: dark; }
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font-family: "Zen Kaku Gothic New", sans-serif; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
p, h1 { margin: 0; }
svg { display: block; }
:focus { outline: none; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

.app { height: 100svh; max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column;
  padding: max(44px, calc(env(safe-area-inset-top, 0px) + 12px)) 24px max(22px, env(safe-area-inset-bottom, 0px)); }
.head { height: 44px; display: flex; align-items: center; justify-content: space-between; flex: none; }
.head h1 { font-size: 20px; font-weight: 500; letter-spacing: .08em; }
.count { display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .1em; color: var(--sub); }
.dots { display: flex; gap: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; border: 1.25px solid var(--line); display: block; transition: background 300ms ease, border-color 300ms ease; }
.dots i.on { background: var(--ink); border-color: var(--ink); }

/* 輪とまる（--r は JS が入れる輪の直径） */
.stage { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring { position: relative; width: var(--r, 280px); height: var(--r, 280px); border-radius: 50%; flex: none; }
.ring:focus-visible { outline-offset: 6px; }
.rim { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line); display: block; transition: border-color 600ms ease; }
.is-run .rim { border-color: var(--ink); }
.ball { position: absolute; inset: 0; border-radius: 50%; background: var(--y); display: block; transform: scale(var(--rest, .23));
  transition: transform 1200ms cubic-bezier(.45,0,.55,1), opacity 600ms ease-in-out; }
.words { margin-top: var(--wtop, 32px); height: 52px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.word { font-size: var(--wfs, 15px); letter-spacing: .4em; padding-left: .4em; }
.secs { font-family: "Jost", sans-serif; font-weight: 300; font-size: 13px; letter-spacing: .1em; color: var(--sub); font-variant-numeric: tabular-nums; }
.talk { margin-top: 18px; height: 52px; display: flex; align-items: flex-start; gap: 10px; opacity: 0; transition: opacity 300ms ease; pointer-events: none; }
.talk.is-on { opacity: 1; }
.talk img { width: 34px; height: 34px; border-radius: 50%; flex: none; background: var(--face); }
.talk p { padding: 9px 14px; background: var(--o); border-radius: 4px 18px 18px 18px; font-size: 14px; line-height: 1.6; letter-spacing: .05em; }

/* リズムとボタン */
.ctrl { flex: none; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; transition: opacity 300ms; }
.seg button { height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px; line-height: 1; letter-spacing: .06em; display: flex; align-items: center; gap: 8px; }
.seg button span { font-family: "Jost", sans-serif; font-size: 11px; letter-spacing: .04em; opacity: .7; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.is-run .seg { opacity: .45; }
.is-run .seg button { cursor: default; }
.main-btn { width: 168px; height: 52px; border-radius: 999px; border: 1px solid var(--ink); font-size: 15px; letter-spacing: .1em; }
@media (hover: hover) and (pointer: fine) { .main-btn:hover { background: var(--soft); } .seg button:not([aria-pressed="true"]):not(:disabled):hover { background: var(--soft); } }

.foot { padding-top: 22px; display: flex; justify-content: space-between; align-items: center; flex: none; }
.note { font-size: 10px; letter-spacing: .06em; color: var(--sub); }
.logo img { display: block; height: 13px; width: auto; }
.logo-dark { display: none !important; }
@media (prefers-color-scheme: dark) { .logo-light { display: none !important; } .logo-dark { display: block !important; } }

@media (min-width: 1024px) {
  .app { padding: 40px 56px 28px; }
  :root { --wfs: 17px; --wtop: 40px; }
}
