@font-face {
  font-family: "Zen Maru Gothic";
  src: url("/static/ZenMaruGothic-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Zen Maru Gothic";
  src: url("/static/ZenMaruGothic-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Zen Maru Gothic";
  src: url("/static/ZenMaruGothic-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --bg: #f9fbff; --surface: #fff; --ink: #1c2434; --muted: #525d6a;
  --border: #dce3ed; --control: #8491a5; --brand: #4f8df7; --soft: #eaf3ff;
  --action: #245fbd; --focus: #0a55c5; --mint: #e8faf6; --yellow: #fff6df; --lavender: #f0edff;
  font-family: "Zen Maru Gothic", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-synthesis: none;
  font-weight: 400;
  font-size: 100%; color: var(--ink); background: var(--bg);
}
* { box-sizing: border-box; }
:root.large-text { font-size: 125%; }
body { margin: 0; line-height: 1.7; }
button, input, select, textarea, option, optgroup { font: inherit; color: inherit; }
button, summary, label.bubble { cursor: pointer; }
button, select, input[type="text"], summary { min-height: 44px; }
button { border: 1px solid var(--control); border-radius: 999px; background: var(--surface); padding: 11px 24px; font-weight: 500; line-height: 1.5; }
button.primary { background: var(--action); color: white; border-color: var(--action); }
button:hover { box-shadow: 0 3px 9px rgb(38 64 104 / 10%); }
button:active { transform: scale(.99); }
button:disabled { cursor: default; box-shadow: none; background: #edf0f5; color: var(--muted); border-color: var(--border); }
.action-link { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; border: 1px solid var(--control); border-radius: 999px; background: var(--surface); color: var(--ink); padding: 11px 24px; font-weight: 500; line-height: 1.5; text-decoration: none; }
.action-link:hover { box-shadow: 0 3px 9px rgb(38 64 104 / 10%); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
main:focus, h1:focus { outline: none; }
.skip-link { position: absolute; top: -100px; left: 20px; color: white; background: var(--action); padding: 12px 20px; z-index: 10; }
.skip-link:focus { top: 10px; }
.site-header { max-width: 1120px; margin: auto; padding: 24px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; }
.header-identity { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 8px; }
.text-size, .text-size > div { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.text-size { font-size: .875rem; gap: 8px; }
.text-size button { padding: 4px 10px; min-width: 44px; }
.text-size button[aria-pressed="true"] { background: var(--soft); border-color: var(--action); color: var(--action); font-weight: 700; }
.brand { max-width: 100%; font-size: 1.25rem; font-weight: 700; display: flex; gap: 10px; align-items: center; }
.brand-text { position: relative; }
#public-version { position: absolute; top: 100%; left: 0; font-size: .75rem; line-height: 1.3; font-weight: 400; color: var(--muted); }
.brand-symbol { width: 36px; height: 36px; flex-shrink: 0; background: var(--soft); color: var(--action); border-radius: 12px; display: grid; place-items: center; }
.tag { display: inline-block; font-size: .875rem; font-weight: 500; border-radius: 10px; padding: 4px 10px; background: var(--soft); }
.tag.review { background: var(--yellow); }
.site-status { flex: 1 1 min-content; max-width: max-content; display: flex; flex-wrap: wrap; gap: 0 8px; }
.site-status span { white-space: nowrap; }
.feedback-banner { max-width: 1072px; margin: 0 auto; }
.feedback-link { width: 100%; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; border-color: var(--action); border-radius: 16px; background: var(--soft); color: var(--action); padding: 14px 20px; }
.feedback-link > span:first-child { font-size: 1.25rem; }
.feedback-destination { font-size: .875rem; }
.feedback-caption { margin: 8px 0 0; color: var(--muted); font-size: .875rem; }

main { max-width: 1120px; min-height: 50vh; margin: 0 auto; padding: 32px 24px; overflow-wrap: anywhere; }
.narrow { max-width: 720px; margin: auto; }
.startup-command { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .875rem; }
h1 { font-size: 1.75rem; line-height: 1.5; margin: 8px 0 16px; letter-spacing: .015em; }
h2 { font-size: 1.25rem; margin: 0 0 12px; line-height: 1.5; }
h3 { font-size: 1.05rem; margin: 0 0 8px; }
p { margin: 0 0 16px; }
.muted, .help { color: var(--muted); font-size: .875rem; }
.eyebrow { font-size: .875rem; font-weight: 500; color: var(--action); margin-bottom: 8px; }
.card { min-width: 0; border: 1px solid var(--border); border-radius: 22px; padding: 24px; background: var(--surface); box-shadow: 0 4px 16px rgb(38 64 104 / 6%), 0 1px 4px rgb(38 64 104 / 4%); margin-bottom: 16px; }
.hero { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 40px; padding: 32px 0; }
.hero h1 { font-size: 1.75rem; }
.hero p.lead { font-size: 1.05rem; }
.purpose { border-left: 3px solid var(--brand); padding-left: 16px; }
.hero-art { border-radius: 28px; padding: 32px; background: var(--soft); min-height: 260px; display: grid; align-content: center; gap: 16px; }
.hero-art .art-row { display: flex; align-items: center; gap: 16px; background: white; border: 1px solid var(--border); padding: 16px; border-radius: 16px; }
.art-number, .rank { border-radius: 999px; background: var(--mint); width: 44px; height: 44px; display: inline-grid; place-items: center; flex-shrink: 0; font-weight: 700; }
.steps { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 0; list-style: none; color: var(--muted); font-size: .875rem; }
.steps > li { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; margin-top: 24px; }
.actions button { min-width: 130px; }
.progress-copy { display: flex; justify-content: space-between; font-size: .875rem; margin: 0 0 8px; color: var(--muted); }
.progress-track { height: 6px; display: flex; gap: 6px; margin: 0 0 28px; }
.progress-track span { flex: 1; background: var(--border); border-radius: 999px; }
.progress-track .done { background: var(--action); }
fieldset { border: 0; margin: 0 0 24px; padding: 0; min-width: 0; }
legend { font-size: 1rem; font-weight: 500; margin-bottom: 10px; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 12px; }
.choices.stack { display: grid; grid-template-columns: 1fr; }
.bubble { position: relative; max-width: 100%; }
.bubble input { opacity: 0; position: absolute; width: 1px; height: 1px; }
.bubble span { display: flex; align-items: center; gap: 8px; border: 1px solid var(--control); border-radius: 999px; background: white; padding: 12px 18px; min-height: 48px; transition: background-color 160ms, border-color 160ms; line-height: 1.5; }
.bubble span::before { content: "○"; font-size: 1rem; width: 1.2em; flex-shrink: 0; }
.bubble input:checked + span { background: var(--soft); border: 2px solid var(--action); padding: 11px 17px; font-weight: 500; }
.bubble input:checked + span::before { content: "✓"; }
.bubble input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 4px; }
.bubble:hover span { background: var(--soft); }
.input-wrap { display: flex; align-items: center; gap: 12px; margin: 8px 0 16px; }
input[type="text"], select { border: 1px solid var(--control); border-radius: 10px; background: white; padding: 12px; max-width: 100%; }
input[type="text"] { width: 14rem; }
select { width: 100%; }
input[aria-invalid="true"], select[aria-invalid="true"] { border: 2px solid #9e2839; }
.error { color: #9e2839; font-size: .875rem; margin: 8px 0; }
.error:empty { display: none; }
.time-drums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.drum-field { min-width: 0; margin-bottom: 0; }
.drum-shell { --drum-row: 3rem; position: relative; margin-bottom: 12px; }
.drum { height: calc(var(--drum-row) * 5); overflow-y: auto; overscroll-behavior-y: contain; scroll-snap-type: y mandatory; padding-block: calc(var(--drum-row) * 2); border: 1px solid var(--control); border-radius: 16px; scrollbar-width: thin; touch-action: pan-y; cursor: grab; }
.drum.dragging { cursor: grabbing; scroll-snap-type: none; }
.drum-option { height: var(--drum-row); min-height: 44px; display: flex; align-items: center; justify-content: center; scroll-snap-align: center; font-size: 1.125rem; color: var(--muted); user-select: none; }
.drum-option[aria-selected="true"] { color: var(--ink); font-weight: 700; }
.drum-highlight { position: absolute; top: calc(var(--drum-row) * 2); left: 8px; right: 8px; height: var(--drum-row); border: 2px solid var(--action); border-radius: 10px; background: var(--soft); pointer-events: none; }
.drum-option { position: relative; }
.drum-selection { font-size: .875rem; font-weight: 500; margin-bottom: 8px; }
.drum[aria-invalid="true"] { border: 2px solid #9e2839; }
.inline-note { margin-top: 12px; color: var(--muted); font-size: .875rem; }
.axis-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.axis { background: var(--soft); border-radius: 16px; padding: 20px; }
.axis:nth-child(2) { background: var(--mint); }
.axis:nth-child(3) { background: var(--lavender); }
.axis-value { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.axis-choice { font-size: 1.125rem; font-weight: 700; margin-bottom: 8px; }
.tag.alternative { color: #6b3300; background: #ffebc7; border: 1px solid #b77216; }
.condition-differences { margin: 8px 0; padding: 14px; border: 1px solid #b77216; border-left: 4px solid #b77216; border-radius: 12px; background: #fff8e9; }
.condition-differences h3 { color: #6b3300; margin: 0 0 10px; }
.condition-differences h3 span { font-size: .875rem; font-weight: 400; margin-left: 6px; }
.difference-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: .875rem; line-height: 1.6; }
.difference-table th, .difference-table td { text-align: left; vertical-align: top; padding: 9px 5px; overflow-wrap: anywhere; border-bottom: 1px solid #e5c99d; }
.difference-table thead th { color: var(--muted); font-weight: 400; font-size: .75rem; padding-top: 0; }
.difference-table tbody th { font-size: .75rem; font-weight: 500; }
.difference-table th:first-child { width: 4.6em; padding-left: 0; }
.difference-table td:last-child { font-weight: 700; color: #6b3300; padding-right: 0; }
.difference-table tbody tr:last-child > * { border-bottom: 0; padding-bottom: 0; }
.unknown-summary { margin: 6px 0; }
.day-status { margin: 8px 0; font-size: .875rem; }
.day-status p { margin: 0; }
.day-status .needs-check { color: #6b3300; font-weight: 700; }
.question-edit h2 { scroll-margin-top: 24px; }
.axis p:last-child { margin-bottom: 0; }
dl { margin: 0; }
.condition-list { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 8px 16px; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
.places { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.place-card { display: flex; flex-direction: column; }
.place-card h2 { font-size: 1.125rem; }
.place-heading { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.place-heading .rank { background: var(--soft); }
.place-heading > div { min-width: 0; }
.place-card .actions { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: auto; padding-top: 16px; }
.place-card .actions button, .place-card .actions .action-link { width: 100%; justify-content: center; text-align: center; }
.place-map-action .help { margin: 8px 0 0; }
.place-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; font-size: .875rem; margin: 16px 0; }
ul { padding-left: 22px; margin: 8px 0 16px; }
li + li { margin-top: 6px; }
.reason, .warning { font-size: .875rem; }
.warning { background: var(--yellow); padding: 16px; border-radius: 16px; margin: 12px 0; }
.warning p:last-child, .warning ul:last-child { margin-bottom: 0; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.detail-summary { max-width: 54rem; }
.detail-summary .reference-note { margin: 4px 0 0; }
.detail-summary .needs-check { color: #6b3300; font-weight: 700; }
.comparison-table { width: 100%; border-collapse: collapse; font-size: .875rem; margin: 16px 0; }
.comparison-table th, .comparison-table td { padding: 12px 4px; border-bottom: 1px solid var(--border); text-align: center; }
.comparison-table th:first-child { text-align: left; }
.embedded-map { display: block; width: 100%; min-width: 200px; height: 320px; border: 0; border-radius: 12px; background: var(--soft); margin: 16px 0; }
.map-placeholder { background: var(--soft); border: 1px dashed var(--control); border-radius: 16px; padding: 24px; margin: 16px 0; text-align: center; }
.hours-list { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; }
.question-edit { border-bottom: 1px solid var(--border); padding-bottom: 8px; margin-bottom: 24px; }
summary { display: flex; align-items: center; gap: 8px; padding: 8px 0; }
summary::before { content: "+"; font-weight: 700; }
details[open] > summary::before { content: "−"; }
.site-footer { max-width: 1072px; margin: auto; padding: 24px 0 32px; border-top: 1px solid var(--border); color: var(--muted); font-size: .875rem; }
.site-footer p { margin-bottom: 8px; }
.site-footer dl { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 8px 16px; }
.site-footer details { max-width: 720px; }
@media (max-width: 800px) {
  .hero, .detail-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .detail-layout { gap: 0; }
  .detail-column { display: contents; }
  .detail-comparison { order: 1; }
  .detail-location { order: 2; }
  .detail-hours { order: 3; }
  .detail-source { order: 4; }
  .hero-art { min-height: auto; padding: 24px; }
  .places { grid-template-columns: 1fr; }
  .axis-grid { grid-template-columns: 1fr; }
  .site-footer { margin: 0 24px; }
  .feedback-banner { margin: 0 24px; }
}
@media (max-width: 36em) {
  .site-header { padding: 16px 12px; gap: 6px; }
  .header-identity { column-gap: 5px; }
  .brand { gap: 6px; }
  .text-size { flex-direction: column; align-items: flex-end; gap: 2px; }
  .site-status { font-size: .75rem; padding-inline: 5px; gap: 0 4px; }
}
@media (max-width: 21em) {
  .site-header { padding-inline: 8px; }
  .large-text .text-size { max-width: 3.2em; align-items: stretch; text-align: center; }
  .large-text .text-size > div { display: grid; }
}
@media (max-width: 440px) {
  .time-drums { grid-template-columns: 1fr; }
  main { padding: 24px 20px; }
  .hours-list { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hours-list dd { margin-bottom: 8px; }
  .feedback-link { gap: 4px; }
  .feedback-banner { margin: 0 20px; }
  .card { padding: 20px; }
  .hero { padding: 8px 0; }
  .condition-list { grid-template-columns: 1fr; gap: 0; }
  .condition-list dd { margin-bottom: 12px; }
  .actions { display: grid; grid-template-columns: 1fr; }
  .question-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .question-actions button { min-width: 0; padding-inline: 8px; overflow-wrap: anywhere; }
  .site-footer { margin: 0 20px; }
  .site-footer dl { grid-template-columns: 1fr; gap: 0; }
  .site-footer dd { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  button:active { transform: none; }
  .drum { scroll-behavior: auto; }
}
