@charset "UTF-8";
/******************************************************************************/
/* ページ共通
/******************************************************************************/
html {
  font-size: 10px;
}

body {
  font-size: 1.5rem
}

.container {
  background-color: #D9DDE6;
  width: 100%;
  max-width: 70rem;
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: 70px;
  border-right: 1px solid #ccc;
  border-left: 1px solid #ccc;
}

#chat-field {
  padding: 0px 0.5rem;
  margin-bottom: 2rem;
  overflow: auto;
}

.space-between {
  justify-content: space-between;
}

.btn {
  padding: 0 1rem;
}

/******************************************************************************/
/* ヘッダー
/******************************************************************************/
header {
  position: fixed;
  top: 0;
  z-index: 10;
  background-color: #f5f5f5;
  width: 100%;
  max-width: 70rem;
  //height: 5.5rem;
  padding: 1rem 3rem;
  border: 1px solid #ccc;
}

header .back-list {
  font-size: 2rem;
  font-weight: bold;
}

header .chatbot-select-box {
  width: 45%;
}

header #save-btn {
  font-size: 1.5rem;
}
/******************************************************************************/
/* フッター
/******************************************************************************/
footer {
  position: fixed;
  bottom: 0;
  z-index: 10;
  background-color: #000;
  width: 100%;
  max-width: 70rem;
  height: 1rem;
  margin: 0;
}

/******************************************************************************/
/* チャット画面
/******************************************************************************/
main {
  height: 100%;
  padding-top: 6rem;
}

/*** トークの表示非表示ボタン ***/
#change-disp {
  width: 17rem;
  padding: 0.5rem 2rem;
  text-align: center;
}

/*** 吹き出し共通デザイン ***/
.fukidashi-bots,
.fukidashi-users {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 2rem;
  overflow: hidden;
}

.fukidashi-bots p,
.fukidashi-users p {
  display: inline-block;
  position: relative;
  //width: 75%;
  max-width: 70rem;
  padding: 1.7rem 1.5rem;
  border-radius: 1.2rem;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

.fukidashi-bots p:before,
.fukidashi-users p:before {
  content: "";
  display: inline-block;
  position: absolute;
  top: 0.5rem;
  border: 1.2rem solid transparent;
}

/* テキストを非表示の場合（初期値） */
#chat-field .fukidashi-bots p {
  color: #fff;
}

#chat-field .fukidashi-users p {
  color: #85E347;
}

/* テキストを表示の場合 */
#chat-field.disp-text .fukidashi-bots p,
#chat-field.disp-text .fukidashi-users p {
  color: #000;
}

/* botのアイコンのサイズ */
main .icon {
  width: 5rem;
}

main .icon img {
  display: inline-block;
  width: 7rem;
}

/* 吹き出しのデザイン（個別部分） */
main .fukidashi-bots p {
  margin: 0.5rem 0 0 1.5rem;
  background: #fff;
  width: auto;
}

main .fukidashi-bots p:before {
  left: -2.2rem;
  border-right: 1.2rem solid #fff;
}

main .fukidashi-users {
  justify-content: flex-end;
}

main .fukidashi-users p {
  margin: 0.5rem 1.5rem 0 0;
  background: #85E347;
}

main .fukidashi-users p:before {
  right: -2.2rem;
  border-left: 1.2rem solid #85E347;
}

/* 録音ボタン */
#send-btn {
  background-color: #233249;
  width: 50%;
  margin: 0 auto;
  padding: 15px 0px;
  text-align: center;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  color: #fff;
}

/******************************************************************************/
/* スマホ表示
/******************************************************************************/
@media only screen and (max-width: 767px) {
  header {
    left: 0;
    max-width: none;
  }

  .container {
    max-width: none;
  }

  #select-chatbot {
    white-space: nowrap;
  }

  #send-btn {
    width: 100%;
  }

}
