/* =====================================================================
   style.css — HTMLエンティティ変換 ツール固有の微調整のみ。
   共通スタイルは /_shared/shirugear.css に任せる（結果表示は sg-result）。
   ===================================================================== */

/* 入出力テキストエリア：等幅・改行維持で崩れにくく */
.he-textarea {
  width: 100%;
  min-height: 7.5em;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New",
    monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  white-space: pre;
  overflow-wrap: normal;
  tab-size: 2;
}

/* 出力欄は読み取り専用の見た目を少しだけ落ち着かせる */
#output-text {
  background: var(--sg-surface-2, rgba(0, 0, 0, 0.02));
}

/* 変換方向の切替タブ */
.he-modes {
  display: flex;
  gap: 8px;
  margin-bottom: var(--sg-space-4);
}
.he-modes label {
  flex: 1 1 0;
  text-align: center;
  padding: 10px 8px;
  border: 1px solid var(--sg-border, #e5e7eb);
  border-radius: var(--sg-radius, 8px);
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
}
.he-modes input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.he-modes label:has(input:checked) {
  border-color: var(--sg-primary, #3b5bdb);
  background: rgba(59, 91, 219, 0.08);
  font-weight: 600;
  color: var(--sg-primary, #3b5bdb);
}

/* チェックボックス行 */
.sg-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.92rem;
  line-height: 1.5;
  cursor: pointer;
}
.sg-check input {
  margin-top: 3px;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  accent-color: var(--sg-primary, #3b5bdb);
}
