/***
    クロスブラウザ対応・Gutenberg互換の安全なリセットCSS
    WordPressオリジナルテーマ向け
***/

/* すべての要素に box-sizing: border-box を適用 */
*, *::before, *::after {
    box-sizing: border-box;
}

/* 各種ブロック要素の余白を削除 */
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd {
    margin: 0;
    padding: 0;
}

/* リストのマージンを削除、インデントは保持 */
ul, ol {
    margin: 0;
    padding-left: 1.5em;
}

/* テーブルのセル間スペースを削除 */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

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

/* 画像・メディア要素の親幅にフィット */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* リンクの装飾をベース化（装飾なし・色継承） */
a {
    text-decoration: none;
    color: inherit;
}

/* 強調・斜体スタイルの初期化 */
strong {
    font-weight: bold;
}
em {
    font-style: italic;
}

/* クロスブラウザ：文字サイズ自動調整を無効化 */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Safari対策：入力・テキストエリアの選択可 */
input, textarea {
    -webkit-user-select: auto;
    user-select: auto;
}

/* プレースホルダーの色を継承 */
::placeholder {
    color: inherit;
    opacity: 1;
}

/* hidden属性要素は非表示に */
[hidden] {
    display: none !important;
}

/* Gutenbergブロックの基本調整 */
.wp-block {
    margin-bottom: 1.5em;
}
.wp-block ul,
.wp-block ol {
    list-style-position: inside;
    padding-left: 1.5em;
}
.wp-block img {
    max-width: 100%;
    height: auto;
}