/* ============================================================
   reset.css — モダンブラウザ向けリセット
   読み込み順: reset.css → style.css
   ============================================================ */

/* ボックスモデルを border-box に統一 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* デフォルトの余白をすべて除去 */
* {
  margin: 0;
  padding: 0;
}

html {
  /* iOS Safari の横向き時の文字拡大を防止 */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

/* 見出しのサイズ・太さを本文と同じにリセット */
h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

/* メディア要素をブロック化し、親からはみ出さない
   （svgはwidth/height属性の固有サイズを尊重するためheight:autoは適用しない） */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}
img, picture, video, canvas {
  height: auto;
}

/* フォーム要素にフォントを継承させる */
input, button, textarea, select {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

/* リストマーカーの除去（役割はCSSで付与する前提） */
ul, ol {
  list-style: none;
}

/* リンクの下線・色はサイト側で制御 */
a {
  color: inherit;
  text-decoration: none;
}

/* テキストの折り返し */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* テーブルの境界を統一 */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* hidden属性を確実に効かせる */
[hidden] {
  display: none !important;
}

/* アニメーションを減らす設定のユーザーに配慮 */
@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;
  }
}
