@charset "UTF-8";

/* 第5-D段階：お問い合わせ・完了ページ限定補正 */
.phase5d-page,
.phase5d-page * {
	box-sizing: border-box;
}

.phase5d-page #content,
.phase5d-page #content section,
.phase5d-page #content table {
	max-width: 100%;
}

.phase5d-page #content img {
	width: auto;
	max-width: 100%;
	height: auto;
}

/* お問い合わせを現在地として統一 */
body.phase5d-page #wrapper #navigation #navi4-on a {
	background: #ffffff !important;
	border-bottom: 3px solid #178637;
	color: #178637 !important;
}

.phase5d-page #content > h2#p4-1 {
	width: 100%;
	height: auto;
	margin: 0 0 28px;
	padding: 4px 0 14px 18px;
	background: none !important;
	border: 0;
	border-bottom: 2px solid #d7e4d9;
	border-left: 6px solid #178637;
	color: #1e2b22;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.4;
	text-indent: 0;
}

/* フォーム本文は入力しやすい幅を保つ */
.contact-page.phase5d-page #content {
	width: 100%;
	max-width: 864px;
}

.contact-page.phase5d-page .contact-lead,
.contact-page.phase5d-page .contact-method-grid,
.contact-page.phase5d-page .contact-jump-wrap,
.contact-page.phase5d-page .contact-form-section,
.contact-page.phase5d-page .contact-help-section {
	width: 100%;
	max-width: 864px;
	margin-right: 0;
	margin-left: 0;
}

.contact-page.phase5d-page .contact-lead p,
.contact-page.phase5d-page .contact-method-card p,
.contact-page.phase5d-page .contact-help-section li,
.contact-page.phase5d-page .contact-form-guide,
.contact-page.phase5d-page .contact-field-note,
.contact-page.phase5d-page .contact-submit-note {
	font-size: 15px;
	line-height: 1.8;
}

.contact-page.phase5d-page .contact-method-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.contact-page.phase5d-page .contact-method-card {
	width: 100%;
	padding: 22px;
}

.contact-page.phase5d-page .contact-tel a {
	color: #0f6f2a;
	font-size: 28px;
}

.contact-page.phase5d-page .contact-jump-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 12px 28px;
	background: #178637;
	border: 1px solid #178637;
	border-radius: 6px;
	font-size: 16px;
}

.contact-page.phase5d-page .contact-form-section {
	scroll-margin-top: 24px;
	padding: 30px 32px;
	border-color: #d7e4d9;
	box-shadow: 0 8px 24px rgba(22, 72, 35, .06);
}

.contact-page.phase5d-page .contact-section-title,
.contact-page.phase5d-page .contact-help-section h3 {
	color: #1c582d;
	font-size: 22px;
}

.contact-page.phase5d-page .contact-form-group {
	margin-bottom: 26px;
}

.contact-page.phase5d-page .contact-form-group > label,
.contact-page.phase5d-page .contact-form-group > legend {
	margin-bottom: 10px;
	color: #263129;
	font-size: 16px;
}

.contact-page.phase5d-page .required-badge,
.contact-page.phase5d-page .optional-badge {
	padding: 3px 8px;
	font-size: 12px;
}

.contact-page.phase5d-page .required-badge {
	background: #a53b36;
}

.contact-page.phase5d-page .optional-badge {
	background: #687169;
}

.contact-page.phase5d-page .contact-form input[type="text"],
.contact-page.phase5d-page .contact-form input[type="email"],
.contact-page.phase5d-page .contact-form input[type="tel"],
.contact-page.phase5d-page .contact-form select,
.contact-page.phase5d-page .contact-form textarea {
	min-height: 50px;
	padding: 12px 14px;
	border: 1px solid #b9cbbb;
	border-radius: 6px;
	font-size: 16px;
}

.contact-page.phase5d-page .contact-form textarea {
	min-height: 210px;
}

.contact-page.phase5d-page .contact-form input:focus,
.contact-page.phase5d-page .contact-form select:focus,
.contact-page.phase5d-page .contact-form textarea:focus {
	border-color: #178637;
	outline: 3px solid rgba(23, 134, 55, .2);
	outline-offset: 1px;
}

.contact-page.phase5d-page .contact-radio-group label {
	min-height: 44px;
	margin-right: 14px;
	padding: 8px 10px;
	background: #f7faf7;
	border: 1px solid #dce6dd;
	border-radius: 6px;
	font-size: 15px;
}

.contact-page.phase5d-page .contact-consent-section {
	padding: 22px;
	background: #f6faf6;
	border-color: #cfdfd2;
}

.contact-page.phase5d-page .contact-consent-scroll {
	max-height: 280px;
	font-size: 15px;
}

.contact-page.phase5d-page .contact-consent-scroll p {
	font-size: 14px;
	line-height: 1.8;
}

.contact-page.phase5d-page .contact-agree-label {
	min-height: 48px;
	padding: 12px;
	background: #ffffff;
	border: 1px solid #cddbcf;
	border-radius: 6px;
	font-size: 15px;
}

.contact-page.phase5d-page .contact-confirm-button,
.contact-page.phase5d-page .contact-send-button,
.contact-page.phase5d-page .contact-back-button {
	min-width: 220px;
	min-height: 52px;
	padding: 12px 22px;
	border-radius: 6px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
}

.contact-page.phase5d-page .contact-confirm-button,
.contact-page.phase5d-page .contact-send-button {
	background: #178637;
	border: 1px solid #178637;
	color: #ffffff;
}

.contact-page.phase5d-page .contact-confirm-button:hover,
.contact-page.phase5d-page .contact-send-button:hover {
	background: #0f6f2a;
	border-color: #0f6f2a;
}

.contact-page.phase5d-page .contact-back-button {
	background: #ffffff;
	border: 1px solid #819087;
	color: #3f4a43;
}

.contact-page.phase5d-page .contact-back-button:hover {
	background: #f2f5f2;
}

.contact-page.phase5d-page .contact-confirm-table {
	table-layout: fixed;
}

.contact-page.phase5d-page .contact-confirm-table th,
.contact-page.phase5d-page .contact-confirm-table td {
	padding: 14px 16px;
	font-size: 16px;
	line-height: 1.75;
}

.contact-page.phase5d-page .contact-confirm-table th {
	background: #f1f8f2;
}

.contact-page.phase5d-page .contact-error-box {
	padding: 18px 20px;
	background: #fff7f6;
	border-color: #d9aaa6;
	border-left-color: #a53b36;
	color: #7f2925;
	font-size: 15px;
	line-height: 1.7;
}

/* ハニーポットは既存の非表示状態を維持 */
.contact-page.phase5d-page .contact-hp-field {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

/* 問い合わせページ内CTAは電話・信頼情報の補助導線として控えめに表示 */
.phase5d-page .cta-area .contact-box {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 150px;
	gap: 18px;
}

.phase5d-page .cta-area .contact-left,
.phase5d-page .cta-area .contact-right {
	width: 100%;
	margin: 0;
	padding: 22px;
	background: #ffffff;
	border: 1px solid #dce6dd;
	border-radius: 7px;
	text-align: center;
}

.phase5d-page .cta-area .contact-left p {
	margin: 0 0 9px;
	font-size: 15px;
	line-height: 1.7;
}

.contact-page.phase5d-page .cta-area .contact-left p:nth-child(2) a,
.thanks-page.phase5d-page .cta-area .contact-left p:first-child a[href^="tel:"] {
	color: #0f6f2a;
	font-size: 28px;
	font-weight: 700;
	text-decoration: none;
}

.phase5d-page .cta-area .contact-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 10px 20px;
	background: #ffffff;
	border: 1px solid #178637;
	border-radius: 6px;
	color: #178637 !important;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
}

.phase5d-page .cta-area .contact-btn:hover {
	background: #f1f8f2;
}

.thanks-page.phase5d-page .cta-area .contact-btn {
	width: 100%;
	max-width: 280px;
	margin-right: auto;
	margin-left: auto;
}

.phase5d-page .cta-area .contact-right {
	display: flex;
	align-items: center;
	justify-content: center;
}

.phase5d-page .cta-area .privacy-logo {
	width: auto;
	max-width: 76px;
	height: auto;
}

/* 完了ページ */
.thanks-page.phase5d-page #content > p#p4-2 {
	width: 100%;
	height: auto;
	margin: 0 0 24px;
	padding: 10px 14px;
	background: #f3f8f1;
	border-left: 5px solid #178637;
	color: #176f31;
	font-size: 21px;
	font-weight: 700;
	line-height: 1.5;
	text-indent: 0;
}

.thanks-page.phase5d-page #content .env-lead-box,
.thanks-page.phase5d-page #content > section {
	width: 100%;
	margin: 0 0 28px;
	padding: 28px 30px;
	background: #ffffff;
	border: 1px solid #dfe8e1;
	border-radius: 10px;
	box-shadow: 0 8px 22px rgba(22, 72, 35, .05);
}

.thanks-page.phase5d-page #content .env-lead-box {
	background: #f4faf5;
	border-left: 5px solid #178637;
}

.thanks-page.phase5d-page #content .e-title {
	width: 100%;
	height: auto;
	margin: 26px 0 12px;
	padding: 9px 12px;
	background: #f1f8f2 !important;
	border: 0;
	border-left: 4px solid #178637;
	color: #233128;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.55;
	text-align: left;
	text-indent: 0;
}

.thanks-page.phase5d-page #content section > .e-title:first-child {
	margin-top: 0;
}

.thanks-page.phase5d-page #content .e-contents,
.thanks-page.phase5d-page #content .env-lead-box p {
	width: 100%;
	height: auto;
	margin: 0 0 16px;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: #333333;
	font-size: 16px;
	line-height: 1.85;
	text-align: left;
	text-indent: 0;
}

.thanks-page.phase5d-page #content .consultation-guide {
	margin-top: 30px;
	padding: 0;
	border: 0;
	box-shadow: none;
}

@media screen and (max-width: 1023px) {
	body.phase5d-page #wrapper #navigation #navi4-on a {
		border-bottom: 3px solid #178637;
	}
}

@media screen and (max-width: 768px) {
	body.phase5d-page #wrapper #navigation #navi4-on a {
		background: #f1f8f2 !important;
		border-bottom: 1px solid #d8e6da;
		border-left: 4px solid #178637;
	}

	.phase5d-page #content > h2#p4-1 {
		margin-bottom: 24px;
		padding: 2px 0 12px 14px;
		font-size: 25px;
	}

	.contact-page.phase5d-page .contact-lead,
	.contact-page.phase5d-page .contact-method-grid,
	.contact-page.phase5d-page .contact-jump-wrap,
	.contact-page.phase5d-page .contact-form-section,
	.contact-page.phase5d-page .contact-help-section {
		margin-right: 0;
		margin-left: 0;
	}

	.contact-page.phase5d-page .contact-method-grid,
	.phase5d-page .cta-area .contact-box {
		grid-template-columns: 1fr;
	}

	.contact-page.phase5d-page .contact-form-section {
		padding: 22px 18px;
	}

	.contact-page.phase5d-page .contact-radio-group label {
		display: flex;
		margin-right: 0;
	}

	.contact-page.phase5d-page .contact-confirm-button,
	.contact-page.phase5d-page .contact-send-button,
	.contact-page.phase5d-page .contact-back-button,
	.contact-page.phase5d-page .contact-jump-button {
		width: 100%;
		min-width: 0;
		min-height: 52px;
	}

	.contact-page.phase5d-page .contact-confirm-table,
	.contact-page.phase5d-page .contact-confirm-table tbody,
	.contact-page.phase5d-page .contact-confirm-table tr,
	.contact-page.phase5d-page .contact-confirm-table th,
	.contact-page.phase5d-page .contact-confirm-table td {
		display: block;
		width: 100%;
	}

	.contact-page.phase5d-page .contact-confirm-table tr {
		margin-bottom: 14px;
		border: 1px solid #d7dfd4;
		border-radius: 6px;
		overflow: hidden;
	}

	.contact-page.phase5d-page .contact-confirm-table th,
	.contact-page.phase5d-page .contact-confirm-table td {
		border: 0;
	}

	.contact-page.phase5d-page .contact-confirm-table th {
		border-bottom: 1px solid #d7dfd4;
	}

	.thanks-page.phase5d-page #content .env-lead-box,
	.thanks-page.phase5d-page #content > section {
		padding: 22px 20px;
	}
}
