@charset "UTF-8";

/**
 * チャット型フォーム
 */

.text-shpink {
  color: #c66192;
}

.bg-shbluegradient {
  background-image: linear-gradient(45deg, #1c9aa3, #175ba2);
}

.bg-shlightbluegradient {
  background-image: linear-gradient(45deg, #3b9fa7, #4272a5);
}

.bg-shbackgroundgray {
  background-color: #efefef;
}

.bg-gray100 {
  background-color: #efefef;
}

.bg-mhorange {
  background-color: #FD7832;
}

.bg-mhblack {
  background-color: #353738;
}

.bg-mhblue {
  background-color: #4635fa;
}

.bg-mhblue.bg {
  background-color: #4635fa !important;
}

.bg-linegreen {
  background-color: #06c755;
}

html,
body {
  height: 100%;
  background-color: #efefef;
}

.js-chatform__branch--hide {
  display: none;
}

.js-chatform__branch--show {
  display: initial;
}

.js-chatform__header-box {
  font-weight: bold;
  padding: 16px;
  text-align: center;
  color: white;
  background-color: #FD7832;
}

.js-chatform__body-box {
  padding: 40px 0 80px;
}

.js-chatform__body-box__step-box {
  display: none;
  opacity: 0;
}

.js-chatform__body-box__step-box--done,
.js-chatform__body-box__step-box--current {
  display: block;
}

.js-chatform__body-box__step-box--current + .js-chatform__body-box__step-box__next-bar {
  display: flex;
}

.js-chatform__body-box__step-box__step-header {
  font-size: 2.4rem;
  font-weight: bold;
  padding: 16px 16px 0;
  text-align: center;
  text-decoration: underline;
}

.js-chatform__body-box__step-box__step-body {
  display: flex;
  padding: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.js-chatform__body-box__step-box__step-body__radio-button {
  font-size: 1.8rem;
  font-weight: bold;
  position: relative;
  top: -4px;
  left: -4px;
  width: 40%;
  max-width: 200px;
  margin: 0 0 16px 16px;
  padding: 26px 8px;
  color: black;
  border: 4px solid black;
  border-radius: 4px;
  background-color: palegoldenrod;
  box-shadow: 4px 4px 0 black;
}

.js-chatform__body-box__step-box__step-body__radio-button--thin {
  font-size: 1.2rem;
  width: 45%;
  margin: 0 0 12px 12px;
  padding: 16px 8px;
}

.js-chatform__body-box__step-box__step-body__radio-button--checked {
  top: 0;
  left: 0;
  background-color: #FD7832;
  box-shadow: none;
}

.js-chatform__body-box__step-box__step-body__radio-button--not-checked {
  background-color: gray !important;
}

.js-chatform__body-box__step-box__step-body__radio-button:focus {
  outline: none;
}

.js-chatform__body-box__step-box__step-body__input-text {
  width: calc(100% - 64px);
  max-width: 320px;
}

.js-chatform__body-box__step-box__step-body__next-button {
  font-weight: bold;
  width: 60px;
  margin-left: 4px;
  color: white;
  border: 1px solid #ced4da;
  border-radius: 4px;
  background-color: #06c755;
}

.js-chatform__body-box__step-box__step-body__next-button:disabled {
  color: white;
  background-color: #ced4da !important;
}

.js-chatform__body-box__step-box__step-body__next-button--pushed {
  color: white;
  background-color: #FD7832;
}

.js-chatform__body-box__step-box__chat-row {
  display: none;
  max-width: 640px;
  margin: 0 auto;
  padding: 8px 16px;
}

.js-chatform__body-box__step-box__chat-row--current,
.js-chatform__body-box__step-box__chat-row--done {
  display: flex;
}

.js-chatform__body-box__step-box__chat-row--adviser {
  justify-content: start;
}

.js-chatform__body-box__step-box__chat-row--requester {
  justify-content: end;
}

.js-chatform__body-box__step-box__chat-row__icon-img {
  width: 40px;
  min-width: 40px;
  height: 40px;
  border-radius: 1000px;
  background-image: url(https://www.music-hack.jp/wp-content/uploads/satoru-suzuki-02.jpg);
  background-repeat: no-repeat;
  background-size: cover;
}

.js-chatform__body-box__step-box__chat-row__message-balloon {
  font-size: 0;
  position: relative;
  display: none;
  min-height: 37px;
  margin-top: 12px;
  margin-left: 52px;
  padding: 8px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  background-color: white;
}

.js-chatform__body-box__step-box__chat-row__message-balloon--loading {
  display: flex;
  justify-content: center;
}

.js-chatform__body-box__step-box__chat-row__message-balloon--loading > .loading-bubble {
  width: 10px;
  height: 10px;
  margin: 5px 2px;
  animation: loading_anime 1s linear 0s infinite normal both;
  border-radius: 50%;
  background-color: #888;
}

.js-chatform__body-box__step-box__chat-row__message-balloon--loading > .loading-bubble + .loading-bubble {
  animation-delay: 0.2s;
}

.js-chatform__body-box__step-box__chat-row__message-balloon--loading > .loading-bubble + .loading-bubble + .loading-bubble {
  animation-delay: 0.4s;
}

.js-chatform__body-box__step-box__chat-row--adviser .js-chatform__body-box__step-box__chat-row__icon-img + .js-chatform__body-box__step-box__chat-row__message-balloon {
  margin-top: 0;
  margin-left: 12px;
}

.js-chatform__body-box__step-box__chat-row__message-balloon--done {
  font-size: 1.6rem;
  display: block;
}

.js-chatform__body-box__step-box__chat-row__message-balloon:first-child {
  margin-top: 0;
}

.js-chatform__body-box__step-box__chat-row__message-balloon::after {
  position: absolute;
  top: 8px;
  left: -15px;
  content: "";
  border-top: 8px solid transparent;
  border-right: 8px solid white;
  border-bottom: 8px solid transparent;
  border-left: 8px solid transparent;
}

.js-chatform__body-box__step-box__chat-row__message-balloon::before {
  position: absolute;
  top: 8px;
  left: -16px;
  content: "";
  border-top: 8px solid transparent;
  border-right: 8px solid #dee2e6;
  border-bottom: 8px solid transparent;
  border-left: 8px solid transparent;
}

.js-chatform__body-box__step-box__chat-row--requester .js-chatform__body-box__step-box__chat-row__message-balloon {
  margin-right: 12px;
  margin-left: 0;
  border: none;
  background-color: #06c755;
}

.js-chatform__body-box__step-box__chat-row--requester .js-chatform__body-box__step-box__chat-row__message-balloon::after {
  right: -15px;
  left: auto;
  border-right: 8px solid transparent;
  border-left: 8px solid #06c755;
}

.js-chatform__body-box__step-box__chat-row--requester .js-chatform__body-box__step-box__chat-row__message-balloon::before {
  content: none;
}

.js-chatform__body-box__step-box__form-box {
  max-width: 640px;
  margin: 12px auto;
  padding: 12px;
  border: 1px solid gray;
  border-radius: 8px;
  background-color: white;
}

.js-chatform__body-box__step-box__form-box__label-text {
  font-size: 14px;
  font-weight: bold;
  line-height: 1.5;
  display: inline-block;
  width: 100%;
  margin-bottom: 0;
  padding-bottom: calc(.375rem + 1px);
}

.js-chatform__body-box__step-box__form-box__input-text {
  margin-bottom: 16px;
}

.js-chatform__body-box__step-box--current + .js-chatform__body-box__next-bar,
.js-chatform__body-box__step-box--done + .js-chatform__body-box__next-bar {
  display: flex;
}

.js-chatform__body-box__next-bar {
  position: relative;
  display: none;
  height: 32px;
  justify-content: center;
}

.js-chatform__body-box__next-bar::before {
  position: absolute;
  bottom: 16px;
  display: block;
  width: 16px;
  height: 16px;
  content: "";
  transform: rotate(45deg);
  border-right: 4px solid orange;
  border-bottom: 4px solid orange;
}

.js-chatform__body-box__next-bar--done {
  display: flex;
}

@keyframes loading_anime {
  0% {
    transform: scale(0);
  }

  25% {
    transform: scale(1);
  }

  50% {
    transform: scale(1);
  }

  75% {
    transform: scale(1);
  }

  100% {
    transform: scale(0);
  }
}

@media screen and (min-width: 768px) {
  .js-chatform__header-box {
    font-size: 2.4rem;
  }

  .js-chatform__body-box__step-box__step-header {
    font-size: 2.4rem;
    padding-top: 60px;
  }

  .js-chatform__body-box__step-box__step-body {
    padding: 32px;
  }

  .js-chatform__body-box__step-box__step-body__radio-button {
    margin: 0 0 32px 32px;
    padding: 48px 16px;
  }

  .js-chatform__body-box__step-box__step-body__radio-button--thin {
    margin: 0 0 12px 12px;
    padding: 16px 8px;
  }
}

@media screen and (min-width: 992px) {
  .js-chatform__header-box {
    font-size: 3.2rem;
  }

  .js-chatform__body-box__step-box__step-header {
    font-size: 2.8rem;
  }
}

@media (max-width: 767.98px) {
  .js-chatform__body-box__step-box__step-body__radio-button--xs-1col {
    width: calc(80% + 16px);
    max-width: 100%;
    padding: 16px 8px;
  }
}