/* CSS Document */

/* 各表の色はここで個別に変更できます。他方の表には影響しません。 */
.shuttle-schedule--1 {
  --table-color: #24688a;
  /* 見出し・表のヘッダー背景 */
  --table-header-text: #ffffff;
  /* ヘッダー文字 */
  --table-tint: #edf5f9;
  /* 便番号・交互の行背景 */
  --table-border: #bfd0da;
  /* 罫線 */
}

.shuttle-schedule--2 {
  --table-color: #a64a2b;
  --table-header-text: #ffffff;
  --table-tint: #fcf0e9;
  --table-border: #dfc6ba;
}

/* 共通レイアウト */
html {
  scroll-behavior: smooth;
}

.shuttle-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 32px;
}

.shuttle-nav__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex: 1 1 260px;
  box-sizing: border-box;
  min-height: 48px;
  padding: 14px 20px;
  border: 1px solid var(--table-color);
  border-radius: 6px;
  background: var(--table-color);
  color: var(--table-header-text);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  line-height: 1.5;
}

.shuttle-nav__button:hover {
  background: var(--table-tint);
  color: var(--table-color);
}

.shuttle-nav__button:focus-visible {
  outline: 3px solid var(--table-color);
  outline-offset: 4px;
}

.shuttle-schedule h2 {
  scroll-margin-top: 24px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  /* padding: 32px 16px; */
  color: #222;
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

main {
  max-width: 1000px;
  margin: auto;
}

h1 {
  margin: 0 0 32px;
  font-size: clamp(22px, 4vw, 30px);
}

.shuttle-schedule {
  margin-bottom: 48px;
}

.shuttle-schedule h2 {
  color: var(--table-color);
  font-size: clamp(18px, 3vw, 24px);
  padding-bottom: 20px;
}

.shuttle-schedule__scroll {
  overflow-x: auto;
}

.shuttle-schedule__scroll:focus-visible {
  outline: 3px solid var(--table-color);
  outline-offset: 3px;
}

.shuttle-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  text-align: center;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.shuttle-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.shuttle-table th,
.shuttle-table td {
  border: 1px solid var(--table-border);
  padding: 10px;
  line-height: 1.5;
}

.shuttle-table thead th {
  background: var(--table-color);
  color: var(--table-header-text);
  font-weight: 600;
}

.shuttle-table tbody th,
.shuttle-table tbody tr:nth-child(even) td {
  background: var(--table-tint);
}

.shuttle-table tbody th {
  font-weight: 500;
  white-space: nowrap;
}

.shuttle-table td {
  white-space: nowrap;
}

.shuttle-table td.shuttle-table__note {
  white-space: normal;
  min-width: 130px;
  max-width: 180px;
  font-size: 14px;
  text-align: left;
}

.shuttle-table .shuttle-table__interval {
  width: 48px;
  padding-inline: 6px;
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
}

.shuttle-schedule__hint {
  display: none;
  color: #555;
  font-size: 13px;
}

@media (max-width: 790px) {
  .shuttle-schedule__hint {
    display: block;
  }
}

@media print {
  .shuttle-nav {
    display: none;
  }

  body {
    padding: 0;
  }

  .shuttle-schedule__hint {
    display: none;
  }

  .shuttle-schedule__scroll {
    overflow: visible;
  }

  .shuttle-table {
    min-width: 0;
    font-size: 11px;
  }

  .shuttle-table th,
  .shuttle-table td {
    padding: 5px;
  }

  .shuttle-table .shuttle-table__interval {
    font-size: 10px;
    width: auto;
  }

  .shuttle-table thead {
    display: table-header-group;
  }

  .shuttle-table tr {
    break-inside: avoid;
  }

  .shuttle-schedule+.shuttle-schedule {
    break-before: page;
  }
}