/* モダンなベーシックリセットCSS */

/* 1. ボックスサイジングをborder-boxに統一 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. デフォルトのマージン・パディングをリセット */
* {
  margin: 0;
  padding: 0;
}

/* 3. HTMLとbodyの基本設定 */
html,
body {
  height: 100%;
}

html {
  font-size: 62.5%;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* 4. リストのデフォルトスタイルを除去 */
ul,
ol {
  list-style: none;
}

/* 5. リンクのデフォルトスタイルを調整 */
a {
  color: inherit;
  text-decoration: none;
}

/* 6. 画像とメディア要素の調整 */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 7. フォーム要素の調整 */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

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

/* 8. テーブルのデフォルトスタイル調整 */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 9. 見出しのフォントウェイトを正規化 */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: normal;
}

/* 10. アクセシビリティの向上 */
/* :focus {
  outline: 2px solid #4A90E2;
  outline-offset: 2px;
} */

/* 11. スクロール動作の改善（デスクトップのみ） */
@media (min-width: 768px) {
  html {
    scroll-behavior: smooth;
  }
}

/* 12. 選択テキストの色を調整 */
::selection {
  background-color: #4A90E2;
  color: white;
}