/* ベーススタイル (モダンでクリーンなB2Bデザイン) */
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; margin: 0; padding: 0; background: #f8fafc; color: #334155; }
.lp-content { padding: 60px 20px; text-align: center; min-height: 80vh; max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; justify-content: center; }
.lp-content h1 { color: #0f172a; font-size: 2.2em; font-weight: 700; margin-bottom: 20px; letter-spacing: -0.02em; }
.lp-content p { color: #64748b; font-size: 1.1em; line-height: 1.6; margin-bottom: 30px; }

footer { text-align: center; padding: 30px; font-size: 13px; color: #94a3b8; border-top: 1px solid #e2e8f0; background: white; }
.legal-links a { color: #64748b; text-decoration: none; margin: 0 10px; transition: color 0.2s; }
.legal-links a:hover { color: #2563eb; }

/* チャットトグルボタン (丸みを少し抑え、シャドウを上品に) */
.chat-toggle-btn {
  position: fixed; bottom: 24px; right: 24px;
  background: #2563eb; color: white; border: none;
  border-radius: 28px; padding: 14px 24px; font-size: 15px; font-weight: 600;
  cursor: pointer; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  z-index: 1000; transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.2s;
  display: flex; align-items: center; gap: 8px; letter-spacing: 0.5px;
}
.chat-toggle-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4); }
.chat-toggle-btn:active { transform: translateY(0); }

/* チャットウィンドウ */
.chat-window {
  position: fixed; bottom: 85px; right: 24px;
  width: 360px; height: 560px; max-height: calc(100vh - 120px);
  background: white; border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  display: flex; flex-direction: column; overflow: hidden;
  z-index: 1000; transition: opacity 0.3s, transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid #e2e8f0; transform-origin: bottom right;
}
.chat-window.hidden { opacity: 0; transform: scale(0.9) translateY(20px); pointer-events: none; }

/* ヘッダー */
.chat-header {
  background: #2563eb; color: white; padding: 18px 20px;
  display: flex; justify-content: space-between; align-items: center;
}
.chat-header h3 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: 0.5px; display: flex; align-items: center; gap: 8px; }
.chat-close-btn { background: none; border: none; color: white; font-size: 18px; cursor: pointer; opacity: 0.8; transition: opacity 0.2s; padding: 0; line-height: 1; }
.chat-close-btn:hover { opacity: 1; }

/* メッセージ表示エリア */
.chat-messages {
  flex: 1; padding: 20px; overflow-y: auto; background: #f8fafc;
  display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth;
}
.message { max-width: 85%; padding: 12px 16px; border-radius: 16px; font-size: 14px; line-height: 1.5; word-wrap: break-word; }
.bot-message { background: white; color: #334155; align-self: flex-start; border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,0.05); border: 1px solid #e2e8f0; }
.user-message { background: #2563eb; color: white; align-self: flex-end; border-bottom-right-radius: 4px; }
.loading { font-style: normal; color: #94a3b8; font-size: 13px; align-self: flex-start; background: white; padding: 8px 16px; border-radius: 16px; border-bottom-left-radius: 4px; border: 1px solid #e2e8f0; }

/* サジェストボタン (初期表示用) */
.suggestions-container { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 5px; margin-bottom: 10px; align-self: flex-start; }
.suggestion-btn { background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; padding: 8px 14px; border-radius: 20px; font-size: 13px; cursor: pointer; transition: all 0.2s; font-family: inherit; font-weight: 500; }
.suggestion-btn:hover { background: #dbeafe; border-color: #93c5fd; transform: translateY(-1px); }

/* 入力エリア */
.chat-input-area {
  display: flex; padding: 15px; border-top: 1px solid #e2e8f0; background: white; gap: 10px; align-items: flex-end;
}
#chat-input {
  flex: 1; border: 1px solid #cbd5e1; border-radius: 20px; padding: 10px 15px;
  resize: none; height: 20px; max-height: 80px; font-family: inherit; font-size: 14px; outline: none; transition: border-color 0.2s; background: #f8fafc; line-height: 1.4;
}
#chat-input:focus { border-color: #2563eb; background: white; }
#chat-send-btn {
  background: #2563eb; color: white; border: none; border-radius: 20px;
  padding: 0 20px; height: 42px; cursor: pointer; font-weight: 600; font-size: 14px; transition: background-color 0.2s;
}
#chat-send-btn:hover:not(:disabled) { background: #1d4ed8; }
#chat-send-btn:disabled { background: #cbd5e1; cursor: not-allowed; }

/* 免責事項 */
.chat-disclaimer {
  font-size: 11px; color: #94a3b8; text-align: center; padding: 8px 15px 12px; background: white; line-height: 1.4;
}
.chat-disclaimer a { color: #64748b; text-decoration: underline; transition: color 0.2s; }
.chat-disclaimer a:hover { color: #2563eb; }