* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 12px;
  overflow-x: auto;
  color: #222;
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

a { color: #0645ad; text-underline-offset: 2px; }
a:visited { color: #5a3d8a; }
a:focus-visible { outline: 2px solid #0645ad; outline-offset: 2px; }
h1 { margin: 8px 0; font-size: 20px; line-height: 1.3; }
h2 { margin: 20px 0 8px; font-size: 16px; }
nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 10px 0; }

table { border-collapse: collapse; }
table.timetable { table-layout: fixed; }
table.timetable td {
  border: 1px solid #bbb;
  padding: 2px 4px;
  vertical-align: top;
}

td.station {
  position: sticky;
  top: 0;
  z-index: 1;
  min-width: 136px;
  background: #eee;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}
td.station:empty { min-width: 30px; width: 30px; }
td.hour {
  width: 30px;
  min-width: 30px;
  background: #eee;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
td.program, td.empty, td.blank { width: 136px; min-width: 136px; }
td.program { overflow: hidden; overflow-wrap: anywhere; line-height: 1.35; }
td.empty, td.blank { background: #f7f7f7; color: #666; }
span.time {
  margin-right: 4px;
  color: #555;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

table.list th, table.list td {
  border: 1px solid #bbb;
  padding: 4px 8px;
  text-align: left;
  vertical-align: top;
}
table.list th { background: #eee; white-space: nowrap; }
dl.detail { max-width: 70em; }
dl.detail dt { margin-top: 12px; font-weight: 600; }
dl.detail dd { margin: 2px 0 0 16px; white-space: pre-wrap; }
p.source { margin: 8px 0 0; color: #555; font-size: 12px; }
