@charset "utf-8";
/* CSS Document */
html {
  font-size: 10px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.025em;
  -webkit-text-size-adjust: 100%;
  font-family: 'Noto Sans JP', sans-serif;
}

body {
  background-color: #fff;
  font-size: 16px;
  margin: 0;
  padding: 0;
}

img{
  max-height: 100%;
  max-width: 100%;
}

#chatbot-open{
  height:50px;
  display: flex;
  align-items: center;
  padding:5px;
  position: fixed;
  background-color: #00A0C1;
  border-radius: 5px;
  bottom:15px;
  color:#fff;
  font-weight: bold;
  right:15px;
  cursor: pointer;
  overflow: hidden;
}
#chatbot-open img{
  max-width: 100%;
  max-height:100%;
  margin-right:5px;
}

#chatbot-close{
  display: flex;
  align-items: center;
  justify-content: center;
  width:35px;
  height:35px;
  border:1px #fff solid;
  color:#fff;
  cursor: pointer;
}

.chatbot-header{
  background-color: #00A0C1;
  color:#fff;
  display: flex;
  height:80px;
  font-weight: bold;
  align-items: center;
  justify-content: space-between;
  padding:10px;
}
.chatbot-header-img{
  width: 50px;
}
.chatbot-header-text{
  padding:0 5px;
  line-height: 1.2;
}

input{
  border: 1px solid #ddd;
}

#chatbot{
  position: fixed;
  display: none;
  bottom:10px;
  right:10px;
  width: 450px;
  height: 650px;
  border-radius: 10px;
  overflow: hidden;
  background: #FAFAFA;
  z-index: 99999;
}

#chatbot-wrapper{
  position: relative;
  width: 100%;
  height: calc(100% - 80px);
  padding:10px;
  padding-right:20px;
  overflow-y: scroll;
  overflow-x: hidden;
}

#chatbot-dialog-ul{
  position: relative;
  bottom:0;
  min-height: 100%;
  text-align: left;
}

.chatbot-form{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

#chatbot input[type="text"],#chatbot input[type="email"],#chatbot input[type="tel"]{
  width: 100%;
  border: 1px solid #000;
  background: #fff;
  border-radius: 5px;
  padding:5px;
}

#chatbot button{
  border: 1px solid #ffc107;
  margin-top:10px;
  padding:5px 20px;
  background: #ffc107;
  border-radius: 50px;
  color:#fff;
  position: relative;
  z-index: 1;
  font-weight: bold;
}

#chatbot-input-name-error{
  font-size:0.9em;
  color:#ff0000;
}

.dialog-icon{
  width: 25px;
  height: 25px;
}
.dialog-icon img{
  width: 100%;
  border-radius: 50%;
}

/* 基本+BOT */
.dialog-balloon {
  position: relative;
  display: inline-block;
  margin: 10px;
  padding: 15px;
  max-width: 80%;
  color: #555;
  font-size: 16px;
  background: #ffb53a;
  border-radius: 10px;
}

.dialog-balloon:before {
  content: "";
  position: absolute;
  bottom: 0;
  left: -8px;
  border: 16px solid transparent;
  border-bottom: 16px solid #ffb53a;
}

/* ユーザー */
#chatbot-dialog-ul li.user{
  display: flex;
  justify-content: flex-end;
}
li.user .dialog-balloon {
  background: #e0e0e0;
}
li.user .dialog-balloon:before {
  left:50%;
  right: -8px;
  border: 16px solid transparent;
  border-bottom: 16px solid #e0e0e0;
}


/**
 * ==============================================
 * Dot Typing
 * ==============================================
 */
.dot-typing {
  position: relative;
  margin-left:18px;
  margin-right:22px;
  margin-top:8px;
  left: -9999px;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background-color: #acacac;
  color: #acacac;
  box-shadow: 9984px 0 0 0 #acacac, 9999px 0 0 0 #acacac, 10014px 0 0 0 #acacac;
  animation: dot-typing 0.8s infinite linear;
}

@keyframes dot-typing {
  0% {
    box-shadow: 9984px 0 0 0 #acacac, 9999px 0 0 0 #acacac, 10014px 0 0 0 #acacac;
  }
  16.667% {
    box-shadow: 9984px -10px 0 0 #acacac, 9999px 0 0 0 #acacac, 10014px 0 0 0 #acacac;
  }
  33.333% {
    box-shadow: 9984px 0 0 0 #acacac, 9999px 0 0 0 #acacac, 10014px 0 0 0 #acacac;
  }
  50% {
    box-shadow: 9984px 0 0 0 #acacac, 9999px -10px 0 0 #acacac, 10014px 0 0 0 #acacac;
  }
  66.667% {
    box-shadow: 9984px 0 0 0 #acacac, 9999px 0 0 0 #acacac, 10014px 0 0 0 #acacac;
  }
  83.333% {
    box-shadow: 9984px 0 0 0 #acacac, 9999px 0 0 0 #acacac, 10014px -10px 0 0 #acacac;
  }
  100% {
    box-shadow: 9984px 0 0 0 #acacac, 9999px 0 0 0 #acacac, 10014px 0 0 0 #acacac;
  }
}




@media screen and (max-width: 700px) {
  #chatbot {
    width: 90vw;
    height: 80vh;
  }
}