.post-single__content,
.news-single__content {
	display: flex;
	flex-direction: column;
	gap: 30px;
	font-size: 15px;
	line-height: 25px;
	color: var(--color-text-gray);
	word-break: break-word;
}

.post-single__content>*,
.news-single__content>* {
	margin: 0;
}

.post-single__content h1,
.post-single__content h2,
.post-single__content h3,
.post-single__content h4,
.news-single__content h1,
.news-single__content h2,
.news-single__content h3,
.news-single__content h4 {
	margin: 0;
	color: var(--color-text-gray);
}

.post-single__content h1,
.news-single__content h1 {
	font-size: 26px;
	font-weight: 600;
	padding-bottom: 18px;
	margin-top: 50px;
	margin-bottom: 20px;
	position: relative;
}

.post-single__content h1::after,
.news-single__content h1::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: var(--color-main);
}

.post-single__content h2,
.news-single__content h2 {
	font-size: 22px;
	font-weight: 600;
	padding-left: 12px;
	margin-top: 30px;
	margin-bottom: 10px;
	position: relative;
}

.post-single__content h2::before,
.news-single__content h2::before {
	content: "";
	position: absolute;
	left: 0;
	top: -5px;
	bottom: -5px;
	width: 2px;
	background: var(--color-main);
}

.post-single__content h3,
.news-single__content h3 {
	font-size: 18px;
	font-weight: 600;
	margin-top: 10px;
}

.post-single__content h4,
.news-single__content h4 {
	font-size: 15px;
	font-weight: 600;
}

.post-single__content p,
.news-single__content p {
	font-weight: 300;
	font-size: 15px;
}

.post-single__content p+p,
.news-single__content p+p {
	margin-top: 5px;
}

.post-single__content strong,
.post-single__content b,
.news-single__content strong,
.news-single__content b {
	font-weight: 600;
	color: var(--color-text-white);
}

.post-single__content a,
.news-single__content a {
	color: var(--color-main);
}

.post-single__content img,
.news-single__content img {
	max-width: 100%;
	height: auto;
}

.post-single__content ul,
.post-single__content ol,
.news-single__content ul,
.news-single__content ol {
	margin: 0;
	padding-left: 10px;
}

.post-single__content ul,
.news-single__content ul {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.post-single__content ul li,
.news-single__content ul li {
	position: relative;
	padding-left: 13px;
}

.post-single__content ul li::before,
.news-single__content ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 8px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background-color: var(--color-main);
}

.post-single__content ol,
.news-single__content ol {
	list-style: none;
	padding-left: 10px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	counter-reset: post-ol-counter;
}

.post-single__content ol li,
.news-single__content ol li {
	position: relative;
	padding-left: 20px;
	counter-increment: post-ol-counter;
	color: var(--color-text-white);
}

.post-single__content ol li::before,
.news-single__content ol li::before {
	content: counter(post-ol-counter) ".";
	position: absolute;
	left: 0;
	top: -1px;
	color: var(--color-main);
	font-size: 15px;
	font-weight: 350;
}

.post-single__content code:not(pre code),
.news-single__content code:not(pre code) {
	background-color: var(--color-panel-dark-gray);
	color: var(--color-main);
	padding: 2px 6px;
	border-radius: 6px;
	font-size: 0.95em;
	font-family: "SFMono-Regular", "Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New", monospace;
}

.page-simple {
	--page-simple-left: 40px;
	color: var(--color-text-gray);
	word-break: break-word;
	padding-left: var(--page-simple-left);
	padding-right: var(--page-simple-left);
}

/* 全幅（Full Width）で広がるブロックのブレイクアウト設定 */
.page-simple>.wp-block-nhk-achievements,
.page-simple>.nhk-achievements,
.page-simple>.wp-block-nhk-section-wrapper,
.page-simple>.nhk-section-wrapper,
.page-simple>.wp-block-nhk-horizontal-scroll,
.page-simple>.nhk-horizontal-scroll,
.page-simple>.wp-block-nhk-recent-posts,
.page-simple>.nhk-recent-posts {
	margin-left: calc(-1 * var(--page-simple-left));
	margin-right: calc(-1 * var(--page-simple-left));
	width: 100vw;
}

.page-simple .wp-block-heading {
	margin: 0;
	color: var(--color-text-gray);
}

.page-simple h1.wp-block-heading {
	font-size: 32px;
	font-weight: 600;
	padding-bottom: 12px;
	margin-top: 50px;
	margin-bottom: 20px;
	display: inline-block;
	max-width: 100%;
	position: relative;
}

.page-simple h1.wp-block-heading::after {
	content: "";
	position: absolute;
	left: 0;
	right: auto;
	bottom: 0;
	height: 2px;
	width: calc(100% + 30px);
	background: var(--color-main);
}

.page-simple h2.wp-block-heading {
	font-size: 26px;
	font-weight: 600;
	padding-left: 12px;
	margin-top: 30px;
	margin-bottom: 10px;
	position: relative;
}

.page-simple h2.wp-block-heading::before {
	content: "";
	position: absolute;
	left: 0;
	top: -5px;
	bottom: -5px;
	width: 2px;
	background: var(--color-main);
}

.page-simple h3.wp-block-heading {
	font-size: 22px;
	font-weight: 600;
	margin-top: 10px;
}

.page-simple h4.wp-block-heading {
	font-size: 15px;
	font-weight: 600;
}
.page-simple h6.wp-block-heading {
	font-size: 23px;
	font-weight: 400;
	color: var(--color-main);
}

.page-simple .wp-block-paragraph {
	font-weight: 300;
	font-size: 15px;
	line-height: 25px;
	margin: 0;
}

.page-simple .wp-block-paragraph+.wp-block-paragraph {
	margin-top: 5px;
}

.page-simple strong,
.page-simple b {
	font-weight: 600;
	color: var(--color-text-white);
}

.page-simple a {
	color: var(--color-main);
}

.page-simple .nhk-sns-account,
.page-simple .nhk-sns-account:visited,
.page-simple .nhk-sns-account__name,
.page-simple .nhk-sns-account__handle {
	color: var(--color-text-white);
}

.page-simple a.hero-button {
	color: var(--color-text-black);
}

.page-simple a.hero-button--outline {
	color: var(--color-main);
}

.page-simple a.hero-button--outline:hover,
.page-simple a.hero-button--outline:focus-visible {
	color: var(--color-text-black);
}

/* 親要素の padding で位置調整されるため、個別の margin は不要 */

.page-simple img {
	max-width: 100%;
	height: auto;
}

.page-simple .nhk-achievement-card__media img {
	height: 100%;
	object-fit: cover;
}

.page-simple ul.wp-block-list,
.page-simple ol.wp-block-list {
	margin: 0;
	padding-left: 10px;
}

/* 親要素の padding で位置調整されるため、個別の padding-left 相殺は不要 */

.page-simple ul.wp-block-list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.page-simple ul.wp-block-list li {
	position: relative;
	padding-left: 13px;
}

.page-simple ul.wp-block-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 8px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background-color: var(--color-main);
}

.page-simple ol.wp-block-list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
	counter-reset: page-simple-ol-counter;
}

.page-simple ol.wp-block-list li {
	position: relative;
	padding-left: 20px;
	counter-increment: page-simple-ol-counter;
	color: var(--color-text-white);
}

.page-simple ol.wp-block-list li::before {
	content: counter(page-simple-ol-counter) ".";
	position: absolute;
	left: 0;
	top: -1px;
	color: var(--color-main);
	font-size: 15px;
	font-weight: 350;
}

.page-simple code:not(pre code) {
	background-color: var(--color-panel-dark-gray);
	color: var(--color-main);
	padding: 2px 6px;
	border-radius: 6px;
	font-size: 0.95em;
	font-family: "SFMono-Regular", "Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New", monospace;
}

@media (max-width: 1049px) {
	.page-simple {
		--page-simple-left: 20px;
	}
}

/* ========================================
   Content Panel in Single Content
   ======================================== */
.post-single__content>.wp-block-nhk-content-panel,
.post-single__content>.nhk-content-panel,
.news-single__content>.wp-block-nhk-content-panel,
.news-single__content>.nhk-content-panel {
	margin-left: 40px;
	margin-right: 40px;
	width: calc(100% - 80px);
}

.page-simple>.wp-block-nhk-content-panel,
.page-simple>.nhk-content-panel {
	margin-left: 0;
	width: 100%;
}

@media (max-width: 1049px) {

	.post-single__content>.wp-block-nhk-content-panel,
	.post-single__content>.nhk-content-panel,
	.news-single__content>.wp-block-nhk-content-panel,
	.news-single__content>.nhk-content-panel {
		margin-left: 20px;
		margin-right: 20px;
		width: calc(100% - 40px);
	}

	.page-simple>.wp-block-nhk-content-panel,
	.page-simple>.nhk-content-panel {
		margin-left: 0;
		width: 100%;
	}
}

@media (max-width: 640px) {

	.post-single__content>.wp-block-nhk-content-panel,
	.post-single__content>.nhk-content-panel,
	.news-single__content>.wp-block-nhk-content-panel,
	.news-single__content>.nhk-content-panel {
		margin-left: 10px;
		width: 100%;
	}
}

/* ========================================
   固定ページ（文章用）テンプレート
   page-simple のスタイルを継承しつつ、
   ブロック間にブログ記事と同じ行間(gap)を追加
   ======================================== */
.page-article {
	display: flex;
	flex-direction: column;
	gap: 30px;
	font-size: 15px;
	line-height: 25px;
}

.page-article>* {
	margin: 0;
}

/* 全幅ブロックのブレイクアウト設定 */
.page-article>.wp-block-nhk-achievements,
.page-article>.nhk-achievements,
.page-article>.wp-block-nhk-section-wrapper,
.page-article>.nhk-section-wrapper,
.page-article>.wp-block-nhk-horizontal-scroll,
.page-article>.nhk-horizontal-scroll,
.page-article>.wp-block-nhk-home-hero,
.page-article>.wp-block-nhk-hero-section-2,
.page-article>.nhk-hero2,
.page-article>.wp-block-nhk-recent-posts,
.page-article>.nhk-recent-posts {
	margin-left: calc(-1 * var(--page-simple-left));
	margin-right: calc(-1 * var(--page-simple-left));
	width: 100vw;
}

.page-article>.wp-block-nhk-content-panel,
.page-article>.nhk-content-panel {
	margin-left: 0;
	width: 100%;
}

.page-article h1,
.page-article h2,
.page-article h3,
.page-article h4,
.page-article h5,
.page-article h6,
.page-article .wp-block-heading {
	line-height: 1.3;
}