.sp-none {
  display: none !important;
}

img {
  max-width: 100%;
}

/* ※vw指定の値は、画面幅が広がっても崩れないよう min() でPC用(chatbot_pc.css)の値を上限にしている */

/* 重なり順:ドロワーメニュー(#drawer__nav.active: 100)の下、ヘッダー(20)・ページトップ(50)の上 */
#chatbot,
.chatbot-btn {
  z-index: 90;
}

/*チャットボット　基本設定
============================================*/
/* チャット本体の下端 = CLOSEボタンの下位置(min(3vw, 20px)) + ボタンサイズ + 余白10px */
/* 高さの上限 = 画面の高さ - サイトのヘッダー(rem(64)=4rem) - チャットのヘッダー(65px) - 下端 - 余白10px */
#chatbot {
  border-radius: 0 0 20px 20px;
  right: 5%;
  bottom: calc(min(3vw, 20px) + min(13vw, 50px) + 10px);
  width: 90%;
  max-width: 400px;
  height: 60vh;
  max-height: calc(100vh - 4rem - 65px - (min(3vw, 20px) + min(13vw, 50px) + 10px) - 10px);
  max-height: calc(100dvh - 4rem - 65px - (min(3vw, 20px) + min(13vw, 50px) + 10px) - 10px);
}

.chatbot-box-txtbx {
  width: 100%;
  height: 65px;
  border-radius: 20px 20px 0 0;
  padding: 8px 15px;
  left: 0;
  top: -65px;
}

.chatbot-box-txtbx .company-icon {
  flex-shrink: 0;
  width: min(12vw, 45px);
  height: min(12vw, 45px);
  border-radius: 50%;
  overflow: hidden;
}

.chatbot-box-txtbx .chatbot-box-txt {
  width: calc(100% - min(12vw, 45px) - 10px);
}

.chatbot-box-txtbx .chatbot-box-txt .txt {
  font-size: clamp(14px, 4vw, 16px);
  line-height: 1.35;
}

.chatbot-box-txtbx .chatbot-box-txt .company-name {
  font-size: clamp(12px, 3.5vw, 14px);
  line-height: 1.35;
}

#chatbot-app {
  padding: 15px 10px 15px 15px;
}

#chatbot .botui-message>div {
  width: 100%;
  margin-bottom: 4%;
}

#chatbot .botui-message .profile {
  width: min(10vw, 40px);
  height: min(10vw, 40px);
  margin-right: min(2vw, 10px);
  border: 1px solid #ccc !important;
}

.human.botui-message-content.text {
  border-radius: 12px 12px 0 12px;
}

.botui-actions-buttons-button {
  padding: 3% 5%;
}

.botui-message-content {
  max-width: 60%;
}


/*OPENボタン
-------------------------------------*/
.chatbot-btn {
  right: 3%;
  bottom: min(3vw, 20px);
  min-width: 150px;
  height: min(13vw, 55px);
  width: min(42vw, 240px);
  border-radius: 30px;
  color: #fff;
  color: #000;
  padding: 5px;
}

.chatbot-btn .icon {
  width: min(10vw, 45px);
  height: min(10vw, 45px);
}

.chatbot-btn .chatbot-txt {
  width: min(28vw, 165px);
}


/*CLOSEボタン
-------------------------------------*/
.chatbot-hook {
  top: -48px;
}


.chatbot-btn.current {
  right: 5vw;
  bottom: min(3vw, 20px);
  width: min(13vw, 50px);
  height: min(13vw, 50px);
}

.chatbot-btn.current .btn-bx .line:nth-child(1) {
  width: min(7vw, 30px);
  margin-left: max(-3.5vw, -15px);
}

.chatbot-hook {
  font-size: min(2.8vw, 14px);
}


.chatbot-btn.current .btn-bx .line:nth-child(3) {
  width: min(7vw, 30px);
  height: 2px;
  left: 50%;
  top: 50%;
  margin-left: max(-3.5vw, -15px);
}
