/*
 * MIRAIWEB 4サービスサイト共通：全ページのセクション見出しと導入文。
 * 共通見出しのデザイン仕様を各サービスで維持する。
 * H2＋導入文の2階層。ファーストビュー・カード・記事本文には適用しない。
 */
:is(.p-front :is(.p-front-section-head, .p-price-section__intro), main .mw-section-head) {
	width: 100%;
	max-width: 860px;
	margin-inline: auto;
	text-align: center;
}

:is(.p-front .p-front-section-head, main .mw-section-head) {
	margin-block: 0 44px;
}

:is(.p-front :is(.p-front-section-head, .p-price-section__intro), main .mw-section-head) > h2 {
	max-width: 860px;
	margin: 0 auto 16px;
	color: var(--color-heading);
	font-size: var(--mw-font-section-size);
	font-weight: var(--mw-font-heading);
	line-height: 1.5;
	letter-spacing: 0;
}

/* 見出しと導入文を区切るブランドカラーの短い罫線。 */
:is(.p-front :is(.p-front-section-head, .p-price-section__intro), main .mw-section-head) > h2::after {
	content: "";
	display: block;
	width: 40px;
	margin: 12px auto 0;
	border-top: 2px solid var(--color-primary);
}

:is(.p-front :is(.p-front-section-head, .p-price-section__intro), main .mw-section-head) > p {
	max-width: 800px;
	margin: 0 auto;
	color: var(--color-text-secondary);
	font-size: var(--mw-font-body-size);
	font-weight: var(--mw-font-regular);
	line-height: 1.9;
}

@media (max-width: 768px) {
	:is(.p-front .p-front-section-head, main .mw-section-head) {
		margin-bottom: 32px;
	}

	:is(.p-front :is(.p-front-section-head, .p-price-section__intro), main .mw-section-head) > h2 {
		font-size: var(--mw-font-section-size-mobile);
	}

	:is(.p-front :is(.p-front-section-head, .p-price-section__intro), main .mw-section-head) > p {
		font-size: var(--mw-font-body-size-mobile);
	}
}

/* 下層ページの見出しは、従来の横並び・グリッド指定にかかわらず独立させる。 */
main .mw-section-head.mw-section-head {
	display: block;
}

main .l-container.mw-section-head {
	width: min(calc(100% - 40px), 860px);
}

@media (max-width: 768px) {
	main .l-container.mw-section-head {
		width: min(calc(100% - 32px), 860px);
	}
}
