/* =====================================================================
   style.css — ASCIIコード表・変換 ツール固有の微調整のみ。
   共通スタイルは /_shared/shirugear.css に任せる。
   ===================================================================== */

/* 区切り線 */
.sg-hr {
  border: 0;
  border-top: 1px solid var(--sg-border, #e5e7eb);
  margin: var(--sg-space-4, 20px) 0;
}

/* コード列/文字列の結果は等幅・折り返し可 */
#enc-out,
#dec-out {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  word-break: break-all;
  white-space: pre-wrap;
}

/* 印字可能のみチェックボックス欄 */
.sg-filter-field {
  display: flex;
  align-items: flex-end;
}
.sg-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  padding-bottom: 8px;
}
.sg-check input {
  width: 1.05em;
  height: 1.05em;
}

/* 早見表 */
.sg-table-wrap {
  overflow-x: auto;
  margin-top: var(--sg-space-3, 12px);
}
.sg-ascii-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9rem;
}
.sg-ascii-table th,
.sg-ascii-table td {
  padding: 6px 10px;
  text-align: left;
  border-bottom: 1px solid var(--sg-border, #e5e7eb);
  white-space: nowrap;
}
.sg-ascii-table thead th {
  position: sticky;
  top: 0;
  background: var(--sg-card, #fff);
  color: var(--sg-muted, #777);
  font-weight: 600;
  z-index: 1;
}
.sg-ascii-table .sg-num,
.sg-ascii-table .sg-bin,
.sg-ascii-table .sg-glyph {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.sg-ascii-table .sg-glyph {
  font-size: 1.05rem;
  font-weight: 600;
}
.sg-ascii-table tr.is-control {
  color: var(--sg-muted, #777);
}
.sg-ctrl-badge {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--sg-border, #e5e7eb);
  border-radius: 4px;
  font-size: 0.78rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--sg-muted, #777);
}
