/* Funbound 立地診断 — スタイル */

.funbound-shindan {
	max-width: 720px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
	color: #1f2937;
	line-height: 1.7;
	font-size: 16px;
	box-sizing: border-box;
}

.funbound-shindan *,
.funbound-shindan *::before,
.funbound-shindan *::after {
	box-sizing: border-box;
}

/* ステップヘッダ */
.fs-steps {
	display: flex;
	justify-content: space-between;
	list-style: none;
	padding: 0;
	margin: 0 0 24px;
	gap: 8px;
}
.fs-step {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	position: relative;
	padding-top: 6px;
	color: #9ca3af;
	font-size: 13px;
}
.fs-step__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #e5e7eb;
	color: #6b7280;
	font-weight: 700;
	margin-bottom: 6px;
	transition: background 0.15s, color 0.15s;
}
.fs-step.is-current .fs-step__num { background: #0f172a; color: #fff; }
.fs-step.is-current { color: #0f172a; font-weight: 600; }
.fs-step.is-done .fs-step__num { background: #16a34a; color: #fff; }
.fs-step.is-done { color: #16a34a; }

/* イントロ */
.fs-intro {
	margin: 0 0 16px;
	color: #374151;
}

/* フォーム */
.fs-form { display: flex; flex-direction: column; gap: 16px; }
.fs-field { display: flex; flex-direction: column; gap: 6px; }
.fs-field label {
	font-weight: 600;
	font-size: 14px;
	color: #111827;
}
.fs-req { color: #dc2626; margin-left: 4px; }
.fs-hint { margin: 4px 0 0; font-size: 12px; color: #6b7280; }

.fs-field input[type="text"],
.fs-field input[type="email"],
.fs-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 15px;
	font-family: inherit;
	background: #fff;
	color: inherit;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.fs-field input:focus,
.fs-field textarea:focus {
	outline: none;
	border-color: #0f172a;
	box-shadow: 0 0 0 3px rgba(15,23,42,0.12);
}
.fs-field textarea { resize: vertical; min-height: 100px; }

.fs-field--consent { flex-direction: row; align-items: flex-start; }
.fs-consent-label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-weight: 400;
	font-size: 14px;
	color: #374151;
	cursor: pointer;
	line-height: 1.6;
}
.fs-consent-label input[type="checkbox"] { margin-top: 4px; }
.fs-consent-label a { color: #0f172a; text-decoration: underline; }

/* アクション */
.fs-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.fs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 22px;
	background: #0f172a;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s, opacity 0.15s;
	font-family: inherit;
}
.fs-btn:hover:not(:disabled) { background: #1f2937; }
.fs-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.fs-btn--ghost { background: #fff; color: #0f172a; border: 1px solid #d1d5db; }
.fs-btn--ghost:hover:not(:disabled) { background: #f9fafb; }
.fs-btn--line { background: #06c755; color: #fff; }
.fs-btn--line:hover { background: #05a648; }
.fs-btn--owner { background: #a16207; color: #fff; }
.fs-btn--owner:hover { background: #854d0e; }

/* エラー */
.fs-error {
	padding: 10px 14px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
	border-radius: 8px;
	font-size: 14px;
}

/* ローディング */
.fs-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 48px 16px;
	color: #6b7280;
	gap: 12px;
}
.fs-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid #e5e7eb;
	border-top-color: #0f172a;
	border-radius: 50%;
	animation: fs-spin 0.9s linear infinite;
}
@keyframes fs-spin { to { transform: rotate(360deg); } }

/* 結果表示 */
.fs-result {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 20px 22px;
	margin-bottom: 20px;
}
.fs-result__body {
	white-space: pre-wrap;
	word-break: break-word;
	font-size: 15px;
	line-height: 1.85;
	color: #111827;
}

.fs-disclaimer {
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 8px;
	padding: 14px 16px;
	margin-bottom: 24px;
	font-size: 13px;
	color: #78350f;
}
.fs-disclaimer strong { display: block; margin-bottom: 6px; color: #78350f; }
.fs-disclaimer p { margin: 0; }

.fs-cta {
	text-align: center;
	padding: 20px 16px;
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	border-radius: 12px;
}
.fs-cta__lead { margin: 0 0 14px; font-size: 14px; color: #065f46; }
.fs-cta .fs-actions { justify-content: center; }
.fs-actions--stack {
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
	max-width: 520px;
	margin: 0 auto;
}
.fs-actions--stack .fs-btn {
	width: 100%;
	padding: 14px 18px;
	line-height: 1.5;
	text-align: center;
	font-size: 14.5px;
}

/* モバイル */
@media (max-width: 480px) {
	.funbound-shindan { font-size: 15px; }
	.fs-step__label { display: none; }
	.fs-btn { width: 100%; }
	.fs-result { padding: 16px; }
}
