﻿:root {
    --bg-color: #f0f2f5;
    --card-bg: #ffffff;
    --primary-color: #1877f2; /* SNS風ブルー */
    --text-color: #1c1e21;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0; padding: 20px;
}

header { max-width: 600px; margin: 0 auto 30px; text-align: center; }

/* 管理ボタン */
.admin-controls { margin-bottom: 20px; }
.update-btn {
    background-color: #42b72a;
    color: white; border: none; padding: 10px 20px;
    border-radius: 6px; font-weight: bold; cursor: pointer;
}
#updateStatus { font-size: 12px; color: #666; margin-top: 5px; }

/* フィルタボタン */
.filter-container { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.filter-btn {
    padding: 6px 15px; border-radius: 20px; border: 1px solid #ddd;
    background: white; cursor: pointer; transition: 0.2s;
}
.filter-btn.active { background: var(--primary-color); color: white; border-color: var(--primary-color); }

/* タイムライン */
.timeline { max-width: 600px; margin: 0 auto; }

/* 投稿風カード */
.event-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.card-header { display: flex; justify-content: space-between; margin-bottom: 10px; }
.pref-badge {
    background: #e7f3ff; color: var(--primary-color);
    padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: bold;
}
.event-card h3 { margin: 0 0 10px; font-size: 18px; }
.event-card p { font-size: 14px; line-height: 1.5; color: #4b4f56; }

.thumbnail {
    width: 100%; border-radius: 8px; margin: 10px 0;
    max-height: 320px; object-fit: cover;
}

.event-link {
    display: block; text-decoration: none; color: var(--primary-color);
    font-size: 13px; margin-top: 10px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

@media (max-width: 480px) {
    body { padding: 10px; }
}