/* ==========================================================
   TEAM AKIND：Snow Monkey Forms を MW WP Form のときと同じ見た目にする
   （テーマ style.css の #formArea まわりの指定を写している）
   色：文字 #2B2D2B / ボタン #3FC1B0 / 必須 #FF0000 / 枠 #919191
   ========================================================== */

/* ---------- 項目：左に項目名（250px）、右に入力欄（#formArea 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 0 50px;
	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: left;
}
#formArea .smf-form .smf-item__col--controls {
	flex: 0 0 calc(100% - 280px);
	max-width: calc(100% - 280px);
}
#formArea .smf-form .smf-item__label {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
}
#formArea .smf-form .smf-item__label label {
	font-weight: 700;
	margin: 0;
}
/* 必須の ※（.att と同じ） */
#formArea .smf-form .smf-item.is-required .smf-item__label__text::after {
	content: "※";
	color: #FF0000;
	font-size: 16px;
	font-weight: 700;
	margin-left: 10px;
}

/* ---------- 入力欄（テーマの input[type=text] などと同じ） ---------- */
#formArea .smf-form input[type="text"],
#formArea .smf-form input[type="email"],
#formArea .smf-form textarea {
	padding: 13px 30px;
	margin: 0;
	background: #fff;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
	border: 1px solid #919191;
	border-radius: 0;
	box-shadow: none;
	font-size: inherit;
	line-height: 1.15; /* テーマの normalize.css と同じ（Snow Monkey Forms の CSS が上書きするため戻す） */
	color: #000; /* 今の入力欄の文字は黒（本文の色 #2B2D2B ではない） */
}
/* 今のフォームはテキストエリアが inline-block で、下に文字の行ぶんの隙間（6px）が出る。同じ高さにそろえる */
#formArea .smf-form textarea {
	display: inline-block;
	vertical-align: baseline;
}
#formArea .smf-form .smf-text-control,
#formArea .smf-form .smf-textarea-control {
	display: block;
	width: 100%;
}

/* ---------- 同意のチェックボックス（テーマの input[type=checkbox] と同じ 28px の四角） ---------- */
#formArea .smf-form .smf-item__controls {
	width: 100%;
}
#formArea .smf-form .smf-pre-text {
	display: inline;
}
#formArea .smf-form .smf-placeholder[data-name="agree"],
#formArea .smf-form .smf-placeholder[data-name="agree"] > div, /* 確認画面では、この div に値の文字が入る */
#formArea .smf-form .smf-placeholder[data-name="agree"] .smf-checkboxes-control,
#formArea .smf-form .smf-placeholder[data-name="agree"] .smf-checkboxes-control__control,
#formArea .smf-form .smf-placeholder[data-name="agree"] .smf-label {
	display: inline;
}
#formArea .smf-form .smf-checkbox-control {
	display: inline-block;
	margin: 5px 5px;
	font-size: 14px;
}
#formArea .smf-form .smf-checkbox-control label,
#formArea .smf-form label:has(.smf-checkbox-control) {
	display: inline;
	margin: 0;
}
#formArea .smf-form input[type="checkbox"] {
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	box-sizing: border-box;
	width: 28px;
	height: 28px;
	margin: 0 5px 0 0;
	vertical-align: -8px;
	background: #fff;
	border: 1px solid #919191;
	border-radius: 0;
	box-shadow: none;
}
#formArea .smf-form input[type="checkbox"]:checked {
	background: #2B2D2B;
	border: 1px solid #2B2D2B;
}
#formArea .smf-form input[type="checkbox"]:checked::before {
	position: absolute;
	left: 1px;
	top: 16px;
	display: block;
	content: "";
	width: 10px;
	height: 4px;
	background: #fff;
	transform: rotate(45deg);
	transform-origin: right center;
}
#formArea .smf-form input[type="checkbox"]:checked::after {
	position: absolute;
	left: 9px;
	top: 16px;
	display: block;
	content: "";
	width: 16px;
	height: 4px;
	background: #fff;
	transform: rotate(-53deg);
	transform-origin: left center;
}

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

/* ---------- ボタン（#formArea .btnArea .submit / .return と同じ丸ボタン） ---------- */
#formArea .smf-action {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 80px 0 0; /* 今のボタンは、最後の項目の下 80px にある（項目の下の余白 50px は重なるので、80px と書く） */
}
#formArea .smf-action .smf-button-control {
	flex: 1 1 100%;
	display: flex;
	justify-content: center;
	margin: 0;
}
#formArea .smf-action .smf-button-control__control {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	max-width: 256px;
	height: 60px;
	margin: 0 auto;
	padding: 20px 10px;
	background: #3FC1B0;
	color: #fff;
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0.08em;
	line-height: 1.5;
	border: #3FC1B0 solid 2px;
	border-radius: 32px;
	box-shadow: none;
	cursor: pointer;
}
#formArea .smf-action .smf-button-control__control:hover,
#formArea .smf-action .smf-button-control__control:focus {
	color: #fff;
	background: #3FC1B0;
	border-color: #3FC1B0;
	transition: 0.3s;
}

/* ---------- スマホ（テーマの max-width: 767px と同じ） ---------- */
@media screen and (max-width: 767px) {
	#formArea .smf-form .smf-item {
		margin-bottom: 15px;
	}
	#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;
	}
	#formArea .smf-form .smf-checkbox-control {
		display: block;
		width: 100%;
	}
	/* 確認画面：「送信する」を上、「戻る」を下に並べる（テーマと同じ column-reverse） */
	#formArea .smf-action {
		flex-wrap: wrap;
		flex-direction: column-reverse;
		margin-top: 45px; /* 項目の下の余白 15px ＋ 30px（デスクトップは 50px ＋ 30px） */
	}
	#formArea .smf-action .smf-button-control {
		flex: 0 0 auto;
		width: 100%;
		margin: 0 0 25px;
	}
}

/* スパム対策の隠し欄：画面の外へ追い出して、人間の目には触れさせない（display:none は見分けるボットがいるため使わない） */
.snow-monkey-form .smf-item.smf-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
}
