/**
 * 校長挨拶ページのメッセージ、引用カード、紹介領域の固有表示を管理する。
 *
 * 引用カードの装飾線を含むスマホ配置は共通レイヤーと連携するため、基底位置だけをこのファイルで定義する。
 * 学校紹介ページ群の共通値はpages/about/base.cssを優先する。
 */

/**
 * 1.0 校長挨拶ページの共通基盤
 *
 * 本文・引用・教育の柱・プロフィールで共有する余白と文字組みをこのページ内で統一する。
 */

.shs-about-family.page-principal {
	--principal-ivory: #fffdfb;
	background: var(--principal-ivory);
}

/**
 * 2.0 校長メッセージと引用
 *
 * 本文とキーメッセージを左右に配置し、長文を読み進める途中で学校の考え方を要約できるようにする。
 */

.shs-about-family .principal-message-section {
	padding: 92px 0 82px;
	background: #fff;
}

.shs-about-family .principal-message-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(390px, 440px);
	gap: clamp(48px, 5vw, 72px);
	align-items: stretch;
}

.shs-about-family .principal-letter {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

.shs-about-family .principal-letter .eyebrow {
	margin-bottom: 20px;
	letter-spacing: 0.22em;
}

.shs-about-family .principal-letter h2 {
	margin: 0;
	color: #9e5369;
	font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
	font-size: clamp(40px, 4vw, 54px);
	font-weight: 700;
	line-height: 1.34;
	letter-spacing: 0.04em;
}

.shs-about-family .principal-letter__line {
	display: block;
	white-space: nowrap;
}

.shs-about-family .principal-letter__line + .principal-letter__line {
	margin-top: 2px;
}

.shs-about-family .principal-letter__text {
	margin-top: 38px;
	color: var(--muted);
	font-size: 15px;
	line-height: 2.1;
}

.shs-about-family .principal-letter__text p {
	margin: 0 0 18px;
}

.shs-about-family .principal-copy-line {
	display: block;
}

.shs-about-family .principal-letter__lead {
	position: relative;
	margin: 0 0 30px;
	padding: 23px 28px 23px 30px;
	color: #9e5369;
	font-size: 15px;
	line-height: 2.05;
	background: linear-gradient( 90deg, rgba(239, 120, 188, 0.16), rgba(255, 255, 255, 0.96) );
	border: 1px solid rgba(239, 120, 188, 0.28);
	border-left: 4px solid #ef78bc;
	border-radius: 0 16px 16px 0;
	box-shadow: 0 12px 30px rgba(158, 83, 105, 0.05);
	font-weight: 500;
}

.shs-about-family .principal-letter__policy strong {
	color: #9e5369;
	font-weight: 700;
	background: linear-gradient(transparent 66%, rgba(239, 120, 188, 0.16) 66%);
}

.shs-about-family .principal-message-side {
	display: grid;
	width: 100%;
	max-width: 440px;
	height: auto;
	grid-template-rows: auto;
	gap: 0;
	align-content: center;
	align-self: center;
	justify-self: center;
}

.shs-about-family .principal-quote {
	position: relative;
	align-self: center;
	width: 100%;
	height: auto;
	min-height: 440px;
	padding: 64px 42px 54px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow: hidden;
	color: #9e5369;
	background: radial-gradient( circle at 92% 12%, rgba(239, 120, 188, 0.18), transparent 28% ), linear-gradient(145deg, #fff8fb, #fdebf5);
	border: 1px solid rgba(239, 120, 188, 0.34);
	border-radius: 22px;
	box-shadow: 0 22px 55px rgba(158, 83, 105, 0.12);
}

.shs-about-family .principal-quote::before,
.shs-about-family .principal-quote::after {
	content: "";
	position: absolute;
	width: 260px;
	height: 260px;
	border: 1px solid rgba(239, 120, 188, 0.22);
	border-radius: 48% 52% 44% 56%;
	transform: rotate(24deg);
}

.shs-about-family .principal-quote::before {
	right: -150px;
	top: -130px;
}

.shs-about-family .principal-quote::after {
	left: -165px;
	bottom: -160px;
}

.shs-about-family .principal-quote blockquote {
	position: relative;
	z-index: 2;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
	font-size: clamp(23px, 1.7vw, 27px);
	font-weight: 500;
	line-height: 1.58;
	letter-spacing: 0.01em;
}

.shs-about-family .principal-quote blockquote span {
	display: block;
	max-width: 100%;
	white-space: nowrap;
	overflow-wrap: normal;
}

.shs-about-family .principal-quote__mark {
	position: absolute;
	z-index: 2;
	top: 32px;
	left: 34px;
	color: #ef78bc;
	font-family: Georgia, serif;
	font-size: 58px;
	line-height: 1;
}

.shs-about-family .principal-quote__mark--end {
	top: auto;
	right: 34px;
	bottom: 18px;
	left: auto;
}

.shs-about-family .principal-quote__line {
	position: relative;
	z-index: 2;
	width: 44px;
	height: 2px;
	margin-top: 30px;
	background: #56d1ca;
}

/**
 * 3.0 校長が示す教育の柱
 *
 * 学校が重視する価値を番号付きカードとして並べ、本文から具体的な教育方針へ接続する。
 */

.shs-about-family .principal-values {
	padding: 76px 0 94px;
	background: #fffafc;
}

.shs-about-family .principal-values__head {
	margin: 0 auto 44px;
	max-width: 760px;
	text-align: center;
}

.shs-about-family .principal-values__head .section-title {
	font-weight: 700;
}

.shs-about-family .principal-values__head .accent-line {
	margin-inline: auto;
}

.shs-about-family .principal-values__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.shs-about-family .principal-value-card {
	position: relative;
	min-height: 235px;
	padding: 38px 16px 32px;
	display: grid;
	grid-template-columns: max-content 44px minmax(0, 1fr);
	gap: 8px;
	align-items: start;
	background: rgba(255, 255, 255, 0.94);
	border: 1px solid var(--line);
	border-radius: 18px;
	box-shadow: 0 12px 35px rgba(158, 83, 105, 0.06);
	transition:
		transform var(--shs-hover-lift-duration) var(--shs-hover-lift-ease),
		box-shadow var(--shs-hover-lift-duration) var(--shs-hover-lift-ease);
}

.shs-about-family .principal-value-card:hover {
	transform: translateY(var(--shs-hover-card-lift-distance));
	box-shadow: var(--shadow);
}

.shs-about-family .principal-value-card__number {
	color: rgba(158, 83, 105, 0.72);
	font-family: Georgia, serif;
	font-size: 34px;
	line-height: 1;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

.shs-about-family .principal-value-card__icon {
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	color: #ef78bc;
	background: var(--rose-pale);
	border-radius: 50%;
}

.shs-about-family .principal-value-card__icon svg {
	width: 23px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.5;
}

.shs-about-family .principal-value-card__icon.shs-ai-icon {
	font-family: "Material Symbols Outlined";
	font-size: 25px;
	font-weight: 400;
	font-style: normal;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	white-space: nowrap;
	word-wrap: normal;
	direction: ltr;
	font-feature-settings: "liga";
	-webkit-font-feature-settings: "liga";
	-webkit-font-smoothing: antialiased;
	font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 23;
}

.shs-about-family .principal-value-card h3 {
	margin: 1px 0 11px;
	color: #9e5369;
	font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
	font-size: clamp(16px, 1.45vw, 20px);
	line-height: 1.5;
	letter-spacing: 0.02em;
}

.shs-about-family .principal-value-card__title-line {
	display: block;
	white-space: nowrap;
}

.shs-about-family .principal-value-card p {
	margin: 0;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.9;
}

/**
 * 4.0 生徒へのメッセージと校長プロフィール
 *
 * 生徒への締めくくりメッセージと経歴を同じセクションに置き、発信者の背景まで確認できるようにする。
 */

.shs-about-family .principal-profile-section {
	padding: 86px 0;
	background: #fff;
}

.shs-about-family .principal-profile-panel {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(540px, 1fr);
	gap: 64px;
	align-items: stretch;
	padding: 50px 48px;
	background: radial-gradient( circle at 10% 15%, rgba(239, 120, 188, 0.08), transparent 30% ), linear-gradient(135deg, rgba(239, 120, 188, .030), #fff);
	border: 1px solid var(--line);
	border-radius: 26px;
	box-shadow: 0 18px 48px rgba(158, 83, 105, 0.08);
}

.shs-about-family .principal-student-message {
	align-self: center;
}

.shs-about-family .principal-student-message h2 {
	margin: 0;
	color: #9e5369;
	font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
	font-size: clamp(31px, 3.5vw, 43px);
	font-weight: 700;
	letter-spacing: 0.08em;
}

.shs-about-family .principal-student-message > p:not(.eyebrow) {
	margin: 0 0 14px;
	color: var(--muted);
	font-size: 14px;
	line-height: 2.15;
	text-wrap: pretty;
}

.shs-about-family .principal-student-message .accent-line {
	margin: 28px 0 20px;
}

.shs-about-family .principal-student-message__closing {
	margin-top: 42px;
	padding-left: 30px;
	border-left: 3px solid var(--rose);
	color: #ef78bc;
	font-family: inherit;
}

.shs-about-family .principal-student-message__closing span {
	display: block;
}

.shs-about-family .principal-student-message__closing-title {
	font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
	font-size: clamp(25px, 2.1vw, 35px);
	font-weight: 500;
	line-height: 1.55;
	letter-spacing: 0.045em;
}

.shs-about-family .principal-student-message__closing-main,
.shs-about-family .principal-student-message__closing-note {
	font-size: inherit;
	font-weight: 400;
	line-height: inherit;
	letter-spacing: inherit;
}

.shs-about-family .principal-student-message__closing-main {
	margin-top: 10px;
}

.shs-about-family .principal-student-message__closing-note {
	margin-top: 0;
}

.shs-about-family .principal-profile-side {
	display: grid;
	grid-template-columns: minmax(270px, 1fr) minmax(0, 1fr);
	gap: 40px;
	align-items: start;
}

.shs-about-family .principal-profile-photo {
	min-height: 0;
	align-self: center;
	overflow: hidden;
	border-radius: 20px;
	box-shadow: 0 16px 36px rgba(18, 52, 95, 0.12);
}

.shs-about-family .principal-profile-photo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	object-position: center 30%;
	max-width: 100%;
}

.shs-about-family .principal-profile h3 {
	margin: 0;
	color: #9e5369;
	font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
	font-size: 14px;
	font-weight: 500;
}

.shs-about-family .principal-profile__name {
	margin: 5px 0 22px;
	color: var(--ink);
	font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
	font-size: 24px;
	letter-spacing: 0.18em;
}

.shs-about-family .principal-profile dl {
	margin: 0;
	display: grid;
	gap: 0;
}

.shs-about-family .principal-profile dl div {
	display: grid;
	grid-template-columns: 74px 1fr;
	gap: 10px;
	padding: 13px 0;
	color: var(--muted);
	font-size: 11px;
	line-height: 1.75;
}

.shs-about-family .principal-profile dl div:not(:last-child) {
	border-bottom: 1px solid rgba(158, 83, 105, 0.2);
}

.shs-about-family .principal-profile dt {
	color: #ef78bc;
	font-weight: 700;
}

.shs-about-family .principal-profile dd {
	margin: 0;
}

@media (min-width: 1180px) {
	.shs-about-family .principal-copy-line {
		white-space: nowrap;
	}
}

/**
 * 5.0 校長挨拶ページのレスポンシブ設計
 *
 * 1060px以下で本文・引用・プロフィールの複数列を段階的に縦積みへ変更し、長文の読み順を維持する。
 */

@media (max-width: 1060px) {
	.shs-about-family .principal-message-grid {
		grid-template-columns: minmax(0, 1fr) minmax(340px, 380px);
		gap: 42px;
	}

	.shs-about-family .principal-quote {
		min-height: 410px;
		padding-right: 34px;
		padding-left: 34px;
	}

	.shs-about-family .principal-quote blockquote {
		font-size: 23px;
	}

	.shs-about-family .principal-letter h2 {
		font-size: clamp(36px, 3.7vw, 48px);
	}

	.shs-about-family .principal-values__grid {
		grid-template-columns: 1fr;
	}

	.shs-about-family .principal-value-card {
		min-height: 0;
		grid-template-columns: 72px 62px 1fr;
	}

	.shs-about-family .principal-profile-panel {
		grid-template-columns: 1fr 0.7fr;
	}

	.shs-about-family .principal-profile {
		grid-column: 1 / -1;
		padding-top: 8px;
	}

	.shs-about-family .principal-profile dl {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

}

@media (max-width: 820px) {

	.shs-about-family .principal-message-grid {
		grid-template-columns: 1fr;
		gap: 42px;
	}

	.shs-about-family .principal-letter {
		justify-content: flex-start;
	}

	.shs-about-family .principal-message-side {
		max-width: none;
		height: auto;
		grid-template-rows: auto;
	}

	.shs-about-family .principal-letter h2 {
		font-size: clamp(34px, 6.4vw, 46px);
	}

	.shs-about-family .principal-letter__line {
		white-space: normal;
	}

	.shs-about-family .principal-quote {
		height: auto;
		min-height: 0;
		padding: 54px 40px 44px;
	}

	.shs-about-family .principal-profile-panel {
		grid-template-columns: 1fr;
		padding: 34px 28px;
	}

	.shs-about-family .principal-profile-side {
		grid-template-columns: 1fr;
		gap: 24px;
		align-items: start;
	}

	.shs-about-family .principal-student-message__closing {
		margin-top: 32px;
		padding-left: 24px;
	}

	.shs-about-family .principal-profile-photo {
		width: min(100%, 360px);
		min-height: 0;
		justify-self: center;
		order: -1;
	}

	.shs-about-family .principal-profile {
		grid-column: auto;
	}

	.shs-about-family .principal-profile dl {
		grid-template-columns: 1fr;
	}

}

@media (max-width: 600px) {
	.shs-about-family .principal-message-section {
		padding: 68px 0 62px;
	}

	.shs-about-family .principal-message-grid {
		gap: 34px;
	}

	.shs-about-family .principal-letter .eyebrow {
		margin-bottom: 14px;
	}

	.shs-about-family .principal-letter {
		text-align: center;
	}

	.shs-about-family .principal-letter h2 {
		font-size: clamp(22px, 6.8vw, 27px);
		line-height: 1.55;
		text-align: center;
	}

	.shs-about-family .principal-letter__line {
		white-space: nowrap;
	}

	.shs-about-family .principal-letter__lead {
		padding: 18px 18px 18px 20px;
		font-size: 14px;
	}

	.shs-about-family .principal-letter__text {
margin-top: 28px;
font-size: 14px;
}

	.shs-about-family .principal-message-side {
		grid-template-rows: auto;
	}

	.shs-about-family .principal-quote {
		min-height: 0;
		padding: 52px 24px 40px;
		border-radius: 18px;
	}

	.shs-about-family .principal-quote blockquote {
		gap: 10px;
		font-size: clamp(18px, 5.6vw, 22px);
		line-height: 1.6;
	}

	.shs-about-family .principal-quote blockquote span {
		white-space: nowrap;
		overflow-wrap: normal;
	}

	.shs-about-family .principal-values {
		padding: 62px 0 70px;
	}

	.shs-about-family .principal-value-card {
		grid-template-columns: 52px 50px 1fr;
		padding: 28px 20px;
		gap: 12px;
	}

	.shs-about-family .principal-value-card__number {
		font-size: 31px;
	}

	.shs-about-family .principal-value-card__icon {
		width: 48px;
		height: 48px;
	}

	.shs-about-family .principal-value-card__title-line {
		white-space: normal;
	}

	.shs-about-family .principal-profile-section {
		padding: 68px 0;
	}

	.shs-about-family .principal-profile-photo {
		min-height: 0;
	}

	.shs-about-family .principal-student-message__closing {
		padding-left: 18px;
		border-left-width: 2px;
	}

	.shs-about-family .principal-student-message__closing-title {
		font-size: 21px;
	}

}

@media (prefers-reduced-motion: reduce) {
	.shs-about-family .principal-value-card {
		transition: none;
	}
}

@media (max-width: 760px) {

}
