/* --- ベース設定 --- */
body {
    font-family: "Optima", "Hiragino Mincho ProN", serif;
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #e0e0e0;
    line-height: 1.8;
    padding-top: 170px;
}

/* パンくずリスト：固定 */
.breadcrumb {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #121212;
    z-index: 101;
    padding: 10px 20px 10px 30px;
    font-size: 0.85rem;
    color: #888;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-sizing: border-box;
}

.breadcrumb a {
    color: #888;
    text-decoration: none;
    transition: 0.4s;
}

.breadcrumb a:hover {
    color: #fff;
}

.breadcrumb-sep {
    margin: 0 8px;
    color: #888;
}

.breadcrumb-current {
    color: #888;
}

/* ヘッダーをパンくずの下に固定 */
header {
    padding: 5px 10px 5px;
    text-align: center;
    position: fixed;
    top: 25px;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    background-color: #121212;
    z-index: 100;
    border-bottom: 1px solid #222;
}

header h1 a {
    font-weight: 200;
    font-size: 2.5rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    display: inline-block;
    text-align: center;
    width: auto;
}

.page-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 10px;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.page-nav a {
    text-decoration: none;
    color: #888;
    font-size: 0.95rem;
    text-transform: uppercase;
    transition: 0.4s;
    text-align: center;
}

.page-nav a:hover,
.page-nav a.active {
    color: #fff;
    border-bottom: 1px solid #fff;
}

/* leadTextはスクロールさせる */
.lead-area {
    max-width: 900px;
    margin: 40px auto 0;
    font-size: 0.95rem;
    color: #bbb;
    text-align: start;
    white-space: pre-wrap;
    padding: 0 20px 40px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 150px;
    box-sizing: border-box;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 50px;
}

.photo-card {
    position: relative;
    transition: 0.6s ease;
    width: 100%;
    box-sizing: border-box;
}

.photo-card:hover {
    transform: translateY(-8px);
}

.photo-img-wrapper {
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background: #1a1a1a;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    cursor: zoom-in;
    width: 100%;
    box-sizing: border-box;
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(85%);
    transition: 0.8s ease;
    max-width: 100%;
    display: block;
}

.photo-card:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.caption {
    padding: 20px 0;
    font-size: 0.85rem;
    color: #999;
    border-left: 1px solid #333;
    padding-left: 15px;
    margin-top: 10px;
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-image {
    max-width: 90%;
    max-height: 85%;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

/* 管理画面への白枠ボタン */
.admin-link-btn {
    position: fixed;
    bottom: 40px;
    right: 30px;
    padding: 5px 15px;   /* 当初 12px 24px */
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
    text-decoration: none;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: 1.5px solid #ffffff;
    border-radius: 50px;
    transition: 0.4s;
    backdrop-filter: blur(5px);
    z-index: 900;
}

.admin-link-btn:hover {
    background-color: #fff;
    color: #000;
    transform: translateY(-5px);
}

/* ページネーション */
.pagination-info {
    text-align: center;
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 30px;
    letter-spacing: 0.1em;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #444;
    border-radius: 50%;
    color: #888;
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.3s;
}

.page-btn:hover {
    border-color: #fff;
    color: #fff;
}

.page-btn.current {
    border-color: #fff;
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.page-btn.disabled {
    border-color: #333;
    color: #444;
    cursor: default;
}

/* カテゴリーホバー時のサムネイル */
.nav-thumb {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    aspect-ratio: 3/2;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 500;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    filter: grayscale(70%);
}

.nav-thumb.visible {
    opacity: 1;
    visibility: visible;
}

/* ギャラリーキャプション内リンク */
.caption a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    margin-left: 8px;
    padding: 1px 8px;
    background-color: transparent;
    color: #888;
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0em;
    border: 1px solid #444;
    border-radius: 50px;
    transition: 0.4s;
    white-space: nowrap;
}

.caption a:hover {
    background-color: #fff;
    color: #000;
    border-color: #fff;
}

/* ===== スマホ用 ===== */
@media (max-width: 600px) {

    html {
        /* iPhoneの文字拡大設定の影響を完全に無効化 */
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    body {
        /* ヘッダー高さが変わっても対応できるよう余裕を持たせる */
        padding-top: 170px;
        overflow-x: hidden;
    }

    header {
        top: 36px;
        padding: 5px 0 5px;
        width: 100%;
        left: 0;
        right: 0;
        box-sizing: border-box;
    }

    header h1 a {
        font-size: 1.5rem;
        display: block;
        text-align: center;
        width: 100%;
    }

    .page-nav {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 10px;
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .page-nav a {
        font-size: 0.75rem;
        text-align: center;
    }

    .breadcrumb {
        /* 文字が大きくなっても折り返して表示 */
        font-size: 0.75rem;
        padding: 8px 12px;
        white-space: normal;        /* 折り返しを許可 ← nowrapをやめる */
        overflow: visible;          /* 隠さない */
        text-overflow: unset;       /* 省略しない */
        word-break: break-word;
        line-height: 1.6;
        box-sizing: border-box;
    }

    .gallery {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .photo-img-wrapper {
        width: 100%;
        box-sizing: border-box;
    }

    .photo-card img {
        max-width: 100%;
        width: 100%;
        height: auto;
    }

    .container {
        padding: 20px 12px 100px;
        box-sizing: border-box;
        width: 100%;
    }

    .lead-area {
        padding: 0 12px 30px;
    }
}


/* ========================================
   Site Footer
======================================== */
.site-footer {
    --footer-color   : #888888;   /* 文字色 */
    --footer-font    : inherit;   /* フォント */
    --footer-size    : 0.75rem;   /* 文字サイズ */
    --footer-padding : 3rem 1rem 1rem; /* 余白 */

    color       : var(--footer-color);
    font-family : var(--footer-font);
    font-size   : var(--footer-size);
    text-align  : center;
    padding     : var(--footer-padding);
    margin-top  : 2rem;
    letter-spacing : 0.05em;
}

.site-footer .copyright {
    margin  : 0;
    padding : 0;
}