/* =====================================================================
	= CONTACT PAGE
=====================================================================*/
.contact_lead {
		display: block;
		height: auto;
		margin-bottom: 4em;
	}

.wpcf7-form {
	max-width: 100%;
	margin-top: 0;
}

.wpcf7-form::after {
	content: "";
	display: block;
	clear: both;
}

.wpcf7-form p {
	display: flex;
	justify-content: flex-start;
	align-items: flex-start;
	width: 100%;
}

.wpcf7-form p + p {
	margin-top: 3em;
}

.wpcf7-form p span {
	position: relative;
	padding: 0.5em 0;
}

.wpcf7-form p span .asterisk {
	display: inline-block;
	position: absolute;
	top: 1.3em;
	font-weight: 400;
    font-size: 50%;
}

.wpcf7-form p span.cf7msm-ro:empty::before {
	display: block;
	content:'未入力';
	color: #000;
}

.wpcf7-form-control-wrap {
	line-height: 0;
	vertical-align: bottom;
}

.wpcf7-form p span:first-child {
	flex: 0 0 11em;
}

.wpcf7-form p span:last-child {
	flex: 1 1 auto;
}

.contact .wpcf7-form p span:last-child {
	padding: 0;
}

.wpcf7-form .wpcf7-text,
.wpcf7-form .wpcf7-textarea {
	width: 100%;
	padding: 0.5em 1em;
	border: var(--border);
	border-radius: 0 !important;
	background: var(--bg-color) !important;
}

.wpcf7-form .wpcf7-submit,
.wpcf7-form .wpcf7-previous {
	width: calc(16px * 15);
	height: 45px;/*←デザイン通り*/
	margin-top: 3em;
	color: #fff;
	line-height: 1;
	background: #000;
	border: none;
	outline: none;
}

.wpcf7-form .wpcf7-submit:hover,
.wpcf7-form .wpcf7-previous:hover {
	background: rgba(0,0,0,0.5);
	cursor: pointer;
}

.wpcf7-form .wpcf7-submit.notyet {
	background: rgba(0,0,0,0.125);
}

.wpcf7-form .wpcf7-submit.notyet:hover {
	background: rgba(0,0,0,0.5);
	cursor: default;
}

.wpcf7-form .wpcf7-previous {
	margin-right: var(--gt);
}

.wpcf7-form .btns {
	display: flex;
	justify-content: flex-end;
}

.wpcf7-form .btns-confirm {
	justify-content: flex-end;
	gap: var(--unit);
}

.wpcf7-form .wpcf7-spinner {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	background: rgba(255,255,255,0.5);
	z-index: 9999;
	display: flex;
	justify-content: center;
	align-items: center;
	border: 0;
	border-radius: 0;
	opacity: 1;
}

.wpcf7-spinner::before {
	position: relative;
	top: auto;
	left: auto;
	content: '';
	display: inline-block;
	width: 48px;
	height: 12px;
	background: url('../img/loading.gif') 0 0 no-repeat;
	background-size: 100%;
	border: 0;
	border-radius: 0;
	animation: none;
	transform-origin: unset;
	opacity: 1;
}

.contact .btns,
.contact .btns p {
	display: inline-block;
}

.contact .btns {
	float: right;
}

.wpcf7-not-valid-tip {
	display: block;
	margin-top: 0.5em;
    font-size: var(--base-txt);
	line-height: 2.0;
}

.wpcf7-submit.invalid { opacity: 0.4 }

.wpcf7-form.invalid .wpcf7-response-output {
	float: right;
	width: 100%;
	text-align: right;
	display: block;
	margin: 1em 0 0 !important;
	padding: 1em 0 1em var(--col1gt) !important;
	color: var(--red);
	line-height: 1;
	border: 0 !important;
	outline: none;
}

.wpcf7-not-valid-tip,
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
	color: var(--red);
}

@media screen and (max-width: 960px) {
	.contact_lead {
		display: block;
		height: auto;
		margin-bottom: 2em;
	}

	.wpcf7-form p {
		display: block;
		margin-bottom: 1.5em;
	}
	.wpcf7-form p + p {
		margin-top: 0;
	}

	.wpcf7-form p span {
		display: block;
		padding: 0 0 0.5em;
	}

	.wpcf7-form p span .asterisk {
		display: inline-block;
		position: absolute;
		top: 0.5em;
		font-weight: 400;
		font-size: 50%;
	}

	.wpcf7-form p span.cf7msm-ro:empty::before {
		display: block;
		content:'未入力';
		color: #000;
	}

	.wpcf7-form .btns > p {
		margin-bottom: 0;
	}

	.wpcf7-form .wpcf7-submit, .wpcf7-form .wpcf7-previous {
		margin-top: 2em;
		width: calc(16px * 13);
		height: 45px;/*←デザイン通り*/
	}
	.wpcf7-form.invalid .wpcf7-response-output {
		display: inline-block;
		margin: 0.5em 0 0 !important;
		padding: 0 0 !important;
		line-height: 2;
	}
}


