@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap");

#chatbot,
#chatbot-buttons {
  font-family: "Noto Sans JP", sans-serif;
}

#chatbot {
  position: fixed;
  left: 15px;
  bottom: 15px;
  z-index: 100;
  max-width: 460px;
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  background: #eee;
  box-shadow: 0px 0px 16px 0px rgba(0, 0, 0, 0.38);
  font-size: 13px;
}

#chatbot.is-opened {
  display: block;
  animation: scale-up-br 0.35s cubic-bezier(0.39, 0.575, 0.565, 1) both;
}

#chatbot.is-closed {
  animation: scale-down-br 0.35s 0.1s cubic-bezier(0.39, 0.575, 0.565, 1) both;
}

#chatbot.is-minimized {
  display: none;
}

#chatbot .cb-header {
  position: relative;
  height: 45px;
  line-height: 45px;
  padding-left: 16px;
  padding-right: 65px;
  background-color: #dd5e45;
}

#chatbot .cb-title {
  padding-right: 0;
  padding-left: 31px;
  background: url("../images/icon_message.png") no-repeat left center / 23px 23px;
  color: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
}

#chatbot .cb-close {
  position: absolute;
  right: 10px;
  top: calc(50% - 10px);
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  border: none;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  -webkit-appearance: none;
          appearance: none;
  transition: opacity ease 0.2s;
  background-color: transparent;
}

#chatbot .cb-close img {
  width: 14px;
  height: 14px;
}

#chatbot .cb-maximize {
  position: absolute;
  right: 40px;
  top: calc(50% - 10px);
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  -webkit-appearance: none;
          appearance: none;
  transition: opacity ease 0.2s;
}

#chatbot .cb-maximize img {
  width: 17px;
  height: 17px;
}

#chatbot .cb-close:hover,
#chatbot .cb-maximize:hover {
  opacity: 0.8;
}

#chatbot .cb-body {
  max-height: 532px;
  height: calc(80vh - 67px);
  overflow: hidden;
  border: 2px solid #dd5e45;
  border-top: none;
}

#chatbot-body iframe {
  display: block;
  width: 100%;
  height: 100%;
}

#chatbot-buttons {
  position: fixed;
  left: 10px;
  bottom: 10px;
  z-index: 100;
}

#chatbot-buttons button {
  display: block;
}

#chatbot-buttons button#chatbot-minimize,
#chatbot-buttons button.first-click {
  border-radius: 50%;
}

#chatbot-open {
  padding: 0;
  border: none;
  font-size: 0;
  line-height: 0;
  background: transparent;
  background-size: 110px 110px;
  cursor: pointer;
  /* outline: none; */
  -webkit-appearance: none;
          appearance: none;
  transition: all ease-out 0.3s;
  filter: drop-shadow(0px 0px 6px rgba(0, 0, 0, 0.16));
}

#chatbot-open:hover {
  margin-bottom: 10px;
  filter: drop-shadow(0px 6px 12px rgba(0, 0, 0, 0.24));
}

#chatbot-open.is-button-minimized {
  filter: drop-shadow(0px 0px 4px rgba(0, 0, 0, 0.16));
}

#chatbot-open.is-button-minimized:hover {
  margin-bottom: 10px;
  filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.24));
}

@keyframes scale-up-br {
  0% {
    visibility: hidden;
    opacity: 0;
    transform: scale(0);
    transform-origin: 0% 100%;
  }
  100% {
    visibility: visible;
    opacity: 1;
    transform: scale(1);
    transform-origin: 0% 100%;
  }
}

@keyframes scale-down-br {
  0% {
    visibility: visible;
    opacity: 1;
    transform: scale(1);
    transform-origin: 0% 100%;
  }
  100% {
    visibility: hidden;
    opacity: 0;
    transform: scale(0);
    transform-origin: 0% 100%;
  }
}

#chatbot-minimize {
  position: absolute;
  right: 5px;
  top: 5px;
  z-index: 1;
  width: 19px;
  height: 19px;
  padding: 0;
  border: none;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  /* outline: none; */
  appearance: none;
  -webkit-appearance: none;
          appearance: none;
  transition: opacity ease 0.2s;
  background-color: transparent;
}

#chatbot-minimize img {
  width: 19px;
  height: 19px;
}

#chatbot-minimize:hover {
  opacity: 0.8;
}

#chatbot-minimize.is-button-minimized {
  display: none;
}

@media screen and (max-width: 490px) {
  #chatbot {
    left: 10px;
    bottom: 10px;
    width: calc(100% - 20px);
  }

  #chatbot {
    left: 10px;
    bottom: 10px;
    width: calc(100% - 20px);
  }

  #chatbot .cb-header {
    padding-left: 8px;
    padding-right: 55px;
  }

  #chatbot .cb-title {
    padding-left: 20px;
    background-size: 16px 16px;
    font-size: 12px;
  }

  #chatbot .cb-close {
    width: 30px;
    background-size: 12px 12px;
  }

  #chatbot .cb-maximize {
    right: 32px;
    width: 15px;
    background-size: 13px 13px;
  }

  #chatbot-buttons {
    right: 10px;
    bottom: 10px;
  }
}
