/* base.css — リセットとタイポグラフィ。色は必ず変数経由。 */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overscroll-behavior: none;
}

body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-family);
  font-size: var(--f-size-md);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button, input, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button { cursor: pointer; }

a { color: var(--c-primary); }
a:hover { opacity: 0.85; }

h1, h2, h3, p { margin: 0; }

/* 数字は必ず等幅にする（桁がブレると読みづらい） */
.num { font-variant-numeric: tabular-nums; }

/* キーボード操作の可視化（REQ-E02） */
:focus-visible {
  outline: 3px solid var(--c-primary);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

#app {
  height: 100%;
  display: flex;
  flex-direction: column;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}
