/* 基本のリセット */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* マージンのクリア */
body,
p,
ul,
ol,
dl,
dd,
blockquote,
figure {
  margin: 0;
  padding: 0;
}

/* 画像とメディア */
img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 見出しの装飾を消す */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
  font: inherit;
  overflow-wrap: anywhere;
}

/* 区切り線 */
hr {
  margin: 0;
  padding: 0;
  height: 0;
  color: inherit;
  border: 0;
  border-top: 1px solid currentColor;
}

/* フォーム用パーツ */
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

/* テーブル */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* アドレス表記の斜体を解除 */
address {
  font: inherit;
}

/* --- アクセシビリティー ------------------------------ */

/* 動きが苦手な人の設定に合わせる */
@media (prefers-reduced-motion: reduce) {

  html,
  body {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* キーボード操作 */
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 1px;
}

/* 本文へスキップ */
.skip-link {
  position: fixed;
  left: -999px;
  top: 1rem;
  z-index: 1000;
  padding: 0.5rem 1rem;
  background: #fff;
  outline: 2px solid currentColor;
}

.skip-link:focus-visible {
  left: 1rem;
}
