:root {
    --bg-color: #f8fafb;
    --card-bg: #ffffff;
    --brand-green: #01894d;
    --brand-orange: #f39800;
    --primary: var(--brand-green);
    --accent: var(--brand-orange);
    --success: #01894d;
    --danger: #ff4d4d;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --font-main: 'Inter', 'Noto Sans JP', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --radius: 12px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.main-header {
    background-color: var(--brand-green);
    border-bottom: 2px solid var(--brand-orange);
    padding: 0.75rem 0;
    margin-bottom: 24px;
}

.main-header-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.title-icon {
    width: 24px;
    height: 24px;
}

.brand-logo {
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.header-nav {
    display: flex;
    gap: 10px;
}

.header-link {
    text-decoration: none;
    color: #ffffff !important;
    font-size: 13.6px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 0.67px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.header-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* Card Style */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

/* Status Card */
.status-card {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 20px 30px;
}

.status-indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--success);
}

.status-info {
    flex: 1;
}

.status-text {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.status-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.status-count {
    text-align: right;
}

.count-value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--brand-orange);
    line-height: 1;
}

.count-unit {
    font-size: 1rem;
    color: var(--text-muted);
    margin-left: 4px;
}

/* Map Section */
.map-section {
    height: auto;
}

.card-header {
    margin-bottom: 15px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-muted);
}

#map {
    width: 100%;
    height: 500px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: #dbeafe;
}

/* List Section */
.list-section {
    margin-top: 10px;
}

.table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.teiden-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background: white;
}

.teiden-table th {
    padding: 12px 15px;
    background-color: #f8fafb;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.85rem;
    border-bottom: 2px solid var(--border-color);
}

.teiden-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.teiden-table tr:hover {
    background-color: #f1f5f9;
}

.count-cell {
    font-weight: 700;
    color: var(--brand-orange);
}

.pref-badge {
    background: #e2e8f0;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.no-data-msg {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-style: italic;
    background: white;
}

/* Info Section (Site Description) */
.info-section {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 0;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    text-align: left;
}

.info-header {
    width: 100%;
    padding: 15px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: #f8fafb;
    border: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
    outline: none;
}

.info-header:hover {
    background-color: #f1f3f5;
}

.info-header h2 {
    font-size: 1.1rem;
    color: var(--brand-green);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.toggle-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
    fill: #64748b;
}

.info-content {
    padding: 24px;
    border-top: 1px solid var(--border-color);
    display: block;
}

.info-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-main);
    margin-bottom: 0.8rem;
}

.info-content p:last-child {
    margin-bottom: 0;
}

.external-link {
    color: var(--brand-green);
    text-decoration: none;
    font-weight: 600;
}

.external-link:hover {
    text-decoration: underline;
}

/* Collapsed state */
.info-section.collapsed .info-content {
    display: none;
}

.info-section.collapsed .toggle-icon {
    transform: rotate(-180deg);
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}
