body {
    font-family: Arial, sans-serif;
    background-color: #535252;
    margin: 0;
    padding: 0;
    
    /* ✅ 画面の中央に配置 */
    display: flex;
    justify-content: center; /* 水平方向の中央揃え */
    align-items: center; /* 垂直方向の中央揃え */
    height: 100vh; /* ビューポートの高さいっぱいにする */
}


/* フォーム全体のデザイン */
.container {
    background: white;
    width: 40%;
    max-width: 1000px; /* フォームを適切な幅に調整 */
    margin: auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center; /* 中央寄せにして見やすく */
}

/* 入力フォームのデザイン */
#character-form {
    display: flex;
    flex-direction: column; /* ✅ 縦に並べる */
    align-items: center;
    gap: 10px; /* ✅ フィールド間の余白 */
}

/* ラベルのデザイン */
#character-form label {
    font-weight: bold;
}

/* 入力フィールドのデザイン */
#character-form input {
    width: 50%; /* ✅ 入力欄をフォームの幅いっぱいにする */
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

/* 登録ボタンのデザイン */
#character-form button {
    width: 50%; /* ✅ ボタンも幅いっぱいにする */
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#character-form button:hover {
    background-color: #0056b3;
}


.character-card {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #f9f9f9;
}

.character-card img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    margin-right: 10px;
}


.btn {
    display: block;
    background-color: #28a745;
    color: white;
    padding: 10px;
    margin-top: 10px;
    text-decoration: none;
    border-radius: 5px;
}

.btn:hover {
    background-color: #218838;
}
.character-card button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    margin-top: 5px;
    cursor: pointer;
    border-radius: 5px;
}

.character-card button:hover {
    background-color: #0056b3;
}
img {
    display: block;
    margin: 10px auto;
    max-width: 150px;
    border-radius: 10px;
}

input[type="file"] {
    display: block;
    margin: 10px auto;
}
.profile-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    background-color: #f9f9f9;
    max-width: 600px;
    margin: auto;
}

.profile-image {
    margin-right: 20px;
    text-align: center;
}

.profile-image img {
    width: 480px;
    height: 600px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid #ccc;
}

.profile-info {
    flex: 1;
}

.profile-info button {
    margin: 5px;
}

/* チャット用アイコン一覧 */
.chat-icons-container {
    margin-top: 20px;
    text-align: center;
}

.chat-icons-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f9f9f9;
    min-height: 60px;
}

/* チャットアイコン画像 */
.chat-icon-preview {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    border: 1px solid #ddd;
    object-fit: cover;
}
