@charset "UTF-8";
/*
    search-results.phpとsearch-results-base.phpの共通CSS
*/


/* ==========================================
   ■ 共通スタイル（カード・ボタンなど）
   ========================================== */
.search-results-page { background: #f4f7f8; padding-bottom: 40px; }
.results-header { background: white; padding: 0 0; border-bottom: 1px solid #ddd; margin-bottom: 10px; }
.container { max-width: 1200px; margin: 0 auto; padding: 20px 20px; }

.spot-card { background: white; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); margin-bottom: 40px; overflow: visible; }
.card-top { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background: #fafafa; }
/* 1位のカード全体の特別装飾 */
.card-top.is-rank-1 {
    background-color: #fffcf0;
}
.pref-label { font-size: 18px; font-weight: bold; color: #666;}

.score-badge { text-align: right; line-height: 1; }
.score-label { font-size: 0.7rem; display: block; color: #333; font-weight: bold; }
.score-value { font-size: 1.8rem; font-weight: bold; color: #D35400; margin-right: 16px; }
.score-value.score-high {    color: #D35400;    font-weight: bold; /* 熱量を伝えるために少し太くするのがおすすめ */}
.score-value.score-middle {    color: #1D3557;}
.score-value.score-low {    color: #666666;}

.spot-main-info { padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; }
.rank-num { margin-right: 10px;}

.sub-locations { padding: 15px 20px 10px 20px; border-top: 1px solid #eee; background: #fffdf9; }
.sub-locations h3 { font-size: 0.9rem; color: #888; margin-bottom: 10px; }
.sub-locations ul { list-style: none; padding: 0; margin: 0; }
.sub-locations li { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; border-bottom: 1px dashed #eee; }

/* 画像コンテナ：メインとサブを横に並べる */
.spot-images-container {
    display: grid;
    grid-template-columns: 2fr 1fr; /* メイン2：サブ1の比率 */
    gap: 6px; /* 隙間を少し広げるとスッキリします */
    height: 400px;
    background: #fff; /* 背景を白にすると写真が引き立ちます */
    overflow: hidden;
}
.main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* モーダルのスタイル */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: zoom-out;
}
.modal-overlay img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    cursor: default;
}
.lightbox-trigger {
    display: block;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
}

.spot-main-info h2 {
    display: flex; /* 要素を横並びにする */
    align-items: baseline; /* テキストの底辺を合わせる */
    gap: 8px; /* スポット名と日付の間の余白 */
}

.date-range { /* 旬日付のスタイル */
    font-size: 0.8rem;   /* 文字を小さく */
    color: var(--dark-color);         /* 文字色 */
    font-weight: bold; /* 太字を解除 */
}
/* 旅行期間に重なっている場合、目立たせる */
.date-range.is-highlight {
    color: #e74c3c; /* 落ち着いた赤色 */
    font-weight: bold;
}

/* h3タグの中身をFlexboxで整列させ、自動折り返しを有効にする */
.spot-main-info h3 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px; /* 縦の間隔8px、横の間隔12px */
}




/* 周辺スポット用 */
.sub-name-info { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.sub-name { font-size: 0.95rem; font-weight: bold; color: #333; }
.past-date { color: #999 !important; /* 日付自体は薄く */ }
.past-warning { color: #d9534f; /* 注意書きは警告色（赤系） */
    font-size: 0.75rem; background: #fff1f0; padding: 2px 6px; border-radius: 3px; margin-left: 5px; font-weight: bold; }

.spot-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0px 10px;
    font-size: 0.8rem;
    font-weight: normal;
    text-decoration: none;
    border-radius: 20px; /* 丸みを持たせて親しみやすく */
    transition: all 0.3s ease;
    color: #1176d4;
    border: 1px solid #1176d4;
    background-color: transparent;
}
.spot-link:hover { background-color: #f0f7ff; }
/* 外部リンクのツールチップ */
.spot-link::after {
    content: attr(data-source); /* data-sourceの中身を表示 */
    position: absolute;
    bottom: 125%; /* ボタンの上側に配置 */
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background-color: #f5f5f5; /* 上品な明るいグレー */
    color: #333; /* 黒っぽい文字（完全な黒より目に優しい） */
    border: 1px solid #ddd; /* 輪郭をクッキリさせる薄い枠線 */
    font-size: 11px;
    border-radius: 4px;
    opacity: 0; /* 最初は透明 */
    visibility: hidden; /* 当たり判定も消す */
    transition: opacity 0.1s ease; /* 0.1秒でふわっと（0sなら即時） */
    pointer-events: none; /* マウス反応を無効化して邪魔しない */
    z-index: 100;/* 他の要素より上に表示させる */
    /* --- スマホはみ出し対策 --- */
    white-space: normal;      /* 改行を許可 */
    width: max-content;      /* 中身に合わせるが... */
    max-width: 150px;        /* 最大幅を制限（スマホの画面内に収まる程度） */
    line-height: 1.4;        /* 折り返した時の行間を調整 */
    text-align: center;      /* 文字を中央寄せに */
}
/* ホバーした瞬間に表示 */
.spot-link:hover::after {
    opacity: 1;
    visibility: visible;
}


@media (min-width: 601px) {
    .spot-images-container {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 6px;
        height: 400px;
    }
    /* 1枚のときは全幅にする */
    .spot-images-container:has(.images-inner.count-single) {
        grid-template-columns: 1fr; /* 2fr 1fr を解除して100%にする */
        /* background: #333; ★左右の空白を黒（または背景色）にすると締まって見えます */
    }
    .images-inner.count-single {
        display: block; /* グリッドを解除 */
        width: 100%;
    }
    .images-inner.count-single .image-slide {
        width: 100%;
        height: 100%;
    }
    /* 1枚のときの中身の設定 */
    .images-inner.count-single .image-slide img {
        width: 100%;
        height: 400px;
        object-fit: contain; /* ★ここをcoverからcontainに変更 */
        object-position: center; /* ★中央に配置 */
    }
    .images-inner.count-multiple {
        display: contents; /* 子要素をグリッドに直接参加させる */
    }
    .images-inner.count-multiple .image-slide:first-child { grid-column: 1; grid-row: 1 / span 2; }
    .images-inner.count-multiple .image-slide:not(:first-child) { grid-column: 2; }
    .nav-btn { display: none; } /* PCでは矢印不要 */
}

/* スマホ版：1枚表示のスライダー */
@media (max-width: 600px) {
    .spot-images-wrapper {
        position: relative;
        width: 100%;
    }
    .spot-images-container {
        height: 250px;
        overflow: hidden;
        display: block;   /* PC版のgridを確実に解除 */
        background-color: #f9f9f9;
    }
    .images-inner {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        height: 100%;
        -webkit-overflow-scrolling: touch;
    }
    .images-inner::-webkit-scrollbar { display: none; } /* バーを隠す */

    .image-slide {
        flex: 0 0 100%; /* 1枚を100%幅に */
        scroll-snap-align: start;
        height: 100%;
    }
    .image-slide img { 
        max-width: 100%; max-height: 100%; width: 100%; height: 100%;
        object-fit: contain; 
    }

    /* 矢印のデザイン */
    .nav-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0,0,0,0.4);
        color: white;
        border: none;
        padding: 10px;
        z-index: 10;
        border-radius: 50%;
        width: 40px; height: 40px;
        cursor: pointer;
    }
    .nav-btn.prev { left: 10px; }
    .nav-btn.next { right: 10px; }
}
/* PC/スマホ共通の基本レイアウト */
.results-layout-flex {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* PC：サイドバー（300px固定） */
.results-sidebar {
    
    width: 300px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    will-change: transform; /* アニメーションを滑らかにする */

    position: relative !important; 
    z-index: 1000 !important; /* メインコンテンツ（画像など）より確実に上にする */
    top: 0 !important; 
    will-change: transform;
}

.results-main-content {
    flex: 1; /* 残りの幅をすべて使う */
}

/* 閉じるボタンのデザイン */
.drawer-close-btn {
    background: none;
    border: none;
    font-size: 40px; /* 少し大きく */
    line-height: 1;
    color: #333;
    padding: 5px 15px; /* タップ領域を広げる */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* デフォルト（PC）では非表示にする */
.sp-filter-bar {
    display: none;
}
.drawer-close-btn {
    display: none;
}
/* スマホ：ドロワー化 */
@media (max-width: 959px) {
    .l-content { margin: 0; }
    .l-container { padding: 0; }
    .container { padding: 5px 0px 5px 0px; }
    .results-header { margin-bottom: 5px; }
    .results-layout-flex { display: block; }
    .results-layout-flex::before {
        content: "";
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: rgba(0,0,0,0.5); /* 黒い半透明 */
        z-index: 9999; /* サイドバー(99999)より下、メインより上 */
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
    }
    .search-results-page { padding-bottom: 0px; }
    .spot-card{ margin-bottom: 20px; }
    /* ドロワーが開いている時だけオーバーレイを表示 */
    body.is-drawer-open .results-layout-flex::before {
        opacity: 1;
        visibility: visible;
    }
    /* 1. 下から上に出すための初期設定 */
    .results-sidebar {
        display: block !important;
        position: fixed !important; 
        left: 0 !important;
        /* 最初は画面の下（外）に配置 */
        bottom: -100vh !important; 
        top: auto !important; /* 上固定を解除 */
        width: 100% !important;
        height: 85vh !important; /* 画面の85%の高さ */
        z-index: 100000 !important; /* サイトヘッダーより上に */
        background: #fff !important;
        visibility: hidden;
        transition: bottom 0.4s ease, visibility 0.4s;
        border-radius: 20px 20px 0 0; /* 上の角を丸くするとドロワーらしい */
        box-shadow: 0 -5px 20px rgba(0,0,0,0.15);
    }

    /* 2. クラスがついた時だけ表示する */
    .results-sidebar.is-open {
        bottom: 0 !important;
        visibility: visible;
    }

    /* 閉じるボタンを見やすく調整 */
    .sidebar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
        border-bottom: 1px solid #eee;
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 100; /* 内側で一番上に */
        height: 60px; /* 高さを明示的に確保 */
    }
    /* ドロワー自体の開始位置を少し下げる、もしくはヘッダーとの干渉を防ぐ */
    .results-sidebar {
        z-index: 100000 !important; /* サイト全体のヘッダーより大きく */
    }
    /* スマホ追従ボタン */
    .sp-filter-bar {
        display: block;
        position: sticky;
        top: 0;
        z-index: 999;
        background: #fff;
        padding: 10px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        text-align: center;
    }
    .drawer-close-btn {
        display: block;
    }
    .sp-filter-btn {
        width: 100%;
        background: var(--dark-color);
        color: var(--dark-text-color);
        border-radius: 25px;
        padding: 10px;
        font-weight: bold;
    }
    .sidebar-inner {
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    .sidebar-header {
        flex-shrink: 0;
    }
    form {
        flex-grow: 1;
        overflow-y: auto; /* フォームの中身が長い場合にスクロールさせる */
        padding: 20px;
    }
}
.filter-section {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}
.filter-section h4 {
    font-size: 0.95rem;
    font-weight: bold;
    margin-bottom: 12px;
    color: #444;
}
/* 日付入力欄のスタイル */
.date-filter-section h4 {
    margin-bottom: 10px;
}
.date-input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.date-field {
    display: flex;
    flex-direction: column;
}
.date-field label {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 4px;
}
.date-field input[type="date"] {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #444;
    background: #fff;
    width: 100%;
}
/* スマホドロワー内でも崩れないように調整 */
@media (max-width: 959px) {
    .date-input-group {
        flex-direction: row; /* スマホでは横に並べてもOK */
        gap: 10px;
    }
    .date-field {
        flex: 1;
    }
}
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
/* タグ風のチェックボックス/ラジオボタン */
.checkbox-label, .radio-label {
    display: inline-block;
    cursor: pointer;
}
.checkbox-label input, .radio-label input {
    display: none;
}
.checkbox-label span, .radio-label span {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.85rem;
    background: #fff;
    transition: all 0.2s;
}
/* 選択された時の色 */
.checkbox-label input:checked + span, 
.radio-label input:checked + span {
    background: var(--dark-color);
    color: var(--dark-text-color);
    border-color: var(--dark-color);
}
.sidebar-submit-area {
    margin-top: 30px;
}
.reset-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    font-size: 0.8rem;
    color: #999;
    text-decoration: underline;
}
/* もっと見るコンテナ */
.more-options-container {
    position: relative;
    display: inline-block;
}

.more-trigger {
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 6px 10px;
    display: inline-block;
}

/* ポップアップ本体 */
.popup-content {
    display: none; /* JSで制御 */
    position: absolute;
    top: -50px;
    left: calc(100% + 15px);
    width: 350px;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 1000;
    border-radius: 8px;
    padding: 20px;
}

.popup-content-genre {
    width: 600px;
}

/* Yahoo風の三角形の吹き出し（PCのみ） */
@media (min-width: 960px) {
    .bulk-check-btn { display: none; } /* PCでは一括ボタンは不要（クリックで代用） */

    .popup-content {
        display: none;
        position: absolute;
        top: 60;
        left: 100%;
        /* margin-left ではなく padding-left を使って「見えない橋」を作る */
        margin-left: 0; 
        padding-left: 15px; /* ここが「三角形の隙間」をカバーする判定エリアになる */
        background: transparent; /* 背景を透明にする */
        border: none; /* 枠線を消す（内側の popup-inner で描画するため） */
        box-shadow: none;
    }

    /* 実際の背景や枠線は inner に持たせる */
    .popup-inner {
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 8px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        padding: 20px;
        position: relative; /* 三角形の位置基準 */
    }

    /* 三角形の位置を微調整（padding-left 分だけ左に寄せる） */
    .popup-content::before {
        content: "";
        position: absolute;
        top: 60px;
        left: 5px; /* padding-left の内側に食い込ませる */
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
        border-right: 10px solid #fff;
        z-index: 1001;
        filter: drop-shadow(-2px 0 1px rgba(0,0,0,0.05));
    }
    /* 2. 内側の三角形（背景色と同じ白。枠線を隠す） */
    .popup-content::after {
        content: "";
        position: absolute;
        top: 60px;
        left: 6px; /* 1px右にずらして重ねる */
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
        border-right: 10px solid #fff; /* 本体の背景と同じ白 */
        z-index: 1002; /* 枠線用三角形より上に重ねる */
    }
}

.popup-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
}

/* スマホ時の調整：サイドバー内ではなく画面全体を覆うように */
@media (max-width: 959px) {
    .area-header-wrap {
        display: flex;
        align-items: center;
        border: 1px solid #ddd;
        border-radius: 6px;
        margin-bottom: 5px;
        background: #fff;
    }

    .more-trigger {
        flex: 1; /* 名前部分を広げる */
        padding: 12px !important;
        border: none !important;
        text-decoration: none !important;
        display: flex;
        justify-content: space-between;
    }
    .popup-content {
        position: static !important; /* 絶対配置を解除 */
        display: none; /* JSで開閉 */
        width: 100% !important;
        box-shadow: none !important;
        border: none !important;
        background: #f9f9f9 !important;
        padding: 10px !important;
        margin: 0px !important;
    }
    .popup-inner {
        padding: 10px 0 10px 0px; /* アコーディオン時は左側のインデントだけでOK */
    }
    /* スマホ専用一括ボタンを右端に配置 */
    .bulk-check-btn {
        width: 50px;
        height: 45px;
        border-left: 1px solid #eee;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }
    .bulk-check-btn::after {
        font-size: 0.8rem;
        color: #999;
    }
    .arrow-icon {
        display: inline-block; /* これがないと回転しません */
        transition: transform 0.3s ease; /* 滑らかに回転させる */
        margin-left: 5px;
    }
    /* エリアセクションのポップアップだけ右横に固定 */
    .area-categories .popup-content {
        top: 0;
        left: 100%;
        margin-left: 10px;
        transform: none; /* 中央寄せなどの設定があれば解除 */
    }
}
/* エリアカテゴリの並びを整える */
.checkbox-group.area-categories {
    display: block;
    /* display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px; */
        
}

/* 各地方（北海道・東北など）のコンテナ */
.checkbox-group.area-categories .more-options-container {
    display: block;    /* 1つで1行占有させる */
    margin-bottom: 8px; /* 上下の間隔 */
}

/* トリガー（地方名）の見た目調整 */
.checkbox-group.area-categories .more-trigger {
    display: block;      /* 幅いっぱいに広げる */
    width: 100%;
    padding: 10px 15px;
    background: inherit;
    color: inherit;
    border-color: inherit;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none; /* 下線を消す（お好みで） */
    box-sizing: border-box;
    transition: background 0.2s;
}

/* 全選択されている時*/
.checkbox-group.area-categories .more-trigger.is-all {
    background: var(--dark-color);
    color: var(--dark-text-color);
    border-color: var(--dark-color);
}

/* 一部選択されている時*/
.checkbox-group.area-categories .more-trigger.is-partial {
    background: var(--light-color);
    color: var(--dark-color);
    border-color: var(--dark-color);
}

/* ホバー時に色を変えると「選べる」感が出ます */
.checkbox-group.area-categories .more-trigger:hover {
    /* background: #f9f9f9;
    color: #e67e22; */
}

@media (max-width: 600px) {
    .popup-grid {
        grid-template-columns: repeat(2, 1fr); /* スマホは2列 */
    }
}

/* 追加するCSS */
.source-year-note {
    background: #eee;
    color: #666;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 5px;
    font-size: 0.75rem;
    font-weight: normal;
}

/* 過去の警告と色が被らないように調整 */
.date-range.past-date .source-year-note {
    display: none; /* 過去実績警告が出る場合は非表示にする、など */
}
.image-slide {
    position: relative;
    overflow: hidden;
}

.img-credit {
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.4); /* 黒い半透明背景 */
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    pointer-events: none; /* クリックを邪魔しない */
    border-top-left-radius: 4px;
    z-index: 10;
}
.spot-detail-desc{
    font-size: 0.9rem;
    color: #555;
    padding: 0px 20px 20px 20px;
}
.spot-short-desc {
    font-size: 0.9rem;
    color: #555;
    padding: 4px;
}

/* 「？」アイコンの見た目 */
.ikidoki-help {
    text-align: center;
    border-radius: 50%;
    background: #fff;
    color: #999999;
    border: #999999 solid 1px;
    font-size: 11px;
    padding-left: 1px;
    cursor: help;
    position: relative;
}

/* ホバー時に説明を出す（CSSのみで完結させる軽量版） */
.ikidoki-help:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-80%);
    background: var(--light-color);
    color: #333;
    border: var(--dark-color) solid 1px;
    padding: 8px 12px;
    border-radius: 6px;
    width: 240px;
    font-size: 11px;
    line-height: 1.5;
    z-index: 100;
    text-align: left;
}
/* スマホでの調整 */
@media (max-width: 600px) {
    .spot-description-area {
        padding: 0 15px 15px;
    }
    .spot-short-desc {
        font-size: 1rem;
    }
    .spot-detail-desc {
        font-size: 0.9rem;
    }
    .ikidoki-help:hover::after {
        transform: translateX(-90%);
    }
}


.cta-message {
    color: #555;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    margin-top: 15px;
}
.btn-base{
    display: block;
    width: 100%;
    background: #fff;
    color: #357abd; /* メインカラー */
    border: 2px solid #357abd;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); /* ほんの少し浮かす */
    text-align: center;
    padding: 15px;
    margin-bottom: 10px;
    font-weight: bold;
    text-decoration: none;
    position: relative;
    padding-right: 50px; /* 矢印のためのスペースを確保 */
    transition: all 0.3s ease;
}
/* 矢印をアイコンフォントや擬似要素にして動きをつける */
.btn-base::after {
    content: '〉';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 45px; /* 右端を「矢印専用エリア」にする */
    background: #357abd;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}
.btn-base:hover {
    background-color: #357abd; /* 背景をメインカラーに */
    color: #fff;              /* 文字を白に */
    box-shadow: 0 6px 10px rgba(0,0,0,0.1); /* 影を強くして「浮いた」感じを出す */
}

/* ホバー時に矢印エリアの背景も馴染ませる */
.btn-base:hover::after {
    background-color: #2a629a; /* 本体より少しだけ濃くすると奥行きが出る */
}
.btn-arrow {
    font-size: 12px;
    font-weight: normal;
    opacity: 0.8;
}
.reservation-grid {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-bottom: 15px;
    background: #f9f9f9;
    justify-content: center;
}

.btn-jalan, .btn-rakuten {
    flex: 1; /* 幅を均等にする */
    display: flex;
    flex-direction: column; /* 縦に並べる */
    align-items: center;
    padding: 10px 5px;
    border-radius: 90px;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.2s;
    max-width: 300px;/* 1つあたりの最大幅を制限（PC用） */
}

.btn-sub {
    font-size: 13px; /* 小さく補足 */
    opacity: 0.9;
    margin-bottom: 0px;
}

.btn-main {
    font-size: 14px; /* メインはハッキリ */
    font-weight: bold;
}

/* ブランドカラー */
.btn-jalan { background-color: #FF9900; }
.btn-rakuten { background-color: #BF0000; }

/* デフォルトではPC用を消して、スマホ用を出す（モバイルファースト） */
.pc-guide-img { display: none; }
.sp-guide-img { display: block; width: 100%; height: auto; }

/* 960px以上のときはスマホ用を消して、PC用を出す */
@media screen and (min-width: 601px) {
    .pc-guide-img { display: block; width: 100%; height: auto; }
    .sp-guide-img { display: none; }
}


/* ==========================================
   ■ 地図表示用（search-results-base.php）
   ========================================== */
.base-map-container {
    width: 100%;
    height: 300px; /* PC/スマホでちょうどいい高さ */
    border: 1px solid #ddd;
    z-index: 1; /* ヘッダー等と重ならないように */
}
.base-map-container img {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}
/* Leafletのロゴ（旗のマーク）を非表示にする */
.leaflet-control-attribution svg {
    display: none !important;
}
/* PC表示（画面幅が768px以上）のとき */
@media screen and (min-width: 768px) {
    .base-map-container {
        /* PCでは横幅を少し絞って、高さを出すことで正方形に近づける */
        max-width: 700px; 
        height: 450px;
        margin-left: auto;
        margin-right: auto; /* 中央寄せ */
    }
}


/* ==========================================
   ■ マイページ用（お気に入りアイコンなど）（search-results.phpいまのところ）
   ========================================== */
/* アイコン群を包むラッパー */
.spot-action-icons {
    display: inline-flex;
    align-items: center;
    gap: 0px; /* アイコン同士の隙間 */
}

/* ボタンの無駄な装飾（枠線や背景）をリセットして押しやすくする */
.spot-action-icons button {
    background: none;
    border: none;
    padding: 4px;
    margin: 0;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s ease;
}

/* タップした時に少し凹むエフェクト（UX向上） */
.spot-action-icons button:active {
    transform: scale(0.9);
}

/* --- アイコンボタンの基本スタイル（未設定時はグレーアウト） --- */
.btn-spot-action {
    opacity: 0.4; /* グレーアウト状態 */
    filter: grayscale(100%);
    transition: all 0.2s ease;
}
.btn-spot-action:hover {
    opacity: 0.7;
}

/* 通信中の disabled スタイル */
.btn-spot-action:disabled {
    cursor: not-allowed;
    opacity: 0.2 !important;
}

/* --- 登録（active）された時の各カラー指定 --- */
.btn-spot-action.active {
    opacity: 1;
    filter: grayscale(0%);
}
.btn-favorite.active svg { fill: var(--ikidoki-favorite); } /* お気に入り：ゴールド */
.btn-visited.active svg { fill: var(--ikidoki-visited); }  /* 行った：エメラルド */
.btn-excluded.active svg { fill: var(--ikidoki-excluded); }  /* 除外：レッド */

/* --- 動的生成ポップアップ（モーダル）のスタイル --- */
.ikidoki-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}
.ikidoki-modal-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}
.ikidoki-modal-content {
    background: #fff; padding: 24px; max-width: 400px; width: 90%;
    border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transform: translateY(20px); transition: transform 0.3s ease;
}
.ikidoki-modal-overlay.is-open .ikidoki-modal-content {
    transform: translateY(0);
}
.ikidoki-modal-actions {
    margin-top: 20px; display: flex; justify-content: center; width: 100%;
}
.modal-btn-login {
    background: #C2410C; color: #fff; text-align: center; padding: 12px;
    border-radius: 6px; text-decoration: none; font-weight: bold;
}
.modal-btn-close {
    background: #e5e7eb; border: none; padding: 8px; border-radius: 6px; cursor: pointer;
}

