#chatbot {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 300px;
  z-index: 9999;
  transition: height 0.3s ease;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
#chatbot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #98c477;
  padding: 10px 20px;
}
#header-title {
  color: white;
  font-size: 20px;
  font-weight:600;
  margin: unset;
}
#toggle-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  transition: transform 0.3s ease;
}
#chatbot-content {
  display: none;
}
#chatbot-messages {
  flex-grow: 1;
  padding: 10px;
  background-color: #f7f7f7;
  overflow-y: auto;
}
.user-message {
  float: right;
  max-width: 200px;
  background-color: #c5d853;
  color: #0c1d10;
  font-size: 14px;
  padding: 10px;
  margin: 5px;
  border-radius: 10px;
  overflow-wrap: break-word;
  clear: both;
}
.ai-message {
  float: left;
  max-width: 200px;
  background-color: #e0e0e0;
  color: #0c1d10;
  font-size: 14px;
  padding: 10px;
  margin: 5px;
  border-radius: 10px;
  overflow-wrap: break-word;
  clear: both;
}
#loading {
  color: gray;
}
#chatbot-input-container {
  display: flex;
  align-items: center;
  height: fit-content;
  padding: 10px;
  background-color: white;
}
#chatbot-input {
  flex-grow: 1;
  line-height: 1.5rem;
  resize: none;
  padding: 10px;
  margin-right: 10px;
  overflow: hidden;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
}
#chatbot-input:focus {
  outline: none;
  border: 1px solid #0f833b;
}
#send-btn {
  height: 40px;
  padding: 10px;
  background-color: #0f833b;
  color: white;
  cursor: pointer;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  line-height: 1;
}
#chatbot.expanded {
  height: 560px;
}
#chatbot.expanded #toggle-btn {
  transform: rotate(180deg);
}
#chatbot.expanded #chatbot-content {
  display: flex;
  flex-direction: column;
  height: calc(100% - 50px); /* ヘッダーの高さを引いた高さ */
}
