/* ==========================================================
   京都府社会保険協会：Snow Monkey Forms を MW WP Form のときと同じ見た目にする
   （テーマ style.css の #formArea まわりの指定を写している）
   入力欄・ファイル欄・進み具合（ul.formFlow）は、#formArea の中にあるのでテーマの指定がそのまま効く。
   ここでは、項目の並び・必須の ※・ボタンだけを写す。
   色：文字 #282f29 / ボタン #2f7773 / ホバー #86cacb / 戻る #f7f5e7 / 必須 crimson
   ========================================================== */

/* ---------- 項目：スマホは項目名が上・入力欄が下、768px 以上は左に項目名（250px・右寄せ）、右に入力欄 ---------- */
#formArea .snow-monkey-form {
	max-width: none;
}
#formArea .smf-form {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}
#formArea .smf-form > p,
#formArea .smf-form > .smf-item {
	flex: 0 0 100%;
}
#formArea .smf-form .smf-item {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	margin: 0;
	padding: 0;
	border: none;
}
#formArea .smf-form .smf-item + .smf-item {
	margin-top: 0;
}
#formArea .smf-form .smf-item__col {
	padding: 0;
}
/* dt と同じ */
#formArea .smf-form .smf-item__col--label {
	flex: 0 0 100%;
	max-width: 100%;
	padding: 5px 0 0 0;
	margin: 0 0 15px;
	text-align: left;
}
/* dd と同じ */
#formArea .smf-form .smf-item__col--controls {
	flex: 0 0 100%;
	max-width: 100%;
	margin: 0 0 15px;
	align-self: center;
}
#formArea .smf-form .smf-item__label {
	margin: 0;
	font-size: inherit;
	font-weight: bold; /* 今の dt は太字 */
}
#formArea .smf-form .smf-item__label label {
	font-weight: bold;
	margin: 0;
}
/* 必須の ※（.att と同じ） */
#formArea .smf-form .smf-item.is-required .smf-item__label__text::after {
	content: "※";
	color: crimson;
	font-size: 12px;
}
#formArea .smf-form .smf-item__controls {
	width: 100%;
}
#formArea .smf-form .smf-text-control,
#formArea .smf-form .smf-textarea-control {
	display: block;
	width: 100%;
}
@media print, screen and (min-width: 768px) {
	#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);
	}
}

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

/* ---------- ボタン（#formArea .btnArea .submit / .return と同じ丸ボタン） ---------- */
#formArea .smf-action {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin: 31px 0 0; /* 今のボタンは、最後の項目の下 31px にある */
}
#formArea .smf-action .smf-button-control {
	flex: 0 0 100%;
	display: flex;
	margin: 0;
}
@media screen and (max-width: 767px) {
	#formArea .smf-action .smf-button-control {
		margin-bottom: 25px; /* 今のスマホ幅は、ボタンの下に 25px */
	}
}
#formArea .smf-action .smf-button-control__control {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	max-width: 240px;
	height: 50px;
	margin: 0 auto;
	padding: 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: normal;
	color: #fff;
	background: #2f7773;
	border: 1px solid #2f7773;
	border-radius: 50px;
	box-shadow: none;
	cursor: pointer;
	transition: 0.3s ease-in;
}
/* 今のボタンには矢印は出ていない（実際の表示で確認済み）ので、矢印は付けない */
#formArea .smf-action .smf-button-control__control:hover,
#formArea .smf-action .smf-button-control__control:focus {
	color: #000;
	background: #86cacb;
	border-color: #86cacb;
}

/* ---------- お問合せ内容（今のテキストエリアは inline-block で、下に文字の行ぶんの隙間（8px）が出る。同じ高さにそろえる） ---------- */
#formArea .smf-form textarea {
	display: inline-block;
	vertical-align: baseline;
}

/* ---------- ファイルの添付（今の標準のファイル欄と同じ、高さ 24px ＋ 下の余白 10px） ---------- */
#formArea .smf-form .smf-file-control {
	display: block;
	margin: 0 0 10px;
}
#formArea .smf-form .smf-file-control__control {
	margin: 0;
}
#formArea .smf-form .smf-file-control > label {
	display: flex;
	align-items: center;
	height: 24px;
	font-size: 16px;
	font-weight: 400;
}

/* ---------- 確認画面：「戻る」（クリーム色の丸）と「送信する」 ---------- */
/* 今のページは、PC では左右に並ぶ（戻る＝左半分の右寄せ、送信する＝右半分の左寄せ）、スマホでは「戻る」が上・「送信する」が下 */
#formArea .snow-monkey-form[data-screen="confirm"] .smf-action {
	margin-top: 30px; /* 確認画面は、最後の項目の下 30px（入力画面は 31px） */
}
#formArea .smf-action .smf-button-control__control[data-action="back"] {
	color: #2f7773;
	background: #f7f5e7;
	border: 1px solid #86cacb;
	margin: 0 auto; /* スマホ幅は中央（PC 幅は下で右寄せ） */
}
#formArea .smf-action .smf-button-control__control[data-action="back"]:hover,
#formArea .smf-action .smf-button-control__control[data-action="back"]:focus {
	color: #86cacb;
	background: #fff;
	border-color: #86cacb;
}
#formArea .smf-action .smf-button-control:has([data-action="back"]) {
	margin-bottom: 20px;
}
@media print, screen and (min-width: 768px) {
	#formArea .smf-action:has([data-action="back"]) {
		flex-wrap: nowrap;
		padding-left: 10px; /* 今のページは、2つのボタンの並びが左から 5px 内側から始まる（半分ずつなので、10px の半分） */
	}
	#formArea .smf-action .smf-button-control__control[data-action="back"] {
		margin: 0 0 0 auto;
	}
	#formArea .smf-action .smf-button-control:has([data-action="back"]) {
		flex: 0 0 50%;
		padding-right: 20px;
		margin-bottom: 20px;
	}
	#formArea .smf-action .smf-button-control:has([data-action="complete"]) {
		flex: 0 0 50%;
		margin-bottom: 0;
	}
	#formArea .smf-action .smf-button-control__control[data-action="complete"] {
		margin: 0 auto 0 0;
	}
}
#formArea .smf-form .smf-file-control__label {
	height: 24px;
	padding: 0 6px;
	line-height: 22px;
	font-size: 16px;
	box-sizing: border-box;
}
