@charset "UTF-8";
/*/////////////////////////////////////////////////
//LINE風チャット画面(会話方式)を記事に表示する方法
/////////////////////////////////////////////////*/
body.dm_front {

  background: #7494c0;

}
#msg_more {
  text-align: center;
  margin: 7px 0;
}

#msg_more a {
  display: inline-block;
  background: #FFF;
  padding: 5px 15px;
  font-size: 90%;
  border-radius: 15px;
  color: #666;
}

.content-area.mp-message, .content-area.mp-message .site-main {
  margin-bottom: 0;
}

#body_message {
  margin: -30px -30px -22px;
  background: #7494c0;
  position: relative;
}

/*
#body_message::after {
  content: "";
  background: #7494c0;
  height: calc(100vh - 172px);
  width: 100%;
  position: absolute;
  top: 0;
  z-index: -1;
}
*/

#body_message .site-content {
  padding: 0 !important;
}

#body_message .msg_container {
  padding: 0;
  background: #7494c0;
  overflow: hidden;
  max-width: 100%;
  margin: 0 auto;
  font-size: 80%;
}

#body_message .msg_container .inner {
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px;
}

/* タイトル部分 */

#body_message .msg_container .msg_title {
  background: #273246;
  padding: 10px;
  text-align: center;
  font-size: 150%;
  color: #ffffff;
}

/* 会話部分 */

#body_message .msg_container .msg_contents {
  overflow: hidden;
  line-height: 135%;
}

#body_message .msg_container .msg_contents #main {
  display: flex;
  flex-direction: column-reverse;
}

#body_message .msg_container .scroll {
  overflow-y: scroll;
}

#body_message .msg_container .scroll::-webkit-scrollbar {
  display: none;
}

/* スタンプ画像最大幅 */

#body_message .msg_container .stamp img {
  max-width: 150px;
}

/* 相手の会話 */

#body_message .msg_container .msg_left {
  width: 100%;
  position: relative;
  display: block;
  margin-bottom: 5px;
  max-width: 80%;
  clear: both;
}

/* アイコン画像 */

#body_message .msg_container .msg_left figure {
  width: 50px;
  position: absolute;
  top: 15px;
  left: 0;
  padding: 0;
  margin: 0;
}

/* 正方形を用意 */

#body_message .msg_container .msg_left figure img {
  border-radius: 50%;
  width: 50px;
  height: 50px;
}

#body_message .msg_container .msg_left .msg_left-text {
  margin-left: 70px;
}

#body_message .msg_container .msg_left .msg_left-text .name {
  font-size: 80%;
  color: #ffffff;
}

/* コメントエリア */

#body_message .msg_container .msg_left .text {
  margin: 0;
  position: relative;
  padding: 10px;
  border-radius: 20px;
  background-color: #ffffff;
  color: #222;
}

/* 吹き出し */

#body_message .msg_container .msg_left .text::after {
  content: '';
  position: absolute;
  display: block;
  width: 0;
  height: 0;
  left: -10px;
  top: 5px;
  border-right: 20px solid #ffffff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

/* 自分の会話 */

#body_message .msg_container .msg_right {
  position: relative;
  display: block;
  margin: 5px 0 5px 7%;
  ;
  max-width: 90%;
  float: right;
  margin-right: 15px;
  clear: both;
}

.msg_container .day {
  position: relative;
  display: block;
  margin: 15px 0;
  max-width: 98%;
  text-align: center;
  margin-right: 15px;
  clear: both;
}

.msg_container .day span {
  background-color: #666;
  color: #FFF;
  display: inline-block;
  padding: 3px 10px;
  border-radius: 10px;
}

/* コメントエリア */

#body_message .msg_container .msg_right .text {
  padding: 10px;
  border-radius: 20px;
  background-color: #8de055;
  margin: 0;
  margin-left: 80px;
  color: #222;
}

/* 吹き出し */

#body_message .msg_container .msg_right .text::after {
  content: '';
  position: absolute;
  display: block;
  width: 0;
  height: 0;
  right: -10px;
  top: 5px;
  border-left: 20px solid #8de055;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

/* 自分がスタンプを送る時 */

#body_message .msg_container .msg_right .stamp {
  position: relative;
  margin-left: 80px;
}

/* 既読エリア */

#body_message .msg_container .msg_right .date {
  content: '';
  position: absolute;
  display: block;
  width: 100px;
  text-align: right;
  left: -30px;
  bottom: 0px;
  font-size: 80%;
  color: #ffffff;
}

/* フォームエリア */

#body_message span.wpcf7-not-valid-tip {
  color: #fff;
  position: fixed;
  bottom: 100px;
  background: #f00;
  border: 1px solid #f00;
  padding: 5px;
}

div.wpcf7 .ajax-loader {
  position: fixed;
  left: 250px;
  bottom: 105px;
  background-color: #fff;
  border-radius: 10px;
}

#body_message div.wpcf7-response-output {
  display: none !important;
}

#body_message .site-content {
  padding: 20px 0 0;
}

#body_message.right-sidebar .content-area {
  padding: 0 0 0 230px !important;
}

#body_message .msg_container .scroll {
  /* height: calc(100vh - 188px); */
  height: calc(100% - 188px);
  padding-bottom: 90px;
}

#body_message .msg_contents #main article.post.page-message.hentry {
  display: none;
}

#body_message .msg_contents #main article.post.page-message.hentry .msg_container .scroll {
  overflow-y: no;
}

#body_message .msg_container {
  top: 60px;
  height: 100%;
}

#body_message .msg_container .scroll {
  -webkit-overflow-scrolling: touch;
}

#body_message .msg_dit .form_submit .your-message {
  max-width: 100%;
  margin: 0;
  position: fixed;
  height: 75px;
  bottom: 0px;
  width: 100%;
  left: 260px;
}

#body_message .msg_dit .form_submit textarea {
  height: 75px;
  max-width: calc(100vw - 345px);
  border: 1px solid #ccc;
  border-radius: 5px;
}

#body_message .msg_dit .form_submit input {
  border-radius: 5px;
  position: fixed;
  bottom: 0px;
  right: 10px;
  height: 75px;
  max-width: 24%;
}

#body_message div.wpcf7 {
  position: fixed;
  left: 0;
  bottom: 0;
  padding: 10px;
  width: 100%;
  background-color: #fff3e2;
  height: 96px;
}

@media (max-width: 1024px) {
  #body_message {
    padding: 10px 0 0;
    margin-right: -2.5%;
    margin-left: -2.5%;
  }
  #body_message.right-sidebar .content-area {
    padding: 0 !important;
  }
  #body_message .msg_container .scroll {
    /* height: calc(100vh - 156px); */
    height: calc(100% - 156px);
  }
  #body_message .msg_dit .form_submit .your-message {
    left: 10px;
  }
  #body_message .msg_dit .form_submit textarea {
    max-width: calc(100vw - 98px);
    font-size: 16px;
  }
  div.wpcf7 .ajax-loader {
    left: 20px;
  }
  #body_message::after {

  height: calc(100vh - 130px);

}
}
