body{
    background: url(/my_project/static/img/pt.svg) top center;
    background-size: 1.4rem auto;
}

.container {
    margin: 0 auto;
    max-width: 900px;
    padding: 20px 50px;
    margin-top: 100px;
    background-color: white;
}


.title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
    padding: 10px;
    border-bottom: 2px solid #aaa;
}

.profile-section {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    margin-left: -35px;
}


.profile-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    /*background-image: url('http://localhost/DiscordTest/home/img/man.png');*/
}

.matching-counter {
    position: relative;
    width: 28px;
    height: 28px;
    left: 34px;
    top: -9px;
    margin-top: -25px;
    z-index: 1;
}

.matching-counter img {
    width: 100%; /* 親要素の幅に合わせて調整 */
    display: block; /* 画像がブロックレベル要素になるように設定 */
}

.matchCount {
    position: absolute; /* 絶対位置指定 */
    color: white;
    top: 50%; /* 親要素の中央に配置 */
    left: 50%; /* 親要素の中央に配置 */
    transform: translate(-50%, -50%); /* 中央からずらすことで真ん中に配置 */
    font-size: 10px; /* フォントサイズを適切に設定 */
    margin: 0; /* 余白をゼロに設定 */
}

#iconImage {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    /*background-image: url('http://localhost/DiscordTest/home/img/man.png');*/
    border: solid 1px #4b4b4b;
}

.profile-icon-wrapper {
    position: relative;
    display: inline-block;
}

.profile-icon {
    transition: background-color 0.3s;
}

.edit-icon {
    position: absolute;
    top: 0;
    right: 0;
    width: 24px; /* サイズは適切に調整 */
    height: 24px; /* サイズは適切に調整 */
    cursor: pointer;
}



.profile-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 90%;
}

#shortMessageInput{
    width: 500px;
}

.profile-name {
    font-size: 20px;
    font-weight: bold;
    align-items: center;
}


.profile-description {
    font-size: 16px;
}

.profile-menu {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #666;
    float: right;
}

.profile-dropdown {
    position: absolute;
    top: 4px;
    right: -51px;
    background: white;
    transform: translateY(5px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    z-index: 1;
    font-size: 15px;
}

.profile-dropdown a {
    text-decoration: none;
    color: #333;
    padding: 5px;
    transition: background-color 0.3s;
}

.profile-dropdown a:hover {
    background-color: #f5f5f5;
}

.hidden {
    display: none;
}

.profile-divider {
    width: 100%; /* 画面全体の幅に合わせる */
    height: 1px; /* 線の太さ */
    background-color: #e0e0e0; /* 色を薄く設定 */
    margin-top: 30px;
    margin-bottom: 30px;
}


.collab-btn {
    margin-right: 10px; /* これを追加して、profile-menu ボタンとの間に間隔を確保します */
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    float: right;
}

.collab-btn:hover {
    background-color: #45a049;
}


.collab-btn-notstatus{
    background-color: #c7c7c7;
}


/* コラボ申請ポップアップページ */


.collab-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明の背景 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#collab-form{
    display: flex;
    justify-content: space-around;
}

.popup-content {
    background-color: white;
    width: 70%;
    max-width: 500px; /* 必要に応じて変更 */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.popup-title {
    text-align: center;
    background-color: #4caf50;
    padding: 10px 10px;
    margin: -20px -20px 20px -20px;
    color: white;
}

.collab-to {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-methods, .collab-content {
    margin-bottom: 20px;
}

.contact-methods label{
    display: flex;align-items: center;padding: 5px 10px;
}

.collab-content textarea {
    width: 100%;
    height: 400px;
    resize: vertical;
}

.hidden {
    display: none;
}

.user-icon {
    width: 20px;           /* サイズを小さくする */
    height: 20px;          /* サイズを小さくする */
    margin-right: 10px;
    border-radius: 50%;    /* これによりアイコンは完全に円形になります */
}

.profile-kome{
    font-size: 12px;
}


.submit-collab {
    background-color: #4CAF50;
    color: #ffffff;
    border: 1px solid #ddd;
    padding: 8px 16px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
    border-radius: 4px;
    margin: 0;
}

.cancel-collab{
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    padding: 8px 16px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
    border-radius: 4px;
    margin: 0;
}

.submit-collab:hover {
    opacity: 0.9;
}

.cancel-collab:hover {
    opacity: 0.9;
}



/* レビュー */

.profile-reviews{
    margin-left: 90px;
    margin-top: 20px;
}

.star-rating {
    font-family: Arial, sans-serif;
    font-size: 1em; /* 星のサイズ */
    color: #ffbf00; /* 星の色 */
    cursor: pointer;
}
/* 全星 */
.full-star {
    color: #ffbf00; /* 金色 */
}

/* 半星 */
.half-star {
    color: #ffbf00; /* 金色 */
}

/* 空星 */
.empty-star {
    color: #cccccc; /* 灰色 */
}

/* プロフィール下 */


.sns-section {
    display: flex;
    align-items: center;
    gap: 20px; 
    margin-top: 20px; 
}

.sns-title {
    font-weight: bold;
    width: 100px;
}

.sns-group {
    display: flex;
    gap: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    overflow: hidden; 
    width: 100%;
    align-items: flex-start;
}

.sns-item {
    display: flex;
    align-items: center;
    gap: 10px; 
    padding: 10px;
}

.sns-item:last-child {
    border-right: none; 
}

.sns-item img {
    width: 24px;
    height: 24px;
}

.youtube-data{
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
}

.youtube-data p{
    margin: 5px 0px 0 53px;
}

.youtube-link{
    display: flex;text-decoration: none;
}
.youtube-link span{
    color: black;
}

.info-section {
    display: flex;
    align-items: center;
    gap: 20px; 
    margin-top: 20px; 
}

.info-title {
    font-weight: bold;
    width: 100px;
}

.info-group {
    display: flex;
    gap: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    overflow: hidden; 
    width: 100%;
    flex-wrap: wrap;
    min-height: 43px;
}

.info-group.group-vertical{
    flex-direction: column;
}

.info-item {
    display: flex;
    align-items: center;
    padding: 10px;
}

.info-item2 {
    display: flex;
    align-items: center;
    padding: 10px;
}

.info-icon {
    width: 24px;  /* アイコンのサイズ調整 */
    height: 24px; /* アイコンのサイズ調整 */
}

.info-item.item-vertical{
    gap: 10px;
}

.info-item:last-child {
    border-right: none; 
}



/* 参考動画 */

.video-section {
    margin-top: 90px;
}

.videos {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.video-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #e9e9e9;
}

.video-item iframe {
    width: 100%;
    height: 200px; /* 適切な高さに調整してください */
    border: none;
}

.video-title {
    margin-top: 10px;
}



/* 編集用のチェックボックス */

.edit-checkbox {
    display: none;
}

.edit-mode .edit-checkbox {
    display: inline-block;
}


/* 保存 */


.show-save {
    display: block;
}

.save-button {
    display: none;
    background-color: #FF6584;   /* 明るいピンク色 */
    color: #FFFFFF;              /* 白色のテキスト */
    border: none;                /* ボーダーなし */
    padding: 10px 20px;          /* パディング */
    border-radius: 30px;         /* 丸みを持ったボタン */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);  /* シンプルな影 */
    font-weight: bold;           /* テキストは太字に */
    font-size: 16px;             /* テキストのサイズ */
    cursor: pointer;             /* ホバー時にカーソルを指のアイコンに */
    transition: background-color 0.3s, transform 0.3s;  /* スムーズなトランジション */
    margin-top: 100px;
    width: 200px;
    height: 60px;
    display: block;  /* ブロックレベル要素として表示 */
    margin-left: auto; /* 左の余白を自動に */
    margin-right: auto; /* 右の余白を自動に */
}

.save-button:hover {
    background-color: #FF3366;   /* ホバー時の背景色を少し濃く */
    transform: scale(1.05);      /* ホバー時に少し大きく */
}

.save-button:active {
    transform: scale(1);         /* クリック時にオリジナルのサイズに戻る */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);  /* クリック時の影を少し浅く */
}




/* レビュー */

.review-title{
    margin-top: -138px;
}

.reviews-section {
    max-width: 700px; /* Or the max width you prefer */
    background-color: white; /* Light gray background */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 80px;
}


/* 平均評価と評価分布のスタイル */
.average-rating {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.average-rating-value {
    text-align: left;
    margin-right: 50px;
    margin-left: 30px;
}

.rating-number {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.average-rating-kome{
    font-size: 12px;
    margin: 0;
}

.rating-stars {
    color: #ffbf00;
    font-size: 20px;
    margin: 0;
}

.rating-distribution .rating-level {
    color: #ffbf00;
    margin-bottom: -2px;
}

.distribution-count{
    color: black;
}

/* レビューコンテナとアイテムのスタイル */
.reviews-container {
    width: 100%;
    margin-left: 20px;
    margin-right: 20px;
}

.review-item {
    /* 既存のスタイル */
    cursor: pointer; /* レビュー項目をクリック可能にする */
}

.review-body {
    display: none; /* デフォルトではレビューの詳細を隠す */
}


.rating-count {
    color: black; /* 黒色の文字 */
}

/* レビューリスト */

.review-item {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.review-header {
    padding: 10px;
    cursor: pointer;
    background-color: #f9f9f9;
    display: flex;
    justify-content: flex-start;
}

.review-body {
    padding: 10px;
    background-color: #fff;
    font-size: 14px;
}

.review-date{
    max-width: 200px;
    min-width: 130px;
}

.review-rating{
    color: #ffbf00;
    margin: 0 20px;
    min-width: 110px;
}

.review-section{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 214px;
}

.review-impression-summary {
    flex-grow: 1; /* 残りのスペースを埋める */
    margin: 0 10px; /* 左右の余白 */
    font-size: 14px;
}


.review-toggle-button {
    cursor: pointer;
    margin-left: auto; /* ボタンを右端に配置 */
}


.pagination {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.page-number {
    cursor: pointer;
    margin: 0 5px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.page-number:hover {
    background-color: #f0f0f0;
}


.Favorite-btn{
    margin-bottom: 50px;
    padding: 8px 16px;
    background-color: #fffaeb;
    color: #2f2f2f;
    border: 1px solid #ffbf00;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.Favorite-btn:hover{
    background-color: #efb402;
}


.Favorited-btn{
    margin-bottom: 50px;
    padding: 8px 16px;
    background-color: #ffbf00;
    color: #2f2f2f;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.Favorited-btn:hover{
    background-color: #efb402;
}



/* 通報 */


.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 600px;
}

.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.close2 {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close2:hover,
.close2:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-content input[type="text"], 
.modal-content textarea {
    width: 100%; /* 全幅にする */
    padding: 10px; /* パディングで余白を与える */
    margin: 10px 0; /* 上下のマージン */
    display: inline-block; /* 表示を整える */
    border: 1px solid #ccc; /* ボーダー */
    border-radius: 4px; /* 角を丸くする */
    box-sizing: border-box; /* ボックスモデルの設定 */
}

.modal-content textarea {
    height: 150px; /* テキストエリアの高さ */
    resize: vertical; /* 垂直方向のみサイズ変更可能にする */
}

.modal-content button {
    width: 100%; /* 全幅にする */
    padding: 14px 20px; /* パディング */
    margin: 8px 0; /* マージン */
    border: none; /* ボーダーなし */
    border-radius: 4px; /* 角を丸くする */
    cursor: pointer; /* カーソルをポインターに */
    background-color: #4CAF50; /* 背景色 */
    color: white; /* 文字色 */
}



.modal-content button:hover {
    background-color: #45a049; /* ホバー時の背景色 */
}

#closeConfirm{
    width: 100%; /* 全幅にする */
    padding: 14px 20px; /* パディング */
    margin: 8px 0; /* マージン */
    border: none; /* ボーダーなし */
    border-radius: 4px; /* 角を丸くする */
    cursor: pointer; /* カーソルをポインターに */
    background-color: #8c8c8c; /* 背景色 */
    color: white; /* 文字色 */
}

#closeConfirm:hover{
    background-color: #a7a7a7; /* 背景色 */
}



.hidden{
    display: none;
}

.profile-login-text{
    background-color: #c6c6c6;
    width: 100%;
    height: 1000px;
}

.profile-login-text p{
    text-align: center;
    padding-top: 30px;
}







/* 全体のスタイル */
.compatibility-score {
    font-family: Arial, sans-serif;
    color: #333;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-content: flex-end;
    flex-wrap: wrap;
}

/* ラベルのスタイル */
.compatibility-score .label {
    font-size: 16px;
    color: #666;
    margin-bottom: 5px;
}


.compatibility-score img{
    height: 23px;
    margin-bottom: -3px;
    margin-left: 5px;
}

/* 相性テキストのスタイル */
.compatibility-rating {
    font-size: 22px;
    font-weight: bold;
    margin-top: 5px;
    padding-bottom: 4px;
    border-bottom: 2px solid #ddd;
    width: 160px;
}

/* 各相性レベルのシンプルな色分け */
.rating.high {
    color: #4CAF50; /* 緑 */
}

.rating.good {
    color: #2196F3; /* 青 */
}

.rating.average {
    color: #FFC107; /* 黄色 */
}

.rating.low {
    color: #FF9800; /* オレンジ */
}

.rating.very-low {
    color: #F44336; /* 赤 */
}

/* 数値表示のスタイル */
.score-number {
    font-size: 18px;
    font-weight: bold;
    color: #555;
    opacity: 0; /* 初期状態は非表示 */
    transition: opacity 0.5s ease; /* フェードインのトランジション */
    margin-left: 10px;
}

/* compatibility-ratingホバー時に数値を表示 */
.compatibility-rating:hover + .score-number {
    opacity: 1;
}








/* スマートフォン用のスタイル */
@media screen and (max-width: 768px) {

    .container{
        padding: 20px 13px;
        margin-top: 10px;
    }

    .profile-section{
        flex-direction: column;
        margin-left: 0px;
    }

    .matching-counter {
        left: 27px;
        top: 36px;
    }

    .collab-btn{
        position: absolute;
        top: -86px;
        left: 70%;
        width: 105px;
    }

    .profile-menu{
        position: absolute;
        top: 40px;
        right: 10%;
    }

    .profile-description{
        text-align: center;
    }

    .profile-details{
        align-items: center;
    }

    .youtube-data p{
        margin: 5px 0px 0 0px;
    }

    .sns-group{
        flex-direction: column;
    }

    .sns-title{
        font-size: 14px;
    }

    .info-title{
        font-size: 14px;
    }

    .videos{
        flex-direction: column;
    }

    .hint-content{
        width: 330px;
    }

    .profile-reviews{
        text-align: center;
        margin-top: 20px;
        margin-left: 0px;
    }

}


