@charset "utf-8";
/* ==================================================================
   債務整理お問い合わせフォーム contact.css
   - EFO（入力フォーム最適化）重視：大きなタップ領域・明快な必須表示
   - MW WP Form が出すクラス(.mwform-checkbox-field / .error)に対応
   ================================================================== */

.contact-sec { padding: 30px 0 60px; background: #f7f9fb; }
.contact-box { max-width: 720px; margin: 0 auto; }

/* ---- 導線コピー ---- */
.contact-lead { text-align: center; margin-bottom: 20px; }
.contact-lead__main { font-size: 2.0rem; font-weight: 700; line-height: 1.6; margin: 0 0 6px; }
.contact-lead__main strong { color: #2e7d5b; }
.contact-lead__sub { font-size: 1.4rem; color: #555; line-height: 1.8; margin: 0; }

/* ---- 信頼バンド ---- */
.contact-trust {
	list-style: none; margin: 0 0 24px; padding: 14px 10px;
	display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px;
	background: #fff; border: 1px solid #dce7f1; border-radius: 10px;
}
.contact-trust li { font-size: 1.35rem; font-weight: 700; color: #1f3b57; line-height: 1.5; }
.contact-trust__ico { margin-right: 4px; }

/* ---- フォーム全体 ---- */
.contact-form {
	background: #fff; border: 1px solid #dce7f1; border-radius: 12px;
	padding: 26px 24px; box-shadow: 0 2px 10px rgba(31,59,87,.06);
}
.contact-intro { margin-bottom: 18px; font-size: 1.4rem; line-height: 1.9; }

/* ---- 1項目 ---- */
.mwf-field { margin-bottom: 20px; }
.mwf-field:last-child { margin-bottom: 0; }
.mwf-label {
	display: block; font-size: 1.5rem; font-weight: 700; color: #1f3b57;
	margin-bottom: 4px; line-height: 1.5;
}
.mwf-label .req,
.mwf-label .opt {
	display: inline-block; font-size: 1.1rem; font-weight: 700;
	padding: 2px 8px; border-radius: 4px; margin-left: 8px; vertical-align: middle;
	line-height: 1.4;
}
.mwf-label .req { background: #d64541; color: #fff; }
.mwf-label .opt { background: #eef1f4; color: #7a8b99; }
.mwf-hint { display: block; font-size: 1.2rem; color: #7a8b99; font-weight: 400; margin: 0 0 8px; }

/* ---- 入力欄（タップ領域を大きく）---- */
.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form input[type="email"],
.contact-form input[type="number"],
.contact-form select,
.contact-form textarea {
	width: 100%; box-sizing: border-box;
	font-size: 1.6rem; /* 16px以上：iOSの自動ズーム防止 */
	line-height: 1.6; color: #000;
	padding: 14px 14px; border: 1.5px solid #c3ced8; border-radius: 8px;
	background: #fff; -webkit-appearance: none; appearance: none;
	transition: border-color .15s, box-shadow .15s;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form select {
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237a8b99' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
	outline: none; border-color: #2e6e9e; box-shadow: 0 0 0 3px rgba(46,110,158,.15);
}

/* ---- 同意チェック ---- */
.mwf-consent {
	background: #f7f9fb; border: 1px solid #dce7f1; border-radius: 8px;
	padding: 14px 16px; font-size: 1.35rem; line-height: 1.7;
}
/* MW WP Form が出す <span class="mwform-checkbox-field horizontal-item"> */
.mwf-consent .mwform-checkbox-field { display: block; margin: 0; }
.mwf-consent .mwform-checkbox-field label {
	display: flex; align-items: center; gap: 10px; cursor: pointer; margin: 0;
}
.mwf-consent input[type="checkbox"] {
	width: 22px; height: 22px; flex: 0 0 auto; accent-color: #2e7d5b; margin: 0;
}
.mwf-consent .mwform-checkbox-field-text { font-weight: 700; color: #1f3b57; }
.mwf-consent__text { display: block; margin-top: 6px; padding-left: 32px; color: #555; }
.mwf-consent a { color: #2e6e9e; text-decoration: underline; }

/* ---- 送信ボタン ---- */
.mwf-submit { text-align: center; margin-top: 26px; }
.contact-form input.mwf-submit__btn {
	width: 100%; max-width: 420px; box-sizing: border-box;
	font-size: 1.8rem; font-weight: 700; color: #fff; letter-spacing: 1px;
	padding: 18px 20px; border: none; border-radius: 50px; cursor: pointer;
	background: linear-gradient(180deg, #34a06b 0%, #2e7d5b 100%);
	box-shadow: 0 4px 0 #206348, 0 6px 14px rgba(46,125,91,.35);
	transition: transform .1s, box-shadow .1s, opacity .1s;
}
.contact-form input.mwf-submit__btn:hover { opacity: .95; }
.contact-form input.mwf-submit__btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #206348; }
.mwf-submit__note { font-size: 1.2rem; color: #7a8b99; margin-top: 10px; }

/* ---- MW WP Form のエラー表示（<span class="error">）---- */
.contact-form .error {
	display: block; font-size: 1.25rem; color: #d64541; font-weight: 700; margin-top: 6px;
}
/* エラーが出ている項目の入力欄を赤くする（隣接セレクタで拾う） */
.contact-form .mwf-input + .error,
.contact-form .error:not(:empty) { animation: none; }
.mwf-field:has(.error:not(:empty)) .mwf-input {
	border-color: #d64541; background: #fff6f6;
}
.mwf-field:has(.error:not(:empty)) .mwf-label { color: #d64541; }

/* 送信中は二重送信を防ぐため見た目でも止める */
.contact-form input.mwf-submit__btn[disabled] { opacity: .6; cursor: wait; }

/* ---- 電話導線 ---- */
.contact-tel {
	margin: 26px auto 0; max-width: 420px; text-align: center;
	background: #fff; border: 2px dashed #c3ced8; border-radius: 12px; padding: 16px;
}
.contact-tel__lead { font-size: 1.4rem; font-weight: 700; color: #1f3b57; margin: 0 0 4px; }
.contact-tel__num { font-size: 3.0rem; font-weight: 700; line-height: 1.2; margin: 0; }
.contact-tel__num a { color: #2e7d5b; text-decoration: none; }
.contact-tel__note { font-size: 1.2rem; color: #7a8b99; margin: 4px 0 0; }

/* ---- プライバシー注記 ---- */
.contact-privacy { font-size: 1.2rem; color: #7a8b99; line-height: 1.8; margin: 20px auto 0; max-width: 620px; text-align: center; }
.contact-privacy a { color: #2e6e9e; text-decoration: underline; }
.contact-note { font-size: 1.4rem; line-height: 1.8; }
.contact-note--warn { color: #d64541; font-weight: 700; }

/* ---- サンクスページ ---- */
.contact-thanks { text-align: center; background: #fff; border: 1px solid #dce7f1; border-radius: 12px; padding: 40px 24px; }
.contact-thanks__ico { font-size: 4.0rem; margin: 0 0 10px; }
.contact-thanks__main { font-size: 2.2rem; font-weight: 700; color: #2e7d5b; margin: 0 0 12px; }
.contact-thanks__sub { font-size: 1.5rem; line-height: 1.9; color: #333; margin: 0 0 24px; }
.contact-thanks__back a { display: inline-block; font-size: 1.4rem; color: #2e6e9e; text-decoration: underline; }

/* ==================================================================
   スマホ最適化（流入の90.5%がモバイル）
   ================================================================== */
@media screen and (max-width: 767px) {
	.contact-sec { padding: 20px 0 44px; }
	.contact-box { padding: 0 14px; }
	.contact-lead__main { font-size: 1.8rem; }
	.contact-form { padding: 20px 16px; border-radius: 10px; }
	.contact-trust li { font-size: 1.25rem; }
	.contact-form input.mwf-submit__btn { font-size: 1.7rem; padding: 17px 16px; }
	.contact-tel__num { font-size: 2.6rem; }
}
