/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Jan 29 2026 | 06:27:50 */

@media screen and (max-width: 767px) {
    /* --- 1. 指定要素の非表示（変更なし） --- */
    .single-event #headerbox,
    .single-event .pagecontents__headerbox,
    .single-event .breadcrumbs,
    .single-event .contactbox,
    .single-event .footerbanner,
    .single-event #fixed-spnav,
    .single-event .category.category--openhouse,
    .single-event h1.title,
    .single-event .form__overview {
        display: none !important;
    }

    /* --- 2. 画像の設定：タップ可能にする --- */
    /* 記事内の画像に反応させるため、セレクタを広げました */
    .single-event img:not(.no-popup) {
        cursor: pointer !important;
        pointer-events: auto !important; /* タップを有効化 */
    }

    /* --- 3. ライトボックス（変更なし） --- */
    #custom-img-lightbox {
        display: none;
        position: fixed;
        z-index: 9999999;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.95);
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    #custom-img-lightbox.is-active {
        opacity: 1;
        display: flex;
    }

    #custom-img-lightbox img {
        max-width: 98%;
        max-height: 85%;
        object-fit: contain;
    }

    .lightbox-close-btn {
        position: absolute;
        top: 30px;
        right: 20px;
        width: 50px;
        height: 50px;
        background: rgba(255, 255, 255, 0.2);
        color: #fff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 40px;
        line-height: 1;
        border: none;
    }
}