.bot--area {
  display: none;
  min-width: 520px;
  position: fixed;
  bottom: 40px;
  left: 40px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s linear;
}
@media only screen and (max-width: 559px) {
  .bot--area {
    min-width: 0;
    width: calc(100% - 20px);
    bottom: 40px;
    left: 10px;
  }
}
.bot--area.loaded {
  display: block;
}
.bot--area.hello {
  opacity: 1;
  pointer-events: all;
}
.bot--area--container {
  min-height: 160px;
  max-width: 370px;
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 140px;
}
@media only screen and (max-width: 559px) {
  .bot--area--container {
    min-height: 120px;
    padding-left: 90px;
  }
}
.bot--area:not(.hide) .bot--area--restart {
  display: none;
}
.bot--area.hide .bot--area--container {
  display: none;
}
.bot--area.hide .bot--area--restart {
  width: 103px;
  height: 90px;
  background: url(../bot/restart.svg) no-repeat center/contain;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
@media only screen and (min-width: 560px) {
  .bot--area.hide .bot--area--restart:hover {
    opacity: 0.8;
    transform: translateY(-5px);
  }
}

.bot--chara {
  width: 160px;
  height: 160px;
  position: absolute;
  top: 0;
  left: 0;
}
@media only screen and (max-width: 559px) {
  .bot--chara {
    width: 120px;
    height: 120px;
    left: -20px;
    top: auto;
    bottom: 0;
  }
}
.bot--chara--inner {
  width: 100%;
  height: 100%;
}
.bot--chara--container {
  width: 100%;
  height: 100%;
  background: url(../bot/02.gif) no-repeat center/contain;
}
.bot--chara--container[data-bot=intro] {
  background: url(../bot/01.gif) no-repeat center/contain;
}
.bot--chara--container[data-bot=sleep-start] {
  background: url(../bot/09.gif) no-repeat center/contain;
}
.bot--chara--container[data-bot=sleep] {
  background: url(../bot/09-2.gif) no-repeat center/contain;
}
.bot--chara--container[data-bot=wake] {
  background: url(../bot/10.gif) no-repeat center/contain;
}
.bot--chara--container[data-bot=choice0] {
  background: url(../bot/03-1.gif) no-repeat center/contain;
}
.bot--chara--container[data-bot=choice0-stand] {
  background: url(../bot/03-2.gif) no-repeat center/contain;
}
.bot--chara--container[data-bot=choice1] {
  background: url(../bot/04-1.gif) no-repeat center/contain;
}
.bot--chara--container[data-bot=choice1-stand] {
  background: url(../bot/04-2.gif) no-repeat center/contain;
}
.bot--chara--container[data-bot=choice2] {
  background: url(../bot/05-1.gif) no-repeat center/contain;
}
.bot--chara--container[data-bot=choice2-stand] {
  background: url(../bot/05-2.gif) no-repeat center/contain;
}
.bot--chara--container[data-bot=choice3] {
  background: url(../bot/06-1.gif) no-repeat center/contain;
}
.bot--chara--container[data-bot=choice3-stand] {
  background: url(../bot/06-2.gif) no-repeat center/contain;
}
.bot--chara--container[data-bot=guide] {
  background: url(../bot/03-1.gif) no-repeat center/contain;
}
.bot--chara--container[data-bot=guide-stand] {
  background: url(../bot/03-2.gif) no-repeat center/contain;
}

.bot--frame {
  box-sizing: border-box;
  min-height: 50px;
  padding: 12px 13px;
  border: 1px solid #ABABAB;
  border-radius: 10px;
  position: relative;
  background: #fff;
}
@media only screen and (max-width: 559px) {
  .bot--frame {
    padding: 20px;
  }
}
.bot--frame::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-right: 12px solid #ABABAB;
  border-bottom: 8px solid transparent;
  position: absolute;
  bottom: 19px;
  left: -13px;
}
.bot--frame::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-right: 11px solid #fff;
  border-bottom: 7px solid transparent;
  position: absolute;
  bottom: 20px;
  left: -11px;
}
.bot--frame--text {
  font-size: 14px;
  padding-right: 20px;
}

.bot--close {
  width: 15px;
  height: 15px;
  background: #ABABAB;
  border-radius: 50%;
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  transition: opacity 0.7s ease;
}
@media only screen and (min-width: 560px) {
  .bot--close:hover {
    opacity: 0.7;
  }
}
.bot--close::before, .bot--close::after {
  content: "";
  width: 10px;
  height: 1px;
  background: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: left top;
}
.bot--close::before {
  transform: rotate(45deg) translate(-50%, -50%);
}
.bot--close::after {
  transform: rotate(-45deg) translate(-50%, -50%);
}

.bot--frame--btns {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 10px 0 0;
  opacity: 0;
  pointer-events: none;
  transition: unset;
}
@media only screen and (max-width: 559px) {
  .bot--frame--btns {
    flex-wrap: wrap;
    margin-bottom: -10px;
  }
}
.bot--frame--btns.hello {
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.2s linear;
}
.bot--frame--btns li {
  font-size: 14px;
  color: #fff;
  background: #ABABAB;
  margin: 0 4px 4px 0;
  padding: 4px 0.5em;
  border-radius: 4px;
  transition: opacity 0.7s ease;
  cursor: pointer;
}
@media only screen and (max-width: 559px) {
  .bot--frame--btns li {
    margin-bottom: 10px;
  }
}
@media only screen and (min-width: 560px) {
  .bot--frame--btns li:hover {
    opacity: 0.7;
  }
}

#bot--modules {
  display: none;
}