@charset "UTF-8";
/* ==========================================================================
   お問い合わせページ(Figma VD 7/3 > お問い合わせ 準拠)
   ========================================================================== */

.page-hero__sub {
	font-weight: 500;
}

.contact-container {
	max-width: 972px;
	margin-inline: auto;
	padding-inline: 20px;
}

.contact {
	padding-block: 80px;
}

.contact__intro {
	font-size: 15px;
	line-height: 26px;
	color: var(--color-text-sub);
	text-align: center;
}

/* --------------------------------------------------------------------------
   フォーム
   -------------------------------------------------------------------------- */
.contact-form {
	margin-top: 40px;
	border-top: 1px solid #e4e4e4;
}

.form-row {
	display: flex;
	align-items: flex-start;
	padding-block: 24px;
	border-bottom: 1px solid #e4e4e4;
}

.form-row__label {
	flex: 0 0 252px;
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	font-size: 15px;
	font-weight: 500;
	color: var(--color-heading);
}

.form-row__required {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 19px;
	background: #a71427;
	border-radius: 3px;
	font-size: 11px;
	font-weight: 500;
	line-height: 1;
	color: #ffffff;
}

.form-row__field {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
	height: 48px;
	padding-inline: 16px;
	background: #ffffff;
	border: 1px solid #cccccc;
	border-radius: 4px;
	font-family: inherit;
	font-size: 14px;
	color: var(--color-heading);
	width: 100%;
}

.contact-form ::placeholder {
	color: #999999;
}

.contact-form textarea {
	height: 180px;
	padding-block: 14px;
	resize: vertical;
}

.contact-form .w-s {
	max-width: 220px;
}

.contact-form .w-m {
	max-width: 300px;
}

.contact-form select {
	appearance: none;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='12' viewBox='0 0 10 12'%3E%3Cpath d='M0 3l5 6 5-6z' fill='%23999999'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	color: #999999;
}

/* グレーは未選択(プレースホルダ)のときだけ。選択したら本文色に戻す */
.contact-form select:not(:has(option[value=""]:checked)) {
	color: var(--color-heading);
}

/* --------------------------------------------------------------------------
   注記・同意・送信
   -------------------------------------------------------------------------- */
.contact__note {
	margin-top: 40px;
	font-size: 12px;
	line-height: 21px;
	color: #666666;
}

.contact__note a {
	color: var(--color-accent);
	text-decoration: underline;
}

.contact__consent {
	display: flex;
	justify-content: center;
	margin-top: 40px;
}

.contact__consent label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 500;
	color: var(--color-heading);
	cursor: pointer;
}

.contact__consent input[type="checkbox"] {
	width: 20px;
	height: 20px;
	accent-color: var(--color-heading);
	border: 1px solid #cccccc;
	border-radius: 3px;
}

.contact__submit {
	display: flex;
	justify-content: center;
	margin-top: 40px;
}

.btn-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-width: 235px;
	height: 55px;
	background: var(--color-heading);
	border: none;
	border-radius: 4px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 500;
	color: #ffffff;
	cursor: pointer;
}

.btn-submit::after {
	content: "→";
	font-size: 15px;
}

/* --------------------------------------------------------------------------
   電話でのお問い合わせ
   -------------------------------------------------------------------------- */
.contact-phone {
	margin-top: 40px;
	padding: 40px 24px 44px;
	background: #f9f9f9;
	border-radius: 8px;
	text-align: center;
}

.contact-phone__title {
	font-size: 15px;
	font-weight: 500;
	color: var(--color-heading);
}

.contact-phone__tel {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin-top: 14px;
	font-family: var(--font-en);
	font-size: 36px;
	font-weight: 700;
	line-height: 44px;
	color: var(--color-heading);
}

.contact-phone__tel img {
	width: 30px;
	height: 30px;
}

.contact-phone__hours {
	margin-top: 14px;
	font-size: 13px;
	line-height: 20px;
	color: #666666;
}

/* --------------------------------------------------------------------------
   レスポンシブ
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
	/* 項目名の固定幅を詰める(横並びは維持) */
	.form-row__label {
		flex: 0 0 200px;
	}
}

@media (max-width: 768px) {
	.contact {
		padding-block: 48px;
	}

	.contact__intro {
		font-size: 14px;
		text-align: left;
	}

	/* 項目名を上、入力欄を下の縦積みに
	   (縦積みでは align-items が横方向に効くため stretch に戻して全幅にする) */
	.form-row {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
		padding-block: 18px;
	}

	.form-row__label {
		flex: none;
		min-height: 0;
	}

	.form-row__field {
		width: 100%;
	}

	/* SPでは入力欄を全幅に(横幅指定は縦積みだと中途半端に見える) */
	.contact-form .w-s,
	.contact-form .w-m {
		max-width: none;
	}

	/* iOSでフォーカス時に自動ズームしないよう16px以上にする */
	.contact-form input[type="text"],
	.contact-form input[type="tel"],
	.contact-form input[type="email"],
	.contact-form select,
	.contact-form textarea {
		font-size: 16px;
	}

	.contact-form textarea {
		height: 150px;
	}

	.contact__note,
	.contact__consent,
	.contact__submit {
		margin-top: 28px;
	}

	.contact__consent label {
		align-items: flex-start;
		font-size: 13px;
		line-height: 1.6;
	}

	.contact__consent input[type="checkbox"] {
		flex: 0 0 20px;
		margin-top: 2px;
	}

	.btn-submit {
		width: 100%;
		min-width: 0;
	}

	.contact-phone {
		margin-top: 32px;
		padding: 28px 16px 32px;
	}

	.contact-phone__tel {
		font-size: clamp(24px, 7vw, 36px);
		line-height: 1.2;
	}

	.contact-phone__tel img {
		width: 24px;
		height: 24px;
	}
}
