@charset "utf-8";

.simulation-wrap {
	padding-top: 70px;
	padding-bottom: 0;
	background-color: #fff;
}

.simulation-container {
	max-width: 800px;
	margin: 0 auto;
	background-color: #fff;
	padding: 60px 40px;
	box-sizing: border-box;
}

.page-title-area {
	text-align: center;
	margin-bottom: 40px;
	border-bottom: 2px solid #5d0c75;
	padding-bottom: 20px;
}

.page-title-area h1 {
	color: #5d0c75;
	font-size: 2rem;
	margin: 0 0 10px 0;
	font-weight: bold;
}

.calc-section {
	margin-bottom: 30px;
}

.section-title {
	font-size: 1.2rem;
	font-weight: bold;
	color: #5d0c75;
	background: rgba(217, 217, 217, 0.25);
	padding: 10px 15px;
	border-left: 5px solid #5d0c75;
	margin-bottom: 20px;
}

.service-input {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 60px;
	border-bottom: 1px solid #eee;
}

.calc-section:last-of-type .service-input {
	border-bottom: none;
}

.service-input > label {
	font-weight: bold;
	flex: 1;
	display: block;
}

.input-control {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}

.input-control > div {
	display: flex;
	align-items: center;
	white-space: nowrap;
}

input[type="radio"] {
	width: 1rem;
	height: 1rem;
	cursor: pointer;
	accent-color: #5d0c75;
	margin: 0;
	vertical-align: middle;
}

input[type="radio"]:disabled {
	cursor: default;
}

.radio-label {
	font-weight: normal !important;
	margin-left: 5px;
	margin-bottom: 0 !important;
	cursor: pointer;
	display: inline-block;
	line-height: 1;
}

input[type="radio"]:disabled + .radio-label {
	cursor: default;
}

#serviceB_no {
	margin-left: 20px;
}

select {
	padding: 8px 12px;
	border: 1px solid #ccc !important;
	border-radius: 4px;
	font-size: 1rem;
	min-width: 200px;
	background-color: #fff;
	-webkit-appearance: menulist;
	-moz-appearance: menulist;
	appearance: menulist;
}

.count-display {
	font-weight: normal;
	color: inherit;
}

.result-board {
	margin-top: 40px;
	background-color: rgba(217, 217, 217, 0.25);
	padding: 30px;
	border-radius: 8px;
}

.result-item, .total-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
}

.result-item span {
	font-size: 1.4rem;
	font-weight: bold;
}

.total-item {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 2px solid #5d0c75;
	color: #5d0c75;
}

.total-item label {
	font-size: 1.4rem;
	font-weight: bold;
	word-break: keep-all;
	overflow-wrap: anywhere;
	padding-right: 10px;
}

.total-item span {
	font-size: 2.2rem;
	font-weight: bold;
	white-space: nowrap;
}

.notes {
	font-size: 0.85rem;
	text-align: right;
	margin-top: 10px;
	color: #666;
}

.calc-section:last-of-type .notes {
	text-align: left;
	padding: 0 60px 15px;
  border-bottom: 1px solid #eee;
}

.button-container {
	display: flex;
	gap: 20px;
	margin-top: 40px;
}

.btn-primary, .btn-secondary {
	flex: 1;
	text-align: center;
	padding: 1rem;
	border-radius: 30px;
	text-decoration: none;
	font-weight: bold;
	transition: 0.4s;
}

.btn-primary {
	background-color: #5d0c75;
	color: #fff !important;
	border: solid 1px #5d0c75;
}

.btn-primary:hover {
	background-color: #fff;
	color: #5d0c75 !important;
}

.btn-secondary {
	color: #5d0c75;
	border: solid 1px #5d0c75;
}

.btn-secondary:hover {
	background-color: #5d0c75;
	color: #fff !important;
}

@media only screen and (max-width: 754px) {
	.simulation-wrap {
		padding-top: 80px;
	}
	.simulation-container {
		margin: 0;
		padding: 30px 20px 40px;
	}
	.service-input {
		padding: 15px 30px;
		flex-direction: column;
		align-items: flex-start;
	}
	.service-input > label {
		margin-bottom: 10px;
		width: 100%;
	}
	.input-control {
		width: 100%;
		justify-content: flex-start;
	}
	select {
		width: 100%;
	}
	.button-container {
		flex-direction: column;
		gap: 15px;
	}
	.result-item span {
		font-size: 1.2rem;
	}
	.total-item {
		align-items: flex-end;
	}
	.total-item span {
		font-size: 1.6rem;
	}
	.notes {
    text-align: left;
	}
	.calc-section:last-of-type .notes {
		padding: 0 30px 15px;
	}
}

@media only screen and (max-width: 400px) {
	.total-item {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
		padding-top: 15px;
	}
	.total-item label {
		font-size: 1.1rem;
		padding-right: 0;
	}
	.total-item span {
		align-self: flex-end;
		width: 100%;
		text-align: right;
	}
}