@charset "utf-8";

/*==============================================================
　ページタイトルバナー
==============================================================*/
#page_banner {
    width: 99%;
    margin: -70px auto 0;
    padding: 118px 0 40px;
    background: #3b2a1a;
    background-image:
        repeating-linear-gradient(
            90deg,
            rgba(255,255,255,0.03) 0px,
            rgba(255,255,255,0.03) 1px,
            transparent 1px,
            transparent 60px
        );
    border-bottom: 1px solid #b8a070;
    text-align: center;
    position: relative;
    z-index: 1;
}

.page_banner_sub {
    font-family: 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', serif;
    font-size: 13px;
    letter-spacing: 0.5em;
    color: #b8a070;
    margin: 0 0 10px;
}

.page_banner_title {
    font-family: 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', serif;
    font-size: 34px;
    font-weight: normal;
    letter-spacing: 0.3em;
    color: #f5e8d0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/*==============================================================
　本文エリア
==============================================================*/
#chirimen_body {
    width: 99%;
    margin: 0 auto;
    padding: 48px 0 60px;
    position: relative;
    z-index: 2;
}

.chirimen_inner {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 20px;
}

/*==============================================================
　イントロ（説明＋表紙画像）
==============================================================*/
.chirimen_intro {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 0 0 48px;
    padding: 28px 32px;
    background: rgba(184,160,112,0.1);
    border-left: 4px solid #b8a070;
}

.chirimen_intro_text {
    flex: 1;
}

.chirimen_intro_text p {
    font-family: 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', serif;
    font-size: 15px;
    color: #4a3520;
    line-height: 2.0;
    letter-spacing: 0.06em;
    margin: 0 0 12px;
}

.chirimen_intro_text p:last-child {
    margin: 0;
}

.chirimen_intro_img {
    flex-shrink: 0;
    width: 220px;
}

.chirimen_intro_img img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid #d4b896;
}

/*==============================================================
　作品グリッド
==============================================================*/
.chirimen_grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin: 0 0 48px;
}

.chirimen_card {
    background: rgba(255,255,255,0.6);
    border: 1px solid #e8d4b4;
    border-radius: 2px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.chirimen_card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(59,42,26,0.15);
}

.chirimen_card a {
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #f0e4cc;
}

.chirimen_card a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s, opacity 0.2s;
    cursor: zoom-in;
}

.chirimen_card:hover a img {
    transform: scale(1.06);
    opacity: 0.9;
}

.chirimen_caption {
    font-family: 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', serif;
    font-size: 11px;
    color: #5a3e1b;
    text-align: center;
    padding: 8px 6px;
    letter-spacing: 0.04em;
    line-height: 1.5;
    margin: 0;
}

/*==============================================================
　戻るボタン
==============================================================*/
.chirimen_back {
    text-align: center;
}

.chirimen_back_btn {
    display: inline-block;
    font-family: 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', serif;
    font-size: 14px;
    color: #f5e8d0;
    background: #3b2a1a;
    text-decoration: none;
    padding: 14px 40px;
    border: 1px solid #b8a070;
    letter-spacing: 0.15em;
    transition: background 0.2s;
}

.chirimen_back_btn:hover {
    background: #5a4030;
}

/* lightbox2は使用しない（自前ライトボックスはbase.cssに記述） */

/*==============================================================
　レスポンシブ
==============================================================*/
@media screen and (max-width: 800px) {
    .chirimen_grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }
    .chirimen_intro {
        flex-direction: column;
    }
    .chirimen_intro_img {
        width: 180px;
    }
    .page_banner_title { font-size: 22px; }
}

@media screen and (max-width: 560px) {
    .chirimen_grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

@media screen and (max-width: 400px) {
    .chirimen_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/*==============================================================
　lightbox2 画面サイズ制限
==============================================================*/
.lb-outerContainer {
    border-radius: 2px;
    max-width: 88vw !important;
    max-height: 78vh !important;
}

.lb-outerContainer img {
    max-width: 88vw !important;
    max-height: 72vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
}

.lb-dataContainer {
    background: #3b2a1a;
    max-width: 88vw !important;
}

.lb-data .lb-caption {
    font-family: 'Yu Mincho', 'YuMincho', serif;
    color: #b8a070;
    font-size: 13px;
    letter-spacing: 0.1em;
}

.lb-data .lb-number {
    color: #7a6040;
    font-size: 12px;
}

/*==============================================================
　自前ライトボックス（画面中央固定表示）
==============================================================*/
#chirimen_lightbox {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 9999;
}

#chirimen_lb_overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(20, 12, 4, 0.92);
    cursor: pointer;
}

#chirimen_lb_content {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    max-width: 90vw;
    max-height: 90vh;
}

#chirimen_lb_img {
    max-width: 82vw;
    max-height: 78vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    box-shadow: 0 8px 40px rgba(0,0,0,0.8);
    border: 1px solid rgba(184,160,112,0.3);
}

#chirimen_lb_caption {
    font-family: 'Yu Mincho', 'YuMincho', serif;
    font-size: 13px;
    color: #b8a070;
    letter-spacing: 0.1em;
    margin: 12px 0 0;
}

#chirimen_lb_close {
    position: fixed;
    top: 20px; right: 24px;
    width: 40px; height: 40px;
    background: rgba(59,42,26,0.8);
    border: 1px solid #b8a070;
    color: #f5e8d0;
    font-size: 16px;
    cursor: pointer;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10000;
}
#chirimen_lb_close:hover { background: #5a4030; }

#chirimen_lb_prev,
#chirimen_lb_next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    background: rgba(59,42,26,0.8);
    border: 1px solid #b8a070;
    color: #f5e8d0;
    font-size: 18px;
    cursor: pointer;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10000;
}
#chirimen_lb_prev { left: 16px; }
#chirimen_lb_next { right: 16px; }
#chirimen_lb_prev:hover,
#chirimen_lb_next:hover { background: #5a4030; }
