/* 
 * リセットCSS
 * ブラウザのデフォルトスタイルを最小限リセットし、一貫した表示を実現します
 */

/* ボックスサイズを全要素でborder-boxに統一 */
*, *::before, *::after {
  box-sizing: border-box;
}

/* マージン・パディングをリセット */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
  margin: 0;
  padding: 0;
  border: 0;
}

/* HTML5要素のデフォルト表示を修正 */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}

/* body要素の基本設定 */
body {
  line-height: 1.5;
  font-size: 16px;
  word-break: break-all;
}

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

/* テーブル境界線を結合 */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* フォーム要素のフォントを継承 */
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
}

/* リンクのデフォルト装飾を削除 */
a {
  text-decoration: none;
  color: inherit;
}

/* 画像とマルチメディア要素を調整 */
img, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* フォームフィールドのアウトラインをリセット */
input, button, textarea, select {
  outline: none;
}

/* Firefoxのボタン内側パディングを削除 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}
