@charset "UTF-8";
/* =========================================================
   CONTACT（page-contact.php／Contact Form 7）
   数値は Figma（1440px 幅）の座標を var(--u) 倍しています。
========================================================= */

.p-contact {
	width: calc(var(--u) * 960);
	margin: 0 auto;
	padding: calc(var(--u) * 137) 0 calc(var(--u) * 80);
}

.p-contact__intro {
	margin-bottom: calc(var(--u) * 48);
	font-size: calc(var(--u) * 16);
	line-height: 2;
	text-align: center;
}

.p-contact__notice {
	padding: calc(var(--u) * 24);
	border: 1px dashed #a22012;
	color: #a22012;
	text-align: center;
}

/* ----- 入力欄 ----- */
.c-form {
	color: #3c3c3c;
	font-size: calc(var(--u) * 16);
}

.c-form__row {
	display: flex;
	align-items: center;
	gap: calc(var(--u) * 120);
	padding: calc(var(--u) * 20);
	border-top: 1px solid #9f9f9f;
}

.c-form__row:last-child {
	border-bottom: 1px solid #9f9f9f;
}

.c-form__label {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	width: calc(var(--u) * 200);
	font-weight: 700;
	line-height: 1.4;
}

.c-form__req {
	width: calc(var(--u) * 40);
	margin-left: auto;
	color: #a22012;
	text-align: center;
}

.c-form__field {
	flex: 1;
	min-width: 0;
}

.c-form__field .wpcf7-form-control-wrap {
	display: block;
}

.c-form input[type="text"],
.c-form input[type="email"],
.c-form input[type="tel"],
.c-form textarea {
	display: block;
	width: 100%;
	height: calc(var(--u) * 48);
	padding: calc(var(--u) * 12) calc(var(--u) * 20);
	border: 0;
	border-radius: 0;
	background: #fff;
	box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.2);
	color: #3c3c3c;
	font: inherit;
	line-height: 1.5;
	appearance: none;
}

.c-form textarea {
	height: calc(var(--u) * 160);
	resize: vertical;
}

.c-form ::placeholder {
	color: #d5d5d5;
	opacity: 1;
}

.c-form input:focus,
.c-form textarea:focus {
	outline: 2px solid var(--c-base);
	outline-offset: 0;
}

/* エラー表示 */
.c-form .wpcf7-not-valid-tip {
	margin-top: calc(var(--u) * 6);
	color: #a22012;
	font-size: calc(var(--u) * 14);
}

.c-form .wpcf7-not-valid {
	box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.2), 0 0 0 1px #a22012;
}

/* ----- プライバシーポリシーへの同意 ----- */
.c-form__agree {
	padding: calc(var(--u) * 20);
	color: #3c3c3c;
	font-size: calc(var(--u) * 16);
	font-weight: 700;
}

.c-form__agree .wpcf7-list-item {
	margin: 0;
}

.c-form__agree label {
	display: inline-flex;
	align-items: center;
	gap: calc(var(--u) * 8);
	cursor: pointer;
}

.c-form__agree input[type="checkbox"] {
	position: relative;
	flex-shrink: 0;
	width: calc(var(--u) * 20);
	height: calc(var(--u) * 20);
	margin: 0;
	border: 2px solid #3c3c3c;
	border-radius: 0;
	background: #d9d9d9;
	appearance: none;
	cursor: pointer;
}

.c-form__agree input[type="checkbox"]:checked {
	background: var(--c-base);
	border-color: var(--c-base);
}

.c-form__agree input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	top: 12%;
	left: 32%;
	width: 30%;
	height: 55%;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	rotate: 45deg;
}

.c-form__agree a {
	color: #1a7cdd;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

/* ----- 送信ボタン ----- */
.c-form__submit {
	position: relative;
	display: flex;
	justify-content: center;
	margin-top: calc(var(--u) * 40);
}

.c-form__submit .wpcf7-submit {
	width: calc(var(--u) * 420);
	height: calc(var(--u) * 63);
	border: 0;
	border-radius: calc(var(--u) * 10);
	background: #08213a;
	box-shadow: 0 2px 6px 1px rgba(0, 0, 0, 0.53);
	color: #fff;
	font-family: var(--ff-footer);
	font-size: calc(var(--u) * 16);
	font-weight: 800;
	cursor: pointer;
	transition: opacity 0.2s;
}

.c-form__submit .wpcf7-submit:hover {
	opacity: 0.85;
}

/* 同意にチェックするまで押せない（CF7 の標準動作） */
.c-form__submit .wpcf7-submit:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.c-form__submit .wpcf7-spinner {
	position: absolute;
	top: 50%;
	left: calc(50% + var(--u) * 222);
	margin: 0;
	translate: 0 -50%;
}

/* 送信結果のメッセージ */
.c-form-wrap .wpcf7-response-output {
	margin: calc(var(--u) * 32) 0 0;
	padding: calc(var(--u) * 16);
	font-size: calc(var(--u) * 15);
	text-align: center;
}

/* ----- 送信完了（page-thanks.php） ----- */
.p-contact--thanks {
	padding: calc(var(--u) * 117) 0 calc(var(--u) * 129);
	color: #3c3c3c;
}

.p-contact-thanks__title {
	padding-bottom: calc(var(--u) * 20);
	border-bottom: 1px solid #9f9f9f;
	font-size: calc(var(--u) * 24);
	font-weight: 400;
	line-height: calc(var(--u) * 40);
}

.p-contact-thanks__text {
	margin-top: calc(var(--u) * 20);
	font-size: calc(var(--u) * 16);
	line-height: 2;
}

/* ----- RECRUIT（Figma：このページは RECRUIT の後ろが薄い水色） ----- */
.p-contact-page__recruit {
	background: var(--c-bg-light);
}

.p-contact-page .p-top-recruit {
	padding-top: calc(var(--u) * 163);
	padding-bottom: calc(var(--u) * 238);
}

/* =========================================================
   SP・タブレット（〜1023px）
========================================================= */
@media (max-width: 1023px) {
	.p-contact {
		width: auto;
		padding: 48px 20px 64px;
	}

	.c-form {
		font-size: 15px;
	}

	.c-form__row {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		padding: 16px 0;
	}

	.c-form__label {
		width: auto;
		gap: 12px;
	}

	.c-form__req {
		width: auto;
		margin-left: 0;
		font-size: 13px;
	}

	.c-form input[type="text"],
	.c-form input[type="email"],
	.c-form input[type="tel"],
	.c-form textarea {
		height: 48px;
		padding: 12px 16px;
		font-size: 16px; /* iOS で入力時に拡大されないよう 16px 以上 */
	}

	.c-form textarea {
		height: 180px;
	}

	.c-form .wpcf7-not-valid-tip {
		font-size: 13px;
	}

	.c-form__agree {
		padding: 20px 0;
		font-size: 15px;
	}

	.c-form__agree input[type="checkbox"] {
		width: 20px;
		height: 20px;
	}

	.c-form__submit {
		margin-top: 24px;
	}

	.c-form__submit .wpcf7-submit {
		width: 100%;
		height: 56px;
		border-radius: 10px;
		font-size: 16px;
	}

	.c-form__submit .wpcf7-spinner {
		left: auto;
		right: 12px;
	}

	.p-contact--thanks {
		padding: 48px 20px 64px;
	}

	.p-contact-thanks__title {
		padding-bottom: 14px;
		font-size: 18px;
		line-height: 1.6;
	}

	.p-contact-thanks__text {
		margin-top: 16px;
		font-size: 15px;
	}

	.p-contact-thanks__text br {
		display: none;
	}

	.p-contact-page .p-top-recruit {
		padding-top: 64px;
		padding-bottom: 170px;
	}
}
