@charset "UTF-8";
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: "NotoSansJP";
  font-weight: 400;
  src: url(../fonts/NotoSansJP-VariableFont_wght.woff) format("woff");
}
body {
  font-family: "NotoSansJP", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", Meiryo, メイリオ, "Times New Roman", YuMincho, "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
  background: #f4f4f4;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.chat-container {
  width: 100%;
  max-width: 800px;
  height: 91vh;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-header {
  background: #00823c;
  color: white;
  padding: 16px;
  text-align: center;
  position: relative;
}
.chat-header h1 {
  font-size: 20px;
  font-weight: 600;
}

.progress-bar {
  background: rgba(255, 255, 255, 0.2);
  height: 4px;
  border-radius: 2px;
  margin-top: 15px;
  overflow: hidden;
}

.progress-fill {
  background: white;
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 0%;
}

.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: #f8f9fa;
}

.message {
  margin-bottom: 20px;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.bot-message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.bot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #00823c;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  flex-shrink: 0;
}
.bot-avatar img {
  width: 20px;
}

.bot-bubble {
  background: white;
  padding: 15px 20px;
  border-radius: 20px 20px 20px 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  max-width: 80%;
}
.bot-bubble b {
  font-weight: bold;
  color: #00813b;
}

.user-message {
  display: flex;
  justify-content: flex-end;
}

.user-bubble {
  background: #00823c;
  color: white;
  padding: 15px 20px;
  border-radius: 20px 20px 5px 20px;
  max-width: 80%;
  white-space: pre-line;
  /* 改行を保持 */
  line-height: 1.5;
}

.input-container {
  padding: 20px;
  background: white;
  border-top: 1px solid #e9ecef;
}

.question-input {
  width: 100%;
  padding: 15px;
  border: 2px solid #e9ecef;
  border-radius: 15px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s ease;
}
.question-input:focus {
  border-color: #4a6dc5;
}

.options-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.option-btn {
  padding: 9px 12px;
  background: white;
  border: 2px solid #4a6dc5;
  border-radius: 16px;
  color: #4a6dc5;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 18px;
}
.option-btn:hover, .option-btn.selected {
  background: #4a6dc5;
  color: white;
}

.next-btn {
  background: #00823c;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 15px;
  transition: transform 0.2s ease;
  opacity: 0.5;
}
.next-btn.enabled {
  opacity: 1;
  pointer-events: auto;
}
.next-btn:hover.enabled {
  transform: translateY(-2px);
}

.textarea-input {
  min-height: 100px;
  resize: vertical;
  font-family: inherit;
}

.example-box {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 15px;
  margin-top: 10px;
  font-size: 14px;
  color: #6c757d;
}

.complete-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #28a745;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 40px;
}

.error-message {
  color: #dc3545;
  font-size: 14px;
  margin-top: 8px;
  padding: 8px 12px;
  background: #fff;
  border-left: 4px solid #dc3545;
  border-radius: 4px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}
.error-message.show {
  opacity: 1;
  transform: translateY(0);
}

.input-error {
  color: #dc3545;
  font-size: 14px;
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(220, 53, 69, 0.1);
  border-radius: 4px;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.3s ease;
}
.input-error.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 768px) {
  .chat-container {
    height: 100vh;
    border-radius: 0;
  }
  body {
    padding: 0;
  }
}
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 15px 20px;
  background: white;
  border-radius: 20px 20px 20px 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  max-width: 80px;
}

.typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  animation: typing 1.4s infinite ease-in-out;
}
.typing-dot:nth-child(1) {
  animation-delay: -0.32s;
}
.typing-dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typing {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}
.confirm-data {
  margin: 15px 0;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 10px;
}

.confirm-item {
  padding: 8px 0;
  border-bottom: 1px solid #e9ecef;
}
.confirm-item:last-child {
  border-bottom: none;
}

.confirm-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.edit-btn,
.send-btn {
  padding: 10px 20px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 15px;
}

.edit-btn {
  background: #e9ecef;
  color: #495057;
}

.send-btn {
  background: #4a6dc5;
  color: white;
  flex: 1;
  font-weight: bold;
}

.edit-btn:hover,
.send-btn:hover {
  transform: translateY(-2px);
}

/* 編集オプションのスタイル */
.edit-options {
  margin-top: 15px;
}

.edit-option {
  padding: 10px;
  margin: 5px 0;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.edit-option:hover {
  background-color: #f5f5f5;
}
.edit-option strong {
  color: #444;
  margin-right: 8px;
}
.edit-option span {
  color: #666;
  font-size: 0.9em;
}

.privacy-check {
  margin: 20px 0;
  font-size: 16px;
}

.privacy-check label {
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
}

.privacy-check input[type=checkbox] {
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.privacy-check a {
  color: #007bff;
  text-decoration: none;
}

.privacy-check a:hover {
  text-decoration: underline;
}

.complete-message h2 {
  text-align: center;
  margin-bottom: 10px;
}

.checkbox-btn {
  padding: 9px 12px;
  background: white;
  border: 2px solid #4a6dc5;
  border-radius: 6px;
  color: #4a6dc5;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 20px;
  width: 48%;
  /* チェックボックスの入力要素自体は非表示にして、ラベルで代替する */
  /* ラベル全体をクリック可能領域にする */
}
.checkbox-btn .checkbox-input {
  display: none;
}
.checkbox-btn label {
  display: block;
  width: 100%;
  cursor: pointer;
}/*# sourceMappingURL=chat_form.css.map */