/* チャットボット（Einsteinボット）のボタンデザイン */

/* 右下に固定配置するラッパー */
.chatbot-wrapper {
  position: fixed;
  bottom: 30px; /* 画面下からの距離 */
  right: 30px;  /* 画面右からの距離 */
  display: flex;
  align-items: center;
  gap: 15px; /* ボタンと吹き出しの隙間 */
  z-index: 9999; /* 他の要素より上に表示されるように設定 */
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

/* 吹き出しのデザイン */
.chatbot-tooltip {
  background-color: #ffffff;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  position: relative;
  text-align: center;
  animation: float 3s ease-in-out infinite; /* ふわふわ動くアニメーション */
}

/* 吹き出しの右向きの三角形（しっぽ） */
.chatbot-tooltip::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -8px;
  transform: translateY(-50%);
  border-width: 8px 0 8px 8px;
  border-style: solid;
  border-color: transparent transparent transparent #ffffff;
}

.tooltip-title {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: bold;
  color: #333333;
}

.tooltip-text {
  margin: 0;
  font-size: 11px;
  color: #666666;
}

/* 丸い起動ボタンのデザイン */
.chatbot-button {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(90deg, rgba(31, 169, 197, 1), rgba(52, 84, 197, 1));
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2), inset 0 2px 4px rgba(255, 255, 255, 0.3);
  cursor: pointer;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* マウスホバー時のエフェクト */
.chatbot-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25), inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

/* チャットアイコンのサイズと色 */
.chat-icon {
  width: 32px;
  height: 32px;
  color: #ffffff;
}

/* 吹き出しのふわふわアニメーション定義 */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
  100% { transform: translateY(0px); }
}

/* ローディングスピナーのデザイン */
.loading-spinner {
  display: none; /* デフォルトは非表示 */
  width: 26px;
  height: 26px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 1s linear infinite;
}

/* スピナーを回転させるアニメーション */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* スマホ閲覧時は画面幅を圧迫するため吹き出しを非表示にする */
@media (max-width: 768px) {
  .chatbot-tooltip {
    display: none;
  }
}