/* =====================================================================
   style.css — 画面PPI計算 ツール固有の微調整のみ。
   共通スタイルは /_shared/shirugear.css に任せる（結果表示は sg-result）。
   ===================================================================== */

/* 入力を3カラムに（横px / 縦px / 対角インチ） */
.sg-grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sg-space-3, 12px);
}
@media (max-width: 520px) {
  .sg-grid3 {
    grid-template-columns: 1fr;
  }
}

/* プリセットのチップ群 */
.sg-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--sg-space-1, 4px);
}
.sg-chip {
  appearance: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--sg-border, #e5e7eb);
  background: var(--sg-surface, #fff);
  color: var(--sg-text, #222);
}
.sg-chip:hover {
  border-color: var(--sg-accent, #3b5bdb);
}

/* 結果テーブル（計算結果 / 目安表 共通） */
.sg-chart {
  display: flex;
  flex-direction: column;
}
.sg-chart-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--sg-border, #e5e7eb);
}
.sg-chart-row:last-child {
  border-bottom: none;
}
.sg-chart-row__key {
  flex: 0 0 auto;
  font-weight: 600;
}
.sg-chart-row__key--wide {
  flex: 0 0 12em;
  max-width: 12em;
}
.sg-chart-row__val {
  flex: 1 1 auto;
  color: var(--sg-muted, #555);
  word-break: break-word;
}

/* PPI の主結果はやや大きく */
.sg-result__value {
  font-variant-numeric: tabular-nums;
}
