/* ── ユーティリティ ── */
.is-hidden { display: none; }

/* ── 情報入力フォーム（ざつね屋ブランドトークン準拠・style.css の :root を継承） ── */
.info-form { margin-bottom: 24px; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 14px;
  font-weight: 700;
  color: var(--heading);
}

.form-group input {
  padding: 13px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  color: var(--text);
  background: var(--card-tint);
  transition: border-color 0.15s, background 0.15s;
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
}

.form-group input.input-error { border-color: #EF4444; }

.required {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  background: var(--orange);
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 4px;
  vertical-align: middle;
}

.form-error-msg {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #E5484D;
  font-weight: 700;
  margin-bottom: 12px;
}
.form-error-msg svg { width: 15px; height: 15px; flex-shrink: 0; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; fill: none; }

.form-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.7;
}

.skip-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
}
.btn-skip-link {
  background: none;
  border: none;
  color: var(--teal-dk);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

/* ── 複数選択ボタン ── */
.options-wrap { display: flex; flex-direction: column; gap: 10px; }

.multi-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.multi-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.15s;
}

.multi-btn.selected .multi-icon {
  background: var(--teal-dk);
  border-color: var(--teal-dk);
  color: #fff;
}

/* ── テキスト入力 ── */
.text-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  color: var(--text);
  background: var(--card-tint);
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}

.text-input:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
}

.text-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ── プロンプトライブラリ ── */
.library-card { border-left: 4px solid var(--teal); }

.library-header { color: var(--teal-dk); }

.library-intro {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

.prompt-item {
  background: var(--card-tint);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
}

.prompt-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.prompt-tag {
  font-size: 11px;
  font-weight: 700;
  background: var(--teal-dk);
  color: #fff;
  padding: 3px 12px;
  border-radius: 999px;
}

.prompt-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--heading);
}

.prompt-body {
  font-size: 13px;
  line-height: 1.75;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  margin-bottom: 10px;
}

.btn-copy {
  padding: 8px 18px;
  background: #fff;
  border: 1.5px solid var(--teal);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal-dk);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-copy:hover { background: var(--teal-dk); color: #fff; }

/* ── サービス提案 ── */
.recommend-card { border-left: 4px solid var(--orange) !important; }

.recommend-header { color: var(--orange-dk) !important; }

.recommend-intro {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

.recommend-item {
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
}

.recommend-item.rank-1 {
  background: var(--warm-bg);
  border: 1.5px solid var(--warm-line);
}

.recommend-item.rank-2 {
  background: var(--card-tint);
  border: 1.5px solid var(--border);
}

.recommend-rank {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.rank-1 .recommend-rank {
  background: var(--orange);
  color: #fff;
}

.rank-2 .recommend-rank {
  background: #E3EDEF;
  color: #7B8F9B;
}

.recommend-service {
  font-size: 16px;
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 4px;
}

.recommend-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange-dk);
  margin: 0 0 8px;
}

.recommend-reason {
  font-size: 13px;
  color: var(--text);
  line-height: 1.7;
  margin: 0;
}

.btn-cta {
  display: block;
  text-align: center;
  margin-top: 16px;
  text-decoration: none;
}

/* ── 結果アクション ── */
.result-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

#btn-export svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; fill: none; vertical-align: -3px; margin-right: 6px; }

/* ── 見積プラン ── */
.estimate-plan-card { border-left: 4px solid var(--teal) !important; }

.estimate-plan-header { color: var(--teal-dk) !important; }

.estimate-plan-body { padding: 4px 0; }

.estimate-service {
  font-size: 16px;
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 4px;
}

.estimate-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--teal-dk);
  margin: 0 0 8px;
}

.estimate-reason {
  font-size: 13px;
  color: var(--text);
  line-height: 1.7;
  margin: 0;
}

.estimate-select {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  color: var(--text);
  background: var(--card-tint);
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.estimate-select:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
}

/* ── 印刷スタイル ── */
@media print {
  .no-print { display: none !important; }
  .quiz-nav { display: none !important; }

  body { background: #fff; }
  .container { max-width: 100%; padding: 16px; }
  .brand { margin-bottom: 8px; }

  .score-card, .section-card, .stage-timeline, .prompt-item {
    box-shadow: none !important;
    break-inside: avoid;
  }

  .prompt-body {
    border: 1px solid #ccc;
  }

  .btn-copy { display: none; }

  .footer { margin-top: 24px; }
}

@media (max-width: 400px) {
  .welcome-hero h1 { font-size: 23px; }
}

/* スパム対策用ハニーポット：人間には見えないが、機械的にフォームを埋めるボットには見える */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
