:root {
    --primary-color: #f39c12; /* Warm Orange */
    --secondary-color: #27ae60; /* Soft Green */
    --accent-color: #2980b9; /* Subtle Blue */
    --bg-color: #fafbfc;
    --card-bg: #ffffff;
    --text-main: #2c3e50;
    --text-muted: #7f8c8d;
    --border-radius: 12px;
    --shadow: 0 4px 6px rgba(0,0,0,0.05);
    --font-family: 'Outfit', 'Noto Sans JP', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Skip navigation */
.skip-nav {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip-nav:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    font-weight: bold;
    text-decoration: none;
    display: block;
    text-align: center;
}

header {
    background: linear-gradient(135deg, var(--primary-color), #e67e22);
    color: white;
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1rem;
    opacity: 0.9;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Search */
.search-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: var(--card-bg);
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    box-shadow: var(--shadow);
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.95rem;
    font-family: var(--font-family);
    color: var(--text-main);
    background: transparent;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-icon {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Past events toggle */
.past-toggle-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.past-toggle-row input[type="checkbox"] {
    accent-color: var(--primary-color);
    width: 1rem;
    height: 1rem;
    cursor: pointer;
}

.past-toggle-row label {
    cursor: pointer;
}

/* Filters */
.filter-label {
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: block;
    color: var(--text-muted);
}

.filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    background: var(--card-bg);
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Venue Buttons */
.venue-filters {
    margin-bottom: 2rem;
}

.venue-btn {
    padding: 0.6rem 1.2rem;
    border: 1px solid #ddd;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    color: var(--text-main);
    white-space: nowrap;
}

.venue-btn:hover {
    background: #f8f9fa;
    border-color: #ccc;
}

.venue-btn.active {
    background: #34495e;
    color: white;
    border-color: #34495e;
}

/* Event List */
.event-list {
    display: grid;
    gap: 1.5rem;
}

.no-events-msg {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.event-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 6px solid var(--primary-color);
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.event-card.j-league { border-left-color: #3498db; }
.event-card.rugby { border-left-color: #e74c3c; }
.event-card.market { border-left-color: #f1c40f; }
.event-card.keio-arena { border-left-color: #9b59b6; }

.badge-row {
    margin-bottom: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.event-date {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.event-title {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.event-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.event-desc {
    margin-top: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-main);
}

.event-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    background: #f0f2f5;
    display: inline-block;
}

.venue-badge {
    background: #34495e;
    color: white;
}

.badge-today {
    background: #e74c3c;
    color: white;
}

.badge-tomorrow {
    background: #e67e22;
    color: white;
}

.badge-thisweek {
    background: #27ae60;
    color: white;
}

.event-link {
    display: inline-block;
    margin-top: 0.8rem;
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--accent-color);
    text-decoration: none;
}

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

/* Around guide section */
.around-guide {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.around-guide h2 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-main);
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.guide-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #f0f2f5;
}

.guide-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.guide-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.guide-card h3.color-primary { color: var(--primary-color); }
.guide-card h3.color-arena { color: #9b59b6; }

/* Footer */
footer {
    text-align: center;
    padding: 3rem 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-note {
    font-size: 0.8rem;
    margin-top: 5px;
}

@media (max-width: 600px) {
    header h1 { font-size: 1.5rem; }
    .event-card { padding: 1rem; }
}
