/* ===================================
   ギャラリーページ専用スタイル
=================================== */

.gallery-page {
    background-color: #0a0a0a;
    font-family: "Noto Serif JP", "Shippori Mincho", serif;
    color: #F0F0F0;
}

/* メインコンテナ */
.gallery-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px; /* ヘッダー分の余白 */
}

/* ローディング表示 */
.gallery-loading {
    text-align: center;
    font-size: 1.2rem;
    color: #F0F0F0;
    padding: 2rem;
}

/* エラー表示 */
.gallery-error {
    text-align: center;
    font-size: 1.2rem;
    color: #ff6b6b;
    padding: 2rem;
}

/* ギャラリーコンテナ */
.gallery-container {
    width: 100%;
    height: calc(100vh - 80px); /* ヘッダーとフッター分を引く */
    position: relative;
    overflow: hidden;
}

/* 背景画像 */
.gallery-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 25% !important;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #0a0a0a;
}

/* テキストオーバーレイ */
.gallery-overlay {
    position: absolute;
    bottom: 5%;
    right: 5%;
    max-width: 500px;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* コンテンツ */
.gallery-content {
    text-align: center;
}

/* タイプ表示（絵画 or 切手） */
.gallery-type {
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    opacity: 0.8;
    text-transform: uppercase;
}

/* タイトル */
.gallery-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    color: #F0F0F0;
}

/* 説明文 */
.gallery-description {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #e0e0e0;
    font-weight: 400;
}

/* 制作年 */
.gallery-year {
    font-size: 0.9rem;
    opacity: 0.7;
    letter-spacing: 0.1em;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .gallery-bg {
        background-size: 50% !important;
        background-position: center top 15% !important;
    }

    .gallery-overlay {
        bottom: 0;
        right: 0;
        left: 0;
        max-width: none;
        padding: 1.5rem;
        background: rgba(0, 0, 0, 0.75) !important;
        border-radius: 0;
    }

    .gallery-title {
        font-size: 1.5rem;
    }

    .gallery-description {
        font-size: 0.9rem;
    }

    .gallery-main {
        padding-top: 60px;
    }

    .gallery-container {
        height: calc(100vh - 60px);
    }
}

@media (max-width: 480px) {
    .gallery-bg {
        background-size: 60% !important;
        background-position: center top 10% !important;
    }

    .gallery-overlay {
        padding: 1.25rem;
        background: rgba(0, 0, 0, 0.85) !important;
    }

    .gallery-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .gallery-description {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .gallery-type,
    .gallery-year {
        font-size: 0.8rem;
    }
}

/* フェードインアニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-container {
    animation: fadeIn 0.8s ease-out;
}

.gallery-overlay {
    animation: fadeIn 1s ease-out 0.3s both;
}
