body{
  /*font-family: Arial, sans-serif;*/
  height: 100%;
  margin: 0;
}

.modal_ai {
  display: none;
  position: fixed;
  z-index: 100000001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.4);
  box-sizing: border-box;
}

.modal-content {
  background-color: #fefefe;
  margin: 10px auto;
  padding: 50px 20px 35px;
  border: 3px solid #bbb;
  width: 430px;
  border-radius: 30px;
  height: 92%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-height: 700px;
    box-sizing: border-box;
}


@media (max-width: 767px) {
  .modal-content{
    width: 90%;
    height: 96%;
    max-height: 730px;
    margin: auto;
    padding: 40px 20px 25px;
        max-width: 430px;

  }
}


.head_contents{
  margin-bottom:10px;
}

/*
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}


.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
*/

.close:hover, 
.close:focus {
  cursor: pointer;
}

.round-image {
  width: 110px; /* 画像の幅を設定 */
  height: 110px; /* 画像の高さを設定 */
  border-radius: 50%; /* 丸抜きにする */
  object-fit: cover; /* 画像の比率を保持しつつ、要素のサイズに合わせて調整 */
  display: block;
  margin: auto;
  padding: 2px;
  background: #fff;
  opacity: 0.9;
}

.microphone_status {
  width: 65px; /* 画像の幅を設定 */
  height: 65px; /* 画像の高さを設定 */
  border-radius: 50%; /* 丸抜きにする */
  object-fit: cover; /* 画像の比率を保持しつつ、要素のサイズに合わせて調整 */
  display: block;
  margin: auto auto 0 auto;
  padding: 15px;
  background-color: white;
      cursor: pointer;
    box-sizing: border-box;
}


.tel_name {
  text-align: center;
  font-weight: bold;
  font-size:18px;
  line-height: 1.5em;
  margin: 1em 0 5px;
  color: #fff;
}
.tel_name span {
    font-size: 13px;
    color: #ddd;
    display: inline-block;
    margin-top: 5px;
}

#timer {
  text-align: center;
  margin-bottom: 0px;
  color: #eee;
  font-weight: bold;
  font-size: 13px;
}



#MessageHistory {
    height: 100%;
    margin: 0 0px;
    overflow: scroll;
    /* IE, Edge 対応 */
    -ms-overflow-style: none;
    /* Firefox 対応 */
    scrollbar-width: none;
}

/* Chrome, Safari 対応 */
.box::-webkit-scrollbar {
 display:none;
}
/* 新Edge対応 */
.box::-webkit-scrollbar {
 display:none;
}

.power_off{
  text-align: center;
  margin: 25px auto 0 auto;
  width: 100px;
}


.chat-container {
    max-width: 600px;
    margin: auto;
}

.message {
    padding: 8px 16px;
    border-radius: 10px;
    margin-bottom: 10px;
    max-width: 85%;
    font-size: 13px;
    line-height: 1.6em;
    letter-spacing: 0.05em;
    word-break: break-all;
}

.outgoing {
    background-color:#07367b;
    color: white;
    align-self: flex-end;
    margin-left: 20%;
}

.incoming {
    background-color: white; /* LINEの受信メッセージの色 */
    color: #3b0805;
    border: 1px solid #ddd;
}
.incoming a{
   color: #ff9c00;
   text-decoration: underline;
  
}
.message:last-child {
    margin-bottom: 0;
}
.incoming+.incoming {
display:none;
}



.loading-animation {
  display: flex;
  justify-content: center;
  align-items: center;
}

.loading-animation > div {
  width: 8px;
  height: 8px;
  margin: 5px;
  background-color: #999;
  border-radius: 50%;
  animation: loading 1s ease-in-out infinite;
}

.loading-animation > div:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-animation > div:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes loading {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(2);
  }
  100% {
    transform: scale(1);
  }
}



.pulse-btn {
  position: relative;
  border-radius: 50%;
  background-color: #1da1f2;
  box-shadow: 0 0 20px #1da1f2;
  cursor: pointer;
  display: block;
}

.pulse-btn::before, .pulse-btn::after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: 65px;/*100%;*/
  height: 65px;/*100%;*/
  border: 1px solid #1da1f2;
  border-radius: 50%;
  box-sizing: border-box;
  pointer-events: none;
  animation: pulsate 2s linear infinite;
}

.pulse-btn::after {
  animation-delay: 1s;
}

@keyframes pulsate {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(2);
    opacity: 0;
  }
}


.control-buttons > div>span {
    transition: all 1.5s;
}

#MicrophoneStatus_OK:hover, 
#MicrophoneStatus_OK:focus {
  cursor: pointer;
}


#MicrophoneStatus_NO.opacity50{
  opacity:0.5;
  pointer-events:none;
  
 }
#MicrophoneStatus_NO > div.opacity50 {
  opacity:1 !important;
  
 }

.microphone_message{
  text-align: center;
  font-size: 14px;
}

.hidden {
  display: none;
}

.opacity0 {
  opacity: 0;
}


/*音声認識表示*/
#audio_wave{
    text-align: center;
    margin: 0 auto 15px;
}

#audio_wave img{
   width: 50px;
}

#audio_wave_message{
  color:#c1c1c1;
  text-align: center;
  font-size: 12px;
}


/*ボタン調整*/
.control-buttons {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 72%;
    margin: 20px auto 0;
    gap: 0 50px;
}
.control-buttons > div{
   margin: 0 auto !important;
   width: 75px;
   
}
.control-buttons > div>span:hover{
   opacity: 0.7;

}
.power_off:hover{
   opacity: 0.7;
}
.control-buttons > div > img{
   width: 65px !important;
   height: 65px !important;
   margin: auto;
   display:block;
}
.control-buttons_message {
    text-align: center;
    margin: 7px auto 0;
    font-size: 12px;
    letter-spacing: 0.03em;
}



/*選択モーダル*/
.modal_ai_select .modal-content{
  height:74%;
  max-height: 500px;
  padding: 50px 20px;
  display: block;
  box-sizing: border-box;
}


.select_method {
    display: flex;
    /*justify-content: space-evenly;*/
    justify-content: center;
    margin: 0;
    gap: 0 30px;
    opacity: 0.9;
}
.select_method>div {
    padding: 50px 0px;
    cursor: pointer;
    transition: all 0.3s;
    width: 110px;
}
.select_method>div:hover {
    opacity: 0.6;
}
.select_method>div>div {
    display: flex;
    justify-content: center;
    text-align: center;
    font-size: 12px;
    line-height: 1.4em;
}
.select_method .select_method_icon {
    height: 45px;
    width:  45px;
    margin: 0 auto 10px;
}
.select_method .select_method_icon img {
    max-height: 45px;
    max-width: 45px;
    margin:  auto;

}
.select_method .select_method_voice .select_method_icon img {
    max-height: 40px;
    max-width: 40px;

}


/*背景オーバーレイ*/

#modal_ai_select_bg, #myModal_bg{
  position: absolute;
  width: 100%;
  height: 100vh;

}

/*空欄コメント非表示*/
.message.outgoing:empty{
  display: none;
}


.modal_ai .modal_close{
    right: 5px;
    top: 5px;
    background: none;
    transition: all 0.3s;
}
.modal_ai .modal_close:hover{
    opacity:0.6;
}
.modal_ai .modal_close span::before,.modal_ai  .modal_close span::after {
    background: #fff;
}


/*ダイアログモーダル*/

    /* モーダルの背景 */
    #confirm_modal {
      display: none;
      position: fixed;
      z-index: 1000000000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
    }
    #confirm_modal > div {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
      
    }
    /* モーダルのコンテンツ */
    #modal-content {
      background-color: white;
      margin: 15% auto;
      padding: 20px;
      border: 1px solid #888;
      width: 260px;
      text-align: center;
      border-radius: 5px;
      border-top: solid 6px #07367b;
    }

    /* 閉じるボタン */
    .confirm_modal_buttons{
      display: flex;
    align-items: center;
    justify-content: space-evenly;
	}
    #close-btn {
      background-color: #07367b;
      color: white;
      padding: 10px 20px;
      border: none;
      cursor: pointer;
      border-radius: 5px;
      transition: all 0.3s;
    height: 48px;
    min-width: 100px;
    display: block;
    }

    #close-btn:hover {
      opacity: 0.6;
    }
    #cancel-btn {
      background-color: #ccc;
      color: white;
      padding: 10px 20px;
      border: none;
      cursor: pointer;
      border-radius: 5px;
      transition: all 0.3s;
      height: 48px;
      min-width: 100px;
    display: block;
    }

    #cancel-btn:hover {
      opacity: 0.6;
    }
.confirm_modal_image{
   width: 150px;
   max-widh:90%;

}
#confirm_modal p{
    font-size: 13px;
    line-height: 1.5em;
    font-weight: 600;
    color: #555;
    margin-bottom: 20px;

}

div#search_val_text:empty {
    display:none;
}
div#search_val_text {
    text-align: center;
    background: #515151;
    padding: 10px;
    border-radius: 5px;
    font-size: 15px;
    width: 94%;
    margin: 0 auto;
}


/* モーダルコンテンツの初期状態 */
.modal_ai_select .modal-content {
  /* 最初はブラーをかけない */
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  
  /* backdrop-filterの変化を0.3秒かけて滑らかにする */
  transition: backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease;

  will-change: backdrop-filter;

}

/* .is-visibleクラスが親要素に付いた時のモーダルコンテンツのスタイル */
.modal_ai_select.is-blur .modal-content {
  /* ブラーを適用 */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#ModalContent{background: rgba(7, 54, 123,0.55) !important;}