/* 全体レイアウト */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #ddb9b9;
    padding-top: 70px;
}

.profile-container {
    margin-top: 80px;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    display: flex;
    flex-direction: row;
    gap: 20px;
}

/* 左半分：立ち絵 */
.profile-image {
    max-width: 600px;  /* 最大幅 */
    max-height: 800px;       /* 親要素内で幅を100%に設定 */
    height: auto;      /* 高さを自動調整 */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;  /* 背景を透明に設定 */
    border: 2px solid #ffffff;     /* 白い枠を追加 */
    padding: 10px;
    border-radius: 10px;
}


.profile-image img {
    max-width: 100%;
    max-height: 600px;
    border-radius: 10px;

}

/* 右半分 */
.main-content {

    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 上段：アイコンリスト */
/* アイコンリスト */
.icon-list ul {
    display: grid;
    grid-template-columns: repeat(10, 40px);  /* PCの時は10列 */
    grid-template-rows: repeat(3, 40px);  /* 3行 */
    gap: 10px;  /* アイコン間の余白 */
    background-color: transparent;
    padding: 10px;
    justify-items: center;  /* アイテムを中央揃え */
    align-items: center;    /* アイテムを縦方向に中央揃え */
}

/* アイコン枠 */
.icon-item {
    width: 40px;  /* アイコン枠の幅 */
    height: 40px; /* アイコン枠の高さ */
    display: flex;
    justify-content: center;

    border: 1px solid #dddddd;
    background-color: transparent;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* アイコン画像 */
.icon-item img {
    width: 100%;
    height: 100%;
    border-radius: 5px;
    cursor: pointer;
}

/* 空のアイコン枠 */
.empty-icon {
    width: 100%;
    height: 100%;
    background-color: #e0e0e0;
    border-radius: 5px;
}


    /* アイコンリストのグリッド設定 */
    .icon-list ul {
        grid-template-columns: repeat(10, 35px);  /* アイコンが小さくなっても10列保持 */
        grid-template-rows: repeat(3, 35px);      /* 3行保持 */
    }


/* 下段：プロフィール本文 */
.profile-description {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex: 1;
}

.profile-description h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.profile-description p {
    font-size: 16px;
    line-height: 1.5;
    color: #555;
}
h2{
    color: #191970;
}
/* レスポンシブ調整 */
@media (max-width: 767px) {
    .profile-container {
        flex-direction: column;
        padding: 10px;
    }

    .profile-description {
        padding: 15px;
    }

    /* アイコンのサイズを少し小さくする */
    .icon-item {
        width: 35px;
        height: 35px;
    }

    /* アイコンリストのグリッド設定 */
    .icon-list ul {
        grid-template-columns: repeat(10, 35px);  /* アイコンが小さくなっても10列保持 */
        grid-template-rows: repeat(3, 35px);      /* 3行保持 */
    }
}

