/* シミュレーター連携ボタンのCanva風スタイル */
    .simulator-integration-section {
        background: rgba(20, 25, 40, 0.4);
        border-radius: 12px;
        padding: 16px;
    }

    .primary-sim-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 12px 20px;
        background: linear-gradient(135deg, #1A1A24 0%, #0F1016 100%);
        border: 1px solid rgba(100, 200, 255, 0.25);
        border-radius: 12px;
        text-decoration: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        backdrop-filter: blur(10px);
    }

    .primary-sim-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 200, 255, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
        border-color: rgba(100, 200, 255, 0.5);
    }

    .primary-sim-btn .sim-icon {
        font-size: 1.5rem;
        color: #00e5ff;
        margin-right: 12px;
        filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.5));
    }

    .primary-sim-btn .sim-text-wrapper {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .primary-sim-btn .sim-title {
        font-family: 'Inter', 'Noto Sans JP', sans-serif;
        font-size: 0.95rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        background: linear-gradient(to right, #ffffff, #b3e5fc);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        line-height: 1.2;
        margin-bottom: 2px;
    }

    .primary-sim-btn .sim-subtitle {
        font-size: 0.7rem;
        color: #adb5bd;
        font-weight: 500;
        letter-spacing: 0.5px;
    }

    .desktop-sim-btn {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 12px 20px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        text-decoration: none;
        transition: all 0.3s ease;
        cursor: pointer;
        color: #fff;
    }

    .desktop-sim-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }

    .desktop-sim-btn .sim-icon {
        font-size: 1.5rem;
    }

    .desktop-sim-btn .sim-title {
        font-family: 'Inter', 'Noto Sans JP', sans-serif;
        font-size: 0.95rem;
        font-weight: 600;
        color: #fff;
    }

    .desktop-sim-btn .sim-subtitle {
        font-size: 0.7rem;
        color: #adb5bd;
        font-weight: 500;
        letter-spacing: 0.5px;
    }

    /* タイムラインのカスタムスタイル */
    .observation-timeline {
        display: flex;
        flex-direction: column;
        gap: 12px;
        font-family: 'Inter', sans-serif;
        padding-bottom: 16px;
    }

    .timeline-row {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .row-label {
        flex: 0 0 70px;
        font-size: 0.8rem;
        color: #adb5bd;
        font-weight: bold;
        text-align: right;
    }

    .timeline-cells {
        display: flex;
        flex-wrap: nowrap;
        gap: 4px;
    }

    .timeline-cells .cell {
        flex: 1 0 68px;
    }

    .cell {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 4px;
        height: 36px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        font-size: 0.75rem;
        color: #fff;
        transition: all 0.2s;
    }

    .time-axis .cell {
        background: transparent;
        color: #6c757d;
        height: 20px;
    }

    .weather-layer .cell {
        background: rgba(13, 110, 253, 0.1);
    }

    .weather-layer .cell i {
        font-size: 1rem;
        margin-bottom: 2px;
    }

    .data-layer .cell {
        background: rgba(255, 255, 255, 0.05);
        font-size: 0.7rem;
        color: #fff;
    }
    .data-layer .cell.cloud {
        color: #adb5bd;
    }
    .data-layer .cell.wind {
        color: #fff;
    }
    .data-layer .cell.humidity {
        color: #0dcaf0;
    }

    .object-layer .cell {
        position: relative;
        overflow: hidden;
    }

    .object-bar {
        width: 100%;
        height: 8px;
        border-radius: 4px;
    }

    .obj-good {
        background: #00e676;
        box-shadow: 0 0 10px rgba(0, 230, 118, 0.4);
    }

    .moon-impact {
        color: #ffd600;
        text-shadow: 0 0 8px rgba(255, 214, 0, 0.6);
    }

    .advice-excellent {
        border-color: #00e676 !important;
        background: rgba(0, 230, 118, 0.05);
    }

    .advice-danger {
        border-color: #ff4757 !important;
        background: rgba(255, 71, 87, 0.05);
    }

    .card-body {
        position: relative;
    }

    .ext-link-btn {
        padding: 4px 12px;
        border-radius: 15px;
        font-size: 0.7rem;
        font-weight: bold;
        text-decoration: none;
        backdrop-filter: blur(4px);
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        gap: 5px;
        color: #adb5bd !important;
    }

    .ext-link-btn:hover {
        transform: translateY(-1px);
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.3);
        color: #fff !important;
    }

    .btn-scw i {
        color: #00b0ff;
    }

    .btn-windy i {
        color: #ff5252;
    }

    #map {
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    }

    /* 機材サジェストのオーバーレイ */
    .autocomplete-suggestions {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 2000;
        background: #1a1c24;
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 8px;
        max-height: 200px;
        overflow-y: auto;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        display: none;
        margin-top: 4px;
    }

    .suggestion-item {
        padding: 8px 12px;
        cursor: pointer;
        transition: all 0.2s ease;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.8rem;
        background: #1a1c24;
    }

    .suggestion-item:hover {
        background: rgba(13, 110, 253, 0.25);
        padding-left: 15px;
    }

    .suggestion-model {
        color: #fff;
        font-weight: 600;
    }

    .suggestion-maker {
        color: #adb5bd;
        font-size: 0.65rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* ヒーロービジュアル - 刷新版 */
    .photo-layout-container {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }

    .photo-viewer {
        position: relative;
        width: 100%;
        background: #000;
        overflow: hidden;
        border-radius: 0; /* モバイルでは全幅 */
        transition: all 0.5s ease;
    }

    /* デフォルト：縦位置（または未確定時）は 2:3 の比率で枠いっぱいに表示 */
    .photo-viewer.is-portrait, .photo-viewer:not(.is-landscape) {
        aspect-ratio: 2 / 3;
        height: auto;
    }

    /* 横位置：3:2の比率で大きく表示（前のスタイル） */
    .photo-viewer.is-landscape {
        aspect-ratio: 3 / 2;
        height: auto;
    }

    .photo-bg {
        position: absolute;
        top: -20px;
        left: -20px;
        right: -20px;
        bottom: -20px;
        background-size: cover;
        background-position: center;
        filter: blur(25px) brightness(0.6);
        opacity: 0.7;
        z-index: 1;
        transition: opacity 0.5s;
    }

    /* 横写真の時は背景ぼかしを隠す */
    .photo-viewer.is-landscape .photo-bg {
        opacity: 0;
    }

    .photo-main {
        position: relative;
        z-index: 2;
        width: 100%;
        height: 100%;
        object-fit: cover; /* 常に枠いっぱいに表示 */
        display: block;
        transition: object-fit 0.5s;
    }

    /* 横写真は枠いっぱいに表示 */
    .photo-viewer.is-landscape .photo-main {
        object-fit: cover;
    }

    .photo-credit {
        position: absolute;
        bottom: 15px;
        right: 20px;
        z-index: 3;
        font-size: 0.7rem;
        color: rgba(255, 255, 255, 0.8);
        background: rgba(0, 0, 0, 0.7);
        padding: 6px 14px;
        border-radius: 20px;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        display: flex;
        align-items: center;
        gap: 10px; /* 隙間を広げて視認性を向上 */
        border: 1px solid rgba(255, 255, 255, 0.15);
        max-width: calc(100% - 40px); /* 画面端からはみ出さないように */
    }

    .photo-credit a {
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        transition: all 0.2s;
    }

    .photo-credit a:hover {
        color: #fff;
        background: rgba(255, 202, 40, 0.8); /* ホバー時はゴールド系 */
        transform: scale(1.1);
    }

    .photo-credit .author-name {
        color: #fff;
        font-weight: 600;
        white-space: nowrap; /* アイコン等の削除に伴い、名前がそのまま見えるように */
    }

    /* PC表示 (Split Layout) */
    @media (min-width: 992px) {
        .photo-layout-container {
            flex-direction: row;
            align-items: flex-start;
            gap: 2rem;
        }

        .photo-viewer {
            flex: 1;
            border-radius: 16px;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .photo-viewer.is-portrait, .photo-viewer:not(.is-landscape) {
            height: auto;
            aspect-ratio: 2 / 3;
            width: 100%;
            margin: 0 auto;
        }

        .photo-viewer.is-landscape {
            height: auto;
            aspect-ratio: 3 / 2;
        }

        .info-column {
            flex: 0 0 450px; /* 情報エリアの幅を固定 */
            max-width: 450px;
            position: sticky;
            top: 100px;
            height: fit-content;
        }
    }

    /* お気に入りボタン */
    #favoriteBtn {
        border-width: 2px;
    }
    #favoriteBtn.active {
        background-color: #dc3545;
        color: white;
        box-shadow: 0 0 15px rgba(220, 53, 69, 0.4);
    }
    #favoriteBtn:hover {
        transform: scale(1.1);
    }

    /* 掲示板拡張スタイル */
    .pinned-report {
        border-left: 4px solid var(--bs-warning) !important;
        background: rgba(255, 193, 7, 0.05) !important;
    }
    .x-small {
        font-size: 0.75rem;
    }
    .replies-container {
        font-size: 0.9em;
    }
    .reply-item:first-child {
        border-top: none !important;
    }
    /* メタデータ選択ボックスの幅調整 */
    .metadata-select {
        max-width: 130px;
    }
        /* 3層雲量インジケーター用スタイル */
        .cloud-bar-wrapper {
            position: relative;
            display: inline-block;
            width: 90%;
            min-width: 30px;
            height: 18px;
            margin: 0 auto;
            border-radius: 4px;
            cursor: pointer;
            background: rgba(255,255,255,0.05); /* 背景トラック */
            border: 1px solid rgba(255,255,255,0.1);
        }
        .cloud-bar-track {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border-radius: 3px;
            overflow: hidden;
            display: flex;
            align-items: flex-end; /* 下から積み上がるなら flex-end だが、横方向なので flex-start */
            flex-direction: column;
            justify-content: flex-end; /* 下から上に重ねるため flex-direction: column + justify-content: flex-end */
        }
        .cloud-bar {
            width: 100%; /* 親がcolumnなら幅は100%とし、高さを%で制御する（積層） */
            transition: height 0.3s ease;
        }
        /* 実際は雲量はそれぞれ独立した%だが、簡易的に重なるように絶対配置する方が視覚的に綺麗 */
        .cloud-bar-track {
            display: block; /* absoluteによる重ね合わせに変更 */
        }
        .cloud-bar {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            /* 雲量は低い方から手前に表示するためz-indexを調整 */
        }
        .cloud-bar.high {
            background: rgba(226, 232, 240, 0.85);
            z-index: 1;
        }
        .cloud-bar.mid {
            background: rgba(148, 163, 184, 0.85);
            z-index: 2;
        }
        .cloud-bar.low {
            background: rgba(71, 85, 105, 0.95);
            z-index: 3;
        }
        .cloud-total-text {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 0.7rem;
            font-weight: bold;
            color: #fff;
            text-shadow: 0px 0px 3px #000, 0px 0px 5px #000;
            z-index: 4;
            pointer-events: none;
        }
        .cloud-tooltip {
            visibility: hidden;
            opacity: 0;
            position: absolute;
            bottom: calc(100% + 8px);
            left: 50%;
            transform: translateX(-50%) translateY(10px);
            background: rgba(15, 20, 30, 0.95);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 8px;
            padding: 10px;
            width: max-content;
            color: #f8f9fa;
            font-size: 0.75rem;
            box-shadow: 0 8px 16px rgba(0,0,0,0.5);
            z-index: 1000;
            transition: all 0.2s ease;
            backdrop-filter: blur(4px);
            pointer-events: none;
            text-align: left;
        }
        .cloud-bar-wrapper:hover .cloud-tooltip {
            visibility: visible;
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }
        .cloud-tooltip::after {
            content: '';
            position: absolute;
            top: 100%;
            left: 50%;
            margin-left: -6px;
            border-width: 6px;
            border-style: solid;
            border-color: rgba(15, 20, 30, 0.95) transparent transparent transparent;
        }
        .cloud-tooltip .tooltip-title {
            font-weight: bold;
            color: #0df;
            margin-bottom: 6px;
            padding-bottom: 4px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        .cloud-tooltip .tooltip-row {
            margin-bottom: 3px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .cloud-tooltip .icon {
            font-size: 0.85rem;
        }

/* === ギャラリーグリッド（Masonry風） === */
                .masonry-gallery {
                    column-count: 3;
                    column-gap: 15px;
                    margin-top: 2rem;
                }

                @media (max-width: 992px) {
                    .masonry-gallery {
                        column-count: 2;
                    }
                }

                @media (max-width: 576px) {
                    .masonry-gallery {
                        column-count: 1;
                    }
                }

                /* 各カード */
                .gallery-item {
                    break-inside: avoid;
                    margin-bottom: 15px;
                    border-radius: 14px;
                    overflow: hidden;
                    background: rgba(255, 255, 255, 0.04);
                    border: 1px solid rgba(255, 255, 255, 0.08);
                    transition: transform 0.3s ease, box-shadow 0.3s ease;
                    position: relative;
                }

                .gallery-item:hover {
                    transform: scale(1.02);
                    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
                    border-color: rgba(255, 255, 255, 0.15);
                }

                /* 画像（比率維持） */
                .gallery-item-img {
                    width: 100%;
                    height: auto;
                    display: block;
                    min-height: 200px;
                    background-color: rgba(255, 255, 255, 0.05);
                    animation: pulse-bg-gallery 1.5s infinite ease-in-out;
                }

                @keyframes pulse-bg-gallery {
                    0% { background-color: rgba(255, 255, 255, 0.03); }
                    50% { background-color: rgba(255, 255, 255, 0.08); }
                    100% { background-color: rgba(255, 255, 255, 0.03); }
                }

                /* ホバーオーバーレイ */
                .gallery-overlay {
                    position: absolute;
                    top: 0;
                    left: 0;
                    right: 0;
                    bottom: 0;
                    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 40%, transparent 70%);
                    opacity: 0;
                    transition: opacity 0.3s ease;
                    display: flex;
                    flex-direction: column;
                    justify-content: flex-end;
                    padding: 16px;
                    pointer-events: none;
                }

                .gallery-item:hover .gallery-overlay {
                    opacity: 1;
                }

                .gallery-overlay .overlay-spot {
                    font-size: 0.9rem;
                    font-weight: 600;
                    color: #fff;
                    margin-bottom: 4px;
                }

                .gallery-overlay .overlay-user {
                    font-size: 0.75rem;
                    color: rgba(255, 255, 255, 0.7);
                }

                .overlay-user-link {
                    font-size: 0.75rem;
                    color: rgba(255, 255, 255, 0.7);
                    text-decoration: none;
                    pointer-events: auto; /* 親の none を上書きしてクリック可能に */
                    transition: all 0.2s ease;
                    display: inline-block;
                }

                .overlay-user-link:hover {
                    color: #fff;
                    text-decoration: underline;
                }

                /* カード下部情報 */
                .gallery-item-info {
                    padding: 14px 16px;
                }

                .gallery-meta {
                    display: flex;
                    flex-wrap: wrap;
                    gap: 5px;
                    margin-bottom: 10px;
                }

                .meta-badge {
                    padding: 2px 8px;
                    border-radius: 20px;
                    font-size: 0.65rem;
                    font-weight: 600;
                    background: rgba(255, 255, 255, 0.08);
                    color: rgba(255, 255, 255, 0.9);
                    border: 1px solid rgba(255, 255, 255, 0.15);
                    display: inline-flex;
                    align-items: center;
                }

                /* ユーザー行 & ソーシャル */
                .gallery-item-footer {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    padding: 0 16px 12px;
                }

                .user-info {
                    display: flex;
                    align-items: center;
                    gap: 8px;
                }

                .user-avatar {
                    width: 28px;
                    height: 28px;
                    border-radius: 50%;
                    background: linear-gradient(135deg, #667eea, #764ba2);
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    font-size: 0.7rem;
                    font-weight: bold;
                    color: #fff;
                }

                /* イイねボタン */
                .like-btn {
                    background: none;
                    border: 1px solid rgba(255, 255, 255, 0.12);
                    border-radius: 20px;
                    padding: 4px 12px;
                    color: #adb5bd;
                    cursor: pointer;
                    transition: all 0.2s ease;
                    font-size: 0.8rem;
                }

                .like-btn:hover, .like-btn.liked {
                    background: rgba(255, 71, 87, 0.1);
                    border-color: #ff4757;
                    color: #ff4757;
                }

                .like-btn.liked {
                    background: rgba(255, 71, 87, 0.15);
                }

                /* SNSアイコン */
                .sns-icons {
                    display: flex;
                    gap: 8px;
                }

                .sns-icon {
                    width: 28px;
                    height: 28px;
                    border-radius: 50%;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    font-size: 0.75rem;
                    text-decoration: none;
                    transition: all 0.2s ease;
                    border: 1px solid rgba(255, 255, 255, 0.1);
                    color: #adb5bd;
                }

                .sns-icon:hover {
                    transform: scale(1.15);
                }

                .sns-icon.x-link:hover {
                    background: rgba(255, 255, 255, 0.15);
                    color: #fff;
                    border-color: rgba(255, 255, 255, 0.3);
                }

                .sns-icon.ig-link:hover {
                    background: rgba(225, 48, 108, 0.25);
                    color: #e1306c;
                    border-color: rgba(225, 48, 108, 0.4);
                }

                /* Leaflet フォーカスによる強制スクロールを完全に抑え込む */
                .leaflet-container :focus,
                .leaflet-marker-icon:focus,
                .leaflet-popup-content-wrapper:focus {
                    outline: none !important;
                }
