/* ==========================================================================
   🌟 ヘッダーデザイン（追加部分）
   ========================================================================== */
.site-header {
    background-color: #1a1a1a;
    border-bottom: 1px solid #333;
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* 🖼️ タイトル横のロゴ画像のサイズ調整 */
.title-logo {
    height: 36px;      /* 👈 ここを 32px から 24px〜26px 程度に小さく設定 */
    width: auto;       /* 縦横比を維持 */
    object-fit: contain;
    vertical-align: middle; /* 文字との上下位置を綺麗に揃える */
}

/* スマホ表示時 */
@media (max-width: 600px) {
    .title-logo {
        height: 20px; /* 👈 スマホ用も少し小さめに調整 */
    }
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-title .icon {
    font-size: 1.2rem;
}

.site-subtitle {
    margin: 0;
    font-size: 0.85rem;
    color: #bc84ee;
    font-weight: 500;
}

/* スマホ対応（レスポンシブ） */
@media (max-width: 600px) {
    .site-header {
        padding: 12px 15px;
    }
    .header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .site-title {
        font-size: 1.1rem;
    }
    .site-subtitle {
        font-size: 0.75rem;
    }
}

/* ==========================================================================
   🎨 既存のデザイン（CSS部分）
   ========================================================================== */
body {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #121212;
    color: #ffffff;
}

.upper-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 380px;
    border-bottom: 3px solid #bc84ee;
    background-color: #1a1a1a;
}

#map {
    flex: 1;
    height: 100%;
    width: 50%;
    background-color: #222;
}

.address-sidebar {
    width: 50%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #333;
}

.sidebar-title {
    padding: 12px 15px;
    background: #222;
    font-weight: bold;
    font-size: 0.95rem;
    border-bottom: 1px solid #333;
    color: #bc84ee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.data-count-badge {
    font-size: 0.75rem;
    color: #aaa;
    background-color: #333;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: normal;
}

.address-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.address-item {
    padding: 10px 15px;
    font-size: 0.85rem;
    color: #ccc;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    border-bottom: 1px solid #222;
    display: flex;
    align-items: center;
}

.address-item:before {
    content: "📍";
    margin-right: 8px;
    font-size: 0.75rem;
}

.address-item:hover {
    background: #2a2a2a;
    color: #bc84ee;
}

.address-item.active {
    background: #ff333322;
    color: #ff8888;
    font-weight: bold;
    border-left: 4px solid #ff3333;
}

.gallery-title {
    font-size: 1.3rem;
    font-weight: bold;
    padding: 10px 15px;
    border-left: 5px solid #bc84ee;
    margin: 25px 15px 15px 15px;
    letter-spacing: 1px;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 15px 15px 15px;
}

.gallery-item {
    position: relative;
    background: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: transform 0.2s, box-shadow 0.2s;
    user-select: none;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(188, 132, 238, 0.3);
}

.img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #2a2a2a;
    overflow: hidden;
}

.img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.3);
    z-index: 10;
    transition: background 0.2s;
}
.gallery-item:hover .play-overlay {
    background: rgba(0,0,0,0.1);
}
.play-button-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 51, 102, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    color: white;
    font-size: 1.5rem;
    padding-left: 4px;
    box-sizing: border-box;
}

.media-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 4px;
    z-index: 20;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.6);
    pointer-events: none;
}

.badge-video { background-color: #ff3366; color: white; }
.badge-image { background-color: #00cc66; color: white; }

.info-wrapper {
    padding: 12px;
    background: #1e1e1e;
}

.info-text {
    margin: 0 0 5px 0;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #ddd;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.info-date {
    font-size: 0.75rem;
    color: #888;
}

.active-marker {
    filter: drop-shadow(0 0 6px rgba(255, 51, 51, 0.9));
    z-index: 1000 !important;
}

.show-all-link {
    font-size: 0.75rem;
    color: #ffffff;
    background-color: #bc84ee;
    padding: 4px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s, transform 0.1s;
    border: none;
    cursor: pointer;
    outline: none;
    font-family: inherit;
}

.show-all-link:hover {
    background-color: #a66dd6;
    transform: scale(1.05);
}

.show-all-link:active {
    transform: scale(0.95);
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 20px 0 40px 0;
    user-select: none;
}

.page-btn {
    background-color: #222;
    color: #fff;
    border: 1px solid #444;
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.page-btn:hover:not(:disabled) {
    background-color: #bc84ee;
    border-color: #bc84ee;
}

.page-btn:disabled {
    color: #555;
    border-color: #222;
    cursor: not-allowed;
}

.page-info {
    font-size: 0.9rem;
    color: #ccc;
}

.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}
.modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    background: #000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    border-radius: 8px;
    overflow: hidden;
}
.modal-content video {
    width: 100%;
    height: 100%;
}
.modal-close {
    position: absolute;
    top: -45px;
    right: 0;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    font-weight: bold;
    user-select: none;
}

@media (max-width: 600px) {
    .upper-container {
        display: block !important;
        height: auto !important;
    }
    #map {
        width: 100% !important;
        height: 350px !important; 
        display: block !important;
        position: relative !important;
    }
    .address-sidebar {
        width: 100% !important;
        height: 250px !important; 
        border-left: none !important;
        border-top: 2px solid #333 !important;
        display: flex !important;
    }
    .gallery-container {
        grid-template-columns: repeat(3, 1fr) !important; 
        gap: 8px !important;
        padding: 0 8px 8px 8px !important;
    }
    .info-wrapper {
        padding: 6px !important;
    }
    .info-text {
        font-size: 0.75rem !important;
        -webkit-line-clamp: 1 !important;
    }
    .page-info {
        font-size: 0.65rem !important;
    }
    .media-badge {
        top: 4px !important;
        right: 4px !important;
        padding: 2px 4px !important;
        font-size: 0.55rem !important;
    }
    .play-button-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}