/* A Modern CSS Reset (adjusted) */

/* Box sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin & padding */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd,
ul,
ol {
  margin: 0;
  padding: 0;
}

/* List reset */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* Focus behavior */
html:focus-within {
  scroll-behavior: auto;
}

/* Base body */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* Anchor */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Media elements */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Form elements */
input,
button,
textarea,
select {
  font: inherit;
}

/* =====================================================
   Reduced motion
   ===================================================== */
/*
  方針：
  - animation は極力止める
  - transition は UI 演出のため「殺さない」
*/
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    /* transition-duration は指定しない */
    scroll-behavior: auto !important;
  }
}

/* Root settings */
html {
  overflow-y: scroll;
  font-size: 62.5%;
}

/* List reset (legacy) */
li,
ol {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

/* Definition list */
dt,
dd {
  margin: 0;
  padding: 0;
}

/* Table */
table {
  border-collapse: collapse;
}

/* Text elements */
address,
caption,
cite,
code,
dfn,
em,
strong,
th,
var {
  font-style: normal;
}
