/* =========================
   クリック・タップできる画像
========================= */

.zoomable {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
}

.zoomable::after {
    content: "＋ 拡大して見る";
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    padding: 7px 12px;
    color: #fff;
    background: rgba(20, 29, 43, 0.72);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    opacity: 0;
    transform: translateY(5px);
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
    pointer-events: none;
}

@media (hover: hover) {
    .zoomable:hover::after {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================
   拡大画面
========================= */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 50px;
    background: rgba(10, 14, 22, 0.9);
}

.lightbox.is-open {
    display: flex;
}

.lightbox img {
    display: block;
    max-width: min(92vw, 1500px);
    max-height: 88vh;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}


/* =========================
   デザインカンプ専用
   大きく表示して縦スクロール
========================= */

.lightbox.is-scroll {
    align-items: flex-start;
    padding: 70px 50px 50px;
    overflow: auto;
    overscroll-behavior: contain;
}

.lightbox.is-scroll img {
    width: auto;
    max-width: min(92vw, 1500px);
    max-height: none;
    margin: 0 auto;
}


/* =========================
   閉じるボタン
========================= */

.lightbox-close {
    position: fixed;
    top: 18px;
    right: 24px;
    z-index: 10000;
    padding: 0;
    border: 0;
    color: #fff;
    background: transparent;
    font-size: 2.4rem;
    line-height: 1;
    cursor: pointer;
}

body.lightbox-open {
    overflow: hidden;
}


/* =========================
   スマートフォン
========================= */

@media (max-width: 700px) {
    .lightbox {
        padding: 48px 15px 20px;
    }

    .lightbox img {
        max-width: 100%;
        max-height: 82vh;
    }

    .zoomable::after {
        content: "＋";
        right: 9px;
        bottom: 9px;
        padding: 5px 9px;
        opacity: 0.8;
        transform: none;
    }

    /* カンプだけ縦スクロール */
    .lightbox.is-scroll {
        padding: 55px 15px 20px;
        overflow: auto;
    }

    .lightbox.is-scroll img {
        width: auto;
        max-width: 100%;
        max-height: none;
    }

    .lightbox-close {
        top: 12px;
        right: 15px;
        font-size: 2.1rem;
    }
}