/* 全体のスタイル */
body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

/* チャットウィンドウのデザイン */
.chat-container {
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-top: 0%;
}

/* ヘッダー部分 */
.chat-header {
    background-color: #007bff;
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 18px;
}

/* メッセージ表示エリア */
.chat-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* メッセージの外枠（ユーザー用） */
.message-container.user {
    display: flex;
    justify-content: flex-end; /* 右寄せ */
}

/* メッセージの外枠（ボット用） */
.message-container.bot {
    display: flex;
    justify-content: flex-start; /* 左寄せ */
}

/* ユーザーメッセージ（青色） */
.user-message {
    background-color: #007bff;
    color: white;
    padding: 8px 12px;
    border-radius: 15px;
    max-width: 70%;
    text-align: left;
    margin: 3% 0 3% 40%;
}

/* ボットメッセージ（グレー） */
.bot-message {
    background-color: #e0e0e0;
    color: black;
    padding: 8px 12px;
    border-radius: 15px;
    max-width: 70%;
    text-align: left;
    margin: 3% 40% 3% 0%;
    font-size: 15px;
}

/* 入力エリア全体 */
.chat-input {
    display: flex;
    padding: 12px;
    border-top: 1px solid #ddd;
    background: #fff;
    align-items: center;
}
/* 入力ボックス */
.chat-input input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #ccc;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease-in-out;
}

/* 入力ボックスフォーカス時 */
.chat-input input:focus {
    border-color: #007bff;
}

/* 送信ボタン */
.chat-input button {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 50%;
    margin-left: 10px;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
}

/* 送信ボタンホバー時 */
.chat-input button:hover {
    background: #0056b3;
}

/* 送信ボタンのアイコン */
.chat-input button i {
    font-size: 20px;
}


/* コンテナ全体 */
.container {
    width: 90%;
    max-width: 800px;
    margin: 50px auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* タイトル */
h2 {
    color: #333;
    margin-bottom: 15px;
}

/* テーブル */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

/* ヘッダーのスタイル */
th {
    background: #007bff;
    color: white;
    padding: 10px;
    border: 1px solid #ddd;
}

/* セルのスタイル */
td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}

/* 偶数行をグレーにする */
tbody tr:nth-child(even) {
    background: #f9f9f9;
}

/* ホバー時の効果 */
tbody tr:hover {
    background: #f1f1f1;
}

/* レスポンシブ対応 */
@media (max-width: 600px) {
    table {
        font-size: 14px;
    }
}

img {
    width:50%;
}

