/* リセットとベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f0f0;
    color: #333;
}

/* メインコンテナ */
.container {
    display: flex;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* マップコンテナ */
.map-container {
    flex: 1;
    position: relative;
    transition: margin-left 0.3s ease;
    margin-left: 320px;
    width: calc(100% - 320px);
}

.container.panel-collapsed .map-container {
    margin-left: 0;
    width: 100%;
}

#map {
    width: 100%;
    height: 100%;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .control-panel {
        width: 100% !important;
        height: auto;
        max-height: 40vh;
        overflow-y: auto;
    }
    
    .map-container {
        height: 60vh;
    }
}

/* ローディング表示 */
.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* エラー表示 */
.error {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ff4444;
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    z-index: 1001;
    animation: slideIn 0.3s ease-out;
}

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

/* スクロールバーのカスタマイズ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
