﻿@charset "utf-8";

/*----------------------------------------
 共通
-----------------------------------------*/
/* 共通 */
*, *:before, *:after { box-sizing: border-box; }
html{ font-size: 62.5%; }
body {
	font-size: 1.4rem;
	font-weight: 400; /* Regular:400; Bold:700; */
	line-height: 1.4;
	color: #333;
	-webkit-font-feature-settings: "kern", "liga", "pnum";
	-moz-font-feature-settings: "kern", "liga", "pnum";
	-ms-font-feature-settings: "kern", "liga", "pnum";
	font-feature-settings: "kern", "liga", "pnum";
	-webkit-font-smoothing: antialiased;
/*	-webkit-overflow-scrolling: touch; */
	-webkit-overflow-scrolling: touch; 
	-webkit-text-size-adjust: 100%;
}
html, body { min-height: 100vh; }
body, input, textarea { font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Noto Sans Japanese", "ヒラギノ角ゴ ProN W3", Hiragino Kaku Gothic ProN, Arial, Meiryo, sans-serif; }
button {
	font-size: inherit;
}
.container {
	max-width: 768px;
	width: 100%;
	margin: auto;
}
.clearfix:after {
	content: "";
	display: table;
	visibility: hidden;
	clear: both;
}
.flex {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

/* 外枠 */
#outerFrame {
	box-shadow: 0px 0px 0px 1px #eee;
}
#outerFrame::-webkit-scrollbar {
	width: 0.5em;
}
#outerFrame::-webkit-scrollbar-track {
	background: #eee;
}
#outerFrame::-webkit-scrollbar-thumb {
	background: #aaa;
}


/* ヘッダー */
#header {
	position: fixed;
	background: rgb(3, 156, 245);
	color: #fff;
	text-align: left;
	padding: 0.5em 1em;
	z-index: 1;
	height: 50px;
}
#header.has-shadow {
	box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.1);
}
#header-logo {
	width: 50px;
	text-align: left;
}
#header-logo img {
	display: block;
	max-width: 100%;
}
#header-title {
	padding: 0 1em;
	font-weight: 700;
}
#header-close {
	width: 50px;
	text-align: right;
}
#header-close i {
	cursor: pointer;
	font-size: 3rem;
	font-weight: 700;
}

/* コンテンツのラッパー */
#contentParent {padding: 50px 0 4em;}
.responsive-columns-wrapper {
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	flex-direction: row;
	-ms-display: flex;
	-ms-flex-direction: row;
}
.responsive-column {
	-webkit-flex: 1;
	-ms-flex: 1;
	flex: 1;
	overflow: auto;
}

/* チャットのセンタリング処理 */
#chat-column-holder {
	text-align: center;
}
.chat-column {
	height: 100%;
	text-align: left;
}

/* チャットのラッパー */
#scrollingChat {
/*	overflow-y: auto; */
	overflow-y: hidden;
	overflow-x: hidden;
	height: 100%;
}

/* トップメッセージ部分のラッパー */
#scrollingChat-topMessage {
	position: relative;
	background: rgb(3, 156, 245);
	color: #fff;
	padding: 0.5em 1em;
}
    #scrollingChat-topMessage:after {
        content: "";
        position: absolute;
        bottom: -1em;
        left: calc(50% - 1em);
        z-index: -1;
        border-right: 1em solid transparent;
        border-left: 1em solid transparent;
        /*border-top: 1em solid #2899ff;*/
        border-top: 1em solid rgb(3, 156, 245);
    }

/* メインのチャットのラッパー */
#scrollingChat-message {
	margin-top: 2em;
}

/*----------------------------------------
 吹き出し
-----------------------------------------*/
/* 吹き出し */
.segments:not(:first-child) {
	margin-top: 1em;
}
.from-user,
.from-watson {
	padding: 0 0.5em;
	opacity: 0.7;
}
.from-user.latest,
.from-watson.latest {
	opacity: 1;
}
.message-inner {
	min-width: 3em;
	min-height: 3em;
	padding: 1em;
	word-break: break-all;
	-webkit-transition-property: opacity, margin-top;
	-webkit-transition-duration: 0.75s;
	-webkit-transition-timing-function: ease-in;
	-moz-transition-property: opacity, margin-top;
	-moz-transition-duration: 0.75s;
	-moz-transition-timing-function: ease-in;
	-o-transition-property: opacity, margin-top;
	-o-transition-duration: 0.75s;
	-o-transition-timing-function: ease-in;
	-ms-transition-property: opacity, margin-top;
	-ms-transition-duration: 0.75s;
	-ms-transition-timing-function: ease-in;
	transition-property: opacity, margin-top;
	transition-duration: 0.75s;
	transition-timing-function: ease-in;
}

/* ユーザー側の吹き出し */
.from-user {
	text-align: right;
}
.from-user:after {
	/* content: ""; */
	background: url(../img/icon_user.png) no-repeat center / contain;
	width: 50px;
	height: 50px;
	display: block;
	display: inline-block;
	vertical-align: bottom;
}
.from-user .message-inner {
	position: relative;
	display: inline-block;
	width: auto;
	max-width: calc(100% - 50px - 2em);
	margin-right: 1em;
	background: #eee;
	border-radius: 4px;
	vertical-align: top;
}
.from-user .message-inner:after {
	content: "";
	position: absolute;
	bottom: 1em;
	right: -1em;
	margin-left: 0;
	z-index: -1;
	border-left: 2em solid #eee;
	border-top: 1em solid transparent;
}

/* ワトソン側の吹き出し */
.from-watson:not(.is-wide):not(.is-fullWide):before {
	background: url(../img/icon_watson.png) no-repeat center / contain;
	content: "";
	width: 50px;
	height: 50px;
	display: inline-block;
	vertical-align: bottom;
	border: none;
}
.from-watson .message-inner {
	position: relative;
	display: inline-block;
	width: auto;
	max-width: calc(100% - 50px - 2em);
	margin-left: 2em;
	background: rgb(170, 248, 253);
	border-radius: 4px;
	vertical-align: top;
}
.from-watson:not(.is-wide):not(.is-fullWide) .message-inner:before {
	content: "";
	position: absolute;
	bottom: 1em;
	left: -1em;
	margin-left: 0;
	z-index: -1;
	border-right: 2em solid rgb(170, 248, 253);
	border-top: 1em solid transparent;
}

/* ボタン・画像・OGP・フィードバックの吹き出し */
.from-watson.is-fullWide {
	padding: 0;
}
.from-watson.is-wide:after,
.from-watson.is-fullWide:after {
	background: url(../img/icon_watson.png) no-repeat center / contain;
	content: "";
	width: 50px;
	height: 50px;
	display: block;
	border: none;
}
.from-watson.is-fullWide:after {
	margin-left: 0.5em;
}
.from-watson.is-wide .message-inner,
.from-watson.is-fullWide .message-inner {
	max-width: 100%;
	margin-left: 0;
	margin-bottom: 2em;
}
.from-watson.is-fullWide .message-inner {
	width: 100%;
	border-radius: 0;
	padding: 1em 0;
}
.from-watson.is-wide .message-inner:before,
.from-watson.is-fullWide .message-inner:before {
	content: "";
	position: absolute;
	bottom: -1em;
	left: 2em;
	margin-left: 0;
	z-index: -1;
	border-right: 1em solid transparent;
	border-top: 2em solid rgb(170, 248, 253);
}
.from-watson.is-fullWide .message-container,
.from-watson.is-fullWide .watson-btn-wrapper {
	padding: 0 1em;
}

/* ワトソン - レスポンス - ボタン */
.watson-btn-wrapper {
	margin-top: 1em;
}
.watson-btn {
	background: #fff;
	text-align: left;
	padding: 0.5em 1em;
	border-radius: 4px;
	cursor: pointer;
	border: none;
	outline: none;
	pointer-events: none;
	width: 100%;
	min-height: 3em;
	display: flex;
	align-items: center;
}
.latest .watson-btn {
	pointer-events: initial;
}
.watson-btn:not(:first-child) {
	margin-top: 0.5em;
}
.watson-btn__img {
	max-width: 2em;
	width: 100%;
	vertical-align: bottom;
	margin-right: 0.5em;
}

/* ワトソン - レスポンス - OGP */
.watson-ogp-link {
	color: rgb(170, 248, 253);
}
.watson-ogp-wrapper {
	margin-top: 1em;
	border-left: 0.25em solid #fff;
	padding-left: 1em;
	overflow: hidden;
}
.watson-ogp-wrapper img {
	max-width: 100px;
	width: 100%;
	float: left;
}
.watson-ogp-title {
	font-weight: 700;
}
.watson-ogp-text {
	float: left;
	width: calc(100% - 100px);
	padding-right: 1em;
	font-size: 1.2rem;
}

/* ワトソン - レスポンス - イメージ */
.watson-img-wrapper {
	margin-top: 1em;
}
.watson-img-wrapper img {
	max-width: 100%;
	width: 100%;
	vertical-align: bottom;
}
.watson-slide-wrapper {
	margin-top: 1em;
}
.watson-slide-wrapper img {
	max-width: 100%;
	width: 100%;
	vertical-align: bottom;
}
.watson-slide-wrapper a {
	display: block;
	max-width: calc(100% - 1em);
	margin: auto;
}

/* ワトソン - フィードバック */
.watson-feedback-wrapper {
	padding-top: 1em;
	border-top: 1px dashed #fff;
	margin-top: 1em;
}

/* テキスト入力エリア */
#textInput {
	border: none;
	outline: none;
	background: #eee;
	max-width: 100%;
	width: calc(100% - 50px);
	padding: 0 0.5em;
	display: block;
	float: left;
	height: 75%;
}
::-webkit-input-placeholder {
	color: #aaa;
}
::-moz-placeholder {
	color: #aaa;
	opacity: 1;
}
input:-moz-placeholder {
	color: #aaa;
	opacity: 1;
}
:-ms-input-placeholder {
	color: #aaa;
}
::-ms-clear {
	display: none;
}
.inputOutline {
	position: fixed;
	bottom: 0;
	display: block;
	height: 4em;
}
.btn {
	width: 50px;
	float: right;
	display: block;
	border: none;
	outline: none;
	cursor: pointer;
	height: 100%;
}
.btn-submit {
	background: rgb(3, 156, 245);
	color: #fff;
    height: 75%;
}

/* 2018-09 追加 */
.chat_response_image {
	width: 100%;
}
.chat_response_title {
	color: blue;
}
/* 不正解ボタン */
.incorrect_button {
	display: none;
}
.segments:not(:first-child) .latest .incorrect_button {
	display: inline;
	position: absolute;
	bottom: -40px;
	right: -5px;
	cursor: pointer;
}

.from-watson.latest .message-inner {
	margin-bottom: 35px;
}
