@charset "UTF-8";

/* =========================================================
   傑作選：ツアー参加者のベストショット
   PC / スマホ共通のページ専用CSS
   ========================================================= */

.bestshot-intro {
    margin: 0 0 28px;
}

.bestshot-intro h2 {
    margin-bottom: 18px !important;
}

.bestshot-lead {
    margin: 0 0 10px;
    line-height: 1.8;
    text-align: center;
}

.bestshot-note {
    margin: 0;
    color: #666;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

/* お客様ごとのまとまり */
.bestshot-person {
    margin: 0 0 38px;
    padding: 0;
}

.bestshot-person-title {
    margin: 0 0 14px;
    padding: 9px 12px;

    color: #fff;
    background: #2451b8;

    font-size: 17px;
    font-weight: bold;
    line-height: 1.4;

    border-left: 5px solid #d3465b;
    box-sizing: border-box;
}

/* 写真一覧 */
.bestshot-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 22px;

    width: 100%;
    margin: 0;
}

/* 写真カード */
.bestshot-card {
    margin: 0;
    padding: 0;

    background: #fff;
}

/* 写真 */
.bestshot-photo {
    width: 100%;
    min-height: 180px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f2f4f7;
    border: 1px solid #d9dee7;

    overflow: hidden;
    box-sizing: border-box;
}

.bestshot-photo img {
    display: block;

    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;

    object-fit: contain;
}

/* 写真未設定時の仮表示 */
.bestshot-placeholder {
    width: 100%;
    min-height: 180px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #9aa2ad;
    font-size: 14px;
    background: #f2f4f7;
}

/* キャプション */
.bestshot-card figcaption {
    margin: 8px 0 0;
    padding: 0 3px;

    color: #333;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

/* TOPへ戻る */
.bestshot-back {
    margin: 25px 0 40px;
    text-align: center;
}

.bestshot-back a {
    display: inline-block;
    padding: 9px 18px;

    color: #2451b8 !important;
    border: 1px solid #2451b8;
    border-radius: 4px;

    text-decoration: none !important;
    font-weight: bold;
}

.bestshot-back a:hover {
    background: #2451b8;
    color: #fff !important;
}
/* ========================================
   写真拡大表示（ライトボックス）
======================================== */

.bestshot-lightbox {
    display: block;
    cursor: zoom-in;
}

.bestshot-lightbox img {
    cursor: zoom-in;
}

/* 拡大表示 */
.bestshot-modal {
    position: fixed;
    z-index: 99999;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;
    box-sizing: border-box;

    background: rgba(0, 0, 0, 0.88);

    cursor: zoom-out;
}

/* 拡大写真 */
.bestshot-modal img {
    display: block;

    max-width: 95vw;
    max-height: 90vh;

    width: auto !important;
    height: auto !important;

    object-fit: contain;

    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5);
}

/* 閉じるボタン */
.bestshot-modal-close {
    position: absolute;

    top: 12px;
    right: 18px;

    width: 42px;
    height: 42px;

    color: #fff;

    font-size: 34px;
    font-weight: normal;
    line-height: 38px;

    text-align: center;

    cursor: pointer;
}

/* スマホ */
@media screen and (max-width: 768px) {

    .bestshot-modal {
        padding: 15px;
    }

    .bestshot-modal img {
        max-width: 96vw;
        max-height: 88vh;
    }

    .bestshot-modal-close {
        top: 5px;
        right: 10px;

        width: 38px;
        height: 38px;

        font-size: 30px;
    }
}

/* PC */
@media screen and (min-width: 769px) {
    .bestshot-intro {
        margin-top: 5px;
    }

    .bestshot-photo {
        min-height: 240px;
    }

    .bestshot-placeholder {
        min-height: 240px;
    }
}

/* スマホ */
@media screen and (max-width: 768px) {

    .bestshot-intro h2 {
        font-size: 18px !important;
        line-height: 1.4 !important;
    }

    .bestshot-lead {
        text-align: left;
        font-size: 14px;
    }

    .bestshot-note {
        text-align: left;
        font-size: 11px;
    }

    .bestshot-person {
        margin-bottom: 30px;
    }

    .bestshot-person-title {
        font-size: 15px;
        padding: 8px 10px;
    }

    /* スマホは1列 */
    .bestshot-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .bestshot-photo {
        min-height: 0;
    }

    .bestshot-placeholder {
        min-height: 180px;
    }

    .bestshot-card figcaption {
        font-size: 13px;
        text-align: left;
    }
}
