:root {
    /* Google系UIを意識したカラーパレット */
    --primary-color: #1a73e8;
    --primary-hover: #1557b0;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --bg-main: #f8f9fa;
    --bg-card: #ffffff;
    --border-color: #dadce0;
    --shadow-sm: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --border-radius: 12px;
}

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

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    padding-top: 70px; /* Header height */
}

/* Header & Search */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
}

.logo h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

#searchInput {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 1px solid transparent;
    border-radius: 24px;
    background-color: #f1f3f4;
    font-size: 1rem;
    transition: all 0.2s ease;
    outline: none;
    font-family: inherit;
}

#searchInput:focus {
    background-color: var(--bg-card);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

/* Hero Section - Image + Text Separated */
.hero {
    border-radius: var(--border-radius);
    margin-bottom: 32px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
}

.hero-image-wrapper {
    width: 100%;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.hero:hover .hero-image {
    transform: scale(1.02);
}

.hero-text {
    padding: 28px 32px;
    background: linear-gradient(135deg, #e8f0fe 0%, #d2e3fc 100%);
    border-top: 3px solid #1a73e8;
}

.hero h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    color: #1a237e;
}

.hero-subtitle {
    font-size: 1rem;
    color: #3c4043;
    line-height: 1.7;
}

.hero-badge {
    display: inline-block;
    background-color: #1a73e8;
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 14px;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.span-2 {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .span-2 {
        grid-column: span 1;
    }
    
    .header-container {
        flex-direction: column;
        gap: 16px;
    }
    
    body {
        padding-top: 110px;
    }

    .hero-image {
        height: 200px;
    }

    .hero-text {
        padding: 20px 20px;
    }

    .hero h2 {
        font-size: 1.35rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }
}

/* Cards */
.card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-sm);
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-header span {
    color: var(--primary-color);
}

.card-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.card-body {
    padding: 24px;
}

/* Info Table (Overview) */
.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table th, .info-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #f1f3f4;
    text-align: left;
}

.info-table th {
    color: var(--text-secondary);
    font-weight: 500;
    width: 35%;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
    border-bottom: none;
}

/* Timeline */
.timeline {
    list-style: none;
    position: relative;
    padding-left: 24px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e8eaed;
}

.timeline-item {
    position: relative;
    margin-bottom: 24px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -24px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid white;
    box-shadow: 0 0 0 1px var(--border-color);
}

.timeline-item.future .timeline-dot {
    background-color: #dadce0;
    border: 3px solid white;
    box-shadow: 0 0 0 1px #dadce0;
}

.timeline-item.future .timeline-content h4 {
    color: var(--text-secondary);
}

.timeline-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Business Grid */
.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.business-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px 12px;
    text-align: center;
    background-color: #f8f9fa;
    font-weight: 500;
    transition: background-color 0.2s, border-color 0.2s, transform 0.15s;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.business-card:hover {
    background-color: #e8f0fe;
    color: var(--primary-color);
    border-color: #d2e3fc;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.business-name {
    font-size: 0.95rem;
    font-weight: 600;
}

.business-role {
    font-size: 0.7rem;
    color: var(--text-secondary);
    background-color: rgba(0,0,0,0.04);
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
}

.business-card:hover .business-role {
    background-color: rgba(26, 115, 232, 0.1);
    color: var(--primary-color);
}

/* News List */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-item {
    display: flex;
    flex-direction: column;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.news-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 4px;
}

.news-title:hover {
    text-decoration: underline;
}

.news-source {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: inline-block;
    background-color: #f1f3f4;
    padding: 2px 8px;
    border-radius: 12px;
    width: fit-content;
}

/* Map */
.map-container {
    padding: 0;
}
.map-container iframe {
    display: block;
    width: 100%;
}

/* Search Results */
.hidden {
    display: none !important;
}

.search-results {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.search-results h3 {
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.result-item {
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-color);
}

.result-item:last-child {
    border-bottom: none;
}

.result-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    background-color: #e8f0fe;
    color: var(--primary-color);
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 4px;
    display: inline-block;
}

.result-text {
    font-size: 0.95rem;
}

.result-link {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.85rem;
    color: var(--primary-color);
    text-decoration: none;
}

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

/* AI Disclaimer Banner */
.ai-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(135deg, #fff8e1 0%, #fff3e0 100%);
    border: 1px solid #ffe0b2;
    border-left: 4px solid #ff9800;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 28px;
    animation: fadeInSlide 0.6s ease-out;
}

.ai-disclaimer .disclaimer-icon {
    color: #e65100;
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 2px;
}

.ai-disclaimer p {
    font-size: 0.88rem;
    line-height: 1.7;
    color: #4e342e;
    margin: 0;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 24px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-disclaimer {
    margin-top: 8px;
    font-size: 0.8rem;
    color: #9e9e9e;
}
