/* =========================================================
   reset.css  (modern-css-reset 相当・基盤スタイル)
   ※ 未使用禁止の対象外。効かない/矛盾する指定は置かない
   ========================================================= */

/* Box sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Margin / padding のリセット */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ドキュメント基本設定 */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  text-rendering: optimizeSpeed;
}

/* リンク・見出しの既定装飾を解除 */
a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/* 画像類：block 化するため vertical-align は併用しない */
img,
picture,
svg {
  max-width: 100%;
  display: block;
}

/* フォームコントロールはフォントを継承 */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

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

/* モーション低減設定の尊重（!important は使わない方針） */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
    scroll-behavior: auto;
  }
}
