#chat-content {
  /* position: fixed; */
  /* right: 10px; */
  bottom: 0;
  display: none;
  height: 100vh;   /* フォールバック用*/
  height: 100svh;
}

.chat__container {
  background-image: url('../img/index/chatBg.png');
  font-size: 80%;
  background-color: rgba(255, 255, 255, 0.5);
  background-blend-mode: lighten;
}

/* タイトル部分 */
.chat__container .chat__title {
  background: #fff;
  padding: 20px;
  text-align: center;
  font-size: 150%;
  position: relative;
  cursor: pointer;
}

.chat__container .chat__title .iconClose {
  position: absolute;
  top: 7px;
  right: 10px;
  width: 20px;
}

.chat__container .chat__title:hover {
  opacity: 0.8;
}

.chat__title img {
  width: 60%;
}

/* 会話部分 */
.chat__container .chat__contents {
  padding: 125px 20px 30px;
  line-height: 135%;
}

.chat__container .scroll {
  height: 100vh;   /* フォールバック用*/
  height: 100svh;
  max-width: 768px;
  margin: 0 auto;
  max-height: calc(100svh - 254px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* スタンプ画像最大幅 */
.chat__container .stamp img {
  max-width:150px;
}

/* 相手の会話 */
.chat__container .chat__left {
    width: 50%;
    position: relative;
    display: block;
    margin-bottom: 30px;
    clear: both;
}

/* アイコン画像 */
.chat__container .chat__left figure {
    width: 50px;
    position: absolute;
    top: 15px;
    left: 0;
    padding: 0;
    margin: 0;
}

/* 正方形を用意 */
.chat__container .chat__left figure img{
    border-radius: 50%;
    width: 50px;
    height: 50px;
    border: 3px solid #c0c0c0;
}

.chat__container .chat__left .chat__left-text {
  margin-left: 70px;
}

.chat__container .chat__left .chat__left-text .name {
  font-size: 1rem;
  color: #333;
  margin-bottom: 5px;
}

.chat__container .chat__left .text {
  margin: 0;
  position: relative;
  padding: 10px;
  border-radius: 20px;
  background-color: #ffcfa8;
  font-size: 1rem;
  line-height: 1.5rem;
  white-space: pre-line
}

/* 吹き出し */
.chat__container .chat__left .text::after {
  content: '';
  position: absolute;
  display: block;
  width: 0;
  height: 0;
  left: -10px;
  top: 10px;
  border-right: 20px solid #ffcfa8;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

/* 自分の会話 */
.chat__container .chat__right {
    position: relative;
    display: block;
    margin: 20px 0 40px auto;
    float: right;
    margin-right: 15px;
    clear: both;
    width: 95%;
}

/* コメントエリア */
.chat__container .chat__right .text {
  padding: 20px 10px 15px 10px;
  border-radius: 20px;
  background-color: #b8dfe7;
  margin: 0;
  font-size: 1rem;
}


/* 吹き出し */
.chat__container .chat__right .text::after {
  content: '';
  position: absolute;
  display: block;
  width: 0;
  height: 0;
  right: -10px;
  top: 10px;
  border-left: 20px solid #b8dfe7;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.chat__container .chat__right .text .name {
  position: relative;
  line-height: 1rem;
}

.chat__container .chat__right .text .name:not(:first-child){
  margin-top: 3rem;
}

.chat__container .chat__right .text .name::after {
  background-color: #e4412e;
  border-radius: 2px;
  color: #fff;
  content: "必須";
  font-size: 0.8rem;
  font-weight: 300;
  margin-left: 0.5rem;
  position: absolute;
  padding-right: 0.3rem;
  padding-left: 0.3rem;
  white-space: nowrap;
  line-height: 1.2rem;
  top: -4px;
}

.chatError {
  color: #e4412e;
  position: absolute;
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
  padding-top: 4px;
  display: none;
}

/* 吹き出しセレクト */
.chat__container .chat__right .select-box {
  padding-bottom: 10px;
  padding-left: 5px;
  padding-top: 10px;
  width: 100%;
  border: 2px solid #8a8a8a;
  border-radius: 6px;
  background-color: #fff;
  cursor: pointer;
  box-sizing: border-box;
}

.select-box:hover {
  background-color: #e4412e;
}

/* 吹き出しチェックボックス */
.chat__container .chat__right .radio-box {
  padding: 20px 1rem 30px 1rem;
  display: grid;
  grid-row-gap: 20px;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  text-align: center;
}

/* 吹き出しセレクト */
.chat__container .chat__right .textArea {
  margin-top: 0.75rem;
}
.chat__container .chat__right .textArea .inputText{
  padding-left: 5px;
  padding-top: 10px;
  padding-bottom: 10px;
  border-radius: 6px;
  width: 100%;
  border: none;
}

.chat__container .chat__right .dateBirth .dateBirthSel {
  border: none;
  border-radius: 6px;
  margin-top: 10px;
  padding-bottom: 10px;
  padding-left: 5px;
  padding-top: 10px;
}

.chat__container .chat__right .dateBirth .dateBirthSel:nth-child(1) {
  margin-left: 1rem;
  width: 25%;
}

.chat__container .chat__right .dateBirth .dateBirthSel:nth-child(3),
.chat__container .chat__right .dateBirth .dateBirthSel:nth-child(5) {
  margin-left: 1rem;
  width: 17%;
}

.chat__container .chat__right .dateBirth span {
  padding-left: 2px;
  vertical-align: sub;
}

.chat__container .chat__right .radio-box input:nth-child(3) {
  margin-left: 4rem
}

/* 自分がスタンプを送る時 */
.chat__container .chat__right .stamp {
  position: relative;
  margin-left: 80px;
}

/* 既読エリア */
.chat__container .chat__right .date {
  content: '';
  position: absolute;
  display: block;
  width: 100px;
  text-align: right;
  left: -30px;
  bottom: 0px;
  font-size: 80%;
  color: #ffffff;
}
input[type="checkbox"],
input[type="radio"],
input[type="date"] {
  border-radius: 0;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}
input[type="checkbox"]{
  position: relative;
  width: 20px;
  height: 20px;
  border: 1px solid #ccc;
  border-radius: 25px;
  margin-right: 0.5rem;
  vertical-align: -5px;
  background-color: #fff;
}
input[type="radio"],
input[type="checkbox"] {
  display: none;
}
.radio-box label {
  padding-bottom: 10px;
  padding-left: 5px;
  padding-top: 10px;
  width: 100%;
  border: 2px solid #8a8a8a;
  border-radius: 6px;
  background-color: #fff;
  cursor: pointer;
  box-sizing: border-box;
}
.radio-box input[type="radio"]:checked + label, 
.radio-box input[type="checkbox"]:checked + label {
  border-color: #bd2c1c;
  background-color: #ff933c;
  color: #fff
}

.is-checked {
  border-color: #bd2c1c !important;
  background-color: #ff933c !important;
  color: #fff !important;
}

.isNot-checked {
  background-color: #fff !important;
  border-color: #8a8a8a !important;
  color: #333 !important;
}

.chat-button {
  margin: 20px auto 10px;
  display: block;
  width: 70%;
  max-width: 200px;
  text-align: center;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.1em;
  line-height: 10px;
  border-radius: 50px;
  background-color: #4DB6AC;
  color: #fff;
  position: relative;
  padding: 20px 0;
  cursor: pointer;
  transition: 0.5s ease-in-out;
  line-height: 20px;
}

.chat-button:hover {
  background-color: #00897B;
}

.loadingBtn {
  background-color: rgb(80, 80, 80);
  color: #e4e4e4;
  pointer-events: none; 
  cursor: not-allowed; /* 禁止カーソル */
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0.25rem solid rgba(255, 255, 255, 0.2);
  border-top-color: rgb(255, 255, 255);
  animation: spin 1s infinite linear;
  margin: 0 auto;
}

.chat__container .confirm_talk-width {
  width: 100%;
}

.chat__container .confirm_talk-chat-button {
  max-width: unset;
}

.confirm_scroll {
  max-height: 640px;
  overflow: scroll;
  padding: 20px 10px;
  background: #ffefddf0;
  border-radius: 12px;
}

.answer-buttons {
  padding: 20px 1rem 30px 1rem;
  display: grid;
  grid-row-gap: 20px;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  overflow-y: scroll;
  max-height: 650px;
}

.hideTag {
  display: none;
}

.chat__container .chat__right .active {
  border-color: #bd2c1c;
  background-color: #ff933c;
  color: #fff
}

/* HTML: <div class="loader"></div> */
.chat_loader {
  margin: 3px 0 3px 25px;
  width: 15px;
  aspect-ratio: 1;
  border-radius: 50%;
  animation: l5 1s infinite linear alternate;
}
@keyframes l5 {
    0%  {box-shadow: 20px 0 #333, -20px 0 #0002;background: #000 }
    33% {box-shadow: 20px 0 #333, -20px 0 #0002;background: #0002}
    66% {box-shadow: 20px 0 #3332,-20px 0 #000; background: #0002}
    100%{box-shadow: 20px 0 #3332,-20px 0 #000; background: #000 }
}

@media screen and (max-width: 767px) {
  #chat-content {
    right: 0;
    height: 100vh;   /* フォールバック用*/
    height: 100svh;
  }
  .chat__container {
    max-width: unset;
    margin: unset;
  }
  .chat__container .scroll {
    /* max-height: calc(100vh - 325px); フォールバック用 */
    /* max-height: calc(100svh - 325px); */
  }
  .chat__container .chat__right .text {
    padding-top: 40px;
  }
  .chat__container .chat__left,
  .chat__container .chat__right {
    width: 90%;
  }
  .chat__container .confirm_talk-width {
    width: 100%;
  }
  .chat__container .chat__right .text .name::after {
    top: -22px;
    left: 0;
    margin-left: unset;
  }
  .answer-buttons,
  .chat__container .chat__right .radio-box {
    max-height: 170px;
    overflow-y: scroll;
    margin-top: 10px;
    border: 1px solid #a3a3a3;
    border-radius: 10px;
    grid-template-columns: 1fr;
  }
}
/** スクロール矯正終了**/
html.disable-scroll {
  pointer-events: none;
}

/* プログレスバー */
.chat-progress {
  -webkit-appearance: none; /* プログレスバーのスタイルをリセット */
  -moz-appearance: none; /* プログレスバーのスタイルをリセット */
  background-color: #eeeeee; /* プログレスバーの背景色/-moz- 用 */

  display: none;
  margin: 0 auto;
  width: 80%; 
  height: 20px; 
  border: 1px solid #333; 
  border-radius: 20px;
}
::-webkit-progress-bar {
  background-color: #eeeeee; /* プログレスバーの背景色/-webkit- 用 */
  border-radius: 20px;
}
::-webkit-progress-value {
  background-image: linear-gradient(90deg, rgba(255, 225, 82, 1), rgba(248, 221, 92, 1) 25%, rgba(255, 221, 147, 1) 54%, rgba(253, 117, 82, 1)); /* プログレスバーの進捗部分色/-webkit- 用 */
  border-radius: 20px;
}
::-moz-progress-bar {
  background-image: linear-gradient(90deg, rgba(255, 225, 82, 1), rgba(248, 221, 92, 1) 25%, rgba(255, 221, 147, 1) 54%, rgba(253, 117, 82, 1)); /* プログレスバーの進捗部分色/-moz- 用 */
  border-radius: 20px;
}

.cp_arrows {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  height: 100vh; /* フォールバック用*/
  height: 100svh;
  justify-content: center;
  align-items: center;
}
.cp_arrows .cp_arrow {/*矢印を配置するベースの設定*/
  position: absolute;
  top: 50%;/*着地点(cp_arrowsの高さの50%)*/
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  opacity: 0;
}
.cp_arrows .cp_arrow:first-child {
  animation: arrow-move08 2s ease-in-out infinite;
}
.cp_arrows .cp_arrow:nth-child(2)  {
  animation: arrow-move08 2s 1s ease-in-out infinite;
}
.cp_arrows .cp_arrow:before,
.cp_arrows .cp_arrow:after {/*矢印全体の設定*/
  position: absolute;
  content: '';
  top: 0;
  width: 50px;
  height: 5px;
  background: #f38900;
}
.cp_arrows .cp_arrow:before {/*矢印左の線の位置と傾斜*/
  left: 3px;
  transform: rotate(25deg);
}
.cp_arrows .cp_arrow:after {/*矢印左の線の位置と傾斜*/
  right: 3px;
  transform: rotate(-25deg);
}
@keyframes arrow-move08 {
    0% { opacity: 0; top: 35%;/*スタート地点(cp_arrowsの高さの40%)*/}
   70% { opacity: 1;}
  100% { opacity: 0;}
}
