/* =====================================================================
   style.css — ROT13・シーザー暗号 ツール固有の微調整のみ。
   共通スタイルは /_shared/shirugear.css に任せる（結果表示は sg-result）。
   ===================================================================== */

/* モード/向き切替 */
.sg-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: var(--sg-space-1, 4px);
}
.sg-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.95rem;
}

/* ずらし数（スライダー＋数値） */
.sg-shift {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: var(--sg-space-1, 4px);
}
.sg-shift input[type="range"] {
  flex: 1 1 auto;
  min-width: 120px;
}
.sg-shift__num {
  flex: 0 0 5em;
  width: 5em;
  text-align: center;
}

/* クイック操作（ROT13ボタン・ROT5チェック） */
.sg-quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: var(--sg-space-2, 8px);
}
.sg-quick__btn {
  appearance: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sg-accent, #3b5bdb);
  background: transparent;
  border: 1px solid var(--sg-accent, #3b5bdb);
  border-radius: 999px;
  padding: 5px 14px;
}
.sg-quick__btn:hover {
  background: var(--sg-accent-weak, rgba(59, 91, 219, 0.08));
}
.sg-quick__chk {
  font-size: 0.9rem;
}

/* 結果は折り返して読みやすく（記号や空白も保持） */
.sg-result__value {
  line-height: 1.7;
  word-break: break-word;
  white-space: pre-wrap;
}

/* 注意書き */
.sg-note {
  margin: 0;
  line-height: 1.75;
  font-size: 0.92rem;
  color: var(--sg-muted, #555);
}

/* 総当たり表 */
.sg-brute {
  display: flex;
  flex-direction: column;
  margin-top: var(--sg-space-3, 12px);
  border-top: 1px solid var(--sg-border, #e5e7eb);
}
.sg-brute-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 6px 4px;
  border-bottom: 1px solid var(--sg-border, #e5e7eb);
}
.sg-brute-row.is-current {
  background: var(--sg-accent-weak, rgba(59, 91, 219, 0.08));
}
.sg-brute-row__key {
  flex: 0 0 3em;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--sg-muted, #555);
}
.sg-brute-row__val {
  flex: 1 1 auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  word-break: break-word;
  white-space: pre-wrap;
}
.sg-brute-row.is-current .sg-brute-row__val {
  font-weight: 600;
}
