.conversation {
  display: flex;
  align-items: flex-start;
  margin: 10px 0;
  max-width: 100%;
}

.conversation.left {
  flex-direction: row;
}

.conversation.right {
  flex-direction: row-reverse;
}


.conversation .balloon {
  padding: 12px 16px;
  border-radius: 18px;
  max-width: 100%;
  font-size: 16px;
  line-height: 1.6;
  word-wrap: break-word;
  position: relative;
  border: 2px solid; /* ← 縁取り追加 */
}

/* 色ごとの背景色＋縁取り色 */
.conversation.green .balloon {
  background-color: #d6f5d6;
  border-color: #7ac87a;
}
.conversation.blue .balloon {
  background-color: #d6eaff;
  border-color: #6fa8dc;
}
.conversation.pink .balloon {
  background-color: #ffd6ea;
  border-color: #e880b3;
}

.conversation .icon {
  width: 80px !important;       /* 好きなサイズに調整。ここを50px〜70pxが推奨 */
  height: 80px !important;
  margin: 0 10px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
/* 三角形部分（左吹き出し） */
.conversation.left .balloon::before {
  content: "";
  position: absolute;
  top: 12px;
  left: -16px;
  width: 0;
  height: 0;
  border: 8px solid transparent;
  border-right-color: inherit;
}

/* 三角形部分（右吹き出し） */
.conversation.right .balloon::before {
  content: "";
  position: absolute;
  top: 12px;
  right: -16px;
  width: 0;
  height: 0;
  border: 8px solid transparent;
  border-left-color: inherit;
}

/* 三角形にも縁を付けたい場合（オプション） */
/* 通常は不要ですが、より強調したい場合は以下も使えます */
