@charset "utf-8";
/* CSS Document */

* {
  box-sizing: border-box;
}

#page article .wrapper .btn_wrapper {
box-sizing: border-box;
}

body {
  background-color: #edeff2;
  /*font-family: "Calibri", "Roboto", sans-serif;*/}
  
.chat_window {
 position: fixed;
  width: 400px;
  height: 580px;
  max-height: 100%;
  background-color: #fff;
  left: 10px;
  bottom: 20px;
  /*transform: translateX(-50%) translateY(-50%);*/
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  background-color: #f8f8f8;
  overflow: hidden;
  z-index: 10001;
  box-sizing: border-box;/*20230915*/
}
.chat_window_right {
  position: fixed;
   width: 400px;
   height: 580px;
   max-height: 100%;
   background-color: #fff;
   right: 10px;/*右寄せ*/
   bottom: 20px;
   /*transform: translateX(-50%) translateY(-50%);*/
   box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
   background-color: #f8f8f8;
   overflow: hidden;
   z-index: 10001;
   box-sizing: border-box;/*20230915*/
 }
 
@media screen and (max-width: 767px){
.chat_window {
    width: 100% !important;
    height: 100% !important;
    left: 0 !important;
    right: 0 !important;
    margin:auto;
}
.chat_window_right {
  width: 100% !important;
  height: 100% !important;
  left: 0 !important;
  right: 0 !important;
  margin:auto;
}

	.messages {
  height: 80Vh !important;
}
}
.top_menu {
  background-color: #303163;
  width: 100%;
  padding: 1px 18px 1px;
  box-shadow: 0 1px 30px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;/*20230915*/
}
.top_menu .buttons {
  margin: 3px 0 0 20px;
  position: relative;
}
.top_menu .buttons .button {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 10px;
  position: relative;
}
.top_menu .buttons .button.close {
  background-color: #f5886e;
}
.top_menu .buttons .button.minimize {
  background-color: #fdbf68;
}
.top_menu .buttons .button.maximize {
  background-color: #a3d063;
}
.top_menu .chattitle {
  text-align: left;
  font-size: 20px;
  margin: 0 -10px 0px;
  background: #303163;
  padding: 15px 10px;
}

.messages {
  position: relative;
  list-style: none;
  padding: 20px 10px 0 10px;
  margin: 0;
  height: 347px;
  overflow: scroll;
	word-wrap: break-word;
}
.messages .message {
  clear: both;
  overflow: hidden;
  margin-bottom: 10px;
  transition: all 0.5s linear;
  opacity: 0;
}
.messages .message.left .avatar {
  background-color: #f5886e;
  float: left;
}
.messages .message.left .text_wrapper {
  background-color: #F7E0E6;
  margin-left: 20px;
}
.messages .message.left .text_wrapper::after, .messages .message.left .text_wrapper::before {
  right: 100%;
  border-right-color: #F7E0E6;
}
.messages .message.left .text {
  color: #303163;
}
.messages .message.right .avatar {
  background-color: #fdbf68;
  float: right;
	 display: none;
}
.messages .message.right .text_wrapper {
  background-color: #c7eafc;
  margin-right: 20px;
  float: right;
}
.messages .message.right .text_wrapper::after, .messages .message.right .text_wrapper::before {
  left: 100%;
  border-left-color: #c7eafc;
}
.messages .message.right .text {
  color: #303163;
}
.messages .message.appeared {
  opacity: 1;
}
.messages .message .avatar {
  width: 30px;
  height: 30px;
  /*border-radius: 50%;*/
  display: inline-block;

}
.messages .message .text_wrapper {
  display: inline-block;
  padding: 15px;
  border-radius: 6px;
  width: calc(100% - 85px);
  min-width: 100px;
  position: relative;
}
.messages .message .text_wrapper::after, .messages .message .text_wrapper:before {
  top: 18px;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
}
.messages .message .text_wrapper::after {
  border-width: 13px;
  margin-top: 0px;
}
.messages .message .text_wrapper::before {
  border-width: 15px;
  margin-top: -2px;
}
.messages .message .text_wrapper .text {
  font-size: 1.1em;
  font-weight: 300;
}

.bottom_wrapper {
  position: relative;
  width: 100%;
  background-color: #fff;
  padding: 20px 20px;
  position: absolute;
  bottom: 0;
}
.bottom_wrapper .message_input_wrapper {
  display: inline-block;
  height: 50px;
  border-radius: 0px;
  border: 1px solid #bcbdc0;
  width: calc(100% - 105px);
  position: relative;
  padding: 0 20px;
}
.bottom_wrapper .message_input_wrapper .message_input {
  border: none;
  height: 100%;
  box-sizing: border-box;
  width: calc(100% - 40px);
  position: absolute;
  outline-width: 0;
  color: gray;
}
.bottom_wrapper .send_message {
  width: 70px;
  height: 50px;
  display: inline-block;
  border-radius: 0px;
  background-color: #6F78A3;
  border: 2px solid #6F78A3;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s linear;
  text-align: center;
  float: right;
}
.bottom_wrapper .send_message:hover {
  color: #a3d063;
  background-color: #fff;
}
.bottom_wrapper .send_message .text {
  font-size: 1.1em;
  font-weight: 300;
  display: inline-block;
  line-height: 48px;
}

.message_template {
  display: none;
}
.logo {
  width: 80px;
  height: 23px;
  display: inline-block;
background: url("../img/img-logo.png") no-repeat left top;
display: none;
}

.iframe_message{
	width: 100%;
	height: 93%;
}

/* 20231012 印刷時にチャットボタン、チャット画面が非表示 */
@media print {
	#chat_open_btn { display:none !important; }
	#qnimate { display:none !important; }
}

/* 角丸 */
.ka-ru {
  border-radius: 10px;
}
