/* 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; --k: #e8e3d8; --face: #ffffff;
  --b: 184px; --row: 52px; --dot: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #2b2a27; --ink: #f3efe6; --sub: #a9a397; --line: #45433e; --soft: #34322f; --o: #34322f; --k: #45433e; --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; }
:focus { outline: none; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

.app { height: 100svh; max-width: 720px; 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; }
.date { font-family: "Jost", sans-serif; font-size: 14px; letter-spacing: .12em; color: var(--sub); }

/* 押すところ */
.stage { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.press { width: var(--b); height: var(--b); border-radius: 50%; border: 1px solid var(--ink); font-size: 15px; letter-spacing: .3em; padding-left: .3em; transition: background 420ms ease, border-color 420ms ease; flex: none; }
.press:focus-visible { outline-offset: 6px; }
.press.is-done { background: var(--y); border-color: var(--y); color: #2b2a27; cursor: default; }
.press.pop { animation: pop 360ms ease-out; }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.07); } 100% { transform: scale(1); } }
@media (hover: hover) and (pointer: fine) { .press:not(.is-done):hover { background: var(--soft); } }
.under { font-size: 13px; letter-spacing: .1em; color: var(--sub); height: 20px; }

/* たまったまる：月ごとに1本の線（いちばん新しい月が下） */
.total-row { flex: none; display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.cap { font-family: "Jost", sans-serif; font-size: 11px; letter-spacing: .2em; color: var(--sub); }
.total { font-size: 12px; letter-spacing: .08em; color: var(--sub); }
.total b { font-family: "Jost", sans-serif; font-weight: 300; font-size: 22px; color: var(--ink); margin: 0 2px; font-variant-numeric: tabular-nums; }
.months { flex: none; display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: 6px; }
.month { height: var(--row); display: flex; align-items: center; gap: 12px; }
.month .m { width: 22px; flex: none; font-family: "Jost", sans-serif; font-weight: 300; font-size: 13px; color: var(--sub); font-variant-numeric: tabular-nums; }
.month .track { flex: 1; position: relative; height: 100%; margin-right: 7px; }
.month .ln { position: absolute; left: 0; right: -7px; top: 60%; height: 1px; background: var(--ink); }
.pt { position: absolute; top: calc(60% - 14px); width: 14px; height: 14px; margin-left: -7px; display: flex; align-items: flex-end; justify-content: center; }
.pt i { width: var(--dot); height: var(--dot); border-radius: 50%; border: 1.25px solid var(--ink); background: var(--ink); display: block; }
.pt.today-empty i { background: transparent; border-color: var(--line); }
.pt.is-new { transition: left 1100ms cubic-bezier(.22,.8,.28,1); }
@media (prefers-reduced-motion: reduce) { .pt.is-new { transition: none; } }
.pt-date { position: absolute; top: calc(60% - 34px); transform: translateX(-50%); font-family: "Jost", sans-serif; font-size: 11px; letter-spacing: .06em; white-space: nowrap; }
.empty-msg { margin-top: 6px; font-size: 12px; line-height: 1.8; letter-spacing: .06em; color: var(--sub); }

/* ひとこと（押したあと 600ms 遅れて） */
.talk { flex: none; margin-top: 16px; height: 56px; display: flex; align-items: flex-start; gap: 10px; opacity: 0; transition: opacity 300ms ease; }
.talk.is-on { opacity: 1; }
.talk.is-late { transition-delay: 600ms; }
.talk.k { flex-direction: row-reverse; }
.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; }
.talk.k p { background: var(--k); border-radius: 18px 4px 18px 18px; }

.foot { padding-top: 10px; 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) {
  :root { --b: 240px; --row: 60px; --dot: 12px; }
  .app { padding: 40px 56px 28px; }
}
