/* ===================================================================
   土台（リセット・本文・汎用の小物）。
   =================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  touch-action: manipulation;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.4; margin: 0; font-weight: 700; }
p { margin: 0; }
a { color: var(--aqua-text); }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
ul, ol { margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; }

/* 既存のスクリプト（js/analysis・js/training など）が使う表示切り替えのクラス */
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.num { font-family: 'Open Sans', sans-serif; font-variant-numeric: tabular-nums; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.sub { color: var(--text-sub); font-size: var(--fs-sub); }
.label-caps {
  font-size: 13px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
}
@media (max-width: 767px) { .label-caps { font-size: 11px; } }

.icon { width: 20px; height: 20px; flex: none; }
.icon-sm { width: 16px; height: 16px; flex: none; }
.icon-lg { width: 26px; height: 26px; flex: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* フッターを画面の下に付ける */
body { display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }

/* PC だけ・スマホだけに出すもの */
@media (max-width: 767px) { .pc-only { display: none !important; } }
@media (min-width: 768px) { .sp-only { display: none !important; } }
