@charset "utf-8";
/*
* css for usChat Form (UCH27) 
*
* @version			0.2.7
* @lastmodified 2023-07-31
* @link					https://www.landcomp.co.jp/
* @copyright		Copyright 2005, LAND COMPUTER Co.,Ltd.All rights reserved.
*------------------------------------------------------------------------- */

/* structure -------------------------------- */
* {
  box-sizing: border-box;
}
#usChatBox {
	min-height: 2rem;
	margin: 1rem 0;
	position: relative;
}
#ucWrapper {
	padding: 1px;
	margin: 0 auto;
	min-width: auto;
	max-width: 100%;
	width: 100%;
	max-height: 326px;
	height: auto;
	overflow: hidden;
  /*z-index: 1000;*/
  border: 2px solid #adbac6;
  background-color: #fff;
}
#ucOuter {
	overflow: hidden;
  padding: 1px;
	width: 100%;
	height: calc(100% - 2px);
	position: relative;
  top: auto;
  left: auto;
  border: 1px solid #A0D08D;
  background-color: #fff;
}
#ucHeader {
  font-size: 12px;
  padding: 0 0 0;
  min-height: 24px;
	overflow: hidden;
  border-bottom: 1px solid #ccc;
	background-color: #E2EFD9;
	background-color: #F5FFFA;
}
#ucHeader #uBttn {
	display: inline-block;
	float: right;
}
#uLead {
	position: absolute;
	top: 6px;
	left: 5px;
}
#uLead #uLogo ,
#ucHeader #logo {
  display: inline-block;
	float: left;
  width: 24px;
  height: 24px;
	margin: 1px 0 0 1px;
	background-position: 0 0;
	background-repeat: no-repeat;
}
#uTitle {
	color: #777;
	display: block;
	font-size: 0.8125rem;
	margin-top: 5px;
	margin-left: 29px;
}
#ucHeader #title {
	color: #999;
	display: inline-block;
	font-size: 0.8125rem;
	width: calc(100% - 9rem - 32px);
	min-width: 11rem;
	margin-top: 6px;
	margin-left: 4px;
}
#uTitle.on ,
#ucHeader #title.on {
	color: #333;
}
#ucHeader #bEnd {
	margin-right: 0.5rem;
}
#ucHeader #uBttn button {
	float: none;
}
#ucHeader #bMin ,
#ucHeader #bClose {
	display: inline-block;
  height: 20px;
  width: 20px;
	padding: 0;
  margin: 1px 4px 0 0;
  border-style: none;
  background-color: transparent;
	background-repeat: no-repeat;
	background-position: 0 0;
  background-size: cover;
	vertical-align: middle;
}
#ucHeader #bMin {
  background-image: url("../../../uch26/images/min.png");
}
#ucHeader #bMin:hover {
  background-image: url("../../../uch26/images/min_ov.png");
}
#ucHeader #bMin:disabled:hover {
  background-image: url("../../../uch26/images/min_disable.png");
}
#ucHeader #bClose {
  margin-left: 0.5rem;
	color: steelblue;
  width: auto;
	padding: 1px 6px;
	border: 1px solid #2F5496;
	border-radius: 10px 10px;
	background-color: #fff;
}
#ucHeader #bClose:hover {
	background-color: #F2DBF2;
}
#ucHeader #bClose .mark::after {
	content: 'チャット終了';
	font-size: 11px;
}
#ucInnerBox {
	height: auto;
}
#ucInfoBox {
  color: #333;
  font-size: 0.8125rem;
	line-height: 1.25;
	height: 100%;
  padding: 0.25rem 0.25rem;
}
#ucMsgBox ,
#ucRequestBox ,
#ucTextBox {
	background-color: #fff;
}
#ucMsgBox {
	min-height: 6.00rem;
	max-height: 15rem;
	height: 100%;
	height: auto;
	overflow-y: auto;
  border-bottom: 1px solid #ccc;
}
#ucMsgBox div {
  font-size: 0.9rem;
  padding: 0.25rem 0.25rem;
  min-height: 2rem;
  border-bottom: 1px solid #ccc;
  background: url("../../../uch26/images/chat-LAND.png") no-repeat 0.25rem 0.25rem;
  background-size: 16px;
}
#ucMsgBox div.LAND {
  background-image: url("../../../uch26/images/chat-LAND.png");
  background-size: 16px;
}
#ucMsgBox div.USER {
  background-image: url("../../../uch26/images/chat-User.png");
  background-size: 16px;
}
#ucMsgBox div p {
  line-height: 1.5;
  text-indent: 1.5rem;
  padding-bottom: 0.5rem;
  margin: 0 3rem 0 0;
  position: relative;
}
#ucMsgBox span.time {
  float: right;
  font-size: 80%;
}
#ucRequestBox ,
#ucTextBox {
	display: none;
  padding: 0.25rem;
  overflow: hidden;
}
#ucRequestBox #bRequest {
  color: #fff;
  font-weight: bold;
  width: 100%;
  border: none;
  border: 1px solid #333;
  background-color: #70AD47;
}
#ucRequestBox #bRequest.inRequest {
  color: #333;
  border: 1px solid #333;
  background-color: #ddd;
}
#ucRequestBox #bRequest.isPost {
  cursor: wait;
  pointer-events: none;
  background-color: #EDEDED;
}
#ucTextBox #aMessage {
  float: left;
	display: inline-block;
  font-size: 0.875rem;
  font-size: 16px;
  line-height: 1.00;
  width: calc(100% - 3.5rem);
  resize: none;
	-webkit-text-size-adjust: 100%;
}
#ucTextBox #aMessage {
  line-height: 1.00;
  width: calc(100% - 4.5rem);
}
#ucTextBox #bSend {
  color: #fff;
  float: right;
	display: inline-block;
  width: 3rem;
  background-color: #70AD47;
}
#ucTextBox #bSend {
  width: 4rem;
}
#ucRequestBox #bRequest ,
#ucTextBox #aMessage ,
#ucTextBox #bSend {
  height: 2.5rem;
	border-radius: 4px;
	-webkit-appearance: none;
}

/* mode ------------------------------------- */
#ucWrapper.on {
  border: 2px solid #A0D08D;
}
#uLogo ,
#logo {
  background-image: url("../../../uch26/images/message_disable.png");
}
#uLogo.on ,
#logo.on {
  background-image: url("../../../uch26/images/message.png");
}
#ucHeader #bClose {
	display: none;
}
#ucHeader #bClose.inchat {
	display: inline-block;
}
#ucInnerBox #_ucMsgBox ,
#ucInnerBox #ucRequestBox ,
#ucInnerBox #ucTextBox ,
#ucInnerBox.overtime #_ucMsgBox ,
#ucInnerBox.overtime #ucRequestBox ,
#ucInnerBox.overtime #ucTextBox ,
#ucInnerBox.afterchat #ucTextBox {
	display: none;
}
#ucInnerBox.available #ucMsgBox ,
#ucInnerBox.available #ucRequestBox ,
#ucInnerBox.waiting #ucMsgBox ,
#ucInnerBox.waiting #ucRequestBox ,
#ucInnerBox.inchat #ucMsgBox ,
#ucInnerBox.inchat #ucTextBox ,
#ucInnerBox.afterchat #ucMsgBox ,
#ucInnerBox.afterchat #ucRequestBox {
	display: block;
}
#ucInnerBox.afterchat #ucRequestBox #bRequest::before {
	content: '再び、';
}
#ucInnerBox:not([class]) + #ucInfoBox {
  color: #999;
}
#ucInnerBox.overtime + #ucInfoBox {
  color: #B22222;
}
#ucInnerBox.available + #ucInfoBox {
	color: #333;
}
#ucInnerBox.waiting + #ucInfoBox {
  color: #0075c2;
}
#ucInnerBox.inchat + #ucInfoBox {
	color: teal;
}
#ucInnerBox + #ucInfoBox.caution {
	color: crimson;
}
#ucHeader:not(.inchat) #bEnd  {
	display: none;
}
#ucHeader.inchat #bEnd {
	display: inline;
}
#ucInnerBox.inchat #ucMsgBox {
  background-image: none;
}
#ucInnerBox #ucMsgBox {
	height: 9rem;	
}
#ucInnerBox.overtime #ucTextBox {
}
#ucInnerBox.overtime #ucMsgBox {
	height: 12rem;
	background-color: #f0f0f0;
}
#ucInnerBox:not(.overtime) #ucMsgBox {
	background-color: transparent;
}

/* open close icon -------------------------- */
#ucIcon {
	color: #fff;
	display: inline-block;
	font-size: 0.825rem;
	padding: 0.5rem 0.75rem;
  position: fixed;
  bottom: 0.75rem;
	right: 0.5rem;
  z-index: 1010;
	border-radius: 0.9375rem;
	border: 1px solid #fff;
	background-color: #f4b3c2;
}
#ucIcon::before {
	content: 'チャットで質問';
}
#ucIcon:hover {
	opacity: 0.75;
}
#ucIcon.on {
	background-color: #e95295;
}
@media all and (min-width :480px) {
	#ucIcon {
		bottom: 1rem;
		right: 1rem;
	}
}
