/* チャットボタンのスタイル修正 */
.chat-button {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  width: 60px !important;
  height: 60px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
  z-index: 9999 !important;
  color: white !important;
}

.chat-button:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.6) !important;
}

.chat-button:active {
  transform: scale(0.95) !important;
}

.chat-button svg {
  width: 28px !important;
  height: 28px !important;
  stroke: white !important;
}

/* バッジ（通知数） */
.chat-button-badge {
  position: absolute !important;
  top: -4px !important;
  right: -4px !important;
  background: #ef4444 !important;
  color: white !important;
  border-radius: 50% !important;
  width: 20px !important;
  height: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12px !important;
  font-weight: bold !important;
  border: 2px solid white !important;
}

/* チャットウィンドウ */
.chat-window {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  width: 400px !important;
  height: 600px !important;
  max-height: calc(100vh - 48px) !important;
  background: white !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
  flex-direction: column !important;
  z-index: 10000 !important;
  overflow: hidden !important;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .chat-button {
    bottom: 16px !important;
    right: 16px !important;
    width: 56px !important;
    height: 56px !important;
  }

  .chat-button svg {
    width: 24px !important;
    height: 24px !important;
  }

  .chat-window {
    bottom: 0 !important;
    right: 0 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
  }
}

/* 吹き出しアイコン改善 */
.chat-button::before {
  content: '' !important;
  position: absolute !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  background: inherit !important;
  animation: pulse 2s ease-in-out infinite !important;
  opacity: 0 !important;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.3;
  }
}

/* チャットボタンのアニメーション */
.chat-button {
  animation: slideInUp 0.5s ease-out !important;
}

@keyframes slideInUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}