@charset "utf-8";
/* Message & Chatbot
=======================================*/

#oakmember {
	overflow-x: hidden;
}

.p-message_index {
	
}
.p-message_index tr {
	cursor: pointer;
}
.p-message_index tr:hover td {
	background: #feefee;
}
.p-message_index th.t_top,
.p-message_index td.t_top {
	text-align: center !important;
}

.p-message_index th:nth-child(1),
.p-message_index td:nth-child(1) {
	width: 15%;
}

.p-message_index th:nth-child(2),
.p-message_index td:nth-child(2) {
	width: 40%;
}

.p-message_index th:nth-child(3),
.p-message_index td:nth-child(3) {
	width: 25%;
}

.p-message_index th:nth-child(4),
.p-message_index td:nth-child(4) {
	width: 30%;
}
	.p-message_index__status {
		text-align: center !important;
	}
	.p-message_index__status > span {
		display: inline-block;
		white-space: nowrap;
		margin-right: 0.3em;
	}
	.p-message_index__unread:before,
	.p-message_index__require_reply:before,
	.p-message_index__done:before {
		content:'';
		display: inline-block;
		vertical-align: middle;
	}
	.p-message_index__unread:before  {
		width: 18px;
		height: 18px;
		background: url(/svg/icn-mail.svg) no-repeat center center;
		background-size: contain;
		margin-top: -3px;
	}
	.p-message_index__require_reply:before {
		width: 14px;
		height: 14px;
		background: url(/svg/icn-return.svg) no-repeat center center;
		background-size: contain;
		margin-left: 0.5em;
		margin-top: -3px;
	}
	.p-message_index__done:before  {
		background: url(/svg/icn-mail_done.svg) no-repeat center center;
        background-size: contain;
		width: 18px;
		height: 18px;
		opacity: 0.5;
		margin-top: -3px;
	}
	.p-message_index__status > span:last-child {
		margin-right: 0;
	}
	.p-message_index__title {
		font-size: 14px;
	}
	.p-message_index__title span {
		opacity: 0.7;
	}
	.p-message_index__from {
		font-size: 14px;
		text-align: center !important;
	}
	.p-message_index__date {
		text-align: center !important;
	}

.p-message_icons {
	display: flex;
	flex-wrap: wrap;
	background: #f7f7f7;
	padding: 0.5em;
}
	.p-message_icons strong {
		margin-right: 1em;
	}
	.p-message_icons span {
		margin-right: 25px;
		font-size: 12px;
		display: flex;
		align-items: center;
	}
	.p-message_icons span:before {
		margin-right: 0.5em;
		content:'';
		display: inline-block;
	}
	.p-message_icons__mail:before  {
		width: 18px;
		height: 18px;
		background: url(/svg/icn-mail.svg) no-repeat center center;
		background-size: contain;
		background-size: cover;
		vertical-align: middle;
	}
	.p-message_icons__return:before  {
		vertical-align: middle;
		background: url(/svg/icn-return.svg) no-repeat center center;
		background-size: contain;
		width: 14px;
		height: 14px;
	}
	.p-message_icons__mail_done:before  {
		background: url(/svg/icn-mail_done.svg) no-repeat center center;
        background-size: contain;
        background-size: cover;
		width: 18px;
		height: 18px;
		opacity: 0.5;
	}

@media (max-width: 820px) {
	.p-message_index {
		padding-bottom: 2em;
	}
	.p-message_index td {
		text-align: center !important;
	}
	.p-message_index tr:not(:first-child) {
		border-top: 3px solid #f9504c;
		display: flex !important;
		flex-wrap: wrap;
	}
	.p-message_index tr:after {
		content:'';
		display: block;
		clear: both;
	}
	.p-message_index tr + tr {
		margin-top: 3em;
	}
	.p-message_index__status {
		order: 2;
	}
	.p-message_index__title {
		order: 1;
	}
	.p-message_index__from {
		order: 3;
		width: 50% !important;
		border-right: none !important;
	}
	.p-message_index__date {
		order: 4;
		/*width: 50% !important;*/
	}
	.p-message_icons {
		text-align: center;
		padding: 0.5em 1.5em;
	}
	
	.p-message_icons strong {
		display: block;
		width: 100%;
	}
	.p-message_icons span {
		margin-top: 0.5em;
		margin-right: 1em;
	}
	.p-message_icons span:nth-child(2n+1){
		margin-right: 0;
	}
}

.p-message_detail {
	text-align: center;
	max-width: 800px;
	margin: 0 auto;
}

.p-message_detail__header {
	margin: 0 auto 3em;
	height: auto;
}
.p-message_detail__header__floater {
	display: flex;
	background: #f9504c;
	align-items: center;
	justify-content: center;
	color: #fff;
	border-radius: 5px;
	text-align: center;
	position: relative;
	height: auto;
	width: 100%;
	box-sizing: border-box;
}
.p-message_detail__header__floater.is-fixed {
	position: fixed;
	width: 90%;
	max-width: 940px;
	z-index: 10;
	top: 10px;
}
@media (max-width: 820px) {
	.p-message_detail__header__floater.is-fixed {
		top: auto;
	}
}
.p-message_detail__header__title {
	margin: 10px 0 !important;
	line-height: 1 !important;
	font-weight: bold;
	width: 80% !important;
}

@media (max-width: 820px) {
	.p-message_detail__header__title {
		width: 50% !important;
	}
}
.p-message_detail__header__back,
.p-message_detail__header__exit {
	color: #fff;
	position: absolute;
	left: 10px;
	text-decoration: none !important;
	cursor: pointer;
}
.p-message_detail__header__exit {
	left: auto;
	right: 10px;
}
.p-message_detail__header__title span {
	display: block;
	font-size: 10px;
	margin-top: 5px;
	font-weight: normal;
}
.p-message_detail__header__back:before {
	content:'';
	display: inline-block;
	vertical-align: middle;
	background: url(/svg/icn-arrow.svg) no-repeat center center;
	background-size: contain;
	width: 14px;
	height: 14px;
	margin-right: 0.5em;
	margin-top: -2px;
}
.p-message_detail__header__exit:before {
	content:'';
	display: inline-block;
	vertical-align: middle;
	background: url(/svg/icn-shutdown.svg) no-repeat center center;
	background-size: contain;
	width: 16px;
	height: 16px;
	margin-right: 0.5em;
	margin-top: -2px;
}

.p-message_detail__header__alert {
	position: absolute;
	box-sizing: border-box;
	font-size: 12px;
	font-weight: normal;
	display: block;
	bottom: -50px;
	height: 24px;
	line-height: 24px;
	display: inline-block;
	padding: 0 15px;
	background-color: rgba(0,0,0,0.7);
	border-radius: 5px;
	width: 100%;
}
.p-message_detail__header__alert a {
	color: #fff;
	font-weight: bold;
	height: 24px;
	line-height: 24px;
	display: inline-block;
	text-decoration: none;
}
.p-message_detail__header__alert span {
	margin-right: 1em;
}

.p-message_detail__alert {
	position: fixed;
	height: 100%;
	width: 100%;
	left: -100%;
	top:0;
	opacity: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 200;
	background: rgba(0,0,0,0.7);
	transition: opacity 0.4s;
}
.p-message_detail__alert.is-active {
	left: 0;
	opacity: 1;
}
.p-message_detail__alert__box {
	background: #fff;
	border-radius: 10px;
	text-align: center;
	padding: 1em;
	min-width: 300px;
	transition: margin-top 0.4s;
	margin-top: 1em;
}
.p-message_detail__alert.is-active .p-message_detail__alert__box {
	margin-top:0;
}
.p-message_detail__alert__box ul.p-message_detail__alert__list {
	display: inline-block;
	text-align: left;
	font-size: 16px;
	margin-top: 0;
}
.p-message_detail__alert__box li label {
	cursor: pointer;
}
.p-message_detail__alert__box li + li {
	margin-top: 1em !important;
}
.p-message_detail__alert__box li:before {
	display: none;
}
#wrapper.oakmember .p-message_detail__alert__box .sendbox {
	display: flex;
	justify-content: space-between;
	margin-top: 0.6em;
}
#wrapper.oakmember .p-message_detail__alert__box .sendbox .submit_btn {
	margin: 0;
}
#wrapper.oakmember .p-message_detail__alert__box .sendbox .submit_btn.backbtn {
	padding: 7px 7px;
	box-sizing: border-box;
}

.p-message_detail__item {
	width: 80%;
	max-width: 700px;
	position: relative;
	background: #feefee;
	border-radius: 10px;
	padding: 25px 15px 15px;
	margin: 0 20% 0 0;
	font-size: 14px;
	display: inline-block;
	text-align: left;
	box-sizing: border-box;
}
.wrapper__inner._chatbot .p-message_detail__item {
	margin: 0 10% 0 30px;
}
.p-message_detail__item.is-user {
	background: #f3f3f3;
	margin: 0 0 0 20%;
}
.wrapper__inner._chatbot .p-message_detail__item.is-user {
	margin: 0 30px 0 10%;
}
.p-message_detail__item.is-require_reply {
	border: 2px solid #fca7a5;
}


.p-message_detail__item:after,
.p-message_detail__item.is-require_reply:before {
	content: '';
	display: block;
	position: absolute;
	left:-20px;
	right: auto;
	bottom:15px;
	width: 0;
	height: 0;
	border: 10px solid transparent;
	border-top-width: 5px;
	border-bottom-width: 5px;
	border-right: 10px solid #feefee;
}
.p-message_detail__item.is-require_reply:before {
	border: 12px solid transparent;
	border-top-width: 7px;
	border-bottom-width: 7px;
	border-right: 12px solid #fca7a5;
	left:-24px;
	bottom:13px;
}
.p-message_detail__item.is-user:after {
	border-right: none;
	border-left: 10px solid #f3f3f3;
	left:auto;
	right:-10px;
}

.p-message_detail__item + .p-message_detail__item {
	margin-top: 3em !important;
}
.p-message_detail__item p {
	margin: 0 !important;
}
.p-message_detail__icon {
	position: absolute;
	left: -40px;
	bottom: 10px;
	width: 25px;
	height: 25px;
}

.is-user .p-message_detail__icon {
	left: auto;
	right: -40px;
	overflow: hidden;
	border-radius: 50%;
}
.p-message_detail__icon img {
	max-width: 100%;
	max-height: 100%;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
}
.p-message_detail__icon span {
	display: flex;
	height: 25px;
	width: 25px;
	justify-content: center;
	align-items: center;
	background: #f9504c;
	color: #fff;
}

.p-message_detail__time {
	position: absolute;
	left: 100%;
	bottom: 15px;
	padding-left: 10px;
	font-size: 11px;
}
.p-message_detail__id {
	font-size: 10px;
	position: absolute;
	top: 5px;
	color: #f9504c;
	opacity: 0.8;
}
.is-user .p-message_detail__id {
	color: #000;
}

.is-user .p-message_detail__time {
	left: auto;
	right: 100%;
	padding-left: 0;
	padding-right: 10px;
}
.is-user .p-message_detail__delete {
	margin-top: 1em !important;
	text-align: right;
}
.is-user .p-message_detail__delete a,
.is-require_reply .p-message_detail__reply a {
	cursor: pointer;
	text-decoration: underline;
	background-color: #f9504c;
	color: #fff;
	text-decoration: none;
	padding: 0.5em 1em;
	border-radius: 15px;
	white-space: nowrap;
	font-size: 11px;
}
.is-user .p-message_detail__delete a {
	background: #666;
}
.is-user .p-message_detail__delete a:before {
	content: '';
	display: inline-block;
	vertical-align: middle;
	background: url(/svg/icn-trash_white.svg) no-repeat center center;
	background-size: contain;
	width: 14px;
	height: 14px;
	margin-right: 0.5em;
}
.is-require_reply .p-message_detail__reply {
	text-align: right;
}
.is-require_reply .p-message_detail__time + .p-message_detail__reply {
	margin-bottom: 1em !important;
}
.is-require_reply .p-message_detail__reply:last-child {
	margin-top: 1em !important;
}
.is-require_reply .p-message_detail__reply a {
	cursor: pointer;
	text-decoration: underline;
	background-color: #f9504c;
	color: #fff;
	text-decoration: none;
	padding: 0.5em;
	border-radius: 15px;
}
.is-require_reply .p-message_detail__reply a:before {
	content: '';
	display: inline-block;
	vertical-align: middle;
	background: url(/svg/icn-return_white.svg) no-repeat center center;
	background-size: contain;
	width: 14px;
	height: 14px;
	margin-right: 0.5em;
	margin-top: -3px;
}

.p-message_detail__date {
	text-align: center;
	margin: 3em auto !important;
}

.p-message_detail__date span{
	display: inline-block;
	padding: 0 20px;
	height: 30px;
	line-height: 30px !important;
	border-radius: 15px;
	text-align: center;
	background: #fff;
	border: 1px solid #f9504c;
	box-sizing: border-box;
	color: #f9504c;
}

.p-message_detail__unread {
	color: #f9504c;
	text-align: center;
	margin: 3em auto !important;
	position: relative;
}
.p-message_detail__unread:before {
	content:'';
	display: block;
	position: absolute;
	left: 0;
	top:50%;
	width: 100%;
	height: 1px;
	border-top: 2px dotted #f9504c;
	z-index: 1;
}
.p-message_detail__unread span {
	background: #fff;
	display: inline-block;
	z-index: 2;
	position: relative;
	padding: 0 20px;
}
.p-message_detail__text {
	word-break: break-all;
}
.p-message_detail__text + .p-message_detail__text {
	margin-top: 1em !important;
}
#wrapper.oakmember .p-message_detail__text img {
	width: auto;
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}
.p-message_ctrl {
	position: fixed;
	position: relative;
	height: 59px;
	margin-top: 40px;
	left: -200%;
	opacity: 0;
	transition: opacity 0.4s 0.4s;
}
.p-message_ctrl.is-active {
	position: relative;
	left: 0;
	opacity: 1;
	transition: opacity 0.4s;
}
.p-message_ctrl p {
	margin: 0 !important;
}
.p-message_ctrl__floater {
	position: absolute;
	width: 100vw;
	left: 50%;
	bottom: 0;
	margin-left: -50vw;
	padding:7px;
	box-sizing: border-box;
	border-top: 1px solid #d0d0d0;
	border-bottom: 1px solid #d0d0d0;
	background: #f3f3f3;
}
.p-message_ctrl__floater.is-fixed {
	position: fixed;
	z-index: 10;
	width: 100%;
	margin-left: 0;
	left: 0;
	bottom:-100px;
	transition: bottom 0.4s 0.1s;
}
.is-active .p-message_ctrl__floater.is-fixed {
	bottom:0;
}
.p-message_ctrl__wrapper {
	max-width: 800px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 0 auto;
	position: relative;
}
.p-message_ctrl__id {
	position: absolute;
	top: -27px;
	left: 50%;
	transform: translate(-50%, 0);
	width: 100vw;
	padding: 0 10px;
	box-sizing: border-box;
	font-size: 12px;
	height: 24px;
	line-height: 24px;
	display: inline-block;
	background: rgba(0,0,0,0.7);
	text-align: center;
}
.p-message_ctrl__id a {
	display: inline-block;
	color: #fff;
	height: 24px;
	line-height: 24px;
}
.p-message_ctrl__input {
	flex:1;
}
.p-message_ctrl__input textarea {
	width: 100% !important;
	font-size: 14px !important;
	min-height: 43px;
	max-height: 150px;
	line-height: 1.5;
	box-sizing: border-box;
	margin: 0 !important;
	border-radius: 20px;
	border: 1px solid #d0d0d0;
	padding: 10px 50px 10px 10px;
	outline: none;
	vertical-align: bottom;
	-webkit-appearance: none;
}
.p-message_ctrl__send {
	position: absolute;
	right: 7px;
	bottom: 7px;
}

.p-message_ctrl__send a {
	display: flex;
	justify-content: center;
	align-items: center;
	background: #f9504c;
	color: #fff;
	text-decoration: none;
	width: 30px;
	height: 30px;
	line-height: 40px;
	border-radius: 50%;
	letter-spacing: 0.1em;
}
.p-message_ctrl__send a:before {
	content:'';
	display: inline-block;
	background: url(/svg/icn-send.svg) no-repeat center center;
	background-size: contain;
	width: 18px;
	height: 18px;
	vertical-align: middle;
}

/* アンケート */
.p-message_enquete {
	background: #efefef;
	border-radius: 10px;
	padding: 20px;
	text-align: center;
	max-width: 640px;
	margin: 0 auto;
	box-sizing: border-box;
}
#wrapper.oakmember .p-message_enquete h5 {
	margin: 0 0 1.5em;
	text-align: center;
	font-size: 18px;
}
#wrapper.oakmember .p-message_enquete textarea {
	width: 100%;
	resize: none;
	padding: 0.5em;
	box-sizing: border-box;
	line-height: 1.5;
}

.p-message_enquete__list {
	background: #fff;
	border-radius: 10px;
	padding: 10px;
}
.p-message_enquete__list > li {
	list-style: none;
	margin-left: 15% !important;
	width: 15%;
	background: #fff;
	display: inline-block;
	margin-bottom: 0 !important;
}
.p-message_enquete__list > li:first-child {
	margin-left: 0 !important;
}
.p-message_enquete__list > li:before {
	display: none;
}
.p-message_enquete__list > li span {
	display: block;
	text-align: center;
}
.p-message_enquete__list input {
	display: none;
}
.p-message_enquete__list label {
	cursor: pointer;
	font-size: 14px;
	font-weight: bold;
}
.p-message_enquete__icon {
	position: relative;
	margin-bottom: 5px;
}
.p-message_enquete__icon:before {
	content:'';
	display: block;
	width: 100%;
	height: 0;
	padding-top: 100%;
}
.p-message_enquete__icon:after {
	content:'';
	display: block;
	width: 90%;
	height: 1px;
	background: none;
	position: absolute;
	border-top: 3px dashed #cdcdcd;
	top:50%;
	margin-top: -2px;
	left: -100%;
}
.p-message_enquete__list > li:first-child .p-message_enquete__icon:after {
	display: none;
}
.p-message_enquete__icon._good:before {
	background: url(/svg/icn-face_good.svg) no-repeat center center;
	background-size: contain;
	opacity: 0.5;
}
:checked + .p-message_enquete__icon._good:before {
	background: url(/svg/icn-face_good_active.svg) no-repeat center center;
	background-size: contain;
	opacity: 1;
}
.p-message_enquete__icon._normal:before {
	background: url(/svg/icn-face_normal.svg) no-repeat center center;
	background-size: contain;
	opacity: 0.5;
}
:checked + .p-message_enquete__icon._normal:before {
	background: url(/svg/icn-face_normal_active.svg) no-repeat center center;
	background-size: contain;
	opacity: 1;
}
.p-message_enquete__icon._bad:before {
	background: url(/svg/icn-face_bad.svg) no-repeat center center;
	background-size: contain;
	opacity: 0.5;
}
:checked + .p-message_enquete__icon._bad:before {
	background: url(/svg/icn-face_bad_active.svg) no-repeat center center;
	background-size: contain;
	opacity: 1;
}

/* 日付選択ユニット */

.p-message_dateselector {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
}
.p-message_dateselector * {
	width: 32% !important;
	font-size: 14px !important;
	margin: 0 !important;
	vertical-align: bottom;
	box-sizing: border-box;
}
.p-message_dateselector select {
	line-height: 24px;
	height: 24px;
}
@media (max-width: 820px) {
	.p-message_dateselector {
		flex-direction: column;
	}
	.p-message_dateselector * {
		width: 100% !important;
	}
	.p-message_dateselector * + * {
		margin-top: 0.5em !important;
	}
}

/* はい・いいえ返答ユニット */

.p-message_answer {
	display: flex;
	justify-content: center;
	align-items: center;
}
.p-message_answer__item {
    display: inline-block;
    background: #F9504C;
    color: #fff;
    height: 24px;
    line-height: 24px;
    padding: 0 10px;
    text-decoration: none !important;
    border-radius: 4px;
    text-align: center;
	white-space: nowrap;
	width: 49%;
	max-width: 150px;
}
.p-message_answer__item + .p-message_answer__item {
	margin-left: 10px;
}
@media (max-width: 820px) {
	.p-message_answer {
		justify-content: space-between;
	}
}