/* ==================================================
   d3-thematika共通スタイル - 基本設定
   ================================================== */

/* リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS変数 */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --dark-lighter: #1e293b;
    --dark-light: #334155;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-reverse: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
}

/* 基本設定 */
body {
    font-family: 'Inter', sans-serif;
    background: var(--dark);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ナビゲーションバー */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.nav-brand:hover {
    color: var(--primary);
}

.nav-brand svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--gray-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary);
}

/* メインコンテナ */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    padding-top: 100px;
}

/* ブレッドクラム */
.breadcrumb {
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
}

.breadcrumb-item {
    color: var(--gray-light);
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: var(--gray-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-separator {
    color: var(--gray);
}

.breadcrumb-current {
    color: var(--primary);
    font-weight: 500;
}

/* セクションタイトル */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 3rem 0 2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* スクロールバー */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--dark-light);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray);
}

/* 基本アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ==================================================
   地図ヘッダーとダウンロードボタン
   ================================================== */

.map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--dark-light);
    padding: 1rem 1.5rem;
    border-radius: 1rem 1rem 0 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    margin-bottom: 0;
}

.map-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-light);
}

.download-buttons {
    display: flex;
    gap: 12px;
}

.download-button {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.download-button:active {
    transform: translateY(0);
}

#download-svg {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
}

#download-svg:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
}

#download-png {
    background: linear-gradient(135deg, #ec4899 0%, #f97316 100%);
}

#download-png:hover {
    background: linear-gradient(135deg, #db2777 0%, #ea580c 100%);
}

#map {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    border-radius: 0 0 1rem 1rem;
    overflow: hidden;
}