
            /**アフィリエイト導入のために追加したcss */
            /* 既存の html, body などのスタイルに flex 構造を適用 */
            body.is-map-mode  { padding: 0; margin: 0; color:#444; background-color: #DBEDFD; display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
            
            /* 画面構成：全体ラップを縦並びのフレックスコンテナに */
            #full_wrap { display: flex; flex-direction: column; height: 100vh; width: 100vw; position: relative; }
            
            /* 地図エリアは画面の70%を占める */
            #map_container { flex: 1; position: relative; width: 100vw; height: 100vh; }
            #map { height: 100%; width: 100%; padding:0; border:0; z-index: 1; }
            #water { position: absolute; top: 0; left: 0; height: 100%; width: 100%; background-image:url("{{ asset('/img/water_mark.png') }}"); background-repeat: repeat; z-index: 10; pointer-events: none; }


            
 /* ==========================================================================
   ① 最下部固定：縦並びのフロートトリガーボタン
   ========================================================================== */
.bottom-floating-trigger-bar {
    position: fixed;
    bottom: 0px;
    left: 0;
    width: 100%;
    padding: 12px 8px 16px; /* iPhoneの下部バー対策 */
    background: linear-gradient(to top, rgba(255,255,255,0.5) 80%, rgba(255,255,255,0) 100%); /* 地図との境界を滑らかに */
    z-index: 99999; /* 地図より確実に上、オーバーレイよりは下 */
    display: flex;
    flex-direction: column;
    gap: 2px; /* ボタン同士の間隔 */
}

.insite-bottom-floating-trigger-bar {
    width: 100%;
    z-index: 99999; /* 地図より確実に上、オーバーレイよりは下 */
    display: flex;
    gap: 6px; /* ボタン同士の間隔 */
    margin-bottom: 8px;
}



/* 縦積みの黒いボタン単体 */
.bottomsheet-trigger-btn {
    width: 100%;
    background-color: rgba(30, 30, 30, 0.95); /* 高級感のある深い黒 */
    color: #ffffff;
    border: none;
    outline: none;
    padding: 8px 22px;
    border-radius: 18px; /* 高級感・アプリ感を演出する丸み */
    font-size: 14px;
    font-weight: bold;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s;
    -webkit-tap-highlight-color: transparent;
    opacity: 0.9;
}

/* ボタンをタップした瞬間のプルッとした縮小エフェクト */
.bottomsheet-trigger-btn:active {
    transform: scale(0.97);
}

/* 現在選択されて開いているボタンの強調スタイル */
.bottomsheet-trigger-btn.is-active {
    background-color: #2ecc71; /* 鮮やかなグリーンに変化して連動感を出す */
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
}

.bottomsheet-trigger-btn .btn-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; /* 文字が溢れても崩れないセーフティ */
}

.bottomsheet-trigger-btn .btn-arrow {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   ② コンテンツ表示エリア（完全独立レイヤーの白い特設シート）
   ========================================================================== */
#bottomsheet-content-overlay {
    position: fixed;
    /* ボタンエリアの高さ分（3ボタン分＝約180px）を避けて、その上にぴったり着地させる */
    top: 0;
    left: 0;
    width: 100%;
    bottom: 0px;
    background-color: #ffffff;
    z-index: 99998; /* ボタンのすぐ裏レイヤー */
    display: flex;
    flex-direction: column;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 20px 20px 0 0; /* 上部だけ丸めてシート感を出す */
    overflow: hidden;
    /* フワッと下から湧き出るアニメーション設定 */
    animation: slideUpOverlay 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideUpOverlay {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* オーバーレイのヘッダー（元の黒ボタンのテイストを踏襲） */
.overlay-header {
    background-color: rgba(30, 30, 30, 0.95);
    color: #ffffff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: bold;
}

.overlay-icon-badge {
    background-color: #2ecc71;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

#overlay-header-title {
    flex-grow: 1;
}

/* 閉じる「✕」ボタン */
.overlay-close-button {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    opacity: 0.7;
}
.overlay-close-button:active { opacity: 1; }

/* WPのHTMLが流れ込み、無限にスクロールするボディ領域（OSバグを完全回避） */
.overlay-body {
    max-width:800px;
    margin: auto;
    flex-grow: 1;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch; /* iOSの滑らかスクロール保証 */
    padding: 20px 16px;
    background-color: #ffffff;
}




/* 閉じるボタンのスタイル調整 */
.overlay-bottom-close-btn {
    position: fixed; /* シートのスクロールに影響されないよう fixed に */
    bottom: 0; /* JSで動的に上書きします */
    right: 16px;
    
    background-color: rgba(0, 0, 0, 0.5); 
    color: #ffffff;
    
    width: 32px;
    height: 32px;
    border-radius: 50%;
    
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    
    border: none;
    outline: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 100000; /* ボタンバーより手前、または同じレイヤー */
    transition: background-color 0.2s, transform 0.1s;
    -webkit-tap-highlight-color: transparent;
}

.overlay-bottom-close-btn:active {
    background-color: rgba(0, 0, 0, 0.3);
    transform: scale(0.92);
}



            
            /* 既存のボタン位置を微調整（ボトムシートの角が丸くなったので少し上に） */
            #locate_button { position: fixed; right:16px; z-index: 15; width: fit-content; height: fit-content; padding: 4px 8px; text-align: center; border-radius: 8px; background-color: #fff; box-shadow: 0px 0px 20px -6px rgba(0,0,0,0.6); font-weight: bold; cursor: pointer;border: none; font-size:14px;}
            #note_button { position: fixed; right:16px; z-index: 15; width: fit-content; height: fit-content; padding: 0px 8px; text-align: center; border-radius: 8px; background-color: #fff; box-shadow: 0px 0px 20px -6px rgba(0,0,0,0.6); font-weight: bold; cursor: pointer; font-size:14px;}
            #back_button { position: fixed; right:16px; z-index: 15; width: fit-content; height: fit-content; padding: 0px 8px; text-align: center; border-radius: 8px; background-color: #fff; box-shadow: 0px 0px 20px -6px rgba(0,0,0,0.6); font-weight: bold; font-size:14px; display:none;}



            /*-----------------------------------------
            /*店舗ブランド選択引き出し
            /*-----------------------------------------*/
            /* 引き出し全体の固定配置 */
            #brand_drawer {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                padding-bottom: 12px;
                z-index: 2000; /* 地図より必ず前面に */
                background: #ffffff;
                box-shadow: 0 4px 20px rgba(0,0,0,0.15);
                border-radius: 0 0 16px 16px;
                transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
                /* 最初は「中身の高さ分」だけ画面の下に隠しておく */
                transform: translateY(-100%);
            }

            /* 常に画面に見えている「引き出すためのタブ」 */
            #brand_drawer_toggle {
                position: absolute;       /* 絶対配置に変更 */
                bottom: -36px;            /* 親要素（ベース）の底辺から、自分の高さ分だけ下に飛び出させる */
                left: 50%;                /* 画面の真ん中に配置 */
                transform: translateX(-50%); /* 中央寄せの補正 */
                
                width: 140px;
                height: 36px;
                background: #ffffff;
                color: #111111;
                border-radius: 0 0 12px 12px;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 13px;
                font-weight: bold;
                cursor: pointer;
                box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* 影を少し下に落とす */
            }

            #brand_drawer_toggle .toggle-icon {
                margin-right: 6px;
                font-size: 10px;
                transition: transform 0.3s;
            }

            /* 引き出しが開いたときのスタイル（JSでこのクラスをつけ外しする） */
            #brand_drawer.open {
                transform: translateY(0);
            }
            #brand_drawer.open #brand_drawer_toggle .toggle-icon {
                transform: rotate(180deg); /* 矢印を逆向きに */
            }

            /* チェックボックスが入るコンテナ（スクロール可能） */
            #brand_drawer_content {
                max-height: 146px; /* 引き出しの最大高さ */
                overflow-y: auto;
                padding: 20px 12px 20px; /* 下部に少し余裕を持たせる */
                -webkit-overflow-scrolling: touch;
            }

            /* タグを綺麗に並べるためのCSS Grid */
            .brand-grid {
                display: grid;
                grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
                gap: 8px;
            }

            /* ラベルをボタン風に見せるためのスタイル */
            #brand_drawer label {
                display: inline-flex;
                align-items: center;
                gap: 6px;
                padding: 6px 10px;
                border-radius: 8px;
                font-size: 12px;
                font-weight: bold;
                cursor: pointer;
                border: 2px solid #ddd;
                background-color: #ffffff;
            }
            .brand-checkbox {
                cursor: pointer;
                width: 14px;
                height: 14px;
                flex-shrink: 0;
            }
            /*-----------------------------------------
            /*店舗ブランド選択引き出し・終了
            /*-----------------------------------------*/