/* ------------------------------
   reset.css
   ブラウザのデフォルトスタイルをリセット
------------------------------ */

/* すべての要素と擬似要素でボックスサイズをborder-boxに統一 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 基本要素の余白とボーダーをリセット */
html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
li,
dl,
dt,
dd,
figure,
figcaption,
blockquote,
fieldset,
legend,
table,
tr,
th,
td {
  margin: 0;
  padding: 0;
  border: 0;
}

/* HTML5のセクショニング要素をブロック化 */
header,
footer,
nav,
section,
article,
main,
aside {
  display: block;
}

/* リストマーカー削除 */
ul,
ol {
  list-style: none;
}

/* 画像の最大幅制限＋縦揃え */
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* リンクの色装飾を初期化 */
a {
  color: inherit;
  text-decoration: none;
}

/* ボタンのデフォルト装飾を削除 */
button {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

/* フォーム要素のフォントを継承 */
input,
select,
textarea {
  font: inherit;
  color: inherit;
  vertical-align: middle;
}

/* テーブルの余計な隙間を削除 */
table {
  border-collapse: collapse;
  border-spacing: 0;
}
