/* モーダルの背景（暗幕） */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            /* 透明度を小さくすると(0.6 → 0.3）ガラス感UP */
            background: rgba(0, 0, 0, 0.2);
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 0;
            visibility: hidden;
            transition: all 0.4s ease;
            z-index: 9999;
            /* ★ 追加：背景をぼかす（曇りガラス効果） */
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px); /* Safari対策 */

        }

        /* モーダルがアクティブな時の状態 */
        .modal-overlay.is-show {
            opacity: 1;
            visibility: visible;
        }

        /* モーダル本体 */
        .modal-content {
            background: #fff;
            padding: 30px;
            border-radius: 10px;
            max-width: 400px;
            width: 90%;
            text-align: center;
            box-shadow: 0 10px 25px rgba(0,0,0,0.2);
            transform: translateY(-20px);
            transition: all 0.4s ease;
        }

        .modal-overlay.is-show .modal-content {
            transform: translateY(0);
        }

        h2 { margin-top: 0; color: #333; }
        p { color: #666; line-height: 1.6; }

        /* 誘導ボタン */
        .redirect-btn {
            display: inline-block;
            margin-top: 20px;
            padding: 12px 30px;
            background-color: #007bff;
            color: #fff;
            text-decoration: none;
            border-radius: 5px;
            font-weight: bold;
            transition: background 0.3s;
        }

        .redirect-btn:hover {
            background-color: #0056b3;
        }

        /* 閉じるボタン */
        .close-btn {
            margin-top: 15px;
            display: block;
            font-size: 0.9rem;
            color: #999;
            cursor: pointer;
            text-decoration: underline;
        }
        /* デスクトップ用（768px以上は非表示にする例） */
        @media screen and (min-width: 769px) {
          .sp-only { display: none; }
        }
        /* スマホ用（768px以下は表示） */
        @media screen and (max-width: 768px) {
          .sp-only { display: inline; }
        }