/* 吹き出しブロック - フロントエンド用 */
.wp-block-swell-child-speech-balloon {
  margin: 20px 0;
}

.wp-block-swell-child-speech-balloon .speech-balloon {
  display: flex;
  gap: 15px;
  align-items: center;
}

.wp-block-swell-child-speech-balloon .speech-balloon-left {
  flex-direction: row;
}

.wp-block-swell-child-speech-balloon .speech-balloon-right {
  flex-direction: row-reverse;
}

/* アイコン */
.wp-block-swell-child-speech-balloon .speech-balloon-icon {
  flex-shrink: 0;
  width: 90px;
  height: 90px;
}

.wp-block-swell-child-speech-balloon .speech-balloon-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--balloon-border, #e0e0e0);
}

/* コンテンツエリア */
.wp-block-swell-child-speech-balloon .speech-balloon-content {
  flex: 1;
  min-width: 0;
}

/* 名前 */
.wp-block-swell-child-speech-balloon .speech-balloon-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--name-color, #0057ac);
  margin-bottom: 8px;
}

.wp-block-swell-child-speech-balloon .speech-balloon-right .speech-balloon-name {
  text-align: right;
}

/* 吹き出し本体 */
.wp-block-swell-child-speech-balloon .speech-balloon-text {
  position: relative;
  background: var(--balloon-bg, #f5f5f5);
  border: 2px solid var(--balloon-border, #e0e0e0);
  border-radius: 10px;
  padding: 15px 20px;
}

/* 吹き出しの三角形（左側） */
.wp-block-swell-child-speech-balloon .speech-balloon-left .speech-balloon-text::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 20px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 12px 10px 0;
  border-color: transparent var(--balloon-border, #e0e0e0) transparent transparent;
}

.wp-block-swell-child-speech-balloon .speech-balloon-left .speech-balloon-text::after {
  content: '';
  position: absolute;
  left: -8px;
  top: 22px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 10px 8px 0;
  border-color: transparent var(--balloon-bg, #f5f5f5) transparent transparent;
}

/* 吹き出しの三角形（右側） */
.wp-block-swell-child-speech-balloon .speech-balloon-right .speech-balloon-text::before {
  content: '';
  position: absolute;
  right: -12px;
  top: 20px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 12px;
  border-color: transparent transparent transparent var(--balloon-border, #e0e0e0);
}

.wp-block-swell-child-speech-balloon .speech-balloon-right .speech-balloon-text::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 22px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 10px;
  border-color: transparent transparent transparent var(--balloon-bg, #f5f5f5);
}

.wp-block-swell-child-speech-balloon .speech-balloon-text p {
  margin: 0;
  line-height: 1.8;
  color: #333;
}

/* モバイル対応 */
@media (max-width: 599px) {
  .wp-block-swell-child-speech-balloon .speech-balloon {
    gap: 10px;
  }

  .wp-block-swell-child-speech-balloon .speech-balloon-icon {
    width: 60px;
    height: 60px;
  }

  .wp-block-swell-child-speech-balloon .speech-balloon-name {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .wp-block-swell-child-speech-balloon .speech-balloon-text {
    padding: 12px 15px;
    font-size: 14px;
  }

  .wp-block-swell-child-speech-balloon .speech-balloon-left .speech-balloon-text::before {
    left: -10px;
    top: 15px;
    border-width: 8px 10px 8px 0;
  }

  .wp-block-swell-child-speech-balloon .speech-balloon-left .speech-balloon-text::after {
    left: -6px;
    top: 17px;
    border-width: 6px 8px 6px 0;
  }

  .wp-block-swell-child-speech-balloon .speech-balloon-right .speech-balloon-text::before {
    right: -10px;
    top: 15px;
    border-width: 8px 0 8px 10px;
  }

  .wp-block-swell-child-speech-balloon .speech-balloon-right .speech-balloon-text::after {
    right: -6px;
    top: 17px;
    border-width: 6px 0 6px 8px;
  }
}
