@charset "UTF-8";
/* ============================================================
 * お問い合わせフォーム（メールフォームプロ）
 * テーマの assets/css/style.css のフォームスタイルを前提に、
 * メールフォームプロ固有の要素（エラー・確認画面・読み込み中）と
 * エリア→会場の選択部分だけを追加する。
 * mailformpro.css はテーマのフォームスタイルを上書きするため読み込まない。
 * ============================================================ */

/* エリア → 会場
--------------------------------------------------------------- */
.venue-select__heading {
	display: block;
	margin: 6px 0 8px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.venue-select__areas {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin: 0 0 10px;
}

.venue-select__areas label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
}

.venue-select__venues {
	margin: 10px 0 0;
}

/* 未選択（「会場を選択してください」）のときだけ文字を薄くする
 * メールフォームプロが初期化時に required を外すため :invalid は使えない。空の選択肢が選ばれているかで判定する */
.venue-select__venues select:has(option[value=""]:checked) {
	color: #9E9A90;
}

.venue-select__venues select option {
	color: #000000;
}

/* テキストエリア
--------------------------------------------------------------- */
#mailformpro .textarea {
	line-height: 1.6;
}

/* エラー
 * 既存の MW WP Form（.mw_wp_form .error ＋ テーマの .error）と同じ見た目に揃える
 * 表示・非表示はメールフォームプロが切り替えるので display: none のみ指定
--------------------------------------------------------------- */
#mailformpro div.mfp_err {
	display: none;
	margin-top: 5px;
	color: #B70000;
	font-size: 93%;
}

div#mfp_warning,
div#mfp_error {
	display: none;
	margin: 0 0 30px;
	color: #B70000;
	text-align: center;
}

/* 確認画面（ConfirmationMode = 1：フラット）
--------------------------------------------------------------- */
div#mfp_phase_confirm {
	clear: both;
}

div#mfp_phase_confirm h4 {
	margin: 0 0 40px;
	color: #9E9A90;
	font-size: 1.6rem;
	font-weight: normal;
	text-align: center;
}

table#mfp_confirm_table {
	width: 100%;
	border-collapse: collapse;
	color: #9E9A90;
	line-height: 1.8;
}

table#mfp_confirm_table tr th,
table#mfp_confirm_table tr td {
	padding: 12px 0;
	border-bottom: 1px solid #EEEEEE;
	text-align: left;
	vertical-align: top;
}

table#mfp_confirm_table tr th {
	width: 28%;
	padding-right: 20px;
	font-weight: normal;
}

table#mfp_confirm_table tr td {
	font-weight: 700;
	word-break: break-all;
}

div.mfp_buttons {
	margin: 80px 0 0;
	text-align: center;
}

div.mfp_buttons button {
	display: block;
	width: 260px;
	margin: 0 auto;
	padding: 22px 0;
	font-size: 1.2rem;
	letter-spacing: 1px;
	cursor: pointer;
	transition: all .2s;
	box-sizing: border-box;
	-webkit-appearance: none;
	border-radius: 0;
}

div.mfp_buttons button#mfp_button_send {
	color: #FFFFFF;
	background: #c99791;
	border: 1px solid #c99791;
}

div.mfp_buttons button#mfp_button_send:hover {
	color: #c99791;
	background: #FFFFFF;
}

div.mfp_buttons button#mfp_button_cancel {
	margin-top: 10px;
	color: #FFFFFF;
	background: #B5B5B5;
	border: 1px solid #B5B5B5;
}

div.mfp_buttons button#mfp_button_cancel:hover {
	color: #B5B5B5;
	background: #FFFFFF;
}

/* 確認ボタン（入力画面）
--------------------------------------------------------------- */
#mailformpro .btns button {
	-webkit-appearance: none;
	border-radius: 0;
}

/* 読み込み中・メールフォームプロの内部要素
--------------------------------------------------------------- */
div#mfp_hidden {
	overflow: hidden;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
}

div#mfp_overlay,
div#mfp_overlay_background {
	display: none;
	position: absolute;
}

div#mfp_loading_screen {
	display: none;
	position: absolute;
	z-index: 20000;
	background-color: #FFFFFF;
	opacity: 0.8;
}

div#mfp_loading {
	display: none;
	position: absolute;
	z-index: 20001;
	width: 40px;
	height: 40px;
	background-image: url(../mfp.statics/_images/mfp_loading.gif);
}

@media screen and (max-width: 768px) {
	.venue-select__areas {
		gap: 8px 14px;
	}

	/* ご来店希望日時：「第一希望」「時間」のラベル列と入力列を揃える */
	#mailformpro .choice {
		display: grid;
		grid-template-columns: 5.7em minmax(0, 1fr);
		align-items: center;
		gap: 5px 0;
		margin: 0 0 10px;
	}

	#mailformpro .choice>span {
		width: auto;
		margin: 0;
		padding: 0;
	}

	#mailformpro .choice .text-input.small,
	#mailformpro .choice .wrap.small {
		width: 100%;
		margin: 0;
	}

	#mailformpro .choice .mfp_err {
		grid-column: 1 / -1;
	}

	table#mfp_confirm_table tr th,
	table#mfp_confirm_table tr td {
		display: block;
		width: 100%;
		padding: 10px 0;
	}

	table#mfp_confirm_table tr th {
		padding-bottom: 0;
		border-bottom: none;
	}

	div.mfp_buttons {
		margin: 40px 0 0;
	}
}
