/*
 * Mailform Pro 共通フォーム
 * CGIごとの付属CSSより後に読み込み、入力画面と確認画面を統一する。
 */
body:has(form#mailformpro) form#mailformpro{
	font-size:.95rem;
	line-height:1.7;
}

body:has(form#mailformpro) .start-form-page .start-form-heading h1{
	font-size:1.75rem;
	line-height:1.5;
}

body:has(form#mailformpro) .start-form-page .form-lead,
body:has(form#mailformpro) .start-form-page .photo-form-caution{
	font-size:.95rem;
	line-height:1.75;
}

body:has(form#mailformpro) .start-form-page .form-lead p,
body:has(form#mailformpro) .start-form-page .form-lead li,
body:has(form#mailformpro) .start-form-page .photo-form-caution p,
body:has(form#mailformpro) .start-form-page .photo-form-caution li{
	font-size:inherit;
	line-height:inherit;
}

body:has(form#mailformpro) form#mailformpro > * + *{
	margin-top:.35rem;
}

body:has(form#mailformpro) form#mailformpro > .form-card + .form-card{
	margin-top:.25rem;
}

body:has(form#mailformpro) form#mailformpro .form-group-title{
	margin:1.4rem 0 .15rem;
	padding:0;
	border:0;
	border-radius:0;
	background:transparent;
	color:#222;
	font-size:1.2rem;
	font-weight:700;
	line-height:1.5;
	text-align:center;
}

body:has(form#mailformpro) form#mailformpro .photo-confirm-card p{
	line-height:1.75;
}

body:has(form#mailformpro) form#mailformpro .photo-confirm-card .check{
	display:flex;
	align-items:center;
	width:100%;
	min-height:3.25rem;
	box-sizing:border-box;
	margin:.7rem 0 0;
	padding:.7rem .85rem;
	font-size:.92rem;
	line-height:1.55;
}

body:has(form#mailformpro) form#mailformpro .photo-confirm-card .check input[type=checkbox]{
	align-self:center;
	margin-top:0;
	margin-bottom:0;
}

body:has(form#mailformpro) form#mailformpro label.form-field{
	display:grid;
	grid-template-columns:minmax(0,1fr);
	align-content:start;
	gap:.45rem;
	margin-top:.8rem;
}

body:has(form#mailformpro) form#mailformpro label.form-field > span{
	display:block;
	min-height:1.4em;
	font-size:.88rem;
	font-weight:600;
}

body:has(form#mailformpro) form#mailformpro label.form-field > input,
body:has(form#mailformpro) form#mailformpro label.form-field > select,
body:has(form#mailformpro) form#mailformpro label.form-field > textarea{
	width:100%;
	margin:0;
}

body:has(form#mailformpro) form#mailformpro .form-field small{
	display:block;
	grid-column:1/-1;
	width:100%;
	margin:.1rem 0 0;
	color:#56615d;
	font-size:.78rem;
	line-height:1.6;
}

body:has(form#mailformpro) form#mailformpro fieldset label{
	display:inline-flex;
	align-items:center;
	min-height:2.8rem;
	box-sizing:border-box;
	margin:.4rem .4rem 0 0;
	padding:.5rem .8rem;
	font-size:.92rem;
	line-height:1.5;
	vertical-align:middle;
}

body:has(form#mailformpro) form#mailformpro fieldset label input[type="radio"],
body:has(form#mailformpro) form#mailformpro fieldset label input[type="checkbox"]{
	align-self:center;
	margin-top:0;
	margin-bottom:0;
}

body:has(form#mailformpro) form#mailformpro .form-note{
	font-size:.88rem;
	line-height:1.7;
}

body:has(form#mailformpro) form#mailformpro .form-card textarea{
	display:block;
	width:100%!important;
	max-width:none!important;
	min-height:8rem;
	box-sizing:border-box;
	margin:0;
}

body:has(form#mailformpro) form#mailformpro .form-submit,
body:has(form#mailformpro) form#mailformpro .form-submit.mfp_element_submit{
	display:block;
	width:min(100%,26rem);
	min-height:3.5rem;
	margin:1.5rem auto 0;
	padding:1rem 1.5rem;
	border:0;
	border-radius:999px;
	background:#009b7b;
	background-image:none;
	box-shadow:0 4px 12px rgba(0,105,83,.2);
	color:#fff!important;
	text-shadow:none;
	font-family:inherit;
	font-size:1rem;
	font-style:normal;
	font-weight:600;
	line-height:1.4;
}

body:has(form#mailformpro) form#mailformpro .form-submit:hover,
body:has(form#mailformpro) form#mailformpro .form-submit:focus-visible{
	background:#007f65;
	background-image:none;
	color:#fff!important;
	text-shadow:none;
}

body:has(form#mailformpro) form#mailformpro .form-submit:disabled{
	opacity:1;
	background:#dce4e1;
	background-image:none;
	box-shadow:none;
	color:#52605b!important;
	text-shadow:none;
	cursor:not-allowed;
}

/* Mailform Proの入力済み表示：標準の緑帯を控えめなステータス表示にする */
body:has(form#mailformpro) form#mailformpro div.mfp_ok{
	display:none;
	align-items:center;
	width:max-content;
	min-height:1.5rem;
	box-sizing:border-box;
	margin:.4rem 0 0;
	padding:.15rem .55rem;
	border:1px solid #a8d8cc;
	border-radius:999px;
	background:#f1faf7;
	background-image:none;
	box-shadow:none;
	color:#087963;
	font-size:0;
	font-weight:600;
	line-height:1;
}

body:has(form#mailformpro) form#mailformpro div.mfp_ok::before{
	content:"\2713";
	display:inline-grid;
	place-items:center;
	width:1rem;
	height:1rem;
	margin-right:.3rem;
	border-radius:50%;
	background:#0a9b7d;
	color:#fff;
	font-size:.7rem;
	font-weight:700;
	vertical-align:middle;
}

body:has(form#mailformpro) form#mailformpro div.mfp_ok::after{
	content:"入力OK";
	font-size:.72rem;
	line-height:1.2;
	vertical-align:middle;
}

/* LPガスお問い合わせフォーム */
.lpgas-contact-form-page form#mailformpro .form-card .form-field{
	width:100%;
	max-width:none;
}

.lpgas-contact-form-page form#mailformpro .form-card textarea[name="お問い合わせ内容"]{
	display:block;
	width:100%!important;
	max-width:none!important;
	min-height:12rem;
	box-sizing:border-box;
	margin:0;
}

body:has(form#mailformpro) #mfp_phase_confirm:not(:has(#mfp_phase_confirm_inner:not(:empty))){
	display:none!important;
}

body:has(form#mailformpro) #mfp_overlay,
body:has(form#mailformpro) #mfp_overlay_background{
	position:fixed!important;
	inset:0!important;
	width:100%!important;
	height:100%!important;
}

body:has(form#mailformpro) #mfp_overlay{
	overflow:visible!important;
}

body:has(form#mailformpro) #mfp_overlay_inner{
	position:fixed;
	top:50%;
	left:50%;
	width:min(92vw,46rem);
	max-width:none;
	max-height:calc(100dvh - 2rem);
	margin:0;
	padding:1rem 1.15rem;
	box-sizing:border-box;
	overflow:auto;
	background:#fff;
	border-radius:6px;
	box-shadow:0 4px 20px rgba(0,0,0,.28);
	transform:translate(-50%,-50%);
}

body:has(form#mailformpro) #mfp_overlay_inner h4{
	margin:0;
	padding:0 0 .55rem;
	font-size:1rem;
	font-weight:700;
	line-height:1.45;
	text-align:left;
}

body:has(form#mailformpro) #mfp_overlay_inner #mfp_confirm_table{
	table-layout:fixed;
	width:100%;
	margin:0;
	border-collapse:collapse;
}

body:has(form#mailformpro) #mfp_overlay_inner #mfp_confirm_table th,
body:has(form#mailformpro) #mfp_overlay_inner #mfp_confirm_table td{
	display:table-cell;
	width:auto;
	padding:.48rem .6rem;
	border-top:1px solid #d3d8d6;
	vertical-align:middle;
	text-align:left;
	font-size:.88rem;
	line-height:1.5;
	overflow-wrap:anywhere;
	word-break:normal;
	white-space:normal;
}

body:has(form#mailformpro) #mfp_overlay_inner #mfp_confirm_table th{
	width:31%;
	font-weight:700;
}

body:has(form#mailformpro) #mfp_overlay_inner .mfp_buttons{
	display:flex;
	justify-content:center;
	gap:.75rem;
	margin:.9rem 0 0;
	padding:0;
}

body:has(form#mailformpro) #mfp_overlay_inner .mfp_buttons button{
	flex:1;
	width:auto;
	min-width:0;
	min-height:3rem;
	margin:0;
	padding:.7rem 1rem;
	border:1px solid #009b7b;
	border-radius:999px;
	background:#fff;
	background-image:none;
	color:#007b63;
	text-shadow:none;
	font-family:inherit;
	font-size:.9rem;
	font-style:normal;
	font-weight:600;
	line-height:1.4;
	box-shadow:none;
	cursor:pointer;
}

body:has(form#mailformpro) #mfp_overlay_inner .mfp_buttons button:hover,
body:has(form#mailformpro) #mfp_overlay_inner .mfp_buttons button:focus-visible{
	background:#f0f7f5;
	background-image:none;
	color:#006a55;
	text-shadow:none;
}

body:has(form#mailformpro) #mfp_overlay_inner .mfp_buttons button:first-child{
	background:#009b7b;
	background-image:none;
	color:#fff;
	text-shadow:none;
}

body:has(form#mailformpro) #mfp_overlay_inner .mfp_buttons button:first-child:hover,
body:has(form#mailformpro) #mfp_overlay_inner .mfp_buttons button:first-child:focus-visible{
	background:#007f65;
	background-image:none;
	color:#fff;
	text-shadow:none;
}

@media(max-width:680px){
	body:has(form#mailformpro) .start-form-page .start-form-heading h1{
		font-size:1.4rem;
	}

	body:has(form#mailformpro) .start-form-page .form-lead,
	body:has(form#mailformpro) .start-form-page .photo-form-caution{
		font-size:.88rem;
	}

	body:has(form#mailformpro) form#mailformpro .form-group-title{
		font-size:1.05rem;
	}

	body:has(form#mailformpro) form#mailformpro .photo-confirm-card .check{
		font-size:.86rem;
	}

	body:has(form#mailformpro) form#mailformpro fieldset label{
		display:flex;
		width:100%;
		min-height:3.15rem;
		margin:.45rem 0 0;
	}

	body:has(form#mailformpro) #mfp_overlay_inner{
		width:calc(100vw - 1.5rem);
		max-height:calc(100dvh - 1.5rem);
		padding:.85rem;
	}

	body:has(form#mailformpro) #mfp_overlay_inner h4{
		font-size:.92rem;
	}

	body:has(form#mailformpro) #mfp_overlay_inner #mfp_confirm_table th,
	body:has(form#mailformpro) #mfp_overlay_inner #mfp_confirm_table td{
		display:table-cell;
		padding:.42rem .45rem;
		font-size:.78rem;
		line-height:1.45;
	}

	body:has(form#mailformpro) #mfp_overlay_inner #mfp_confirm_table th{
		width:34%;
	}

	body:has(form#mailformpro) #mfp_overlay_inner .mfp_buttons{
		flex-direction:row;
		gap:.6rem;
	}

	body:has(form#mailformpro) #mfp_overlay_inner .mfp_buttons button{
		min-height:2.8rem;
		font-size:.82rem;
	}
}
