/*
 * さんらいずとは（手順書 P5-2・2026-09-29 静的版）＝style.css・pages.css の後に読む（版はファイルの更新時刻＝作り込み中）。
 * セクション見出し・項目の行（.sr-store__row）・公表カード（.sr-disc__*）は style.css の部品をそのまま使う＝ここはさんらいずとはだけの差分。
 * 🔄 2026-10-02 療育内容と同じ部品（リード文・H2 の括弧書き・H3 の縦バー・写真と文章の左右）は pages.css「下層ページ共通の部品」へ寄せた（クラス名は DB の本文にあるので変えず、両ページのクラスを並べる）。値の囲みは療育内容と同じ文法。
 * 色・大きさは style.css の値（変える時は両方）。px は偶数のみ。
 */

/* 本文のセクション＝main の制約レイアウトが足す上の余白（blockGap 24px）を打ち消す（療育内容と同じ） */
.sr-main--about > .sr-sec {
	margin-block: 0;
}

/* H3＝左にオレンジの縦バー（療育内容・施設案内の H3 と同じ） */
.sr-about-h3,
.sr-about-outline__name {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--40);
	margin: 0 0 var(--wp--preset--spacing--50);
	font-size: var(--wp--preset--font-size--lg);
}

/* 文章は文節で折り返す（「国の制／度」「お住ま／い」「事／業所」＝2026-09-29 第三者レビュー実測）。FV の導入文は下層共通（pages.css）なのでこのページだけ。
 * ⚠ Safari は auto-phrase に未対応（iPhone は字で折れる）＝折れて困る語（地名・窓口名・お問い合わせ等）は HTML 側で .sr-nobr に包む */
.sr-fv--about .sr-page__lead,
.sr-about-lead,
.sr-about-free,
.sr-about-note,
.sr-about-window {
	word-break: auto-phrase;
}

/* 補足の1行（text-mid はクリーム地で 4.49:1＝§6.5 → クリーム地では本文色） */
.sr-about-note {
	margin: var(--wp--preset--spacing--40) 0 0;
	color: var(--wp--preset--color--text-mid);
	font-size: var(--wp--preset--font-size--sm);
}
.sr-sec--cream .sr-about-note {
	color: var(--wp--preset--color--body-text);
}
.sr-about-note a {
	white-space: nowrap;
}

/* ---------- 1 代表ごあいさつ／2 理念＝写真と文章を左右に（共通部分は pages.css「写真と文章の左右」・ここはこのページだけの差分） ---------- */
/* 縦長の写真（3:4）＝文章は上にそろえる（段落が4つある） */
.sr-about-split--portrait {
	align-items: start;
}
.sr-about-split__body {
	word-break: auto-phrase;
}
/* 🆕 2026-10-16 代表ごあいさつの写真＝本文を読み進めても右についてくる（ユーザー指示・先方の全文＝約880字で写真の下が大きく空いた）。
 * PC・タブレット（≧768px＝左右に並ぶ幅）で、写真全体がヘッダーの下に収まる画面の高さのときだけ（写真 約470px＋ヘッダー＋余白 ≒ 600px） */
@media (min-width: 768px) and (min-height: 640px) {
	.sr-about-message .sr-about-split__photo {
		position: sticky;
		top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--sr-header-h) + var(--wp--preset--spacing--60));
	}
}

/* 理念の写真＝元の比率（16:9）のまま（4:3 に切ると描く幅が枠より広くなり、選ばれた 480w が約 1.2 倍に引き伸ばされた＝2026-09-29 第三者レビュー） */
.sr-about-philosophy .sr-about-split__photo {
	aspect-ratio: 16 / 9;
}

/* 署名＝右寄せ・丸ゴシック（お名前は1段大きく） */
.sr-about-split__body > .sr-about-message__sign {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: flex-end;
	gap: 0 var(--wp--preset--spacing--50);
	margin-top: var(--wp--preset--spacing--70);
	font-family: var(--wp--preset--font-family--round);
	font-weight: 700;
}
.sr-about-message__name {
	font-size: var(--wp--preset--font-size--lg);
}

/* 理念の一文＝大きめ・丸ゴシック（🆕 2026-10-16 ごあいさつの冒頭の一文も同じ見た目＝先方の文の1行目） */
.sr-about-split__body > .sr-about-philosophy__catch,
.sr-about-split__body > .sr-about-message__catch {
	margin-bottom: var(--wp--preset--spacing--60);
	color: var(--wp--preset--color--accent-deep);
	font-family: var(--wp--preset--font-family--round);
	font-size: var(--wp--preset--font-size--xl);
	font-weight: 700;
	line-height: var(--wp--custom--line-height--heading);
}

/* ---------- 3 ご利用いただけるお子様＝2列・値の囲み（療育内容の「送迎の対応範囲」と同じ組み方・白地なのでクリーム） ---------- */
/* 🔄 2026-10-16 上下2段に（ユーザー指示）＝上段「対象となる年齢・学年」＝2店の囲みを横並び／下段「対応エリア」＝囲みは上の1つ分の幅で中央。
 * 〈旧〉左右2列（左に2店を縦積み・右に対応エリア）＝左が2つ分の高さで右が空いた。SP（≦767px）は従来どおり全部縦に1列 */
.sr-about-target__list {
	display: grid;
	gap: var(--wp--preset--spacing--80);
	--sr-about-value-gap: var(--wp--preset--spacing--60);
}
.sr-about-target__item:first-child {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: var(--sr-about-value-gap);
	align-content: start;
}
.sr-about-target__item:first-child > :not(.sr-about-value) {
	grid-column: 1 / -1;
}
.sr-about-target__item:first-child > .sr-about-value + .sr-about-value {
	margin-top: 0;
}
.sr-about-target__item:last-child .sr-about-value {
	width: calc((100% - var(--sr-about-value-gap)) / 2);
	margin-inline: auto;
}
.sr-about-target__item:last-child .sr-about-note {
	text-align: center;
}
.sr-about-value {
	margin: 0;
	padding: var(--wp--preset--spacing--60);
	border-radius: var(--wp--custom--radius--sm);
	background: var(--wp--preset--color--cream);
	font-family: var(--wp--preset--font-family--round);
	font-size: var(--wp--preset--font-size--lg);
	font-weight: 700;
	line-height: var(--wp--custom--line-height--heading);
	text-align: center;
}
/* 🆕 2026-10-16 対象年齢を店ごとに2つ（秋川店 3歳〜／東あきる店 小学校1年生〜）＝囲みを縦に重ねる */
.sr-about-value + .sr-about-value {
	margin-top: var(--wp--preset--spacing--40);
}
/* 🆕 2026-10-16 囲みの高さをそろえる（ユーザー指示）＝行の高さを「大きい数字の行」に固定する。
 * 〈旧〉対応エリアの「施設から」の行は大きい文字がないぶん低く、左の囲みより約6px 低かった（1440 で 145／139px） */
.sr-about-value {
	line-height: calc(var(--wp--preset--font-size--xl) * var(--wp--custom--line-height--heading));
}
.sr-about-value__pre {
	display: block;
	line-height: var(--wp--custom--line-height--heading); /* 上の固定の行の高さを小見出しには効かせない */
	margin-bottom: var(--wp--preset--spacing--20);
	font-size: var(--wp--preset--font-size--base);
}
.sr-about-value strong {
	color: var(--wp--preset--color--accent-deep);
	font-size: var(--wp--preset--font-size--xl);
	line-height: 1; /* 行の高さは .sr-about-value の固定値に任せる（大きい数字が行を押し広げて囲みの高さが 1〜2px ずれた） */
}

/* ---------- 3 の下 受給者証について（🔄 2026-09-29 別セクションからお子様の中へ）＝白地なのでクリームの囲み（値の囲みと同じ色） ---------- */
.sr-about-cert {
	margin-top: var(--wp--preset--spacing--90);
}
.sr-about-cert__text {
	margin: 0 0 var(--wp--preset--spacing--60);
	word-break: auto-phrase;
}
.sr-about-panel {
	padding: var(--wp--preset--spacing--70);
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--cream);
}
/* H4＝囲みの見出し（縦バーは H3 だけ＝段を見分ける） */
.sr-about-h4 {
	margin: 0 0 var(--wp--preset--spacing--40);
	font-size: var(--wp--preset--font-size--md);
}
.sr-about-panel > p {
	margin: 0 0 var(--wp--preset--spacing--50);
	word-break: auto-phrase;
}
.sr-about-panel > .sr-about-panel__link {
	margin: var(--wp--preset--spacing--60) 0 0;
	text-align: center;
}
/* 編集画面はボタンの外枠（.wp-block-buttons＝flex）が残る＝中央へ（公開ページは外枠を外して <a> だけ＝inc/blocks.php） */
.sr-about-panel__link > .wp-block-buttons {
	justify-content: center;
}

/* ---------- 5 ご利用料金＝表（罫線は施設案内の項目の行と同じ色） ---------- */
.sr-about-price .sr-about-h3 {
	margin-top: var(--wp--preset--spacing--80);
}
.sr-about-price .sr-about-lead + .sr-about-h3 {
	margin-top: 0;
}
/* 表＝標準の表ブロック（figure.wp-block-table.sr-about-table の中に table）。🔄 2026-09-29 ブロック化
 * 読み上げの名前は直前の H3（表示時に aria-labelledby＝inc/about.php）。表ブロックの既定（セルの四方の線・見出し行の太線・幅の固定）を打ち消す
 * 表は白地（料金はクリーム地＝項目名の濃ティールはクリーム地だと AA 未満・白地で 4.57:1） */
.sr-about-table {
	margin: 0;
}
/* theme.json の core/table（外周 1px の線）と表ブロックの .has-fixed-layout（列を均等＝SP で項目名が4行に折れた）を打ち消す＝詳細度 0,2,0 */
.sr-about-table table,
.sr-about-table .has-fixed-layout {
	width: 100%;
	table-layout: auto;
	border: 0;
	border-collapse: collapse;
	border-top: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--base);
}
.sr-about-table thead {
	border-bottom: 0;
}
.sr-about-table th,
.sr-about-table td {
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60);
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
	text-align: left;
	vertical-align: middle;
}
.sr-about-table thead th {
	background: var(--wp--preset--color--cream);
	font-family: var(--wp--preset--font-family--round);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 700;
}
.sr-about-table tbody th {
	color: var(--wp--preset--color--sub-deep);
	font-family: var(--wp--preset--font-family--round);
	font-weight: 700;
}
.sr-about-table th:last-child,
.sr-about-table td {
	width: 12em;
	text-align: right;
	white-space: nowrap; /* 「ひと月の上限／額」と折れた（390px） */
}
.sr-about-table td strong {
	color: var(--wp--preset--color--accent-deep);
	font-family: var(--wp--preset--font-family--round);
	font-size: var(--wp--preset--font-size--xl);
	margin-right: 2px;
}
.sr-about-table__sub {
	display: inline-block;
	font-size: var(--wp--preset--font-size--sm);
}
/* 窓口の案内（🔴 必須の一文）＝表の下に太字で（罫線を足すと表の罫線と二重になり空の行に見えた＝2026-09-29 実測） */
.sr-about-window {
	margin: var(--wp--preset--spacing--80) 0 0;
	font-weight: 700;
	text-align: center;
}

/* ---------- 6 事業所の概要＝白い囲み（施設案内の情報カードと同じ）＋店ごとに2列 ---------- */
.sr-about-outline__box {
	padding: var(--wp--preset--spacing--80);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--base);
	box-shadow: var(--wp--preset--shadow--card);
}
.sr-about-outline__list {
	margin: 0;
}
/* 項目名の幅は共通の表と店の表で 8em にそろえる（6em と 8em で値の始まりが 32px ずれた＝2026-09-29 第三者レビュー）。
 * style.css の 1080px 以下の縦積み（トップの教室カード用）はこの囲みでは効かせない＝gap も戻す */
.sr-about-outline__list .sr-store__row {
	grid-template-columns: 8em minmax(0, 1fr);
	gap: var(--wp--preset--spacing--50);
}
.sr-about-outline__stores {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--80);
	margin-top: var(--wp--preset--spacing--80);
}
.sr-about-outline__store .sr-store__row a {
	color: inherit;
	text-underline-offset: 4px;
}
.sr-about-outline__more {
	margin: var(--wp--preset--spacing--70) 0 0;
	text-align: right;
}
.sr-about-outline__more a {
	color: var(--wp--preset--color--accent-deep);
	font-family: var(--wp--preset--font-family--round);
	font-weight: 700;
	text-underline-offset: 4px;
}

/* ---------- 7・8 公表（「ここから」型＝クリームの概要の下で地の色が変わる所が区切り） ----------
 * 🔄 2026-11-07 先方①＝ファイルを入れていく形＝囲み2つ（支援プログラム／自己評価）×店2つ。見出し H2 を足した（D-5）。
 * 囲みの見た目＝トップのブロック10のカード（style.css .sr-disc__card）と同じ枠・左の色帯。ただし押せるカードではない＝影は動かさない。
 * 〈旧〉記事から出すカード2枚（.sr-about-disc .sr-disc__card・--pending）＝外した */
.sr-about-disc .sr-disc__lead {
	word-break: auto-phrase;
}
.sr-about-files__boxes {
	display: grid;
	gap: var(--wp--preset--spacing--60);
}
.sr-about-files {
	padding: var(--wp--preset--spacing--60);
	border: 1px solid var(--wp--preset--color--line);
	border-left: 6px solid var(--wp--preset--color--sub);
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--base);
	box-shadow: var(--wp--preset--shadow--card);
	scroll-margin-top: var(--wp--preset--spacing--60); /* 右サイド「公表事項」・トップのカードから飛んだとき、固定ヘッダーの真下に貼り付かない（2026-09-29 と同じ） */
}
.sr-about-files > .sr-about-files__title {
	margin: 0 0 var(--wp--preset--spacing--50);
	font-size: var(--wp--preset--font-size--lg);
}
.sr-about-files__stores {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60);
}
.sr-about-files__store > .sr-about-files__name {
	margin: 0 0 var(--wp--preset--spacing--30);
	padding-bottom: var(--wp--preset--spacing--30);
	border-bottom: 1px solid var(--wp--preset--color--line);
	font-size: var(--wp--preset--font-size--md);
}
/* ファイル＝1行に1つのリンク（「＋」は下に足す＝並べ替えは上下の矢印・PDF の埋め込みとボタンは inc/about.php で外している） */
.sr-about-files__list {
	gap: var(--wp--preset--spacing--30); /* 本文側は縦の flex（編集画面で空のときの選択肢を出さないため・bin/sr-1107-about-files.php） */
}
.sr-about-files__list .wp-block-file {
	margin: 0;
	font-size: var(--wp--preset--font-size--base); /* 既定のファイルブロックは本文より小さかった（2026-11-07 実測） */
}
.sr-about-files__list .wp-block-file a {
	color: var(--wp--preset--color--accent-deep);
	font-weight: 700;
	text-underline-offset: 4px;
	word-break: auto-phrase;
}
.sr-about-files__list .wp-block-file a[data-ext]::after {
	content: attr(data-ext); /* リンク先の拡張子（inc/about.php） */
	display: inline-block;
	margin-left: 8px;
	padding: 0 6px;
	border: 1px solid currentColor;
	border-radius: 4px;
	font-size: var(--wp--preset--font-size--sm);
	line-height: 1.5;
	vertical-align: 2px;
	text-decoration: none;
}

/* ---------- 幅が狭いとき ---------- */
/* 概要の店2列＝囲みが狭いと値の欄が 170px ほどになり「徒｜歩1分」「秋川｜1丁目」と折れた（800px）＝960px 以下は店を縦に（項目名は横のまま） */
@media (max-width: 960px) {
	.sr-about-outline__stores {
		grid-template-columns: 1fr;
		gap: var(--wp--preset--spacing--70);
	}
}
@media (max-width: 767px) {
	/* 公表＝店を縦に */
	.sr-about-files__stores {
		grid-template-columns: 1fr;
	}
	/* 概要＝SP で店を縦に・項目名を値の上に（〈旧〉1080px で切り替え＝囲みの幅は変わらないのに 1024px で約 850px 伸びた＝2026-09-29 第三者レビュー） */
	.sr-about-outline__stores {
		grid-template-columns: 1fr;
		gap: var(--wp--preset--spacing--70);
	}
	.sr-about-outline__list .sr-store__row {
		grid-template-columns: 1fr;
		gap: var(--wp--preset--spacing--20);
	}
	.sr-about-split__body > .sr-about-philosophy__catch,
	.sr-about-split__body > .sr-about-message__catch {
		font-size: var(--wp--preset--font-size--lg);
	}
	.sr-about-target__list {
		gap: var(--wp--preset--spacing--70);
	}
	.sr-about-target__item:first-child {
		grid-template-columns: 1fr;
	}
	.sr-about-target__item:first-child > .sr-about-value + .sr-about-value {
		margin-top: var(--wp--preset--spacing--40);
	}
	.sr-about-target__item:last-child .sr-about-value {
		width: auto;
	}
	.sr-about-target__item:last-child .sr-about-note {
		text-align: left;
	}
	.sr-about-panel {
		padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50);
	}
	.sr-about-table th,
	.sr-about-table td {
		padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30);
	}
	.sr-about-table th:last-child,
	.sr-about-table td {
		width: auto;
	}
	.sr-about-table td strong {
		font-size: var(--wp--preset--font-size--lg);
	}
	.sr-about-window {
		text-align: left;
	}
	.sr-about-outline__box {
		padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50);
	}
	.sr-about-outline__more {
		text-align: left;
	}
	/* FV の導入文＝SP は改行を外して流す（「金のしくみ、」だけ次の行に落ちた） */
	.sr-fv--about .sr-page__lead br {
		display: none;
	}
}

/* 🆕 2026-11-16 FV の写真＝先方の写真（卵の遊具の男の子・IMG_3304）。下層共通の縦位置 60% だと PC の帯で顔が上で切れる → このページだけ 30%
 * （30／45／60 を差し込みで比較＝05_deploy/_careers/2026-11-16_FV写真2/）。先方が写真を替えたら位置も見直す（操作マニュアルに書く）。 */
.sr-fv__img {
	object-position: 50% 30%;
}
