@charset "utf-8";

*,
*:before,
*:after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box
}

/* iOSでのデフォルトスタイルをリセット */
input[type="submit"],
input[type="button"] {
  border-radius: 0;
  -webkit-box-sizing: content-box;
  -webkit-appearance: button;
  appearance: button;
  border: none;
  box-sizing: border-box;
  cursor: pointer;
}

input[type="submit"]::-webkit-search-decoration,
input[type="button"]::-webkit-search-decoration {
  display: none;
}

input[type="submit"]::focus,
input[type="button"]::focus {
  outline-offset: -2px;
}

#chat_box .chat_sp {
  display: block;
}

#chat_box .chat_pc {
  display: none;
}

#chat_box button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  appearance: none;
}

#chat_box {
  display: none;
  position: fixed;
  z-index: 21;
  right: 12px;
  bottom: 130px;
  width: 170px;
  height: 34px;
  box-shadow: 0 0 8px rgba(0, 0, 0, .8);
  border-radius: 8px;
  background-color: #ffffff;
  flex-direction: column;
  flex-wrap: nowrap;
  line-height: 1.4;
}

#chat_box #chat_bnr_box .chat_bnr_popup,
#chat_box #chat_bnr_box .chat_bnr_reduce {
  display: none;
}

#chat_box #chat_message {
  display: none;
  margin: 0 1rem;
  overflow-x: hidden;
  overflow-y: scroll;
  flex-grow: 1;
}

#chat_box #chat_input {
  display: none;
  flex-grow: 0;
}

#chat_box #chat_bnr_box {
  position: relative;
  flex-grow: 0;
  cursor: pointer;
}

#chat_box.chatmode #chat_bnr_box {
  cursor: default;
}

#chat_box #chat_bnr_box #chat_bnr_shrink {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 146px;
  height: 100%;
  cursor: pointer;
}

#chat_box #chat_bnr_box #chat_bnr_close {
  position: absolute;
  top: 0;
  right: 0;
  width: 24px;
  height: 100%;
  cursor: pointer;
}

#chat_box #chat_bnr_box #chat_bnr_close.chatmode {
  width: 12vw;
}

#chat_box.mobile_h #chat_bnr_box #chat_bnr_close {
  width: 10%;
}

#chat_box #chat_bnr_box #chatmode_header {
  padding: 0.5rem;
  background-color: #cc0033;
  color: #ffffff;
  display: none;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px 8px 0 0;
}

#chat_box.operator #chat_bnr_box #chatmode_header {
  background-color: #009ecc;
}

#chat_box #chat_bnr_box #chatmode_header #chatmode_header_icon_box {
  width: 17vw;
  height: 12vw;
  padding-right: 1rem;
  flex-grow: 0;
  background-image: url(/st/supports/chat/images/icon_automata.png);
  background-repeat: no-repeat;
  background-size: contain;
}

#chat_box.mobile_h #chat_bnr_box #chatmode_header #chatmode_header_icon_box {
  width: 9vw;
  height: 7vw;
}

#chat_box.operator #chat_bnr_box #chatmode_header #chatmode_header_icon_box {
  background-image: url(/st/supports/chat/images/icon_operator.png);
}

#chat_box #chat_bnr_box #chatmode_header #chatmode_header_text_box {
  font-size: 1.2rem;
  font-weight: bold;
  flex-grow: 1;
}

#chat_box #chat_bnr_box #chatmode_header #chatmode_header_close_box,
#chat_box #chat_bnr_box #chatmode_header #chatmode_header_reduce_box {
  width: 43px;
  padding: 0 1rem;
  flex-grow: 0;
}

/* #chat_box.mobile_h #chat_bnr_box #chatmode_header #chatmode_header_close_box,
#chat_box #chat_bnr_box #chatmode_header #chatmode_header_reduce_box {
  width: 6vw;
} */

#chat_box #chat_bnr_box #chatmode_header #chatmode_header_close_box img,
#chat_box #chat_bnr_box #chatmode_header #chatmode_header_reduce_box img {
  vertical-align: middle;
}

#chat_box #chat_popup {
  display: none;
  padding: 1rem 0.5rem;
  font-size: 1.4rem;
  text-align: center;
}

#chat_box #chat_popup.display {
  display: block;
}

#chat_box #chat_popup p {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.3;
}

#chat_box #chat_popup p a {
  text-decoration: underline;
}

#chat_box #chat_popup p a img {
  width: 2rem;
  display: inline-block;
  margin: 0 0 0.2rem 0.2rem;
}

#chat_box #chat_popup #bot_start {
  width: 86%;
  margin: 0 auto;
  padding: 0.5rem;
  background-color: #cc0033;
  text-align: center;
  font-size: 1.2rem;
  color: #ffffff;
}

#chat_box #chat_message_box {
  display: none;
  height: 38vh;
  padding: 0 1.4rem;
}

#chat_box.mobile_h #chat_message_box {
  height: 48vh;
}


#chat_box #chat_message_box.display {
  display: block;
}

#chat_box #chat_message_box #chat_message {
  position: relative;
  height: 26vh;
  overflow-x: hidden;
  overflow-y: scroll;
}

#chat_box.mobile_h #chat_message_box #chat_message {
  height: 60%;
}

#chat_box #chat_input {
  /* position: absolute;
  bottom: 0;
  left: 0; */
  /* padding: 1.4rem; */
  width: 100%;
  height: 40px;
  background-color: #ebebeb;
  border-radius: 0 0 8px 8px;
  /* display: flex; */
  justify-content: space-between;
  flex-grow: 0;
}

#chat_box.mobile_h #chat_input {
  height: 40px;
}

#chat_box #chat_input .textarea {
  display: inline-block;
  vertical-align: top;
  width: 100%;
  margin: 5px;
}

#chat_box #areaSendMsg {
  display: block;
  width: 100%;
  height: 30px;
  padding: 0.5rem;
  font-size: 1.4rem;
  line-height: 1;
}

#chat_box #chat_input .input {
  display: inline-block;
  width: 15vw;
}

#chat_box #btnSendMsg {
  display: inline-block;
  width: 100%;
  height: 100%;
}

#chat_box #chat_message .part_box img {
  display: block;
  margin: 0 auto;
}

#chat_box #chat_message .part_box img.icon_felica {
  display: inline;
  height: 12px;
  width: auto;
  vertical-align: middle;
}

#chat_box #chat_message .part_box img.icon_id {
  width: 10%;
  margin: 0;
  padding: 0;
  background-image: none;
}

#chat_box .talk-agent p,
#chat_box .talk-guest p {
  margin-top: 0;
  line-height: 1;
}

#chat_box .botsystem_msg,
#chat_box .waitingStart-sysMsg,
#chat_box .waitingEnd-sysMsg,
#chat_box .message p {
  margin: .5rem 0;
  line-height: 1.4;
}

#chat_box .botsystem_msg,
#chat_box .waitingStart-sysMsg,
#chat_box .waitingEnd-sysMsg,
#chat_box .message {
  width: 100%;
  margin-bottom: 1rem;
  color: rgb(127, 127, 127);
  font-size: 12px;

}

/* オペレータ用ヘッダ */
#chat_box .head-agent {
  width: 88%;
  margin: 0 auto 2rem 0;
  font-size: 12px;
  font-family: sans-serif;
  color: rgb(127, 127, 127);
  text-align: right;
}

/* クライアント用ヘッダ */
#chat_box .head-guest {
  width: 16%;
  margin: 0 0 2rem auto;
  font-size: 12px;
  font-family: sans-serif;
  color: rgb(127, 127, 127);
}

#chat_box button {
  width: 80%;
  display: block;
  margin-bottom: 0.5rem;
  padding: 0.5rem 3rem 0.5rem 0.5rem;
  border: 3px solid #cc0033;
  border-radius: 8px;
  color: #cc0033;
  cursor: pointer;
}

#chat_box .btn_choices,
#chat_box .btn_answer,
#chat_box .btn_not_match,
#chat_box .btn_after {
  position: relative;
  font-size: 1.4rem;
}

#chat_box .btn_choices:after,
#chat_box .btn_answer:after,
#chat_box .btn_not_match:after,
#chat_box .btn_after:after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 8px;
  border-color: transparent transparent transparent #cc0033;
  position: absolute;
  top: 50%;
  right: 1rem;
  margin-top: -6px;
}

#chat_box .btn_answer {
  display: inline-block;
  width: 40%;
  margin: 0.5rem 1rem;
}

#chat_box .btn_answer[data-optionid="0"] {
  background-color: #cc0033;
  color: #ffffff;
}

#chat_box .btn_answer[data-optionid="1"] {
  background-color: #838383;
  border-color: #838383;
  color: #ffffff;
}

#chat_box .btn_answer[data-optionid="0"]:after,
#chat_box .btn_answer[data-optionid="1"]:after {
  border-color: transparent transparent transparent #ffffff;
}

#chat_box button[disabled],
#chat_box input[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  /* 禁止カーソル */
}

/* 送信ボタン */
#chat_box .sendbutton {
  background-color: rgb(210, 32, 62);
  border: 0px solid #DDD;
  border-radius: 20px;
  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
  color: white;
  width: 100px;
  /* padding: 10px 0; */
}

/* オペレータ用ヘッダ */
#chat_box .head-agent {
  width: 16%;
  margin: 0 auto 2rem 0;
  font-size: 12px;
  font-family: sans-serif;
  color: rgb(127, 127, 127);
  text-align: right;
}

#chat_box .head-agent p {
  margin: 0;
  padding: 0;
}

/* オペレータ用吹出し */

#chat_box .speak_bot,
#chat_box .talk-agent {
  background: rgb(255, 240, 245);
  /* 背景色 */
  display: block;
  position: relative;
  width: fit-content;
  max-width: 80%;
  margin: 0.5rem auto 0.5rem 10px;
  border: 2px solid rgb(210, 32, 62);
  /* 枠色 */
  padding: 0.8rem;
  border-radius: 6px;
  /* 吹き出し角の角度 */
  font-size: 1.4rem;
  font-family: sans-serif;
  color: black;
  text-align: left;
  word-break: break-all;
}

#chat_box .speak_bot:before,
#chat_box .talk-agent:before {
  content: "";
  display: inline-block;
  border: 10px solid transparent;
  border-right-color: rgb(210, 32, 62);
  /* 三角の枠線の色 */
  position: absolute;
  left: -20px;
  top: 6%;
  margin-top: 2px;
}

#chat_box .speak_bot:after,
#chat_box .talk-agent:after {
  content: "";
  display: inline-block;
  border: 10px solid transparent;
  border-right-color: rgb(255, 240, 245);
  /* 三角の内側の色 */
  position: absolute;
  left: -17px;
  /* 枠線の太さ */
  top: 6%;
  margin-top: 2px;
}


/* #chat_box.operator .speak_bot, */
#chat_box.operator .talk-agent {
  background: #e5f5fa;
  /* 背景色 */
  border: 2px solid #009ecc;
  /* 枠色 */
}

/* #chat_box.operator .speak_bot:before, */
#chat_box.operator .talk-agent:before {
  border-right-color: #009ecc;
  /* 三角の枠線の色 */
}

/* 
#chat_box.operator .speak_bot:after, */
#chat_box.operator .talk-agent:after {
  border-right-color: #e5f5fa;
  /* 三角の内側の色 */
}


/* #chat_box .talk-guest p {
  margin: 1rem;
  padding: 0;
} */

#chat_box .head-guest p {
  margin: 0;
  padding: 0;
}

/* クライアント用ヘッダ */
/* #chat_box .head-guest {
  width: 50%;
  margin: 0 0 2rem auto;
  font-size: 12px;
  font-family: sans-serif;
  color: rgb(127, 127, 127);
} */

/* クライアント用吹出し */
#chat_box .speak_user,
#chat_box .talk-guest {
  background: rgb(255, 255, 255);
  /* 背景色 */
  display: block;
  position: relative;
  width: fit-content;
  max-width: 80%;
  margin: 0.5rem 10px 0.5rem auto;
  border: 2px solid rgb(210, 32, 62);
  /* 枠色 */
  padding: 0.8rem;
  border-radius: 6px;
  /* 吹き出し角の角度 */
  font-size: 1.4rem;
  font-family: sans-serif;
  color: black;
  text-align: left;
  word-break: break-all;
}

#chat_box .speak_user:before,
#chat_box .talk-guest:before {
  content: "";
  display: inline-block;
  border: 10px solid transparent;
  border-left-color: rgb(210, 32, 62);
  /* 三角の枠線の色 */
  position: absolute;
  right: -20px;
  top: 6%;
  margin-top: 2px;
}

#chat_box .speak_user:after,
#chat_box .talk-guest:after {
  content: "";
  display: inline-block;
  border: 10px solid transparent;
  border-left-color: rgb(255, 255, 255);
  /* 三角の内側の色 */
  position: absolute;
  right: -17px;
  /* 枠線の太さ */
  top: 6%;
  margin-top: 2px;
}

#chat_box.operator .talk-guest {
  background: rgb(255, 255, 255);
  /* 背景色 */
  border: 2px solid #009ecc;
  /* 枠色 */
}

#chat_box.operator .talk-guest:before {
  border-left-color: #009ecc;
  /* 三角の枠線の色 */

}

#chat_box.operator .talk-guest:after {
  border-left-color: rgb(255, 255, 255);
  /* 三角の内側の色 */
}

#chat_box .message {
  width: 100%;
  color: rgb(127, 127, 127);
  font-size: 12px;
  /* font-weight: bold; */
}

/* モーダルCSSここから */
#chat_box .modalArea {
  visibility: hidden;
  /* displayではなくvisibility */
  opacity: 0;
  position: absolute;
  z-index: 10;
  /* サイトによってここの数値は調整 */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: .4s;
}

#chat_box .modalBg {
  width: 100%;
  height: 100%;
  background-color: rgba(30, 30, 30, 0.9);
}

#chat_box .modalWrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  max-width: 500px;
  padding: 10px 30px;
  background-color: #fff;
  -webkit-transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  -o-transform: translate(-50%, -50%);
}

#chat_box .closeModal {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  cursor: pointer;
}

#chat_box .is-show {
  /* モーダル表示用クラス */
  visibility: visible;
  opacity: 1;
}

#chat_box .modalArea .modalContents {
  text-align: center;
}

#chat_box .modalArea button {
  -webkit-appearance: none;
  appearance: none;
  padding: 0;
  border: none;
  outline: none;
  background: transparent;
  display: block;
  width: 60%;
  margin: 0 auto;
  width: 100%;
  margin-bottom: 1rem;
  padding: .5rem;
  line-height: 1.5;
  border-radius: 5px;
  font-size: 2rem;
  color: rgb(255, 255, 255);
  cursor: pointer;
  text-align: center;
}

#chat_box .modalArea button#close {
  margin-bottom: 2rem;
  background-color: rgb(210, 32, 62);
}

#chat_box .modalArea button#notClose {
  background-color: rgb(76, 76, 76);
}

/* モーダルCSSここまで */

#chat_box #caution_box {
  position: absolute;
  bottom: 33px;
  margin: 10px;
  padding: 5px;
  background-color: rgb(255, 250, 240);
  border-radius: 6px;
  border: 2px solid rgb(210, 32, 62);
  font-size: 1.4rem;
  font-family: sans-serif;
  color: black;
  display: none;
}

@media screen and (min-width: 769px) {

  #chat_box.shrink {
    max-height: 50px;
  }

  #chat_box .chat_sp {
    display: none;
  }

  #chat_box .chat_pc {
    display: block;
  }

  #chat_box {
    position: fixed;
    z-index: 21;
    right: 12px;
    bottom: 150px;
    width: 250px;
    height: 50px;
    max-width: 880px;
  }

  #chat_box.mobile_h {
    width: 170px;
    height: 34px;
  }

  #chat_box #chat_message_box {
    height: 80%;
  }

  #chat_box #chat_bnr_box #chat_bnr_shrink {
    width: 210px;
  }

  #chat_box #chat_bnr_box #chat_bnr_close {
    width: 40px;
  }
  
  #chat_box #chat_bnr_box #chat_bnr_close.chatmode {
    width:44px;
  }

  #chat_box #chat_bnr_box .renew18-main-appeal3__lead {
    width: 660px;
  }

  #chat_box #chat_bnr_box .renew18-main-appeal3__detail {
    width: 660px;
  }

  #chat_box #chat_bnr_box #chat_img_box {
    width: 249px;
  }

  #chat_box #chat_input .textarea {
    width: 86%;
    height: 30px;
    margin: 5px;
  }

  #chat_box #areaSendMsg {
    height: 30px;
  }

  #chat_box.mobile_h #areaSendMsg {
    height: 52px;
  }

  #chat_box #chat_input .input {
    width: 14%;
    height: 30px;
  }

  #chat_box #btnSendMsg {
    height: 40px;
  }

  #chat_box.mobile_h #btnSendMsg {
    height: 52px;
  }

  #chat_box #chat_bnr_box #chatmode_header #chatmode_header_icon_box {
    width: 120px;
    height: 84px;
  }

  #chat_box #chat_bnr_box #chatmode_header #chatmode_header_text_box {
    font-size: 1.4rem;
  }

  #chat_box #chat_bnr_box #chatmode_header #chatmode_header_close_box,
  #chat_box #chat_bnr_box #chatmode_header #chatmode_header_reduce_box {
    width: 43px;
  }

  #chat_box.mobile_h #chat_bnr_box #chatmode_header #chatmode_header_icon_box {
    width: 8vw;
    height: 6vw;
  }
  #chat_box.mobile_h #chat_bnr_box #chatmode_header #chatmode_header_text_box {
    font-size: 1.4rem;
  }

  #chat_box.mobile_h #chat_bnr_box #chatmode_header #chatmode_header_close_box {
    width: 4vw;
  }

  #chat_box .botsystem_msg,
  #chat_box .waitingStart-sysMsg,
  #chat_box .waitingEnd-sysMsg,
  #chat_box .message {
    font-size: 1.4rem;
  }

  #chat_box button {
    width: 96%;
  }

  #chat_box #chat_message {
    height: 330px;
  }

  #chat_box #chat_input {
    height: 40px;
  }
}

@media screen and (max-height: 850px) {
  #chat_box {
    max-height: 350px;
  }
  #chat_box #chat_message {
    height: 160px;
  }
}

details {
  border: 2px solid rgb(210, 32, 62);
  border-radius: 6px;
  padding: 0.8rem;
  background-color: #ffffff;
}

details[open] summary {
  border-bottom: 2px solid rgb(210, 32, 62);
  margin: 0 -0.8rem 1rem;
  padding: 0 0.8rem 0.8rem 0.8rem;
}