/* 125naroom 予定が入れられないカレンダー（2026-11-08）。デザイン：reference/design_handoff_125naroom_calendar_tokei
   1023px 以下はスマホの形（縦に並ぶ）、1024px 以上は PC（左に年と月、右にマス） */
:root {
  --bg: #faf8f3; --ink: #2b2a27; --sub: #77736a; --line: #e8e3d8; --soft: #f3efe6; --y: #e8dc6a;
  --bubble: #e8e3d8; --face: #ffffff;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #2b2a27; --ink: #f3efe6; --sub: #a9a397; --line: #45433e; --soft: #34322f; --bubble: #45433e; --face: #f3efe6; color-scheme: dark; }
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: "Zen Kaku Gothic New", sans-serif; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
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; }
[hidden] { display: none !important; }
svg { display: block; }
:focus { outline: none; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

.app { max-width: 1280px; min-height: 100svh; margin: 0 auto; display: flex; flex-direction: column; touch-action: pan-y;
  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; }
.hint { font-size: 11px; letter-spacing: .1em; color: var(--sub); }

.main { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 28px; justify-content: center; }

/* 年と月 */
.ym-top { display: flex; justify-content: space-between; align-items: flex-end; }
.ym-num { display: flex; flex-direction: column; }
.ym-num .y { font-family: "Jost", sans-serif; font-weight: 300; font-size: 20px; letter-spacing: .08em; color: var(--sub); font-variant-numeric: tabular-nums; }
.ym-num .m { font-family: "Jost", sans-serif; font-weight: 200; font-size: 132px; line-height: .84; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-left: -.04em; }
.arrows { display: flex; align-items: center; gap: 10px; padding-bottom: 6px; }
.round { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.round svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.ym-sub { margin-top: 14px; display: flex; justify-content: space-between; align-items: center; min-height: 32px; }
.ym-words { display: flex; align-items: baseline; gap: 12px; }
.ym-words .en { font-family: "Jost", sans-serif; font-size: 11px; letter-spacing: .2em; color: var(--sub); }
.ym-words .season { font-size: 12px; letter-spacing: .08em; color: var(--sub); }
.back { height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--ink); font-size: 12px; letter-spacing: .08em; }
.hols-pc { display: none; }
@media (hover: hover) and (pointer: fine) { .round:hover, .back:hover { background: var(--soft); } }

/* 月のめくり：いまの月が 180ms で消えて、次の月が反対から 300ms で入る */
.flip, .flip-op { transition: opacity 300ms ease, transform 300ms ease; }
.is-out .flip { opacity: 0; transform: translateX(var(--dx, 0)); transition-duration: 180ms; }
.is-out .flip-op { opacity: 0; transition-duration: 180ms; }
.is-in .flip { opacity: 0; transform: translateX(var(--dx, 0)); transition: none; }
.is-in .flip-op { opacity: 0; transition: none; }
@media (prefers-reduced-motion: reduce) { .is-out .flip, .is-in .flip { transform: none; } }

/* マス */
.wds { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.wds span { text-align: center; font-size: 11px; letter-spacing: .1em; color: var(--sub); }
.wds span.sun { font-weight: 500; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: 50px; padding-top: 6px; }
.day { display: flex; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent; }
.day .b { width: 42px; height: 42px; border-radius: 50%; border: 1px solid transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; transition: border-color 160ms; }
.day .n { font-family: "Jost", sans-serif; font-weight: 300; font-size: 18px; line-height: 1; font-variant-numeric: tabular-nums; }
.day .mk { width: 6px; height: 1px; display: block; }
.day.sun .n, .day.hol .n { font-weight: 500; }
.day.sat .n { color: var(--sub); }
.day.hol .mk { background: var(--ink); }
.day.today .b { background: var(--y); }
.day.today .n { color: #2b2a27; }
.day.today .mk { background: transparent; }
.day.today.hol .mk { background: #2b2a27; }
.day.tapped:not(.today) .b { border-color: var(--ink); }
button.day { width: 100%; height: 100%; }
@media (hover: hover) and (pointer: fine) { button.day:not(.today):hover .b { border-color: var(--line); } button.day.tapped:not(.today):hover .b { border-color: var(--ink); } }
.day .b.pop { animation: pop 260ms ease-out; }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .day .b.pop { animation: none; } }
.hols-sp { margin-top: 12px; min-height: 18px; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 11px; letter-spacing: .06em; color: var(--sub); }
.hols-sp b { font-family: "Jost", sans-serif; font-weight: 400; font-size: 12px; margin-right: 6px; }

/* タップしたとき（2.4 秒） */
.talk { margin-top: 8px; height: 52px; display: flex; align-items: center; gap: 10px; justify-content: flex-end; opacity: 0; transform: translateY(6px); transition: opacity 300ms ease, transform 300ms ease; pointer-events: none; }
.talk.is-on { opacity: 1; transform: none; }
.talk .d { font-family: "Jost", sans-serif; font-size: 11px; letter-spacing: .08em; color: var(--sub); white-space: nowrap; }
.talk p { padding: 9px 14px; background: var(--bubble); border-radius: 18px 4px 18px 18px; font-size: 14px; line-height: 1.6; letter-spacing: .05em; }
.talk.o p { border-radius: 4px 18px 18px 18px; }
.talk img { width: 34px; height: 34px; border-radius: 50%; flex: none; background: var(--face); }

/* フッター */
.foot { padding-top: 14px; display: flex; justify-content: space-between; align-items: center; flex: none; }
.start { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .1em; color: var(--sub); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { height: 26px; min-width: 36px; padding: 0 10px; border-radius: 999px; font-size: 12px; color: var(--ink); letter-spacing: 0; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.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; } }

/* ---------- PC ---------- */
@media (min-width: 1024px) {
  .app { padding: 40px 56px 28px; height: 100svh; min-height: 720px; }
  .main { flex-direction: row; gap: 96px; align-items: center; }
  .ym { width: 360px; flex: none; }
  .ym-num .y { font-size: 24px; }
  .ym-num .m { font-size: 200px; }
  .hols-pc { margin-top: 40px; display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
  .hols-pc .k { font-size: 11px; letter-spacing: .1em; color: var(--sub); }
  .hols-pc div { display: flex; flex-direction: column; gap: 8px; font-size: 13px; letter-spacing: .06em; }
  .hols-pc b { font-family: "Jost", sans-serif; font-weight: 300; font-size: 15px; margin-right: 10px; }
  .hols-pc .none { color: var(--sub); }
  .grid-wrap { width: 700px; flex: none; }
  .days { grid-auto-rows: 84px; }
  .day .b { width: 64px; height: 64px; }
  .day .n { font-size: 24px; }
  .hols-sp { display: none; }
  .talk { margin-top: 12px; }
}
