/* Base Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.font-geist-mono {
    font-family: 'SF Mono', SFMono-Regular, ui-monospace, monospace;
}

/* Map Styles */
.japan-map-container {
    position: relative;
    width: 100%;
    height: 500px;
    margin: 0 auto;
    overflow: hidden;
}

.japan-map {
    width: 100%;
    height: 100%;
}

.prefecture {
    fill: #f0f0f0;
    stroke: #ddd;
    stroke-width: 1;
    transition: fill 0.3s ease;
}

.prefecture:hover {
    fill: #e0e0e0;
    cursor: pointer;
}

.prefecture.active {
    fill: #d1d5db;
}

.city-marker {
    fill: #4b5563;
    stroke: #ffffff;
    stroke-width: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.city-marker:hover, .city-marker.active {
    fill: #1e40af;
    r: 10;
}

.map-label {
    font-size: 16px;
    fill: #6b7280;
    text-anchor: middle;
    pointer-events: none;
}

.city-label {
    font-size: 10px;
    fill: #374151;
    text-anchor: middle;
    pointer-events: none;
}

/* Tooltip */
.map-tooltip {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    pointer-events: none;
    z-index: 10;
    max-width: 250px;
    transition: opacity 0.2s;
}

.tooltip-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.tooltip-content {
    font-size: 12px;
    color: #4b5563;
}

/* Table Styles */
table {
    border-collapse: separate;
    border-spacing: 0;
}

th, td {
    border-bottom-width: 1px;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* Chart Styles */
.chart-container {
    position: relative;
    margin: auto;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

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

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

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Region List Item Styles */
.region-item {
    padding: 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.region-item:hover {
    background-color: #f3f4f6;
    transform: translateX(2px);
}

.region-item.active {
    background-color: #e5e7eb;
    border-left: 3px solid #1e40af;
}
