.diagnose-top-img {
  width: auto;
  max-width: 754px;
  margin: 0 auto 90px;
}
.chat {
  -webkit-transition: 0.6s ease;
  -o-transition: 0.6s ease;
  transition: 0.6s ease;
  width: auto;
  max-width: 754px;
  margin: 0 auto;
  padding-bottom: 90px;
}

.chat-list {
}

.chat-item {
  margin-top: 64px;
}

.chat-wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  max-width: 710px;
  width: 100%;
  align-items: center;
}

.chat-box {
  background-color: #fff;
  border-radius: 3px;
  border: 5px solid #179132;
  padding: 1em;
  -webkit-filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.2));
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.2));
  -webkit-animation: bounceIn 1s ease;
  animation: bounceIn 1s ease;
  -webkit-transform-origin: top right;
  -ms-transform-origin: top right;
  transform-origin: top right;
}

.chat-title {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  padding: 0 0 0.7em 0;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  color: #542d00;
  margin-bottom: 0.7em;
  font-size: 21px;
  font-weight: 700;
  border-bottom: 1px solid #cccccc;
}

.chat-title-sub {
  margin-right: 13px;
  font-weight: normal;
  color: #fff;
  padding: 6px;
  background-color: #45921d !important;
  border-radius: 16px;
  width: 56px;
  text-align: center;
}

.chat-title-sub.must {
  background-color: #f16419 !important;
}

.chat-text-wrap {
  background-color: #119f1d;
  position: relative;
  border-radius: 50px;
  margin: 0 0 15px 0;
  padding: 0.7em 1em 0.7em 2em;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  line-height: 1.6;
  color: #fff;
  font-weight: 700;
  width: 100%;
}

.chat-text-wrap::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 1px;
  -webkit-transform: translate(-100%, -50%);
  -ms-transform: translate(-100%, -50%);
  transform: translate(-100%, -50%);
  border: 0.3em solid transparent;
  border-right: 0.75em solid #119f1d;
}

.chat-ans .nav-link {
  white-space: nowrap;
  border-radius: 2em;
  border-color: #cccccc;
  background-color: #35393d;
  font-size: 17px;
  font-weight: 700;
  padding: 0.5em 1.3em;
  margin-right: 0.5em;
  margin-bottom: 0.5em;
  color: #fff;
  text-decoration: none;
  max-width: 196px;
  text-align: center;
  height: 50px;
  line-height: 32px;
}

.chat-ans .nav-link.active {
  background-color: #ffffff;
  border: solid 2px #000;
  color: #000;
}

.chat-ans {
  margin-top: 32px;
  margin-bottom: 24px;
  font-size: 16px;
}

.slidein.is-animated {
  -webkit-animation: slideIn 1s cubic-bezier(0.25, 1, 0.5, 1) 1 forwards;
  animation: slideIn 1s cubic-bezier(0.25, 1, 0.5, 1) 1 forwards;
}

@-webkit-keyframes slideIn {
  0% {
    -webkit-transform: translateX(180px);
    transform: translateX(180px);
    opacity: 0;
  }

  100% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }

  40%,
  100% {
    opacity: 1;
  }
}

@keyframes slideIn {
  0% {
    -webkit-transform: translateX(180px);
    transform: translateX(180px);
    opacity: 0;
  }

  100% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }

  40%,
  100% {
    opacity: 1;
  }
}

.display-none {
  display: none;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 0.25rem;
  -webkit-transition: border-color 0.15s ease-in-out,
    -webkit-box-shadow 0.15s ease-in-out;
  transition: border-color 0.15s ease-in-out,
    -webkit-box-shadow 0.15s ease-in-out;
  -o-transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out,
    -webkit-box-shadow 0.15s ease-in-out;
}

.chat__btn-next {
  margin: 24px auto !important;
  padding: 0.7em 1em;
  display: block;
  width: 85%;
  position: relative;
  font-size: 16px;
  background-color: #35393d;
  font-weight: 700;
  border: 0px solid #fff;
  border-radius: 48px;
  color: #fff;
  text-align: center;
  cursor: pointer;
}

.chat__btn-next i {
  position: absolute;
  top: 50%;
  right: 1em;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
}

.invalid-text {
  display: none;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875em;
  color: #dc3545;
}

.chat__ans .form-control {
  font-size: inherit;
  padding: 1em 1em;
}

.chat__ans select,
.chat__ans input,
.chat__ans textarea {
  background-color: #eeeeee;
}

/* thanks page */
.thanksWrap {
  position: relative;
  width: 98%;
  margin: 40px auto 55px auto;
  padding: 40px 0 0 0;
  border: 3px solid #cccccc;
  border-radius: 5px;
  background-color: #f0ffe4;
  z-index: 100;
}

.sateiTitle {
  width: 80%;
  min-height: 60px; /* 高さを固定しない */
  top: -45px;
  left: 0;
  right: 0;
  margin: 0 auto;
  border: 3px solid #02840f82;
  margin-bottom: 40px;
  border-radius: 96px;
  background-color: #94ff8629;
  font-size: 1.5rem;
  font-weight: 900;
  color: #1f9f2e;

  /* Flexで縦横中央揃え */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;

  padding: 16px;
  box-sizing: border-box;
}

.thanksBody {
  margin: 0 auto 30px auto;
  font-size: 15px;
  font-weight: 700;
  line-height: 31px;
  text-align: center;
  background: #e0fad7;
  padding: 28px;
}

.thanksContent {
  width: 90%;
  max-width: 400px;
  margin: auto;
  padding: 28px 0 26px 0;
  border-top: 1px solid #cccccc;
  text-align: center;
  box-sizing: border-box;
}

.thanksContentCaption {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
  max-width: 100%;
  padding: 28px;
}

@media (max-width: 767px) {
  .diagnose-profile {
    width: 96px;
    height: 96px;
    margin-right: 0px;
  }
}
