/* =========================================================
   お問い合わせ（page-contact.php ＋ Contact Form 7）
   ページの枠組み（タイトル帯・カード・サイドバー）は news-archive.css を共用します。
   このファイルは yakujisc.css（または news-archive.css）の後に読み込んでください。
   ========================================================= */

/* ---------- 導入文・電話 ---------- */
.ct_lead { margin: 0 0 18px; line-height: 1.8; }

.ct_tel {
	margin: 0 0 28px;
	padding: 14px 20px;
	background: #EEF6FD;
	border-left: 4px solid #1C82E0;
}
.ct_tel__label { margin: 0 0 4px; font-size: 13px; font-weight: bold; color: #1C82E0; }
.ct_tel__number { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin: 0; }
.ct_tel__name { font-size: 14px; color: #333; }
.ct_tel__number a { font-size: 24px; font-weight: bold; color: #00468C; text-decoration: none; letter-spacing: .03em; }
.ct_tel__fax { font-size: 15px; color: #00468C; }

/* ---------- 必須・任意のラベル ---------- */
.ct_req,
.ct_opt {
	display: inline-block;
	margin-left: 8px;
	padding: 0 6px;
	border-radius: 3px;
	font-size: 11px;
	font-weight: bold;
	line-height: 18px;
	vertical-align: 1px;
	color: #fff;
}
.ct_req { background: #B20000; }
.ct_opt { background: #9aa3a8; }
.na_info .ct_req { margin: 0 4px 0 0; color: #fff; }

/* ---------- フォーム ---------- */
.ct_form { margin: 0 0 24px; }
.ct_form__row {
	display: flex;
	margin: 0;
	border-bottom: 1px solid #D8D8D8;
}
.ct_form__row dt {
	flex: 0 0 210px;
	box-sizing: border-box;
	padding: 18px 12px 14px 4px;
	font-weight: bold;
	color: #00468C;
}
.ct_form__row dd {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	padding: 12px 4px;
}

.ct_form input[type=text],
.ct_form input[type=email],
.ct_form input[type=tel],
.ct_form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 8px 10px;
	border: 1px solid #b9c2c8;
	border-radius: 4px;
	background: #fff;
	font: inherit;
	font-size: 15px;
	line-height: 1.6;
	color: #000;
	transition: border-color .2s, box-shadow .2s;
}
.ct_form input[type=text],
.ct_form input[type=email],
.ct_form input[type=tel] { height: 42px; }
.ct_form textarea { min-height: 200px; resize: vertical; }
.ct_form input::placeholder,
.ct_form textarea::placeholder { color: #a5adb3; }
.ct_form input:focus,
.ct_form textarea:focus {
	outline: none;
	border-color: #1C82E0;
	box-shadow: 0 0 0 3px rgba(28, 130, 224, .18);
}

/* ラジオボタン（お問い合わせ種別） */
.ct_form .wpcf7-radio { display: flex; flex-direction: column; gap: 6px; padding-top: 6px; }
.ct_form .wpcf7-list-item { margin: 0; }
.ct_form .wpcf7-list-item label,
.ct_privacy .wpcf7-list-item label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.ct_form input[type=radio],
.ct_privacy input[type=checkbox] { width: 18px; height: 18px; margin: 0; accent-color: #1C82E0; cursor: pointer; }

/* ---------- 個人情報の取り扱い ---------- */
.ct_privacy {
	margin: 0 0 24px;
	padding: 16px 20px;
	background: #F5F5F5;
	border: 1px solid #D8D8D8;
}
.ct_privacy__title { margin: 0 0 6px; font-weight: bold; color: #00468C; }
.ct_privacy__text { font-size: 13px; line-height: 1.7; color: #444; }
.ct_privacy__text p { margin: 0 0 6px; }
.ct_privacy__agree { margin: 10px 0 0; text-align: center; font-weight: bold; }

/* ---------- 送信ボタン（掲示板の「投稿する」ボタンと同じデザイン） ---------- */
.ct_submit { margin: 0; text-align: center; }
.page_contact .wpcf7-submit {
	display: inline-block;
	height: 42px;
	padding: 0 46px 0 30px;	/* 右側は矢印の分。幅は文字の長さに合わせて伸び縮みする */
	border: 0;
	border-radius: 21px;
	background: #1C82E0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 16'%3E%3Cpath d='M2 2l6 6-6 6' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='square'/%3E%3C/svg%3E") no-repeat right 22px center / 7px 11px;
	color: #fff;
	/* 文字は、パソコンに入っている標準のゴシック体（太字を持つもの）で表示する */
	font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, "Noto Sans JP", sans-serif;
	font-size: 15px;
	font-weight: bold;
	line-height: 42px;
	letter-spacing: .08em;
	text-shadow: none;
	-webkit-font-smoothing: antialiased;
	box-shadow: 0 2px 4px rgba(28, 130, 224, .35);
	cursor: pointer;
	transition: background-color .2s, box-shadow .2s, transform .1s;
	-webkit-appearance: none;
	appearance: none;
}
.page_contact .wpcf7-submit:hover { background-color: #0066AB; box-shadow: 0 3px 8px rgba(0, 102, 171, .35); }
.page_contact .wpcf7-submit:active { transform: translateY(1px); box-shadow: 0 1px 2px rgba(0, 102, 171, .35); }
.page_contact .wpcf7-submit:focus-visible { outline: 3px solid #9ccbf3; outline-offset: 2px; }
.page_contact .wpcf7-submit:disabled { background-color: #b9c2c8; box-shadow: none; cursor: not-allowed; }
/* 送信中のくるくる（スピナー）はボタンの右に */
.page_contact .wpcf7-spinner { vertical-align: middle; }

/* ---------- 入力エラー・送信結果 ---------- */
.ct_form input.wpcf7-not-valid,
.ct_form textarea.wpcf7-not-valid { border-color: #B20000; background: #fff7f7; }
.wpcf7-not-valid-tip { display: block; margin-top: 4px; font-size: 13px; color: #B20000; }

.page_contact .wpcf7 form .wpcf7-response-output {
	margin: 24px 0 0;
	padding: 12px 16px;
	border: 1px solid #D8D8D8;
	border-left-width: 4px;
	font-size: 14px;
	line-height: 1.7;
}
.page_contact .wpcf7 form.sent .wpcf7-response-output { background: #EEF6FD; border-color: #1C82E0; color: #00468C; }
.page_contact .wpcf7 form.invalid .wpcf7-response-output,
.page_contact .wpcf7 form.unaccepted .wpcf7-response-output,
.page_contact .wpcf7 form.payment-required .wpcf7-response-output { background: #fff8e1; border-color: #e0a800; color: #6b4f00; }
.page_contact .wpcf7 form.failed .wpcf7-response-output,
.page_contact .wpcf7 form.aborted .wpcf7-response-output,
.page_contact .wpcf7 form.spam .wpcf7-response-output { background: #fdecea; border-color: #B20000; color: #8a0000; }

/* =========================================================
   テーマ側のフォーム指定（幅の上限・ボタンの固定幅など）を打ち消す
   ・フォームをカードの幅いっぱいに広げる
   ・送信ボタンの文字が切れないようにする
   ========================================================= */
.page_contact .ct_body,
.page_contact .wpcf7,
.page_contact .wpcf7 form,
.page_contact .ct_form,
.page_contact .ct_privacy,
.page_contact .ct_submit {
	float: none !important;
	width: auto !important;
	max-width: none !important;
	box-sizing: border-box;
}
.page_contact .ct_form__row dd .wpcf7-form-control-wrap { display: block; }
.page_contact .ct_form input[type=text],
.page_contact .ct_form input[type=email],
.page_contact .ct_form input[type=tel],
.page_contact .ct_form textarea {
	width: 100% !important;
	max-width: none !important;
}
.page_contact .ct_form input[type=text],
.page_contact .ct_form input[type=email],
.page_contact .ct_form input[type=tel] { height: 42px !important; }
.page_contact .wpcf7 .wpcf7-submit {
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
	height: 42px !important;
	padding: 0 46px 0 30px !important;
	margin: 0 !important;
	overflow: visible !important;
	white-space: nowrap;
	text-indent: 0 !important;
	float: none !important;
}

/* =========================================================
   入力 → 確認 → 完了（Contact Form 7 Multi-Step Forms）
   ========================================================= */

/* ---------- ステップ表示 ---------- */
.ct_steps {
	display: flex;
	margin: 0 0 26px;
	padding: 0;
	list-style: none;
	counter-reset: none;
}
.ct_steps li {
	position: relative;
	flex: 1 1 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 44px;
	margin: 0;
	background: #EEF1F3;
	color: #8a949a;
	font-weight: bold;
	font-size: 15px;
	letter-spacing: .1em;
}
/* 右向きの矢印形 */
.ct_steps li:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 0;
	right: -14px;
	z-index: 1;
	border-style: solid;
	border-width: 22px 0 22px 14px;
	border-color: transparent transparent transparent #EEF1F3;
}
.ct_steps li:not(:first-child) { padding-left: 14px; }
.ct_steps li + li { margin-left: 4px; }
.ct_steps__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #fff;
	color: #8a949a;
	font-size: 12px;
	letter-spacing: 0;
}
.ct_steps li.is-done { background: #CFE3F6; color: #00468C; }
.ct_steps li.is-done::after { border-left-color: #CFE3F6 !important; }
.ct_steps li.is-done .ct_steps__num { color: #00468C; }
.ct_steps li.is-current { background: #1C82E0; color: #fff; }
.ct_steps li.is-current::after { border-left-color: #1C82E0 !important; }
.ct_steps li.is-current .ct_steps__num { color: #1C82E0; }

/* ---------- 確認画面 ---------- */
.ct_confirm .ct_form__row dt { padding-top: 14px; padding-bottom: 14px; line-height: 1.8; }
.ct_confirm .ct_form__row dd {
	padding: 14px 4px;
	line-height: 1.8;
	word-break: break-all;
}
.ct_confirm__message { white-space: pre-wrap; }	/* 入力された改行をそのまま表示 */

/* 「入力画面に戻る」ボタン（白地に青枠。送信ボタンと並べる） */
.page_contact .ct_submit { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; }
.page_contact .ct_submit .wpcf7-previous,
.page_contact .ct_submit input[type=submit]:not(.wpcf7-submit),
.page_contact .ct_submit button:not(.wpcf7-submit) {
	display: inline-block;
	width: auto !important;
	height: 42px !important;
	margin: 0 !important;
	padding: 0 30px 0 44px !important;
	border: 2px solid #1C82E0 !important;
	border-radius: 21px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 16'%3E%3Cpath d='M8 2L2 8l6 6' fill='none' stroke='%231C82E0' stroke-width='2.4' stroke-linecap='square'/%3E%3C/svg%3E") no-repeat left 22px center / 7px 11px !important;
	box-sizing: border-box;
	color: #1C82E0 !important;
	font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, "Noto Sans JP", sans-serif;
	font-size: 15px;
	font-weight: bold;
	line-height: 38px;
	letter-spacing: .08em;
	white-space: nowrap;
	box-shadow: none !important;
	cursor: pointer;
	transition: background-color .2s;
	-webkit-appearance: none;
	appearance: none;
}
.page_contact .ct_submit .wpcf7-previous:hover,
.page_contact .ct_submit input[type=submit]:not(.wpcf7-submit):hover,
.page_contact .ct_submit button:not(.wpcf7-submit):hover { background-color: #EEF6FD !important; }

/* ---------- 完了画面 ---------- */
.ct_thanks { padding: 10px 0 6px; text-align: center; line-height: 1.9; }
.ct_thanks p { margin: 0 0 14px; }
.ct_thanks__title { font-size: 20px; font-weight: bold; color: #00468C; }
.ct_thanks__note { display: inline-block; padding: 12px 18px; background: #F5F5F5; font-size: 13px; color: #444; text-align: left; }
.ct_thanks__back a {
	display: inline-block;
	height: 42px;
	padding: 0 46px 0 30px;
	border-radius: 21px;
	background: #1C82E0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 16'%3E%3Cpath d='M2 2l6 6-6 6' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='square'/%3E%3C/svg%3E") no-repeat right 22px center / 7px 11px;
	color: #fff;
	font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, "Noto Sans JP", sans-serif;
	font-size: 15px;
	font-weight: bold;
	line-height: 42px;
	letter-spacing: .08em;
	text-decoration: none;
	box-shadow: 0 2px 4px rgba(28, 130, 224, .35);
	transition: background-color .2s;
}
.ct_thanks__back a:hover { background-color: #0066AB; }

@media (max-width: 600px) {
	.ct_steps li { font-size: 13px; letter-spacing: .04em; }
}

/* reCAPTCHA のマークを消す（下の表記をフォームに入れることが条件） */
.grecaptcha-badge { visibility: hidden; }
.ct_recaptcha { margin: 12px 0 0; font-size: 12px; color: #777; text-align: center; }
.ct_recaptcha a { color: #777; }

/* 「トップページへ戻る」の文字色を常に白に（テーマのリンク色を打ち消す） */
.page_contact .ct_thanks__back a,
.page_contact .ct_thanks__back a:link,
.page_contact .ct_thanks__back a:visited,
.page_contact .ct_thanks__back a:hover,
.page_contact .ct_thanks__back a:active,
.page_contact .ct_thanks__back a:focus { color: #fff !important; text-decoration: none !important; opacity: 1; }