/* 美術館の背景（index.cssの上書きが必要な場合） */
.museum-container {
    padding: 60px 20px;
    background-color: #f4f1ea; /* 少し温かみのある壁の色 */
    min-height: 80vh;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 額縁のスタイル */
.art-frame {
    background: #fff;
    padding: 15px;
    border: 12px solid #3d2b1f; /* ダークウッドの枠 */
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    text-align: center;
    transition: 0.3s;
}

.art-frame:hover {
    transform: translateY(-5px);
}

.art-frame img {
    width: 100%;
    height: auto;
    border: 1px solid #ccc; /* キャンバスの境界線 */
}

.art-title {
    margin-top: 15px;
    font-family: "Georgia", serif;
    font-size: 0.9rem;
    color: #444;
}
/* 管理画面へ飛ぶボタンの装飾 */
.admin-button {
    background-color: #3d2b1f; /* 額縁と同じ濃い茶色 */
    color: #fff !important;    /* 文字は白 */
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background-color 0.3s;
}

.admin-button:hover {
    background-color: #5d4037; /* ホバー時に少し明るく */
}

/* 美術館の壁の背景 */
.museum-wall {
    background: radial-gradient(circle, #555 0%, #222 100%); /* 中央が明るいライティング効果 */
    padding: 60px 20px;
    min-height: 100vh;
}

.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 豪華な額縁のデザイン */
.art-frame {
    background: #4a3728; /* 木枠の色 */
    padding: 20px;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.8), /* 壁に落ちる影 */
        inset 0 0 15px rgba(0,0,0,0.5); /* 枠の内側の影 */
    border: 4px solid #36281e; /* 枠の外縁 */
    transition: transform 0.3s ease;
}

.art-frame:hover {
    transform: scale(1.03) translateY(-10px);
}

.inner-frame {
    background: white; /* マット紙の部分 */
    padding: 15px;
    border: 2px solid #ccc; /* 絵と枠の間の仕切り */
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.2);
}

.art-frame img {
    max-width: 300px;
    height: auto;
    display: block;
    filter: sepia(10%) contrast(105%); /* 少し油絵っぽく見せる */
}

.admin-entry-link {
    background: #e91e63;
    color: white !important;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* 美術館の壁：スポットライト効果 */
.gallery-wall {
    background: radial-gradient(circle at 50% -20%, #666 0%, #222 80%);
    padding: 80px 20px;
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
}

/* 額縁本体：多重の影で立体感を出す */
.frame {
    background: #4a3728; /* 木枠の色 */
    padding: 20px;
    border: 4px solid #36281e; /* 外枠の縁 */
    box-shadow: 
        0 30px 50px rgba(0,0,0,0.7), /* 壁に落ちる深い影 */
        inset 0 0 15px rgba(0,0,0,0.5); /* 枠自体の凹凸感 */
    transition: transform 0.4s ease;
}

/* 額縁の中の白いマット（絵を引き立てる部分） */
.frame-inner {
    background: #fdfdfd;
    padding: 15px;
    box-shadow: inset 2px 2px 8px rgba(0,0,0,0.3);
    border: 1px solid #ccc;
}

.frame img {
    display: block;
    max-width: 320px;
    height: auto;
    /* 油絵のような質感を少し出す */
    filter: contrast(1.05) saturate(1.1);
}

/* 作品が浮き上がるホバー効果 */
.frame:hover {
    transform: scale(1.05) translateY(-10px);
}

/* 管理者ボタンを浮かさないための調整 */
.admin-btn {
    display: inline-block;
    margin-top: 50px;
    color: #aaa;
    text-decoration: none;
    font-size: 0.8rem;
}
/* 美術館の壁面：上からスポットライトが当たっているようなグラデーション */
.gallery-wall {
    background: radial-gradient(circle at 50% -20%, #444 0%, #111 80%);
    padding: 100px 20px;
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 70px;
}

/* 豪華な額縁本体 */
.art-frame {
    position: relative;
    background: #3d2b1f; /* 木枠のメイン色 */
    padding: 24px; /* 額縁の太さ */
    /* 木枠の彫り込み（ボーダーを何重にも重ねて表現） */
    border: 4px solid #5d4037; 
    outline: 2px solid #2d1b0f;
    outline-offset: -12px;
    /* 壁への落とし影と額縁の光沢 */
    box-shadow: 
        0 40px 60px rgba(0,0,0,0.8), /* 壁に落ちる深い影 */
        inset 0 0 20px rgba(0,0,0,0.6); /* 額縁の内側の沈み込み */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.art-frame:hover {
    transform: scale(1.04) translateY(-15px);
}

/* 額縁の中の白いマット紙部分 */
.inner-mat {
    background: #fdfdfd;
    padding: 20px;
    box-shadow: inset 2px 2px 10px rgba(0,0,0,0.3);
    border: 1px solid #ddd;
}

.art-frame img {
    display: block;
    max-width: 350px; /* 絵のサイズ */
    height: auto;
    border: 1px solid #222; /* 絵の境界線 */
}

/* 管理画面への入り口を馴染ませる */
.admin-link-box {
    width: 100%;
    text-align: center;
    margin-top: 50px;
    opacity: 0.4;
}
.admin-link-box a { color: #fff; text-decoration: none; font-size: 0.8rem; }
/* 作品1セットの並び */
.art-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* 作品ラベル（解説板） */
.art-label {
    background: #fdfdfd;
    padding: 8px 15px;
    border-left: 5px solid #e91e63; /* 同好会のアクセントカラー */
    box-shadow: 3px 3px 10px rgba(0,0,0,0.5);
    min-width: 140px;
    color: #333;
}
.label-title { display: block; font-size: 0.6rem; color: #888; text-transform: uppercase; }
.label-name { font-family: 'Yomogi', cursive; font-size: 1.1rem; font-weight: bold; }

/* 拡大ライトボックス */
#lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}
#lightbox img {
    max-width: 90%;
    max-height: 85%;
    box-shadow: 0 0 50px rgba(255,255,255,0.1);
}
#lightbox p { color: #fff; margin-top: 20px; font-size: 0.8rem; opacity: 0.6; }


/* ベースのグリッド設定（PC・スマホ共通で3列） */
.gallery-wall {
    background: radial-gradient(circle at 50% -20%, #444 0%, #111 80%);
    padding: 60px 10px; /* 横の余白を少し削る */
    min-height: 100vh;
    display: grid;
    /* 強制的に3列にする設定 */
    grid-template-columns: repeat(2, 1fr); 
    gap: 15px; /* スマホ用に間隔を狭める */
    align-items: start;
}

/* スマホ用の微調整（画面幅768px以下） */
@media (max-width: 768px) {
    .gallery-wall {
        gap: 10px; /* さらに間隔をタイトに */
        padding: 40px 5px;
    }

    .art-frame {
        padding: 8px; /* 額縁を細くして絵を大きく見せる */
        border: 2px solid #5d4037;
        outline-offset: -5px; /* 彫り込みの位置調整 */
    }

    .inner-mat {
        padding: 5px; /* マット紙部分も細く */
    }

    .art-frame img {
        max-width: 100%; /* 枠内に収める */
    }

    /* 解説板（ラベル）をスマホでも読みやすく */
    .art-label {
        min-width: unset;
        width: 90%;
        padding: 5px;
        margin-top: 5px;
    }
    .label-name {
        font-size: 0.8rem; /* 文字を少し小さく */
    }
}

/* PCなどの広い画面では余裕を持たせる */
@media (min-width: 769px) {
    .gallery-wall {
        grid-template-columns: repeat(3, 350px); /* 3列固定、幅指定 */
        justify-content: center;
        gap: 60px;
    }
}

/* 管理者ログインボタンの親要素 */
.admin-link-box {
    text-align: center; /* 中央寄せ */
    margin: 50px 0;    /* 上下に余白を作る */
    clear: both;       /* 回り込み解除（必要であれば） */
}

/* ボタン本体のデザイン */
.admin-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: rgba(255, 255, 255, 0.1); /* 控えめな半透明白 */
    color: #fff;                                 /* 文字色を白に */
    text-decoration: none;                       /* 下線を消す */
    border: 1px solid #fff;                      /* 白い枠線 */
    border-radius: 4px;                          /* 角を少し丸める */
    font-family: 'Yomogi', cursive;              /* フォントを合わせる */
    transition: all 0.3s ease;                   /* 変化を滑らかに */
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* マウスを乗せた時の動き */
.admin-btn:hover {
    background-color: #fff;                      /* 背景を白にする */
    color: #333;                                 /* 文字色を暗くする */
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5); /* ぼんやり光らせる */
}