#fs-chat-open{
  position: fixed;
  right: 30px;
  bottom: 30px;
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  background-color: rgba(30,30,30,1);
  border-radius: 76px;
  box-sizing: border-box;
  box-shadow: 3px 3px 7px rgba(0,0,0,1);
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  transition: all 0.65s;
}
#fs-chat-open.isActive {
  opacity: 1;
  transition: all 0.65s;
}
#fs-chat-open i{
  font-size: 45px;
  color: #ffffff;
  margin-top: -6px;
}
.fs-chat-wrapper{
  position: fixed;
  right: 30px;
  bottom: 30px;
  opacity: 1;
  overflow-y: initial;
  pointer-events: auto;
  width: 360px;
  height: 570px;
  background-color: rgba(30,30,30,1);
  box-shadow: 3px 4px 7px rgba(0,0,0,1);
  border-radius: 15px;
  border: 0px solid #dbd7d5;
  box-sizing: border-box;
  display: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 500ms;
}
.fs-chat-wrapper.fadeInWrapper{
  opacity:1;
}
.fs-chat-container{
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  flex-flow: column wrap;
  justify-content: flex-start;
  align-items: stretch; 
}
.fs-chat-header{
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
  font-weight: bold;
  font-size: 0.9rem;
  height: 60px;
  width: 100%;
  padding: 23px;
  background-color: rgba(25,25,25,1);
  border-radius: 15px 15px 0px 0px;
  box-sizing: border-box;
  border-bottom: 1px solid #dbd7d5;
}
#fs-chat-close{
  font-size: 40px;
  display: inline-block;
  margin-top: -6px;
  cursor: pointer;
}
.fs-chat-scroll{
  position: relative;
  top: 0px;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  overflow-scrolling: touch;
  height: 450px;
  width: 100%;
  margin-top: 0;
  background-color: transparent;
  border: none;
  box-sizing: border-box;
}
.fs-chat-scrollInner{
  padding: 30px 15px 30px 12px;
}
.fs-chat-scrollInner .fs-chat-balloon{
  margin-bottom: 15px;
}
.fs-chat-scrollInner .fs-chat-balloon:last-child{
  margin-bottom: 0px;
}

/* ↓↓↓↓↓↓ ボット側チャット ↓↓↓↓↓↓ */
.fs-chat-balloon{
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  flex-flow: column nowrap;
  justify-content: flex-start;
  align-items: flex-start;
  box-sizing: border-box;
}
.balloonIcon{
  position: relative;
  z-index: 1;
  width: 50px;
  min-height: 50px;
  border: solid 2px salmon;
}
.balloonIcon img{
  width: 100%;
}
.balloonBox{
  color: #191919;
  font-size: 13px;
  line-height: 1.4;
  text-align: justify;
  margin-top: -25px;
  margin-left: 25px;
  padding: 20px 20px 20px 20px;
  background-color: rgba(255,255,255,1);
  border-radius: 15px;
  box-sizing: border-box;
  width:100%;
  max-width: calc(100% - 25px);
}
.balloonMessage-sub{
  margin-top: 20px;
}

.balloonMessage-sub:nth-child(3n){
  margin-top: 0px;
}
.balloonBtn{
  margin-top: 15px;
}
.balloonBtn-list{
  color:#ffffff;
  display: block;
  padding: 10px;
  margin-bottom: 6px;
  background-color: rgba(89,89,89,1);
  border-radius: 10px;
  box-sizing: border-box;
  cursor: pointer;
}
.balloonBtn-list:hover{
  background-color: rgba(25,25,25,1);
}
/* ↑↑↑↑↑↑ ここまで ↑↑↑↑↑↑ */

.fs-chat-footer{
  letter-spacing: 0.05rem;
  height: 60px;
  width: 100%;
  padding: 12px;
  background-color: rgba(219,215,213,1);
  border-radius:0px 0px 15px 15px;
  box-sizing: border-box;
}
.footerForm-inner{
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  align-items: stretch;
  height: 35px;
}
input[type="submit"] {
  -webkit-appearance: none;
  border-radius: 0;
}
.footerForm-inner input{
  height: 100%;
  width: 100%;
  border-radius: 9px;
  box-sizing: border-box;
}
.footerForm-inner input[type="text" i]{
  background-color: rgba(255,255,255,1);
  border:none;
}
.footerForm-inner input[type="submit" i]{
  color: #ffffff;
  background-color: rgba(25,25,25,1);
  border:none;
}
.footerForm-tx{
  width: 262px;
}
.footerForm-tx input{
  padding: 10px;
}
.footerForm-btn{
  width: 65px;
}
.footerForm-btn input{
  cursor: pointer;
}




/* fadeUp */

.fadeUp{
  animation-name:fadeInLeftAnime;
  animation-duration:1.5s;
  animation-delay: 0.2s;
  animation-fill-mode:forwards;
  opacity:0;
}
@keyframes fadeInLeftAnime{
  from {
  opacity: 0;
  transform: translateX(-100px);
  }

  to {
  opacity: 1;
  transform: translateX(0);
  }
}
/* スクロールをしたら出現する要素にはじめに透過0を指定　*/
.fadeUpTrigger{
  display: none;
  opacity: 0;

  display: flex !important;
  opacity: 1 !important;
}



/* ↓↓↓↓↓↓ ユーザー側チャット ↓↓↓↓↓↓ */
.fs-chat-scrollInner .fs-chat-balloonF{
  margin-top: 15px;
  margin-bottom: 10px;
}
.fs-chat-balloonF{
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: none;
  flex-flow: column nowrap;
  justify-content: flex-start;
  align-items: flex-end;
}
.balloonIconF{
  position: relative;
  z-index: 1;
  width: 50px;
  margin: 0px 0px 0px auto;
  min-height: 50px;
}
.balloonIconF img{
  width: 100%;
}
.balloonBoxF{
  font-size: 13px;
  line-height: 1.4;
  text-align: justify;
  word-wrap: break-word;
  margin-top: -25px;
  margin-right: 25px;
  padding: 20px 20px 20px 20px;
  background-color: rgba(255,255,255,1);
  border-radius: 15px;
  box-sizing: border-box;
  max-width: calc(100% - 50px);
}
.balloonMessageF{
  width: 100%;
}

@media only screen and (max-width: 498px) {
  #fs-chat-open{
      right: 15px;
      bottom: 15px;
      width: 55px;
      height: 55px;
      z-index: 8888;
  }
  #fs-chat-open i{
      font-size: 35px;
      color: #ffffff;
      margin-top: -6px;
  }
  .fs-chat-header{
      font-size: 1.1rem;
  }
  .fs-chat-wrapper{
      width: calc(100% - 50px);
      height: calc(90vh - 50px);
      right: 25px;
      bottom: 25px;
  }
  .fs-chat-scroll{
      height: calc(90vh - 170px);;
  }
  .footerForm-tx{
      width: 77%;
  }
  .footerForm-inner input[type="text" i]{
      font-size:16px;
  }
}