/* Cesium地図共通スタイル */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    width: 100%;
}

body {
    padding: 0;
    margin: 0;
    overflow: hidden;
    height: 100%;
    width: 100%;
    font-family: sans-serif;
}

#cesiumContainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* レイヤー切替ツールバー */
.layer-toolbar {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    padding: 6px;
    display: flex;
    gap: 6px;
}

.layer-toolbar button {
    border: none;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    transition: background 0.2s ease;
}

.layer-toolbar button:hover {
    background: rgba(255, 255, 255, .2);
}

.layer-toolbar button.active {
    background: #2d8cff;
}

/* 古地図ボタンを非表示にする場合 */
.layer-toolbar button.hidden {
    display: none;
}

.intro-marker-annotation {
    position: absolute;
    color: rgba(255, 255, 0, 0.85);
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    pointer-events: none;
    z-index: 1500;
    animation: intro-blink 1.5s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 0, 0.3);
}

@keyframes intro-blink {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(0.98);
    }

    50% {
        opacity: 1.0;
        transform: scale(1.02);
    }
}

/* ローディングオーバーレイ */
#intro-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 18px;
    margin-bottom: 10px;
}

.loading-progress {
    font-size: 24px;
    font-weight: bold;
    color: #4CAF50;
}