/* ==========================================================================
   基本的なリセットCSS
   ========================================================================== */

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

/* マージンとパディングをリセット */
* {
  margin: 0;
  padding: 0;
}

/* HTML5表示の正常化 */
html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* body要素の基本設定 */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

/* 見出し要素のリセット */
h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

/* リスト要素のリセット */
ul, ol {
  list-style: none;
}

/* リンク要素のリセット */
a {
  color: inherit;
  text-decoration: none;
}

/* ボタン要素のリセット */
button {
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

/* 入力要素のリセット */
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* 画像要素の調整 */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* テーブル要素のリセット */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 引用要素のリセット */
blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}

/* フォーカス時のアウトライン調整 */
:focus {
  outline: 2px solid #4A90E2;
  outline-offset: 2px;
}

/* 選択テキストのスタイル */
::selection {
  background-color: #4A90E2;
  color: white;
}

::-moz-selection {
  background-color: #4A90E2;
  color: white;
}

/* スクロールバーのスタイル（Webkit系ブラウザ） */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}