/**
 * 都道府県解説ページ（.gss-pref スコープ）
 * 余白・幅は高校シミュレーター（.hs-band / .page-shell）に合わせる
 */

.gss-pref {
	--pref-navy: #123568;
	--pref-blue: #176fc1;
	--pref-pale: #f3f7fb;
	--pref-border: #dce5ef;
	--pref-ink: #293a50;
	--pref-muted: #637486;
	--pref-section-y: 72px;
	--pref-section-y-sm: 48px;
	--pref-gutter: 28px;
	margin: 0;
	color: var(--pref-ink);
	line-height: 1.8;
	background: #fff;
}

body.gss-page-feature:has(.gss-pref) {
	--gss-bg: #fff;
	background: #fff;
}

/* 旧テンプレの単独H1が残っていても隠す */
body.gss-pref-layout .gss-pref-article > h1 {
	display: none;
}

body.gss-pref-layout .gss-pref-content,
body.gss-pref-layout .gss-pref-article .post-content {
	padding: 0;
	margin: 0;
	max-width: none;
}

/* フッター直前の余分な隙間を抑える */
body.gss-pref-layout ~ .gss-footer,
body.gss-page-feature:has(.gss-pref) .gss-footer {
	margin-top: 0;
}

/* シミュレーター .page-shell と同じ：本文1120 + 左右28px */
.gss-pref__inner {
	width: 100%;
	max-width: calc(var(--gss-chrome-shell, 1120px) + (var(--pref-gutter) * 2));
	margin: 0 auto;
	padding: 0 var(--pref-gutter);
	box-sizing: border-box;
}

.gss-pref__intro {
	padding: 0;
	margin: 0 0 28px;
	background: transparent;
}

.gss-pref__intro + .gss-pref__summary {
	margin-top: 0;
}

.gss-pref__section {
	width: 100%;
	padding: var(--pref-section-y) 0;
	border: 0;
	margin: 0;
	background: #fff;
	box-sizing: border-box;
}

.gss-pref > .gss-pref__section + .gss-pref__section {
	border-top: 1px solid var(--pref-border);
}

.gss-pref__section--band {
	background: var(--pref-pale);
}

.gss-pref > .gss-pref__section:last-child {
	background: #f6f6f6;
	margin-bottom: -2.5rem;
}

/* 先頭余白はサイト共通 --gss-main-pad-top（gss-chrome.css） */
.gss-pref__section.gss-pref__section--lead {
	padding-top: var(--gss-main-pad-top, 1.75rem);
	padding-bottom: var(--pref-section-y);
}

.gss-pref__h1 {
	margin: 0 0 16px;
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: 800;
	line-height: 1.35;
	color: var(--pref-navy);
	letter-spacing: -0.02em;
}

.gss-pref__lead {
	margin: 0 0 16px;
	font-size: 1rem;
	line-height: 1.8;
	color: var(--pref-ink);
}

.gss-pref__links {
	margin: 0;
	font-size: 0.9rem;
}

.gss-pref__links a {
	color: var(--pref-ink);
	text-decoration: none;
	font-weight: 600;
}

.gss-pref__links a:hover {
	color: var(--pref-blue);
}

.gss-pref__section h2,
.gss-pref__cta-copy h2,
.gss-pref__cta-title {
	margin: 0 0 16px;
	padding-left: 14px;
	border-left: 5px solid var(--pref-blue);
	color: var(--pref-navy);
	font-size: clamp(1.3rem, 2.2vw, 1.55rem);
	font-weight: 800;
	line-height: 1.4;
	font-family: inherit;
}

.gss-pref__summary-title,
.gss-pref__cta--early .gss-pref__cta-title {
	padding-left: 0;
	border-left: 0;
	margin: 0 0 6px;
	font-size: 1.25rem;
}

.gss-pref__summary-title {
	margin: 0 0 12px;
	font-size: 1.3rem;
	line-height: 1.5;
	color: var(--pref-navy);
	font-weight: 800;
}

.gss-pref__amount-kicker {
	margin: 0 0 6px;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--pref-muted);
	line-height: 1.4;
}

.gss-pref__section > .gss-pref__inner > p {
	margin: 0 0 16px;
	font-size: 1rem;
	line-height: 1.8;
	color: var(--pref-ink);
}

.gss-pref__section > .gss-pref__inner > p:last-of-type {
	margin-bottom: 0;
}

.gss-pref__section > .gss-pref__inner > p + .gss-pref__info,
.gss-pref__section > .gss-pref__inner > p + .gss-pref__panels,
.gss-pref__info + .gss-pref__subblock,
.gss-pref__subblock + .gss-pref__panels,
.gss-pref__info + .gss-pref__panels {
	margin-top: 32px;
}

.gss-pref__subhead {
	margin: 0 0 16px;
	padding-left: 12px;
	border-left: 4px solid var(--pref-blue);
	color: var(--pref-navy);
	font-size: 1.15rem;
	font-weight: 800;
	line-height: 1.4;
}

.gss-pref__subblock > p {
	margin: 0 0 16px;
	font-size: 1rem;
	line-height: 1.8;
	color: var(--pref-ink);
}

.gss-pref__subblock > p:last-child {
	margin-bottom: 0;
}

.gss-pref__block + .gss-pref__block {
	margin-top: 40px;
}

/* 支援上限カード */
.gss-pref__summary {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 32px;
	padding: 28px 30px;
	background: #fff;
	border: 1px solid var(--pref-border);
	border-radius: 10px;
	box-sizing: border-box;
}

.gss-pref__summary-main {
	border-right: 1px solid var(--pref-border);
	padding-right: 30px;
}

.gss-pref__amount {
	margin: 0;
	font-size: clamp(2.35rem, 5vw, 3.6rem);
	font-weight: 750;
	letter-spacing: -0.04em;
	color: var(--pref-blue);
	white-space: nowrap;
	line-height: 1.3;
}

.gss-pref__amount small {
	font-size: 1.25rem;
	color: var(--pref-navy);
	letter-spacing: 0;
	font-weight: 700;
	margin-left: 0.15em;
}

.gss-pref__cap-rows {
	border: 1px solid var(--pref-border);
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
}

.gss-pref__cap-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 12px 15px;
	font-size: 0.95rem;
}

.gss-pref__cap-row + .gss-pref__cap-row {
	border-top: 1px solid var(--pref-border);
}

.gss-pref__cap-row strong {
	color: var(--pref-blue);
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
}

.gss-pref__block .gss-error-report {
	margin-top: 1.5rem;
}

.gss-pref__note {
	margin: 12px 0 0;
	font-size: 0.75rem;
	line-height: 1.65;
	color: var(--pref-muted);
}

/* CTA */
.gss-pref__cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.gss-pref__cta--early {
	margin-top: 24px;
	padding: 22px 26px;
	background: #fff;
	border: 1px solid var(--pref-border);
	border-radius: 10px;
	box-sizing: border-box;
}

#gss-pref-sim .gss-pref__cta--early:not(.gss-pref__cta--in-section) {
	margin-top: 0;
}

.gss-pref__cta--in-section {
	margin-top: 32px;
}

.gss-pref__cta-copy p {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.65;
	color: var(--pref-ink);
}

.gss-pref__cta-actions {
	margin: 0;
	flex-shrink: 0;
}

.gss-pref__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	min-width: 168px;
	padding: 10px 22px;
	border-radius: 100px;
	background: var(--pref-blue);
	color: #fff !important;
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: none !important;
	white-space: nowrap;
	box-shadow: none;
	box-sizing: border-box;
}

.gss-pref__btn:hover {
	background: var(--pref-navy);
	color: #fff !important;
}

/* 3カラム要点 */
.gss-pref__info {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	margin-top: 24px;
	padding: 24px 12px;
	border-radius: 8px;
	background: var(--pref-pale);
}

.gss-pref__section--band .gss-pref__info {
	background: #fff;
	border: 1px solid var(--pref-border);
}

.gss-pref__info > div {
	padding: 0 18px;
}

.gss-pref__info > div + div {
	border-left: 1px solid #cddae7;
}

.gss-pref__info h3,
.gss-pref__panels h3 {
	margin: 0 0 8px;
	color: var(--pref-navy);
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.4;
}

.gss-pref__info p,
.gss-pref__panels p {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.7;
	color: var(--pref-ink);
}

/* 申請パネル */
.gss-pref__panels {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-top: 24px;
}

.gss-pref__panels > div {
	padding: 24px;
	border: 1px solid var(--pref-border);
	border-radius: 8px;
	background: #fff;
	box-sizing: border-box;
}

.gss-pref__panels a {
	display: inline-block;
	margin-top: 14px;
	color: var(--pref-blue);
	font-weight: 600;
	text-decoration: none;
	font-size: 0.9rem;
}

.gss-pref__panels a:hover {
	text-decoration: underline;
}

.gss-pref__sources {
	margin: 0 0 12px;
	padding-left: 1.15rem;
}

.gss-pref__sources:last-child {
	margin-bottom: 0;
}

.gss-pref__sources li {
	margin: 0.4rem 0;
	font-size: 0.9rem;
}

.gss-pref__sources a {
	color: var(--pref-blue);
	text-decoration: none;
	font-weight: 600;
}

.gss-pref__sources a:hover {
	text-decoration: underline;
}

@media (max-width: 760px) {
	.gss-pref {
		--pref-section-y: var(--pref-section-y-sm);
		--pref-gutter: 20px;
	}

	.gss-pref__intro {
		margin-bottom: 22px;
	}

	.gss-pref__summary {
		grid-template-columns: 1fr;
		gap: 18px;
		padding: 20px;
	}

	.gss-pref__summary-main {
		border-right: 0;
		border-bottom: 1px solid var(--pref-border);
		padding: 0 0 16px;
	}

	.gss-pref__summary-title {
		font-size: 1.1rem;
	}

	.gss-pref__amount {
		white-space: normal;
	}

	.gss-pref__amount small {
		font-size: 1rem;
	}

	.gss-pref__cap-row {
		padding: 10px;
		font-size: 0.8rem;
	}

	.gss-pref__cta {
		flex-direction: column;
		align-items: stretch;
	}

	.gss-pref__cta--early {
		padding: 18px 20px;
		margin-top: 20px;
	}

	#gss-pref-sim .gss-pref__cta--early:not(.gss-pref__cta--in-section) {
		margin-top: 0;
	}

	.gss-pref__cta--in-section {
		margin-top: 28px;
	}

	.gss-pref__btn {
		width: 100%;
	}

	.gss-pref__info,
	.gss-pref__panels {
		grid-template-columns: 1fr;
		margin-top: 20px;
	}

	.gss-pref__info {
		padding: 8px 12px;
	}

	.gss-pref__info > div {
		padding: 14px 8px;
	}

	.gss-pref__info > div + div {
		border-left: 0;
		border-top: 1px solid #cddae7;
	}

	.gss-pref__block + .gss-pref__block {
		margin-top: 32px;
	}
}
