/* ==========================================================================
   お問い合わせフォーム専用スタイル
   ========================================================================== */

/* 親コンテナの余白調整（下部CTAとの間） */
.l-mainContent__inner {
	padding-bottom: 160px;
}

/* フォーム全体 */
.p-contact-form {
	max-width: 800px;
	margin: 60px auto 0;
	width: 100%;
}

/* フォームの各行 */
.p-contact-form__row {
	display: flex;
	align-items: flex-start;
	margin-bottom: 24px;
}

/* ラベル列（PC時: 幅240px固定） */
.p-contact-form__label-col {
	display: flex;
	align-items: center;
	justify-content: space-between;
	/* ラベルとバッジを両端揃えにする */
	width: 240px;
	flex-shrink: 0;
	padding-top: 12px;
	/* 入力エリアのパディングと合わせる */
	padding-right: 32px;
	/* 右側の入力エリアとの隙間を確保 */
	box-sizing: border-box;
	/* paddingを含めて240pxにする */
}

.p-contact-form__label {
	font-weight: 700;
	color: #000;
	margin-right: 12px;
}

/* 必須・任意バッジ */
.c-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 500;
	line-height: 1;
	padding: 5px 8px;
	border-radius: 2px;
	color: #fff;
}

.c-badge--required {
	background-color: #0c4394;
	/* 必須：青 */
}

.c-badge--optional {
	background-color: #a0a0a0;
	/* 任意：グレー */
}

/* 入力エリア列 */
.p-contact-form__input-col {
	flex: 1;
}

.p-contact-form__input,
.p-contact-form__textarea {
	width: 100%;
	background-color: #f4f7fd;
	/* 淡いブルーグレー */
	border: none;
	border-radius: 4px;
	padding: 14px 18px;
	box-shadow: none;
	box-sizing: border-box;
	outline: none;
	font-family: inherit;
	transition: background-color 0.2s ease;
}

.p-contact-form__input:focus,
.p-contact-form__textarea:focus {
	background-color: #ebf0fa;
}

.p-contact-form__textarea {
	height: 200px;
	resize: vertical;
}

/* プレースホルダーのカラー */
.p-contact-form__input::placeholder,
.p-contact-form__textarea::placeholder {
	color: #cccccc;
}

/* 同意チェックボックス */
.p-contact-form__consent {
	margin-top: 40px;
	margin-left: 240px;
	/* 入力欄の開始位置に合わせる */
}

.p-contact-form__consent-label {
	display: inline-flex;
	align-items: center;
	cursor: pointer;
}

.p-contact-form__consent-checkbox {
	appearance: none;
	-webkit-appearance: none;
	margin-right: 12px;
	width: 16px;
	height: 16px;
	border: 1px solid #cccccc;
	background-color: #fff;
	border-radius: 2px;
	position: relative;
	cursor: pointer;
	display: inline-block;
	box-sizing: border-box;
}

.p-contact-form__consent-checkbox:focus-visible {
	outline: 2px solid var(--color_main);
	outline-offset: 2px;
}

/* チェックが入った状態の枠線 */
.p-contact-form__consent-checkbox:checked {
	border-color: #000;
}

/* チェックが入った状態のチェックマーク */
.p-contact-form__consent-checkbox:checked::after {
	content: "";
	position: absolute;
	left: 4px;
	top: 1px;
	width: 5px;
	height: 9px;
	border: solid #000;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
	box-sizing: border-box;
}

.p-contact-form__consent-text {
	color: #333;
}

.p-contact-form__consent-text a {
	color: #333;
	text-decoration: underline;
}

@media (hover: hover) {

	.p-contact-form__consent-text a:hover {
		text-decoration: none;
	}
}

.p-contact-form__consent-text a:focus-visible {
	outline: 2px solid #333;
	outline-offset: 2px;
}

/* 送信ボタンエリア */
.p-contact-form__submit-area {
	display: flex;
	justify-content: flex-end;
	/* 右寄せ */
	margin-top: 40px;
}

.c-btn-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 240px;
	height: 48px;
	border: 1px solid #0c4394;
	background-color: #fff;
	color: #0c4394;
	font-size: 16px;
	text-decoration: none;
	letter-spacing: 0.05em;
	cursor: pointer;
	outline: none;
	padding: 0;
	font-family: inherit;
	transition: background-color 0.3s ease, color 0.3s ease;
}

@media (hover: hover) {

	.c-btn-submit:not(:disabled):hover {
		background-color: #0c4394;
		color: #fff;
	}
}

.c-btn-submit:focus-visible {
	outline: 2px solid #0c4394;
	outline-offset: 2px;
}

.c-btn-submit:disabled {
	cursor: not-allowed;
}

/* ==========================================================================
   レスポンシブ（SP: ~768px）
   ========================================================================== */

@media screen and (max-width: 768px) {

	.l-mainContent__inner {
		padding-bottom: 80px;
	}

	.p-contact-form {
		margin-top: 40px;
	}

	.p-contact-form__row {
		flex-direction: column;
		align-items: stretch;
		margin-bottom: 20px;
	}

	.p-contact-form__label-col {
		width: 100%;
		padding-top: 0;
		padding-right: 0;
		margin-bottom: 8px;
		justify-content: flex-start;
		/* スマホ時は左寄せ */
	}

	.p-contact-form__label {
		font-size: 14px;
	}

	.c-badge {
		font-size: 14px;
	}

	.p-contact-form__input,
	.p-contact-form__textarea {
		font-size: 14px;
	}

	.p-contact-form__consent {
		margin-left: 0;
		/* スマホ時は左端に寄せる */
		margin-top: 24px;
	}

	.p-contact-form__submit-area {
		justify-content: center;
		/* スマホ時は中央寄せ */
		margin-top: 32px;
	}

	.c-btn-submit {
		width: 240px;
		/* 固定幅 */
	}

}

/* ==========================================================================
   送信完了（サンクス）ページ
   ========================================================================== */
.p-thanks {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 120px 20px;
}

.p-thanks__title {
	font-size: 28px;
	font-weight: 700;
	color: #000;
	margin-bottom: 40px;
	line-height: 1.4;
}

.p-thanks__message {
	color: #333;
	line-height: 2;
}

/* ==========================================================================
   バリデーションエラー表示
   ========================================================================== */
.p-contact-form__error-summary {
	background-color: #ffebeb;
	border: 1px solid #ffb3b3;
	border-radius: 4px;
	padding: 16px 20px;
	margin-bottom: 32px;
	color: #d93838;
	font-size: 14px;
}

.p-contact-form__error-summary p {
	font-weight: 700;
	margin: 0 0 8px;
}

.p-contact-form__error-summary ul {
	margin: 0;
	padding-left: 20px;
}

.p-contact-form__error-summary li {
	margin-bottom: 4px;
}

/* ==========================================================================
   レスポンシブ追加（サンクスページ）
   ========================================================================== */
@media screen and (max-width: 768px) {
	.p-thanks {
		padding: 80px 20px;
	}

	.p-thanks__title {
		font-size: 20px;
		margin-bottom: 24px;
	}

	.p-thanks__message {
		font-size: 14px;
		line-height: 1.8;
	}
}