.p-form-product-register .wpcf7-spinner,
.p-form-product-register .wpcf7-response-output,
.p-form-product-register .screen-reader-response {
	display: none !important;
}

.wpcf7-not-valid-tip {
	font-size: 12px !important;
}

.p-contact {
	background-color: #f6f6f6;
}

.p-contact__content {
	margin-top: 50px;
}

.p-form {
	.p-form-label {
		font-size: 10px;
		font-weight: 700;
		color: #01a273;
	}

	.must {
		color: #01a273 !important;
		font-size: 10px !important;
	}

	.after-br {
		display: inline-block;
		margin-top: 6px;
	}

	& .p-block01 {
		.p-text {
			font-size: 16px;
			font-weight: 600;
			margin-bottom: 30px;
			line-height: 1.6;

			&.primary-color {
				color: #01a273;
			}

			&.notice-color {
				color: #cf0f0f;
			}
		}
	}

	& .p-wrap01 {
		&:not(:last-child) {
			margin-bottom: 30px;
		}

		>p {
			margin-top: 3px;
		}
	}

	& .p-wrap02 {
		display: flex;
		justify-content: start;
		align-items: center;
		width: 100%;
		gap: 15px;

		& .wpcf7-form-control-wrap:first-child {
			width: 40% !important;
		}

		& .wpcf7-form-control-wrap:nth-child(2) {
			width: 60% !important;
		}
	}

	& .p-wrap03 {
		width: fit-content;
		margin: 0 auto 30px;

		& .wpcf7-list-item-label {
			font-size: 14px;
		}

		& a {
			color: #01a273;
			border-bottom: 1px solid #01a273;
			margin: 3px;
		}
	}

	& .p-wrap04>p {
		display: flex;
		justify-content: start;
		align-items: center;
		width: 100%;
		gap: 10px;

		& .wpcf7-form-control-wrap {
			width: 50% !important;
		}

	}

	& .p-texts01 {
		margin-bottom: 7.5px;
	}

	& .p-text00 {
		font-size: 12px;
		color: #01a273;
		margin-bottom: 30px;
		text-align: center;
	}

	& .p-text01 {
		font-size: 14px;
		font-weight: 600;
		line-height: 1;

		& span {
			font-size: 13px;
			color: #8a8a8a;
		}
	}

	& .p-text02 {
		font-size: 12px;
		color: #8a8a8a;
		line-height: normal;
	}
}

& .p-input,
& .p-time,
& .p-date {
	border: 1px solid #9d9d9d;
	color: #737373;
	font-size: 14px;
	height: 30px;
	padding: 2px 2px 2px 3px;
	background-color: #fff;
	border-radius: 0 !important;
	cursor: pointer;
	width: 100%;

	&:focus {
		border-color: #01a273;
		outline: none;
	}
}

& .p-date {
	text-align: left;
	text-align-last: left;
}

& .p-textarea {
	border: 1px solid #9d9d9d;
	padding: 2px 2px 2px 3px;
	font-size: 14px;
	height: 250px;
	resize: vertical;

	&:focus {
		border-color: #01a273;
		outline: none;
	}

	&::-moz-placeholder {
		color: #737373;
		font-family: "Noto Sans JP", sans-serif;
		font-size: 14px;
	}

	&::placeholder {
		color: #737373;
		font-family: "Noto Sans JP", sans-serif;
		font-size: 14px;
	}
}

& .p-btn01 {
	background: #01a273;
	max-width: 250px;
	border-radius: 30px;
	width: 100%;
	gap: 0.75rem;
	padding: 1.25rem 0;
	border: none;
	font-size: 1rem;
	color: white;
	line-height: 1;
	letter-spacing: 0.05em;
	margin: 0 auto;
	display: block;
	font-weight: 600;
	transition: opacity .3s;
}

& .p-btn02 {
	background-color: #fff;
	border: none;
	border: 2px solid #01a273;
	border-radius: 30px;
	color: #01a273;
	display: block;
	font-weight: 700;
	line-height: 28.5px;
	margin-inline: auto;
	text-align: center;
	transition: background-color 0.3s, color 0.3s;
	font-size: 18px;
	height: 59px;
	width: 223px;
}

& .p-btn01:hover,
& .p-btn02:hover {
	opacity: .7;
}

& select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

& .p-acceptance {
	-webkit-appearance: auto;
	-moz-appearance: auto;
	appearance: auto;
	vertical-align: middle;
	width: auto;
	transform: scale(1.3);
}

& .p-hidden {
	display: none;
}

.wpcf7-submit:disabled {
	background-color: #999;
}


@media(max-width: 768px) {
	.p-contact__content {
		margin-top: 60px;
	}

	.p-form {
		& .p-block01 {
			margin-bottom: 20px;

			.p-text {
				font-size: 12px;
			}
		}

		& .p-wrap01 {
			&:not(:last-child) {
				margin-bottom: 20px;
			}

			>p {
				margin-top: 8px;
			}
		}

		& .p-wrap02>p {
			gap: 10px;
		}

		& .p-wrap03 {
			margin: 0 0 20px;
			width: 100%;

			& .wpcf7-list-item-label {
				font-size: 11px;
			}
		}

		& .p-wrap04 {
			gap: 10px;
		}

		& .p-text01 {
			font-size: 14px;
		}

		& .p-wrap01,
		& .p-wrap04 > p {
			overflow: hidden;
		}

		& .p-input,
		& .p-time,
		& .p-date {
			font-size: 16px;
			width: calc(100% / 0.875);
			height: calc(30px / 0.875);
			transform: scale(0.875);
			transform-origin: left top;
			margin-bottom: calc(30px - 30px / 0.875);
		}

		& .p-textarea {
			font-size: 16px;
			width: calc(100% / 0.875);
			height: calc(150px / 0.875);
			transform: scale(0.875);
			transform-origin: left top;
			margin-bottom: calc(150px - 150px / 0.875);

			&::-moz-placeholder {
				font-size: 16px;
			}

			&::placeholder {
				font-size: 16px;
			}

			&:hover {
				outline: solid 2px #01a273;
				outline-color: #01a273;
				outline-offset: -1px;
			}
		}

		& .p-btn01 {
			font-size: 16px;
			font-weight: 700;
			margin-top: 25px;
			margin-bottom: 15px;
			padding: 17px 0;
		}

		& .p-btn02 {
			font-size: 14px;
			height: 50px;
			width: 180px;
		}
	}
}


#time-slot-note {
	margin-top: 5px;
	font-size: 12px;
	color: #cf0f0f;
}

/* ============================================================
 * モーダルスタイリング
 * ============================================================ */
.p-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: none;
	justify-content: center;
	align-items: center;
	z-index: 10000;
}

.p-modal.is-open {
	display: flex;
}

.p-modal__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(4px);
}

.p-modal__content {
	position: relative;
	width: 90%;
	max-width: 800px;
	max-height: 80vh;
	background-color: #fff;
	border-radius: 8px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.p-modal__close {
	position: absolute;
	top: 15px;
	right: 15px;
	width: 30px;
	height: 30px;
	background: none;
	border: none;
	cursor: pointer;
	z-index: 10;
	display: flex;
	justify-content: center;
	align-items: center;
}

.p-modal__close span {
	position: absolute;
	width: 20px;
	height: 2px;
	background-color: #333;
	transition: background-color 0.3s;
}

.p-modal__close span:first-child {
	transform: rotate(45deg);
}

.p-modal__close span:last-child {
	transform: rotate(-45deg);
}

.p-modal__close:hover span {
	background-color: #01a273;
}

.p-modal__body {
	padding: 40px 30px;
	overflow-y: auto;
	font-size: 15px;
	line-height: 1.8;
	color: #333;
}

.p-modal__body h2 {
	font-size: 1.25rem;
	margin-top: 2rem;
	margin-bottom: 1rem;
	color: #01a273;
	border-left: 4px solid #01a273;
	padding-left: 10px;
}

.p-modal__body h2:first-child,
.p-modal__body > *:first-child h2:first-child {
	margin-top: 0;
}

.p-modal__body p {
	margin-bottom: 1rem;
}

.p-modal__body ol {
	margin-left: 1.5rem;
	margin-bottom: 1.5rem;
}

.p-modal__body li {
	margin-bottom: 0.5rem;
}

.p-modal__loader {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 200px;
}

.p-modal__spinner {
	width: 40px;
	height: 40px;
	border: 3px solid rgba(0, 162, 115, 0.3);
	border-radius: 50%;
	border-top-color: #01a273;
	animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

.p-modal__header {
	padding: 18px 30px;
	border-bottom: 1px solid #eee;
	flex-shrink: 0;
}

.p-modal__title {
	margin: 0;
	font-size: 1.15rem;
	font-weight: bold;
	color: #333;
}

@media (max-width: 768px) {
	.p-modal__content {
		width: 90%;
		max-height: 60vh;
	}

	.p-modal__header {
		padding: 14px 15px;
	}

	.p-modal__title {
		font-size: 1rem;
	}

	.p-modal__body {
		padding: 20px 15px;
		font-size: 13px;
	}

	.p-modal__body h2 {
		font-size: 1.1rem;
		margin-top: 1.5rem;
		margin-bottom: 0.8rem;
	}
}