@charset "UTF-8";
/* デザインはフォームカードのみ。MV は他の下層ページと共通の構成で新規に用意。
   カード自体の余白（左右100 / 下100）と各フィールドの gap（13 / 37 など）は
   Figma の実測値そのまま。カード上端の余白だけは絶対配置で失われていたため、
   下端・左右と揃えて 100px にしている。 */

.contact-mv {
	padding-block: 70px;
}

.contact-mv__title {
	font-size: var(--fs-h2);
	font-weight: 700;
	line-height: 1.5;
	color: #fff;
	font-feature-settings: "palt" 1;
	font-family: var(--font-display);
}

/* .search-mv__lead と同じ見た目に揃える */
.contact-mv__lead {
	margin-top: 22px;
	font-size: var(--fs-lead);
	line-height: 1.7;
	color: #fff;
	opacity: 0.6;
}

.contact-section {
	/* PC: グレー帯の中で、カード上下の余白は実測 78 / 94 */
	padding-top: 78px;
	padding-bottom: 94px;
}

.contact-card {
	max-width: 1200px;
	margin-inline: auto;
	padding: 76px 100px 100px;
	background: #fff;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-card);
}

.contact-card__intro {
	display: flex;
	flex-direction: column;
	gap: 30px;
	max-width: 1000px;
	margin-inline: auto;
	margin-bottom: 94px;
}

.contact-card__heading {
	font-size: 20px;
	font-weight: 500;
	color: var(--c-primary);
}

.contact-card__lead {
	font-size: var(--fs-lead);
	line-height: 1.7;
	color: var(--c-heading);
}

/* --------------------------------------------------------------------------
   Contact Form 7
   -------------------------------------------------------------------------- */

.contact-card .wpcf7-form {
	max-width: 1000px;
	margin-inline: auto;
}

.contact-card .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
}

.contact-card .wpcf7-response-output {
	margin: 0 0 30px;
	padding: 16px 20px;
	font-size: 14px;
	line-height: 1.6;
	text-align: center;
	color: var(--c-heading);
	background: var(--c-bg-gray);
	border: 1px solid var(--c-border);
	border-radius: 8px;
}

.contact-card .wpcf7-form.sent .wpcf7-response-output {
	color: #0a7a4a;
	background: #eafaf1;
	border-color: #b7ebd0;
}

.contact-card .wpcf7-form.invalid .wpcf7-response-output,
.contact-card .wpcf7-form.unaccepted .wpcf7-response-output,
.contact-card .wpcf7-form.failed .wpcf7-response-output {
	color: #d7453a;
	background: #fdecea;
	border-color: #f6c8c3;
}

.contact-form__fields {
	display: flex;
	flex-direction: column;
	gap: 37px;
}

.contact-form__group {
	display: flex;
	flex-direction: column;
	gap: 13px;
	width: 100%;
}

.contact-form__label {
	display: flex;
	align-items: flex-end;
	gap: 6px;
	font-size: 16px;
	font-weight: 700;
	line-height: normal;
	color: var(--c-heading);
}

.contact-form__label--lg {
	font-size: 18px;
}

.contact-form__badge {
	font-size: 13px;
	line-height: normal;
}

.contact-form__badge--required {
	font-weight: 700;
	color: #d7453a;
}

.contact-form__badge--optional {
	font-weight: 400;
	color: #a8b6c5;
}

/* --- テキスト系入力 --- */

.contact-card input.wpcf7-form-control,
.contact-card textarea.wpcf7-form-control {
	display: block;
	width: 100%;
	height: 40px;
	padding: 0 15px 0 14px;
	font-family: var(--font-jp);
	font-size: 15px;
	font-weight: 400;
	line-height: normal;
	color: var(--c-heading);
	background: #fff;
	border: 1px solid #e2e8f1;
	border-radius: 5px;
	transition: border-color 0.2s ease;
}

.contact-card textarea.wpcf7-form-control {
	height: 320px;
	padding: 15px 15px 15px 14px;
	line-height: 1.6;
	resize: vertical;
}

.contact-card .wpcf7-form-control::placeholder {
	color: #a8b6c5;
}

.contact-card .wpcf7-form-control:focus {
	outline: none;
	border-color: var(--c-primary);
}

.contact-card .wpcf7-not-valid {
	border-color: #d7453a;
}

.contact-card .wpcf7-not-valid-tip {
	margin-top: 6px;
	font-size: 13px;
	color: #d7453a;
}

/* --- チェックボックス共通（お問い合わせ種別のチップ / 同意チェック） --- */

.contact-card input[type="checkbox"] {
	appearance: none;
	flex: none;
	width: 16px;
	height: 16px;
	margin: 0;
	position: relative;
	background: #fff;
	border: 1px solid var(--c-heading);
	border-radius: 2px;
	cursor: pointer;
}

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

.contact-card input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 5px;
	width: 4px;
	height: 8px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.contact-card input[type="checkbox"]:focus-visible {
	outline: 2px solid var(--c-primary);
	outline-offset: 2px;
}

/* --- お問い合わせ種別（チップ型チェックボックス） --- */

.contact-card .wpcf7-checkbox {
	display: flex;
	flex-wrap: wrap;
	gap: 13px;
}

.contact-card .wpcf7-checkbox .wpcf7-list-item {
	margin: 0;
}

.contact-card .wpcf7-checkbox .wpcf7-list-item label {
	display: flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 11px 15px 11px 10px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	color: var(--c-heading);
	white-space: nowrap;
	background: #fff;
	border: 1px solid #e2e8f1;
	border-radius: 5px;
	cursor: pointer;
	transition: border-color 0.2s ease;
}

.contact-card .wpcf7-checkbox .wpcf7-list-item label:hover {
	border-color: var(--c-heading);
}

/* --- プライバシーポリシー同意 --- */

.contact-form__agreement {
	display: flex;
	flex-direction: column;
	gap: 14px;
	align-items: flex-start;
}

.contact-card .wpcf7-acceptance .wpcf7-list-item {
	margin: 0;
}

.contact-card .wpcf7-acceptance label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 15px;
	font-weight: 500;
	color: var(--c-heading);
	cursor: pointer;
}

.contact-form__privacy-note {
	font-size: 14px;
	color: var(--c-heading);
}

.contact-form__privacy-note a {
	color: var(--c-primary);
	text-decoration: underline;
	text-decoration-skip-ink: none;
}

/* --- 送信ボタン --- */

/* ボタンとまったく同じ幅にして中央寄せする（.wpcf7-spinner を right: 32px で
   ボタンの内側右端にピンポイントで揃えるための基準ボックス）。 */
.contact-form__submit {
	position: relative;
	width: 800px;
	max-width: 100%;
	margin: 70px auto 0;
}

.contact-card .wpcf7-form-control.wpcf7-submit {
	appearance: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 57px;
	padding: 14px 32px;
	font-family: var(--font-jp);
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	background: var(--c-primary);
	border: 1px solid transparent;
	border-radius: var(--radius-card);
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.contact-card .wpcf7-form-control.wpcf7-submit:hover {
	background: var(--c-primary-dark);
}

/* 送信中（CF7 が自動で disabled にする間）はミュートカラーにして押せないことを示す。
   input[type="submit"] はブラウザによって :disabled 時に background-color の
   動的な変更が反映されないことがあるため、background-image のグラデーションで
   同色を重ねて確実に上書きする。 */
.contact-card .wpcf7-form-control.wpcf7-submit:disabled {
	background-color: var(--c-muted);
	background-image: linear-gradient(var(--c-muted), var(--c-muted));
	cursor: not-allowed;
}

/* デフォルトだと visibility:hidden でも幅を占有し、ボタンの中心がずれる。
   .contact-form__submit をボタンと同じ幅にしたうえで絶対配置にし、
   ボタン内側の右端（文字の右）に重ねる。 */
.contact-card .wpcf7-spinner {
	position: absolute;
	top: 50%;
	right: 32px;
	margin: 0;
	transform: translateY(-50%);
}

@media (max-width: 767px) {
	.contact-mv {
		padding-block: 46px;
	}

	.contact-mv__title {
		font-size: 30px;
	}

	.contact-mv__lead {
		margin-top: 22px;
		font-size: 14px;
	}

	.contact-section {
		padding-top: 40px;
		padding-bottom: 50px;
	}

	.contact-card {
		padding: 28px 20px;
		border-radius: 0;
		border-width: 1px 0;
	}

	.contact-card__intro {
		gap: 20px;
	}

	.contact-card__heading {
		font-size: 17px;
	}

	.contact-card__lead {
		font-size: 14px;
	}

	.contact-form__fields {
		gap: 28px;
	}

	/* SP はチップを折り返さず、1 行 1 選択肢の全幅ボックスにする
	   （長い選択肢は自動で複数行に折り返し、高さも合わせて伸びる） */
	.contact-card .wpcf7-checkbox .wpcf7-list-item {
		width: 100%;
	}

	.contact-card .wpcf7-checkbox .wpcf7-list-item label {
		width: 100%;
		white-space: normal;
	}

	.contact-form__submit {
		margin-top: 40px;
	}

	.contact-card .wpcf7-form-control.wpcf7-submit {
		min-height: 52px;
	}
}
