@charset "UTF-8";

/* =========================================================
   Mailformpro Core CSS (Tailwind Compatible / Slim Version)
   ========================================================= */

/* 1. システム稼働に必須の非表示要素 */
div#mfp_hidden {
	overflow: hidden;
	width: 1px;
	height: 1px;
	padding: 0px;
	margin: 0px;
}

div#mfp_hidden input {
	margin: 10px;
}

.hidefield {
	height: 0px;
	overflow: hidden;
}

.showfield {
	height: auto;
	overflow: visible;
}

/* 2. 送信中の画面暗転・ローディング */
div#mfp_overlay {
	position: absolute;
	display: none;
	z-index: 10001;
}

div#mfp_overlay_inner {
	background-color: #FFF;
	padding: 20px;
	margin: 0px auto;
	border-radius: 5px;
	box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
	width: 640px;
	max-width: 90%;
	text-align: center;
}

div#mfp_overlay_background {
	background-color: #000;
	position: absolute;
	display: none;
	z-index: 10000;
	opacity: 0.8;
}

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

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

/* ※必要に応じて画像パスを調整してください */

/* 3. エラー・警告メッセージ（Tailwind環境でも目立つように最低限の装飾） */
div.mfp_err {
	clear: both;
	display: none;
	text-align: left;
	margin: 5px 0px 0px 0px;
	padding: 3px 0px 5px 0px;
	color: #EF4444;
	font-size: 13px;
	line-height: normal;
	font-weight: bold;
}

.mfp_parent_error {
	border: solid 2px #EF4444 !important;
	background-color: #FEF2F2 !important;
}

/* エラー項目の背景を赤く */
.problem {
	background-color: #FECACA;
}

div#mfp_error,
div#mfp_warning {
	background-color: #FEF2F2;
	border: solid 2px #EF4444;
	padding: 15px;
	display: none;
	border-radius: 5px;
	margin-bottom: 20px;
}

div#mfp_error p,
div#mfp_warning p {
	padding: 0px;
	margin: 0px;
	font-size: 15px;
	text-align: center;
}

div#mfp_error p strong,
div#mfp_warning p strong {
	font-size: 18px;
	color: #EF4444;
}

/* 4. 必須・任意バッジ（Tailwindに合わせてフラットデザイン化） */
.must {
	display: inline-block;
	background-color: #EF4444;
	padding: 2px 8px;
	font-size: 11px;
	color: #FFF;
	margin: 0px 5px;
	border-radius: 4px;
	font-weight: bold;
}

.optionally {
	display: inline-block;
	background-color: #3B82F6;
	padding: 2px 8px;
	font-size: 11px;
	color: #FFF;
	margin: 0px 5px;
	border-radius: 4px;
	font-weight: bold;
}

/* 5. 確認画面（TailwindのResetで崩れないようテーブルスタイルを保持） */
div#mfp_phase_confirm {
	clear: both;
}

div#mfp_phase_confirm h4 {
	font-size: 24px;
	padding: 10px 0px 20px 0px;
	text-align: center;
	font-weight: bold;
}

table#mfp_confirm_table {
	border-spacing: 0px;
	border-collapse: collapse;
	width: 100%;
	margin-bottom: 20px;
}

table#mfp_confirm_table tr.mfp_colored {
	background-color: #F8FAFC;
}

table#mfp_confirm_table tr.mfp_achroma {
	background-color: #FFF;
}

table#mfp_confirm_table tr th,
table#mfp_confirm_table tr td {
	text-align: left;
	font-size: 15px;
	border-top: solid 1px #E2E8F0;
	border-bottom: solid 1px #E2E8F0;
	padding: 16px;
}

table#mfp_confirm_table tr th {
	white-space: nowrap;
	width: 30%;
	font-weight: bold;
	background-color: #F1F5F9;
}

table#mfp_confirm_table tr td {
	line-height: 1.6em;
	word-break: break-all;
}

/* ボタンエリアのセンタリング */
div.mfp_buttons {
	clear: both;
	padding: 20px 0px;
	text-align: center;
	display: flex;
	justify-content: center;
	gap: 15px;
}

/* 6. 郵便番号自動入力のサジェスト画面 */
div.prefcodeResult,
div.mfpSuggestResult {
	position: absolute;
	top: 0px;
	left: 0px;
	padding: 5px;
	border: solid 1px #CBD5E1;
	background-color: #FFF;
	box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
	display: none;
	z-index: 50;
}

div.prefcodeResult div,
div.mfpSuggestResult div {
	cursor: pointer;
	padding: 8px;
}

div.prefcodeResult div:hover,
div.mfpSuggestResult div:hover {
	background-color: #E0F2FE;
}

div.prefcodeResult div.prefcodeNext,
div.mfpSuggestResult div.mfpSuggestNext {
	background-color: #F1F5F9;
	text-align: center;
}

div.prefLoading {
	padding: 60px 100px;
	background: url(../mfp.statics/_images/mfp_zip_loading.gif) no-repeat center center;
}

.prefcodeWrapper {
	position: relative;
}

.mfp_buttons button.mfp_element_button {
	display: inline-block;
	padding: 20px;
	background-color: #1e3a8a;
	color: #fff;
}

/* スマホ対応（確認画面のテーブルを縦積みにする） */
@media screen and (max-width: 800px) {

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

	table#mfp_confirm_table tr th {
		border-bottom: none;
		padding-bottom: 5px;
		background-color: transparent;
	}

	table#mfp_confirm_table tr td {
		border-top: none;
		margin-bottom: 10px;
	}

	div.mfp_buttons {
		flex-direction: column-reverse;
		align-items: center;
	}
}