/* =========================================================
   Reset — モダン最小リセット
   ブラウザ既定の差をならし、独自デザインの土台を揃える。
   style.css より先に読み込む前提。
   ========================================================= */

/* box-sizing を全要素へ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 既定の余白をリセット（必要な箇所で個別に付与する） */
* {
  margin: 0;
}

/* コアの既定調整 */
html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* 折り返しの最適化・長い語のはみ出し防止 */
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

p {
  overflow-wrap: break-word;
}

/* メディア要素をブロック化し、はみ出しを防ぐ */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* フォーム部品にフォント・色を継承させる */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* クラス付きリストは既定のマーカー・余白を外す */
ul[class],
ol[class] {
  list-style: none;
  padding: 0;
}

/* テーブルのセル間隔をなくす */
table {
  border-collapse: collapse;
}

/* モーション低減の設定を尊重（アクセシビリティ） */
@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;
  }
}
