/* =========================================================
 * contact.css
 * お問い合わせページ共通スタイル (選択画面 + フォーム画面)
 * ========================================================= */

/* --- 共通セクションスタイル --- */
.main-content {
	padding: 60px 0;
	min-height: 50vh;
}

.page-title {
	font-size: 32px;
	text-align: center;
	margin-bottom: 30px;
	color: #2a2a2a;
}
.form-intro {
	text-align: center;
	max-width: 600px;
	margin: 0 auto 30px;
	line-height: 1.6;
	color: #555;
	font-size: 15px;
}

/* =======================================
 * フォーム共通スタイル (ContactCutSalon.latte, ContactHomon.latte)
 * ======================================= */

.contact-form {
	max-width: 750px;
	margin: 0 auto;
	background: #fff;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.form-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 30px;
	border-top: 2px solid #ddd;
}

.form-table th, .form-table td {
	padding: 15px 10px;
	border-bottom: 1px solid #eee;
	text-align: left;
	vertical-align: top;
	font-size: 15px;
}

.form-table th {
	width: 30%;
	background-color: #f5f5f5;
	font-weight: bold;
	color: #555;
//	display: flex;
//	  align-items: center;
//	  justify-content: space-between;
}
/* ★追加: th内部のコンテンツにFlexboxを適用し、右寄せを制御 */
.form-table th .th-content {
	/* thの縦幅いっぱいに広げ、Flexで中身を制御 */
	display: flex;
	align-items: center; /* 縦方向の中央寄せ */
	justify-content: space-between; /* テキストと必須を両端に配置 */
	height: 100%; /* thの高さ全体を使う */
}
/* 複数の行（<br>）がある項目（例：ご担当者・ご依頼者名）のFlexbox制御をブロック化 */
/* これにより、Flexアイテム全体が上端に揃い、テキストと必須マークが分断されます */
.form-table th .th-content:has(br) {
	display: block;
	/* ブロック化することで、テキストは上揃え(vertical-align: top)を継承しやすくなります */
}

/* 必須マーク */
.required {
	font-size: 12px;
	background-color: #dc3545;
	color: #fff;
	padding: 2px 6px;
	border-radius: 4px;
	font-weight: normal;
}

/* 入力欄スタイル */
.form-table input[type="text"],
.form-table input[type="email"],
.form-table input[type="tel"],
.form-table textarea,
.form-table select {
	width: 100%;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
	font-size: 15px;
}

/* プライバシーポリシー同意チェックボックス */
.privacy-check {
	text-align: center;
	margin-bottom: 30px;
	font-size: 14px;
}
.privacy-check a {
	color: #2196f3;
	text-decoration: underline;
}

/* 送信ボタンエリア */
.submit-area {
	text-align: center;
}

.btn-submit {
	padding: 15px 40px;
	font-size: 18px;
	font-weight: bold;
	color: #fff;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	transition: background-color 0.3s;
}

.btn-submit:hover {
	filter: brightness(1.1);
}

/* --- サービスごとのボタンカラー --- */
.btn-submit-cutsalon {
	background-color: #3f51b5; /* サロンカラー (青) */
	color: #fff;
}
.btn-submit-homon {
	background-color: #4caf50; /* 福祉カラー (緑) */
	color: #fff;
}

/* =======================================
 * エラー表示スタイル
 * ======================================= */

/* エラーがある行のスタイル */
.form-table tr.is-error th {
	background-color: #ffeaea; /* エラー背景色 */
	color: #c00; /* テキスト色を赤に */
}

/* エラーがある入力欄の枠線 */
.form-table tr.is-error input[type="text"],
.form-table tr.is-error input[type="email"],
.form-table tr.is-error input[type="tel"],
.form-table tr.is-error textarea,
.form-table tr.is-error select {
	border-color: #dc3545; /* Bootstrapのdangerカラー */
	box-shadow: 0 0 5px rgba(220, 53, 69, 0.5); /* 視認性の高いシャドウ */
}

/* エラーメッセージのスタイル */
.error-message {
	color: #dc3545;
	font-size: 13px;
	margin-top: 5px;
	padding-left: 5px; /* 入力欄と少しずらす */
	font-weight: bold;
}

/* プライバシーチェックボックスのエラー */
.privacy-check.is-error-check {
	padding: 10px;
	border: 1px dashed #dc3545;
	border-radius: 4px;
	margin-top: 20px;
	margin-bottom: 30px;
	background-color: #ffeaea;
}

.error-message-check {
	text-align: center;
	margin-top: 10px;
	margin-bottom: 0;
}

/* =======================================
 * フォーム/確認画面 共通スタイル
 * ======================================= */

/* 確認画面用テーブル */
.form-table.confirm-table {
	max-width: 750px;
	margin: 0 auto 30px;
	border: 1px solid #ddd;
	box-shadow: none; /* 確認画面ではシャドウを削除 */
}

.confirm-table th {
	width: 30%;
	background-color: #f0f8ff; /* 確認画面の見出しを薄い青系に */
	font-weight: normal;
}

/* 確認画面のデータ表示セル */
.confirm-table td {
	padding: 15px 20px;
	background-color: #ffffff;
	word-break: break-all; /* 長いメールアドレス等で横にはみ出さないように */
}

/* =======================================
 * 完了画面スタイル (ContactCutSalonComplete.latte)
 * ======================================= */

.complete-box {
	max-width: 600px;
	margin: 0 auto 40px;
	padding: 30px;
	border: 1px solid #c8e6c9; /* 淡いグリーン系の枠線 */
	background-color: #f1f8e9; /* 淡いグリーン系の背景 */
	border-radius: 8px;
	text-align: center;
}

.complete-message {
	font-size: 18px;
	font-weight: bold;
	color: #388e3c; /* 緑色のテキスト */
	margin-bottom: 15px;
}

.complete-sub-message {
	font-size: 14px;
	color: #555;
	line-height: 1.6;
}

/* 入力内容確認テーブルの調整（完了画面用） */
.confirm-table {
	margin-top: 20px;
	margin-bottom: 40px;
	border: 1px solid #ddd;
}
.confirm-table th {
	width: 35%;
	background-color: #fdfdfd;
}
.confirm-table td {
	word-break: break-all; /* 長い文字列も折り返す */
}

.section-heading {
	font-size: 24px;
	text-align: center;
	margin-top: 30px;
	margin-bottom: 20px;
	border-bottom: 2px solid #ddd;
	padding-bottom: 10px;
	color: #333;
}

.next-steps {
	max-width: 750px;
	margin: 0 auto 50px;
	padding: 20px;
	line-height: 1.8;
	background-color: #f7f7f7;
	border-radius: 6px;
	text-align: center;
}

.strong-note {
	font-weight: bold;
	color: #c00;
	margin-top: 15px;
}

.back-to-top {
	text-align: center;
	margin-bottom: 40px;
}

.btn-back-home {
	/* 既存の .btn-submit-cutsalon スタイルを使用 */
	display: inline-block;
	text-decoration: none;
	padding: 15px 40px;
	min-width: 250px;

	font-size: 18px;
	font-weight: bold;
	color: #fff;
	border-radius: 8px;
}

/* =======================================
 * レスポンシブ対応 (フォーム)
 * ======================================= */

@media (max-width: 600px) {
	.contact-form {
		padding: 20px 10px;
	}
	.form-table th, .form-table td {
		display: block;
		width: 100%;
		padding: 10px;
	}
	.form-table th {
		border-left: none;
		border-top: 1px solid #eee;
		border-bottom: none;
		background-color: #fcfcfc;
	}
	.form-table tr:first-child th {
		border-top: none;
	}
	.btn-submit {
		width: 100%;
		padding: 12px 0;
		font-size: 16px;
	}
}
