body {
    font-family: "MS Mincho", "YuMincho", serif;
    margin: 0;
    padding: 0;
    background-color: #333333;
    color: #D3D3D3;
}

.profile-container {
    max-width: 100%; /* ホームページの横幅に合わせる */
    margin: 0 auto;
    background-color: #333333;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.5);
}

.profile-header {
    position: relative;
    width: 100%; /* コンテナの幅に合わせる */
    height: 0;
    padding-bottom: 33.333%; /* 1500:500 = 3:1 の比率を維持 */
    overflow: hidden;
}

.header-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 動画や画像がヘッダーサイズにフィットする */
}

.profile-icon-container {
    position: relative;
    margin-top: -30px; /* アイコンとbioの間隔を狭める */
    padding-left: 20px;
}

.profile-icon {
    width: 80px; /* アイコンのサイズを小さくする */
    height: 80px;
    border-radius: 50%;
    border: 3px solid #333333;
}

.profile-info {
    padding: 20px;
    text-align: left;
}

.user-name-container {
    display: flex; /* ユーザー名とボタンを横並びに */
    align-items: center; /* 縦方向の中央揃え */
}

.profile-info h1 {
    margin: 0; /* マージンをリセットしてbioとの間隔を調整 */
    font-size: 24px;
    color: #D3D3D3;
}

.thoughts-button {
    background: none;
    border: none;
    color: #FFA500;
    font-size: 20px;
    cursor: pointer;
    outline: none;
    margin-left: 10px; /* ユーザー名とボタンの間隔を調整 */
}

.profile-info p {
    margin: 2px 0; /* bioの縦幅を抑えるために小さく設定 */
    color: #D3D3D3;
    font-size: 14px;
}

.tabs {
    display: flex;
    justify-content: space-around;
    border-bottom: 1px solid #FFA500;
}

.tab-button {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    color: #D3D3D3;
    outline: none;
}

.tab-button.active {
    color: #FFA500;
    border-bottom: 2px solid #FFA500;
}

.tab-content {
    display: none;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.tab-content.active {
    display: block;
    opacity: 1;
}

.book-item {
    display: flex;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #FFA500;
}

.book-text {
    flex: 1;
    text-align: left;
    padding-right: 20px;
}

.book-text h3 {
    margin: 0;
    font-size: 18px;
    color: #D3D3D3;
}

.book-text p {
    margin: 5px 0 0;
    color: #D3D3D3;
    font-size: 14px;
}

.book-cover-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 20px;
}

.book-cover {
    width: 80px;
    height: 120px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.7);
}

.book-price {
    font-size: 14px;
    color: #D3D3D3;
    margin: 0;
}

/* モーダルウィンドウのスタイル */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #333333;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #FFA500;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    position: relative;
    max-height: 70vh; /* モーダルの最大高さをビューポート高さの70%に設定 */
    overflow-y: auto; /* コンテンツが最大高さを超えたらスクロールバーを表示 */
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: #FFA500;
    cursor: pointer;
}

.thoughts-list {
    list-style-type: none;
    padding: 0;
}

.thoughts-list li {
    margin: 10px 0;
    font-size: 16px;
    color: #D3D3D3;
}

.thoughts-list li a {
    color: #FFA500;
    text-decoration: none;
}

.thoughts-list li a:hover {
    text-decoration: underline;
}
