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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.85;
  overflow-wrap: anywhere;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 var(--space-3);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { margin: 0 0 var(--space-4); }

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

.container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}
.container--narrow { max-width: calc(var(--text-width) + var(--space-4) * 2); }

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

.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -100px;
  background: var(--text);
  color: #fff;
  padding: var(--space-2) var(--space-3);
  z-index: 100;
}
.skip-link:focus { top: var(--space-2); }

.checker {
  height: var(--checker-size);
  background:
    conic-gradient(var(--cream) 25%, transparent 0 50%, var(--cream) 0 75%, transparent 0)
    0 0 / calc(var(--checker-size) * 2) calc(var(--checker-size) * 2);
}

.muted { color: var(--muted); }
.small { font-size: var(--fs-note); }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.stack > * + * { margin-top: var(--space-4); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }

/* モック専用: 同じ画面の別の状態を並べて見せるときの見出し。フェーズ3では消す */
.mock-note {
  margin: var(--space-7) 0 var(--space-3);
  padding: var(--space-1) var(--space-3);
  border: 1.5px dashed var(--info);
  border-radius: var(--radius);
  color: var(--info);
  font-size: var(--fs-note);
  font-weight: 700;
}
.mock-note::before { content: "モック: "; }
