/* ========================================
   Reset CSS (practical version)
======================================== */

/* Box sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Base */
html {
  -webkit-text-size-adjust: 100%;
  font-size: 100%;
}

body {
  margin: 0;
  line-height: 1.6;
  font-family:
    "Noto Sans JP",
    "Hiragino Sans",
    "Yu Gothic",
    system-ui,
    -apple-system,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Remove default margins */
h1, h2, h3, h4, h5, h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Lists */
ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Links */
a {
  text-decoration: none;
  color: inherit;
}

/* Images */
img,
picture {
  max-width: 100%;
  display: block;
  height: auto;
}

/* Form elements */
input,
button,
textarea,
select {
  font: inherit;
  margin: 0;
}

/* Buttons */
button {
  border: none;
  background: none;
  cursor: pointer;
}

/* Tables */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Text overflow */
p, span {
  word-break: break-word;
}

/* Remove animations for people who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Safari input/button fix */
button,
input {
  -webkit-appearance: none;
  appearance: none;
}

/* Prevent layout shift */
img {
  vertical-align: bottom;
}

/* Flex overflow fix */
* {
  min-width: 0;
}
