/* モダンなベースリセット（:where で詳細度 0、上書きしやすい） */

:where(*, *::before, *::after) {
  box-sizing: border-box;
}

:where(body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol) {
  margin: 0;
}

:where(ul[role="list"], ol[role="list"], ul[class], ol[class], nav :where(ul, ol)) {
  list-style: none;
  padding: 0;
}

:where(html) {
  -webkit-text-size-adjust: 100%;
}

:where(body) {
  min-height: 100dvh;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

:where(a):where(:not([class])) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

:where(img, picture, video, canvas, svg) {
  display: block;
  max-width: 100%;
  height: auto;
}

:where(input, button, textarea, select) {
  font: inherit;
  color: inherit;
}

:where(button) {
  cursor: pointer;
}

:where(textarea) {
  resize: vertical;
}

:where(table) {
  border-collapse: collapse;
}

@media (prefers-reduced-motion: reduce) {
  :where(html:focus-within) {
    scroll-behavior: auto;
  }

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