/* ==========================================================
   やんばる酒造：Snow Monkey Forms を MW WP Form のときと同じ見た目にする
   本サイト（テーマ takazato）とツアー（テーマ base）で同じファイルを使う。
   テーマの違いは body のクラスで分ける（mu-plugin が付ける）
     .tkz-smf-takazato … 本サイト：項目名は右寄せ、ボタンは白地に黒い枠（確認画面の「戻る」は水色）
     .tkz-smf-base     … ツアー：項目名は左寄せ、ボタンは深緑
   入力欄の色・余白はテーマの #formArea input の指定がそのまま効く
   ========================================================== */

/* 「※は必須項目です。」（p の下 20px） */
#formArea .smf-form .smf-note {
	margin: 0 0 20px;
}

/* ---------- 項目（dl / dt / dd と同じ） ---------- */
#formArea .snow-monkey-form {
	max-width: none;
}
#formArea .smf-form .smf-item {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	border: none;
}
/* dl の下の 30px（最後の項目の下） */
#formArea .smf-form .smf-item:not(:has(~ .smf-item)) {
	margin-bottom: 30px;
}
#formArea .smf-form .smf-item__col {
	padding: 0;
	margin: 0;
	max-width: none;
}
#formArea .smf-form .smf-item__col--label {
	flex: 0 0 100%;
	width: 100%;
	font-weight: 700;
	padding: 5px 0 0;
	margin: 0 0 15px;
}
#formArea .smf-form .smf-item__col--controls {
	flex: 0 0 100%;
	width: 100%;
	margin: 0 0 15px;
	align-self: center;
}
/* 項目名（dt：太字） */
#formArea .smf-form .smf-item__label {
	display: block;
	margin: 0;
	font-size: inherit;
	font-weight: 700;
	line-height: inherit;
	text-align: left;
}
#formArea .smf-form .smf-item__label label {
	font-weight: 700;
	margin: 0;
}
/* 必須（.att：赤い「※」を項目名のすぐ後ろに） */
#formArea .smf-form .smf-item.is-required .smf-item__label::after {
	content: "※";
	font-size: 12px;
	color: crimson;
}
@media print, screen and (min-width: 768px) {
	#formArea .smf-form .smf-item__col--label {
		flex: 0 0 250px;
		width: 250px;
	}
	#formArea .smf-form .smf-item__col--controls {
		flex: 0 0 calc(100% - 280px);
		width: calc(100% - 280px);
	}
	.tkz-smf-takazato #formArea .smf-form .smf-item__label {
		text-align: right;
	}
	/* ツアーの PC は dt に上の余白・下の余白がない */
	.tkz-smf-base #formArea .smf-form .smf-item__col--label {
		padding: 0;
		margin: 0;
	}
}

/* ---------- 入力欄 ---------- */
#formArea .smf-form .smf-text-control,
#formArea .smf-form .smf-textarea-control {
	display: block;
	width: 100%;
}
#formArea .smf-form .smf-text-control__control,
#formArea .smf-form .smf-textarea-control__control {
	border-radius: 0;
	box-shadow: none;
	font-size: inherit;
	line-height: 1.15; /* normalize.css と同じ（Snow Monkey Forms の CSS が上書きするため戻す） */
	color: #000;
}
#formArea .smf-form .smf-text-control__control:focus,
#formArea .smf-form .smf-textarea-control__control:focus {
	border-color: #eeeeee;
	box-shadow: none;
}
#formArea .smf-form textarea {
	vertical-align: baseline;
}
/* お問い合わせ内容の上の赤い注意書き（テーマの p と同じく下に 20px） */
#formArea .smf-form .smf-item__controls > p {
	margin: 0 0 20px;
}
/* 本サイトはお問い合わせ内容の欄が p の中にあったので、下に p の余白（20px） */
.tkz-smf-takazato #formArea .smf-form .smf-placeholder[data-name="message"] {
	margin-bottom: 20px;
}
#formArea .smf-form textarea {
	display: inline-block; /* 行の中に置かれていたときと同じ下のすき間 */
}

/* ご予約内容（ブラウザ標準のセレクト） */
#formArea .smf-form .smf-select-control {
	display: inline-block;
	width: auto;
	max-width: 100%;
}
#formArea .smf-form .smf-select-control__toggle {
	display: none;
}
#formArea .smf-form .smf-select-control__control {
	-webkit-appearance: auto;
	appearance: auto;
	display: block;
	width: auto;
	max-width: 100%;
	padding: 5px 10px;
	margin: 0 0 5px;
	border: 1px solid #e7e7e7;
	border-radius: 0;
	background: #fff;
	box-shadow: none;
	font-size: 16px;
	line-height: normal;
	color: #000;
}

/* 予定人数（入力欄は幅 10%、すぐ後ろに「人」） */
#formArea .smf-form .smf-item.is-people .smf-item__controls {
	display: flex;
}
#formArea .smf-form .smf-item.is-people .smf-placeholder {
	flex: 0 0 10%;
	width: 10%;
	margin-right: 10px;
}

/* ご希望日（カレンダーの入力欄は上下 5px） */
#formArea .smf-form .smf-item.is-date .smf-text-control__control {
	margin: 5px 0;
}
#formArea .smf-form .smf-item.is-date .att {
	margin: 0;
	color: crimson;
	font-size: 12px;
}

/* ---------- 入力エラー ---------- */
#formArea .smf-error-messages {
	margin: 5px 0 0;
	color: crimson;
	font-size: 14px;
}
#formArea .smf-form .smf-item.is-people .smf-error-messages {
	white-space: nowrap;
}

/* ---------- ボタン ---------- */
#formArea .smf-action {
	margin: 0;
}
#formArea .smf-action .smf-button-control {
	display: block;
	margin: 0;
}
#formArea .smf-action .smf-button-control__control {
	display: block;
	width: 100%;
	height: 60px;
	margin: 0 auto;
	background-image: none;
	box-shadow: none;
	font-family: inherit;
	font-weight: 400;
	line-height: 1.15;
	text-align: center;
	cursor: pointer;
	transition: .3s;
}

/* 本サイト：白地に黒い枠（乗せると深緑）。確認画面は「戻る」（水色）の下に「送信する」 */
.tkz-smf-takazato #formArea .smf-action {
	margin: 40px 0;
}
/* 入力画面はボタンの前に改行（br）が1つあった */
.tkz-smf-takazato #formArea .snow-monkey-form[data-screen="input"] .smf-action {
	padding-top: 25px;
}
.tkz-smf-takazato #formArea .smf-action .smf-button-control__control {
	max-width: 240px;
	padding: 0 30px;
	border: 1px solid #1d1f1e;
	border-radius: 4px;
	background: transparent;
	color: #1d1f1e;
	font-size: 12px;
}
.tkz-smf-takazato #formArea .smf-action .smf-button-control__control:hover,
.tkz-smf-takazato #formArea .smf-action .smf-button-control__control:focus {
	color: #fff;
	background: #51655f;
	border-color: #51655f;
}
.tkz-smf-takazato #formArea .smf-action .smf-button-control:has([data-action="back"]) {
	margin-bottom: 40px;
}
.tkz-smf-takazato #formArea .smf-action [data-action="back"] {
	padding: .4em 0;
	border: 2px solid #000;
	background: #16b0e4;
	color: #fff;
	font-size: 14px;
}
.tkz-smf-takazato #formArea .smf-action [data-action="back"]:hover,
.tkz-smf-takazato #formArea .smf-action [data-action="back"]:focus {
	color: #fff;
	background: #000;
	border-color: #000;
}

/* ツアー：深緑に薄い灰色の枠と影。確認画面は PC で左右に並べる（「戻る」は右寄せ・黒い文字） */
.tkz-smf-base #formArea .smf-action {
	display: flex;
	justify-content: space-between;
}
.tkz-smf-base #formArea .smf-action .smf-button-control {
	flex-basis: 100%;
	margin: 0 5px;
}
.tkz-smf-base #formArea .smf-action .smf-button-control__control {
	max-width: 290px;
	padding: 0;
	border: 3px solid #efefef;
	border-radius: 0;
	background: #51655f;
	box-shadow: 0 3px 6px rgba(0, 0, 0, .16);
	color: #fff;
	font-size: 16px;
}
.tkz-smf-base #formArea .smf-action .smf-button-control__control:hover,
.tkz-smf-base #formArea .smf-action .smf-button-control__control:focus {
	color: #fff;
	background: #51655f;
	border-color: #51655f;
}
.tkz-smf-base #formArea .smf-action .smf-button-control:has([data-action="back"]) {
	margin: 0;
}
.tkz-smf-base #formArea .smf-action [data-action="back"] {
	margin: 0 0 0 auto;
	padding: .4em 0;
	color: #fff; /* 11/9 ユーザー指示で白に（MW WP Form のときは黒） */
	font-size: 14px;
}
.tkz-smf-base #formArea .smf-action [data-action="back"]:hover,
.tkz-smf-base #formArea .smf-action [data-action="back"]:focus {
	color: #fff;
	background: #000;
	border-color: #efefef;
}
@media screen and (max-width: 767px) {
	.tkz-smf-base #formArea .smf-action {
		flex-wrap: wrap;
	}
	.tkz-smf-base #formArea .smf-action .smf-button-control {
		margin: 0 0 25px;
	}
	.tkz-smf-base #formArea .smf-action .smf-button-control:has([data-action="back"]) {
		margin: 0 0 10px;
	}
	.tkz-smf-base #formArea .smf-action [data-action="back"] {
		margin: 0 auto;
	}
}
