/* 吹き出し1人分のブロック */
.balloon-wrapper {
  margin: 24px 0 56px; /* 下を少し大きめにして、名前キャプションの分も確保 */
}

/* アイコン＋吹き出しの横並び部分 */
.balloon-inner {
  display: inline-flex;
  align-items: center; /* 画像の中心と吹き出しの中心を揃える */
  gap: 16px;
  max-width: 900px;
}

/* 話者（画像＋名前キャプション） */
.balloon-speaker {
  margin: 0;
  text-align: center;
  position: relative; /* figcaption を絶対配置するため */
}

/* アイコン画像（丸） */
.balloon-speaker img {
  max-width: 120px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 50%;
}

/* 肩書き＋名前（画像の「下」に出すが、縦位置計算には入れない） */
.balloon-speaker figcaption {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 8px;
  font-size: 0.9em;
  line-height: 1.4;
}

/* 吹き出し側 */
.balloon-text {
  flex: 1;
}

/* 吹き出し本体 */
.balloon-box {
  display: inline-block;
  position: relative;
  background: #f5f5f5;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid #e0e0e0;
}

/* 吹き出しの角（枠線部分：外側の三角形） */
.balloon-box::before {
  content: "";
  position: absolute;
  left: -13px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 13px solid #e0e0e0;
  z-index: 1;
}

/* 吹き出しの角（背景部分：内側の三角形） */
.balloon-box::after {
  content: "";
  position: absolute;
  left: -11px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 12px solid #f5f5f5;
  z-index: 2;
}

/* スマホ用 */
@media (max-width: 600px) {
  .balloon-inner {
    max-width: 100%;
  }
}