/* CONTACT（お問い合わせ）ページ用スタイル
 * 見出しと紹介文は page.css の .detail-list（共通）。ここには個人情報の取り扱いとフォームを書く */

.contact__body {
	max-width: 1160px;
	margin-inline: auto;
	padding: 0 var(--sec-gutter);
	color: var(--sec-text);
}

/*==================== 個人情報の取り扱い（枠の中でスクロール） ====================*/
.contact-policy {
	max-height: 200px;
	overflow-y: auto;
	padding: 16px 20px;
	border: 1px solid rgba(0, 0, 0, 0.13);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.9;
	letter-spacing: 0.02em;
}
.contact-policy:focus-visible {
	outline: 3px solid var(--sec-blue);
	outline-offset: 2px;
}
.contact-policy__title {
	font-size: 15px;
	font-weight: 600;
}
.contact-policy p + .contact-policy__title {
	margin-top: 16px;
}

/*==================== フォーム ====================*/
.contact-form,
.contact-confirm,
.contact-complete {
	margin-top: 40px;
}
.contact-form__note {
	font-size: 14px;
	text-align: right;
}
.contact-form__required {
	margin-left: 4px;
	color: #d43b3b;
	font-size: 12px;
	font-weight: 700;
}
/* style.css の form dl / form dl:nth-of-type(1) / form dt（表組み・下線・余白）を打ち消すため、セレクタを2段にしている */
.contact-form .contact-form__table {
	display: block;
	width: auto;
	margin: 12px 0 0;
	padding: 0;
	border-top: 1px solid rgba(0, 0, 0, 0.13);
	border-bottom: 0;
}
.contact-form .contact-form__row dt {
	width: auto;
	margin: 0;
	padding: 0;
	border-bottom: 0;
}
/* 1行：左に項目名、右に入力欄 */
.contact-form__row {
	display: grid;
	grid-template-columns: 256px minmax(0, 1fr);
	align-items: center;
	padding-block: 8px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.13);
}
.contact-form__row dt {
	font-size: 16px;
	font-weight: 500;
	line-height: 1.9;
	letter-spacing: 0.02em;
}
.contact-form__input {
	display: block;
	width: 100%;
	min-height: 52px;
	padding: 12px 16px;
	border: 1px solid transparent;
	border-radius: 0;
	background: #dff5fe;
	box-sizing: border-box;
	color: var(--sec-text);
	font: inherit;
	font-size: 16px; /* 16px 未満だと iPhone で入力時に画面が拡大される */
	line-height: 1.6;
	transition: border-color 0.2s, background-color 0.2s;
}
.contact-form__input--textarea {
	min-height: 168px;
	resize: vertical;
}
.contact-form__input:focus {
	border-color: var(--sec-blue);
	background: #fff;
	outline: none;
}

/* 入力エラー（contact.js が文言を入れる。空のときは場所を取らない） */
.contact-form__error {
	color: #d43b3b;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.6;
}
.contact-form__error:not(:empty) {
	margin-top: 8px;
}
.contact-form__input[aria-invalid="true"] {
	border-color: #d43b3b;
	background: #fff5f5;
}
/* ハニーポット：人には見せず、読み上げもさせない（display:none だとボットに気づかれやすいので画面外へ） */
.contact-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.contact-form__turnstile:not(:empty) {
	display: flex;
	justify-content: center;
	margin-top: 32px;
}
.contact-form__agree {
	margin-top: 24px;
	font-size: 14px;
	line-height: 1.8;
	text-align: center;
}
.contact-form__agree a {
	color: var(--sec-blue);
	text-decoration: underline;
}

/* 送信ボタン */
.contact-form__action {
	display: flex;
	justify-content: center;
	margin-top: 32px;
}

/*==================== 確認画面・完了画面 ====================*/
.contact-step__title {
	font-size: 24px;
	font-weight: 600;
	line-height: 1.6;
	text-align: center;
}
.contact-step__title:focus {
	outline: none;
}
.contact-step__text {
	margin-top: 16px;
	font-size: 16px;
	line-height: 1.9;
	letter-spacing: 0.02em;
	text-align: center;
}
/* 確認の表は入力の表と同じ並び（左に項目名・右に内容） */
.contact-confirm__table {
	margin-top: 32px;
	border-top: 1px solid rgba(0, 0, 0, 0.13);
}
.contact-confirm__table dt {
	font-size: 16px;
	font-weight: 500;
	line-height: 1.9;
	letter-spacing: 0.02em;
}
.contact-confirm__table dd {
	padding-block: 12px;
	font-size: 16px;
	line-height: 1.8;
	white-space: pre-wrap; /* お問い合わせ内容の改行をそのまま見せる */
	overflow-wrap: anywhere;
}
.contact-confirm__table dd.is-empty {
	color: #888;
}
.contact-confirm__error {
	color: #d43b3b;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.6;
	text-align: center;
}
.contact-confirm__error:not(:empty) {
	margin-top: 24px;
}
.contact-confirm__action {
	gap: 16px;
}
.contact-complete {
	padding: 48px 24px;
	background: #f2faff;
}
.contact-complete__note {
	margin-top: 16px;
	color: #333;
	font-size: 13px;
	line-height: 1.6;
	text-align: center;
}
/* フォームの下に置く公式LINEの案内（見た目は style.css の .line-cta） */
.contact-line {
	margin-top: 80px;
}
/* お問い合わせページでは共通サイズ（292×60）より大きくする（幅+20px・高さ+10px） */
.contact-line .line-cta__btn {
	width: 312px;
	height: 70px;
}
.contact-line .line-cta__lead {
	font-size: 14px;
}
.contact-line__text {
	margin-bottom: 14px; /* .line-cta の gap 10px と合わせて下の一文との間を24pxに */
	text-align: center;
}
.contact-line__note {
	margin-top: 2px; /* .line-cta の gap 10px と合わせてボタンとの間を12pxに */
	color: #333;
	font-size: 13px;
	line-height: 1.6;
	letter-spacing: 0.02em;
	text-align: center;
}
.contact-form__submit {
	min-width: 240px;
	min-height: 56px;
	padding: 12px 40px;
	border: 2px solid var(--sec-blue);
	border-radius: 999px;
	background: var(--sec-blue);
	color: #fff;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: opacity 0.2s;
}
/* 完了画面の「トップページへ戻る」はリンクなので、ボタンと同じ形にそろえる */
a.contact-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}
.contact-form__submit:hover {
	opacity: 0.85;
}
.contact-form__submit:disabled {
	opacity: 0.6;
	cursor: wait;
}
.contact-form__submit:focus-visible,
.contact-form__back:focus-visible {
	outline: 3px solid var(--sec-blue);
	outline-offset: 4px;
}
/* 確認画面の「修正する」：白地に青枠（送信ボタンより控えめに） */
.contact-form__back {
	min-width: 240px;
	min-height: 56px;
	padding: 12px 40px;
	border: 2px solid var(--sec-blue);
	border-radius: 999px;
	background: #fff;
	color: var(--sec-blue);
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: background-color 0.2s;
}
.contact-form__back:hover {
	background: #f2faff;
}
.contact-form__back:disabled {
	opacity: 0.6;
	cursor: wait;
}

/*==================== タブレット・スマートフォン：項目名を入力欄の上に ====================*/
@media screen and (max-width: 900px) {
	.contact__body {
		max-width: 640px;
	}
	.contact-form__row {
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
		padding-block: 16px;
	}
}
@media screen and (max-width: 600px) {
	.contact-form__submit,
	.contact-form__back {
		width: 100%;
		max-width: 400px;
	}
	/* 確認画面のボタンは縦に並べ、「送信する」を上にする */
	.contact-confirm__action {
		flex-direction: column-reverse;
		align-items: center;
	}
	.contact-step__title {
		font-size: 20px;
	}
	.contact-step__text {
		font-size: 15px;
	}
	.contact-complete {
		padding: 32px 16px;
	}
}
