/*****************************
* メイン画面
*****************************/

#talk_contents{
	width: 100%;
	height: 70vh;
	background: #FFF;
	border: 1px solid #C7C7C7;
	position: relative;
	margin-top: 10px;
}

/**ヘッダーメニュー**/

#talk_contents #close_button{
	width: 34px;
	height: 34px;
	position: absolute;
	top: 5px;
	right: 5px;
	color: #666;
}

#talk_contents #close_button i{
	font-size: 34px;
}

#talk_contents #contents{
	width: 100%;
	height: 100%;
	overflow: auto;
}

#talk_contents #contents .load_talk{
	width: 100%;
	height: auto;
	border: none;
	border-bottom: 1px solid #C7C7C7;
	margin: 0;
	padding: 4px 1px;
	cursor: pointer;
}

/**フッターメニュー**/

#stamp{
	background-color:#FFF;
	border:1px solid #FB7F7B;
	width:100%;
	visibility:hidden;
	position:fixed;
	z-index:9999;
	margin-top:0;
}

#formarea{
	width: 100%;
	height: auto;
	display: flex;
	margin-top: 10px;
}

#formarea #add_photo,
#formarea #add_stamp,
#formarea #add_attach {
	width: 40px;
	height: 40px;
	margin: 10px;
	position: relative;
}

#formarea #add_photo img,
#formarea #add_stamp img,
#formarea #add_attach img {
	width: 100%;
	height: auto;
}

.checkmark:after{
	content: "";
	position: absolute;
	top: -5px;
	right: 0;
	-webkit-transform: rotate(50deg);
	-ms-transform: rotate(50deg);
	transform: rotate(50deg);
	width: 8px;
	height: 15px;
	border-right: 4px solid #FF0000;
	border-bottom: 4px solid #FF0000;
}

#formarea form{
	width: 100%;
	height: auto;
}

#formarea form textarea{
	width: 100%;
	height: 60px;
	resize: none;
}

/*****************************
* トーク画面
*****************************/

/**トークメイン設定**/

.talk{
	width: 100%;
	list-style: none;
}

.talk li{
	clear: both;
	max-width: 450px;
	margin: 15px 10px;
}

.talk p,
.talk span{
	font-size:0.8em;
	color:#666;
}

.talk .profImg{
	width:60px;
	height:60px;
	border-radius:50px;
	margin-top:-5px;
	overflow:hidden;
}

.talk .profImg img{
	width:100%;
	height:100%;
	object-fit: cover;
}

.talk .comment{
	min-height:35px;
	font-size:0.9em;
	padding:10px;
	border-radius:10px;
	-webkit-border-radius:10px;
	-moz-border-radius:10px;
	box-shadow:1px 1px 2px 0px #E8D1C5;
	word-wrap: break-word;
}

.talk .stamp{
	width:150px;
	height:150px;
	position:relative;
}

.talk .comment a{
	text-decoration:underline;
}

.talk .comment img,
.talk .comment video {
	max-width:100%;
}

.talk .title{
	font-weight: bold;
	padding-right: 60px;
}

/**トーク相手側**/

.talk .other{
	float:left;
	position:relative;
	margin-left:70px;
}

.talk .other .profImg{
	position:absolute;
	top:0;
	left:-60px;
}

.talk .other p{
	margin:-25px 0px 5px 18px;
}

.talk .other .comment{
	background:#FAD3D2;
	margin-left:17px;
	position: relative;
}

.talk .other .comment:after {
	content: '';
	position:absolute;
	border-right:14px solid #FAD3D2;
	border-top:7px solid transparent;
	border-bottom:7px solid transparent;
	left:-12px;
	top:10px;
}

.talk .other .stamp img{
	width:130px;
	height:130px;
	position:absolute;
	top:10px;
	left:0;
}

.talk .other span{
	float:left;
	margin-top:5px;
	margin-left:20px;
}


/**トーク自分側**/

.talk .self{
	float:right;
	position:relative;
	margin-right:70px;
}

.talk .self .profImg{
	position:absolute;
	top:0;
	right:-60px;
}

.talk .self p{
	float:right;
	margin:-25px 20px 5px 0px;
}

.talk .self .comment{
	background:#E0BB98;
	margin-right:17px;
	position: relative;
}

.talk .self .comment:after {
	content: '';
	position:absolute;
	border-left:14px solid #E0BB98;
	border-top:8px solid transparent;
	border-bottom:8px solid transparent;
	right:-12px;
	top:10px;
}

.talk .self .stamp img{
	width:130px;
	height:130px;
	position:absolute;
	top:10px;
	right:0;
}

.talk .self span{
	float:right;
	margin-top:5px;
	margin-right:16px;
}

.talk .tapopen-btn{
	width: 80px;
	height: 80px;
	background-color: #FFF;
	text-align: center;
	line-height: 80px;
	box-shadow: 0 1px 3px #666;
	background-image: url(/img/tapopen.png);
	background-size: 100%;
	background-repeat: no-repeat;
}

.talk .mosicarea{
	cursor: pointer;
}

.talk .mosicarea img{
	width: 220px;
}

.talk .attachment{
	position: absolute;
	top: 5px;
	right: 5px;
	width: auto;
	height: 28px;
	display: flex;
	opacity: 0.8;
	filter:invert();
}
.talk .attachment.click_possible {
	opacity: 1.0;
	-webkit-filter: drop-shadow(1px 1px 1px rgba(0,0,0,.7));
	filter: drop-shadow(1px 1px 1px rgba(0,0,0,.7));
	cursor: pointer;
	transform: rotateZ(0deg) scale(1, 1);
	transition: 0.4s all;
}
/*.talk .attachment.click_possible {
	-webkit-filter: drop-shadow(0px 4px 4px rgba(0,0,0,.9));
	filter: drop-shadow(0px 4px 4px rgba(0,0,0,.9));
	transform: rotateZ(-25deg) scale(1.1, 1.1);
}*/

.talk .attachment.click_possible .imgIcon,
.talk .attachment.click_possible .telIcon {
	cursor: pointer;
	transform: rotateZ(0deg) scale(1, 1);
	transition: 0.4s all;
}

.talk .attachment.click_possible .imgIcon:hover,
.talk .attachment.click_possible .telIcon:hover {
	-webkit-filter: drop-shadow(0px 4px 4px rgba(255,255,255,.5));
	filter: drop-shadow(0px 4px 4px rgba(255,255,255,.5));
	transform: rotateZ(-25deg) scale(1.1, 1.1);
}

.talk .attachment .imgIcon,
.talk .attachment .telIcon{
	width: auto;
	height: 100%;
}

.talk .attachment .imgIcon img,
.talk .attachment .telIcon img{
	width: auto;
	height: 100%;
}

.talk .comment .ps_sentence {
	font-size: 0.8em;
	line-height: 1.2em;
}

/**************************
modal
**************************/

.modalContents select{
	-webkit-appearance: none;
	width:80%;
	display:block;
	outline: 0;
	border:1px solid #B9B9B9;
	background:#FFF;
	padding:5px;
	margin: 0 auto 0 auto;
	margin-top:10px;
	color:#808080;
}

.avatorProf {
	width: 120px;
	height: 120px;
	border-radius:120px;
	overflow:hidden;
	margin: auto;
}

.avatorProf img{
	width:100%;
	height:auto;
}

/*************************
talk string count(formにmarginとpaddingあるから入れない)
*************************/
.title_remain,
.body_remain {
	width: auto;
	height: auto;
	font-size: 0.7em;
	text-align: right;
}

