/* reset.css */

/* すべての要素のボックスモデルを border-box に設定 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* body のデフォルトマージンを削除 */
body {
  margin: 0;
  line-height: 1.5; /* 行間を1.5に設定 */
  -webkit-text-size-adjust: 100%; /* iOSでテキストサイズが自動調整されるのを防ぐ */
}

/* h1-h6 のデフォルトマージンとフォントサイズをリセット */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-size: 1em;
  font-weight: normal; /* フォントの太さをnormalに設定 */
}

/* p, ul, ol, li のデフォルトマージンとパディングをリセット */
p,
ul,
ol,
li {
  margin: 0;
  padding: 0;
}

/* ul, ol のリストスタイルをリセット */
ul,
ol {
  list-style: none;
}

/* a のテキスト装飾と色をリセット */
a {
  text-decoration: none;
  color: inherit;
}

/* img の最大幅を100%に設定し、ブロック要素として扱う */
img {
  max-width: 100%;
  display: block;
}

/* button, input, textarea のデフォルトスタイルをリセット */
button,
input,
textarea {
  margin: 0;
  font-family: inherit; /* 親要素のフォントファミリーを継承 */
  font-size: inherit; /* 親要素のフォントサイズを継承 */
  line-height: inherit; /* 親要素の行間を継承 */
  border: none;
  background-color: transparent;
}

/* button のカーソルをポインターに設定 */
button {
  cursor: pointer;
}

/* table のボーダーとセル間のスペースをリセット */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* hr のデフォルトスタイルをリセット */
hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 1rem 0;
}