#chat-container {
    margin-top: 20px
}

#chat-messages {
    height: calc(100vh - 350px);
    overflow-y: scroll;
    border: 1px solid #ccc;
    padding: 10px;
}

#question-input {
    margin-top: 10px;
}

#send-button {
    margin-top: 10px;
}

.chat-question-box {
    display: flex;
    justify-content: flex-end;
}

.chat-question {
    max-width: 80%;
    background-color: rgba(204, 255, 204, 0.5);
    border-radius: 1.5rem;
    margin-top: 10px;
    padding-left: 0.6rem;
    padding-right: 0.6rem;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    white-space: pre-wrap;
}

.chat-answer-box {
    display: flex;
    justify-content: flex-start;
}

.chat-answer {
    max-width: 80%;
    background-color: rgba(232, 232, 232, 0.5);
    border-radius: 1.5rem;
    margin-top: 10px;
    padding-left: 0.6rem;
    padding-right: 0.6rem;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    white-space: pre-wrap;
}

.citation-open-btn {
    vertical-align: top;
    font-size: 0.8rem;
    color: #285be9;
    font-weight: bolder;
    cursor: pointer;
}

.citation-open-btn:hover {
    color: blue;
}

.citation-document {
    color: #285be9;
}

/* モーダルスタイル（中央表示） */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    /* 縦方向中央揃え */
    justify-content: center;
    /* 横方向中央揃え */
    z-index: 2000;
}

.modal-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 1000px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.7rem;
    font-weight: bold;
    color: #898989;
}

/* 閉じるボタンホバー時のスタイル */
.modal-close:hover,
.modal-close:focus {
    color : black;
    outline:0;
}
