/**
 * PC表示の中央見出しと短いアクセントラインの水平位置を統一する。
 *
 * ページ固有CSSの基底 `.accent-line` はページ名を含む高い詳細度を持つ場合があるため、
 * `body[class] main[class]` を共通の最終レイヤーとして付与し、中央見出しの線だけを確実に中央へ戻す。
 * 760px以下には読み込まないため、スマートフォンの既存レイアウト・余白・改行には影響しない。
 */

/**
 * 学校紹介・教育・カリキュラム系では、ページ固有の見出し詳細度より後段でアクセント線だけを中央へ揃える。
 */
body[class] main[class] :where(
	.p1-intro,
	.p1-support-school__head,
	.p1-strengths__head,
	.philosophy-intro-heading,
	.philosophy-story__head,
	.profile-section-head,
	.profile-information__head,
	.principal-values__head,
	.edu-section-head
) :where(.accent-line, .edu-accent),
body[class] main[class] .curriculum-section-head--center .curriculum-section-line {
	display: block;
	margin-right: auto;
	margin-left: auto;
}

/**
 * 学校生活・アクセス系は複数の見出し構造を共有するため、中央見出しに属するアクセント線だけを同じ基準へ揃える。
 */
body[class] main[class] :where(
	.sl-intro__copy,
	.sl-values__copy,
	.sl-section-head--center,
	.sl-child-intro__copy,
	.school-life-gallery-showcase__header,
	.gallery-preparation__body,
	.access-section-head--center
) .accent-line,
body[class] main[class] .access-route__head .accent-line {
	display: block;
	margin-right: auto;
	margin-left: auto;
}

/**
 * 入学情報・オンライン説明会・お問い合わせ系はフォームや関連ページを含むため、左寄せ指定の見出しを除外して中央見出しだけ補正する。
 */
body[class] main[class] :where(
	.admissions-intro__head,
	.admission-flow__head,
	.guidelines-section-head,
	.faq-section-head,
	.events-section-head:not(.events-section-head--left),
	.schedule-intro,
	.event-notes__head,
	.consultation-section-head,
	.join-flow__head,
	.contact-section-head,
	.related-pages__head
) .accent-line {
	display: block;
	margin-right: auto;
	margin-left: auto;
}
