/* 時刻別ページ。tools/build-at.mjs が作る（元は tools/at/at.css） */
.at .word { font-weight: 800; font-size: 1.05rem; letter-spacing: .04em; text-decoration: none; padding: 10px 0; }
.at h3 { margin: 0; font-size: .92rem; font-weight: 700; color: var(--ink-2); }
.at .small { font-size: .84rem; color: var(--ink-2); }
.at ul, .at ol { list-style: none; margin: 0; padding: 0; }

.hero {
  background: linear-gradient(var(--sky-top) 18%, var(--sky-bottom)); color: var(--sky-ink); margin-top: -1px;
  display: grid; justify-content: center; grid-template-columns: minmax(0, 480px); gap: 4px;
  padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
}
.lead { grid-row: 1; padding-top: 4px; }
.lead h1 { font-size: clamp(1.6rem, 7.2vw, 2.1rem); line-height: 1.32; font-weight: 800; text-wrap: balance; }
.lead .what { font-size: .9rem; margin-top: 10px; }
.answer { margin: 4px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; font-variant-numeric: tabular-nums; }
.answer > div:first-child { grid-column: 1 / -1; }
.answer dt { font-size: .85rem; }
.answer dd { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; }
.answer b { font: 800 1.35rem/1.25 var(--num); white-space: nowrap; }
.answer > div:first-child b { font-size: clamp(2.2rem, 10vw, 2.9rem); line-height: 1.15; }
.answer small { font-size: .95rem; }
.at #building { max-height: 560px; margin-top: 10px; }
/* <use> の中身には、親を指定した書き方が効かないので、クラスだけで指定する */
.aglow { opacity: calc(var(--night) * .28); }
.aglow.g-sleep { opacity: 0; }
.aglass { stroke: var(--facade-line); stroke-width: 1.5; }
.aic { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.aic.i-sleep { opacity: .75; }
.b-cut { fill: var(--sky-top); }

.g-sleep { fill: #2b3550; } .g-work { fill: #2a78d6; } .g-meal { fill: #e34948; } .g-home { fill: #1baf7a; } .g-relax { fill: #eda100; } .g-move { fill: #e8edf4; }
span.g-sleep, i.g-sleep { background: #2b3550; } span.g-work, i.g-work { background: #2a78d6; } span.g-meal, i.g-meal { background: #e34948; }
span.g-home, i.g-home { background: #1baf7a; } span.g-relax, i.g-relax { background: #eda100; } span.g-move, i.g-move { background: #e8edf4; }
.i-sleep, .sw.g-sleep svg { stroke: #9fb0d8; } .i-work, .sw.g-work svg { stroke: #fff; } .i-meal, .sw.g-meal svg { stroke: #fff; }
.i-home, .sw.g-home svg { stroke: #05261b; } .i-relax, .sw.g-relax svg { stroke: #2b1d00; } .i-move, .sw.g-move svg { stroke: #3b4a66; }
.at .sw { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line); display: grid; place-items: center; flex: none; }
.cell { stroke: var(--panel); stroke-width: .8; }
.cell.g-move, .cell.g-sleep { stroke: var(--line); }

.paper {
  background: var(--panel); color: var(--ink); max-width: 720px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 38px;
  padding: 28px max(18px, env(safe-area-inset-right)) max(40px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
}
.at { background: var(--ground); }
.paper section { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.paper h2 { font-size: 1.2rem; font-weight: 800; }
.story p { line-height: 1.95; }
.cards { display: grid; gap: 22px; }
.c-name { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.c-num { display: flex; align-items: baseline; gap: 12px; color: var(--ink-2); font-size: .9rem; }
.c-num b { font: 800 1.7rem/1.2 var(--num); color: var(--ink); }
.spark { display: block; width: 100%; height: auto; margin: 2px 0; overflow: visible; }
.spark .axis { stroke: var(--line); }
.spark .area { fill: var(--accent); opacity: .16; }
.spark .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.spark .now { stroke: var(--ink-2); stroke-width: 1; }
.spark .dot { fill: var(--accent); stroke: var(--panel); stroke-width: 2; }
.spark .tip { fill: transparent; }
.spark text { font: 500 11px/1 var(--num); fill: var(--ink-2); }

.waffles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 560px; }
.waffles figure { margin: 0; }
.waffles svg { display: block; width: 100%; height: auto; }
.waffles figcaption { font-size: .88rem; text-align: center; margin-top: 4px; }
.at .legend { margin-top: 0; }
.moves { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.moves ul { display: grid; margin-top: 4px; }
.moves li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.moves b { font: 800 1.05rem/1 var(--num); font-variant-numeric: tabular-nums; white-space: nowrap; }
.moves b small { font: 500 .75rem/1 var(--font); color: var(--ink-2); margin-left: 3px; }
.at table th[scope="row"] { font-weight: 500; font-size: .88rem; color: var(--ink); white-space: normal; }
.at th .cell { display: flex; align-items: center; gap: 8px; line-height: 1.3; }
.at td.n b { display: block; font: 800 1rem/1.3 var(--num); }
.at td.n small { display: block; font-size: .74rem; color: var(--ink-2); }
.asks { display: grid; gap: 8px; }
.asks li { background: var(--panel-2); border-radius: 4px; padding: 12px 14px; font-weight: 700; line-height: 1.5; }
.try { background: var(--panel-2); border-radius: 18px; padding: 20px 18px; }
.try .me { display: flex; align-items: center; justify-content: center; text-decoration: none; margin-top: 2px; }
.turn { display: flex; justify-content: space-between; gap: 12px; }
.turn a { padding: 12px 0; font-weight: 700; }
.hours { display: grid; gap: 10px; }
.hours ol { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.hours a { display: grid; place-items: center; min-height: 44px; border: 1.5px solid var(--line); border-radius: 10px; text-decoration: none; font-size: .9rem; font-variant-numeric: tabular-nums; }
.hours a[aria-current] { background: var(--ink); color: var(--panel); border-color: var(--ink); font-weight: 800; }

.list h1 { font-size: clamp(1.55rem, 6.6vw, 2rem); line-height: 1.35; font-weight: 800; }
.list .top { background: transparent; color: var(--ink); max-width: 720px; margin: 0 auto; padding-left: 18px; padding-right: 18px; }
.bands { display: grid; }
.bands a { display: grid; grid-template-columns: 3.2em minmax(0, 1fr); gap: 3px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; align-items: center; }
.bands .t { font: 800 1.1rem/1 var(--num); font-variant-numeric: tabular-nums; }
.bands svg { display: block; width: 100%; height: 22px; }
.bands .cell { stroke-width: 0; }
.bands .q { grid-column: 2; font-weight: 700; line-height: 1.45; text-decoration: underline; text-underline-offset: 3px; }
.bands .s { grid-column: 2; font-size: .82rem; color: var(--ink-2); line-height: 1.5; }

@media (min-width: 620px) {
  .moves { grid-template-columns: 1fr 1fr; gap: 28px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .hours ol { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .answer { grid-template-columns: auto auto; justify-content: start; gap: 6px 36px; }
}
@media (min-width: 940px) {
  .hero { grid-template-columns: minmax(0, 440px) minmax(0, 440px); gap: 48px; align-items: center; }
  .lead { grid-row: auto; grid-column: 2; padding-bottom: 30px; }
  .at #building { grid-column: 1; grid-row: 1; }
  .paper { margin: 0 auto 40px; padding: 44px 56px 48px; border-radius: 0 0 22px 22px; }
  .list .paper { border-radius: 22px; }
}
.at th, .at td { padding-left: 3px; padding-right: 3px; }
@media (max-width: 359px) { .at table .sw { display: none; } .at td.n small { font-size: .68rem; } }
:root[data-phase="night"] .lead { text-shadow: 0 0 12px var(--sky-top), 0 0 3px var(--sky-top); }

/* 時刻ごとの空の色 */
:root.h0{--sky-top:#0b1230;--sky-bottom:#1c2650;--sky-ink:#ffffff;--sky-ink-2:#ffffff;--facade:#2b3650;--facade-line:#171e30;--slab:#3c4968;--sky-num:#aeb3bd;--tree:#16291f;--night:1}
:root.h1{--sky-top:#0b1230;--sky-bottom:#1c2650;--sky-ink:#ffffff;--sky-ink-2:#ffffff;--facade:#2b3650;--facade-line:#171e30;--slab:#3c4968;--sky-num:#aeb3bd;--tree:#16291f;--night:1}
:root.h2{--sky-top:#0b1230;--sky-bottom:#1c2650;--sky-ink:#ffffff;--sky-ink-2:#ffffff;--facade:#2b3650;--facade-line:#171e30;--slab:#3c4968;--sky-num:#aeb3bd;--tree:#16291f;--night:1}
:root.h3{--sky-top:#0b1230;--sky-bottom:#1c2650;--sky-ink:#ffffff;--sky-ink-2:#ffffff;--facade:#2b3650;--facade-line:#171e30;--slab:#3c4968;--sky-num:#aeb3bd;--tree:#16291f;--night:1}
:root.h4{--sky-top:#0b1230;--sky-bottom:#1c2650;--sky-ink:#ffffff;--sky-ink-2:#ffffff;--facade:#2b3650;--facade-line:#171e30;--slab:#3c4968;--sky-num:#aeb3bd;--tree:#16291f;--night:1}
:root.h5{--sky-top:#1e2a5b;--sky-bottom:#68557f;--sky-ink:#ffffff;--sky-ink-2:#ffffff;--facade:#2b3650;--facade-line:#171e30;--slab:#3c4968;--sky-num:#aeb3bd;--tree:#16291f;--night:1}
:root.h6{--sky-top:#557dc0;--sky-bottom:#efb894;--sky-ink:#081426;--sky-ink-2:#081426;--facade:#717c8c;--facade-line:#4c5766;--slab:#8a94a6;--sky-num:#303c4d;--tree:#30553e;--night:0.54}
:root.h7{--sky-top:#5ea4e2;--sky-bottom:#d2e2ed;--sky-ink:#081426;--sky-ink-2:#081426;--facade:#c4ced4;--facade-line:#8b9aa5;--slab:#e6ecef;--sky-num:#4f5b68;--tree:#4f8a63;--night:0}
:root.h8{--sky-top:#5fa8e6;--sky-bottom:#cfe6f6;--sky-ink:#081426;--sky-ink-2:#081426;--facade:#c4ced4;--facade-line:#8b9aa5;--slab:#e6ecef;--sky-num:#4f5b68;--tree:#4f8a63;--night:0}
:root.h9{--sky-top:#5fa8e6;--sky-bottom:#cfe6f6;--sky-ink:#081426;--sky-ink-2:#081426;--facade:#c4ced4;--facade-line:#8b9aa5;--slab:#e6ecef;--sky-num:#4f5b68;--tree:#4f8a63;--night:0}
:root.h10{--sky-top:#5fa8e6;--sky-bottom:#cfe6f6;--sky-ink:#081426;--sky-ink-2:#081426;--facade:#c4ced4;--facade-line:#8b9aa5;--slab:#e6ecef;--sky-num:#4f5b68;--tree:#4f8a63;--night:0}
:root.h11{--sky-top:#5fa8e6;--sky-bottom:#cfe6f6;--sky-ink:#081426;--sky-ink-2:#081426;--facade:#c4ced4;--facade-line:#8b9aa5;--slab:#e6ecef;--sky-num:#4f5b68;--tree:#4f8a63;--night:0}
:root.h12{--sky-top:#5fa8e6;--sky-bottom:#cfe6f6;--sky-ink:#081426;--sky-ink-2:#081426;--facade:#c4ced4;--facade-line:#8b9aa5;--slab:#e6ecef;--sky-num:#4f5b68;--tree:#4f8a63;--night:0}
:root.h13{--sky-top:#5fa8e6;--sky-bottom:#cfe6f6;--sky-ink:#081426;--sky-ink-2:#081426;--facade:#c4ced4;--facade-line:#8b9aa5;--slab:#e6ecef;--sky-num:#4f5b68;--tree:#4f8a63;--night:0}
:root.h14{--sky-top:#5fa8e6;--sky-bottom:#cfe6f6;--sky-ink:#081426;--sky-ink-2:#081426;--facade:#c4ced4;--facade-line:#8b9aa5;--slab:#e6ecef;--sky-num:#4f5b68;--tree:#4f8a63;--night:0}
:root.h15{--sky-top:#5fa8e6;--sky-bottom:#cfe6f6;--sky-ink:#081426;--sky-ink-2:#081426;--facade:#c4ced4;--facade-line:#8b9aa5;--slab:#e6ecef;--sky-num:#4f5b68;--tree:#4f8a63;--night:0}
:root.h16{--sky-top:#5993d3;--sky-bottom:#dccdc5;--sky-ink:#081426;--sky-ink-2:#081426;--facade:#c4ced4;--facade-line:#8b9aa5;--slab:#e6ecef;--sky-num:#4f5b68;--tree:#4f8a63;--night:0}
:root.h17{--sky-top:#415b9b;--sky-bottom:#da8c78;--sky-ink:#ffffff;--sky-ink-2:#081426;--facade:#5e697c;--facade-line:#3e4857;--slab:#758095;--sky-num:#c2c6cd;--tree:#294a36;--night:0.66}
:root.h18{--sky-top:#19214c;--sky-bottom:#604162;--sky-ink:#ffffff;--sky-ink-2:#ffffff;--facade:#2b3650;--facade-line:#171e30;--slab:#3c4968;--sky-num:#aeb3bd;--tree:#16291f;--night:1}
:root.h19{--sky-top:#0b1230;--sky-bottom:#1c2650;--sky-ink:#ffffff;--sky-ink-2:#ffffff;--facade:#2b3650;--facade-line:#171e30;--slab:#3c4968;--sky-num:#aeb3bd;--tree:#16291f;--night:1}
:root.h20{--sky-top:#0b1230;--sky-bottom:#1c2650;--sky-ink:#ffffff;--sky-ink-2:#ffffff;--facade:#2b3650;--facade-line:#171e30;--slab:#3c4968;--sky-num:#aeb3bd;--tree:#16291f;--night:1}
:root.h21{--sky-top:#0b1230;--sky-bottom:#1c2650;--sky-ink:#ffffff;--sky-ink-2:#ffffff;--facade:#2b3650;--facade-line:#171e30;--slab:#3c4968;--sky-num:#aeb3bd;--tree:#16291f;--night:1}
:root.h22{--sky-top:#0b1230;--sky-bottom:#1c2650;--sky-ink:#ffffff;--sky-ink-2:#ffffff;--facade:#2b3650;--facade-line:#171e30;--slab:#3c4968;--sky-num:#aeb3bd;--tree:#16291f;--night:1}
:root.h23{--sky-top:#0b1230;--sky-bottom:#1c2650;--sky-ink:#ffffff;--sky-ink-2:#ffffff;--facade:#2b3650;--facade-line:#171e30;--slab:#3c4968;--sky-num:#aeb3bd;--tree:#16291f;--night:1}
