/**
 * シミュレーター本体ページ見た目
 * スコープ: .gss-hs-page / body.gss-track-hs|univ
 */

body.gss-track-hs.gss-page-feature,
body.gss-track-univ.gss-page-feature {
	--gss-container: 1120px;
	background: #fff;
}

body.gss-track-hs.gss-page-feature .gss-breadcrumb,
body.gss-track-univ.gss-page-feature .gss-breadcrumb {
	padding-left: max(28px, calc(50vw - 560px));
	padding-right: max(28px, calc(50vw - 560px));
	font-size: 12px;
	color: #65758d;
}

.gss-hs-page {
	--hs-navy: #123568;
	--hs-blue: #0878d1;
	--hs-blue-dark: #0065b8;
	--hs-bg: #f3f7fb;
	--hs-line: #dce6f0;
	--hs-ink: #152b49;
	--hs-muted: #65758d;
	--hs-radius: 14px;
	--hs-shadow: 0 8px 28px rgba(18, 53, 104, 0.055);
	--hs-shell: 1120px;
	/* 文字サイズ階層（本文は基本15px。注釈だけ小さく） */
	--hs-fs-body: 15px; /* 本文・カード説明・リスト */
	--hs-fs-lead: 14px; /* セクション直下の短いリードのみ */
	--hs-fs-note: 12px; /* footnote など注釈のみ */
	--hs-fs-title: 26px; /* セクションタイトル */
	--hs-fs-sub: 18px; /* サブ見出し */
	color: var(--hs-ink);
	font-size: var(--hs-fs-body);
	line-height: 1.7;
	margin: 0;
}

/* 大学トラックは緑系に差し替え */
body.gss-track-univ .gss-hs-page,
.gss-hs-page.gss-sch-page {
	--hs-navy: #16353a;
	--hs-blue: #0a5c63;
	--hs-blue-dark: #084a50;
	--hs-bg: #f2f6f6;
	--hs-line: #d5e0e1;
	--hs-ink: #1c2a32;
	--hs-muted: #6a7780;
	--hs-shadow: 0 8px 28px rgba(10, 92, 99, 0.06);
}

.gss-hs-page .hs-band {
	width: 100%;
	padding: 72px 0;
	box-sizing: border-box;
}

.gss-hs-page .hs-band--white {
	background: #fff;
}

.gss-hs-page .hs-band--muted {
	background: #f3f7fb;
}

.gss-hs-page .hs-band.section {
	margin-top: 0;
}

.gss-hs-page #gss-hs-primary,
.gss-hs-page #gss-sch-primary {
	padding-top: var(--gss-main-pad-top, 1.75rem);
}

.gss-hs-page .page-shell {
	max-width: var(--hs-shell);
	margin: 0 auto;
	padding: 0 28px;
}

.gss-hs-page .intro {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin: 8px 0 26px;
}

.gss-hs-page .intro h1 {
	font-size: clamp(28px, 3.3vw, 42px);
	letter-spacing: -0.055em;
	line-height: 1.3;
	color: var(--hs-navy);
	margin: 0 0 15px;
	font-weight: 800;
	font-family: inherit;
}

.gss-hs-page .intro-copy p {
	margin: 0;
	font-size: var(--hs-fs-body);
	color: var(--hs-ink);
	max-width: 40rem;
	line-height: 1.7;
}

.gss-hs-page .status-tags {
	display: flex;
	gap: 7px;
	flex-wrap: wrap;
	justify-content: flex-end;
	max-width: 430px;
}

.gss-hs-page .tag {
	border: 1px solid #c5d4e4;
	background: #fff;
	border-radius: 6px;
	color: #3b5878;
	padding: 5px 11px;
	font-size: 11px;
	font-weight: 700;
	white-space: nowrap;
}

.gss-hs-page .tag-primary {
	background: #eef3f8;
	border-color: #c5d4e4;
	color: var(--hs-navy);
}

.gss-hs-page .calculator-panel {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	padding: 0;
	scroll-margin-top: 5.5rem;
}

/* フォームは hs-simulator.css の構造をそのまま使う */
.gss-hs-page .calculator-panel .gss-hs {
	margin: 0;
}

.gss-hs-page .calculator-panel .gss-hs__form {
	padding: 0;
}

.gss-hs-page .calculator-panel .gss-hs__groups {
	padding: 24px 26px 28px;
}

.gss-hs-page .calculator-panel .gss-hs__btn {
	min-height: 51px;
	padding: 0 2.4rem;
	font-size: 1rem;
}

.gss-hs-page .calculator-panel .gss-hs__btn--ghost {
	min-height: 45px;
	font-size: 0.9rem;
}

.gss-hs-page .calculator-panel .gss-hs__result {
	border-radius: 12px;
	border-color: #e8eef5;
	box-shadow: var(--hs-shadow);
}

.gss-hs-page .form-supplement {
	margin-top: 18px;
	border: 1px solid #e8eef5;
	border-radius: 10px;
	background: #fff;
	padding: 0;
}

.gss-hs-page .form-supplement > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	cursor: pointer;
	list-style: none;
	padding: 14px 18px;
	font-size: var(--hs-fs-lead);
	font-weight: 750;
	color: var(--hs-navy);
}

.gss-hs-page .form-supplement > summary::-webkit-details-marker {
	display: none;
}

.gss-hs-page .form-supplement > summary::after {
	content: "+";
	flex: 0 0 auto;
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	color: var(--hs-blue);
	font-size: 22px;
	font-weight: 600;
	line-height: 1;
}

.gss-hs-page .form-supplement[open] > summary::after {
	content: "−";
}

.gss-hs-page .form-supplement ul {
	margin: 0;
	padding: 0 18px 16px 2rem;
}

.gss-hs-page .form-supplement li {
	margin: 0.4rem 0;
	font-size: var(--hs-fs-body);
	line-height: 1.7;
	color: var(--hs-ink);
}

.gss-hs-page .result-supplement {
	margin-top: 22px;
	padding: 22px 24px;
	border: 1px solid #e8eef5;
	border-radius: 12px;
	background: #fafcfe;
}

.gss-hs-page .result-supplement__title {
	margin: 0 0 12px;
	font-size: var(--hs-fs-sub);
	font-weight: 800;
	color: var(--hs-navy);
	font-family: inherit;
	line-height: 1.35;
}

.gss-hs-page .result-supplement p {
	margin: 0 0 0.75rem;
	font-size: var(--hs-fs-lead);
	line-height: 1.75;
	color: var(--hs-ink);
}

.gss-hs-page .result-supplement p:last-child {
	margin-bottom: 0;
}

.gss-hs-page .section {
	margin-top: 0;
}

.gss-hs-page .section-head {
	margin-bottom: 20px;
}

/* トップの .gss-section-heading（PC）に合わせる */
.gss-hs-page .section-heading {
	display: flex;
	flex-direction: column;
	gap: 15px;
	align-items: stretch;
}

.gss-hs-page .section-heading__title {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.gss-hs-page .section-heading__icon {
	display: block;
	flex: 0 0 auto;
	width: 37px;
	height: 37px;
	object-fit: contain;
	color: var(--hs-blue);
}

/* 高校PNGアイコンを大学テーマ色（緑系）へ。階調は維持 */
body.gss-track-univ .gss-hs-page img.section-heading__icon,
.gss-hs-page.gss-sch-page img.section-heading__icon {
	filter: hue-rotate(-28deg) saturate(1.05);
}

.gss-hs-page .section-heading h2,
.gss-hs-page .section-head h2 {
	margin: 1px 0 0;
	color: var(--hs-navy);
	font-size: var(--hs-fs-title);
	letter-spacing: -0.02em;
	line-height: 1.4;
	font-family: inherit;
	font-weight: 800;
}

.gss-hs-page .section-heading p,
.gss-hs-page .section-head p {
	margin: 0;
	padding: 0;
	color: #476181;
	font-size: var(--hs-fs-lead);
	line-height: 1.85;
}

.gss-hs-page .section-head.split {
	display: flex;
	justify-content: space-between;
	gap: 22px;
	align-items: center;
}

.gss-hs-page .section-head.split .section-heading {
	flex: 1 1 auto;
	min-width: 0;
}

.gss-hs-page .simple-link {
	color: var(--hs-blue);
	font-size: var(--hs-fs-body);
	font-weight: 750;
	white-space: nowrap;
	text-decoration: none;
}

.gss-hs-page .simple-link span {
	font-size: 18px;
	margin-left: 4px;
}

.gss-hs-page .examples-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.gss-hs-page .example-card {
	background: #fff;
	border: 1px solid #e8eef5;
	border-radius: 12px;
	padding: 24px 26px 20px;
	box-shadow: var(--hs-shadow);
	height: 100%;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
}

.gss-hs-page .example-card h3 {
	margin: 0 0 12px;
	color: var(--hs-navy);
	font-size: var(--hs-fs-sub);
	letter-spacing: -0.02em;
	font-weight: 800;
	line-height: 1.4;
}

.gss-hs-page .example-card h3 small {
	font-size: var(--hs-fs-lead);
	font-weight: 600;
}

.gss-hs-page .example-body {
	margin: 0 0 12px;
	font-size: var(--hs-fs-body);
	color: var(--hs-ink);
	line-height: 1.7;
}

.gss-hs-page .example-meta {
	display: flex;
	gap: 9px;
	align-items: center;
	flex-wrap: wrap;
	margin: 0 0 17px;
	color: #65758d;
	font-size: var(--hs-fs-lead);
}

.gss-hs-page .example-meta span {
	background: #edf5fc;
	color: var(--hs-blue);
	font-size: var(--hs-fs-note);
	font-weight: 750;
	padding: 2px 7px;
	border-radius: 4px;
}

.gss-hs-page .example-stats {
	border-top: 1px solid #edf1f6;
	padding: 15px 0;
	display: grid;
	gap: 8px;
}

.gss-hs-page .example-stats > div {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 15px;
}

.gss-hs-page .example-stats > div > span {
	color: var(--hs-muted);
	font-size: var(--hs-fs-lead);
}

.gss-hs-page .example-stats strong {
	font-size: 23px;
	letter-spacing: -0.035em;
	color: var(--hs-navy);
	line-height: 1.3;
	font-weight: 800;
}

.gss-hs-page .example-stats strong small {
	font-size: 13px;
	margin-left: 2px;
	font-weight: 700;
}

.gss-hs-page .example-actions {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
	margin-top: auto;
}

.gss-hs-page .outline-button {
	width: 100%;
	background: #f0f7fe;
	border: 1px solid #b8daf7;
	border-radius: 7px;
	color: var(--hs-blue);
	font-size: var(--hs-fs-body);
	min-height: 39px;
	font-family: inherit;
	font-weight: 750;
	cursor: pointer;
}

.gss-hs-page .outline-button span {
	padding-left: 8px;
}

.gss-hs-page .outline-button:hover {
	background: #eaf5ff;
}

.gss-hs-page .example-actions details {
	text-align: center;
	color: var(--hs-blue);
	font-size: var(--hs-fs-body);
}

.gss-hs-page .example-actions summary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	cursor: pointer;
	list-style: none;
	padding: 4px 0;
	font-size: var(--hs-fs-body);
	font-weight: 700;
	line-height: 1.2;
	vertical-align: middle;
}

.gss-hs-page .example-actions summary::-webkit-details-marker {
	display: none;
}

.gss-hs-page .example-actions summary::after {
	content: "+";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	font-size: 1.35em;
	font-weight: 600;
	line-height: 1;
	transform: none;
}

.gss-hs-page .example-actions details[open] summary::after {
	content: "−";
}

.gss-hs-page .example-actions details .breakdown {
	text-align: left;
	color: var(--hs-muted);
	background: #f6f9fc;
	border-radius: 7px;
	padding: 11px;
	margin: 8px 0 0;
	display: grid;
	gap: 0.35rem;
}

.gss-hs-page .example-actions details .breakdown-row {
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
	font-size: var(--hs-fs-lead);
}

.gss-hs-page .example-actions details .breakdown-yen {
	font-weight: 700;
	color: var(--hs-ink);
	font-variant-numeric: tabular-nums;
}

.gss-hs-page .footnote {
	font-size: var(--hs-fs-note);
	color: var(--hs-muted);
	margin: 25px 0 0;
	line-height: 1.8;
}

.gss-hs-page .steps {
	display: flex;
	flex-direction: column;
	margin: 23px 0 0;
	padding: 0;
	border-top: 1px dashed #c5d3e3;
	border-bottom: 1px dashed #c5d3e3;
}

.gss-hs-page .step {
	display: grid;
	grid-template-columns: minmax(12rem, 17.5rem) minmax(0, 1fr);
	column-gap: 28px;
	align-items: start;
	margin: 0;
	padding: 20px 0;
	border: 0;
	border-bottom: 1px dashed #c5d3e3;
	background: transparent;
	font-size: inherit;
	line-height: inherit;
}

.gss-hs-page .step:last-child {
	border-bottom: 0;
}

.gss-hs-page .step::before {
	content: none;
}

.gss-hs-page .step-title {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.gss-hs-page .step-number {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	box-sizing: border-box;
	border-radius: 50%;
	border: 1.5px solid var(--hs-blue);
	background: #fff;
	color: var(--hs-blue);
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	text-align: center;
	/* 数字の視覚的な中央寄せ（フォントのベースライン補正） */
	padding: 0 0 1px;
}

.gss-hs-page .step-title h3 {
	font-size: var(--hs-fs-body);
	color: var(--hs-navy);
	margin: 0;
	font-weight: 800;
	font-family: inherit;
	line-height: 1.35;
	min-width: 0;
}

.gss-hs-page .step p {
	font-size: var(--hs-fs-body);
	color: var(--hs-muted);
	margin: 0;
	line-height: 1.7;
}

.gss-hs-page .region-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.gss-hs-page .guide-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.gss-hs-page .guide-grid li {
	margin: 0;
	padding: 20px 18px;
	border: 1px solid var(--hs-line);
	border-radius: 10px;
	background: #fff;
}

.gss-hs-page .guide-grid h3 {
	margin: 0 0 8px;
	color: var(--hs-navy);
	font-size: var(--hs-fs-body);
	font-weight: 800;
	line-height: 1.4;
}

.gss-hs-page .guide-grid p {
	margin: 0;
	color: var(--hs-muted);
	font-size: var(--hs-fs-body);
	line-height: 1.7;
}

.gss-hs-page .region-grid a,
.gss-hs-page .column-grid a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 15px 16px;
	border: 1px solid #d6e3ef;
	border-radius: 9px;
	background: #fff;
	font-size: var(--hs-fs-body);
	color: var(--hs-navy);
	font-weight: 750;
	text-decoration: none;
	transition: background 0.15s, border-color 0.15s;
}

.gss-hs-page .region-grid a span,
.gss-hs-page .column-grid a span {
	color: var(--hs-blue);
	font-size: 20px;
}

.gss-hs-page .region-grid a:hover,
.gss-hs-page .column-grid a:hover {
	background: #f0f7fe;
	border-color: #9ecaf0;
}

.gss-hs-page .prefs-all {
	margin-top: 15px;
	background: #e9f4fd;
	border-radius: 9px;
	padding: 0;
	border: 0;
}

.gss-hs-page .prefs-all > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 15px 18px;
	font-weight: 750;
	color: var(--hs-navy);
	font-size: var(--hs-fs-lead);
	cursor: pointer;
	list-style: none;
}

.gss-hs-page .prefs-all > summary::-webkit-details-marker {
	display: none;
}

.gss-hs-page .prefs-all > summary::after {
	content: "+";
	flex: 0 0 auto;
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	color: var(--hs-blue);
	font-size: 22px;
	font-weight: 600;
	line-height: 1;
	transform: none;
}

.gss-hs-page .prefs-all[open] > summary::after {
	content: "−";
	transform: none;
}

.gss-hs-page .prefs-all .pref-all-grid,
.gss-hs-page .prefs-all .footnote {
	padding-left: 18px;
	padding-right: 18px;
}

.gss-hs-page .prefs-all .footnote {
	padding-bottom: 16px;
}

.gss-hs-page .pref-all-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
	gap: 9px;
	list-style: none;
	margin: 0 0 10px;
	padding: 4px 0 0;
}

.gss-hs-page .pref-all-grid a {
	display: block;
	text-align: center;
	padding: 11px 10px;
	border: 1px solid #d6e3ef;
	border-radius: 9px;
	background: #fff;
	font-size: var(--hs-fs-body);
	font-weight: 700;
	color: var(--hs-navy);
	text-decoration: none;
}

.gss-hs-page .pref-all-grid a:hover {
	background: #f0f7fe;
	border-color: #9ecaf0;
}

.gss-hs-page .column-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 13px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.gss-hs-page .column-grid li {
	margin: 0;
}

.gss-hs-page .detail-block {
	background: #fff;
	border: 1px solid #e8eef5;
	border-radius: 12px;
	padding: 24px 26px;
	box-shadow: var(--hs-shadow);
}

.gss-hs-page .detail-block--flat {
	box-shadow: none;
	background: #fff;
	border-color: var(--hs-line);
}

.gss-hs-page .detail-block h2 {
	margin: 0 0 12px;
	color: var(--hs-navy);
	font-size: var(--hs-fs-sub);
	font-weight: 800;
	font-family: inherit;
}

.gss-hs-page .detail-subhead {
	margin: 0 0 10px;
	color: var(--hs-navy);
	font-size: var(--hs-fs-body);
	font-weight: 800;
	font-family: inherit;
	line-height: 1.4;
}

.gss-hs-page .detail-subhead + ul {
	margin-top: 0;
}

.gss-hs-page .detail-block .detail-subhead:not(:first-child) {
	margin-top: 1.35rem;
}

.gss-hs-page .detail-block p,
.gss-hs-page .detail-block li {
	font-size: var(--hs-fs-body);
	line-height: 1.75;
	color: var(--hs-ink);
}

.gss-hs-page .detail-block .footnote {
	font-size: var(--hs-fs-note);
}

.gss-hs-page .page-shell > .gss-error-report {
	margin-top: 1.5rem;
}

.gss-hs-page #gss-hs-sources,
.gss-hs-page #gss-sch-sources {
	margin-bottom: -4.5rem;
}

.gss-hs-page .detail-block ul {
	margin: 0;
	padding-left: 1.2rem;
}

.gss-hs-page .detail-block li {
	margin: 0.45rem 0;
}

.gss-hs-page .detail-block a {
	color: var(--hs-blue);
}

@media (max-width: 1080px) {
	.gss-hs-page .intro {
		align-items: flex-start;
		flex-direction: column;
	}

	.gss-hs-page .status-tags {
		justify-content: flex-start;
	}

	.gss-hs-page .region-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 900px) {
	.gss-hs-page {
		--hs-fs-title: 18px;
	}

	.gss-hs-page .section-heading__title {
		gap: 10px;
	}

	.gss-hs-page .section-heading__icon {
		width: 28px;
		height: 28px;
	}
}

@media (max-width: 760px) {
	body.gss-track-hs.gss-page-feature .gss-breadcrumb,
	body.gss-track-univ.gss-page-feature .gss-breadcrumb {
		padding-left: 18px;
		padding-right: 18px;
	}

	.gss-hs-page .page-shell {
		padding: 0 18px;
	}

	.gss-hs-page .intro h1 {
		font-size: 30px;
	}

	.gss-hs-page .intro-copy p {
		font-size: var(--hs-fs-body);
	}

	.gss-hs-page .calculator-panel .gss-hs__groups {
		padding: 18px 16px 20px;
	}

	.gss-hs-page .hs-band {
		padding: 48px 0;
	}

	.gss-hs-page .examples-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.gss-hs-page .example-card {
		padding: 20px;
	}

	.gss-hs-page .step {
		grid-template-columns: 1fr;
		row-gap: 8px;
	}

	.gss-hs-page .guide-grid {
		grid-template-columns: 1fr;
	}

	.gss-hs-page .column-grid {
		grid-template-columns: 1fr;
	}

	.gss-hs-page .section-head.split {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}
}

@media (max-width: 440px) {
	.gss-hs-page .intro h1 {
		font-size: 26px;
	}

	.gss-hs-page .calculator-panel .gss-hs__btn {
		width: 100%;
		min-width: 0;
		padding: 0 15px;
	}

	.gss-hs-page .calculator-panel .gss-hs__btn--ghost {
		width: 100%;
	}

	.gss-hs-page .region-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 9px;
	}

	.gss-hs-page .region-grid a {
		padding: 11px 12px;
	}

	.gss-hs-page .tag {
		font-size: 10px;
	}

	.gss-hs-page .example-stats strong {
		font-size: 21px;
	}
}
