.cf7-step-form {
	margin: 20px auto;
}
.cf7-step-header {
	margin-bottom: 24px;
}

.cf7-step-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}

.cf7-step-count {
	font-size: 13px;
	font-weight: 700;
	color: #666;
	letter-spacing: 0.04em;
}

.cf7-step-title {
	font-size: 14px;
	font-weight: 700;
	color: #333;
}

.cf7-progress {
	width: 100%;
	height: 10px;
	background: #e8e8e8;
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 18px;
}

.cf7-progress-bar {
	width: 20%;
	height: 100%;
	background: linear-gradient(90deg, #333 0%, #666 100%);
	border-radius: 999px;
	transition: width 0.3s ease;
}

.cf7-step-indicator {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 10px;
}

.cf7-step-indicator .step-item {
	text-align: center;
	padding: 10px 12px;
	background: #f3f3f3;
	border-radius: 10px;
	font-size: 13px;
	color: #666;
	font-weight: 700;
	transition: all 0.25s ease;
}

.cf7-step-indicator .step-item.is-active {
	background: #333;
	color: #fff;
}

.cf7-step-indicator .step-item.is-done {
	background: #dcdcdc;
	color: #333;
}

.cf7-step {
	display: none;
	padding: 28px;
	border: 1px solid #e5e5e5;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.cf7-step.is-active {
	display: block;
}

.cf7-step h3 {
	margin: 0 0 22px;
	font-size: 24px;
	line-height: 1.4;
	color: #222;
}

.cf7-step p {
	margin: 0 0 18px;
	color: #333;
	line-height: 1.8;
}

.cf7-step input[type="text"],
.cf7-step input[type="email"],
.cf7-step input[type="tel"],
.cf7-step input[type="file"],
.cf7-step select,
.cf7-step textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 13px 14px;
	margin-top: 6px;
	border: 1px solid #cfcfcf;
	border-radius: 10px;
	background: #fff;
	font-size: 14px;
	line-height: 1.6;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cf7-step input[type="text"]:focus,
.cf7-step input[type="email"]:focus,
.cf7-step input[type="tel"]:focus,
.cf7-step input[type="file"]:focus,
.cf7-step select:focus,
.cf7-step textarea:focus {
	outline: none;
	border-color: #666;
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.cf7-step textarea {
	min-height: 180px;
	resize: vertical;
}

.required-badge {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 8px;
	background: #ff0000;
	color: #fff;
	border-radius: 999px;
	font-size: 11px;
	line-height: 1.6;
	vertical-align: middle;
}

.cf7-step-buttons {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 12px;
	flex-wrap: nowrap;
}

.cf7-step-buttons button,
.cf7-step-buttons input[type="submit"] {
	width:auto;
	min-width: 120px;
	max-width: 180px;
	flex: 0 1 auto;
	padding: 13px 22px;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.cf7-step-buttons button:hover,
.cf7-step-buttons input[type="submit"]:hover {
	opacity: 0.92;
}

.cf7-step-buttons button:active,
.cf7-step-buttons input[type="submit"]:active {
	transform: translateY(1px);
}

.cf7-next,
.cf7-submit-btn {
	background: #333;
	color: #fff;
}

.cf7-prev {
	background: #ececec;
	color: #333;
}

.cf7-confirm-box {
	border: 1px solid #e2e2e2;
	border-radius: 14px;
	overflow: hidden;
	background: #fafafa;
}

.cf7-confirm-row {
	display: grid;
	grid-template-columns: 220px 1fr;
	border-bottom: 1px solid #e6e6e6;
}

.cf7-confirm-row:last-child {
	border-bottom: none;
}

.cf7-confirm-row.is-wide {
	align-items: start;
}

.cf7-confirm-label {
	padding: 16px;
	background: #f1f1f1;
	font-weight: 700;
	color: #333;
}

.cf7-confirm-value {
	padding: 16px;
	color: #333;
	word-break: break-word;
	line-height: 1.8;
}

.cf7-note {
	font-size: 13px;
	color: #666;
}

.cf7-final-check {
	margin-top: 16px;
	padding: 14px 16px;
	border-radius: 10px;
	background: #f7f7f7;
	font-size: 14px;
	color: #333;
}

.cf7-error-summary {
	margin-bottom: 18px;
	padding: 14px 16px;
	border-radius: 10px;
	background: #fff2f2;
	border: 1px solid #f1caca;
	color: #b10000;
	font-size: 14px;
	line-height: 1.8;
}

.cf7-step .wpcf7-not-valid {
	border-color: #d63638 !important;
}

.cf7-step .wpcf7-not-valid-tip {
	display: block;
	margin-top: 8px;
	font-size: 13px;
}

.cf7-step .wpcf7-checkbox {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 14px;
	margin-top: 8px;
}

.cf7-step .wpcf7-list-item {
	margin: 0;
}

.cf7-step .wpcf7-list-item label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border: 1px solid #d6d6d6;
	border-radius: 999px;
	background: #fff;
	cursor: pointer;
	line-height: 1.4;
}

.cf7-step .wpcf7-list-item input {
	margin: 0;
}

@media (max-width: 768px) {
	.cf7-step-buttons {
		margin-top: 16px;
		flex-direction: row;
		justify-content: center;
		align-items: center;
		gap: 10px;
	}

	.cf7-step-buttons button,
	.cf7-step-buttons input[type="submit"] {
		width: auto;
		min-width: 120px;
		max-width: 160px;
		flex: 0 1 auto;
	}
	.cf7-step {
		padding: 20px;
		border-radius: 14px;
	}

	.cf7-step h3 {
		font-size: 20px;
		margin-bottom: 18px;
	}

	.cf7-step-indicator {
		grid-template-columns: repeat(2, 1fr);
	}

	.cf7-confirm-row {
		grid-template-columns: 1fr;
	}

	.cf7-confirm-label {
		padding-bottom: 8px;
	}

	.cf7-confirm-value {
		padding-top: 0;
	}

}
.cf7-priority-group {
	display: flex;
	gap: 16px;
	margin-top: 8px;
}

.cf7-priority-item {
	flex: 1;
}

.cf7-priority-item label {
	font-size: 13px;
	font-weight: 700;
	color: #555;
}
.wpcf7-form.sent .wpcf7-response-output {
	display: none;
}

/* スマホ対応 */
@media (max-width: 768px) {
	.cf7-priority-group {
		flex-direction: column;
	}

	/* ステップ一覧を消す */
	.cf7-step-indicator {
		display: none;
	}

	/* ヘッダー余白調整 */
	.cf7-step-header {
		margin-bottom: 16px;
	}

	/* タイトル少し強調 */
	.cf7-step-title {
		font-size: 15px;
	}

	/* プログレスバー少し太く */
	.cf7-progress {
		height: 12px;
	}
	.cf7-step-count {
		font-size: 12px;
		font-weight: 600;
		color: #888;
	}

	.cf7-step-title {
		font-size: 16px;
		font-weight: 700;
	}
	.cf7-progress-bar {
		background: linear-gradient(90deg, #000 0%, #666 100%);
	}
	.cf7-step-meta {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}

	/* ヘッダー下の余白 */
	.cf7-step-header {
		margin-bottom: 10px;
	}

	/* ステップ内の余白 */
	.cf7-step {
		padding: 16px;
	}

	/* 見出し下 */
	.cf7-step h3 {
		margin-bottom: 12px;
	}

	/* 各項目の間隔 */
	.cf7-step p {
		margin-bottom: 12px;
	}

	/* ボタン上の余白 */
	.cf7-step-buttons {
		margin-top: 16px;
	}
}
