/* base/base.css — modern-normalize の後に読み込む */

/* 文字・行間（normalizeの line-height:1.15 は本文には狭い） */
html { -webkit-text-size-adjust: 100%; }
body {
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 要素の初期余白を消す（normalizeは残す） */
:where(h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol) {
  margin: 0;
}
:where(ul, ol) {
  padding: 0;
  list-style: none;
}
:where(h1, h2, h3, h4, h5, h6) {
  font-size: inherit;
  font-weight: inherit;
}

/* 画像・メディア（はみ出し防止、下の隙間解消） */
:where(img, picture, video, canvas, svg, iframe) {
  display: block;
  max-width: 100%;
}
:where(img, video) { height: auto; }

/* リンク */
:where(a) {
  color: inherit;
  text-decoration: none;
}

/* フォーム・ボタン（normalizeは装飾を残す） */
:where(button) {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
}
:where(textarea) { resize: vertical; }

/* テーブル */
:where(table) {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 長い英数字・URLのはみ出し防止 */
:where(p, li, dd, td, th) { overflow-wrap: anywhere; }

/* 動きを減らす設定の尊重 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}