/* ============================================
   css/contact.css
   お問い合わせ / サンクス / プライバシーポリシー 専用
   ─────────────────────────────────
   ※ フォームの基本スタイル（.tmpl_form, .tmpl_form_group,
     .tmpl_form_label, .tmpl_form_input 等）は parts.css に
     定義済みのため、ここには含めない。
   ※ このファイルは CF7 固有の上書きと、
     contact / thanks / privacy-policy ページ固有のスタイルのみ。
============================================ */


/* ============================================
   お問い合わせ方法カード（Gutenberg columns版）
============================================ */
.contact_method_cols {
	gap: 0 !important;
}

.contact_method_item {
	padding: 30px 40px;
	text-align: center;
}

.contact_method_cols > .contact_method_item:first-child {
	border-right: 2px dashed #ffc508;
}

.contact_method_icon {
	max-width: 80px;
	margin: 0 auto 15px;
}

.contact_method_icon svg {
	width: 100%;
	height: auto;
	display: block;
}

.contact_method_title {
	font-size: 18px;
	color: #333;
	margin-bottom: 15px;
}

.contact_method_tel {
	margin: 15px 0;
}

.contact_method_tel a {
	color: #e6929e;
	text-decoration: none;
}

.contact_method_tel a:hover {
	text-decoration: underline;
}

.contact_method_note {
	color: #666;
	line-height: 1.8;
}

/* Gutenberg ボタンを tmpl_btn_primary 風に */
.tmpl_btn_primary_block .wp-block-button__link {
	background: #e6929e !important;
	color: #fff !important;
	font-weight: 600;
	border-radius: 50px !important;
	padding: 14px 50px 14px 35px !important;
	position: relative;
	transition: background 0.3s;
	text-decoration: none;
}

.tmpl_btn_primary_block .wp-block-button__link:hover {
	background: #d67a86 !important;
}

.tmpl_btn_primary_block .wp-block-button__link::after {
	content: '▶';
	position: absolute;
	right: 22px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 12px;
	color: #fff;
}

@media screen and (max-width: 768px) {
	.contact_method_cols {
		flex-direction: column !important;
	}

	.contact_method_cols > .contact_method_item:first-child {
		border-right: none;
		border-bottom: 2px dashed #ffc508;
		padding-bottom: 30px;
	}

	.contact_method_item {
		padding: 25px 20px;
	}

	.tmpl_btn_primary_block .wp-block-button__link {
		font-size: 4vw;
		padding: 14px 45px 14px 25px !important;
	}
}


/* ============================================
   CF7 固有の上書き
   ─────────────────────────────────
   parts.css の .tmpl_form_* を活かしつつ、
   CF7 が生成する独自クラスに対応
============================================ */

/* CF7 の fieldset デフォルトボーダーを除去（線の正体） */
.wpcf7 fieldset,
.wpcf7-form fieldset {
	border: none !important;
	padding: 0;
	margin: 0;
	min-width: 0;
}

/* CF7 ラッパー: display:block にしないと幅が効かない */
.wpcf7 .wpcf7-form-control-wrap {
	display: block;
}

/* CF7 フォーム要素のブラウザデフォルト border リセット
   ※ CF7デフォルトCSSを無効化しているため、
     ブラウザのデフォルト border/outline が露出する */
.wpcf7 form,
.wpcf7-form {
	border: none;
	outline: none;
	margin: 0;
	padding: 0;
}

/* CF7が生成する区切り線をリセット */
.wpcf7 hr,
.wpcf7-form hr {
	display: none;
}

/* --- CF7 ラジオボタン ---
   テンプレート: .tmpl_form_radio > input
   CF7生成:      .wpcf7-radio > .wpcf7-list-item > label > input + span
   → .wpcf7-list-item を .tmpl_form_radio 相当にマッピング */
.tmpl_form_radio_wrap .wpcf7-radio {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.tmpl_form_radio_wrap .wpcf7-list-item {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;  /* CF7デフォルトmarginリセット */
}

.tmpl_form_radio_wrap .wpcf7-list-item label {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}

.tmpl_form_radio_wrap .wpcf7-list-item input[type="radio"] {
	appearance: none;
	-webkit-appearance: none;
	width: 20px;
	height: 20px;
	border: 2px solid #ffc508;
	border-radius: 50%;
	flex-shrink: 0;
	position: relative;
	cursor: pointer;
	transition: border-color 0.3s;
	margin: 0;
}

.tmpl_form_radio_wrap .wpcf7-list-item input[type="radio"]:checked {
	border-color: #ffc508;
}

.tmpl_form_radio_wrap .wpcf7-list-item input[type="radio"]:checked::after {
	content: '';
	position: absolute;
	width: 10px;
	height: 10px;
	background: #ffc508;
	border-radius: 50%;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

/* --- 個人情報同意ボックス（parts.css にない新規スタイル） --- */
.tmpl_form_privacy {
	background: #fdf8e8;
	border: 1px solid #ffc508;
	border-radius: 10px;
	padding: 20px;
}

.tmpl_form_privacy_text {
	font-size: 14px;
	color: #666;
	line-height: 1.8;
	margin-bottom: 15px;
}

.tmpl_form_privacy_text a {
	color: #e6929e;
}

.wpcf7 .tmpl_form_privacy .wpcf7-acceptance {
	display: flex;
	align-items: center;
	gap: 8px;
}

.wpcf7 .tmpl_form_privacy input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: #ffc508;
}

/* --- CF7 送信ボタン ---
   テンプレート: <a class="tmpl_btn_primary"> → ::after で ▶
   CF7: <input type="submit"> → ::after 使えないので JS でラッパー追加 */
.wpcf7 .tmpl_form_submit input[type="submit"],
.wpcf7 .tmpl_form_submit input.wpcf7-submit {
	display: inline-block;
	padding: 18px 70px 18px 50px;
	background: #e6929e;
	color: #fff;
	font-weight: 600;
	font-size: 18px;
	text-decoration: none;
	border-radius: 50px;
	border: none;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}

.wpcf7 .tmpl_form_submit input[type="submit"]:hover {
	background: #d67a86;
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(230,146,158,0.3);
}

/* ▶ 装飾ラッパー（JSで追加） */
.tmpl_submit_wrap {
	display: inline-block;
	position: relative;
}

.tmpl_submit_wrap::after {
	content: '▶';
	position: absolute;
	right: 22px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 12px;
	color: #fff;
	pointer-events: none;
	z-index: 1;
}

/* --- バリデーションエラー --- */
.wpcf7-not-valid {
	border-color: #e74c3c !important;
}

.wpcf7-not-valid-tip {
	display: block;
	color: #e74c3c;
	font-size: 13px;
	margin-top: 8px;
	padding-left: 5px;
}

/* --- 送信メッセージ --- */
.wpcf7 form .wpcf7-response-output {
	margin: 30px 0 0;
	padding: 15px 20px;
	border-radius: 10px;
	font-size: 14px;
	text-align: center;
}

.wpcf7 form.sent .wpcf7-response-output {
	border: 2px solid #27ae60;
	background: #eafaf1;
	color: #27ae60;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
	border: 2px solid #e74c3c;
	background: #fdf2f2;
	color: #e74c3c;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
	border: 2px solid #f39c12;
	background: #fef9e7;
	color: #e67e22;
}

.wpcf7 .wpcf7-spinner {
	display: block;
	margin: 15px auto 0;
}

@media screen and (max-width: 768px) {
	.wpcf7 .tmpl_form_submit input[type="submit"] {
		font-size: 4.5vw;
		padding: 16px 60px 16px 40px;
	}

	.tmpl_form_privacy {
		padding: 15px;
	}

	.tmpl_form_privacy_text {
		font-size: 13px;
	}
}


/* ============================================
   プライバシーポリシーページ
============================================ */
.privacy_content {
	max-width: 840px;
	margin: 0 auto;
	line-height: 2;
}

.privacy_heading {
	font-size: 18px;
	color: #333;
	padding: 12px 0 12px 18px;
	border-left: 4px solid #ffc508;
	margin-top: 45px;
	margin-bottom: 20px;
}

.privacy_contact_box {
	background: #fdf8e8;
	border: 1px solid #ffc508;
	border-radius: 10px;
	padding: 25px 30px;
	margin: 20px 0;
}

.privacy_contact_box p {
	line-height: 2;
}

.privacy_date {
	text-align: right;
	color: #999;
	margin-top: 40px;
	font-size: 14px;
}

@media screen and (max-width: 768px) {
	.privacy_heading {
		font-size: 4.2vw;
	}

	.privacy_contact_box {
		padding: 20px;
	}
}


/* ============================================
   サンクスページ
============================================ */
.thanks_message {
	max-width: 700px;
	margin: 0 auto;
	text-align: center;
}

.thanks_title {
	color: #333;
	margin-bottom: 20px;
}

.thanks_text {
	color: #666;
	line-height: 2;
	margin-bottom: 15px;
}

@media screen and (max-width: 768px) {
	.thanks_message {
		padding: 40px 15px !important;
	}
}
