/* 125naroom お天気（2026-10-24）。デザイン：reference/design_handoff_125naroom_tenki */
:root {
  --bg: #faf8f3; --ink: #2b2a27; --sub: #77736a; --line: #e8e3d8; --hover: #f3efe6; --y: #e8dc6a;
  color-scheme: light;
}
/* 夜（is_day=0）と、端末がダークモードのとき */
:root.is-dark { --bg: #2b2a27; --ink: #f3efe6; --sub: #a9a397; --line: #45433e; --hover: #36342f; color-scheme: dark; }
@media (prefers-color-scheme: dark) {
  :root:not(.is-light) { --bg: #2b2a27; --ink: #f3efe6; --sub: #a9a397; --line: #45433e; --hover: #36342f; 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; transition: background .3s, color .3s; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg polyline, svg line, svg circle:not(.fill) { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; }
.head svg polyline, .close svg polyline, .here svg circle { stroke-width: 1.25; }
.here svg .fill { fill: var(--ink); stroke: none; }

.app { max-width: 390px; min-height: 100%; margin: 0 auto; }
.screen { min-height: 100svh; display: flex; flex-direction: column; padding: calc(56px + env(safe-area-inset-top, 0px)) 32px calc(28px + env(safe-area-inset-bottom, 0px)); }
.screen[hidden] { display: none; }

/* ヘッダー */
.head { height: 44px; display: flex; align-items: center; justify-content: space-between; flex: none; }
.place { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 500; letter-spacing: .08em; min-height: 44px; }
.date { font-family: "Jost", sans-serif; font-size: 14px; letter-spacing: .12em; color: var(--sub); }
.date .w { font-family: "Zen Kaku Gothic New", sans-serif; }

/* 大きい絵 */
.big { flex: 1; min-height: 260px; display: flex; align-items: center; justify-content: center; }
.big svg { animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* 気温とことば */
.now { display: flex; align-items: flex-end; justify-content: space-between; padding-bottom: 20px; flex: none; }
.temp { margin: 0; font-family: "Jost", sans-serif; font-size: 132px; font-weight: 200; letter-spacing: -.04em; line-height: .86; font-variant-numeric: tabular-nums; }
.temp .deg { font-size: 72px; vertical-align: top; }
.cond { margin: 0; padding-bottom: 6px; font-size: 18px; letter-spacing: .12em; }

/* 今日の数値 */
.stats { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); flex: none; }
.stats > div { padding: 14px 0; display: flex; flex-direction: column; gap: 4px; }
.stats > div + div { border-left: 1px solid var(--line); padding-left: 18px; }
.stats dt { font-size: 11px; letter-spacing: .1em; color: var(--sub); }
.stats dd { margin: 0; font-family: "Jost", sans-serif; font-size: 26px; font-weight: 300; }
.stats small { font-size: 15px; }

/* 5日分 */
.days { list-style: none; margin: 0; padding: 22px 0 8px; display: grid; grid-template-columns: repeat(5, 1fr); flex: none; }
.days li { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.days .d { font-family: "Jost", sans-serif; font-size: 13px; }
.days .d span { font-family: "Zen Kaku Gothic New", sans-serif; font-size: 11px; color: var(--sub); margin-left: 3px; }
.days .t { display: flex; flex-direction: column; align-items: center; gap: 1px; font-family: "Jost", sans-serif; font-size: 14px; font-weight: 300; }
.days .t .lo { color: var(--sub); }

/* フッター */
.foot { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; flex: none; }
.foot > a:first-child { font-family: "Jost", sans-serif; font-size: 10px; letter-spacing: .06em; color: var(--sub); }
.logo img { display: block; height: 13px; width: auto; }
.logo-dark { display: none !important; }
:root.is-dark .logo-light { display: none !important; }
:root.is-dark .logo-dark { display: block !important; }
@media (prefers-color-scheme: dark) {
  :root:not(.is-light) .logo-light { display: none !important; }
  :root:not(.is-light) .logo-dark { display: block !important; }
}

/* 場所をえらぶ */
.picker h1 { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: .08em; }
.close { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; margin-right: -12px; }
.here { margin-top: 28px; height: 56px; border: 1px solid var(--ink); border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 15px; letter-spacing: .1em; flex: none; }
.here:hover { background: var(--hover); }
.note { margin: 10px 0 0; font-size: 12px; color: var(--sub); text-align: center; }
.label { margin: 36px 0 0; font-family: "Jost", sans-serif; font-size: 11px; font-weight: 400; letter-spacing: .2em; color: var(--sub); }
.cities { list-style: none; margin: 8px 0 0; padding: 0; }
.cities button { width: 100%; height: 60px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; text-align: left; }
.cities button:hover { background: var(--hover); }
.cities .dot { width: 12px; flex: none; display: flex; justify-content: center; }
.cities .dot i { width: 8px; height: 8px; border-radius: 50%; background: var(--y); }
.cities .name { flex: 1; font-size: 16px; letter-spacing: .08em; }
.cities .ct { width: 44px; text-align: right; font-family: "Jost", sans-serif; font-size: 20px; font-weight: 300; }
.privacy { margin: 20px 0 0; font-size: 11px; line-height: 1.8; color: var(--sub); }

button:focus-visible, a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
