.fls-simulator {
	--fls-bg: #f4f1ec;
	--fls-bg-warm: #ede8e0;
	--fls-surface: #ffffff;
	--fls-surface-soft: #faf8f4;
	--fls-surface-tinted: #faf8f4;
	--fls-text: #1a2332;
	--fls-muted: #4a5468;
	--fls-subtle: #8a92a3;
	--fls-line: rgba(26, 35, 50, 0.08);
	--fls-line-strong: rgba(26, 35, 50, 0.15);
	--fls-navy: #1e3a52;
	--fls-bluegray: #6e7f99;
	--fls-accent: #6b8e7f;
	--fls-accent-strong: #4a6b5d;
	--fls-accent-soft: #d4e0d8;
	--fls-success: #4e9f6e;
	--fls-warning: #c97b5a;
	--fls-warning-soft: #f8eee7;
	--fls-amber: #d4a574;
	--fls-danger: #c97b5a;
	--fls-shadow: 0 4px 16px rgba(26, 35, 50, 0.06), 0 0 0 1px rgba(26, 35, 50, 0.04);
	--fls-shadow-lg: 0 20px 60px rgba(26, 35, 50, 0.08), 0 0 0 1px rgba(26, 35, 50, 0.04);
	box-sizing: border-box;
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
	padding: 18px 12px 30px;
	color: var(--fls-text);
	font-family: "Plus Jakarta Sans", "Noto Sans JP", "Hiragino Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-feature-settings: "palt";
	background:
		radial-gradient(900px 420px at 8% -8%, rgba(212, 224, 216, 0.42), transparent),
		radial-gradient(760px 360px at 100% 24%, rgba(212, 165, 116, 0.14), transparent),
		var(--fls-bg);
	border-radius: 22px;
	-webkit-font-smoothing: antialiased;
	text-rendering: geometricPrecision;
	-webkit-text-size-adjust: 100%;
}

.fls-simulator *,
.fls-simulator *::before,
.fls-simulator *::after {
	box-sizing: inherit;
}

.entry-content .fls-simulator,
.site-body .fls-simulator,
.entry-content .fls-home,
.site-body .fls-home {
	margin-top: 0;
	margin-bottom: 32px;
}

.fls-simulator button,
.fls-simulator input,
.fls-simulator select,
.fls-home a,
.fls-home button {
	max-width: 100%;
	box-shadow: none;
	touch-action: manipulation;
}

.fls-simulator button,
.fls-home a,
.fls-home button {
	appearance: none;
	text-decoration: none;
}

.fls-simulator h2,
.fls-simulator h3,
.fls-simulator h4,
.fls-simulator p,
.fls-simulator strong,
.fls-simulator span,
.fls-home h1,
.fls-home h2,
.fls-home h3,
.fls-home p,
.fls-home strong,
.fls-home span {
	overflow-wrap: anywhere;
}

.fls-anchor {
	display: block;
	height: 0;
	scroll-margin-top: 84px;
}

.fls-concept-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
	padding: 6px 4px 34px;
}

.fls-brand {
	display: inline-flex;
	align-items: center;
	gap: 14px;
}

.fls-brand-mark {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	flex: 0 0 auto;
	background: linear-gradient(135deg, var(--fls-accent), var(--fls-accent-strong));
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(74, 107, 93, 0.24);
}

.fls-brand-mark::before {
	position: absolute;
	inset: 8px;
	content: "";
	border: 1.5px solid rgba(255, 255, 255, 0.88);
	border-top-color: transparent;
	border-right-color: transparent;
	border-radius: 50%;
}

.fls-brand-mark::after {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 6px;
	height: 6px;
	content: "";
	background: #ffffff;
	border-radius: 50%;
}

.fls-brand-name {
	color: var(--fls-text);
	font-family: "Fraunces", "Noto Sans JP", serif;
	font-size: clamp(1.15rem, 1rem + 0.5vw, 1.45rem);
	font-weight: 400;
	letter-spacing: -0.02em;
	line-height: 1;
}

.fls-brand-name em {
	color: var(--fls-accent-strong);
	font-style: italic;
	font-weight: 300;
}

.fls-page-meta {
	color: var(--fls-subtle);
	font-family: "JetBrains Mono", "Noto Sans JP", monospace;
	font-size: 0.68rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.fls-concept-hero {
	max-width: 980px;
	padding: 0 4px 54px;
}

.fls-eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 20px;
	color: var(--fls-accent-strong);
	font-family: "JetBrains Mono", "Noto Sans JP", monospace;
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	line-height: 1.4;
	text-transform: uppercase;
}

.fls-eyebrow::before {
	width: 24px;
	height: 1px;
	content: "";
	background: var(--fls-accent-strong);
}

.fls-concept-hero h2 {
	max-width: 880px;
	margin: 0;
	color: var(--fls-text);
	font-family: "Fraunces", "Noto Sans JP", serif;
	font-size: clamp(2.5rem, 1.75rem + 4vw, 4.8rem);
	font-weight: 300;
	letter-spacing: -0.03em;
	line-height: 1.05;
}

.fls-concept-hero h2 em {
	color: var(--fls-accent-strong);
	font-style: italic;
	font-weight: 400;
}

.fls-concept-hero p:not(.fls-eyebrow) {
	max-width: 680px;
	margin: 24px 0 0;
	color: var(--fls-muted);
	font-size: 1.05rem;
	font-weight: 400;
	line-height: 1.8;
}

.fls-hero {
	display: none;
}

.fls-kicker,
.fls-step {
	margin: 0 0 6px;
	color: var(--fls-bluegray);
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	font-family: "JetBrains Mono", "Noto Sans JP", monospace;
	text-transform: uppercase;
}

.fls-hero h2,
.fls-panel h3,
.fls-input-card h4 {
	margin: 0;
	color: var(--fls-text);
	font-weight: 750;
	line-height: 1.25;
	letter-spacing: -0.005em;
}

.fls-hero h2 {
	font-size: clamp(2rem, 1.48rem + 2.4vw, 3.8rem);
	font-family: "Fraunces", "Noto Sans JP", serif;
	font-weight: 500;
}

.fls-lead {
	max-width: 680px;
	margin: 10px 0 0;
	color: var(--fls-muted);
	font-size: 0.96rem;
	line-height: 1.8;
}

.fls-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
}

.fls-panel {
	min-width: 0;
	padding: clamp(22px, 4vw, 38px);
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid var(--fls-line);
	border-radius: 28px;
	box-shadow: var(--fls-shadow);
}

.fls-panel--result {
	display: flex;
	flex-direction: column;
}

.fls-panel__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.fls-panel h3 {
	font-size: 1.12rem;
}

.fls-pill {
	flex: 0 0 auto;
	padding: 6px 10px;
	color: var(--fls-bluegray);
	font-size: 0.78rem;
	font-weight: 700;
	background: #eef3f7;
	border-radius: 999px;
}

.fls-card-list {
	display: grid;
	gap: 24px;
}

.fls-stepper {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	margin: 0 0 14px;
	padding: 8px;
	background: #ffffff;
	border: 1px solid var(--fls-line);
	border-radius: 12px;
}

.fls-stepper__button {
	display: grid;
	gap: 3px;
	align-content: center;
	min-height: 58px;
	padding: 8px 6px;
	color: var(--fls-muted);
	font: inherit;
	text-align: center;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 9px;
	cursor: pointer;
}

.fls-stepper__button span,
.fls-stepper__button strong {
	display: block;
	margin: 0;
	line-height: 1.25;
}

.fls-stepper__button span {
	font-size: 0.66rem;
	font-weight: 850;
	text-transform: uppercase;
}

.fls-stepper__button strong {
	color: inherit;
	font-size: 0.78rem;
	font-weight: 800;
}

.fls-stepper__button.is-active {
	color: var(--fls-navy);
	background: #f2f5f7;
	border-color: var(--fls-line);
}

.fls-preset-box {
	display: grid;
	gap: 12px;
	padding: 18px;
	margin-bottom: 24px;
	background: #ffffff;
	border: 1px solid var(--fls-line);
	border-radius: 18px;
	box-shadow: var(--fls-shadow);
}

.fls-validation {
	padding: 13px 14px;
	margin-bottom: 16px;
	color: #8d3b35;
	background: #fff7f5;
	border: 1px solid #efc8c1;
	border-radius: 8px;
}

.fls-validation strong {
	display: block;
	margin: 0 0 6px;
	color: #8d3b35;
	font-size: 0.9rem;
	font-weight: 800;
	line-height: 1.45;
}

.fls-validation ul {
	display: grid;
	gap: 4px;
	padding-left: 1.1em;
	margin: 0;
}

.fls-validation li {
	color: #8d3b35;
	font-size: 0.82rem;
	line-height: 1.55;
}

.fls-is-invalid .fls-field__label,
.fls-is-invalid > span:first-child,
.fls-is-invalid .fls-option-title {
	color: #8d3b35;
}

.fls-is-invalid input,
.fls-is-invalid select {
	background: #fffafa;
	border-color: #d98b80;
	box-shadow: 0 0 0 3px rgba(217, 139, 128, 0.14);
}

.fls-field-error {
	grid-column: 1 / -1;
	margin: 7px 0 0;
	color: #8d3b35;
	font-size: 0.76rem;
	font-weight: 650;
	line-height: 1.5;
}

.fls-preset-box__header span,
.fls-preset-box__header p {
	display: block;
	margin: 0;
}

.fls-preset-box__header span {
	color: var(--fls-text);
	font-size: 0.95rem;
	font-weight: 750;
	line-height: 1.4;
}

.fls-preset-box__header p {
	margin-top: 4px;
	color: var(--fls-muted);
	font-size: 0.8rem;
	line-height: 1.6;
}

.fls-preset-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
}

.fls-preset-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 0 13px;
	color: var(--fls-text);
	font: inherit;
	font-size: 0.88rem;
	font-weight: 700;
	background: var(--fls-surface-tinted, var(--fls-surface-soft));
	border: 1px solid var(--fls-line);
	border-radius: 14px;
	cursor: pointer;
	transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.fls-preset-button:hover {
	background: #ffffff;
	border-color: rgba(47, 118, 111, 0.3);
	transform: translateY(-1px);
}

.fls-input-card {
	position: relative;
	padding: clamp(20px, 4vw, 30px);
	background: var(--fls-surface);
	border: 1px solid var(--fls-line);
	border-radius: 22px;
	box-shadow: var(--fls-shadow);
	transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.fls-input-card::before {
	position: absolute;
	top: 20px;
	bottom: 20px;
	left: 0;
	width: 4px;
	content: "";
	background: transparent;
	border-radius: 999px;
	transition: background-color 180ms ease;
}

.fls-input-card.fls-section-active {
	background: #ffffff;
	border-color: rgba(107, 142, 127, 0.34);
	box-shadow: var(--fls-shadow-lg);
	transform: translateY(-1px);
}

.fls-input-card:focus-within {
	background: #ffffff;
	border-color: rgba(107, 142, 127, 0.34);
	box-shadow: var(--fls-shadow-lg);
}

.fls-input-card:focus-within::before {
	background: var(--fls-accent);
}

.fls-input-card.fls-section-active::before {
	background: var(--fls-accent);
}

.fls-card-heading {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 10px;
	align-items: start;
	margin-bottom: 14px;
}

.fls-card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	color: var(--fls-accent-strong);
	font-size: 0.82rem;
	font-weight: 800;
	font-family: "JetBrains Mono", "Noto Sans JP", monospace;
	background: var(--fls-accent-soft);
	border-radius: 8px;
}

.fls-input-card h4 {
	font-size: clamp(1.28rem, 1.05rem + 0.7vw, 1.72rem);
	font-family: "Fraunces", "Noto Sans JP", serif;
	font-weight: 500;
}

.fls-card-heading p {
	margin: 8px 0 0;
	color: var(--fls-muted);
	font-size: 0.92rem;
	line-height: 1.75;
}

.fls-field-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}

.fls-field {
	display: grid;
	gap: 7px;
	min-width: 0;
}

.fls-field__label {
	color: var(--fls-text);
	font-size: 0.9rem;
	font-weight: 700;
}

.fls-help {
	position: relative;
	display: inline-flex;
	align-items: center;
	margin-left: 6px;
	vertical-align: middle;
}

.fls-help-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	padding: 0;
	color: var(--fls-bluegray);
	font: inherit;
	font-size: 0.78rem;
	font-weight: 850;
	line-height: 1;
	background: #eef3f7;
	border: 1px solid var(--fls-line);
	border-radius: 999px;
	cursor: pointer;
}

.fls-help-button[aria-expanded="true"] {
	color: #ffffff;
	background: var(--fls-navy);
	border-color: var(--fls-navy);
}

.fls-help-tip {
	position: absolute;
	z-index: 5;
	top: calc(100% + 8px);
	left: 50%;
	width: min(260px, calc(100vw - 40px));
	padding: 10px 11px;
	color: var(--fls-text);
	font-size: 0.78rem;
	font-weight: 500;
	line-height: 1.65;
	background: #ffffff;
	border: 1px solid var(--fls-line);
	border-radius: 8px;
	box-shadow: 0 16px 36px rgba(20, 32, 51, 0.14);
	transform: translateX(-50%);
}

.fls-help-tip::before {
	position: absolute;
	top: -5px;
	left: 50%;
	width: 10px;
	height: 10px;
	content: "";
	background: #ffffff;
	border-top: 1px solid var(--fls-line);
	border-left: 1px solid var(--fls-line);
	transform: translateX(-50%) rotate(45deg);
}

.fls-input-wrap {
	position: relative;
	display: block;
}

.fls-field input,
.fls-select-field select {
	width: 100%;
	min-height: 54px;
	padding: 13px 64px 13px 14px;
	color: var(--fls-text);
	font: inherit;
	font-size: 1rem;
	background: var(--fls-surface-soft);
	border: 1px solid var(--fls-line);
	border-radius: 14px;
	outline: none;
	transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.fls-field input::placeholder {
	color: var(--fls-subtle);
}

.fls-field input:focus,
.fls-select-field select:focus {
	background: #ffffff;
	border-color: rgba(47, 118, 111, 0.52);
	box-shadow: 0 0 0 3px rgba(47, 118, 111, 0.13);
}

.fls-input-wrap small {
	position: absolute;
	right: 12px;
	top: 50%;
	color: var(--fls-muted);
	font-size: 0.78rem;
	font-weight: 650;
	transform: translateY(-50%);
	pointer-events: none;
}

.fls-field em {
	color: var(--fls-muted);
	font-size: 0.76rem;
	font-style: normal;
	line-height: 1.5;
}

.fls-loan-options {
	display: grid;
	gap: 12px;
	margin-top: 14px;
}

.fls-option-group {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	padding: 10px;
	background: var(--fls-surface-soft);
	border-radius: 8px;
}

.fls-option-title {
	grid-column: 1 / -1;
	margin: 0;
	color: var(--fls-muted);
	font-size: 0.82rem;
	font-weight: 700;
}

.fls-radio-pill {
	position: relative;
	display: block;
}

.fls-radio-pill input {
	position: absolute;
	opacity: 0;
	inset: 0;
}

.fls-radio-pill span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 0 10px;
	color: var(--fls-muted);
	font-size: 0.9rem;
	font-weight: 750;
	background: #ffffff;
	border: 1px solid var(--fls-line);
	border-radius: 8px;
	cursor: pointer;
	transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.fls-radio-pill input:checked + span {
	color: var(--fls-accent-strong);
	border-color: rgba(47, 118, 111, 0.46);
	box-shadow: inset 0 0 0 1px rgba(47, 118, 111, 0.16);
}

.fls-select-field {
	display: grid;
	gap: 7px;
}

.fls-select-field span {
	color: var(--fls-text);
	font-size: 0.9rem;
	font-weight: 700;
}

.fls-select-field select {
	padding-right: 36px;
	appearance: auto;
}

.fls-rate-slider {
	display: grid;
	gap: 10px;
	padding: 16px;
	background: #ffffff;
	border: 1px solid var(--fls-line);
	border-radius: 16px;
}

.fls-rate-slider__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	color: var(--fls-muted);
	font-size: 0.86rem;
	font-weight: 700;
}

.fls-rate-slider__header strong {
	color: var(--fls-navy);
	font-size: 1.08rem;
}

.fls-rate-slider input[type="range"] {
	width: 100%;
	accent-color: var(--fls-accent);
}

.fls-rate-slider input[type="range"],
.fls-field input[type="range"] {
	min-height: 28px;
}

.fls-details-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 54px;
	margin-top: 14px;
	padding: 0 15px;
	color: var(--fls-text);
	font: inherit;
	font-weight: 750;
	background: #ffffff;
	border: 1px solid var(--fls-line);
	border-radius: 8px;
	cursor: pointer;
}

.fls-details-toggle i {
	width: 9px;
	height: 9px;
	border-right: 2px solid var(--fls-muted);
	border-bottom: 2px solid var(--fls-muted);
	transform: rotate(45deg) translateY(-2px);
	transition: transform 160ms ease;
}

.fls-details-toggle[aria-expanded="true"] i {
	transform: rotate(225deg) translateY(-2px);
}

.fls-advanced {
	margin-top: 10px;
}

.fls-advanced__inner {
	padding: 15px;
	background: #ffffff;
	border: 1px solid var(--fls-line);
	border-radius: 8px;
}

.fls-advanced__title {
	margin: 0 0 10px;
	color: var(--fls-muted);
	font-size: 0.82rem;
	font-weight: 700;
}

.fls-advanced__lead {
	margin: -4px 0 14px;
	color: var(--fls-muted);
	font-size: 0.8rem;
	line-height: 1.7;
}

.fls-advanced-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

.fls-advanced-card {
	display: grid;
	gap: 12px;
	padding: 13px;
	background: #f8fafb;
	border: 1px solid var(--fls-line);
	border-radius: 8px;
}

.fls-advanced-card h4 {
	margin: 0;
	color: var(--fls-text);
	font-size: 0.94rem;
	font-weight: 750;
	line-height: 1.35;
}

.fls-chip-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.fls-chip-list li {
	padding: 7px 10px;
	color: var(--fls-accent-strong);
	font-size: 0.8rem;
	font-weight: 650;
	background: var(--fls-accent-soft);
	border-radius: 999px;
}

.fls-actions {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	margin-top: 14px;
}

.fls-storage-note {
	margin: 10px 0 0;
	color: var(--fls-muted);
	font-size: 0.78rem;
	line-height: 1.7;
}

.fls-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	padding: 0 16px;
	color: var(--fls-text);
	font: inherit;
	font-weight: 750;
	background: transparent;
	border: 1px solid var(--fls-line);
	border-radius: 12px;
	cursor: pointer;
	transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.fls-button:hover {
	transform: translateY(-1px);
}

.fls-button--primary {
	color: #ffffff;
	background: linear-gradient(160deg, #2a3f54, var(--fls-navy), #15293d);
	border-color: rgba(30, 58, 82, 0.85);
}

.fls-button--primary:hover {
	background: #0d1728;
	border-color: #0d1728;
}

.fls-button--ghost {
	background: #ffffff;
}

.fls-summary {
	padding: 14px;
	margin-bottom: 14px;
	background: var(--fls-surface-soft);
	border-radius: 8px;
}

.fls-summary p,
.fls-summary strong {
	display: block;
	margin: 0;
	line-height: 1.6;
}

.fls-summary p {
	color: var(--fls-muted);
	font-size: 0.84rem;
}

.fls-summary strong {
	margin-top: 4px;
	color: var(--fls-text);
	font-size: 0.94rem;
}

.fls-result-block {
	display: grid;
	gap: 22px;
	order: 1;
	padding-bottom: 22px;
	margin-bottom: 20px;
	border-bottom: 1px solid var(--fls-line);
}

.fls-summary--lead {
	margin-bottom: 0;
}

.fls-key-results {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.fls-result-card {
	min-width: 0;
	padding: clamp(22px, 4vw, 34px);
	background: #ffffff;
	border: 1px solid var(--fls-line);
	border-radius: 22px;
	box-shadow: var(--fls-shadow);
}

.fls-result-card--primary {
	position: relative;
	overflow: hidden;
	color: #ffffff;
	background: linear-gradient(160deg, #2a3f54, var(--fls-navy), #15293d);
	border-color: rgba(30, 58, 82, 0.55);
	box-shadow: var(--fls-shadow-lg);
}

.fls-result-card--primary::before {
	position: absolute;
	top: -80px;
	right: -70px;
	width: 180px;
	height: 180px;
	content: "";
	background: radial-gradient(circle, rgba(212, 165, 116, 0.28), transparent 65%);
	pointer-events: none;
}

.fls-result-card span,
.fls-result-card strong,
.fls-result-card p {
	display: block;
	margin: 0;
}

.fls-result-card span {
	color: var(--fls-muted);
	font-size: 0.76rem;
	font-weight: 750;
	font-family: "JetBrains Mono", "Noto Sans JP", monospace;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.35;
}

.fls-result-card strong {
	margin-top: 12px;
	color: var(--fls-text);
	font-size: clamp(2rem, 1.35rem + 3vw, 3.8rem);
	font-family: "Fraunces", "Noto Sans JP", serif;
	font-weight: 400;
	line-height: 1.12;
	letter-spacing: 0;
}

.fls-result-card--primary span,
.fls-result-card--primary strong,
.fls-result-card--primary p {
	position: relative;
	color: #ffffff;
}

.fls-result-card--primary p {
	opacity: 0.78;
}

.fls-result-card p {
	margin-top: 8px;
	color: var(--fls-muted);
	font-size: 0.84rem;
	line-height: 1.65;
}

.fls-result-card--progress {
	grid-column: 1 / -1;
}

.fls-risk-card {
	display: grid;
	gap: 8px;
	padding: 14px;
	background: #ffffff;
	border: 1px solid var(--fls-line);
	border-radius: 8px;
}

.fls-risk-card > div {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.fls-risk-card span {
	color: var(--fls-muted);
	font-size: 0.78rem;
	font-weight: 750;
}

.fls-risk-card strong {
	padding: 5px 10px;
	color: var(--fls-success);
	font-size: 0.84rem;
	background: var(--fls-accent-soft);
	border-radius: 6px;
}

.fls-risk-card p {
	margin: 0;
	color: var(--fls-muted);
	font-size: 0.84rem;
	line-height: 1.65;
}

.fls-risk-card[data-risk-level="caution"] strong {
	color: #7b5b1f;
	background: var(--fls-warning-soft);
}

.fls-risk-card[data-risk-level="danger"] strong {
	color: #a55a3d;
	background: #f5dcd0;
}

.fls-progress-card {
	padding: 14px;
	background: #ffffff;
	border: 1px solid var(--fls-line);
	border-radius: 8px;
}

.fls-progress-card__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
	color: var(--fls-muted);
	font-size: 0.86rem;
	font-weight: 750;
}

.fls-progress-card__header strong {
	color: var(--fls-accent-strong);
	font-size: 1.18rem;
}

.fls-progress {
	width: 100%;
	height: 12px;
	margin-top: 12px;
	overflow: hidden;
	background:
		repeating-linear-gradient(90deg, rgba(26, 35, 50, 0.08) 0 18px, transparent 18px 22px),
		var(--fls-surface-soft);
	border-radius: 999px;
}

.fls-progress span {
	display: block;
	width: 0;
	height: 100%;
	background: linear-gradient(90deg, var(--fls-accent), var(--fls-navy));
	border-radius: inherit;
	transition: width 180ms ease;
}

.fls-metric-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	order: 3;
	margin-bottom: 18px;
}

[data-fls-loan-summary] {
	order: 2;
}

.fls-metric-card {
	min-width: 0;
	padding: 13px;
	background: #ffffff;
	border: 1px solid var(--fls-line);
	border-radius: 8px;
}

.fls-metric-card span {
	display: block;
	color: var(--fls-muted);
	font-size: 0.76rem;
	font-weight: 700;
	line-height: 1.35;
}

.fls-metric-card strong {
	display: block;
	margin-top: 7px;
	color: var(--fls-text);
	font-size: clamp(1rem, 0.9rem + 0.35vw, 1.18rem);
	font-family: "Fraunces", "Noto Sans JP", serif;
	font-weight: 500;
	line-height: 1.25;
}

.fls-metric-card--wide {
	grid-column: 1 / -1;
}

.fls-scenario-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}

.fls-scenario-card {
	padding: 13px;
	background: #ffffff;
	border: 1px solid var(--fls-line);
	border-radius: 8px;
}

.fls-scenario-card span,
.fls-scenario-card strong,
.fls-scenario-card p {
	display: block;
	margin: 0;
}

.fls-scenario-card span {
	color: var(--fls-muted);
	font-size: 0.76rem;
	font-weight: 750;
}

.fls-scenario-card strong {
	margin-top: 6px;
	color: var(--fls-text);
	font-size: 1rem;
}

.fls-scenario-card p {
	margin-top: 5px;
	color: var(--fls-muted);
	font-size: 0.76rem;
	line-height: 1.55;
}

.fls-chart-wrap {
	position: relative;
	width: 100%;
	min-height: 240px;
}

.fls-chart-wrap canvas {
	width: 100% !important;
	height: 240px !important;
}

.fls-note {
	order: 8;
	margin: 14px 0 0;
	color: var(--fls-muted);
	font-size: 0.8rem;
	line-height: 1.7;
}

.fls-assumptions {
	order: 7;
	margin: 14px 0 0;
	background: #ffffff;
	border: 1px solid var(--fls-line);
	border-radius: 8px;
	overflow: hidden;
}

.fls-assumptions summary {
	min-height: 50px;
	padding: 14px;
	color: var(--fls-text);
	font-size: 0.9rem;
	font-weight: 800;
	line-height: 1.45;
	cursor: pointer;
	list-style-position: inside;
	background: var(--fls-surface-soft);
}

.fls-assumptions__body {
	display: grid;
	gap: 10px;
	padding: 14px;
	color: var(--fls-muted);
	font-size: 0.82rem;
	line-height: 1.75;
}

.fls-assumptions__body p,
.fls-assumptions__body ul {
	margin: 0;
}

.fls-assumptions__body ul {
	display: grid;
	gap: 7px;
	padding-left: 1.15em;
}

.fls-chart-stack {
	display: grid;
	gap: 18px;
	order: 5;
	margin-top: 22px;
}

.fls-chart-card {
	padding: clamp(18px, 4vw, 28px);
	background: #ffffff;
	border: 1px solid var(--fls-line);
	border-radius: 22px;
	box-shadow: var(--fls-shadow);
}

.fls-chart-card h4 {
	margin: 0 0 10px;
	color: var(--fls-text);
	font-size: 0.95rem;
	font-weight: 750;
	line-height: 1.35;
}

.fls-chart-note {
	margin: 10px 0 0;
	color: var(--fls-muted);
	font-size: 0.8rem;
	line-height: 1.65;
	background: #f8fafb;
	border: 1px solid var(--fls-line);
	border-radius: 8px;
	padding: 10px 11px;
}

.fls-compare {
	order: 6;
	margin-top: 14px;
	background: #ffffff;
	border: 1px solid var(--fls-line);
	border-radius: 22px;
	overflow: hidden;
	box-shadow: var(--fls-shadow);
}

.fls-timeline-section {
	order: 4;
	margin-top: 22px;
}

.fls-compare__header {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 3px 10px;
	align-items: center;
	padding: 18px 20px;
	background: var(--fls-surface-soft);
}

.fls-compare__header span {
	color: var(--fls-muted);
	font-size: 0.76rem;
	font-weight: 750;
}

.fls-compare__header strong {
	grid-column: 1 / -1;
	color: var(--fls-text);
	font-size: 1rem;
	line-height: 1.6;
}

.fls-compare-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 64px;
	min-height: 40px;
	padding: 0 12px;
	color: var(--fls-navy);
	font: inherit;
	font-size: 0.8rem;
	font-weight: 800;
	background: #ffffff;
	border: 1px solid var(--fls-line);
	border-radius: 8px;
	cursor: pointer;
}

.fls-collapsible-section.fls-is-collapsed > :not(.fls-compare__header) {
	display: none;
}

.fls-compare-table-wrap {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border-top: 1px solid var(--fls-line);
	overscroll-behavior-x: contain;
}

.fls-compare-table {
	width: 100%;
	min-width: 520px;
	border-collapse: collapse;
}

.fls-cashflow-table {
	min-width: 1120px;
}

.fls-compare-table th,
.fls-compare-table td {
	padding: 12px;
	text-align: left;
	border-top: 1px solid var(--fls-line);
	white-space: nowrap;
}

.fls-compare-table th {
	position: sticky;
	top: 0;
	z-index: 1;
	color: var(--fls-muted);
	font-size: 0.76rem;
	font-weight: 750;
	background: #f8fafb;
}

.fls-compare-table td {
	color: var(--fls-text);
	font-size: 0.84rem;
	font-weight: 650;
}

.fls-event-list {
	display: grid;
	gap: 8px;
	padding: 12px;
}

.fls-event-item {
	display: grid;
	grid-template-columns: 74px 1fr;
	gap: 10px;
	align-items: start;
	padding: 10px;
	background: var(--fls-surface-soft);
	border-radius: 8px;
}

.fls-event-item span {
	color: var(--fls-muted);
	font-size: 0.78rem;
	font-weight: 750;
	line-height: 1.5;
}

.fls-event-item strong {
	color: var(--fls-text);
	font-size: 0.86rem;
	font-weight: 700;
	line-height: 1.5;
}

.fls-empty {
	margin: 0;
	color: var(--fls-muted);
	font-size: 0.84rem;
	line-height: 1.6;
}

.fls-timeline {
	position: relative;
	display: grid;
	gap: 0;
	padding: 24px 18px 24px 22px;
}

.fls-timeline::before {
	position: absolute;
	top: 22px;
	bottom: 22px;
	left: 22px;
	width: 2px;
	content: "";
	background: linear-gradient(180deg, var(--fls-accent), var(--fls-amber), var(--fls-warning), var(--fls-navy));
	border-radius: 999px;
}

.fls-timeline-item {
	position: relative;
	display: grid;
	grid-template-columns: 24px 1fr;
	gap: 16px;
	padding: 0 0 20px;
}

.fls-timeline-item:last-child {
	padding-bottom: 0;
}

.fls-timeline-marker {
	position: relative;
	z-index: 1;
	width: 12px;
	height: 12px;
	margin: 6px auto 0;
	background: var(--fls-accent);
	border: 3px solid #ffffff;
	border-radius: 999px;
	box-shadow: 0 0 0 1px rgba(47, 118, 111, 0.28);
}

.fls-timeline-content {
	padding: 16px;
	background: #ffffff;
	border: 1px solid var(--fls-line);
	border-radius: 18px;
	box-shadow: var(--fls-shadow);
}

.fls-timeline-content span,
.fls-timeline-content strong,
.fls-timeline-content p {
	display: block;
	margin: 0;
}

.fls-timeline-content span {
	color: var(--fls-bluegray);
	font-size: 0.78rem;
	font-weight: 800;
	font-family: "JetBrains Mono", "Noto Sans JP", monospace;
	line-height: 1.35;
}

.fls-timeline-content strong {
	margin-top: 6px;
	color: var(--fls-text);
	font-size: 1.04rem;
	font-weight: 750;
	font-family: "Fraunces", "Noto Sans JP", serif;
	line-height: 1.45;
}

.fls-timeline-content p {
	margin-top: 5px;
	color: var(--fls-muted);
	font-size: 0.78rem;
	line-height: 1.55;
}

.fls-timeline-item[data-event-type="important"] .fls-timeline-marker {
	width: 15px;
	height: 15px;
	margin-top: 5px;
	background: var(--fls-navy);
	box-shadow: 0 0 0 3px rgba(30, 42, 56, 0.1);
}

.fls-timeline-item[data-event-type="important"] .fls-timeline-content {
	border-color: rgba(30, 42, 56, 0.16);
	background: #f8fafb;
}

.fls-timeline-item[data-event-type="warning"] .fls-timeline-marker {
	background: var(--fls-warning);
	box-shadow: 0 0 0 3px rgba(182, 120, 53, 0.12);
}

.fls-timeline-item[data-event-type="warning"] .fls-timeline-content {
	border-color: rgba(182, 120, 53, 0.24);
	background: var(--fls-warning-soft);
}

.fls-disclaimer {
	order: 9;
	padding: 13px;
	margin: 14px 0 0;
	color: var(--fls-muted);
	font-size: 0.78rem;
	line-height: 1.75;
	background: #ffffff;
	border: 1px solid var(--fls-line);
	border-radius: 8px;
}

@media (max-width: 560px) {
	.fls-key-results,
	.fls-metric-grid,
	.fls-scenario-grid {
		grid-template-columns: 1fr;
	}

	.fls-result-card--progress,
	.fls-metric-card--wide {
		grid-column: auto;
	}

	.fls-option-group {
		grid-template-columns: 1fr;
	}

	.fls-option-title {
		grid-column: auto;
	}

	.fls-result-card,
	.fls-metric-card,
	.fls-scenario-card,
	.fls-input-card {
		padding: 14px;
	}
}

@media (max-width: 430px) {
	.fls-simulator {
		padding: 14px 10px 24px;
		border-radius: 14px;
	}

	.fls-panel {
		padding: 14px;
		border-radius: 10px;
	}

	.fls-panel__header {
		display: grid;
		gap: 10px;
	}

	.fls-pill {
		justify-self: start;
	}

	.fls-key-results,
	.fls-metric-grid {
		grid-template-columns: 1fr;
	}

	.fls-result-card--progress,
	.fls-metric-card--wide {
		grid-column: auto;
	}

	.fls-result-card strong {
		font-size: 2.2rem;
	}

	.fls-field input,
	.fls-select-field select,
	.fls-button,
	.fls-details-toggle {
		min-height: 56px;
	}

	.fls-actions {
		gap: 9px;
	}

	.fls-button,
	.fls-preset-button {
		width: 100%;
	}

	.fls-help {
		position: static;
	}

	.fls-help-tip {
		left: 10px;
		right: 10px;
		width: auto;
		max-width: none;
		transform: none;
	}

	.fls-help-tip::before {
		left: 22px;
		transform: rotate(45deg);
	}

	.fls-chart-wrap,
	.fls-chart-wrap canvas {
		min-height: 230px;
		height: 230px !important;
	}

	.fls-chart-card {
		padding: 12px;
	}

	.fls-chart-card h4 {
		margin-bottom: 6px;
		font-size: 0.9rem;
	}

	.fls-chart-note {
		font-size: 0.78rem;
		line-height: 1.6;
		padding: 9px 10px;
	}

	.fls-compare__header {
		grid-template-columns: 1fr auto;
		padding: 12px;
	}

	.fls-compare__header strong {
		font-size: 0.84rem;
	}

	.fls-compare-toggle {
		min-width: 58px;
		min-height: 42px;
	}

	.fls-compare-table-wrap {
		max-height: 68vh;
	}

	.fls-compare-table {
		min-width: 620px;
	}

	.fls-cashflow-table {
		min-width: 1160px;
	}

	.fls-compare-table th,
	.fls-compare-table td {
		padding: 11px 10px;
		font-size: 0.8rem;
	}

	.fls-timeline {
		padding-left: 12px;
	}

	.fls-timeline::before {
		left: 16px;
	}

	.fls-timeline-item {
		grid-template-columns: 18px 1fr;
		gap: 10px;
	}
}

@media (min-width: 640px) {
	.fls-simulator {
		padding: 28px;
	}

	.fls-panel {
		padding: 20px;
	}

	.fls-field-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.fls-preset-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.fls-advanced-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.fls-actions {
		display: flex;
	}

	.fls-button {
		min-width: 150px;
	}

	.fls-key-results {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.fls-result-card--progress {
		grid-column: auto;
	}

	.fls-scenario-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 920px) {
	.fls-layout {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.fls-panel {
		padding: 34px;
	}

	.fls-chart-wrap,
	.fls-chart-wrap canvas {
		min-height: 310px;
		height: 310px !important;
	}

	.fls-chart-stack {
		grid-template-columns: 1fr;
	}

	.fls-preset-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.fls-advanced-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.fls-home {
	--fls-home-bg: #f4f1ec;
	--fls-home-surface: #ffffff;
	--fls-home-text: #1a2332;
	--fls-home-muted: #4a5468;
	--fls-home-line: rgba(26, 35, 50, 0.08);
	--fls-home-navy: #1e3a52;
	--fls-home-accent: #6b8e7f;
	--fls-home-bluegray: #8a92a3;
	--fls-home-warning: #c97b5a;
	box-sizing: border-box;
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
	padding: 18px 12px 30px;
	color: var(--fls-home-text);
	font-family: "Plus Jakarta Sans", "Noto Sans JP", "Hiragino Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	background: var(--fls-home-bg);
	border-radius: 18px;
	-webkit-font-smoothing: antialiased;
	text-rendering: geometricPrecision;
}

.fls-home {
	background:
		radial-gradient(900px 420px at 8% -8%, rgba(212, 224, 216, 0.42), transparent),
		radial-gradient(760px 360px at 100% 24%, rgba(212, 165, 116, 0.14), transparent),
		var(--fls-home-bg);
}

.fls-home *,
.fls-home *::before,
.fls-home *::after {
	box-sizing: inherit;
}

.fls-home-hero {
	display: grid;
	gap: 24px;
	min-height: min(760px, 86vh);
	padding: 34px 18px 22px;
	align-items: center;
	background: #ffffff;
	border: 1px solid var(--fls-home-line);
	border-radius: 16px;
	overflow: hidden;
}

.fls-home-kicker {
	margin: 0 0 8px;
	color: var(--fls-home-bluegray);
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: uppercase;
}

.fls-home-hero h1,
.fls-home-section h2,
.fls-home-cta h2 {
	margin: 0;
	color: var(--fls-home-text);
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.18;
}

.fls-home-hero h1 {
	max-width: 760px;
	font-size: clamp(2rem, 1.52rem + 2vw, 4.1rem);
	font-family: "Fraunces", "Noto Sans JP", serif;
	font-weight: 500;
}

.fls-home-hero p,
.fls-home-cta p {
	max-width: 680px;
	margin: 16px 0 0;
	color: var(--fls-home-muted);
	font-size: 1rem;
	line-height: 1.85;
}

.fls-home-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	padding: 0 20px;
	margin-top: 24px;
	color: #ffffff;
	font-size: 0.98rem;
	font-weight: 800;
	text-decoration: none;
	background: var(--fls-home-navy);
	border: 1px solid var(--fls-home-navy);
	border-radius: 10px;
	transition: transform 160ms ease, background-color 160ms ease;
}

.fls-home-button:hover,
.fls-home-button:focus {
	color: #ffffff;
	background: #0d1728;
	transform: translateY(-1px);
}

.fls-home-visual {
	position: relative;
	min-height: 280px;
}

.fls-home-visual__card {
	position: relative;
	z-index: 1;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid var(--fls-home-line);
	border-radius: 14px;
	box-shadow: 0 24px 70px rgba(20, 32, 51, 0.12);
}

.fls-home-visual__card--main {
	width: min(100%, 420px);
	padding: 22px;
	margin-left: auto;
}

.fls-home-visual__card--sub {
	width: 178px;
	padding: 16px;
	margin-top: -18px;
	margin-left: 8px;
}

.fls-home-visual__card span {
	display: block;
	color: var(--fls-home-muted);
	font-size: 0.78rem;
	font-weight: 800;
	line-height: 1.4;
}

.fls-home-visual__card strong {
	display: block;
	margin-top: 8px;
	color: var(--fls-home-text);
	font-size: clamp(1.8rem, 1.3rem + 1.5vw, 3rem);
	line-height: 1;
}

.fls-home-chart {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	align-items: end;
	gap: 10px;
	height: 150px;
	padding-top: 20px;
}

.fls-home-chart i {
	display: block;
	min-height: 28px;
	background: linear-gradient(180deg, #2f766f 0%, #dbe9e7 100%);
	border-radius: 999px 999px 8px 8px;
}

.fls-home-visual__line {
	position: absolute;
	inset: 34px 0 auto 12px;
	height: 150px;
	background:
		linear-gradient(135deg, transparent 0 46%, rgba(82, 107, 131, 0.18) 46% 49%, transparent 49%),
		linear-gradient(165deg, transparent 0 48%, rgba(47, 118, 111, 0.24) 48% 51%, transparent 51%);
	border-radius: 16px;
}

.fls-home-section,
.fls-home-cta {
	margin-top: 18px;
	padding: 26px 18px;
	background: #ffffff;
	border: 1px solid var(--fls-home-line);
	border-radius: 16px;
}

.fls-home-section--soft {
	background: #f9fbfc;
}

.fls-home-section__header {
	max-width: 720px;
	margin-bottom: 18px;
}

.fls-home-section h2,
.fls-home-cta h2 {
	font-size: clamp(1.45rem, 1.2rem + 0.9vw, 2.25rem);
}

.fls-home-card-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}

.fls-home-card {
	padding: 16px;
	background: #ffffff;
	border: 1px solid var(--fls-home-line);
	border-radius: 10px;
}

.fls-home-card span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin-bottom: 14px;
	color: var(--fls-home-accent);
	font-size: 0.78rem;
	font-weight: 850;
	background: #e8f3f1;
	border-radius: 50%;
}

.fls-home-card h3 {
	margin: 0;
	color: var(--fls-home-text);
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.4;
}

.fls-home-card p {
	margin: 8px 0 0;
	color: var(--fls-home-muted);
	font-size: 0.86rem;
	line-height: 1.7;
}

.fls-home-feature-list {
	display: grid;
	gap: 10px;
}

.fls-home-feature-list div {
	padding: 16px;
	background: #ffffff;
	border: 1px solid var(--fls-home-line);
	border-radius: 10px;
}

.fls-home-feature-list strong {
	display: block;
	color: var(--fls-home-text);
	font-size: 0.98rem;
	line-height: 1.55;
}

.fls-home-feature-list p {
	margin: 6px 0 0;
	color: var(--fls-home-muted);
	font-size: 0.86rem;
	line-height: 1.75;
}

.fls-home-cta {
	text-align: left;
	background: linear-gradient(180deg, #ffffff 0%, #f3f7fa 100%);
}

.fls-home-button--large {
	width: 100%;
}

.fls-home-disclaimer {
	padding: 14px;
	margin: 18px 0 0;
	color: var(--fls-home-muted);
	font-size: 0.8rem;
	line-height: 1.8;
	background: #ffffff;
	border: 1px solid var(--fls-home-line);
	border-radius: 10px;
}

@media (max-width: 430px) {
	.fls-home {
		padding: 14px 10px 24px;
		border-radius: 14px;
	}

	.fls-home-hero {
		min-height: auto;
		padding: 30px 14px 18px;
		border-radius: 14px;
	}

	.fls-home-hero h1 {
		font-size: 2rem;
	}

	.fls-home-hero p,
	.fls-home-cta p {
		font-size: 0.94rem;
	}

	.fls-home-button {
		width: 100%;
		min-height: 54px;
	}

	.fls-home-visual {
		min-height: 250px;
	}

	.fls-home-chart {
		height: 130px;
	}

	.fls-home-section,
	.fls-home-cta {
		padding: 22px 14px;
		border-radius: 14px;
	}
}

@media (min-width: 700px) {
	.fls-home {
		padding: 28px;
	}

	.fls-home-hero {
		grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
		padding: 54px 44px 34px;
	}

	.fls-home-button--large {
		width: auto;
		min-width: 240px;
	}

	.fls-home-section,
	.fls-home-cta {
		padding: 38px;
	}

	.fls-home-card-grid--six {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.fls-home-feature-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 980px) {
	.fls-home-card-grid--six {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.fls-home-feature-list {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}
