/* ========== Smart-i Chatbot 共通スタイル ========== */
#smarti-chatbot-root {
  position: fixed;
  bottom: 24px;
  right: 16px;
  z-index: 9999;
  font-family: 'Hiragino Sans', 'Meiryo', sans-serif;
}
#sc-chat-box {
  display: none;
  width: 320px;
  max-width: calc(100vw - 32px);
  height: 80vh;
  max-height: calc(100vh - 80px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  flex-direction: column;
  overflow: hidden;
  margin-bottom: 12px;
}
#sc-chat-box.open { display: flex; }
#sc-chat-toggle-wrapper {
  position: relative;
  display: inline-block;
}
#sc-chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--smarti-primary, #2563eb);
  color: white;
  border: none;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
#sc-chat-badge {
  position: absolute;
  top: -4px;
  right: -8px;
  background: #fff;
  border: 1px solid var(--smarti-primary, #2563eb);
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--smarti-primary, #2563eb);
  white-space: nowrap;
  pointer-events: none;
}
#sc-chat-header {
  background: var(--smarti-primary, #2563eb);
  color: white;
  padding: 14px 16px;
  font-weight: bold;
  font-size: 14px;
}
#sc-chat-header p {
  margin: 4px 0 0;
  font-size: 11px;
  opacity: 0.85;
  font-weight: normal;
}
#sc-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sc-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
}
.sc-msg.bot {
  background: #fff;
  border: 1px solid #e5e7eb;
  align-self: flex-start;
}
.sc-msg.user {
  background: var(--smarti-primary, #2563eb);
  color: white;
  align-self: flex-end;
}
#sc-chat-input-area {
  display: flex;
  padding: 12px;
  gap: 8px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}
#sc-chat-input {
  flex: 1;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  outline: none;
  resize: none;
  font-family: inherit;
}
#sc-chat-send {
  background: var(--smarti-primary, #2563eb);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
}
#sc-chat-send:disabled {
  background: #93c5fd;
  cursor: not-allowed;
}
.sc-notice {
  font-size: 10px;
  color: #9ca3af;
  text-align: center;
  padding: 6px 12px;
  background: #fff;
  border-top: 1px solid #f3f4f6;
}
#sc-faq-buttons {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.sc-faq-btn {
  background: #fff;
  border: 1px solid var(--smarti-primary, #2563eb);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--smarti-primary, #2563eb);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.2s;
}
.sc-faq-btn:hover {
  background: #eff6ff;
}
.sc-feedback-wrap {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.sc-feedback-btn {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 15px;
  padding: 2px 4px;
  opacity: 0.6;
}
