/* リセット＋ベースタイポグラフィ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-base);
  font-size: var(--fs-body-md);
  line-height: var(--lh-body);
  color: var(--color-primary);
  background: #fff;
}
img, picture, svg, video { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.25em; }
figure { margin: 0; }
hr { border: 0; border-top: 1px solid var(--color-surface-mid); margin: var(--space-xl) 0; }

h1, h2, h3, h4, h5, h6 { line-height: var(--lh-heading); margin: 0 0 var(--space-md); letter-spacing: -0.01em; }
h1 { font-size: var(--fs-h1); font-weight: 700; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 600; }
h4 { font-size: var(--fs-h4); font-weight: 600; }
h5 { font-size: var(--fs-h5); font-weight: 600; }
h6 { font-size: var(--fs-h6); font-weight: 600; }
p  { margin: 0 0 var(--space-md); }

a { color: var(--color-link); text-decoration: underline; text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

/* レイアウトコンテナ */
.l-container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-md);
}
@media (min-width: 768px) {
  .l-container { padding-inline: var(--space-xl); }
}
.l-section { padding-block: var(--space-2xl); }
@media (min-width: 768px) {
  .l-section { padding-block: var(--space-3xl); }
}

/* 視覚的に隠す（スクリーンリーダーには読ませる） */
.u-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;
}

/* 未執筆ダミー記法のフォールバック視認性 */
.copy-placeholder {
  background: var(--color-surface-mid);
  padding: 0 0.25em;
  border-radius: var(--radius-sm);
}
