/* --- ヘッダー --- */
.chat-header {
  background: var(--header-bg);
  padding: 12px 16px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  border-bottom: 2px solid var(--input-bg);
}

.hd_div {
  display: flex;
}

#magatama-chat-window .chat-header #chat-header-title {
  font-size: 16px;
  /* ヘッダータイトルを16pxに固定 */
}

/* ボタンのスタイルを統合し、変数を使用 */
.chat-header div button {
  background: none;
  border: none;
  color: var(--header-text);
  /* テーマの文字色を適用 */
  cursor: pointer;
  padding: 8px;
  opacity: 0.7;
  line-height: 1;
  border-radius: 4px;
  /* ホバー背景が綺麗に見えるように角丸を追加 */
  transition:
    background-color 0.2s,
    opacity 0.2s;
}

.chat-header div button:hover {
  opacity: 1;
  background-color: var(--button-hover-bg);
  /* テーマごとのホバー色を適用 */
}

/* Dashicons サイズ調整 */
.chat-header div button .dashicons {
  font-size: 20px;
  line-height: 1;
  vertical-align: middle;
}
