@charset "utf-8";

/* =========================================
   ROI Simulator
   ========================================= */

.roi-simulator {
	background: #f5f5f2;
	padding: 60px 0 40px;
	margin-bottom: 80px;
}

.roi-simulator__inner {
	max-width: 960px;
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
}

.roi-simulator__heading {
	text-align: center;
	margin-bottom: 8px;
}

.roi-simulator__heading h2 {
	font-size: 28px;
	font-weight: 700;
	color: #121212;
	line-height: 1.3;
}

.roi-simulator__heading h2 span {
	color: #ea0029;
}

.roi-simulator__subtitle {
	font-size: 24px;
	font-weight: 500;
	color: #000;
}

.roi-simulator__lead {
	text-align: center;
	font-size: 16px;
	line-height: 1.7;
	margin-bottom: 24px;
}

/* Layout */
.roi-simulator__body {
	display: flex;
	gap: 32px;
	align-items: flex-start;
}

/* Input panel */
.roi-simulator__inputs {
	flex: 1;
	min-width: 0;
	background: #fff;
	border-radius: 12px;
	padding: 35px 16px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

.roi-simulator__inputs h3 {
	font-size: 19px;
	font-weight: 700;
	color: #121212;
	line-height: 1.5;
	margin-bottom: 24px;
	padding-left: 12px;
	border-left: 3px solid #121212;
}

/* Input group */
.roi-input-group {
	margin-bottom: 28px;
}

.roi-input-group:last-child {
	margin-bottom: 0;
}

.roi-input-group label {
	display: block;
	font-size: 16px;
	font-weight: 500;
	color: #000;
}
.roi-input-group .lead-ttl{
	margin-bottom: 8px;
}
.roi-input-group.no-lead .no-lead-ttl{
	margin-bottom: 12px;
}

.roi-input-group label .unit {
	font-size: 12px;
	font-weight: 400;
	color: #777;
	margin-left: 4px;
}

/* Radio group */
.roi-radio-group {
	display: flex;
	gap: 6px;
	row-gap: 8px;
	flex-wrap: wrap;
}

.roi-radio-label {
	display: inline-flex;
	align-items: center;
	cursor: pointer;
}

.roi-radio-label input[type="radio"] {
	display: none;
}

.roi-radio-label span {
	display: inline-flex;
	align-items: center;
	padding: 8px 22px 9px;
	border: 1px solid #dadada;
	border-radius: 20px;
	font-size: 15px;
	font-weight: 400;
	color: #000;
	transition: border-color 0.15s, background 0.15s, color 0.15s;
	white-space: nowrap;
	box-sizing: border-box;
}

.roi-radio-label:hover span {
	border-color: #ea0029;
	color: #ea0029;
}

.roi-radio-label input[type="radio"]:checked + span {
	border-color: #ea0029;
	background: #ea0029;
	color: #fff;
}

/* Slider + number row */
.roi-input-row {
	display: flex;
	align-items: center;
	gap: 12px;
}

.roi-input-row input[type="range"] {
	flex: 1;
	-webkit-appearance: none;
	appearance: none;
	height: 4px;
	border-radius: 2px;
	background: #ddd;
	outline: none;
	cursor: pointer;
}

.roi-input-row input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #ea0029;
	cursor: pointer;
	box-shadow: 0 1px 4px rgba(234, 0, 41, 0.4);
	transition: transform 0.15s;
}

.roi-input-row input[type="range"]::-webkit-slider-thumb:hover {
	transform: scale(1.15);
}

.roi-input-row input[type="range"]::-moz-range-thumb {
	width: 20px;
	height: 20px;
	border: none;
	border-radius: 50%;
	background: #ea0029;
	cursor: pointer;
}

.roi-input-row input[type="number"] {
	width: 72px;
	height: 36px;
	padding: 0 8px;
	border: 1px solid #dadada;
	border-radius: 3px;
	font-size: 15px;
	font-weight: 400;
	color: #636363;
	letter-spacing: 0.6px;
	text-align: right;
	box-sizing: border-box;
	-moz-appearance: textfield;
}

.roi-input-row input[type="number"]::-webkit-inner-spin-button,
.roi-input-row input[type="number"]::-webkit-outer-spin-button {
	-webkit-appearance: none;
}

.roi-input-row input[type="number"]:focus,
.roi-input-row input[type="range"]:focus {
	outline: 2px solid #ea0029;
	outline-offset: 2px;
}

/* Monthly cost — direct input only */
.roi-cost-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.roi-cost-row input[type="number"] {
	width: 80px;
	height: 36px;
	padding: 0 8px;
	border: 1px solid #dadada;
	border-radius: 3px;
	font-size: 15px;
	font-weight: 400;
	color: #636363;
	letter-spacing: 0.6px;
	text-align: center;
	box-sizing: border-box;
	-moz-appearance: textfield;
}

.roi-cost-row input[type="number"]::-webkit-inner-spin-button,
.roi-cost-row input[type="number"]::-webkit-outer-spin-button {
	-webkit-appearance: none;
}

.roi-cost-row input[type="number"]:focus {
	outline: none;
	background: #fef2f3;
	border: 1px solid #ea0029;
}

.roi-cost-row input[type="number"]:focus::placeholder {
	color: transparent;
}

.unit-label {
	font-size: 15px;
	color: #000;
	flex-shrink: 0;
}

/* Results panel */
.roi-simulator__results {
	width: 320px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
	transition: background-color 0.6s ease;
}

/* White card */
.roi-results__card {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

/* Before / After item rows */
.roi-ba__item {
	padding: 26px 16px 0;
}
.roi-ba__item.roi-ba__item-after{
	padding-top: 8px;
	padding-bottom: 16px;
}
.roi-ba__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

#contents .roi-ba__item .card-label {
	font-size: 16px;
	font-weight: 500;
	color: #121212;
	line-height: 1;
	flex-shrink: 0;
}

#contents .roi-ba__value {
	font-size: 24px;
	font-weight: 500;
	color: #121212;
	line-height: 1;
	letter-spacing: -0.02em;
	white-space: nowrap;
	transition: color 0.4s ease;
}

.roi-ba__value > span {
	margin-left: 5px;
}

/* Down arrow between before / after */
.roi-ba__arrow {
	text-align: center;
	font-size: 18px;
	color: #000;
	font-weight: 700;
	padding: 2px 24px;
}

/* Divider */
.roi-divider {
	border: none;
	border-top: 1px solid #dadada;
	margin: 0;
}

/* Saving section — pinkish tint */
.roi-saving__section {
	background: #fef2f3;
	border-radius: 0 0 12px 12px;
	padding: 16px 16px 24px;
}

#contents .roi-saving__section .card-label {
	font-size: 16px;
	font-weight: 700;
	color: #121212;
	letter-spacing: 0.06em;
	line-height: 1.3;
	flex-shrink: 0;
}

#contents .roi-saving__value {
	font-size: 32px;
	font-weight: 500;
	color: #ea0029;
	line-height: 1;
	letter-spacing: -0.02em;
	white-space: nowrap;
	transition: color 0.4s ease;
}

.roi-saving__value > span {
	margin-left: 5px;
}

.roi-saving__value .card-unit {
	font-size: 13px;
	font-weight: 400;
	margin-left: 2px;
}

/* Red primary card (net profit) */
.roi-results__card.is-primary {
	background: #ea0029;
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.25);
	padding: 24px 16px;
}

#contents .roi-primary__label {
	font-size: 22px;
	font-weight: 500;
	color: #fff;
	letter-spacing: 1.32px;
	margin-bottom: 14px;
	text-align: center;
	line-height: 1.0;
}

#contents .roi-primary__value {
	font-size: 48px;
	font-weight: 500;
	color: #fff;
	line-height: 1;
	letter-spacing: -0.02em;
	margin-bottom: 8px;
	text-align: center;
}

.roi-primary__value > span {
	margin-left: 5px;
}

/* Formula text */
#contents .card-formula {
	font-size: 14px;
	color: #2f2f2f;
	margin-top: 6px;
	line-height: 1.42;
}

.card-formula--white {
	font-size: 14px;
	font-weight: 500;
	color: #fff;
	text-align: center;
	margin-top: 10px;
}

/* Invalid state message */
.card-invalid {
	font-size: 13px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.9);
	margin-top: 8px;
	text-align: center;
}
#contents .card-formula.card-formula--white{
	color: #fff;
	font-size: 16px;
	line-height: 1.5;
	text-align: left;
	font-weight: 400;
	margin-top: 16px;
}

#contents .card-note {
	font-size: 13px;
	color: #4A4A4A;
	line-height: 1.38;
	text-align: center;
}

/* CTA */
.roi-simulator__cta {
	text-align: center;
}

.roi-simulator__cta a {
	display: inline-block;
	background: #121212;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	padding: 18px 24px 20px;
	border-radius: 50px;
	text-decoration: none;
	line-height: 1.4;
	transition: opacity 0.2s;
	width: 100%;
	box-sizing: border-box;
	text-align: center;
}

.roi-simulator__cta a:hover {
	opacity: 0.8;
}

/* Disclaimer */
.roi-simulator__note {
	text-align: center;
	font-size: 14px;
	margin-top: 28px;
	line-height: 1.6;
}

/* Input supplement note */
.roi-input-note {
	font-size: 14px;
	font-weight: 400;
	color: #000;
	margin-bottom: 8px;
	line-height: 1.5;
}

/* Plan display */
.roi-plan-display {
	font-size: 15px;
	font-weight: 400;
	color: #000;
	background: #f9f1f1;
	border-radius: 3px;
	padding: 9px 12px;
	margin-top: 10px;
	line-height: 1.4;
}

/* Demo state — ba values and saving value start gray, animate to normal on interact */
.roi-simulator__results.is-demo .roi-ba__value {
	color: #ccc;
}

.roi-simulator__results.is-demo .roi-saving__value {
	color: #ccc;
}


/* =========================================
   SP — 768px以下
   ========================================= */
@media screen and (max-width: 768px) {

	.roi-simulator {
		padding: 8% 0;
		margin-bottom: 40px;
	}
	.roi-simulator__inner{
		padding: 0 5%;
	}
	.roi-simulator__heading{
		margin-bottom: 3%;
	}
	.roi-simulator__heading h2 {
		font-size: 22px;
	}
	.roi-simulator__lead {
		font-size: 14px;
		margin-bottom: 5%;
	}

	.roi-simulator__body {
		flex-direction: column;
		gap: 20px;
	}

	.roi-simulator__inputs {
		width: 100%;
		padding: 8% 5%;
		box-sizing: border-box;
	}

	.roi-simulator__inputs h3 {
		font-size: 17px;
		margin-bottom: 5%;
	}

	.roi-input-group {
		margin-bottom: 6%;
		border-bottom: 1px solid #dadada;
		padding-bottom: 6%;
	}
	.roi-input-group.devices-number{
		border-bottom: none;
		padding-bottom: 0;
	}
	.roi-input-group .lead-ttl{
		margin-bottom: 0;
	}
	.roi-input-group.no-lead .no-lead-ttl{
		margin-bottom: 2%;
	}
	.roi-input-group label {
		font-size: 18px;
	}
	.roi-input-note {
		font-size: 12px;
		margin-bottom: 3%;
	}
.roi-cost-row input[type="number"]{
		width: 40%;
		padding: 2% 6% 3%;
		font-size: 16px;
}
	.roi-radio-group {
		gap: 5px;
		row-gap: 6px;
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 4px;
	}

	.roi-radio-group::-webkit-scrollbar {
		height: 3px;
	}

	.roi-radio-group::-webkit-scrollbar-track {
		background: #ebebeb;
		border-radius: 2px;
	}

	.roi-radio-group::-webkit-scrollbar-thumb {
		background: #ccc;
		border-radius: 2px;
	}

	.roi-radio-label span {
		padding: 7px 11px 8px;
		font-size: 13px;
	}

	.roi-plan-display {
		font-size: 13px;
	}

	.roi-simulator__results {
		width: 100%;
	}
	.roi-ba__item{
		padding: 8% 5% 0;
	}
.roi-ba__item.roi-ba__item-after {
    padding: 0 5% 8%;
}
.roi-saving__section{
	padding: 8% 5%;
}
	.roi-ba__value {
		font-size: 18px;
	}

	.roi-saving__value {
		font-size: 24px;
	}

	.roi-primary__value {
		font-size: 38px;
	}

	.roi-simulator__cta a {
		font-size: 14px;
	}
	.roi-results__card.is-primary{
		padding: 8% 5%;
	}
	#price #wrap #contents .roi-primary__label{
		line-height: 1;
		margin-bottom: 3%;
	}
	#price #wrap #contents .roi-primary__value{
		line-height: 1;
		margin-bottom: 3%;
	}
	#contents .card-formula.card-formula--white{
		margin-top: 0;
	}
	#price #wrap #contents .roi-simulator__note{
		margin-top: 3%;
	}

	.roi-simulator__note {
		text-align: left;
		padding-left: 1.25em;
		text-indent: -1.25em;
		line-height: 1.5;
	}












}