/* =====================================================================
   style.css — 方位変換（16方位） ツール固有の微調整のみ。
   共通スタイルは /_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-range {
  display: block;
  width: 100%;
  margin-top: var(--sg-space-2, 8px);
  accent-color: var(--sg-accent, #3b5bdb);
}

/* 結果の詳細（定義リスト） */
.sg-detail {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  margin: var(--sg-space-3, 12px) 0 0;
  padding-top: var(--sg-space-3, 12px);
  border-top: 1px solid var(--sg-border, #e5e7eb);
}
.sg-detail dt {
  color: var(--sg-muted, #777);
  font-size: 0.9rem;
}
.sg-detail dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

/* コンパスの図 */
.sg-rose-wrap {
  display: flex;
  justify-content: center;
  padding: var(--sg-space-2, 8px) 0;
}
.sg-rose {
  width: 220px;
  height: 220px;
  max-width: 70vw;
}
.sg-rose__ring,
.sg-rose__ring2 {
  fill: none;
  stroke: var(--sg-border, #d7dbe6);
  stroke-width: 1.5;
}
.sg-rose__ring2 {
  stroke-dasharray: 2 4;
}
.sg-rose__tick {
  stroke: var(--sg-border, #c7cddb);
  stroke-width: 1.5;
}
.sg-rose__tick.is-major {
  stroke: var(--sg-muted, #8a90a2);
  stroke-width: 2.5;
}
.sg-rose__north {
  fill: #e03131;
}
.sg-rose__south {
  fill: var(--sg-muted, #868e96);
}
.sg-rose__hub {
  fill: var(--sg-accent, #3b5bdb);
}
.sg-rose__label {
  fill: var(--sg-text, #333);
  font-size: 13px;
  font-weight: 700;
}
#rose-needle {
  transition: transform 0.25s ease;
}

/* 早見表 */
.sg-chart {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2px 16px;
}
.sg-chart-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid var(--sg-border, #e5e7eb);
}
.sg-chart-row__key {
  flex: 0 0 3em;
  font-weight: 600;
  text-align: center;
}
.sg-chart-row__val {
  flex: 1 1 auto;
  color: var(--sg-muted, #555);
  font-variant-numeric: tabular-nums;
}
