@charset "utf-8";

/*お問い合わせフォームページ ここから*/
.contact{
	width: 100%;
	height: auto;
	background-color: #fafafa;
}
.contact .baskervville{
	font-family: 'Baskervville', serif;
}

/*=== 見出し ===*/
.contact_head{
	width: 100%;
	height: auto;
	padding: 70px 0 0;
	display: block;
	text-align: center;
}
.contact_head_inner{
	width: 820px;
	height: auto;
	margin: 0 auto;
	display: block;
}
.contact_en{
	font-size: 17px;
	line-height: 1;
	letter-spacing: 0.1em;
	color: #0e2155;
}
.contact_ttl{
	margin-top: 30px;
	font-size: 32px;
	line-height: 41px;
	letter-spacing: 0.05em;
	color: #0f0f0f;
}
.contact_lead{
	margin-top: 37px;
	font-size: 22px;
	line-height: 36px;
	letter-spacing: 0.05em;
	color: #0f0f0f;
}
.contact_desc{
	margin-top: 15px;
	font-size: 15px;
	line-height: 28px;
	letter-spacing: 0.05em;
	color: #0f0f0f;
}
.contact_tel{
	margin-top: 15px;
	font-size: 15px;
	line-height: 25px;
	letter-spacing: 0.05em;
	color: #0f0f0f;
}

/*=== フォーム本体 ===*/
.contact_form{
	width: 100%;
	height: auto;
	margin: 60px 0 0;
	padding: 0 0 120px;
	display: block;
}
.contact_form_inner{
	width: 820px;
	height: auto;
	margin: 0 auto;
	display: block;
}
/* CF7フォーム要素の初期化 */
.contact_form_inner .wpcf7-form{
	width: 100%;
	display: block;
}
/* CF7がフィールドを内包する span.wpcf7-form-control-wrap をブロック化 */
.contact_form_inner .wpcf7-form-control-wrap{
	display: block;
	width: 100%;
}

/*--- フィールド共通 ---*/
.contact_field{
	width: 100%;
	height: auto;
	margin: 0;
	display: block;
}
.contact_field + .contact_field{
	margin-top: 43px;
}
.contact_label{
	width: 100%;
	height: 21px;
	display: flex;
	justify-content: flex-start;
	align-items: center;
	font-size: 16px;
	line-height: 1;
	letter-spacing: 0.05em;
	color: #0f0f0f;
	font-weight: 700;
}
.contact_req{
	width: 34px;
	height: 21px;
	margin-left: 12px;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 2px;
	background-color: #b90001;
	font-size: 11px;
	line-height: 1;
	letter-spacing: 0.05em;
	color: #ffffff;
	font-weight: 500;
	flex-shrink: 0;
}
/* ラベル直後の入力欄（wrap）との間隔 */
.contact_field > .wpcf7-form-control-wrap{
	margin-top: 15px;
}
.contact_input{
	width: 100%;
	height: 60px;
	margin: 0;
	padding: 0 20px;
	display: block;
	border: 1px solid #bcbcbc;
	background-color: #ffffff;
	font-size: 15px;
	line-height: 60px;
	letter-spacing: 0.05em;
	color: #0f0f0f;
	appearance: none;
	box-sizing: border-box;
}
.contact_input::placeholder{
	color: #b5b5b5;
}
.contact_input:focus{
	outline: none;
	border-color: #0e2155;
}
.contact_note{
	margin: 19px 0 -9px;
	font-size: 12px;
	line-height: 1.7;
	letter-spacing: 0.05em;
	color: #5a5959;
}

/*--- ご住所グループ ---*/
.contact_addr_group{
	width: 100%;
	height: auto;
	margin: 21px 0 0;
	display: block;
}
.contact_subfield{
	width: 100%;
	height: auto;
	margin: 22px 0 0;
	display: block;
}
.contact_subfield:first-child{
	margin-top: 0;
}
.contact_subfield > .wpcf7-form-control-wrap{
	margin-top: 6px;
}
.contact_row{
	width: 100%;
	height: auto;
	margin: 6px 0 0;
	display: flex;
	justify-content: flex-start;
	align-items: flex-start;
}
.contact_row .wpcf7-form-control-wrap{
	width: auto;
	margin: 0;
}
.contact_row .contact_input{
	width: 105px;
	margin: 0;
	text-align: center;
	padding: 0 12px;
}
.contact_hyphen{
	width: 25px;
	height: 60px;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 15px;
	line-height: 1;
	color: #0f0f0f;
	flex-shrink: 0;
}
.contact_input.contact_input_pref{
	width: 300px;
}

/*--- ラジオ（CF7ネイティブ） ---*/
.contact_radio_list{
	width: 100%;
	height: auto;
	margin: 18px 0 -13px;
	display: block;
}
.contact_radio_list .wpcf7-radio{
	display: block;
}
.contact_radio_list .wpcf7-list-item{
	margin: 26px 0 0;
	display: block;
}
.contact_radio_list .wpcf7-list-item.first{
	margin-top: 0;
}
.contact_radio_list .wpcf7-list-item label{
	display: flex;
	justify-content: flex-start;
	align-items: center;
	cursor: pointer;
}
.contact_radio_list input[type="radio"]{
	width: 18px;
	height: 18px;
	margin: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	border: 1px solid #cdcdcd;
	border-radius: 50%;
	background-color: #ffffff;
	appearance: none;
	flex-shrink: 0;
	cursor: pointer;
}
.contact_radio_list input[type="radio"]::before{
	content: '';
	width: 10px;
	height: 10px;
	display: block;
	border-radius: 50%;
	background-color: #0e2155;
	opacity: 0;
	transition: opacity .2s ease;
}
.contact_radio_list input[type="radio"]:checked{
	border-color: #0e2155;
}
.contact_radio_list input[type="radio"]:checked::before{
	opacity: 1;
}
.contact_radio_list .wpcf7-list-item-label{
	margin-left: 18px;
	font-size: 16px;
	line-height: 1;
	letter-spacing: 0.05em;
	color: #0f0f0f;
}

/*--- テキストエリア ---*/
.contact_textarea{
	width: 100%;
	height: 178px;
	margin: 0;
	padding: 18px 20px;
	display: block;
	border: 1px solid #bcbcbc;
	background-color: #ffffff;
	font-size: 15px;
	line-height: 28px;
	letter-spacing: 0.05em;
	color: #0f0f0f;
	resize: none;
	appearance: none;
	box-sizing: border-box;
}
.contact_textarea:focus{
	outline: none;
	border-color: #0e2155;
}

/*--- 同意チェック（CF7 acceptance） ---*/
.contact_agree_area{
	width: 100%;
	height: auto;
	margin: 50px 0 0;
	display: block;
	text-align: center;
}
.contact_agree_area .wpcf7-acceptance{
	display: inline-block;
}
.contact_agree_area .wpcf7-list-item{
	margin: 0;
	display: inline-block;
}
.contact_agree_area .wpcf7-list-item label{
	display: inline-flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
}
.contact_agree_area input[type="checkbox"]{
	width: 18px;
	height: 18px;
	margin: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	border: 1px solid #d5d5d5;
	background-color: #ffffff;
	appearance: none;
	flex-shrink: 0;
	cursor: pointer;
}
.contact_agree_area input[type="checkbox"]::before{
	content: '';
	width: 10px;
	height: 6px;
	margin-top: -2px;
	display: block;
	border-left: 2px solid #ffffff;
	border-bottom: 2px solid #ffffff;
	transform: rotate(-45deg);
	opacity: 0;
	transition: opacity .2s ease;
}
.contact_agree_area input[type="checkbox"]:checked{
	border-color: #0e2155;
	background-color: #0e2155;
}
.contact_agree_area input[type="checkbox"]:checked::before{
	opacity: 1;
}
.contact_agree_area .wpcf7-list-item-label{
	margin-left: 12px;
	font-size: 15px;
	line-height: 1;
	letter-spacing: 0.05em;
	color: #0f0f0f;
}
.contact_agree_link{
	color: #0f0f0f;
	text-decoration: underline;
}

/*--- 送信ボタン ---*/
.contact_submit_wrap{
	width: 220px;
	height: auto;
	margin: 32px auto 0;
	display: block;
	position: relative;
}
.contact_submit{
	width: 220px;
	height: 58px;
	margin: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	border: 1px solid #0e2155;
	border-radius: 29px;
	background-color: transparent;
	font-size: 15px;
	line-height: 1;
	letter-spacing: 0.05em;
	color: #0e2155;
	cursor: pointer;
	appearance: none;
}
.contact_submit_wrap .arrow{
	right: 24px;
	pointer-events: none;
}
.contact_submit_wrap .wpcf7-spinner{
	position: absolute;
	top: 0;
	bottom: 0;
	right: -40px;
	margin: auto 0;
}

/*--- 暗号化通知 ---*/
.contact_secure{
	width: 300px;
	height: 60px;
	margin: 40px auto 0;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 4px;
	background-color: #e6ecf4;
	font-size: 13px;
	line-height: 1;
	letter-spacing: 0.05em;
	color: #0f0f0f;
}
.contact_secure_icon{
	width: 14px;
	height: 16px;
	margin-right: 10px;
	display: block;
	flex-shrink: 0;
}
.contact_secure_icon svg{
	width: 100%;
	height: 100%;
	display: block;
}

/*--- CF7 バリデーション/応答表示 ---*/
/* CF7標準のフィールドエラーtipは自作JSのインラインエラー(.contact_err)と重複するため非表示
   （表記も「入力してください。」等と揺れるため、.contact_errのメッセージに一本化） */
.contact_form_inner .wpcf7-not-valid-tip{
	display: none;
}
.contact_form_inner .wpcf7-form-control.wpcf7-not-valid{
	border-color: #b90001;
}
/* CF7標準の応答表示は自作ステップ・インラインエラーで代替するため非表示 */
.contact_form_inner .wpcf7-response-output{
	display: none;
}

/*--- 確認/完了ステップ ---*/
.contact_step[hidden]{
	display: none;
}
.contact_confirm_lead{
	margin: 0 0 42px;
	font-size: 16px;
	line-height: 1.9;
	letter-spacing: 0.05em;
	color: #0f0f0f;
	text-align: center;
}
.contact_confirm_list{
	width: 820px;
	height: auto;
	margin: 0 auto;
	display: block;
	border-top: 1px solid #d5d5d5;
}
.contact_confirm_row{
	width: 100%;
	height: auto;
	margin: 0;
	padding: 22px 0;
	display: flex;
	justify-content: flex-start;
	align-items: flex-start;
	border-bottom: 1px solid #d5d5d5;
}
.contact_confirm_row dt{
	width: 240px;
	height: auto;
	flex-shrink: 0;
	font-size: 15px;
	line-height: 1.7;
	letter-spacing: 0.05em;
	color: #0f0f0f;
	font-weight: 700;
}
.contact_confirm_row dd{
	width: auto;
	height: auto;
	font-size: 15px;
	line-height: 1.7;
	letter-spacing: 0.05em;
	color: #0f0f0f;
	word-break: break-all;
}
.contact_confirm_empty{
	color: #b5b5b5;
}
.contact_confirm_actions{
	width: 100%;
	height: auto;
	margin: 50px 0 0;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 24px;
}
.contact_confirm_actions .contact_submit_wrap{
	margin: 0;
}
.contact_back_btn{
	width: 220px;
	height: 58px;
	margin: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	border: 1px solid #5a5959;
	border-radius: 29px;
	background-color: transparent;
	font-size: 15px;
	line-height: 1;
	letter-spacing: 0.05em;
	color: #5a5959;
	cursor: pointer;
	position: relative;
	appearance: none;
	transition: background-color .35s ease, color .35s ease;
}
@media only screen and (min-width: 768px){
	.contact_back_btn:hover{
		background-color: #5a5959;
		color: #ffffff;
	}
	.contact_back_btn:hover .arrow{
		border-color: #ffffff;
	}
}
.arrow.arrow--back{
	right: auto;
	left: 24px;
	border-color: #5a5959;
	transform: rotate(-135deg);
}
.contact_step--done{
	width: 100%;
	height: auto;
	padding: 60px 0;
	display: block;
	text-align: center;
}
.contact_done_ttl{
	font-size: 24px;
	line-height: 1.5;
	letter-spacing: 0.05em;
	color: #0f0f0f;
	font-weight: 700;
}
.contact_done_txt{
	margin-top: 22px;
	font-size: 15px;
	line-height: 1.9;
	letter-spacing: 0.05em;
	color: #0f0f0f;
}

/*--- 自作JSバリデーションのエラー表示 ---*/
.contact_err{
	display: block;
	margin-top: 8px;
	font-size: 13px;
	line-height: 1.5;
	letter-spacing: 0.05em;
	color: #b90001;
}
/* ラジオ群の直後に挿入されるエラーは、.contact_radio_listの負マージン(-13px)を打ち消し、
   最終選択肢と余白を確保しつつ選択肢テキストの真下に揃える */
.contact_radio_list + .contact_err{
	margin-top: 32px;
	margin-left: 36px;
}
.contact_agree_area + .contact_err{
	text-align: center;
}
.contact_input.is-err,
.contact_textarea.is-err{
	border-color: #b90001;
}
/*お問い合わせフォームページ ここまで*/


/* ============================================================
   SP（〜767px） お問い合わせフォーム
   ============================================================ */
@media only screen and (max-width: 767px){
	/* 見出し */
	.contact_head{ padding: 56px 0 0; }
	.contact_head_inner{ width: 100%; padding: 0 27px; }
	.contact_en{ font-size: 16px; letter-spacing: 0.1em; }
	.contact_ttl{ margin-top: 18px; font-size: 25px; line-height: 1.4; }
	.contact_lead{ margin-top: 24px; font-size: 20px; line-height: 1.7; white-space: nowrap; }
	.contact_desc{ margin-top: 16px; font-size: 15px; line-height: 30px; text-align: left; white-space: nowrap; }
	.contact_tel{ margin-top: 16px; font-size: 15px; white-space: nowrap; }

	/* フォーム本体 */
	.contact_form{ margin-top: 40px; padding: 0 0 54px; }
	.contact_form_inner{ width: 100%; padding: 0 27px; }
	.contact_field + .contact_field{ margin-top: 43px; }

	/* 分割欄：電話90px（3分割）／郵便番号105px（2分割） */
	.contact_row .contact_input{ width: 90px; }
	.contact_addr_group .contact_row .contact_input{ width: 105px; }
	.contact_input.contact_input_pref{ width: 100%; }

	/* 暗号化通知 */
	.contact_secure{ width: 100%; max-width: 300px; }

	/* 確認ステップ */
	.contact_confirm_list{ width: 100%; }
	.contact_confirm_row{ flex-direction: column; align-items: flex-start; padding: 16px 0; }
	.contact_confirm_row dt{ width: 100%; margin-bottom: 6px; }
	.contact_confirm_row dd{ width: 100%; }
	.contact_confirm_actions{ flex-direction: column; gap: 16px; margin-top: 36px; }
}

div.wpcf7-turnstile.cf-turnstile{
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 10px;
}
