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

/* HTML5要素をブロック化 */
article, aside, details, figcaption, figure,
footer, header, hgroup, main, nav, section, summary {
  display: block;
}

/* ベースフォント */
html {
  font-size: 100%;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  color: #000;
  background-color: #fff;
  min-height: 100vh;
  font-size: 1rem;
}

/* 見出し */
h1, h2, h3, h4, h5, h6 {
  font-weight: inherit;
  line-height: 1.2;
}

/* リスト */
ul, ol {
  list-style: none;
}

/* リンク */
a {
  color: inherit;
  text-decoration: none;
}

/* 画像・動画 */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* フォーム要素 */
input, button, textarea, select {
  font: inherit;
  border: none;
  background: none;
  outline: none;
  appearance: none;
}

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

/* 強制的に段落間余白なし */
p {
  margin: 0;
}

/* リストアイテムの余白もなし */
li {
  margin: 0;
}

/* 強調 */
b, strong {
  font-weight: bolder;
}

/* サブスクリプト・スーパー */
sub, sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

/* 隠し用 */
[hidden] {
  display: none !important;
}

/* ボタン */
button {
  cursor: pointer;
  background: none;
  border: none;
}

/* フォーカスアウトラインをアクセシビリティ用に設定 */
:focus-visible {
  outline: 2px solid #005fcc;
  outline-offset: 2px;
}

/* スクロールバーのデフォルトスタイル（オプション） */
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.2);
  border-radius: 4px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}