/* =====================================================================
   style.css — 文字化け修復 ツール固有の微調整のみ。
   共通スタイルは /_shared/shirugear.css に任せる（結果表示は sg-result）。
   ===================================================================== */

/* 復元結果は折り返して読みやすく */
.sg-result__value {
  line-height: 1.7;
  word-break: break-word;
  white-space: pre-wrap;
}

/* 候補リスト */
.sg-cands {
  display: flex;
  flex-direction: column;
  gap: var(--sg-space-3, 12px);
  margin-top: var(--sg-space-3, 12px);
}
.sg-cand {
  border: 1px solid var(--sg-border, #e5e7eb);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--sg-surface, #fff);
}
.sg-cand.is-best {
  border-color: var(--sg-accent, #3b5bdb);
  box-shadow: 0 0 0 1px var(--sg-accent, #3b5bdb) inset;
}
.sg-cand__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.sg-cand__name {
  font-weight: 600;
}
.sg-cand__score {
  font-size: 0.8rem;
  color: var(--sg-muted, #777);
  border: 1px solid var(--sg-border, #e5e7eb);
  border-radius: 999px;
  padding: 1px 9px;
  white-space: nowrap;
}
.sg-cand__score.is-best {
  color: #fff;
  background: var(--sg-accent, #3b5bdb);
  border-color: var(--sg-accent, #3b5bdb);
}
.sg-cand__desc {
  margin: 4px 0 8px;
  font-size: 0.82rem;
  color: var(--sg-muted, #777);
}
.sg-cand__text {
  margin: 0 0 10px;
  line-height: 1.7;
  word-break: break-word;
  white-space: pre-wrap;
}
.sg-cand__copy {
  font-size: 0.85rem;
}

/* 仕組みの解説 */
.sg-explain {
  line-height: 1.85;
  margin: 0 0 12px;
}
.sg-explain:last-child {
  margin-bottom: 0;
}
.sg-explain code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--sg-code-bg, #f1f3f5);
  border-radius: 4px;
  padding: 1px 5px;
}
