label {
	cursor: pointer;
}

input.error,
select.error,
textarea.error {
	border-color: red !important;
	background-color: #fee !important;
}

div.error {
	color: red;
	font-weight: bold;
}

.wrap {
	width: 100%;
	max-width: 640px;
	margin: 0px auto;
}

select.wpcf7-form-control.wpcf7-select {
	width: 100%;
	padding: 8px 15px;
	margin-right: 10px;
	margin-top: 10px;
	border: 2px solid #D9E5FF;
	border-radius: 3px;
	background-color: #D9E5FF;
	cursor: pointer;
}

select.wpcf7-form-control.wpcf7-select optgroup {
	font-style: normal;
	/* イタリックを解除 */
}

select#cast-id.wpcf7-form-control.wpcf7-select optgroup {
	color: #ffc604;
	/* optgroupの文字色を変更 */
	text-shadow: -1px -1px 0 #555, 1px -1px 0 #555, -1px 1px 0 #555, 1px 1px 0 #555;
	/* フォントに縁取りを追加 */
}

select.wpcf7-form-control.wpcf7-select optgroup option {
	color: #333;
	/* optionの文字色を変更 */
	text-shadow: none;
	/* optgroupの文字色を変更 */
}

select.wpcf7-form-control.wpcf7-select option {
	padding: 0;
}

.pika-single {
	background: #d9e5ff;
	border: 1px solid #0060df;
	color: #333;
}

.pika-lendar {
	background: #d9e5ff;
}

.pika-title {
	color: #333;
}

.pika-prev,
.pika-next {
	color: #333;
}

.pika-table th {
	color: #333;
}

.pika-table td .pika-button {
	color: #333;
	font-size: 1.2em;
}

.pika-button {
	line-height: 1.6 !important;
}

.pika-lendar th:first-child,
.pika-lendar td:first-child .pika-button {
	color: #f00;
}

.pika-lendar th:last-child,
.pika-lendar td:last-child .pika-button {
	color: #00f;
}

#submit-confirm {
	display: block;
	margin: 0 auto;
	width: 100%;
	max-width: 640px;
	background: #666699;
	color: #fff;
	border: none;
	padding: 1em;
	border-radius: 8px;
	font-weight: bold;
	cursor: pointer;
	font-size: 16px;
}

#submit-confirm:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.sticky-button-container {
	display: none;
	position: fixed;
	bottom: -100px;
	/* 初期位置を画面外に */
	left: 0;
	right: 0;
	background: rgba(245, 245, 250, 0.97);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.15);
	padding: 16px;
	z-index: 1000;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	/* イージング調整 */
}

.sticky-button-container.show {
	bottom: 0;
	/* 表示位置 */
}

.total-price-display {
	text-align: center;
	margin-bottom: 12px;
	line-height: 1.3;
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
}

.total-price-display .price-amount,
.total-price-display .price-note {
	margin: 0 8px;
}

.price-amount {
	font-size: 18px;
	font-weight: bold;
	color: #666699;
}

.price-note {
	font-size: 12px;
	color: #666;
	margin-top: 4px;
}

.price-display {
	background: #f8f8f8;
	padding: 12px;
	border-radius: 4px;
	margin-top: 8px;
	text-align: right;
}

.price-row {
	font-size: 14px;
	color: #666;
}

.total-price {
	font-weight: bold;
	color: #666699;
	font-size: 1.6em;
	margin-right: 5px;
}

.wrap form p {
	margin: 0;
}

input.wpcf7-form-control.wpcf7-text,
select.wpcf7-form-control.wpcf7-select,
textarea.wpcf7-form-control.wpcf7-textarea {
	margin-top: 0;
	margin-bottom: 16px;
}

.time-selection {
	display: flex;
	align-items: center;
}

.time-label {
	margin-right: 10px;
}

.flex-container {
	display: flex;
	align-items: flex-start;
	margin-bottom: 8px;
}

.flex-item {
	flex: 1;
}

.flex-item:last-child {
	margin-right: 0;
}

.heart-icon {
	font-size: 24px;
	margin: 30px 8px 0;
	align-self: center;
	animation: heartBeat 1.5s ease infinite;
	color: #ff69b4;
}

.course-selection-container {
	margin-bottom: 16px;
}

.pref-selection-container {
	margin-bottom: 16px;
}

.reservation-date-container {
	margin-bottom: 16px;
}

.appointment-time-container {
	margin-bottom: 16px;
}

.payment-method-container {
	margin-bottom: 16px;
}

@keyframes heartBeat {
	0% {
		transform: scale(1);
		opacity: 0.8;
	}

	10% {
		transform: scale(1.3);
		opacity: 1;
	}

	20% {
		transform: scale(1);
		opacity: 0.8;
	}

	30% {
		transform: scale(1.2);
		opacity: 1;
	}

	40% {
		transform: scale(1);
		opacity: 0.8;
	}

	100% {
		transform: scale(1);
		opacity: 0.8;
	}
}

.heart-pulse-once {
	animation: heartBeatOnce 0.6s ease forwards;
}

@keyframes heartBeatOnce {
	0% {
		transform: scale(1);
	}

	50% {
		transform: scale(2);
	}

	100% {
		transform: scale(1);
	}
}

.mr8 {
	margin-right: 8px;
}

.mb16 {
	margin-bottom: 16px !important;
}

.note {
	padding: 12px;
	margin-top: 0px !important;
	margin-bottom: 8px !important;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fafafa;
	font-size: 12px;
}

#yoyakuForm p.sub {
	font-size: 1em;
}

input[type="radio"][disabled]+.wpcf7-list-item-label {
	color: #999;
	cursor: not-allowed;
}

.wpcf7-list-item {
	margin-left: 0;
}

.pika-single .pika-table td.is-today .pika-button {
	background-color: #ffeb3b;
	color: #000;
	font-weight: bold;
}

.pika-single .pika-table td.is-selected .pika-button {
	background-color: #ffcc99; /* 変更後の背景色 */
	color: #000;
	font-weight: bold;
	box-shadow: none;
}

.course-duration-container {
	display: flex;
	gap: 12px;
}

.course-duration-item {
	flex: 1;
	max-width: 150px;
	min-width: 150px;
	/* flexboxでの収縮を許可 */
}

.course-duration-item .mds {
	font-size: 14px;
	margin-bottom: 8px;
	white-space: nowrap;
	/* タイトルを1行に */
}

.course-duration-item select {
	width: 100%;
	min-width: 0;
	/* flexboxでの収縮を許可 */
}

.free-bubble {
	position: absolute;
	top: -25px;
	left: 40%;
	transform: translateX(-50%);
	background: #ff69b4;
	color: #fff;
	padding: 5px 10px;
	border-radius: 10px;
	font-size: 12px;
	font-weight: bold;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
	animation: fadeIn 0.5s ease-in-out;
}

/* モーダルのスタイル */
.modal {
	display: none;
	position: fixed;
	z-index: 1;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgb(0,0,0);
	background-color: rgba(0,0,0,0.4);
}

.modal-content {
	background-color: #fefefe;
	margin: 15% auto;
	padding: 20px;
	border: 1px solid #888;
	width: 80%;
	max-width: 350px;
	border-radius: 4px;
}

.close {
	color: #aaa;
	float: right;
	font-size: 28px;
	font-weight: bold;
}

.close:hover,
.close:focus {
	color: black;
	text-decoration: none;
	cursor: pointer;
}

@keyframes fadeIn {
	0% {
		opacity: 0;
		transform: scale(0.8);
	}
	100% {
		opacity: 1;
		transform: scale(1);
	}
}

@media (max-width: 768px) {
	.total-price-display {
		flex-direction: column;
	}

	.price-amount {
		font-size: 16px;
	}

	.price-note {
		font-size: 12px;
	}

	.sticky-button-container {
		padding: 12px;
	}

	#submit-confirm {
		max-width: 100%;
		font-size: 15px;
		padding: 0.8em;
	}

	/* フォームの最後の要素にマージンを追加してボタンと重ならないようにする */
	.wrap form {
		margin-bottom: 32px;
	}

	#fullwide {
		margin-bottom: 50px;
	}

	#primary {
		margin-top: 10px;
	}

	#yoyakuForm,
	#sendMailForm {
		padding: 0;
		border: none;
	}

	.pika-single {
		left: 10px !important;
		right: 10px !important;
	}

	.pika-lendar {
		width: 95% !important;
	}

	h1.entry-title {
		font-size: 32px;
		text-align: center;
		letter-spacing: 2px;
	}

	.course-duration-container {
		gap: 8px;
		/* モバイルでは間隔をより狭く */
	}

	.course-duration-item .mds {
		font-size: 12px;
		/* モバイルではフォントサイズをさらに小さく */
		padding: 4px;
	}

	.time-selection {
		flex-wrap: nowrap;
		/* 改行を防止 */
	}

	.modal-content {
		margin: 30% auto;
	}
}

.coupon-input-wrapper {
	display: flex;
	align-items: center;
	margin-bottom: 16px; /* ボタンと入力欄の間隔を調整 */
}

.coupon-check-button {
	margin-left: 10px;
	padding: 8px 16px;
	background-color: #666699;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	align-self: flex-start; /* ボタンの位置を入力欄に合わせる */
	line-height: 1.6;
}

.coupon-check-button:hover {
	background-color: #555588;
}

.coupon-code-container .coupon-applied {
	color: green;
	font-weight: bold;
	background-color: #e0ffe0;
	padding: 10px;
	border-radius: 5px;
	margin-bottom: 16px;
}

.discount {
	color: red;
	white-space: nowrap;
}
