@charset "UTF-8";

/* 各地の風景写真ギャラリー。共通クローム（ヘッダー/フッター/背景）は common.css。
   画像一覧は landscape-data.js（window.LANDSCAPE_PHOTOS）を landscape.js が描画。 */

/* ギャラリー要素のリセット */
.gallery-grid,
.gallery-grid *,
.gallery-item,
.gallery-item *,
.image-container,
.image-container * {
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}

/* フッター（common.css 上書き） */
.footer {
    padding: 3rem 5% !important;
    margin-top: 5rem !important;
}

.footer-content {
    max-width: 1400px !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 2rem !important;
}

.footer-bottom {
    text-align: center !important;
    margin-top: 2rem !important;
    padding-top: 2rem !important;
}

/* レイアウト */
.main-content {
    margin-top: 100px;
    position: relative;
    z-index: 10;
}

.gallery-section {
    margin: 0 !important;
    padding: 0 !important;
}

.container {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* ページ見出し（独自背景帯なし・共通ダーク背景に統一、白文字） */
.page-header {
    text-align: center;
    padding: 2rem 0 1rem;
    background: transparent;
    border-radius: 0;
    margin: 0;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

/* ギャラリー（マソンリー） */
.gallery-grid {
    column-count: 3;
    column-gap: 10px;
    margin: 0 !important;
    padding: 10px !important;
    line-height: 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
}

.gallery-item {
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none !important;
    cursor: pointer;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    outline: none;
    break-inside: avoid;
    page-break-inside: avoid;
    display: inline-block;
    width: 100%;
}

.image-container {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none;
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s ease;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    vertical-align: top;
    outline: none;
}

/* 写真が無いとき */
.gallery-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
    padding: 4rem 1.5rem;
    line-height: 1.8;
}

.gallery-empty code {
    color: var(--cyan, #00d7ff);
    background: rgba(0, 215, 255, 0.1);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

/* ライトボックス */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 2rem;
}

.lightbox-content {
    max-width: 90%;
    max-height: 82%;
    object-fit: contain;
    border-radius: 10px;
}

.lightbox-caption {
    margin-top: 1rem;
    color: #fff;
    text-align: center;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    cursor: default;
}

.lightbox-caption .place {
    font-weight: 700;
}

.lightbox-caption .date {
    color: rgba(255, 255, 255, 0.6);
    margin-left: 0.6rem;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    font-weight: 300;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--cyan, #00d7ff);
}

/* レスポンシブ */
@media (max-width: 1024px) {
    .gallery-grid {
        column-count: 2;
        column-gap: 8px;
        padding: 8px !important;
    }

    .gallery-item {
        margin: 0 0 8px 0 !important;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .gallery-grid {
        column-count: 2;
        column-gap: 6px;
        padding: 6px !important;
    }

    .gallery-item {
        margin: 0 0 6px 0 !important;
    }

    .container {
        padding: 0;
    }

    .close-btn {
        top: 20px;
        right: 25px;
        font-size: 25px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.8rem;
    }

    .gallery-grid {
        column-count: 1;
        column-gap: 0;
        padding: 5px !important;
    }

    .gallery-item {
        margin: 0 0 5px 0 !important;
    }
}
