/**
 * 入学情報ページ群で共用するデザイントークン、下層ヒーロー、共通部品の基底値を管理する。
 *
 * admissions配下のページ固有CSSはこのファイルへ依存し、共通値を複製しない。
 * スマホの最終的な中央配置はmobile-content-layout.cssが担当するため、ここでは通常表示の基準だけを定義する。
 */

/**
 * 1.0 入学情報ページ群の共通基盤
 *
 * 募集要項・説明会・FAQで共用する色、余白、カード基準をルート変数として定義し、各子ページの固有CSSへ同じ値を複製しない。
 */

:root {
	--wine: #9e5369;
	--wine-deep: #9e5369;
	--rose: #ef78bc;
	--rose-soft: rgba(239, 120, 188, .090);
	--rose-pale: rgba(239, 120, 188, .030);
	--aqua: #56d1ca;
	--ink: #282329;
	--muted: #746b70;
	--line: rgba(239, 120, 188, .140);
	--white: #ffffff;
	--shadow: 0 18px 50px rgba(158, 83, 105, 0.12);
	--radius: 22px;
	--container: 1180px;
}

html {
	scroll-behavior: smooth;
}

body.is-admissions-family-page {
	margin: 0;
	color: var(--ink);
	background: #fff;
	font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
	line-height: 1.8;
}

/**
 * 1.1 入学情報ページ群の基本要素
 *
 * リンク、画像、見出し、ボタン、カードの基準値をページ群で共有する。
 */

.shs-admissions-family a {
	text-decoration: none;
}

.shs-admissions-family a:not(.btn) {
	color: inherit;
}

.shs-admissions-family img {
	max-width: 100%;
	display: block;
}

button,
input,
textarea {
	font: inherit;
}

.container {
	width: min(var(--container), calc(100% - 48px));
	margin: 0 auto;
}

.eyebrow {
	margin: 0 0 10px;
	color: var(--rose);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.19em;
	text-transform: uppercase;
}

.section-title {
	margin: 0;
	color: #9e5369;
	font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
	font-size: clamp(28px, 3.6vw, 44px);
	font-weight: 500;
	letter-spacing: 0.06em;
}

.section-copy {
	margin: 20px 0 0;
	color: var(--muted);
}

.accent-line {
	width: 46px;
	height: 2px;
	margin: 18px 0;
	background: var(--rose);
}

.btn {
	display: inline-flex;
	min-height: 46px;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0 23px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	transition:
		transform var(--shs-hover-lift-duration) var(--shs-hover-lift-ease),
		box-shadow var(--shs-hover-lift-duration) var(--shs-hover-lift-ease),
		background var(--shs-hover-lift-duration) var(--shs-hover-lift-ease),
		color var(--shs-hover-lift-duration) var(--shs-hover-lift-ease);
}

.btn:hover {
	transform: translateY(-2px);
}

.btn-primary {
	color: #ffffff;
	background: #9e5369;
	box-shadow: 0 12px 28px rgba(158, 83, 105, 0.22);
}

.btn-outline {
	color: #b93f83;
	background: rgba(255, 255, 255, 0.9);
	border-color: rgba(158, 83, 105, 0.45);
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.link-card {
	min-height: 310px;
	padding: 45px 36px 34px;
	text-align: center;
	background: #fff;
	border: 1px solid rgba(239, 120, 188, 0.8);
	border-radius: 18px;
	box-shadow: 0 14px 38px rgba(158, 83, 105, 0.08);
	transition:
		transform var(--shs-hover-lift-duration) var(--shs-hover-lift-ease),
		box-shadow var(--shs-hover-lift-duration) var(--shs-hover-lift-ease);
}

.link-card:hover {
	transform: translateY(var(--shs-hover-card-lift-distance));
	box-shadow: var(--shadow);
}

.card-icon {
	width: 54px;
	height: 54px;
	margin: 0 auto 18px;
	display: grid;
	place-items: center;
	color: var(--rose);
	background: var(--rose-pale);
	border-radius: 50%;
}

.card-icon svg,
.p3-meta svg{
	width: 30px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.5;
}

.link-card h3 {
	position: relative;
	margin: 0;
	padding-bottom: 18px;
	color: #9e5369;
	font-family: "Yu Mincho", serif;
	font-size: 25px;
	font-weight: 600;
	letter-spacing: 0.12em;
}

.link-card h3::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 4px;
	width: 34px;
	height: 2px;
	transform: translateX(-50%);
	background: var(--rose);
}

.link-card p {
	margin: 18px 0 0;
	color: var(--muted);
	font-size: 14px;
}

.card-arrow {
	display: block;
	margin-top: 26px;
	color: var(--rose);
	font-size: 25px;
}

.link-card.is-current {
	background: linear-gradient(180deg, #fff, rgba(239, 120, 188, .030));
	border-color: rgba(239, 120, 188, 0.48);
	box-shadow: 0 16px 42px rgba(158, 83, 105, 0.1);
}

.link-card.is-current:hover {
	transform: none;
	box-shadow: 0 16px 42px rgba(158, 83, 105, 0.1);
}

.link-card.is-current .card-arrow {
	opacity: 0.5;
}

@media (max-width: 760px) {
	.container {
		width: min(100% - 30px, var(--container));
	}

	.card-grid {
		grid-template-columns: 1fr;
	}

	.link-card {
		min-height: 0;
		padding: 34px 24px 28px;
	}

}

/**
 * 2.0 入学情報配下の関連ページ
 *
 * 募集要項・説明会・FAQなどの相互導線を共通カードとして管理し、現在ページを選択状態で示す。
 */

.shs-admissions-family .related-pages {
	padding: 92px 0 112px;
	background: radial-gradient( circle at 12% 10%, rgba(239, 120, 188, 0.07), transparent 24% ), #ffffff;
	border-top: 1px solid rgba(239, 120, 188, 0.72);
}

.shs-admissions-family .related-pages__head {
	max-width: 760px;
	margin: 0 auto 40px;
	text-align: center;
}

.shs-admissions-family .related-pages__head .accent-line {
	margin-inline: auto;
}

.shs-admissions-family .related-pages__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin-top: 0;
}

.shs-admissions-family .related-pages .link-card {
	position: relative;
	min-height: 338px;
	padding: 45px 36px 32px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	overflow: hidden;
	color: inherit;
	text-align: center;
	background: #ffffff;
	border: 1px solid rgba(239, 120, 188, 0.8);
	border-radius: 18px;
	box-shadow: 0 14px 38px rgba(158, 83, 105, 0.08);
	transition:
		transform var(--shs-hover-lift-duration) var(--shs-hover-lift-ease),
		box-shadow var(--shs-hover-lift-duration) var(--shs-hover-lift-ease),
		border-color var(--shs-hover-lift-duration) var(--shs-hover-lift-ease),
		background var(--shs-hover-lift-duration) var(--shs-hover-lift-ease);
}

.shs-admissions-family .related-pages .link-card:hover {
	transform: translateY(var(--shs-hover-card-lift-distance));
	border-color: #ef78bc;
	background: linear-gradient(180deg, #ffffff 0%, rgba(239, 120, 188, 0.08) 100%);
	box-shadow: 0 22px 52px rgba(158, 83, 105, 0.15);
}

.shs-admissions-family .related-pages .link-card:focus-visible {
	outline: 3px solid rgba(239, 120, 188, 0.36);
	outline-offset: 5px;
}

.shs-admissions-family .related-pages .card-icon {
	width: 54px;
	height: 54px;
	margin: 0 auto 18px;
	display: grid;
	place-items: center;
	color: #ef78bc;
	background: rgba(239, 120, 188, 0.06);
	border-radius: 50%;
}

.shs-admissions-family .related-pages .card-icon svg {
	width: 30px;
	height: 30px;
	display: block;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.5;
}

.shs-admissions-family .related-pages .link-card h3 {
	position: relative;
	margin: 0;
	padding-bottom: 18px;
	color: #9e5369;
	font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
	font-size: 25px;
	font-weight: 600;
	letter-spacing: 0.12em;
}

.shs-admissions-family .related-pages .link-card h3::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 4px;
	width: 34px;
	height: 2px;
	transform: translateX(-50%);
	background: #ef78bc;
}

.shs-admissions-family .related-pages .link-card p {
	min-height: 58px;
	margin: 18px 0 0;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.85;
}

.shs-admissions-family .related-pages .card-action {
	width: 100%;
	margin-top: auto;
	padding-top: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	color: #9e5369;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.shs-admissions-family .related-pages .card-action__icon {
	width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	flex: 0 0 42px;
	color: #ef78bc;
	background: #ffffff;
	border: 1px solid #ef78bc;
	border-radius: 50%;
	font-family: Arial, sans-serif;
	font-size: 18px;
	line-height: 1;
	transition: transform 0.3s ease, color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.shs-admissions-family .related-pages .link-card:hover .card-action__icon,
.shs-admissions-family .related-pages .link-card:focus-visible .card-action__icon {
	color: #ffffff;
	background: #ef78bc;
	transform: translateX(4px);
	box-shadow: 0 8px 20px rgba(239, 120, 188, 0.24);
}

.shs-admissions-family .related-pages .link-card.is-current {
	border-color: rgba(158, 83, 105, 0.42);
	background: linear-gradient(180deg, #ffffff, rgba(239, 120, 188, 0.03));
	box-shadow: 0 16px 42px rgba(158, 83, 105, 0.1);
}

.shs-admissions-family .related-pages .link-card.is-current:hover {
	transform: none;
	box-shadow: 0 16px 42px rgba(158, 83, 105, 0.1);
}

.shs-admissions-family .related-pages .link-card.is-current .card-action {
	color: rgba(158, 83, 105, 0.72);
}

.shs-admissions-family .related-pages .link-card.is-current .card-action__icon {
	color: #9e5369;
	background: rgba(239, 120, 188, 0.05);
	border-color: rgba(158, 83, 105, 0.32);
}

.shs-admissions-family .related-pages .link-card.is-current:hover .card-action__icon,
.shs-admissions-family .related-pages .link-card.is-current:focus-visible .card-action__icon {
	color: #9e5369;
	background: rgba(239, 120, 188, 0.05);
	transform: none;
	box-shadow: none;
}

@media (max-width: 1050px) {
	.shs-admissions-family .related-pages__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.shs-admissions-family .related-pages {
		padding: 66px 0 76px;
	}

	.shs-admissions-family .related-pages__head {
		margin-bottom: 28px;
	}

	.shs-admissions-family .related-pages__grid {
		grid-template-columns: 1fr;
	}

	.shs-admissions-family .related-pages .link-card {
		min-height: 0;
		padding: 36px 26px 28px;
	}

	.shs-admissions-family .related-pages .link-card p {
		min-height: 0;
	}

	.shs-admissions-family .related-pages .card-action {
		padding-top: 22px;
	}

	.shs-admissions-family .related-pages .card-action__icon {
		width: 38px;
		height: 38px;
		flex-basis: 38px;
	}
}

/* 共通ヘッダーの差し込み先。ヘッダー本体の見た目は校長挨拶ページと共通です。 */

[data-site-header] {
	display: block;
	min-height: 88px;
}

@media (max-width: 760px) {
	[data-site-header] {
		min-height: 72px;
	}
}

/* ページ群で共有するアクセシビリティとレイアウトの補助規則。 */

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.shs-admissions-family {
	padding-top: var(--shs-header-large, 104px);
	background: #fff;
}

@media screen and (max-width: 960px) {
	.shs-admissions-family {
		padding-top: var(--shs-header-large, 82px);
	}

}

@media screen and (max-width: 600px) {
	.shs-admissions-family {
		padding-top: var(--shs-header-large, 78px);
	}
}
