@charset "utf-8";


/* ===== CloudFlare ===== */
div.cf-turnstile {
    display: flex !important;
    justify-content: center !important;
	margin-top: 30px;
}

/* SP fixのお問い合わせリンクを非表示 */
@media screen and (max-width:768px) {
	.footer_bottom {
		margin-bottom: 0;
	}
	#sp_fixed {
		display: none !important;
	}
	div.cf-turnstile {
		margin-top: 20px;
	}
}
/* ===== 非表示 ===== */
/* 送信ボタン右側のスピナー */
.wpcf7-spinner {
	display: none !important;
}
/* 承諾確認前の送信ボタン */
form .wpcf7-submit:disabled {
	opacity: .5;
}

/* ===== 項目ごとのエラーメッセージ装飾 ===== */
.wpcf7-not-valid-tip {
	font-size: 12px !important;
	line-height: 1.5 !important;
	margin-top: .75em !important;
}

/* ===== 送信ボタン下のエラーメッセージ装飾 ===== */
.wpcf7 form .wpcf7-response-output {
	width: fit-content !important;
	font-size: 12px;
	line-height: 1.7;
	margin: 2em auto 0 !important;
	padding: 0 !important;
	color: #dc3232;
	border: none !important;
}










/* -- #mail_form, dl, dt, dd -------------------------------------------------------------------------------- */

#mail_form dl:after,
#mail_form dl dt:after {
	content: ".";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
}

/* -- error message -------------------------------------------------------------------------------- */

#mail_form dl dd span.error_blank,
#mail_form dl dd span.error_format,
#mail_form dl dd span.error_match {
	font-size: clamp(12px,1.2vw,14px);
	display: block;
	color: #ff0000;
	margin-top: 5px;
}

/* -- loading -------------------------------------------------------------------------------- */

div.loading-layer {
	width:  100vw;
	height: 100vh;
	background: rgba( 0, 0, 0, 0.7 );
	position: fixed;
	left: 0px;
	top:  0px;
	z-index: 10000;
}
span.loading {
	width:  50px;
	height: 50px;
	border-radius: 50%;
	border-top:    5px solid rgba( 255, 255, 255, 0.2 );
	border-right:  5px solid rgba( 255, 255, 255, 0.2 );
	border-bottom: 5px solid rgba( 255, 255, 255, 0.2 );
	border-left:   5px solid #ffffff;
	-webkit-transform: translateZ( 0 );
	-ms-transform: translateZ( 0 );
	transform: translateZ( 0 );
	-webkit-animation: load-circle 1.0s linear infinite;
	animation: load-circle 1.0s linear infinite;
	position: absolute;
	top:  50%;
	left: 50%;
	margin-top:  -30px;
	margin-left: -30px;
}
@-webkit-keyframes load-circle {
	0% {
		-webkit-transform: rotate( 0deg );
		transform: rotate( 0deg );
	}
	100% {
		-webkit-transform: rotate( 360deg );
		transform: rotate( 360deg );
	}
}
@keyframes load-circle {
	0% {
		-webkit-transform: rotate( 0deg );
		transform: rotate( 0deg );
	}
	100% {
		-webkit-transform: rotate( 360deg );
		transform: rotate( 360deg );
	}
}




/* -- input, select, textarea -------------------------------------------------------------------------------- */

#mail_form input,
#mail_form textarea {
	width: 100%;
	outline:none !important;
}
#mail_form input[type="text"],
#mail_form input[type="email"],
#mail_form input[type="tel"],
#mail_form textarea {
	font-size: 18px;
	font-size: clamp(16px,1.6vw,18px);
	font-weight: normal;
	font-family: shippori-mincho-b1, "Shippori Mincho", serif;
	line-height: 1.3;
	letter-spacing: .1em;
	padding: .75em;
	border: none;
	border-radius: 5px;
	background: #fff;
	box-shadow: unset !important;
	appearance: none;
	-webkit-appearance: none;
}
#mail_form textarea {
	height:     200px;
	min-height: 200px;
	display: block;
	resize: vertical;
}

/* -- checkbox ------------------------------------------------------------------------------ */
.doui {
	width: fit-content;
	font-size: 14px;
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	justify-content: flex-start;
	margin-left:  auto;
	margin-right: auto;
}
#mail_form .checkboxItem {
	width: fit-content;
	line-height: 1.5;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	column-gap: 8px;
	cursor: pointer;
}
#mail_form .checkboxItem a {
	font-size: 1em;
	line-height: 1.5;
	text-decoration: underline;
}
/* 同意 checkbox */
#mail_form .checkboxItem:not(:last-of-type) {
	margin-bottom: 16px;
}
#mail_form .checkbox {
	width:  18px;
	height: 18px;
	min-width:  18px;
	min-height: 18px;
	position: relative;
	border: 1.5px solid #000;
	cursor: pointer;
	appearance: none;
	margin-right: 5px;
	transform: translateY(1px);
}
#mail_form .checkbox:checked::after {
	content: "";
	position: absolute;
	width:  22px;
    height: 10px;
    top: -4px;
    left: 1px;
	border-left:   3px solid #7f6543;
	border-bottom: 3px solid #7f6543;
	transform: rotate(-45deg);
}
/* 同意について 補足説明 */
.doui_kanri {
	width: fit-content;
	font-size: 12px;
	margin-left:  auto;
	margin-right: auto;
}


/* -- ul, li -------------------------------------------------------------------------------- */
#mail_form ul {
	list-style-type: none;
}
#mail_form ul li label {
	display: block;
	margin-top: 10px;
	padding: 7px 2%;
	border-radius: 3px;
	background: #f0f0f0;
}
#mail_form ul li:first-child label {
	margin-top: 0px;
}
#mail_form ul li label:hover {
	cursor: pointer;
	background: #e0e0e0;
}


/* -- button -------------------------------------------------------------------------------- */

#form_submit {
	width: 100%;
	width: fit-content;
	position: relative;
	line-height: 1;
	text-align: center;
	margin-top: 40px;
	margin-left:  auto;
	margin-right: auto;
	/* add */
	display: flex;
	align-items: center;
	justify-content: center;
}
#form_submit_button {
	display: flex;
	align-items: center;
	position: relative;
}
#form_submit input {
	width: auto;
	font-size: clamp(16px,1.6vw,18px);
	text-align: center;
	display: inline-block;
	color: #fff;
	background-color: #7f6543;
	border: 1px solid #7f6543;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	padding: 1em 5em;
	transition: color 0.3s, background-color .3s;
	border-radius: 5px;
	transition: color .5s, background-color .5s;
}
#form_submit svg {
	width:  1em;
	height: 1em;
	min-width:  1em;
	min-height: 1em;
	font-size: clamp(16px,1.6vw,18px);
	display: block;
	position: absolute;
	right: 1.5em;
	pointer-events: none;
}
#form_submit svg .st0 {
	fill: #fff;
	transition: fill .5s;
}
/* 動き */
#form_submit_button {
	pointer-events: none;
	opacity: .5;
	transition: opacity .3s;
}
#form_submit input:hover {
	color: #7f6543;
	background-color: #fff;
}
#form_submit_button:hover svg .st0 {
	fill: #7f6543;
}
#form_submit_button.is-disabled:hover svg .st0 {
	fill: #fff;
	
}

/* ===== プライバシーの同意なしには確認ボタンを押せない仕様 ===== */
#form_submit input:disabled {
	cursor: not-allowed !important;
	color: #fff !important;
	background-color: #7f6543 !important;
	border: 1px solid #7f6543 !important;
}
#form_submit input:disabled + svg .st0 {
	fill: #fff !important;
}
#form_submit_button.is-enabled {
	pointer-events: auto;
	opacity: 1;
}













/* -- add -------------------------------------------------------------------------------- */
/* ===== form_wrap ===== */
main {
	padding-left:   60px;
	padding-right:  60px;
	padding-left:   clamp(40px,6vw,60px);
	padding-right:  clamp(40px,6vw,60px);	
	padding-bottom: 60px;
}
.h1_wrap {
	padding-left:  0 !important;
	padding-right: 0 !important;
}

.form_wrap {
	width: 100%;
	max-width: 1120px;
	margin-left:  auto;
	margin-right: auto;
	padding: 60px clamp(40px,6vw,60px);
	background-color: #f5f2ee;
	border-radius: 5px;
}
#mail_form {
	width: 100%;
	margin-left:  auto;
	margin-right: auto;
}
.how_privacy,
.how_privacy a {
	font-size: 12px;
}
.how_privacy {
	line-height: 2;
	margin-top: 2em;
}
.how_privacy span {
	display: inline-block;
	margin-bottom: .5em;
}
.how_privacy a {
	text-decoration: underline;
}


/* ===== form_contents ===== */
form dl {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	margin: auto;
}
form dl + dl {
	margin-top: 20px;
}
form dt,
form dd {
	font-size: min(16px,1.8vw,18px);
}
form dt {
	width: 35%;
	font-weight: normal;
	letter-spacing: .05em;
}
form dd {
	width: 65%;
}
/* 郵便番号 */
#mail_form input[name="postal"] {
	width: 50% !important;
}
.postal_search_button {
	width: fit-content;
	font-size: clamp(11px,1.1vw,13px);
	font-family: arial, 'Noto Sans JP', sans-serif;
	line-height: 1;
	text-align: center;
	display: inline-block;
	position: relative;
	color: #fff;
	border: 1px solid #967963;
	background-color: #967963;
	padding: .85em 1em;
	transition: color .3s, background-color .3s;
}
.postal_search_button:hover {
	color: #967963;
	background-color: #fff;
}




/* ===== 任意・必須 ===== */
#mail_form dl dt span.required,
#mail_form dl dt span.optional {
	font-size: clamp(10px,1.2vw,14px);
	font-style: normal;
	line-height: 1;
	display: inline-block;
	margin-left: .5em;
	padding: .35em .5em;
	border-radius: 2px;
	color: #ffffff;
	background-color: #657c8c;
	transform: translateY(-.1em);
	/* 非表示とする */
	display: none;
}
#mail_form dl dt span.required {
	background-color: #d63220;
}




/* -- responsive -------------------------------------------------------------------------------- */
@media screen and (max-width:768px) {
	/* ===== basic ===== */
	/* main */
	main {
		padding-left:   30px;
		padding-right:  30px;
		padding-bottom: 60px;
	}

	#contact_body main {
		margin-top: 0 !important;
		padding-top: calc(min(16vw,100px) + min(8vw,60px));
		padding-left:  8vw;
		padding-right: 8vw;
		background-image: url(../../img/index/bg_message_sp.jpg);
	}

	/* ===== form_wrap ===== */
	.form_wrap {
		width: 100%;
		max-width: 660px;
		margin-left:  auto;
		margin-right: auto;
		padding: 40px 15px;
		padding: clamp(40px,10.667vw,80px) clamp(20px,4vw,30px);
	}
	#mail_form {
		max-width: 550px;
	}

	/* ===== form_contents ===== */
	form dl {
		flex-wrap: wrap;
	}
	form dl + dl {
		margin-top:  20px;
		padding-top: 0;
	}
	form dt,
	form dd {
		width: 100%;
	}
	form dt {
		margin-bottom: .5em;
	}
	form dt,
	form dd {
		font-size: 14px;
	}
	/* form項目 */
	#mail_form textarea,
	#mail_form input[type="text"],
	#mail_form input[type="email"],
	#mail_form input[type="tel"]    {
		font-size: 14px;
	}

	/* 任意・必須 */
	#mail_form dl dt span.required,
	#mail_form dl dt span.optional {
		font-size: 10px;
	}
	/* エラーメッセージ */
	#mail_form dl dd span.error_blank,
	#mail_form dl dd span.error_format,
	#mail_form dl dd span.error_match   {
		font-size: 12px;
	}
	/* 送信ボタン */
	#form_submit {
		margin-top: 30px;
	}
	#form_submit input {
		font-size: 16px;
	}
	/* 郵便番号 */
	.postal_dd {
		display: flex;
		flex-wrap: nowrap;
		align-items: center;
	}
	#mail_form input[name="postal"] {
		width: 52% !important;
	}
	.postal_search_button {
		font-size: min(3vw,12px);
		display: inline-block;
		padding-top:    .75em;
		padding-bottom: .75em;
	}
	/* ----- プライバシーポリシーに同意する ----- */
	#mail_form .checkboxItem,
	#mail_form .checkboxItem a,
	#mail_form .checkboxItem span {
		letter-spacing: 0;
	}

	/* ===== 送信ボタン下のエラーメッセージ装飾 ===== */
	.wpcf7 form .wpcf7-response-output {
		text-align: justify;
	}
}