.chat {
  -webkit-transition: 0.6s ease;
  -o-transition: 0.6s ease;
  transition: 0.6s ease;
  width: auto;
  max-width: 754px;
  margin: 0 auto 110px;
}

.chat-list {
}

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

/* .chat-item.last {
 margin-top: 34px;

}

.chat-item.last .chat-wrap {
 display: none;
} */

.diagnose__image {
  max-width: 220px;
  margin-right: 24px;
}

.diagnose__image img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 220px;
  object-fit: cover;
}

.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 #d67c1c;
  padding: 1em;
  -webkit-filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.1));
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.1));
  -webkit-animation: bounceIn 1s ease;
  animation: bounceIn 1s ease;
  -webkit-transform-origin: top right;
  -ms-transform-origin: top right;
  transform-origin: top right;
}

/* .chat-item.last .chat-box {
 border: none;
 filter: none;
} */

.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: #333;
  margin-bottom: 0.7em;
  font-size: 21px;
  font-weight: 700;
  border-bottom: 1px solid #cccccc;
}

.chat-item.last .chat-title {
  display: none;
}

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

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

.chat-text-wrap {
  background-color: #dba558;
  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 p {
  margin-bottom: 0;
}

.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 #dba558;
}

.chat-ans .nav-link {
  white-space: nowrap;
  border-radius: 2em;
  border-color: #cccccc;
  background-color: #333;
  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: 27px;
 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;
}

.chat-ans nav div {
  align-items: center;
}

.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: 1em auto 0;
  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;
}

.end.chat__btn-next {
  margin: 0 auto 0;
  background-color: #e46d24;
}

.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: #ff5757;
}

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

.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: #f0faff;
  z-index: 100;
}

.sateiTitle {
  width: 80%;
  height: 60px;
  top: -45px;
  left: 0;
  right: 0;
  margin: 0 auto;
  /* border: 3px solid #1c4f7c; */
  margin-bottom: 40px;
  border-radius: 96px;
  background-color: #d67c1c;
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  text-align: center;
  line-height: 60px;
}

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

/* @media only screen and (max-width: 768px) {
 .c-mb135 {
  margin-bottom: 100px
 }
} */

.thanksContent {
  width: 353px;
  padding: 28px 0 26px 0;
  text-align: center;
  border-top: 1px solid #cccccc;
  /* display: -webkit-box;
 display: -ms-flexbox;
 display: flex;
 -webkit-box-align: center;
 -ms-flex-align: center;
 align-items: center; */
  margin: auto;
}

.thanksContentCaption {
  font-size: 16px;
  font-weight: 700;
}

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

.diagnose__image-thanks {
}

.diagnose__image-thanks img {
  width: 100%;
  height: auto;
  max-width: 240px;
  object-fit: cover;
}

/* checkbox用 */
.nav-checkbox {
  display: flex;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* ラベルとチェックボックスの間の調整 */
.nav-checkbox label {
  display: flex;
  align-items: center;
  margin-right: 16px;
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 700;
  color: #333;
  cursor: pointer;
}

/* チェックボックス全体のスタイル */
.nav-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border: 2px solid #333;
  border-radius: 3px;
  background-color: #fff;
  vertical-align: middle;
  cursor: pointer;
}

/* チェックが入った時のスタイル */
.nav-checkbox input[type="checkbox"]:checked {
  background-color: #e46d24;
  border-color: #e46d24;
  background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 18 18"%3E%3Cpath fill="none" stroke="%23fff" stroke-width="2" d="M4 9l4 4 8-8"/%3E%3C/svg%3E');
  background-size: 14px 14px;
  background-position: center;
  background-repeat: no-repeat;
}

.nav-checkbox input[type="checkbox"]:checked + label {
  color: #000;
}

.nav-checkbox .invalid-text {
  display: none;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875em;
  color: #ff5757;
}
.submit-button-checkbox[disabled] {
  background-color: #cccccc;
  cursor: not-allowed;
  /* opacity: 0.6; */
}
