/* --- AIチャットボット用デザイン（Premium Pill Style - Updated） --- */

/* 1. チャット起動ボタン */
#ceo-bot-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    
    padding: 16px 28px !important;
    border-radius: 50px !important;
    
    background: #1c1917 !important;
    color: #fff !important;
    
    font-family: "Noto Sans JP", sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    letter-spacing: 0.05em !important;
    
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
    
    z-index: 9998 !important;
    cursor: pointer;
    
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    animation: popIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    white-space: nowrap;
  }
  
  #ceo-bot-button:hover {
    transform: translateY(-4px);
    background: #292524 !important;
    border-color: rgba(249, 115, 22, 0.6) !important; 
    box-shadow: 0 12px 32px rgba(234, 88, 12, 0.4) !important;
  }
  
  /* 2. 誘導用吹き出し */
  #ceo-bot-tooltip {
    position: fixed;
    bottom: 90px;
    right: 20px;
    
    background-color: rgba(255, 255, 255, 0.95);
    color: #44403c;
    
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid rgba(231, 229, 228, 0.8);
    
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    z-index: 9999;
    
    backdrop-filter: blur(8px);
    box-shadow: 
      0 4px 6px -1px rgba(0, 0, 0, 0.1), 
      0 10px 15px -3px rgba(234, 88, 12, 0.15);
      
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  
  #ceo-bot-tooltip::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 40px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(255, 255, 255, 0.95);
  }
  
  #ceo-bot-tooltip.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  
  /* 注目させるための発光アニメーション用クラス */
  #ceo-bot-tooltip.highlight-pulse {
    animation: pulse-orange 0.8s ease-in-out;
  }
  
  /* 3. チャットウィンドウ */
  #ceo-bot-iframe {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 420px !important;
    height: 640px !important;
    border: none !important;
    border-radius: 16px !important;
    
    box-shadow: 
      0 20px 25px -5px rgba(0, 0, 0, 0.1), 
      0 10px 10px -5px rgba(0, 0, 0, 0.04),
      0 0 0 1px rgba(0,0,0,0.05);
    
    z-index: 9999 !important;
    opacity: 0;
    transform: translateY(40px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    background: #fff;
  }
  
  #ceo-bot-iframe.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  
  @media (max-width: 767px) {
    #ceo-bot-button {
      bottom: 16px;
      right: 16px;
      padding: 14px 24px !important;
      font-size: 14px !important;
    }
    
    #ceo-bot-tooltip {
      right: 16px;
      bottom: 80px;
    }
    
    #ceo-bot-iframe {
      width: calc(100vw - 32px) !important;
      height: 85vh !important;
      bottom: 16px !important;
      left: 16px !important;
      right: auto !important;
      transform: translateY(20px);
    }
    #ceo-bot-iframe.open {
      transform: translateY(0);
    }
  }
  
  @keyframes popIn {
    0% { transform: scale(0.8) translateY(20px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
  }
  
  /* ピカッと光るアニメーション */
  @keyframes pulse-orange {
    0% { transform: scale(1); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
    50% { transform: scale(1.1); box-shadow: 0 0 25px rgba(249, 115, 22, 0.8); border-color: rgba(249, 115, 22, 0.8); }
    100% { transform: scale(1); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
  }