/* ==========================================================
   KSC：Snow Monkey Forms のお問い合わせを、MW WP Form のときと同じ見た目にする
   （テーマ style.css の #formArea まわりの指定と、/contact/ の実測値に合わせている）
   色：文字 #333 / 入力欄 #EEEEEE（文字 #000） / 必須 #cc0000 / ボタン 白地・黒枠
   ========================================================== */

#formArea .snow-monkey-form {
	max-width: none;
}

/* ---------- 項目：左に項目名（250px・右寄せ）、右に入力欄（#formArea dl dt / dd と同じ） ---------- */
#formArea .smf-form .smf-item {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	border: none;
}
#formArea .smf-form .smf-item + .smf-item {
	margin-top: 0;
}
#formArea .smf-form .smf-item__col {
	padding: 0;
	margin: 0;
}
#formArea .smf-form .smf-item__col--label {
	flex: 0 0 250px;
	max-width: 250px;
	text-align: right;
}
#formArea .smf-form .smf-item__col--controls {
	flex: 0 0 calc(100% - 280px);
	max-width: calc(100% - 280px);
	margin-bottom: 15px; /* dd の margin-bottom */
}
#formArea .smf-form .smf-item__label,
#formArea .smf-form .smf-item__label label {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.6;
	color: #333;
}
/* 必須（.att と同じ赤い札） */
#formArea .smf-form .smf-item.is-required .smf-item__label__text::after {
	content: "必須";
	color: #fff;
	background: #cc0000;
	font-size: 0.8em;
	padding: 0.3em;
	border-radius: 0.5em;
	margin-left: 0.2em;
}

/* ---------- 入力欄（#formArea input[type=text] などと同じ。tel はテーマの指定に入っていないのでここで合わせる） ---------- */
#formArea .smf-form input[type="text"],
#formArea .smf-form input[type="email"],
#formArea .smf-form input[type="tel"],
#formArea .smf-form textarea {
	display: inline-block;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 8px .5em 8px 10px;
	background: #EEEEEE;
	border: 1px solid #EEEEEE;
	border-radius: 0;
	box-shadow: none;
	overflow: hidden;
	font-size: 16px;
	line-height: 1.15; /* テーマの normalize.css と同じ（Snow Monkey Forms の CSS が上書きするため戻す） */
	color: #000;
}
#formArea .smf-form textarea {
	vertical-align: baseline;
}
#formArea .smf-form input[type="text"]:hover,
#formArea .smf-form input[type="text"]:focus,
#formArea .smf-form input[type="email"]:hover,
#formArea .smf-form input[type="email"]:focus,
#formArea .smf-form input[type="tel"]:hover,
#formArea .smf-form input[type="tel"]:focus,
#formArea .smf-form textarea:hover,
#formArea .smf-form textarea:focus {
	background: #fff;
	outline: none;
}
#formArea .smf-form .smf-text-control,
#formArea .smf-form .smf-textarea-control {
	display: block;
	width: 100%;
}

/* ---------- 個人情報の取り扱い（.pp_text はテーマの指定がそのまま効く。上の余白だけ dl の margin-bottom 30px に合わせる） ---------- */
#formArea .smf-form .pp_text {
	margin-top: 30px;
}

/* ---------- 入力エラー ---------- */
#formArea .smf-error-messages {
	margin: 5px 0 0;
	color: #cc0000;
	font-size: 14px;
	font-weight: 700;
}

/* ---------- ボタン（.btn と同じ：190×50・白地・黒枠・角丸10px。ホバーで黒地に白文字） ---------- */
#formArea .smf-action {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin: 20px 0 0; /* .pp_text の margin-bottom 20px */
}
#formArea .smf-action .smf-button-control {
	display: block;
	margin: 0;
}
#formArea .smf-action .smf-button-control__control {
	display: flex;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
	width: 190px;
	max-width: 100%;
	height: 50px;
	margin: 0;
	padding: 0 6px;
	background: #fff; /* background-image のグラデーションも消す */
	color: #000;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	border: 2px solid #000;
	border-radius: 10px;
	box-shadow: none;
	cursor: pointer;
	transition: color 150ms ease-in-out, background 150ms ease-in-out;
}
/* 確認画面の「戻る」「送信する」は枠が 1px（.mw_wp_form_confirm のとき） */
#formArea .snow-monkey-form[data-screen="confirm"] .smf-action .smf-button-control__control {
	border-width: 1px;
}
#formArea .smf-action .smf-button-control__control:hover,
#formArea .smf-action .smf-button-control__control:focus {
	background: #000;
	color: #fff;
	border-color: #000;
}

/* ---------- スマホ（テーマの max-width: 767px と同じ） ---------- */
@media screen and (max-width: 767px) {
	#formArea .smf-form .smf-item__col--label,
	#formArea .smf-form .smf-item__col--controls {
		flex: 0 0 100%;
		max-width: 100%;
	}
	#formArea .smf-form .smf-item__col--label {
		padding: 5px 0 0 0;
		margin: 0 0 15px;
		text-align: left;
	}
}

/* 確認画面：MW WP Form では「戻る」の右端がページの中央、「送信する」がその 10px 右だった */
@media screen and (min-width: 768px) {
	#formArea .snow-monkey-form[data-screen="confirm"] .smf-action {
		padding-left: 10px;
	}
}

/* 確認画面（スマホ）：MW WP Form では「戻る」の真下に「送信する」が左寄せで並んでいたが、入力画面のボタンと同じく中央にそろえる */
@media screen and (max-width: 767px) {
	#formArea .snow-monkey-form[data-screen="confirm"] .smf-action {
		flex-direction: column;
		align-items: center;
		gap: 0;
	}
}
