body {
    font-family: Arial, sans-serif;
    margin: 20px;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: row;
}

.left-column {
    flex: 60%;
    padding: 10px;
}

.right-column {
    flex: 40%;
    padding: 10px;
    border-left: 1px solid #ccc;
    background-color: #e9f7ef;
    height: 100vh;
    overflow-y: auto;
}

.question-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 600px;
    margin: auto;
}

.question-button {
    padding: 15px;
    background-color: #cce7ff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    font-size: 16px;
}

.question-button:hover {
    background-color: #b0d4ff;
}

.answer {
    margin: 20px auto;
    padding: 15px;
    background-color: #e6ffe6;
    border: 1px solid #b8e2b8;
    border-radius: 10px;
    max-width: 600px;
}

.hidden {
    display: none;
}

.chat-message {
    margin: 10px 0;
    padding: 10px;
    border-radius: 10px;
}

.chat-message.system {
    background-color: #d1ecf1;
}

.chat-message.user {
    background-color: #f8d7da;
}

.chat-message.assistant {
    background-color: #d4edda;
}

#loadingMessage {
    color: red;
    font-weight: bold;
    display: inline-block;
    margin-left: 10px;
}

#progressBar {
    width: 100%;
    background-color: #f3f3f3;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-top: 10px;
}

#progress {
    width: 0%;
    height: 20px;
    background-color: #76c7c0;
    border-radius: 5px;
}

button#submitButton { /* APIと指導案の設定ボタンのデザイン */
    transform: scale(1);
}

@media screen and (max-width: 768px) {
    body {
        flex-direction: column;
    }
    .left-column, .right-column {
        flex: 100%;
    }
    .right-column {
        height: auto;
        border-left: none;
        border-top: 1px solid #ccc;
    }
}
