/* 料金シミュレーター — 入力パネル・ボタン・結果枠 */
.annex-price {
	--ap-accent: #1565c0;
	--ap-accent-hover: #0d47a1;
	--ap-accent-soft: #e3f2fd;
	--ap-panel-bg: #fafcfe;
	--ap-panel-edge: #b0bec5;
	--ap-panel-shadow: 0 4px 14px rgba(21, 101, 192, 0.08);
	--ap-radius: 10px;
	--ap-radius-sm: 6px;

	box-sizing: border-box;
	max-width: 100%;
	margin: 1.75em 0;
}

.annex-price *,
.annex-price *::before,
.annex-price *::after {
	box-sizing: inherit;
}

/* ----- 入力エリア（カード） ----- */
.annex-price-panel {
	position: relative;
	border: 1px solid var(--ap-panel-edge);
	border-radius: var(--ap-radius);
	background: var(--ap-panel-bg);
	box-shadow: var(--ap-panel-shadow);
	overflow: hidden;
}

.annex-price-panel-head {
	height: 4px;
	background: linear-gradient(
		90deg,
		var(--ap-accent) 0%,
		#42a5f5 50%,
		var(--ap-accent-soft) 100%
	);
}

.annex-price-panel-body {
	padding: 1.1rem 1.25rem 1.15rem;
}

.annex-price-panel-title {
	margin: 0 0 0.85rem;
	font-size: 0.95rem;
	font-weight: 700;
	color: #263238;
	letter-spacing: 0.02em;
}

.annex-price-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem 1rem;
	margin-bottom: 0.65rem;
}

.annex-price-label {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.45rem 0.5rem;
	margin: 0;
	font-weight: normal;
	font-size: 1rem;
	color: #37474f;
	line-height: 1.5;
}

.annex-price-input-wrap {
	display: inline-flex;
	align-items: stretch;
	padding: 2px;
	border-radius: var(--ap-radius-sm);
	background: linear-gradient(135deg, #90caf9 0%, var(--ap-accent) 100%);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.annex-price-nights {
	width: 5.25em;
	max-width: 100%;
	margin: 0;
	padding: 0.5em 0.55em;
	border: none;
	border-radius: calc(var(--ap-radius-sm) - 2px);
	font-size: 1.05em;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	color: #1a237e;
	background: #fff;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.15s ease, outline 0.15s ease;
}

.annex-price-nights:focus {
	outline: 2px solid var(--ap-accent);
	outline-offset: 2px;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06),
		0 0 0 3px rgba(21, 101, 192, 0.2);
}

.annex-price-nights::placeholder {
	color: #9e9e9e;
	font-weight: 500;
}

/* ----- 計算ボタン ----- */
.annex-price-submit.button,
.annex-price-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4em;
	margin: 0;
	padding: 0.55em 1.15em 0.55em 0.95em;
	border: none;
	border-radius: 999px;
	font-size: 0.98rem;
	font-weight: 700;
	line-height: 1.35;
	color: #fff;
	cursor: pointer;
	background: linear-gradient(
		165deg,
		#42a5f5 0%,
		var(--ap-accent) 45%,
		var(--ap-accent-hover) 100%
	);
	box-shadow: 0 3px 10px rgba(21, 101, 192, 0.35),
		inset 0 1px 0 rgba(255, 255, 255, 0.25);
	transition: transform 0.12s ease, box-shadow 0.12s ease,
		filter 0.12s ease;
}

.annex-price-submit:hover {
	filter: brightness(1.05);
	box-shadow: 0 5px 16px rgba(21, 101, 192, 0.42),
		inset 0 1px 0 rgba(255, 255, 255, 0.28);
	transform: translateY(-1px);
}

.annex-price-submit:active {
	transform: translateY(0);
	filter: brightness(0.97);
	box-shadow: 0 2px 6px rgba(21, 101, 192, 0.3);
}

.annex-price-submit:focus {
	outline: none;
	box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(21, 101, 192, 0.45),
		0 3px 10px rgba(21, 101, 192, 0.35);
}

.annex-price-submit:focus:not(:focus-visible) {
	box-shadow: 0 3px 10px rgba(21, 101, 192, 0.35),
		inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.annex-price-submit:focus-visible {
	box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(21, 101, 192, 0.45),
		0 3px 10px rgba(21, 101, 192, 0.35);
}

.annex-price-submit-icon {
	display: inline-block;
	width: 1em;
	height: 1em;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.95);
	opacity: 0.95;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
	position: relative;
	flex-shrink: 0;
}

.annex-price-submit-icon::before,
.annex-price-submit-icon::after {
	content: '';
	position: absolute;
	left: 50%;
	width: 0.42em;
	height: 2px;
	border-radius: 1px;
	background: var(--ap-accent);
	transform: translateX(-50%);
}

.annex-price-submit-icon::before {
	top: 36%;
}

.annex-price-submit-icon::after {
	top: 58%;
}

.annex-price-hint {
	margin: 0;
	padding: 0.55rem 0.65rem;
	font-size: 0.88rem;
	line-height: 1.45;
	color: #546e7a;
	background: rgba(227, 242, 253, 0.55);
	border-radius: var(--ap-radius-sm);
	border: 1px dashed #b3c9e0;
}

.annex-price-error {
	margin: 0.65rem 0 0;
	padding: 0.5rem 0.65rem;
	color: #b71c1c;
	font-size: 0.9rem;
	font-weight: 600;
	background: #ffebee;
	border-radius: var(--ap-radius-sm);
	border: 1px solid #ffcdd2;
}

/* ----- 結果エリア（枠） ----- */
.annex-price-result:not([hidden]) {
	display: block;
	margin-top: 1.35rem;
	padding: 1.15rem 1.2rem 1.25rem;
	border: 1px solid #cfd8dc;
	border-radius: var(--ap-radius);
	background: linear-gradient(180deg, #ffffff 0%, #f8fafb 100%);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.annex-price-title {
	margin: 0 0 0.85em;
	padding-bottom: 0.55em;
	font-size: 1.12em;
	font-weight: 700;
	color: #263238;
	border-bottom: 2px solid var(--ap-accent-soft);
}

.annex-price-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95em;
	border: 1px solid #cfd8dc;
	border-radius: var(--ap-radius-sm);
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.annex-price-table th,
.annex-price-table td {
	border: 1px solid #cfd8dc;
	padding: 0.65em 0.8em;
	vertical-align: middle;
}

.annex-price-table thead th {
	background: linear-gradient(180deg, #e8f4fc 0%, #dceaf5 100%);
	color: #263238;
	text-align: left;
	font-weight: 600;
}

.annex-price-table tbody td {
	background: #fff;
}

.annex-price-table tbody tr:nth-child(even) td {
	background: #f9fcfe;
}

.annex-price-col-plan {
	text-align: left;
}

.annex-price-table tbody td:not(.annex-price-col-plan) {
	text-align: left;
}

.annex-price-total-label {
	font-weight: 600;
	text-align: right;
	vertical-align: middle;
	background: #eceff1 !important;
	border-top: 2px solid #b0bec5 !important;
}

.annex-price-total-cell {
	background: #eceff1 !important;
	border-top: 2px solid #b0bec5 !important;
}

.annex-price-total-amount {
	color: #c62828;
	font-weight: 700;
	font-size: 1.05em;
}

.annex-price-avg {
	font-weight: normal;
	color: #37474f;
	white-space: nowrap;
}

@media (max-width: 480px) {
	.annex-price-panel-body {
		padding: 1rem;
	}

	.annex-price-controls {
		flex-direction: column;
		align-items: stretch;
	}

	.annex-price-label {
		justify-content: flex-start;
	}

	.annex-price-submit.button,
	.annex-price-submit {
		width: 100%;
		justify-content: center;
	}
}
