/* 資料請求・お問い合わせページ */

.page-template-page-contact #content.site-content {
	flex-direction: column;
}

/* ヒーロー背景 */
.contact-hero {
	background-image: url('../img/contact/hero.jpg');
	background-size: cover;
	background-position: center;
}

/* クーリングオフヒーロー背景 */
.coolingoff-hero {
	background-image: url('../img/coolingoff/hero.jpg');
	background-size: cover;
	background-position: center;
}

/* 相談予約ヒーロー背景 */
.soudan-form-hero {
	background-image: url('../img/soudan-form/hero.jpg');
	background-size: cover;
	background-position: center;
}

/* タイトルのみセクション（ヒーロー画像なし） */
.page-title-section {
	background: #f0f9f5;
	border-bottom: 3px solid #4da487;
}

.page-title-section .section-inner {
	padding-top: 48px;
	padding-bottom: 48px;
}

.page-title-heading {
	font-size: 32px;
	font-weight: bold;
	color: #333;
	margin-bottom: 12px;
}

.page-title-text {
	font-size: 16px;
	color: #555;
	line-height: 1.8;
	margin: 0;
}

/* フォームセクション */
.contact-form-section {
	background: #fff;
}

.contact-form-section .section-inner {
	padding-top: 56px;
	padding-bottom: 80px;
}

/* ============================================
   ステップインジケーター
   ============================================ */
.contact-step {
	display: flex;
	list-style: none;
	padding: 0;
	margin: 0 0 56px;
	overflow: hidden;
	border-radius: 50px;
}

.contact-step-item {
	flex: 1;
	text-align: center;
	padding: 16px 10px;
	background: #e8f5ef;
	color: #4da487;
	font-weight: bold;
	font-size: 17px;
	position: relative;
}

.contact-step-item.current {
	background: #4da487;
	color: #fff;
}

.contact-step-item:not(:last-child)::after {
	content: "";
	position: absolute;
	right: -16px;
	top: 50%;
	transform: translateY(-50%);
	width: 0;
	height: 0;
	border-top: 28px solid transparent;
	border-bottom: 28px solid transparent;
	border-left: 16px solid #e8f5ef;
	z-index: 2;
}

.contact-step-item.current:not(:last-child)::after {
	border-left-color: #4da487;
}

/* ============================================
   フォームラッパー
   ============================================ */
.contact-form-wrap {
	max-width: 800px;
	margin: 0 auto;
}

/* セクションタイトル */
.fmsection-title {
	font-size: 18px;
	font-weight: bold;
	color: #333;
	padding: 10px 16px;
	background: #f0f9f5;
	border-left: 4px solid #4da487;
	margin: 40px 0 20px;
}

.fmsection-title:first-child {
	margin-top: 0;
}

/* ============================================
   フォームテーブル
   ============================================ */
table.fmtbl {
	width: 100%;
	margin-bottom: 40px;
	border-collapse: collapse;
	border: none;
}

table.fmtbl tr,
table.fmtbl th,
table.fmtbl td {
	border: none;
}

table.fmtbl tr {
	display: block;
	margin-bottom: 28px;
}

table.fmtbl th,
table.fmtbl td {
	display: block;
	width: 100%;
	text-align: left;
}

table.fmtbl th {
	position: relative;
	color: #4da487;
	font-size: 15px;
	font-weight: bold;
	padding: 2px 0 10px 15px;
	line-height: 1.6;
}

table.fmtbl th::before {
	content: "";
	position: absolute;
	left: 0;
	top: 2px;
	width: 4px;
	height: calc(100% - 12px);
	background: #4da487;
	border-radius: 4px;
}

table.fmtbl th span.req {
	display: inline-block;
	background: #cd6386;
	color: #fff;
	font-size: 12px;
	font-weight: normal;
	padding: 2px 8px;
	border-radius: 3px;
	margin-left: 10px;
	vertical-align: middle;
}

table.fmtbl td {
	padding-bottom: 4px;
}

/* 確認画面テーブル */
.mw_wp_form_confirm table.fmtbl tr {
	display: flex;
	align-items: flex-start;
	border-bottom: 1px solid #eee;
	padding: 16px 0;
	margin-bottom: 0;
}

.mw_wp_form_confirm table.fmtbl th {
	width: 40%;
	padding-bottom: 0;
}

.mw_wp_form_confirm table.fmtbl td {
	width: 60%;
	color: #333;
	font-size: 15px;
}

/* ============================================
   入力フィールド
   ============================================ */
.contact-form-wrap input[type="text"],
.contact-form-wrap input[type="email"],
.contact-form-wrap textarea,
.contact-form-wrap select {
	width: 100%;
	padding: 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 15px;
	font-family: 'Zen Kaku Gothic New', sans-serif;
	line-height: 1.6;
	box-sizing: border-box;
	transition: border-color 0.2s;
	background: #fafafa;
}

.contact-form-wrap input[type="text"]:focus,
.contact-form-wrap input[type="email"]:focus,
.contact-form-wrap textarea:focus {
	outline: none;
	border-color: #4da487;
	background: #fff;
}

.contact-form-wrap textarea {
	height: 200px;
	resize: vertical;
}

.contact-form-wrap input[type="text"].zip {
	max-width: 200px;
}

/* 電話番号（横並び・小幅） */
.mwform-tel-field {
	display: flex;
	align-items: center;
	gap: 4px;
	flex-wrap: nowrap;
}

.mwform-tel-field input[type="text"] {
	width: 80px !important;
	flex: none;
}

/* ラジオ・チェックボックス */
.contact-form-wrap .mwform-radio-field,
.contact-form-wrap .mwform-checkbox-field {
	display: inline-block;
	margin-right: 24px;
	margin-bottom: 8px;
}

.contact-form-wrap .fmcheck-3col .mwform-radio-field {
	margin-right: 20px;
}

/* 同意エリア */
.contact-form-wrap .agree {
	text-align: center;
	margin: 32px 0;
}

.contact-form-wrap .agree a {
	color: #4da487;
	text-decoration: underline;
}

/* ============================================
   エラーメッセージ
   ============================================ */
.mw_wp_form .error {
	color: #c00;
	font-size: 13px;
	display: block;
	margin-top: 6px;
}

ul.fm_error {
	background: #ffeeee;
	border: 2px solid #f00;
	border-radius: 6px;
	padding: 16px 16px 16px 40px;
	color: #c00;
	margin-bottom: 32px;
	list-style: disc;
}

ul.fm_error li {
	margin-bottom: 4px;
}

/* ============================================
   ボタン
   ============================================ */
.fmbtn {
	text-align: center;
	margin-top: 48px;
}

/* 確認・送信ボタン（緑） */
.contact-form-wrap input[type="submit"].btn_send,
.contact-form-wrap input[name="sousin"],
.contact-form-wrap input[name="submitConfirm"],
.mw_wp_form_input .fmbtn input[type="submit"],
.mw_wp_form_confirm .fmbtn input[type="submit"]:not(.btn_back) {
	display: block;
	background: #4da487;
	color: #fff;
	padding: 20px 40px;
	border-radius: 50px;
	width: 100%;
	max-width: 400px;
	margin: 0 auto 16px;
	font-size: 18px;
	font-weight: bold;
	border: none;
	cursor: pointer;
	font-family: 'Zen Kaku Gothic New', sans-serif;
	transition: opacity 0.2s;
}

.contact-form-wrap input[type="submit"].btn_send:hover,
.contact-form-wrap input[name="sousin"]:hover,
.contact-form-wrap input[name="submitConfirm"]:hover,
.mw_wp_form_input .fmbtn input[type="submit"]:hover,
.mw_wp_form_confirm .fmbtn input[type="submit"]:not(.btn_back):hover {
	opacity: 0.7;
}

/* 戻るボタン（白抜き） */
.contact-form-wrap .btn_back,
.contact-form-wrap input[name="submitBack"],
.mw_wp_form_confirm .fmbtn input[name="back"] {
	display: block;
	background: #e8f5ef;
	color: #4da487;
	padding: 18px 40px;
	border-radius: 50px;
	width: 100%;
	max-width: 400px;
	margin: 0 auto 16px;
	font-size: 17px;
	font-weight: bold;
	border: 2px solid #4da487;
	cursor: pointer;
	font-family: 'Zen Kaku Gothic New', sans-serif;
	transition: opacity 0.2s;
}

.contact-form-wrap .btn_back:hover,
.contact-form-wrap input[name="submitBack"]:hover,
.mw_wp_form_confirm .fmbtn input[name="back"]:hover {
	opacity: 0.7;
}

/* submit disabled */
.contact-form-wrap input[type="submit"]:disabled {
	background: #ccc;
	pointer-events: none;
}

/* ============================================
   完了画面
   ============================================ */
.thanksbox {
	text-align: center;
	padding: 48px 20px;
}

.thanksbox p {
	font-size: 16px;
	line-height: 1.9;
	color: #555;
	margin-bottom: 32px;
}

.contact-back-btn-wrap {
	text-align: center;
	padding: 32px 0 64px;
}

/* ============================================
   会員番号エリア（会員選択時のみ表示）
   ============================================ */
.fm-membertype-box {
	display: flex;
	align-items: center;
	gap: 32px;
	flex-wrap: wrap;
}

.fmcheck-membertype {
	min-width: 140px;
}

.fmcheck-membertype-memberno {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
}

.fmcheck-membertype-memberno-title {
	white-space: nowrap;
	font-size: 14px;
	color: #555;
}

.fmcheck-membertype-memberno-input {
	flex: 1;
	max-width: 240px;
}

/* 確認画面では非表示 */
.mw_wp_form_confirm .fmcheck-membertype-memberno--empty {
	display: none !important;
}

/* ============================================
   レスポンシブ
   ============================================ */
@media screen and (max-width: 768px) {
	.contact-step {
		margin-bottom: 40px;
	}

	.contact-step-item {
		font-size: 13px;
		padding: 14px 4px;
	}

	.contact-step-item:not(:last-child)::after {
		border-top-width: 22px;
		border-bottom-width: 22px;
		border-left-width: 12px;
		right: -12px;
	}

	.contact-form-wrap input[type="submit"].btn_send,
	.contact-form-wrap input[type="submit"].btn_back {
		max-width: none;
		width: 100%;
	}

	.mw_wp_form_confirm table.fmtbl tr {
		display: block;
	}

	.mw_wp_form_confirm table.fmtbl th,
	.mw_wp_form_confirm table.fmtbl td {
		width: 100%;
	}

	.fm-membertype-box {
		display: block;
	}

	.fmcheck-membertype-memberno {
		margin-top: 12px;
	}

	.fmcheck-membertype-memberno-input {
		max-width: 100%;
	}
}
