/* 返済シミュレーション（/simulation/）— v2 用。
 * 旧 style.css の「返済シミュレーション」の節（2026-11-02）をそのまま移したもの。計算は js/loan-sim.js（変更なし）。
 * js が出す HTML のクラス（.sim-*・.bankdetailWrap 配下の指定）に合わせてあるので、テンプレート側は .bankdetailWrap.sim-page で包む */
.sim-page { font-size: 16px; color: #3f4752; }
.sim-page .blueBtn-arrow02 { margin: 0; }
.sim-page .blueBtn-arrow02 a {
	display: block;
	padding: 13px 18px;
	border-radius: 999px;
	background: #d9304d;
	color: #fff;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	line-height: 1.4;
	box-shadow: 0 3px 0 #b3223c;
}
.sim-page .blueBtn-arrow02 a:hover { background: #c62743; }
.sim-page table { border-collapse: collapse; }
	font-weight: 700;
	cursor: pointer;
	transition: background-color .15s;
}
.sim-entry button:hover { background: #1587a9; }
.sim-page p { line-height: 1.8; }
.sim-page .btnWidth200 { width: 270px; max-width: 100%; }
.sim-title {
	margin: 0 0 8px;
	color: #3f4752;
	font-size: 150%;
	font-weight: 700;
	line-height: 1.4;
}
.sim-lead { margin: 0 0 16px; }
.sim-alert {
	margin: 0 0 18px;
	padding: 14px 16px;
	background: #fff6f5;
	border: 1px solid #f5cdc9;
	border-left: 4px solid #e00000;
	border-radius: 8px;
}
.sim-page .sim-alert-title { margin: 0 0 4px; color: #e00000; font-weight: 700; line-height: 1.5; }
.sim-page .sim-alert-text { margin: 0; font-size: 92%; line-height: 1.7; }
.sim-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 24px;
	margin: 0 0 28px;
	padding: 20px;
	background: #f5f9fb;
	border: 1px solid #dfe8ee;
	border-radius: 10px;
}
.sim-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.sim-field[hidden] { display: none; }
.sim-wide { grid-column: 1 / -1; }
.sim-field legend,
.sim-label {
	display: block;
	margin: 0 0 8px;
	padding: 0;
	color: #3f4752;
	font-weight: 700;
	line-height: 1.5;
}
.sim-field legend small { margin-left: 4px; color: #6b7682; font-size: 80%; font-weight: 400; }
.sim-seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.sim-seg label { position: relative; display: block; margin: 0; cursor: pointer; }
.sim-seg input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.sim-seg span {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 44px;
	padding: 6px 4px;
	background: #fff;
	border: 1px solid #c6d4dd;
	border-radius: 6px;
	color: #3f4752;
	font-size: 92%;
	font-weight: 500;
	line-height: 1.3;
	text-align: center;
	transition: background-color .15s, border-color .15s, color .15s;
}
.sim-seg label:hover span { border-color: #1a9cc2; }
.sim-seg input:checked + span { background: #1a9cc2; border-color: #1a9cc2; color: #fff; font-weight: 700; }
.sim-seg input:focus-visible + span,
.sim-input input:focus-visible,
.sim-range:focus-visible { outline: 2px solid #29508f; outline-offset: 2px; }
.sim-input { display: flex; align-items: center; gap: 8px; }
.sim-input input {
	box-sizing: border-box;
	flex: 1 1 auto;
	min-width: 0;
	height: 48px;
	padding: 0 12px;
	background: #fff;
	border: 1px solid #c6d4dd;
	border-radius: 6px;
	color: #29508f;
	font: inherit;
	font-size: 125%;
	font-weight: 700;
	text-align: right;
}
.sim-input input[aria-invalid="true"] { border-color: #e00000; }
.sim-input span { flex: none; font-weight: 500; }
.sim-range {
	display: block;
	width: 100%;
	height: 28px;
	margin: 8px 0 0;
	background: transparent;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
.sim-range::-webkit-slider-runnable-track {
	height: 6px;
	border-radius: 3px;
	background: linear-gradient(to right, #1a9cc2 var(--sim-pct, 50%), #d5e2e9 var(--sim-pct, 50%));
}
.sim-range::-webkit-slider-thumb {
	width: 24px;
	height: 24px;
	margin-top: -9px;
	background: #fff;
	border: 2px solid #1a9cc2;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(41, 80, 143, .25);
	-webkit-appearance: none;
	appearance: none;
}
.sim-range::-moz-range-track { height: 6px; background: #d5e2e9; border-radius: 3px; }
.sim-range::-moz-range-progress { height: 6px; background: #1a9cc2; border-radius: 3px; }
.sim-range::-moz-range-thumb {
	box-sizing: border-box;
	width: 24px;
	height: 24px;
	background: #fff;
	border: 2px solid #1a9cc2;
	border-radius: 50%;
}
.sim-err { margin: 4px 0 0; color: #e00000; font-size: 85.7%; line-height: 1.5; }
.sim-output { min-height: 480px; }
.sim-summary {
	margin: 0 0 14px;
	padding: 0 0 8px;
	border-bottom: 2px solid #1a9cc2;
	color: #3f4752;
	font-size: 120%;
	font-weight: 700;
	line-height: 1.5;
}
.sim-pr { margin: 0 0 28px; }
.sim-pr-label { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: #3f4752; font-weight: 700; }
.sim-pr-badge {
	padding: 1px 8px;
	background: #ef4f68;
	border-radius: 4px;
	color: #fff;
	font-size: 78%;
	font-weight: 700;
	line-height: 1.6;
}
.sim-pr-card {
	margin: 0 0 14px;
	padding: 16px;
	background: #fff;
	border: 1px solid #dfe8ee;
	border-top: 3px solid #ef4f68;
	border-radius: 10px;
	box-shadow: 0 1px 4px rgba(41, 80, 143, .08);
}
.sim-pr-head { display: flex; align-items: center; gap: 14px; margin: 0 0 12px; }
.sim-pr-logo { flex: none; width: 110px; height: auto; max-height: 44px; object-fit: contain; }
.sim-pr-title { min-width: 0; }
.sim-pr-nums { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 10px; margin: 0 0 12px; }
.sim-metric { min-width: 0; }
.sim-metric-label { display: block; color: #6b7682; font-size: 78%; line-height: 1.5; }
.sim-metric-value { display: block; color: #3f4752; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.sim-metric-main .sim-metric-value { color: #29508f; font-size: 135%; }
.sim-pr-none { margin: 0 0 12px; color: #6b7682; font-size: 85.7%; }
.sim-page .sim-pr-prompt { margin: 0 0 10px; color: #3f4752; font-size: 85.7%; font-weight: 500; line-height: 1.6; }
.sim-benefit { margin: 0 0 12px; padding: 12px 14px; background: #f0f8fb; border-radius: 8px; }
.sim-page .sim-benefit-title { margin: 0 0 6px; color: #1c6f8a; font-size: 85.7%; font-weight: 700; line-height: 1.5; }
.sim-benefit-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 4px 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.sim-benefit-list li {
	position: relative;
	margin: 0;
	padding: 0 0 0 18px;
	background: none;
	border: 0;
	color: #3f4752;
	font-size: 85.7%;
	line-height: 1.6;
}
.sim-benefit-list li::before {
	content: "";
	position: absolute;
	left: 3px;
	top: .4em;
	width: 5px;
	height: 9px;
	border: solid #1a9cc2;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.sim-page .sim-benefit-note { margin: 6px 0 0; color: #6b7682; font-size: 78%; line-height: 1.6; }
.sim-pr-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 18px; }
.sim-pr-foot p { margin: 0; }
.sim-pr-more { color: #1a9cc2; font-size: 85.7%; }
.sim-list-title { margin: 0 0 8px; color: #3f4752; font-size: 110%; font-weight: 700; line-height: 1.5; }
.sim-list-title small { margin-left: 8px; color: #6b7682; font-size: 78%; font-weight: 400; }
.sim-page .sim-list-note { margin: 0 0 8px; color: #6b7682; font-size: 85.7%; line-height: 1.6; }
.sim-empty { padding: 16px; background: #f5f9fb; border-radius: 8px; text-align: center; }
.bankdetailWrap .sim-table { width: 100%; margin: 0; border: 0; border-collapse: collapse; }
.bankdetailWrap .sim-table th {
	padding: 10px 8px;
	background: #eaf1fa;
	border: 0;
	color: #29508f;
	font-size: 78%;
	font-weight: 700;
	text-align: right;
	white-space: nowrap;
}
.bankdetailWrap .sim-table th:nth-child(1) { text-align: center; }
.bankdetailWrap .sim-table th:nth-child(2) { text-align: left; }
.bankdetailWrap .sim-table td {
	padding: 12px 8px;
	background: none;
	border: 0;
	border-bottom: 1px solid #e6edf2;
	color: #3f4752;
	font-size: 92%;
	text-align: right;
	vertical-align: middle;
	white-space: nowrap;
}
.bankdetailWrap .sim-table tbody tr:hover td { background: #f8fbfd; }
.bankdetailWrap .sim-table td.sim-rank { width: 2.2em; color: #6b7682; font-weight: 700; text-align: center; }
.bankdetailWrap .sim-table td.sim-name { text-align: left; white-space: normal; }
.bankdetailWrap .sim-table .sim-row-client td { background: #fff8f3; }
.sim-bank { display: block; color: #3f4752; font-weight: 700; line-height: 1.5; }
.sim-product { display: block; color: #6b7682; font-size: 78%; line-height: 1.5; }
.sim-row-link { display: inline-block; margin: 4px 0 0; color: #1a9cc2; font-size: 78%; font-weight: 700; line-height: 1.5; }
.sim-monthly-value { display: block; color: #29508f; font-size: 112%; font-weight: 700; }
.sim-sub { display: block; color: #6b7682; font-size: 72%; font-weight: 400; line-height: 1.4; }
.sim-cta {
	margin: 24px 0;
	padding: 18px 20px;
	background: #f5f9fb;
	border-radius: 10px;
	text-align: center;
}
.sim-cta-text { margin: 0 0 12px; }
.sim-cta-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; text-align: left; }
.sim-cta-item {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 10px 12px;
	background: #fff;
	border: 1px solid #dfe8ee;
	border-radius: 6px;
}
.sim-page .sim-cta-name { display: flex; align-items: center; gap: 6px; margin: 0 0 2px; color: #3f4752; font-weight: 700; line-height: 1.5; }
.sim-page .sim-cta-desc { margin: 0 0 8px; color: #3f4752; font-size: 85.7%; line-height: 1.6; }
.sim-page .sim-cta-item .btnWidth200 { width: 100%; margin: auto 0 0; }
.sim-notes-title {
	margin: 24px 0 8px;
	color: #3f4752;
	font-size: 110%;
	font-weight: 700;
}
.sim-notes-lead { margin: 0 0 10px; }
.sim-notes { margin: 0; padding-left: 1.3em; font-size: 85.7%; line-height: 1.8; list-style: disc; }
.sim-caution { color: #e00000; font-weight: 700; }
@media screen and ( max-width: 600px ) {
	.sim-title { font-size: 125%; }
	.sim-cta-links { grid-template-columns: minmax(0, 1fr); }
	.sim-form { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 14px; }
	.sim-seg-5 { grid-auto-flow: row; grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.sim-seg-5 label { grid-column: span 2; }
	.sim-seg-5 label:nth-child(n+4) { grid-column: span 3; }
	.top-video { margin: 16px 0; padding: 16px; }
	.top-video h2 { font-size: 118%; }
	.sim-entry { margin: 16px 0; padding: 16px; }
	.sim-entry h2 { font-size: 118%; }
	.sim-entry form { gap: 10px; }
	.sim-entry form label {
		display: grid;
		grid-template-columns: 5em minmax(0, 1fr) 2.6em;
		align-items: center;
		gap: 8px;
		width: 100%;
	}
	.sim-entry input { width: 100%; }
	.sim-entry button { width: 100%; }
	.sim-pr-nums { grid-template-columns: 1fr 1fr; }
	.sim-metric-main { grid-column: 1 / -1; grid-row: 1; }
	.sim-benefit-list { grid-template-columns: minmax(0, 1fr); }
	.sim-pr-foot p { width: 100%; }
	.bankdetailWrap .sim-table thead { display: none; }
	.bankdetailWrap .sim-table, .sim-table tbody { display: block; width: 100%; }
	.bankdetailWrap .sim-table tr {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		margin: 0 0 10px;
		padding: 12px;
		border: 1px solid #dfe8ee;
		border-radius: 8px;
	}
	.bankdetailWrap .sim-table .sim-row-client { background: #fff8f3; }
	.bankdetailWrap .sim-table td,
	.bankdetailWrap .sim-table .sim-row-client td,
	.bankdetailWrap .sim-table tbody tr:hover td { display: block; padding: 0; background: none; border: 0; text-align: left; }
	.bankdetailWrap .sim-table td.sim-rank {
		grid-column: 1 / -1;
		width: auto;
		margin: 0 0 2px;
		font-size: 78%;
		text-align: left;
	}
	.bankdetailWrap .sim-table td.sim-rank::before { content: "第"; }
	.bankdetailWrap .sim-table td.sim-rank::after { content: "位"; }
	.bankdetailWrap .sim-table td.sim-name { grid-column: 1 / -1; margin: 0 0 8px; }
	.bankdetailWrap .sim-table td.sim-rate,
	.bankdetailWrap .sim-table td.sim-total,
	.bankdetailWrap .sim-table td.sim-interest { order: 2; }
	.bankdetailWrap .sim-table td.sim-monthly {
		grid-column: 1 / -1;
		display: flex;
		flex-wrap: wrap;
		align-items: baseline;
		gap: 0 8px;
		order: 1;
		margin: 0 0 8px;
		padding: 8px 0;
		border-top: 1px solid #e6edf2;
		border-bottom: 1px solid #e6edf2;
	}
	.sim-table td.sim-monthly::before { content: attr(data-label); margin-right: auto; color: #6b7682; font-size: 85.7%; }
	.sim-monthly-value { font-size: 135%; }
	.sim-table td.sim-rate::before,
	.sim-table td.sim-total::before,
	.sim-table td.sim-interest::before {
		content: attr(data-label);
		display: block;
		color: #6b7682;
		font-size: 72%;
		line-height: 1.5;
	}
	.bankdetailWrap .sim-table td.sim-rate,
	.bankdetailWrap .sim-table td.sim-total,
	.bankdetailWrap .sim-table td.sim-interest { font-size: 85.7%; }
	.bankdetailWrap .sim-table tbody tr td.sim-na { display: none; }
}
