#container {
    width: 100%;
    float:left;
}

#sub-container {
    position: fixed;
    z-index: 10;
    right: 0;
    top: 0;
    border: 1px solid #cccccc;
    float:right;
    height: 100%!important;
	width:36%;
	background-color:white;
}

/*
#container #header {
    height : 52px ;
    background : url(default_page.png?date=210428) 0 0 no-repeat ;
}

#container dl#contents {
    width: 100%;
}
*/

#chatbotContainer {
    width: 550px;
    height: auto;
    border: 1px solid #ddd;
    /*padding: 10px;*/
    /*position: fixed;*/
    position: relative;
    top: 10px;
    right: 10px;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: contents;
}

#chatbotHeader {
    display: flex;
	flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    color: #fff;
    background-color: rgb(21 185 168 / 100%);
    padding: 10px;
}

#chatbotTitle {
    font-size: 16px;
    font-weight: bold;
	flex-grow: 1;
}

#chatbotControls {
    display: flex;
}


.chatbot-hidden {
    /*display: none;*/
}

.chatbot-shown {
    display: block;
    z-index: 10;
}

#chatbox {
    font-family: "メイリオ", Meiryo, "游ゴシック体",
    "Yu Gothic", "ヒラギノ角ゴPro W3", "Hiragino Kaku Gothic Pro",
    "ＭＳ　Ｐゴシック", "MS PGothic", sans-serif;
    height: 84vh;
    overflow-y: scroll;
    margin-bottom: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    text-align: left;
    z-index: 0;
}

#chatbox:before {
    content: '';
    position: absolute;
	top:5%;
    left: 0;
    width: 100%;
    height: 87%;
    z-index: -1;
    background-color: #fff;
    background-size:cover; /* 画像の表示方法 */
    background-position:center bottom; /* 画像の表示位置を指定 */
}

/* デフォルトエージェント用背景 */
#chatbox.chatbot_bg:before {
    background-image: url('../images/chatbot_bg.png');
}

/* 秘書用エージェント背景 */
#chatbox.bot_secretary:before {
    background-image: url('../images/secretary.png');
}

/* 調査用エージェント背景 */
#chatbox.bot_investigation:before {
    background-image: url('../images/investigation.png');
}

/* アンケート用エージェント背景 */
#chatbox.bot_questionnaire:before {
    background-image: url('../images/questionnaire.png');
}

/*
@media screen and (max-height:900px) {
    #chatbox {
        height: 78vh;
    }
}
*/
@media screen and (max-height:700px) {
    #chatbox {
        height: 80vh;
    }
}
/*
@media screen and (max-height:700px) {
    #chatbox {
        height: 57vh;
    }
}*/

.message {
    max-width: 70%;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 10px;
}

.user-message {
    align-self: flex-end;
    background-color: rgb(181 244 238 / 80%);
}

.bot-icon {
    background-image: url('../images/CB_icon.png');
    background-size: 10%;
    background-repeat: no-repeat;
    background-position:center center; /* 画像の表示位置を指定 */
	position:relative;
	top: 10%;
    left: -33%;
    z-index: 1;
}

#chatInputContainer{
    position: fixed;
    bottom: 5%;
    width: 34%;
	height: 0.5%;
	background-color:rgba(255,255,255,0);
	display: flex;
	flex-wrap: wrap;
	z-index:3;
	padding:10px 10px 10px 10px;
}

.bot-message {
    align-self: flex-start;
    background-color: rgb(241 240 240 / 80%);
    margin: 0 0 10px 8%;
}

.bot-message ul{
    list-style-type: disc;
    list-style-position: inside;
}

.bot-message li {
    text-indent: -1.2em;
    padding-left: 1.2em;
}


.bot-icon::before {
	content:'-';
    display:ruby;
    display: block;
    width: 50px; /* ボタンのサイズを調整 */
    height: auto;
    cursor: pointer;
}

.image-button {
    margin: 20px;
}

.typing-botIcon {
    background-image: url('../images/CB_icon.png');
    background-size: 7.5%;
    background-repeat: no-repeat;
    background-position:center center; /* 画像の表示位置を指定 */
	position:relative;
	top: 8%;
    left: -47%;
    z-index: 1;
}

.typing-botIcon {
	padding:20px 20px 20px 20px;
}

.typing-botIcon::before {
	content:'-';
    display:ruby;
}

#userInput {
    width: calc(100% - 120px);
    padding: 5px;
    display: inline-block;
    outline:none;
    margin: 10px 2px 0 0;
    border-color: #dddddd;
    border-radius: 5px;
}

#chatbotToggle {
    display: none;
}

#chatbotControls #chatbotToggle {
    position: relative;
    bottom: 10px;
    right: 10px;
    padding: 10px 20px;
    background-color: cornflowerblue;
    color: white;
    font-weight: bold;
    font-size: 1.1em;
    border-style: none;
    border-radius: 5px;
    z-index: 9;
}

#send,#resetChatbot,#closeChatbot{
    background-color: rgb(21 185 168 / 100%);
    border-radius: 5px;
	border: 1px solid white;
    width: 80px;
    color: white;
    padding: 5px;
    outline:none;
    margin: 0 1px 0 0;
    vertical-align: bottom;
	
}

#send:hover,#resetChatbot:hover,#closeChatbot:hover,#chatbotToggle:hover {
    cursor: pointer;
    opacity: 0.5;
}

/*
#resetChatbot {
    display: none;
}
*/

#quickReply {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
}

.quickReplyOption {
    border: #bbb 1px solid;
    padding: 5px 10px;
    margin-right: 5px;
    margin-bottom: 5px;
    border-radius: 5px;
    cursor: pointer;
    background-color: rgb(255 255 255 / 80%);
}

.quickReplyOption:hover {
    background-color: cornflowerblue;
    color: white;
}

.input-box {
    width: 100%;
    padding: 10px 0;
    position: absolute;
    bottom: 0;
}

#chatbotControls .open-btn {
    margin-left: 5px;
}


.typing {
    display: inline-flex;
    white-space: nowrap; /* 改行を防ぐ */
    background-color: rgb(240 241 241 / 80%); /*背景色（透過）*/
    padding: 5px; /* パディングを追加 */
}

.typing::after {
    content: '...';
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

#send {
      float: right;
    margin: 7px 23px 0 0;
}

#userInput{
    float: left;
}
