/* =============================================================
   reset.css
   ブラウザごとに異なる既定スタイルを打ち消し、どの環境でも
   同じ見た目から始められるようにするためのファイルです。
   ここには「打ち消し」だけを書き、装飾は style.css に書きます。
   ============================================================= */

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

/* 余白は tokens.css の値で明示的に付けたいので、既定値をすべて消します */
html,
body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
li,
figure,
blockquote,
dl,
dd {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

html {
  /* ページ内リンクで移動したとき、固定ヘッダーに隠れないようにします */
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

/* 動きを減らす設定にしている利用者には、アニメーションを止めます */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

table {
  border-collapse: collapse;
  width: 100%;
}

/* キーボード操作の利用者に、今どこを選んでいるかを必ず見せます */
:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: 2px;
}
