/* ============================= */
/* 全体のスタイル */
/* ============================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-y: auto; /* スワイプ更新を考慮 */
    background-color: #0b0b30;
    color: #ab9c6f;
    text-align: center;
    font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", "Noto Sans JP", Arial, Helvetica, sans-serif;
}

/* ============================= */
/* 背景用キャンバス */
/* ============================= */
#starCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 150px;
    z-index: -100;
    pointer-events: none;
}

/* ============================= */
/* iframeのスタイル（メニュー用） */
/* ============================= */
iframe {
    top: 0;
    width: 100vw;
    height: 150px;
    display: block;
    border: none;
    overflow: hidden;
    scrollbar-width: none; /* Firefox */
}
iframe::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

/* ============================= */
/* コンテンツエリア（ページ全体の枠） */
/* ============================= */
.content {
    position: relative;
    text-align: center;
    margin: 20px auto;
    padding: 20px;
    width: 80%;
    max-width: 600px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

/* ============================= */
/* モーダル（画像拡大表示用） */
/* ============================= */
.modal {
    display: none; /* 初期状態では非表示 */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* 背景を暗くする */
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
}

.text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 200px; /* タイトルと説明文の幅を画像の半分に設定 */
    font-size: 10px;
    padding: 5px;
}

/* 縦長画面（portrait） */
@media (orientation: portrait) {
    .modal-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .modal img {
        max-width: 90vw;
        max-height: 50vh;
        object-fit: contain;
    }
}

/* 横長画面（landscape） */
@media (orientation: landscape) {
    .modal-content {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
    }

    .modal img {
        max-width: 90vw;
        max-height: 80vh;
        object-fit: contain;
    }
}

/* ============================= */
/* 画像一覧（サムネイル） */
/* ============================= */
.thumbnail {
    display: flex;
    flex-wrap: wrap; /* 折り返しを許可 */
    gap: 15px;
    list-style: none;
    justify-content: center; /* 中央揃え */
    width: 100%;
    margin: 10px auto;
}

.thumbnail li {
    width: 80px;
    height: 80px;
}

.thumbnail li img {
    width: 100%;
    height: 100%;
    border: 1px solid #ab9c6f;
    border-radius: 5px;
    transition: transform 0.2s ease-in-out;
    object-fit: cover; /* 画像が枠いっぱいになるよう調整 */
}

.thumbnail li img:hover {
    transform: scale(1.1);
}

/* ============================= */
/* フッター */
/* ============================= */
footer {
    margin-top: 100px;
    font-size: 10px;
}