/*
 * 簡易リセットCSS
 */

/* 全ての要素の余白、ボーダー、ボックス計算方法をリセット */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* HTML5のセマンティック要素をブロックレベルとして扱う (古いブラウザ対策含む) */
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,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    border: 0;
    font: inherit; /* フォント関連のプロパティを親から継承 */
    vertical-align: baseline;
}

/* HTML5のセマンティック要素 (古いブラウザ用) */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

/* bodyは基本 line-height を設定 */
body {
    line-height: 1;
}

/* リストのマーカーをリセット */
ol, ul {
    list-style: none;
}

/* 引用符のリセット */
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}

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

/* 画像の基本設定 (style.cssにもありますが、リセットにも含めておくと安全です) */
img {
    vertical-align: bottom;
    max-width: 100%;
    height: auto;
}