/* =========================================================
   reset.css (practical & safe)
   - minimal modern reset
   ========================================================= */

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

/* Remove default margins */
* {
  margin: 0;
}

/* Base */
html:focus-within {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

/* Media */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* Forms: inherit fonts */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* Buttons */
button,
[type="button"],
[type="submit"],
[type="reset"] {
  cursor: pointer;
}

/* Textarea */
textarea {
  resize: vertical;
}

/* Headings: let your foundation decide size/weight */
h1,
h2,
h3,
h4,
h5,
h6 {
  font: inherit;
}

/* Lists */
ul,
ol {
  padding: 0;
  list-style: none;
}

/* Tables */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Links: keep discoverable default (A11y側で整える) */
a {
  color: inherit;
}

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

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