@charset "utf-8";

/* ==============================================
   1. リセットCSS (Eric Meyer's Reset)
   サイト全体の余白や装飾を一旦すべてゼロにします
   ============================================== */
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 {
	margin: 0;
	padding: 0;
	border: 0;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
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;
}

/* ==============================================
   2. 投稿本文のスタイル復元 (.no-reset)
   リセットされたスタイルを、投稿エリア内だけ復活させます
   ※ all: revert はレイアウトを破壊するため使いません
   ============================================== */

/* --- 基本の文字設定 --- */
.no-reset {
    line-height: 1.8; /* 読みやすい行間 */
    color: #333;
}

/* --- 段落（pタグ）に余白を与える --- */
.no-reset p {
    margin-bottom: 1.5em; /* 段落の下に余白 */
}

/* --- 見出し（hタグ）の復活 --- */
.no-reset h2,
.no-reset h3,
.no-reset h4,
.no-reset h5,
.no-reset h6 {
    font-weight: bold; /* 太字に戻す */
    margin-top: 2.5em; /* 上の余白 */
    margin-bottom: 1em; /* 下の余白 */
    line-height: 1.4;
}

/* --- リスト（箇条書き）の復活 --- */
.no-reset ul,
.no-reset ol {
    margin-bottom: 1.5em;
    padding-left: 2em; /* 左にインデント */
    list-style: inherit; /* ブラウザ標準の・や数字に戻す */
}
.no-reset ul {
    list-style-type: disc; /* 黒丸 */
}
.no-reset ol {
    list-style-type: decimal; /* 数字 */
}

/* --- 画像の調整 --- */
.no-reset img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

/* --- 引用（blockquote） --- */
.no-reset blockquote {
    margin: 1.5em 0;
    padding: 1em;
    border-left: 5px solid #ddd;
    background: #f9f9f9;
}

/* ==============================================
   3. WordPressブロックごとの微調整
   ============================================== */

/* メディアとテキスト：画像と文章の間の余白を確保 */
.no-reset .wp-block-media-text__content {
    padding: 2% 4%; /* 上下2% 左右4% の余白 */
}

/* ギャラリーなどを横並びにする設定（以前の記述を整理） */
.no-reset .wp-block-gallery {
    margin-bottom: 1.5em;
}

/* カラムブロックの余白調整 */
.no-reset .wp-block-columns {
    margin-bottom: 1.5em;
}