/* 問い合わせ対応自動化デモ — ページ固有スタイル */

.logo-sub {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-faint);
  margin-left: 2px;
}

.sp-only { display: none; }

.card-heading { font-size: 17px; margin-bottom: 8px; }

/* ---- サンプルボタン ---- */
.sample-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 16px;
}

.submit-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.form-error {
  color: var(--danger);
  font-size: 13.5px;
  font-weight: 600;
}

/* ---- 処理ステップ ---- */
.steps {
  list-style: none;
  margin: 18px 0 8px;
  padding: 0;
}

.step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 4px;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-faint);
  transition: color 0.2s ease;
}
.step:last-child { border-bottom: none; }

.step-mark {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--panel);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  position: relative;
}

/* 実行中: スピナー風 */
.step.is-active { color: var(--ink); font-weight: 600; }
.step.is-active .step-mark {
  border-color: rgba(15, 110, 93, 0.25);
  border-top-color: var(--brand);
  animation: spin 0.7s linear infinite;
}

/* 完了: チェック */
.step.is-done { color: var(--ink); }
.step.is-done .step-mark {
  border-color: var(--brand);
  background: var(--brand);
}
.step.is-done .step-mark::after {
  content: "";
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

/* エラー */
.step.is-error { color: var(--danger); font-weight: 600; }
.step.is-error .step-mark { border-color: var(--danger); }
.step.is-error .step-mark::after {
  content: "!";
  color: var(--danger);
  font-weight: 700;
}

/* ---- 結果カード ---- */
.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.result-badges { display: flex; gap: 8px; flex-wrap: wrap; }

.result-label {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 14px 0 6px;
}
.result-label:first-child { margin-top: 0; }

.result-text {
  font-size: 14.5px;
  margin-bottom: 4px;
  white-space: pre-wrap;
}

.reply-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.reply-draft {
  margin: 0;
  padding: 14px 16px;
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 13.5px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 360px;
  overflow-y: auto;
}

/* ---- 台帳テーブル(スプレッドシート風) ---- */
.sheet-wrap { border-color: #c9d2dd; }

.sheet-table { font-size: 13.5px; }
.sheet-table th, .sheet-table td {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sheet-table th:last-child, .sheet-table td:last-child { border-right: none; }
.sheet-table th {
  background: #eef2f6;
  border-bottom: 2px solid #c9d2dd;
}

.col-ts { width: 140px; }
.sheet-table .cell-ts {
  font-family: "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;
  font-size: 12.5px;
  white-space: nowrap;
  color: var(--ink-soft);
}
.sheet-table .cell-excerpt { color: var(--ink-faint); font-size: 12.5px; }

.ledger-empty {
  text-align: center;
  color: var(--ink-faint);
  padding: 22px 14px;
}

/* ---- GAS連携フロー ---- */
.flow {
  list-style: none;
  margin: 18px 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.flow-item {
  display: grid;
  grid-template-columns: 30px 180px 1fr;
  align-items: baseline;
  gap: 6px 12px;
  padding: 10px 14px;
  background: var(--brand-soft);
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.flow-item span:last-child { color: var(--ink-soft); }

.flow-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  align-self: center;
}

.merits { margin: 0 0 18px; padding-left: 1.4em; font-size: 14.5px; }
.merits li { margin-bottom: 4px; }

.cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---- レスポンシブ ---- */
@media (max-width: 860px) {
  .sp-only { display: inline; }
  .flow-item { grid-template-columns: 30px 1fr; }
  .flow-item span:last-child { grid-column: 2; }
  .col-ts { width: 120px; }
}
