<!DOCTYPE html>
<html lang="ja">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>画像一覧</title>
    <style>
        /* スタイル */
        body {
            background-color: #1a1a1a;
            color: #fff;
            display: flex;
            flex-direction: column;
            align-items: center;
            margin: 0;
            font-family: Arial, sans-serif;
            user-select: none;
        }

        h1 {
            margin: 5px 0;
            font-size: calc(12px + 1vw);
            text-align: center;
        }

        .account {
            margin: 10px;
            text-align: center;
            width: 100%;
            max-width: 1200px;
        }

        .account-title {
    font-size: calc(12px + 1vw);
    font-weight: bold;
    margin-bottom: 10px;
    color: #FF1493;  /* かっこいいピンク（ディープピンク）に変更 */
    cursor: pointer; /* クリック可能であることを示す */
}



        .images {
    display: none; /* 初期状態では非表示 */
    flex-direction: column; /* 画像を縦に並べる */
    align-items: center; /* 画像を中央揃えにする */
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.images img {
    max-height: 100px;
    max-width: 120px;
    border-radius: 8px;  /* 角を丸くする */
    border: 3px solid #FFD700;  /* 明るい金色で縁をつける */
    cursor: pointer;
    transition: transform 0.2s ease;
}

.images img:hover {
    transform: scale(1.05);  /* ホバー時に拡大する */
    border-color: #FF6347;  /* ホバー時に縁の色を変更（例えばトマト色） */
}


        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }

        .modal img {
            max-width: 90%;
            max-height: 90%;
        }

        .modal.open {
            display: flex;
        }

        .modal.open img {
            cursor: zoom-out;
        }
    </style>
</head>
<body>

    <h1>#が垢番号 値下げ不可</h1>
    <h1>名誉画像がない垢は名誉2　質問はコメント下さい</h1>
      <h1>番号ダブルクリックで画像表示　画像クリックで拡大</h1>

    <!-- モーダル用の画像拡大表示 -->
    <div id="modal" class="modal" onclick="closeModal()">
        <img id="modal-img" src="" alt="modal image">
    </div>

    <div id="accounts-container"></div>

    <script>
        // 右クリックを無効にする
        document.addEventListener('contextmenu', function (event) {
            event.preventDefault();  // 右クリックメニューの表示を防ぐ
        });

        // F12キーを無効にする
        document.addEventListener('keydown', function (event) {
            if (event.key === 'F12' || event.keyCode === 123) {
                event.preventDefault();  // F12キーの動作を防ぐ
            }
        });

        // 各アカウントごとに画像のURLを配列として管理
        const accounts = [
            {
                title: '#1 - 1万8千円',
                images: [
                    "https://imgur.com/YzKsjxz.jpg",
                    "https://imgur.com/NDyFJQE.jpg",
                    "https://imgur.com/6a7OuOC.jpg",
                    "https://imgur.com/ytYNwXk.jpg",
                    "https://imgur.com/LzddIMp.jpg",
                    "https://imgur.com/d4S3p6n.jpg"
                ]
            },
            {
                title: '#2 - 1万5千円',
                images: [
                    "https://imgur.com/of2Z7zt.jpg",
                    "https://imgur.com/FD97Izi.jpg",
                    "https://imgur.com/NpQ7hlt.jpg",
                    "https://imgur.com/4kMsnaq.jpg",
                    "https://imgur.com/fEGPajf.jpg",
                    "https://imgur.com/cs9TGGA.jpg"
                ]
            },
            {
                title: '#3 - 7千円',
                images: [
                    "https://imgur.com/4S8HlSq.jpg",
                    "https://imgur.com/TOTm1at.jpg",
                    "https://imgur.com/vMBlNrs.jpg",
   　　　　　　　　　 "https://imgur.com/7HFlzDs.jpg",
                    "https://imgur.com/NkTMJcs.jpg",
                  "https://imgur.com/aL9Ceod.jpg"
                ]
            },
            {
                title: '#4 - 5千円',
                images: [
                    "https://i.imgur.com/MDLChA7.jpg",
                    "https://i.imgur.com/U4kbJUH.jpg",
                    "https://i.imgur.com/QKVBZSS.jpg",
                    "https://i.imgur.com/qVKcaQW.jpg",
                    "https://imgur.com/rTraVFD.jpg"
                ]
            },
            {
                title: '#5 - 1500RP - 8千円',
                images: [
                    "https://imgur.com/41lIwKe.jpg",
                    "https://imgur.com/tPKhF2v.jpg",
                    "https://imgur.com/x9GbxTA.jpg",
                    "https://imgur.com/vPZD220.jpg",
                    "https://imgur.com/tuEfHx6.jpg"
                ]
            },
            {
                title: '#6 - 8千円',
                images: [
                    "https://imgur.com/0GedwFx.jpg",
                    "https://imgur.com/SXUFRNe.jpg",
                    "https://imgur.com/29EVR1N.jpg",
                    "https://imgur.com/kIMyObZ.jpg",
                    "https://imgur.com/NC1eWJ2.jpg"
                ]
            },
            {
                title: '#7 - 6千円',
                images: [
                    "https://imgur.com/AAo4J1m.jpg",
                    "https://imgur.com/qiqJhPk.jpg",
                    "https://imgur.com/TPN6dZj.jpg",
                    "https://imgur.com/Cp2zMPP.jpg",
                    "https://imgur.com/0G73Hed.jpg"
                ]
            },
            {
                title: '#8 - 1850RP - 9千円',
                images: [
                    "https://imgur.com/yVyGDZV.jpg",
                    "https://imgur.com/813QGdE.jpg",
                    "https://imgur.com/oZuaRMY.jpg",
                    "https://imgur.com/eZZeN4a.jpg",
                    "https://imgur.com/JJOkYD1.jpg"
                ]
            },
            {
                title: '#9 - 8千円',
                images: [
                    "https://imgur.com/lIb42pq.jpg",
                    "https://imgur.com/PEAyall.jpg",
                    "https://imgur.com/5uR20xt.jpg",
                    "https://imgur.com/PKMhXXC.jpg",
                    "https://imgur.com/u4Rk87O.jpg"
                ]
            },
            {
                title: '#10 - 8千円',
                images: [
                    "https://imgur.com/05PwxBp.jpg",
                    "https://imgur.com/gvrOaMR.jpg",
                    "https://imgur.com/SIrfTwo.jpg",
                    "https://imgur.com/Mgs3X0C.jpg"
                ]
            },
            {
                title: '#11 - 8千円',
                images: [
                     "https://imgur.com/3a0dRt9.jpg",
                    "https://imgur.com/wZhn25W.jpg",
             　　　 "https://imgur.com/Cs6Uahg.jpg",
                    "https://imgur.com/H2gg7sz.jpg"
                ]
            },
            {
                title: '#12 - 8千円',
                images: [
                    "https://imgur.com/gk8zGC7.jpg",
                    "https://imgur.com/TKckmiH.jpg",
                    "https://imgur.com/jLGFz28.jpg",
                    "https://imgur.com/CKTJqed.jpg",
                    "https://imgur.com/VIJJkmF.jpg"
                ]
            }
        ];

        // アカウントを動的に挿入
        // アカウントを動的に挿入
const accountsContainer = document.getElementById('accounts-container');
let lastOpened = null;  // 最後に開いた画像

accounts.forEach(account => {
    const accountDiv = document.createElement('div');
    accountDiv.classList.add('account');

    const accountTitle = document.createElement('div');
    accountTitle.classList.add('account-title');
    accountTitle.textContent = account.title;

    // クリックで画像の表示/非表示を切り替え
    accountTitle.onclick = function() {
        const imagesDiv = accountDiv.querySelector('.images');
        
        // もし前に開いた画像があったら、閉じる
        if (lastOpened && lastOpened !== imagesDiv) {
            lastOpened.style.display = 'none';
        }

        // 画像の表示状態を切り替え
        imagesDiv.style.display = imagesDiv.style.display === 'none' ? 'flex' : 'none';
        
        // 最後に開いた画像を更新
        lastOpened = imagesDiv.style.display === 'flex' ? imagesDiv : null;
    };

    const imagesDiv = document.createElement('div');
    imagesDiv.classList.add('images');

    account.images.forEach(imageUrl => {
        const img = document.createElement('img');
        img.src = imageUrl;
        img.alt = 'account image';
        img.onclick = function() {
            openModal(img.src);
        };
        imagesDiv.appendChild(img);
    });

    accountDiv.appendChild(accountTitle);
    accountDiv.appendChild(imagesDiv);
    accountsContainer.appendChild(accountDiv);
});

// モーダルを開く
function openModal(src) {
    const modal = document.getElementById('modal');
    const modalImg = document.getElementById('modal-img');
    modalImg.src = src;
    modal.classList.add('open');
}

// モーダルを閉じる
function closeModal() {
    const modal = document.getElementById('modal');
    modal.classList.remove('open');
}

    </script>

</body>
</html>
