@font-face { font-family: "SASK Noto Sans JP"; src: url("fonts/NotoSansJP-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "SASK Noto Sans JP"; src: url("fonts/NotoSansJP-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
:root {
  color-scheme: light;
  font-family: "SASK Noto Sans JP", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --ink: #19342e;
  --quiet: #4e645c;
  --line: #d8e3d9;
  --panel: #fff;
  --accent: #13654d;
  --mint: #e2f3e9;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #f3f6f1; color: var(--ink); }
main { max-width: 1320px; margin: auto; padding: clamp(16px, 4vw, 48px); }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(28px, 5vw, 44px); letter-spacing: -.04em; }
h2 { font-size: 18px; }
header, .section-head, .toolbar { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; justify-content: space-between; }
header { margin-bottom: 24px; align-items: center; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.eyebrow { font-size: 12px; font-weight: 750; letter-spacing: .12em; color: var(--accent); margin-bottom: 5px; }
.sub, small, .hint, label { color: var(--quiet); font-size: 13px; }
.sub { margin-top: 6px; }
.brand-line { display: flex; align-items: center; gap: 16px; min-width: 0; }
.brand-logo { display: block; width: 88px; height: auto; flex: 0 0 88px; background: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.badge { display: inline-flex; font-size: 12px; font-weight: 650; background: var(--mint); padding: 5px 9px; border-radius: 99px; }
.demo { background: #f9ecd2; color: #66490c; }
.panel, .tile { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; min-width: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 10px; margin: 10px 0 18px; }
.tile { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px 8px; padding: 12px; text-align: left; min-height: 76px; }
.tile-title { display: flex; align-items: center; gap: 6px; font-size: 24px; white-space: nowrap; }
.metric-icon { width: 32px; height: 32px; flex: 0 0 32px; object-fit: contain; background: transparent; border: 0; }
.tile strong { display: block; justify-self: end; white-space: nowrap; font-size: 26px; font-weight: 700; margin: 0; font-variant-numeric: tabular-nums; }
.tile strong span { font-size: 10px; font-weight: 500; margin-left: 3px; }
.tile[data-metric="pressure"] strong { line-height: 1.1; }
.tile[data-metric="pressure"] strong span { display: block; margin: 0; font-size: 9px; line-height: 1; text-align: right; }
.tile-meta { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 8px; }
.tile small { font-size: 11px; }
.tile .range-status { display: block; margin-top: 0; font-weight: 650; text-align: right; }
.tile[data-cached="true"] strong { color: var(--quiet); }
@media (max-width: 767px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tile { grid-template-columns: minmax(0, 1fr); padding: 10px; gap: 4px; }
  .tile strong { grid-column: 1; justify-self: end; }
  .tile-meta { flex-direction: column; gap: 1px; }
  .tile .range-status { text-align: left; }
}
@media (min-width: 768px) and (min-height: 600px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 8px 0 0; }
}
@media (min-width: 1100px) and (min-height: 600px) {
  .cards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 980px) and (max-width: 1099px) and (min-height: 600px) and (orientation: landscape) {
  .cards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .tile { grid-template-columns: minmax(0, 1fr); padding: 8px; gap: 3px; }
  .tile strong { grid-column: 1; justify-self: end; }
  .tile-meta { flex-direction: column; gap: 0; }
  .tile .range-status { text-align: left; }
}
@media (min-width: 1100px) and (min-height: 700px) and (hover: hover) and (pointer: fine) {
  .tile { min-height: 76px; padding: 12px; }
}
@media (min-width: 1300px) {
  .tile strong { font-size: 30px; }
}
@media (min-width: 1100px) and (max-width: 1199px) {
  .tile strong { font-size: 22px; }
}
