/* 基本のリセット */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

/* ヘッダーのスタイル */
header {
  background-color: #e07594; /* ヘッダーの背景色 */
  color: white;
  padding: 1px;
  text-align: center;
  font-size: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
}

/* メインコンテンツのレイアウト */
#main-content {
  display: flex;
  height: calc(100vh - 60px); /* ヘッダーを除いた高さ */
  margin-top: 75px;
}

/* タブのスタイル */
#tabs {
  width: 300px; /* タブ部分の幅 */
  background-color: #333; /* タブの背景色 */
  color: white;
  border-right: 1px solid #444;
  overflow-y: auto; /* 縦スクロール対応 */
}

.tab {
  padding: 15px;
  cursor: pointer;
  border-bottom: 1px solid #444;
  color: white;
  text-align: center;
  transition: background-color 0.3s, color 0.3s;
}

.tab:hover {
  background-color: #555;
  color: #e07594; /* タブをホバーした時の色 */
}

.tab.active {
  background-color: #e07594; /* アクティブタブの背景色 */
  color: white;
  font-weight: bold;
}

/* メッセージコンテナのスタイル */
#messages-container {
  flex: 1; /* 残りの幅を占有 */
  padding: 20px;
  overflow-y: auto; /* 縦スクロール対応 */
  background-color: #f9f9f9; /* 背景色を淡く変更 */
}

/* メッセージのスタイル */
.message {
  display: flex;
  margin-bottom: 15px;
}

.message-text {
  white-space: pre-wrap; /* 改行と空白を保持して表示 */
}

.message img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

.message-content {
  background-color: #fff;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.message-header {
  font-weight: bold;
  margin-bottom: 5px;
}

.message-time {
  font-size: 0.8em;
  color: #888;
  margin-top: 5px;
}

/* reply */
.reply-button {
  color: blue;
  background: none;
  border: none;
  cursor: pointer;
}
.reply-container {
  width: 100%;
  margin-top: 5px; /* メッセージとの間隔を少し開ける */
}


/* 返信アイコンとテキストを横並びに */
.reply {
  display: flex;
  align-items: center; /* アイコンとテキストを縦中央に揃える */
  margin-bottom: 5px; /* 各返信の間にスペース */
}

/* 返信アイコンのスタイル */
.reply img {
  width: 40px; /* アイコンのサイズ調整 */
  height: 40px;
  border-radius: 50%; /* アイコンを丸くする */
  margin-right: 10px; /* アイコンとテキストの間隔を開ける */
}

/* 返信テキストのスタイル */
.reply .message-text {
  font-size: 14px; /* テキストのサイズ */
}

.channel-tag {
  color: orange; /* <!channel>をオレンジ色に */
  font-weight: bold;
}
