@charset "UTF-8";

/* ブロックエディタ全体 */
.editor-styles-wrapper {
	--color-main: #e60013;
	--color-sub: #ffee00;
	--color-text: #ffffff;
	--color-black: #111111;
	--color-gray: #999999;
	--color-light-gray: #cccccc;
	--color-white: #ffffff;
	color: var(--color-black);
	font-family: "Noto Sans JP", sans-serif;
	line-height: 1.8;
}

/* ブロック間の基本余白 */
.post_content > * + *,
.editor-styles-wrapper .block-editor-block-list__layout > .wp-block + .wp-block {
	margin-top: 1.5em;
}

/* 段落ブロック（core/paragraph） */
.post_content p,
.editor-styles-wrapper p {
	font-size: 20px;
	line-height: 1.9;
}

.post_content p.has-small-font-size,
.editor-styles-wrapper p.has-small-font-size {
	font-size: 15px;
}

.post_content p.has-large-font-size,
.editor-styles-wrapper p.has-large-font-size {
	font-size: 26px;
}

.post_content p.has-x-large-font-size,
.editor-styles-wrapper p.has-x-large-font-size {
	font-size: 32px;
}

/* 見出しブロック（core/heading） */
.post_content h1,
.editor-styles-wrapper h1.wp-block-heading {
	padding: 16px 22px;
	margin: 90px 0 32px;
	color: var(--color-white);
	background: var(--color-main);
	border-radius: 8px;
	font-size: 36px;
	font-weight: 700;
	line-height: 1.4;
}

.post_content h2,
.editor-styles-wrapper h2.wp-block-heading {
	position: relative;
	padding: 0 0 10px 44px;
	margin: 110px 0 28px;
	color: var(--color-black);
	border-bottom: 2px solid var(--color-main);
	font-size: 30px;
	font-weight: 700;
	line-height: 1.4;
}

.post_content h2::before,
.editor-styles-wrapper h2.wp-block-heading::before {
	position: absolute;
	top: 0.12em;
	left: 0;
	width: 34px;
	height: 34px;
	background: url("../images/top_section_ttl_ico.svg") center / contain no-repeat;
	content: "";
}

.post_content h3,
.editor-styles-wrapper h3.wp-block-heading {
	padding: 14px 24px;
	margin: 70px 0 24px;
	background-color: #f7e4e7;
	color: var(--color-black);
	/* border: 1px solid var(--color-main); */
	font-size: 26px;
	font-weight: 700;
	line-height: 1.4;
	border-radius: 12px;
}

.post_content h4,
.editor-styles-wrapper h4.wp-block-heading {
	margin: 48px 0 20px;
	color: var(--color-black);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.4;
}

.post_content h5,
.post_content h6,
.editor-styles-wrapper h5.wp-block-heading,
.editor-styles-wrapper h6.wp-block-heading {
	margin: 42px 0 16px;
	color: var(--color-black);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.4;
}

/* リストブロック（core/list） */
.post_content ul,
.post_content ol,
.editor-styles-wrapper ul.wp-block-list,
.editor-styles-wrapper ol.wp-block-list {
	padding-left: 1.6em;
	margin-block: 1.5em;
	list-style-position: outside;
}

.post_content ul,
.editor-styles-wrapper ul.wp-block-list {
	list-style-type: disc;
}

.post_content ol,
.editor-styles-wrapper ol.wp-block-list {
	list-style-type: decimal;
}

.post_content ul ul,
.editor-styles-wrapper ul.wp-block-list ul {
	list-style-type: circle;
}

.post_content ul ul ul,
.editor-styles-wrapper ul.wp-block-list ul ul {
	list-style-type: square;
}

.post_content li,
.editor-styles-wrapper .wp-block-list li {
	padding-left: 0.25em;
	font-size: 20px;
	line-height: 1.8;
}

.post_content li + li,
.editor-styles-wrapper .wp-block-list li + li {
	margin-top: 0.45em;
}

.post_content li::marker,
.editor-styles-wrapper .wp-block-list li::marker {
	color: var(--color-main);
	font-weight: 700;
}

.post_content li > ul,
.post_content li > ol,
.editor-styles-wrapper .wp-block-list li > ul,
.editor-styles-wrapper .wp-block-list li > ol {
	margin-block: 0.45em 0;
}

/* リンク */
.post_content a:not(.wp-block-button__link):not(.wp-block-file__button),
.editor-styles-wrapper a:not(.wp-block-button__link):not(.wp-block-file__button) {
	color: var(--color-main);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.post_content a:hover,
.post_content a:focus-visible {
	opacity: 1;
	text-decoration-thickness: 2px;
}

/* 画像ブロック（core/image） */
.post_content .wp-block-image,
.editor-styles-wrapper .wp-block-image {
	margin-block: 2em;
}

.post_content .wp-block-image img,
.editor-styles-wrapper .wp-block-image img {
	display: block;
	height: auto;
	border-radius: 12px;
}

/* キャプション（画像・ギャラリー・動画など） */
.post_content figcaption,
.editor-styles-wrapper figcaption {
	margin-top: 0.65em;
	color: var(--color-gray);
	font-size: 14px;
	line-height: 1.6;
	text-align: center;
}

/* ギャラリーブロック（core/gallery） */
.post_content .wp-block-gallery,
.editor-styles-wrapper .wp-block-gallery {
	gap: 16px;
	margin-block: 2em;
}

.post_content .wp-block-gallery img,
.editor-styles-wrapper .wp-block-gallery img {
	border-radius: 10px;
}

/* 引用ブロック（core/quote） */
.post_content .wp-block-quote,
.editor-styles-wrapper .wp-block-quote {
	padding: 24px 28px;
	margin-block: 2em;
	background: #fff5f6;
	border-left: 5px solid var(--color-main);
}

.post_content .wp-block-quote p,
.editor-styles-wrapper .wp-block-quote p {
	margin: 0;
}

.post_content .wp-block-quote cite,
.editor-styles-wrapper .wp-block-quote cite {
	display: block;
	margin-top: 0.8em;
	color: var(--color-gray);
	font-size: 14px;
}

/* プルクオートブロック（core/pullquote） */
.post_content .wp-block-pullquote,
.editor-styles-wrapper .wp-block-pullquote {
	padding: 32px 24px;
	margin-block: 2em;
	border-top: 3px solid var(--color-main);
	border-bottom: 3px solid var(--color-main);
	text-align: center;
}

.post_content .wp-block-pullquote blockquote,
.editor-styles-wrapper .wp-block-pullquote blockquote {
	margin: 0;
}

/* 表ブロック（core/table） */
.wp-block-table table {
	border: 1px solid var(--color-main);
	width: 100%;
	border-collapse: collapse;
}
.wp-block-table thead{
	border-bottom: none !important;
}
.wp-block-table th,
.wp-block-table td {
	padding: 14px 16px !important;
	background: rgb(255 255 255 / 100%) !important;
	border: 1px solid var(--color-main) !important;
	font-size: 16px;
	line-height: 1.6;
	text-align: left;
	color: var(--color-black);
}

.wp-block-table th {
	background: #fff5f6 !important;
	font-weight: 700;
}

/* .post_content .wp-block-table,
.editor-styles-wrapper .wp-block-table {
	overflow-x: auto;
	margin-block: 2em;
}

.post_content .wp-block-table table,
.editor-styles-wrapper .wp-block-table table {
	width: 100%;
	min-width: 560px;
	border-collapse: collapse;
}

.post_content .wp-block-table th,
.post_content .wp-block-table td,
.editor-styles-wrapper .wp-block-table th,
.editor-styles-wrapper .wp-block-table td {
	padding: 14px 16px;
	background: rgb(255 255 255 / 15%);
	border: 1px solid var(--color-white);
	font-size: 16px;
	line-height: 1.6;
	text-align: left;
}

.post_content .wp-block-table th,
.editor-styles-wrapper .wp-block-table th {
	background: rgb(255 255 255 / 28%);
	font-weight: 700;
} */

/* ボタンブロック（core/buttons・core/button） */
.post_content .wp-block-buttons,
.editor-styles-wrapper .wp-block-buttons {
	gap: 12px;
	margin-block: 2em;
}

.post_content .wp-block-button__link,
.editor-styles-wrapper .wp-block-button__link {
	min-width: 200px;
	padding: 14px 28px;
	color: var(--color-white);
	background: var(--color-main);
	border: 2px solid var(--color-main);
	border-radius: 999px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	transition: color 0.3s ease, background-color 0.3s ease;
}

.post_content .wp-block-button__link:hover,
.post_content .wp-block-button__link:focus-visible {
	color: var(--color-main);
	background: var(--color-white);
	opacity: 1;
}

/* カラムブロック（core/columns） */
.post_content .wp-block-columns,
.editor-styles-wrapper .wp-block-columns {
	gap: 32px;
	margin-block: 2em;
}

/* メディアとテキストブロック（core/media-text） */
.post_content .wp-block-media-text,
.editor-styles-wrapper .wp-block-media-text {
	gap: 32px;
	margin-block: 2em;
}

.post_content .wp-block-media-text__content,
.editor-styles-wrapper .wp-block-media-text__content {
	padding: 0;
}

/* カバーブロック（core/cover） */
.post_content .wp-block-cover,
.editor-styles-wrapper .wp-block-cover {
	min-height: 360px;
	margin-block: 2em;
	color: var(--color-white);
	border-radius: 12px;
	overflow: hidden;
}

/* 音声・動画ブロック（core/audio・core/video） */
.post_content .wp-block-audio,
.post_content .wp-block-video,
.editor-styles-wrapper .wp-block-audio,
.editor-styles-wrapper .wp-block-video {
	margin-block: 2em;
}

.post_content .wp-block-audio audio,
.post_content .wp-block-video video,
.editor-styles-wrapper .wp-block-audio audio,
.editor-styles-wrapper .wp-block-video video {
	display: block;
	width: 100%;
}

/* 埋め込みブロック（core/embed） */
.post_content .wp-block-embed,
.editor-styles-wrapper .wp-block-embed {
	margin-block: 2em;
}

.post_content .wp-block-embed__wrapper,
.editor-styles-wrapper .wp-block-embed__wrapper {
	max-width: 100%;
}

.post_content .wp-block-embed iframe,
.editor-styles-wrapper .wp-block-embed iframe {
	max-width: 100%;
}

/* 区切りブロック（core/separator） */
.post_content .wp-block-separator,
.editor-styles-wrapper .wp-block-separator {
	width: 100%;
	margin-block: 3em;
	border: 0;
	border-top: 2px solid var(--color-light-gray);
	opacity: 1;
}

.post_content .wp-block-separator.is-style-wide,
.editor-styles-wrapper .wp-block-separator.is-style-wide {
	border-top-color: var(--color-main);
}

.post_content .wp-block-separator.is-style-dots,
.editor-styles-wrapper .wp-block-separator.is-style-dots {
	border: 0;
	color: var(--color-main);
}

/* コード・整形済みテキストブロック（core/code・core/preformatted） */
.post_content .wp-block-code,
.post_content .wp-block-preformatted,
.editor-styles-wrapper .wp-block-code,
.editor-styles-wrapper .wp-block-preformatted {
	overflow-x: auto;
	padding: 20px 24px;
	margin-block: 2em;
	background: #f5f5f5;
	border: 1px solid var(--color-light-gray);
	border-radius: 8px;
	font-family: Consolas, Monaco, "Courier New", monospace;
	font-size: 15px;
	line-height: 1.7;
	white-space: pre;
}

/* ファイルブロック（core/file） */
.post_content .wp-block-file,
.editor-styles-wrapper .wp-block-file {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
	align-items: center;
	padding: 18px 20px;
	margin-block: 2em;
	background: #f5f5f5;
	border-radius: 8px;
}

.post_content .wp-block-file__button,
.editor-styles-wrapper .wp-block-file__button {
	padding: 8px 18px;
	color: var(--color-white);
	background: var(--color-main);
	border-radius: 999px;
}

/* 詳細ブロック（core/details） */
.post_content .wp-block-details,
.editor-styles-wrapper .wp-block-details {
	padding: 18px 22px;
	margin-block: 2em;
	border: 1px solid var(--color-light-gray);
	border-radius: 8px;
}

.post_content .wp-block-details summary,
.editor-styles-wrapper .wp-block-details summary {
	color: var(--color-main);
	cursor: pointer;
	font-size: 18px;
	font-weight: 700;
}

@media (max-width: 767px) {
	/* 段落ブロック（core/paragraph）・リストブロック（core/list） */
	.post_content p,
	.post_content li,
	.editor-styles-wrapper p,
	.editor-styles-wrapper .wp-block-list li {
		font-size: 16px;
	}

	/* 見出しブロック（core/heading） */
	.post_content h1,
	.editor-styles-wrapper h1.wp-block-heading {
		padding: 12px 14px;
		margin: 50px 0 24px;
		font-size: 24px;
	}

	.post_content h2,
	.editor-styles-wrapper h2.wp-block-heading {
		padding: 0 0 7px 30px;
		margin: 65px 0 20px;
		font-size: 20px;
	}

	.post_content h2::before,
	.editor-styles-wrapper h2.wp-block-heading::before {
		width: 24px;
		height: 24px;
	}

	.post_content h3,
	.editor-styles-wrapper h3.wp-block-heading {
		padding: 12px 16px;
		margin: 42px 0 18px;
		font-size: 18px;
	}

	.post_content h4,
	.editor-styles-wrapper h4.wp-block-heading {
		margin: 34px 0 14px;
		font-size: 16px;
	}

	.post_content h5,
	.post_content h6,
	.editor-styles-wrapper h5.wp-block-heading,
	.editor-styles-wrapper h6.wp-block-heading {
		margin: 30px 0 12px;
		font-size: 14px;
	}

	/* 引用ブロック（core/quote） */
	.post_content .wp-block-quote,
	.editor-styles-wrapper .wp-block-quote {
		padding: 18px 20px;
	}

	/* 表ブロック（core/table） */
	.post_content .wp-block-table th,
	.post_content .wp-block-table td,
	.editor-styles-wrapper .wp-block-table th,
	.editor-styles-wrapper .wp-block-table td {
		background-color: rgba(255,255,255,0.2);
		padding: 10px 12px;
		font-size: 14px;
	}

	/* ボタンブロック（core/buttons・core/button） */
	.post_content .wp-block-button__link,
	.editor-styles-wrapper .wp-block-button__link {
		min-width: 160px;
		padding: 11px 22px;
		font-size: 14px;
	}

	/* カラムブロック（core/columns） */
	.post_content .wp-block-columns,
	.editor-styles-wrapper .wp-block-columns {
		gap: 20px;
	}

	/* メディアとテキストブロック（core/media-text） */
	.post_content .wp-block-media-text,
	.editor-styles-wrapper .wp-block-media-text {
		gap: 20px;
	}

	/* カバーブロック（core/cover） */
	.post_content .wp-block-cover,
	.editor-styles-wrapper .wp-block-cover {
		min-height: 240px;
	}

	/* コード・整形済みテキストブロック（core/code・core/preformatted） */
	.post_content .wp-block-code,
	.post_content .wp-block-preformatted,
	.editor-styles-wrapper .wp-block-code,
	.editor-styles-wrapper .wp-block-preformatted {
		padding: 16px;
		font-size: 13px;
	}
}
