/* ============================================
   KAFUU WEDDING — フォームページ専用スタイル
   /css/form.css
============================================ */

/* ページヘッダー
---------------------------------------------- */
.o-pageHeader {
	padding: 60px 0 40px;
	text-align: center;
	background-color: #faf8f5;
}

.o-pageHeader .o-heading {
	margin-bottom: 12px;
}

.o-pageHeader_lead {
	font-size: 14px;
	letter-spacing: 0.08em;
	color: #6b6b6b;
}

/* フォームセクション
---------------------------------------------- */
.o-form-section {
	max-width: 680px;
	margin: 0 auto;
	padding: 60px 0 80px;
}

/* リード文
---------------------------------------------- */
.o-form-intro {
	margin-bottom: 52px;
	padding: 32px 36px;
	background-color: #faf8f5;
	border-left: 3px solid #b8956a;
}

.o-form-intro p {
	font-size: 13.5px;
	line-height: 2;
	color: #4a4a4a;
}

/* フォーム全体
---------------------------------------------- */
.o-form {
	display: block;
}

/* フォームグループ（1項目）
---------------------------------------------- */
.o-form_group {
	margin-bottom: 40px;
}

/* ラベル
---------------------------------------------- */
.o-form_label {
	display: block;
	margin-bottom: 10px;
	font-size: 13px;
	letter-spacing: 0.1em;
	color: #3a3a3a;
}

/* 必須マーク
---------------------------------------------- */
.o-form_required {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 7px;
	font-size: 10px;
	letter-spacing: 0.05em;
	color: #fff;
	background-color: #b8956a;
	vertical-align: middle;
}

/* ヒントテキスト
---------------------------------------------- */
.o-form_hint {
	margin-bottom: 10px;
	font-size: 12px;
	line-height: 1.7;
	color: #888;
}

/* テキスト入力・メール・電話
---------------------------------------------- */
.o-form_input {
	display: block;
	width: 100%;
	padding: 12px 0;
	font-size: 14px;
	color: #3a3a3a;
	background: transparent;
	border: none;
	border-bottom: 1px solid #c8c0b4;
	border-radius: 0;
	outline: none;
	transition: border-color 0.2s;
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
}

.o-form_input:focus {
	border-bottom-color: #b8956a;
}

.o-form_input.is-error {
	border-bottom-color: #c0392b;
}

.o-form_input::placeholder {
	color: #bbb;
}

/* テキストエリア
---------------------------------------------- */
.o-form_textarea {
	display: block;
	width: 100%;
	padding: 12px;
	font-size: 14px;
	line-height: 1.8;
	color: #3a3a3a;
	background-color: #faf8f5;
	border: 1px solid #c8c0b4;
	border-radius: 0;
	outline: none;
	resize: vertical;
	transition: border-color 0.2s;
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
}

.o-form_textarea:focus {
	border-color: #b8956a;
}

.o-form_textarea::placeholder {
	color: #bbb;
}

/* チェックボックスグループ
---------------------------------------------- */
.o-form_checkboxGroup {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.o-form_checkboxLabel {
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	font-size: 13.5px;
	color: #3a3a3a;
	line-height: 1.5;
}

.o-form_checkboxLabel input[type="checkbox"] {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin: 0;
	border: 1px solid #b8b0a4;
	border-radius: 0;
	background-color: #fff;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	transition: background-color 0.15s, border-color 0.15s;
}

.o-form_checkboxLabel input[type="checkbox"]:checked {
	background-color: #b8956a;
	border-color: #b8956a;
}

.o-form_checkboxLabel input[type="checkbox"]:checked::after {
	content: '';
	display: block;
	position: absolute;
	top: 2px;
	left: 5px;
	width: 5px;
	height: 10px;
	border-right: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: rotate(45deg);
}

/* ラジオボタングループ
---------------------------------------------- */
.o-form_radioGroup {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.o-form_radioLabel {
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	font-size: 13.5px;
	color: #3a3a3a;
	line-height: 1.5;
}

.o-form_radioLabel input[type="radio"] {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin: 0;
	border: 1px solid #b8b0a4;
	border-radius: 50%;
	background-color: #fff;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	transition: border-color 0.15s;
}

.o-form_radioLabel input[type="radio"]:checked {
	border-color: #b8956a;
}

.o-form_radioLabel input[type="radio"]:checked::after {
	content: '';
	display: block;
	position: absolute;
	top: 3px;
	left: 3px;
	width: 10px;
	height: 10px;
	background-color: #b8956a;
	border-radius: 50%;
}

/* その他テキスト欄
---------------------------------------------- */
.o-form_otherText {
	margin-top: 4px;
	margin-left: 30px;
	width: calc(100% - 30px);
	font-size: 13px;
}

.o-form_otherText:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

/* エラーメッセージ
---------------------------------------------- */
.o-form_error {
	display: none;
	margin-top: 6px;
	font-size: 12px;
	color: #c0392b;
}

/* 注記
---------------------------------------------- */
.o-form_note {
	margin-top: 40px;
	font-size: 12px;
	line-height: 1.9;
	color: #888;
	text-align: center;
}

/* 送信ボタン
---------------------------------------------- */
.o-form_submitWrap {
	margin-top: 40px;
	text-align: center;
}

.o-form_submit {
	display: inline-block;
	min-width: 200px;
	padding: 16px 40px;
	font-size: 14px;
	letter-spacing: 0.2em;
	color: #fff;
	background-color: #3a3a3a;
	border: 1px solid #3a3a3a;
	cursor: pointer;
	outline: none;
	transition: background-color 0.2s, color 0.2s;
	-webkit-appearance: none;
	appearance: none;
}

.o-form_submit:hover {
	background-color: #b8956a;
	border-color: #b8956a;
}

.o-form_submit:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* サンクスメッセージ
---------------------------------------------- */
.o-form-thanks {
	display: none;
	text-align: center;
	padding: 60px 0 40px;
}

.o-form-thanks_title {
	font-size: 32px;
	font-weight: 400;
	letter-spacing: 0.15em;
	color: #3a3a3a;
	margin-bottom: 28px;
}

.o-form-thanks_text {
	font-size: 14px;
	line-height: 2.2;
	color: #555;
	margin-bottom: 48px;
}

.o-form-thanks_nav {
	margin-top: 40px;
}

.o-form-thanks_navTitle {
	font-size: 12px;
	letter-spacing: 0.2em;
	color: #aaa;
	margin-bottom: 20px;
}

.o-form-thanks_nav nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px 24px;
	margin-bottom: 32px;
}

.o-form-thanks_nav nav a {
	font-size: 12px;
	letter-spacing: 0.12em;
	color: #3a3a3a;
	text-decoration: none;
	border-bottom: 1px solid #c8c0b4;
	padding-bottom: 2px;
	transition: color 0.2s;
}

.o-form-thanks_nav nav a:hover {
	color: #b8956a;
}

.o-form-thanks_back {
	display: inline-block;
	font-size: 12px;
	letter-spacing: 0.1em;
	color: #888;
	text-decoration: none;
}

.o-form-thanks_back::before {
	content: '← ';
}

/* スマートフォン
---------------------------------------------- */
@media (max-width: 767px) {

	.o-pageHeader {
		padding: 40px 20px 28px;
	}

	.o-form-section {
		padding: 40px 20px 60px;
	}

	.o-form-intro {
		padding: 24px 20px;
		margin-bottom: 36px;
	}

	.o-form-intro p {
		font-size: 13px;
	}

	.o-form_group {
		margin-bottom: 32px;
	}

	.o-form_submitWrap {
		margin-top: 32px;
	}

	.o-form_submit {
		width: 100%;
		max-width: 320px;
	}

	.o-form-thanks_title {
		font-size: 26px;
	}

	.o-form-thanks_nav nav {
		flex-direction: column;
		align-items: center;
		gap: 14px;
	}
}
