/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Jan 13 2026 | 08:46:07 */
/* ============================================================
           1. カスタムCSS (Header設定)
           ============================================================ */
        
        /* 記事本文（.wysiwyg）内の画像をクリック可能にする。
           ただし .no-popup クラスを持つ画像は除外する */
        #event .wysiwyg img:not(.no-popup) {
            cursor: pointer;
            transition: opacity 0.3s ease;
        }
        #event .wysiwyg img:not(.no-popup):hover {
            opacity: 0.85;
        }

        /* ポップアップ外枠（オーバーレイ） */
        #custom-img-lightbox {
            display: none;
            position: fixed;
            z-index: 2147483647; /* 既存の要素より確実に前面に出す最大値 */
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
        }

        /* 表示中の状態 */
        #custom-img-lightbox.is-active {
            opacity: 1;
            pointer-events: auto;
            display: flex;
        }

        /* 画像本体 */
        #custom-img-lightbox img {
            max-width: 92%;
            max-height: 85%;
            object-fit: contain;
            box-shadow: 0 0 40px rgba(0,0,0,0.8);
            transform: scale(0.95);
            transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
        }

        #custom-img-lightbox.is-active img {
            transform: scale(1);
        }

        /* 閉じるボタン（スマホで押しやすい55px） */
        .lightbox-close-btn {
            position: absolute;
            top: env(safe-area-inset-top, 20px);
            right: 20px;
            width: 55px;
            height: 55px;
            background: rgba(255, 255, 255, 0.15);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 40px;
            cursor: pointer;
            border: none;
            z-index: 10;
        }

        /* 画像下の説明（alt属性を表示） */
        .lightbox-caption {
            position: absolute;
            bottom: env(safe-area-inset-bottom, 20px);
            color: #fff;
            background: rgba(0,0,0,0.7);
            padding: 10px 25px;
            border-radius: 30px;
            font-size: 15px;
            max-width: 85%;
            text-align: center;
            line-height: 1.4;
        }

        /* モバイル最適化 */
        @media (max-width: 767px) {
            #custom-img-lightbox img {
                max-width: 96%;
                max-height: 75%;
            }
            .lightbox-close-btn {
                top: 15px;
                right: 15px;
                background: rgba(0, 0, 0, 0.5);
            }
        }