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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    padding-bottom: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    text-align: left;
    margin-bottom: 10px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.3s;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.2);
}

h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

.header-info {
    font-size: 13px;
    opacity: 0.95;
    margin-top: 8px;
}

.filter-box {
    background: white;
    margin: 15px;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.filter-box h2 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #11998e;
}

.filter-section {
    margin-bottom: 15px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-label {
    font-size: 14px;
    font-weight: bold;
    color: #555;
    margin-bottom: 8px;
    display: block;
}

.region-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.region-dropdown {
    position: relative;
    display: inline-block;
}

.region-btn {
    padding: 8px 12px;
    background: #f0f0f0;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.region-btn:hover {
    background: #e8e8e8;
    border-color: #ccc;
}

.region-btn.has-selection {
    background: #e8f5e9;
    border-color: #11998e;
    color: #11998e;
}

.region-btn .arrow {
    font-size: 10px;
    transition: transform 0.2s;
}

.region-dropdown.open .region-btn .arrow {
    transform: rotate(180deg);
}

.region-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 140px;
    z-index: 100;
    display: none;
}

.region-dropdown.open .region-menu {
    display: block;
}

.region-menu label {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.2s;
    gap: 8px;
}

.region-menu label:hover {
    background: #f5f5f5;
}

.select-all-btn {
    display: block;
    width: calc(100% - 16px);
    margin: 8px;
    padding: 6px 10px;
    background: #11998e;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.select-all-btn:hover {
    background: #0d7a6e;
}

.select-all-btn.deselect {
    background: #e57373;
}

.select-all-btn.deselect:hover {
    background: #d32f2f;
}

.menu-divider {
    height: 1px;
    background: #eee;
    margin: 4px 0;
}

.region-menu label:last-child {
    border-radius: 0 0 8px 8px;
}

.region-menu input[type="checkbox"] {
    accent-color: #11998e;
}

.region-menu span {
    font-size: 13px;
}

.selected-prefectures {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.selected-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #e8f5e9;
    border: 1px solid #11998e;
    border-radius: 15px;
    font-size: 12px;
    color: #11998e;
}

.selected-tag .remove {
    cursor: pointer;
    font-weight: bold;
    margin-left: 2px;
}

.selected-tag .remove:hover {
    color: #c62828;
}

.selection-info {
    font-size: 12px;
    color: #888;
    margin-top: 6px;
}

.artist-select {
    width: 100%;
    max-width: 300px;
    padding: 10px 12px;
    font-size: 14px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s;
}

.artist-select:focus {
    outline: none;
    border-color: #11998e;
}

.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    font-size: 13px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn-clear {
    background: #f0f0f0;
    color: #666;
}

.filter-btn-clear:hover {
    background: #e0e0e0;
}

.filter-status {
    font-size: 13px;
    color: #666;
    margin-top: 10px;
    padding: 8px 12px;
    background: #f9f9f9;
    border-radius: 6px;
}

.filter-status strong {
    color: #11998e;
}

.event-card.hidden {
    display: none !important;
}

.month-section.hidden {
    display: none !important;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-size: 15px;
}

.info-box {
    background: white;
    margin: 15px;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.info-box h2 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #11998e;
}

.month-section {
    margin: 20px 15px;
}

.month-header {
    background: #11998e;
    color: white;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.month-header:hover {
    background: #0d7a72;
}

.month-header:active {
    background: #0a5f59;
}

.toggle-icon {
    font-size: 20px;
    transition: transform 0.3s;
}

.toggle-icon.open {
    transform: rotate(180deg);
}

.events-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

.events-grid.collapsed {
    max-height: 0;
    opacity: 0;
}

@media (min-width: 768px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .month-section {
        margin: 20px 30px;
    }
}

@media (min-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

.event-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.event-card:active {
    transform: scale(0.98);
}

.event-date {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.date-day {
    font-size: 28px;
    font-weight: bold;
    color: #11998e;
    margin-right: 10px;
    min-width: 50px;
}

.date-info {
    flex: 1;
}

.date-full {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.date-weekday {
    display: inline-block;
    background: #11998e;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 5px;
}

.date-weekday.saturday {
    background: #2196F3;
}

.date-weekday.sunday {
    background: #f44336;
}

.date-weekday.holiday {
    background: #f44336;
}

.artist-name {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    margin-right: 8px;
}

.prefecture {
    display: inline-block;
    background: #fff3e0;
    color: #e65100;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
}

.event-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.event-venue {
    display: inline-block;
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
}

.event-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    font-size: 14px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.detail-label {
    color: #888;
    font-size: 12px;
}

.detail-value {
    color: #333;
    font-weight: 500;
}

.event-link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background: #11998e;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    transition: background 0.3s;
}

.event-link:active {
    background: #0d7a72;
}

.price-highlight {
    color: #e74c3c;
    font-weight: bold;
}

.event-description {
    margin-top: 10px;
    padding: 10px;
    background: #f9f9f9;
    border-left: 3px solid #11998e;
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    white-space: pre-line;
}

footer {
    text-align: center;
    padding: 20px;
    color: #888;
    font-size: 12px;
}
