body,
html {
  margin: 0;
  padding: 0;
  font-family: "Noto Sans JP", sans-serif;
  height: 100%;
}

#app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

#progress-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

#progress-circle {
  width: 50px;
  height: 50px;
  background-color: #e0e0e0;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#progress-text {
  font-size: 14px;
  font-weight: bold;
}

#chat-wrapper {
  flex: 1;
  overflow-y: auto;
  padding: 80px 15px 100px;
  box-sizing: border-box;
}

#chat-container {
  max-width: 600px;
  margin: 0 auto;
}

#chat {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.diagnosis-message--list {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.diagnosis-message--list__bot {
  display: flex;
}

.diagnosis-message--list__bot--icon {
  align-self: flex-end;
  margin-right: 10px;
  background-color: #e8faf7;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.diagnosis-message--list__bot--icon img {
  width: 45px;
}

.diagnosis-message--list__bot--question {
  background: #fff;
  border: 1px solid #e8e8e8;
  box-shadow: 0 3px 6px rgba(58, 58, 58, 0.05);
  border-radius: 5px;
  padding: 15px;
  width: calc(100% - 68px);
  max-width: 500px;
}

.diagnosis-message--list__user {
  align-self: flex-end;
}

.diagnosis-message--list__user--answer {
  background-color: #ed7a94;
  color: white;
  border-radius: 5px;
  padding: 10px 15px;
  max-width: 80%;
}

.push {
  height: 80px;
}

#options-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: white;
  padding: 15px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

#options {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
}

.option-button {
  flex: 0 1 auto;
  min-width: 80px;
  padding: 10px 20px;
  background-color: #ed7a94;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: 16px;
}

#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 1000;
}

#loading-screen.hidden {
  display: none;
}

#loading-screen img {
  width: 100%; /* 画像の幅を調整 */
  height: auto;
}

#loading-screen p {
  position: fixed;
  top: 42%;
  left: 32%;
  color: #ed7a94;
  font-size: 35px;
  margin-top: 20px;
}

.blink {
  animation: blink 1.5s linear infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  border-radius: 5px;
}

#error-close-button {
  background-color: #ed7a94;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  float: right;
}

@media (max-width: 600px) {
  #chat-wrapper {
    padding: 60px 10px 120px;
  }

  .push {
    height: 100px;
  }

  .option-button {
    font-size: 14px;
    padding: 8px 15px;
  }

  #loading-screen p {
    font-size: 36px;
    left: 30%;
  }

  .size {
    font-size: 20px;
    padding: 8px 30px;
    letter-spacing: 2px;
  }
}

.back-link {
  color: #ed7a94;
  cursor: pointer;
  text-decoration: underline;
  display: inline-block;
  margin-bottom: 10px;
}

.back-link:hover {
  text-decoration: none;
}

.back-link-container {
  margin-bottom: 15px;
}

.typing-indicator {
  display: inline-block;
  width: 20px;
  height: 10px;
  position: relative;
  margin-left: 10px;
}

.typing-indicator::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #808080;
  left: 0;
  animation: typingAnimation 1.5s infinite;
}

.typing-indicator::before {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #808080;
  right: 0;
  animation: typingAnimation 1.5s infinite 0.5s;
}

@keyframes typingAnimation {
  0% {
    opacity: 0.3;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-4px);
  }
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
}
