/* =========================================================
   Reset
   ブラウザごとの初期差をならして、安定した土台を作る
   ========================================================= */

/* root font-size
   1rem=10px相当 → 1.6rem=16px が直感的に分かる */
html {
  font-size: 62.5%;
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
}

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

/* remove default spacing
   ブラウザのデフォルト余白を消す */
body,
h1, h2, h3, h4, h5, h6,
p,
ul, ol,
figure,
blockquote,
dl, dd {
  margin: 0;
}

ul, ol {
  padding: 0;
}

/* list style reset
   リストの黒丸・番号は必要箇所で指定する */
ul, ol {
  list-style: none;
}

/* media reset
   画像・動画・svgなどの表示を安定させる */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* embed safety
   埋め込みのはみ出し防止 */
iframe {
  max-width: 100%;
  border: 0;
}

/* form reset
   フォーム要素のフォントを統一 */
input,
button,
textarea,
select {
  font: inherit;
}

/* button reset
   ボタンの初期見た目をリセット（デザインはcomponentsで作る） */
button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* table reset
   表の基礎を安定させる */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* focus handling
   マウス操作ではoutlineを消し、キーボード操作では残す */
:focus:not(:focus-visible) {
  outline: none;
}
