/* 土台: 文書全体の文字と、どの画面でも使う文字の部品。
   [hidden] は公開先の骨組みが display: none !important にしているので、ここでは書かない */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  font-feature-settings: 'palt';
  line-height: 1.75;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

/* 中国語は句読点を全角の幅のまま組む（palt で詰めると読点が窮屈になる） */
body:lang(zh-Hans) {
  font-feature-settings: normal;
  letter-spacing: 0.01em;
}

/* 英語は字間を詰める */
body:lang(en) {
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--pop-blue);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-head);
  letter-spacing: var(--head-tracking);
  line-height: 1.4;
  text-wrap: balance;
  word-break: auto-phrase;
}

h1 {
  font-weight: 700;
}

h2 {
  font-size: 20px;
  font-weight: 700;
}

h3 {
  font-weight: 500;
}

/* 画面には出さず、読み上げにだけ渡す文字（トップの h1 など） */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 数字（距離・角度・席数）: 等幅の数字で、桁がそろう */
.num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

/* 見出しの下の説明 */
.lead {
  margin: 0;
  color: var(--sub);
  font-size: 14px;
  word-break: auto-phrase;
}

/* 小さな注記 */
.note {
  margin: 0;
  color: var(--sub);
  font-size: 12.5px;
  line-height: 1.7;
}

.note b {
  color: var(--ink);
  font-weight: 500;
}

.note a {
  color: var(--sub);
}

/* 一覧が空のとき */
.empty {
  margin: 0;
  padding: 16px 4px;
  color: var(--sub);
  font-size: 14px;
}

/* ページの下の小さな文字 */
.foot {
  margin: 0;
  color: var(--sub);
  font-size: 12px;
}

.foot a {
  color: var(--sub);
}

.count {
  margin: 0;
  color: var(--sub);
  font-size: 13px;
}
