/* =================================================
   Contact Form 7 共通スタイル
   ================================================= */

/* Contact Form 7 のラッパー要素のリセット */
.wpcf7 {
	width: 100%;
}

/* page.cssの必須バッジを無効化 */
.page_id438 .form__label.is-required label::after,
.page_id429 .form__label.is-required label::after,
.page_id166 .form__label.is-required label::after,
.page_id438 .form__label.is-optional label::after,
.page_id429 .form__label.is-optional label::after,
.page_id166 .form__label.is-optional label::after {
	display: none !important;
}

/* 古い任意タグも無効化 */
.page_id438 .form__label label::before,
.page_id429 .form__label label::before,
.page_id166 .form__label label::before {
	display: none !important;
}

/* =================================================
   レスポンシブスタイル（スマホ・タブレット）
   ================================================= */
@media (max-width: 1024px) {
	/* フォーム行のレイアウト調整 */
	.page_id438 .form__row,
	.page_id429 .form__row,
	.page_id166 .form__row {
		display: block !important;
		margin-bottom: 32px !important;
	}

	/* ラベルを左寄せ、入力欄の左端に合わせる */
	.page_id438 .form__label,
	.page_id429 .form__label,
	.page_id166 .form__label {
		display: flex !important;
		align-items: center !important;
		gap: 8px !important;
		margin-bottom: 8px !important;
		width: 100% !important;
		text-align: left !important;
		padding-left: 0 !important;
		background: transparent !important;
		border: none !important;
	}

	/* ラベルテキスト */
	.page_id438 .form__label label,
	.page_id429 .form__label label,
	.page_id166 .form__label label {
		font-size: 16px !important;
		font-weight: 500 !important;
		color: #333333 !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	/* 必須バッジ */
	.page_id438 .required-badge,
	.page_id429 .required-badge,
	.page_id166 .required-badge {
		background-color: #C53030 !important;
		color: #FFFFFF !important;
		font-size: 12px !important;
		font-weight: 500 !important;
		padding: 2px 8px !important;
		border-radius: 4px !important;
		display: inline-block !important;
		margin-left: 0 !important;
	}

	/* 入力欄の調整 */
	.page_id438 .form__body,
	.page_id429 .form__body,
	.page_id166 .form__body {
		width: 100% !important;
		padding-left: 0 !important;
		margin-left: 0 !important;
	}

	/* お問い合わせ内容（テキストエリア）の上余白を調整 */
	.page_id438 .form__row.row-textarea,
	.page_id429 .form__row.row-textarea,
	.page_id166 .form__row.row-textarea {
		margin-top: -90px !important;
		margin-bottom: 24px !important;
	}

	/* フォーム全体の行間を調整 */
	.page_id438 .form__row,
	.page_id429 .form__row,
	.page_id166 .form__row {
		margin-bottom: 20px !important;
	}
}

/* =================================================
   FP相談フォーム (ID: 429) - 家探し相談と同じレイアウト
   ================================================= */
/* ページタイトルとパンくずリストを非表示 */
.page_id429 #breadcrumbs,
.page_id429 .breadcrumbs,
.page_id429 .main_ttl,
.page_id429 h1:not(.first-contact-hero-title) {
	display: none !important;
}

/* ヒーローセクション - 家探し相談と同じスタイル */
.page_id429 .first-contact-hero {
	position: relative;
	width: 100vw;
	height: 407px;
	overflow: hidden;
	background-image: url('../img/kv/contact.jpg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	margin-left: calc(-50vw + 50%);
	margin-right: calc(-50vw + 50%);
}

/* マスクレイヤー */
.page_id429 .first-contact-hero-mask {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.4);
}

.page_id429 .first-contact-hero-content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
	z-index: 2;
}

.page_id429 .first-contact-hero-title {
	font-family: 'Zen Kaku Gothic Antique', sans-serif;
	font-weight: 700;
	font-size: 36px;
	line-height: 1.5;
	color: #ffffff;
	margin: 0;
}

/* フォームコンテナ */
.page_id429 .first-contact-form-wrapper {
	background-color: #efefef;
	padding: 80px 0 100px;
	position: relative;
}

.page_id429 .first-contact-form-container {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 20px;
}

.page_id429 .form__wrap.template02 {
	max-width: 996px;
	margin: 0 auto;
	padding-top: 60px;
}

/* フォーム行 */
.page_id429 .form__row {
	display: flex;
	margin-bottom: 24px;
	align-items: center;
	border: none !important;
}

/* 区切り線を非表示 */
.page_id429 .form__row:after,
.page_id429 .form__row:before {
	display: none !important;
}

/* Contact Form 7のデフォルトの区切り線を非表示 */
.page_id429 .wpcf7-form hr,
.page_id429 .form__wrap hr,
.page_id429 hr {
	display: none !important;
}

/* ラベル（タイトル） */
.page_id429 .form__label {
	width: 300px;
	padding-right: 0;
	font-family: 'Zen Kaku Gothic Antique', sans-serif;
	font-weight: 500;
	font-size: 16px;
	color: #1b1b1b;
	text-align: left;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 24px;
}

/* 必須バッジ */
.page_id429 .form__label.is-required::after {
	content: "必須";
	display: inline-block;
	background-color: #c00707;
	color: #ffffff;
	font-family: 'Zen Kaku Gothic Antique', sans-serif;
	font-weight: 400;
	font-size: 16px;
	padding: 0 16px;
	height: 24px;
	line-height: 24px;
	border-radius: 12px;
	white-space: nowrap;
	margin: 0;
	min-width: 48px;
	text-align: center;
	flex-shrink: 0;
}

/* 任意バッジ */
.page_id429 .form__label.is-optional::after {
	content: "任意";
	display: inline-block;
	background-color: #999999;
	color: #ffffff;
	font-family: 'Zen Kaku Gothic Antique', sans-serif;
	font-weight: 400;
	font-size: 16px;
	padding: 0 16px;
	height: 24px;
	line-height: 24px;
	border-radius: 12px;
	white-space: nowrap;
	margin: 0;
	min-width: 48px;
	text-align: center;
	flex-shrink: 0;
}

/* 入力エリア - パディングを含む */
.page_id429 .form__body {
	flex: 1;
	padding: 16px;
	background-color: transparent;
	border-radius: 4px;
	position: relative;
}

/* 入力フィールド - パディング内で100%幅 */
.page_id429 .form__body input[type="text"],
.page_id429 .form__body input[type="email"],
.page_id429 .form__body input[type="tel"],
.page_id429 .form__body input[type="date"],
.page_id429 .form__body textarea {
	width: 100%;
	height: 40px;
	background-color: #ffffff;
	border: 1px solid #333333;
	padding: 0 16px;
	font-family: 'Zen Kaku Gothic Antique', sans-serif;
	font-size: 16px;
	color: #1b1b1b;
	box-sizing: border-box;
}

/* selectを別で定義 */
.page_id429 .form__body select {
	width: 100%;
	height: 40px;
	background-color: #ffffff;
	border: 1px solid #333333;
	padding: 0 16px;
	font-family: 'Zen Kaku Gothic Antique', sans-serif;
	font-size: 16px;
	color: #1b1b1b;
	box-sizing: border-box;
}

.page_id429 .form__body input::placeholder,
.page_id429 .form__body textarea::placeholder {
	color: #9f9f9f;
}

.page_id429 .form__body input:focus,
.page_id429 .form__body textarea:focus,
.page_id429 .form__body select:focus {
	outline: none;
	border-color: #c00707;
}

/* =================================================
   家探し相談フォーム (ID: 438) - Figmaデザイン準拠
   ================================================= */
.page_id438 {
	background-color: #ffffff;
}

/* ヒーローセクション - Figmaデザイン準拠 */
.page_id438 .first-contact-hero {
	position: relative;
	width: 100vw;
	height: 407px;
	overflow: hidden;
	background-image: url('../img/kv/first_contact.jpg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	margin-left: calc(-50vw + 50%);
	margin-right: calc(-50vw + 50%);
}

/* マスクレイヤー */
.page_id438 .first-contact-hero-mask {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.4);
	/* SVGマスクを適用する場合は以下を有効化 */
	/* -webkit-mask-image: url('../img/soudan/mask.svg');
	mask-image: url('../img/soudan/mask.svg');
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat; */
}

.page_id438 .first-contact-hero-content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
	z-index: 2;
}

.page_id438 .first-contact-hero-title {
	font-family: 'Zen Kaku Gothic Antique', sans-serif;
	font-weight: 700;
	font-size: 36px;
	line-height: 1.5;
	color: #ffffff;
	margin: 0;
}

/* フォームコンテナ */
.page_id438 .first-contact-form-wrapper {
	background-color: #efefef;
	padding: 80px 0 100px;
	position: relative;
}

.page_id438 .first-contact-form-container {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 20px;
}

/* フォームレイアウト - Contact Form 7のクラスに対応 */
.page_id438 .form__wrap.template02 {
	max-width: 996px;
	margin: 0 auto;
	padding-top: 60px;
}

/* フォーム行 */
.page_id438 .form__row {
	display: flex;
	margin-bottom: 24px;
	align-items: center;
	border: none !important;
}

/* 区切り線を非表示 */
.page_id438 .form__row:after,
.page_id438 .form__row:before {
	display: none !important;
}

/* Contact Form 7のデフォルトの区切り線を非表示 */
.page_id438 .wpcf7-form hr,
.page_id438 .form__wrap hr,
.page_id438 hr {
	display: none !important;
}

/* お名前行の特別な調整 */
.page_id438 .form__row.row-name {
	position: relative;
}

/* ラベル（タイトル） */
.page_id438 .form__label {
	width: 300px;
	padding-right: 0;
	font-family: 'Zen Kaku Gothic Antique', sans-serif;
	font-weight: 500;
	font-size: 16px;
	color: #1b1b1b;
	text-align: left;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 24px;
}

/* 必須バッジ */
.page_id438 .form__label.is-required::after {
	content: "必須";
	display: inline-block;
	background-color: #c00707;
	color: #ffffff;
	font-family: 'Zen Kaku Gothic Antique', sans-serif;
	font-weight: 400;
	font-size: 16px;
	padding: 0 16px;
	height: 24px;
	line-height: 24px;
	border-radius: 12px;
	white-space: nowrap;
	margin: 0;
	min-width: 48px;
	text-align: center;
	flex-shrink: 0;
}

/* 任意バッジ */
.page_id438 .form__label.is-optional::after {
	content: "任意";
	display: inline-block;
	background-color: #999999;
	color: #ffffff;
	font-family: 'Zen Kaku Gothic Antique', sans-serif;
	font-weight: 400;
	font-size: 16px;
	padding: 0 16px;
	height: 24px;
	line-height: 24px;
	border-radius: 12px;
	white-space: nowrap;
	margin: 0;
	min-width: 48px;
	text-align: center;
	flex-shrink: 0;
}


/* 入力エリア - パディングを含む */
.page_id438 .form__body {
	flex: 1;
	padding: 16px;
	background-color: transparent;
	border-radius: 4px;
}

/* 入力フィールド - パディング内で100%幅 */
.page_id438 .form__body input[type="text"],
.page_id438 .form__body input[type="email"],
.page_id438 .form__body input[type="tel"],
.page_id438 .form__body input[type="date"],
.page_id438 .form__body textarea {
	width: 100%;
	height: 40px;
	background-color: #ffffff;
	border: 1px solid #333333;
	padding: 0 16px;
	font-family: 'Zen Kaku Gothic Antique', sans-serif;
	font-size: 16px;
	color: #1b1b1b;
	box-sizing: border-box;
}

/* selectを別で定義 */
.page_id438 .form__body select {
	width: 100%;
	height: 40px;
	background-color: #ffffff;
	border: 1px solid #333333;
	padding: 0 16px;
	font-family: 'Zen Kaku Gothic Antique', sans-serif;
	font-size: 16px;
	color: #1b1b1b;
	box-sizing: border-box;
}

.page_id438 .form__body input::placeholder,
.page_id438 .form__body textarea::placeholder {
	color: #9f9f9f;
}

.page_id438 .form__body input:focus,
.page_id438 .form__body textarea:focus,
.page_id438 .form__body select:focus {
	outline: none;
	border-color: #c00707;
}

/* ドロップダウンのスタイル統一 - カスタム矢印を削除 */

/* お名前行 - 通常の1つのフィールドとして扱う */
.page_id438 .form__row.row-name .form__body {
	display: block !important;
	width: 100% !important;
	margin-right: 0 !important;
	padding: 16px !important;
	vertical-align: top;
	background-color: transparent;
	border-radius: 4px;
}

/* 日時入力行 - 2つのフィールドを横並び */
.page_id438 .form__row.row-email .form__body {
	display: inline-block;
	width: 50%;
	margin-right: 0;
	vertical-align: top;
}

/* 日付フィールドアイコン */
.page_id438 .form__body input[type="date"] {
	position: relative;
	padding-right: 40px;
}

.page_id438 .form__body input[type="date"]::-webkit-calendar-picker-indicator {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	background-color: transparent;
	cursor: pointer;
}

/* チェックボックス行の特別な配置 */
.page_id438 .form__row.row-checkbox {
	align-items: flex-start; /* 上揃え */
}

/* チェックボックス - Contact Form 7の構造に対応 */
.page_id438 .form__row.row-checkbox .form__body {
	display: block;
}

.page_id438 .form__row.row-checkbox .wpcf7-list-item {
	display: block;
	margin-bottom: 16px;
}

.page_id438 .form__row.row-checkbox .wpcf7-list-item label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-family: 'Zen Kaku Gothic Antique', sans-serif;
	font-weight: 500;
	font-size: 16px;
	color: #1b1b1b;
}

.page_id438 .form__row.row-checkbox input[type="checkbox"] {
	width: 16px;
	height: 16px;
	border: 1px solid #000000;
	margin: 0;
	cursor: pointer;
}

/* テキストエリア行 */
.page_id438 .form__row.row-textarea {
	display: flex;
	margin-bottom: 24px;
	align-items: flex-start;
}

/* テキストエリアのラベルを透明に */
.page_id438 .form__row.row-textarea .form__label {
	visibility: hidden;
}

.page_id438 .form__row.row-textarea .form__body {
	flex: 1;
	padding: 16px;
	background-color: transparent;
	border-radius: 4px;
}

/* テキストエリア */
.page_id438 .form__body textarea {
	width: 100%;
	height: 200px; /* 高さを調整 */
	background-color: #ffffff;
	border: 1px solid #333333;
	padding: 16px;
	font-family: 'Zen Kaku Gothic Antique', sans-serif;
	font-size: 16px;
	color: #1b1b1b;
	resize: vertical; /* 縦方向のリサイズを許可 */
	box-sizing: border-box;
}

/* プライバシーポリシー */
.page_id438 .form__row.row-privacy {
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
	margin: 80px auto 80px !important;
	width: 100% !important;
}

.page_id438 .form__row.row-privacy .form__body {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: 'Zen Kaku Gothic Antique', sans-serif;
	font-weight: 500;
	font-size: 16px;
	color: #1b1b1b;
	background-color: transparent;
	padding: 0;
	flex: none;
	width: auto;
}


.page_id438 .form__row.row-privacy a {
	color: #1b1b1b;
	text-decoration: underline;
}

/* 送信ボタン */
.page_id438 .form__row.row-submit {
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
	margin: 80px 0 100px !important;
}

.page_id438 .submit-btn {
	position: relative;
	display: inline-block;
}

.page_id438 .submit-btn .submit-bg {
	display: none;
}

.page_id438 .submit-btn input[type="submit"] {
	background-color: #c00707;
	color: #ffffff;
	border: 2px solid #c00707;
	font-family: 'Noto Sans', 'Noto Sans JP', sans-serif;
	font-size: 24px;
	font-weight: 300;
	padding: 20px 60px;
	width: auto;
	min-width: 240px;
	height: 64px;
	border-radius: 32px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: block;
	margin: 0 auto;
	text-align: center;
	line-height: 1;
}


.page_id438 .submit-btn input[type="submit"]:hover {
	background-color: #ffffff !important;
	color: #c00707 !important;
	border-color: #c00707 !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(192, 7, 7, 0.3);
}

/* エラーメッセージ */
.page_id438 .error-message,
.page_id438 .wpcf7-not-valid-tip {
	color: #c00707;
	font-family: 'Zen Kaku Gothic Antique', sans-serif;
	font-weight: 500;
	font-size: 12px;
	margin-top: 8px;
	display: block;
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	padding: 0 16px;
	z-index: 1;
}

.page_id438 .form__body {
	position: relative;
}

.page_id438 .wpcf7-not-valid {
	border-color: #c00707 !important;
}

/* フォーム行に下余白を追加してエラーメッセージ用のスペースを確保 */
.page_id438 .form__row {
	margin-bottom: 60px;
	position: relative;
	border-bottom: none !important;
	border-top: none !important;
}

/* =================================================
   一般お問い合わせフォーム (ID: 166) - 他のフォームと同じレイアウト
   ================================================= */
/* ページタイトルとパンくずリストを非表示 */
.page_id166 #breadcrumbs,
.page_id166 .breadcrumbs,
.page_id166 .main_ttl,
.page_id166 h1:not(.first-contact-hero-title) {
	display: none !important;
}

/* ヒーローセクション - 他のフォームと同じスタイル */
.page_id166 .first-contact-hero {
	position: relative;
	width: 100vw;
	height: 407px;
	overflow: hidden;
	background-image: url('../img/kv/contact.jpg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	margin-left: calc(-50vw + 50%);
	margin-right: calc(-50vw + 50%);
}

/* マスクレイヤー */
.page_id166 .first-contact-hero-mask {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.4);
}

.page_id166 .first-contact-hero-content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
	z-index: 2;
}

.page_id166 .first-contact-hero-title {
	font-family: 'Zen Kaku Gothic Antique', sans-serif;
	font-weight: 700;
	font-size: 36px;
	line-height: 1.5;
	color: #ffffff;
	margin: 0;
}

/* フォームコンテナ */
.page_id166 .first-contact-form-wrapper {
	background-color: #efefef;
	padding: 80px 0 100px;
	position: relative;
}

.page_id166 .first-contact-form-container {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 20px;
}

.page_id166 .form__wrap.template02 {
	max-width: 996px;
	margin: 0 auto;
	padding-top: 60px;
}

/* フォーム行 */
.page_id166 .form__row {
	display: flex;
	margin-bottom: 24px;
	align-items: center;
	border: none !important;
}

/* 区切り線を非表示 */
.page_id166 .form__row:after,
.page_id166 .form__row:before {
	display: none !important;
}

/* Contact Form 7のデフォルトの区切り線を非表示 */
.page_id166 .wpcf7-form hr,
.page_id166 .form__wrap hr,
.page_id166 hr {
	display: none !important;
}

/* ラベル（タイトル） */
.page_id166 .form__label {
	width: 300px;
	padding-right: 0;
	font-family: 'Zen Kaku Gothic Antique', sans-serif;
	font-weight: 500;
	font-size: 16px;
	color: #1b1b1b;
	text-align: left;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 24px;
}

/* 必須バッジ */
.page_id166 .form__label.is-required::after {
	content: "必須";
	display: inline-block;
	background-color: #c00707;
	color: #ffffff;
	font-family: 'Zen Kaku Gothic Antique', sans-serif;
	font-weight: 400;
	font-size: 16px;
	padding: 0 16px;
	height: 24px;
	line-height: 24px;
	border-radius: 12px;
	white-space: nowrap;
	margin: 0;
	min-width: 48px;
	text-align: center;
	flex-shrink: 0;
}

/* 任意バッジ */
.page_id166 .form__label.is-optional::after {
	content: "任意";
	display: inline-block;
	background-color: #999999;
	color: #ffffff;
	font-family: 'Zen Kaku Gothic Antique', sans-serif;
	font-weight: 400;
	font-size: 16px;
	padding: 0 16px;
	height: 24px;
	line-height: 24px;
	border-radius: 12px;
	white-space: nowrap;
	margin: 0;
	min-width: 48px;
	text-align: center;
	flex-shrink: 0;
}

/* 入力エリア - パディングを含む */
.page_id166 .form__body {
	flex: 1;
	padding: 16px;
	background-color: transparent;
	border-radius: 4px;
	position: relative;
}

/* 入力フィールド - パディング内で100%幅 */
.page_id166 .form__body input[type="text"],
.page_id166 .form__body input[type="email"],
.page_id166 .form__body input[type="tel"],
.page_id166 .form__body input[type="date"],
.page_id166 .form__body textarea {
	width: 100%;
	height: 40px;
	background-color: #ffffff;
	border: 1px solid #333333;
	padding: 0 16px;
	font-family: 'Zen Kaku Gothic Antique', sans-serif;
	font-size: 16px;
	color: #1b1b1b;
	box-sizing: border-box;
}

/* selectを別で定義 */
.page_id166 .form__body select {
	width: 100%;
	height: 40px;
	background-color: #ffffff;
	border: 1px solid #333333;
	padding: 0 16px;
	font-family: 'Zen Kaku Gothic Antique', sans-serif;
	font-size: 16px;
	color: #1b1b1b;
	box-sizing: border-box;
}

.page_id166 .form__body input::placeholder,
.page_id166 .form__body textarea::placeholder {
	color: #9f9f9f;
}

.page_id166 .form__body input:focus,
.page_id166 .form__body textarea:focus,
.page_id166 .form__body select:focus {
	outline: none;
	border-color: #c00707;
}

/* お名前行 - 通常の1つのフィールドとして扱う */
.page_id166 .form__row.row-name .form__body {
	display: block !important;
	width: 100% !important;
	margin-right: 0 !important;
	padding: 16px !important;
	vertical-align: top;
	background-color: transparent;
	border-radius: 4px;
}

/* テキストエリア行 */
.page_id166 .form__row.row-textarea {
	display: flex;
	margin-bottom: 24px;
	align-items: flex-start;
}

/* テキストエリアのラベルを透明に */
.page_id166 .form__row.row-textarea .form__label {
	visibility: hidden;
}

.page_id166 .form__row.row-textarea .form__body {
	flex: 1;
	padding: 16px;
	background-color: transparent;
	border-radius: 4px;
}

/* テキストエリア */
.page_id166 .form__body textarea {
	width: 100%;
	height: 300px; /* 高さを増やしました */
	background-color: #ffffff;
	border: 1px solid #333333;
	padding: 16px;
	font-family: 'Zen Kaku Gothic Antique', sans-serif;
	font-size: 16px;
	color: #1b1b1b;
	resize: vertical;
	box-sizing: border-box;
}

/* プライバシーポリシー */
.page_id166 .form__row.row-privacy {
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
	margin: 80px auto 80px !important;
	width: 100% !important;
}

.page_id166 .form__row.row-privacy .form__body {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: 'Zen Kaku Gothic Antique', sans-serif;
	font-weight: 500;
	font-size: 16px;
	color: #1b1b1b;
	background-color: transparent;
	padding: 0;
	flex: none;
	width: auto;
}

.page_id166 .form__row.row-privacy a {
	color: #1b1b1b;
	text-decoration: underline;
}

/* 送信ボタン */
.page_id166 .form__row.row-submit {
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
	margin: 80px 0 100px !important;
}

.page_id166 .submit-btn {
	position: relative;
	display: inline-block;
}

.page_id166 .submit-btn .submit-bg {
	display: none;
}

.page_id166 .submit-btn input[type="submit"] {
	background-color: #c00707;
	color: #ffffff;
	border: 2px solid #c00707;
	font-family: 'Noto Sans', 'Noto Sans JP', sans-serif;
	font-size: 24px;
	font-weight: 300;
	padding: 20px 60px;
	width: auto;
	min-width: 240px;
	height: 64px;
	border-radius: 32px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: block;
	margin: 0 auto;
	text-align: center;
	line-height: 1;
}

.page_id166 .submit-btn input[type="submit"]:hover {
	background-color: #ffffff !important;
	color: #c00707 !important;
	border-color: #c00707 !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(192, 7, 7, 0.3);
}

/* エラーメッセージ */
.page_id166 .error-message,
.page_id166 .wpcf7-not-valid-tip {
	color: #c00707;
	font-family: 'Zen Kaku Gothic Antique', sans-serif;
	font-weight: 500;
	font-size: 12px;
	margin-top: 8px;
	display: block;
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	padding: 0 16px;
	z-index: 1;
}

.page_id166 .form__body {
	position: relative;
}

.page_id166 .wpcf7-not-valid {
	border-color: #c00707 !important;
}

/* フォーム行に下余白を追加してエラーメッセージ用のスペースを確保 */
.page_id166 .form__row {
	margin-bottom: 60px;
	position: relative;
	border-bottom: none !important;
	border-top: none !important;
}

/* =================================================
   エラーメッセージ共通
   ================================================= */
.wpcf7-not-valid-tip {
	color: #c00707;
	font-size: 13px;
	margin-top: 4px;
	display: block;
}

.wpcf7-not-valid {
	border-color: #c00707 !important;
}

.wpcf7-response-output {
	margin: 30px 0;
	padding: 15px;
	border-radius: 4px;
	text-align: center;
	font-weight: 600;
}

.wpcf7-validation-errors {
	background-color: #ffeee9;
	color: #c00707;
	border: 1px solid #ffcccc;
}

.wpcf7-mail-sent-ok {
	background-color: #e9ffe9;
	color: #008800;
	border: 1px solid #ccffcc;
}


/* お名前行 - 通常の1つのフィールドとして扱う */
.page_id429 .form__row.row-name .form__body {
	display: block !important;
	width: 100% !important;
	margin-right: 0 !important;
	padding: 16px !important;
	vertical-align: top;
	background-color: transparent;
	border-radius: 4px;
}

/* 日時入力行 - 2つのフィールドを横並び */
.page_id429 .form__row.row-email .form__body {
	display: inline-block;
	width: 50%;
	margin-right: 0;
	vertical-align: top;
}

/* 日付フィールドアイコン */
.page_id429 .form__body input[type="date"] {
	position: relative;
	padding-right: 40px;
}

.page_id429 .form__body input[type="date"]::-webkit-calendar-picker-indicator {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	background-color: transparent;
	cursor: pointer;
}

/* チェックボックス行の特別な配置 */
.page_id429 .form__row.row-checkbox {
	align-items: flex-start;
}

/* チェックボックス - Contact Form 7の構造に対応 */
.page_id429 .form__row.row-checkbox .form__body {
	display: block;
}

.page_id429 .form__row.row-checkbox .wpcf7-list-item {
	display: block;
	margin-bottom: 16px;
}

.page_id429 .form__row.row-checkbox .wpcf7-list-item label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-family: 'Zen Kaku Gothic Antique', sans-serif;
	font-weight: 500;
	font-size: 16px;
	color: #1b1b1b;
}

.page_id429 .form__row.row-checkbox input[type="checkbox"] {
	width: 16px;
	height: 16px;
	border: 1px solid #000000;
	margin: 0;
	cursor: pointer;
}

/* テキストエリア行 */
.page_id429 .form__row.row-textarea {
	display: flex;
	margin-bottom: 24px;
	align-items: flex-start;
}

/* テキストエリアのラベルを透明に */
.page_id429 .form__row.row-textarea .form__label {
	visibility: hidden;
}

.page_id429 .form__row.row-textarea .form__body {
	flex: 1;
	padding: 16px;
	background-color: transparent;
	border-radius: 4px;
}

/* テキストエリア */
.page_id429 .form__body textarea {
	width: 100%;
	height: 200px;
	background-color: #ffffff;
	border: 1px solid #333333;
	padding: 16px;
	font-family: 'Zen Kaku Gothic Antique', sans-serif;
	font-size: 16px;
	color: #1b1b1b;
	resize: vertical;
	box-sizing: border-box;
}

/* プライバシーポリシー */
.page_id429 .form__row.row-privacy {
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
	margin: 80px auto 80px !important;
	width: 100% !important;
}

.page_id429 .form__row.row-privacy .form__body {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: 'Zen Kaku Gothic Antique', sans-serif;
	font-weight: 500;
	font-size: 16px;
	color: #1b1b1b;
	background-color: transparent;
	padding: 0;
	flex: none;
	width: auto;
}

.page_id429 .form__row.row-privacy a {
	color: #1b1b1b;
	text-decoration: underline;
}

/* 送信ボタン */
.page_id429 .form__row.row-submit {
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
	margin: 80px 0 100px !important;
}

.page_id429 .submit-btn {
	position: relative;
	display: inline-block;
}

.page_id429 .submit-btn .submit-bg {
	display: none;
}

.page_id429 .submit-btn input[type="submit"] {
	background-color: #c00707;
	color: #ffffff;
	border: 2px solid #c00707;
	font-family: 'Noto Sans', 'Noto Sans JP', sans-serif;
	font-size: 24px;
	font-weight: 300;
	padding: 20px 60px;
	width: auto;
	min-width: 240px;
	height: 64px;
	border-radius: 32px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: block;
	margin: 0 auto;
	text-align: center;
	line-height: 1;
}

.page_id429 .submit-btn input[type="submit"]:hover {
	background-color: #ffffff !important;
	color: #c00707 !important;
	border-color: #c00707 !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(192, 7, 7, 0.3);
}

/* エラーメッセージ */
.page_id429 .error-message,
.page_id429 .wpcf7-not-valid-tip {
	color: #c00707;
	font-family: 'Zen Kaku Gothic Antique', sans-serif;
	font-weight: 500;
	font-size: 12px;
	margin-top: 8px;
	display: block;
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	padding: 0 16px;
	z-index: 1;
}

.page_id429 .wpcf7-not-valid {
	border-color: #c00707 !important;
}

/* フォーム行に下余白を追加してエラーメッセージ用のスペースを確保 */
.page_id429 .form__row {
	margin-bottom: 60px;
	position: relative;
	border-bottom: none !important;
	border-top: none !important;
}

/* =================================================
   デスクトップ版でのフォーム行レイアウト強制（優先度を上げる）
   ================================================= */
@media (min-width: 769px) {
	/* すべてのフォーム行を横並びに */
	.page_id438 .form__row,
	.page_id429 .form__row,
	.page_id166 .form__row {
		display: flex !important;
		align-items: center !important;
		margin-bottom: 24px !important;
	}
	
	/* ラベル（タイトル + 必須バッジ）の幅固定 */
	.page_id438 .form__label,
	.page_id429 .form__label,
	.page_id166 .form__label {
		width: 300px !important;
		display: flex !important;
		align-items: center !important;
		justify-content: flex-end !important;
		gap: 24px !important;
		flex-shrink: 0 !important;
	}
	
	/* ラベル内のテキスト */
	.page_id438 .form__label label,
	.page_id429 .form__label label,
	.page_id166 .form__label label {
		text-align: right !important;
		flex-grow: 1 !important;
	}
	
	/* 入力エリア */
	.page_id438 .form__body,
	.page_id429 .form__body,
	.page_id166 .form__body {
		flex: 1 !important;
		padding: 16px !important;
	}
}

/* =================================================
   レスポンシブ対応
   ================================================= */
@media (max-width: 768px) {
  /* ラベルを縦並び＆左揃えにする */
  .page_id438 .form__label,
  .page_id429 .form__label,
  .page_id166 .form__label {
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
    gap: 4px !important;
  }

  /* 必須バッジを下に配置・左揃え */
  .page_id438 .form__label.is-required::after,
  .page_id429 .form__label.is-required::after,
  .page_id166 .form__label.is-required::after {
    margin-left: 0 !important;
    margin-top: 2px !important;
    align-self: flex-start !important;
  }
  

	/* FP相談フォーム */
	.page_id429 .form__row {
		flex-direction: column;
		gap: 8px;
	}
	
	.page_id429 .form__label {
		width: 100%;
		padding-top: 0;
		margin-bottom: 4px;
		text-align: left;
	}
	
	.page_id429 .form__label.is-required::after {
		margin-left: 8px;
	}
	
	.page_id429 .form__body {
		width: 100%;
	}
	
	.page_id429 .form__row.row-name .form__body.row_two,
	.page_id429 .form__row.row-email .form__body {
		width: 100%;
		display: block;
		margin-bottom: 12px;
	}
	
	.page_id429 .submit-btn input[type="submit"] {
		width: 200px;
		font-size: 20px;
		padding: 16px 0;
		height: 56px;
	}
	
	/* 家探し相談フォーム */
	.page_id438 .first-contact-hero {
		height: 250px;
	}
	
	.page_id438 .first-contact-hero-title {
		font-size: 24px;
	}
	
	.page_id438 .form__row {
		flex-direction: column;
		gap: 8px;
	}
	
	.page_id438 .form__label {
		width: 100%;
		padding-top: 0;
		margin-bottom: 4px;
	}
	
	.page_id438 .form__label.is-required::after {
		margin-left: 8px;
	}
	
	.page_id438 .form__body {
		width: 100%;
	}
	
	.page_id438 .form__body input[type="text"],
	.page_id438 .form__body input[type="email"],
	.page_id438 .form__body input[type="tel"],
	.page_id438 .form__body input[type="date"],
	.page_id438 .form__body select,
	.page_id438 .form__body textarea {
		width: 100%;
		max-width: 100%;
	}
	
	.page_id438 .form__row.row-email .form__body:first-of-type,
	.page_id438 .form__row.row-email .form__body:last-of-type {
		width: 100%;
		display: block;
		margin-bottom: 12px;
	}
	
	.page_id438 .submit-btn input[type="submit"] {
		width: 200px;
		font-size: 20px;
		padding: 16px 0;
		height: 56px;
	}

	
}