@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;
}

/* --------------------------------------------------------------------------
   ハニーポット(スパム対策)
   人間には見えない・触れない入力欄。display:none だと埋めないbotがいるため
   視覚的に画面外へ追い出す方式にする
   -------------------------------------------------------------------------- */
.form-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* --------------------------------------------------------------------------
   確認画面(form-confirm.js が生成)
   -------------------------------------------------------------------------- */
.contact-confirm__lead {
	font-size: 15px;
	line-height: 26px;
	color: var(--color-text-sub);
	text-align: center;
}

.confirm-list {
	margin-top: 40px;
	border-top: 1px solid #e4e4e4;
	display: grid;
	grid-template-columns: 252px 1fr;
}

.confirm-list dt {
	padding: 20px 0;
	font-size: 15px;
	font-weight: 500;
	color: var(--color-heading);
	border-bottom: 1px solid #e4e4e4;
}

.confirm-list dd {
	padding: 20px 0;
	font-size: 14px;
	line-height: 1.8;
	color: var(--color-text-sub);
	border-bottom: 1px solid #e4e4e4;
	white-space: pre-wrap;
	word-break: break-word;
}

/* display指定が hidden 属性(UAの display:none)に勝ってしまうため、明示的に隠す */
.form-error[hidden] {
	display: none;
}

.form-error {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: 28px;
	padding: 14px 16px;
	background: #fbeef0;
	border: 1px solid #a71427;
	border-radius: 4px;
	font-size: 14px;
	line-height: 1.7;
	color: #a71427;
}

.contact-confirm__actions {
	display: flex;
	justify-content: center;
	gap: 16px;
	margin-top: 40px;
}

.btn-back {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 200px;
	height: 55px;
	padding-inline: 24px;
	background: #ffffff;
	border: 1px solid var(--color-heading);
	border-radius: 4px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	color: var(--color-heading);
	cursor: pointer;
}

.btn-submit:disabled,
.btn-back:disabled {
	opacity: 0.6;
	cursor: default;
}

/* --------------------------------------------------------------------------
   送信完了ページ
   -------------------------------------------------------------------------- */
.contact-done {
	text-align: center;
}

.contact-done__title {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.5;
	color: var(--color-heading);
}

.contact-done__text {
	margin-top: 24px;
	font-size: 15px;
	line-height: 2;
	color: var(--color-text-sub);
}

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

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

.btn-home {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 235px;
	height: 55px;
	padding-inline: 24px;
	background: var(--color-heading);
	border-radius: 4px;
	font-size: 15px;
	font-weight: 500;
	color: #ffffff;
}

/* --------------------------------------------------------------------------
   電話でのお問い合わせ
   -------------------------------------------------------------------------- */
.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;
	}

	/* 確認画面: 項目名を上、内容を下の縦積みに */
	.contact-confirm__lead {
		font-size: 14px;
		text-align: left;
	}

	.confirm-list {
		grid-template-columns: 1fr;
	}

	.confirm-list dt {
		padding: 14px 0 0;
		border-bottom: none;
	}

	.confirm-list dd {
		padding: 6px 0 14px;
	}

	.contact-confirm__actions {
		flex-direction: column-reverse;
		gap: 12px;
		margin-top: 28px;
	}

	.btn-back,
	.contact-confirm__actions .btn-submit {
		width: 100%;
		min-width: 0;
	}

	/* 送信完了ページ */
	.contact-done {
		text-align: left;
	}

	.contact-done__title {
		font-size: 20px;
	}

	.contact-done__text {
		margin-top: 16px;
		font-size: 14px;
	}

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