/* 1. ボックスモデルの定義（サイズ計算を直感的にする） */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 2. デフォルトの余白を削除 */
* {
  margin: 0;
  padding: 0;
}

/* 3. テキストのレンダリングを最適化し、スクロールを滑らかにする */
html {
  color-scheme: light dark; /* ダークモード対応 */
  -webkit-text-size-adjust: none; /* iOSのフォント自動サイズ調整を防止 */
  scroll-behavior: smooth;
}

/* 4. bodyの基本設定（高さを確保し、文字を読みやすく） */
body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* 5. メディア要素（画像や動画）が親要素を突き抜けないようにする */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* 6. フォーム要素のフォント継承（ブラウザ独自のフォントを上書き） */
input, button, textarea, select {
  font: inherit;
}

/* 7. テキストエリアのサイズ変更を垂直方向に限定 */
textarea {
  resize: vertical;
}

/* 8. リストの記号を消す（必要に応じて） */
ul, ol {
  list-style: none;
}

/* 9. アンカータグのスタイルをリセット */
a {
  text-decoration-skip-inck: auto;
  color: inherit;
}
