/* ===== ハイライト検索 デモ用スタイル ===== */

.hl-wrap {
  max-width: 640px;
  margin: 0 auto;
}

.hl-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.hl-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.hl-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.hl-count {
  font-size: 13px;
  color: #888;
  white-space: nowrap;
  min-width: 70px;
}

.hl-option {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text);
  margin-bottom: 12px;
  cursor: pointer;
  user-select: none;
}

.hl-text {
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.9;
  white-space: pre-wrap;
  word-break: break-all;
  min-height: 200px;
  background: #fff;
  color: var(--color-text);
}

/* markタグのハイライトスタイル */
.hl-text mark {
  background: #FFEC6E;
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}

/* ===== リセットボタン ===== */
.reset-btn {
  padding: 6px 16px;
  font-size: 13px;
  color: #5A6A7A;
  background: #fff;
  border: 1.5px solid #D0D7E0;
  border-radius: 6px;
  cursor: pointer;
  font-family: sans-serif;
  transition: background 0.15s, border-color 0.15s;
}

.reset-btn:hover {
  background: #F4F6F9;
  border-color: #9AA5B4;
}

/* demo-controls を右寄せ */
.demo-controls {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}
