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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

main {
    padding: 40px 20px;
    min-height: 400px;
}

#loading {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    padding: 40px;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.report-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 24px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.report-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.report-date {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
}

.report-count {
    color: #666;
    font-size: 0.95rem;
}

.report-link {
    display: inline-flex;
    align-items: center;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    margin-top: 8px;
    transition: color 0.2s ease;
}

.report-link:hover {
    color: #764ba2;
}

.no-reports,
.error {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 1.1rem;
}

.error {
    color: #dc3545;
}

footer {
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid #e9ecef;
}

footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}

/* レポートコンテンツのスタイル */
.report-content {
    max-width: 900px;
    margin: 0 auto;
}

.report-content h1 {
    color: #333;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
    margin-bottom: 30px;
    font-size: 2rem;
}

.report-content h2 {
    color: #667eea;
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.6rem;
    border-left: 4px solid #764ba2;
    padding-left: 15px;
}

.report-content h3 {
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.report-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.report-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.report-content li {
    margin-bottom: 8px;
}

.report-content a {
    color: #667eea;
    text-decoration: none;
    word-break: break-all;
}

.report-content a:hover {
    text-decoration: underline;
}

.report-content hr {
    border: none;
    border-top: 1px solid #e9ecef;
    margin: 30px 0;
}

.report-content strong {
    color: #333;
    font-weight: 600;
}

.subtitle a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.subtitle a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .reports-grid {
        grid-template-columns: 1fr;
    }

    body {
        padding: 10px;
    }

    main {
        padding: 20px;
    }

    .report-content h1 {
        font-size: 1.6rem;
    }

    .report-content h2 {
        font-size: 1.4rem;
    }

    .report-content h3 {
        font-size: 1.2rem;
    }
}
