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

body {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* Header Styles */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
}

/* Prefecture Section */
.prefecture-section {
    padding: 3rem 0;
}

.prefecture-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #333;
}

.region-container {
    display: grid;
    gap: 2rem;
}

.region {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.region h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.prefecture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.prefecture-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    font-weight: 500;
}

.prefecture-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Event Page Styles */
.event-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.breadcrumb {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.6);
}

.event-container {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.filter-section {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.filter-section h3 {
    margin-bottom: 1rem;
    color: #667eea;
}

.filter-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-group select,
.filter-group input {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.filter-group button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: opacity 0.3s;
}

.filter-group button:hover {
    opacity: 0.9;
}

.event-list {
    display: grid;
    gap: 1.5rem;
}

.event-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.event-card:hover {
    transform: translateY(-3px);
}

.event-date {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.event-title {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.event-location {
    color: #666;
    margin-bottom: 1rem;
}

.event-description {
    color: #555;
    line-height: 1.6;
}

.event-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.event-tag {
    background: #f0f0f0;
    color: #666;
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.9rem;
}

/*/* SNS Share Buttons Styles */
.sns-share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.sns-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sns-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.sns-btn svg {
    fill: currentColor;
}

.sns-x {
    background: #000000;
}

.sns-x:hover {
    background: #1a1a1a;
}

.sns-facebook {
    background: #1877f2;
}

.sns-facebook:hover {
    background: #0c63d4;
}

.sns-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.sns-instagram:hover {
    background: linear-gradient(45deg, #e6851f 0%, #dc5228 25%, #c81d39 50%, #b81959 75%, #a8157e 100%);
}

.sns-line {
    background: #00c300;
}

.sns-line:hover {
    background: #00a600;
}

/* Event Card Share Buttons */
.card-share-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.card-sns-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f0f0f0;
}

.card-sns-btn:hover {
    transform: scale(1.1);
}

.card-sns-btn svg {
    fill: #666;
}

.card-sns-btn[data-sns="x"]:hover {
    background: #000000;
}

.card-sns-btn[data-sns="x"]:hover svg {
    fill: white;
}

.card-sns-btn[data-sns="facebook"]:hover {
    background: #1877f2;
}

.card-sns-btn[data-sns="facebook"]:hover svg {
    fill: white;
}

.card-sns-btn[data-sns="line"]:hover {
    background: #00c300;
}

.card-sns-btn[data-sns="line"]:hover svg {
    fill: white;
}

/*/* Region Management System */
.region-selector-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.region-selector-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.region-selector-content h2 {
    margin-bottom: 10px;
    color: #333;
    font-size: 24px;
}

.region-selector-content p {
    margin-bottom: 30px;
    color: #666;
    font-size: 16px;
}

.region-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.region-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.region-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.region-name {
    display: block;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.region-prefectures {
    display: block;
    font-size: 14px;
    opacity: 0.8;
}

.auto-detect-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.auto-detect-btn:hover {
    background: #218838;
}

/* Region Badge */
.region-badge {
    position: fixed;
    top: 80px;
    right: 20px;
    background: white;
    padding: 10px 15px;
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1000;
    border: 2px solid #667eea;
}

.badge-icon {
    font-size: 16px;
}

.badge-text {
    font-weight: bold;
    color: #667eea;
}

.badge-change {
    background: #667eea;
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.badge-change:hover {
    background: #5a67d8;
}

/* Priority Region Section */
.priority-region {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    color: white;
}

.priority-region h3 {
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.prefecture-grid.priority {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.prefecture-card.priority {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.prefecture-card.priority:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Favorite Stores */
.favorite-stores {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.favorite-stores h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 20px;
}

.favorite-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.favorite-item {
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #dee2e6;
}

.remove-favorite {
    background: #dc3545;
    color: white;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-favorite:hover {
    background: #c82333;
}

/* Nearby Regions */
.nearby-regions {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nearby-regions h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

.nearby-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nearby-btn {
    background: #e9ecef;
    border: 1px solid #dee2e6;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #495057;
}

.nearby-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Notifications */
.notification {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10000;
    animation: slideInLeft 0.3s ease;
    border-left: 4px solid #28a745;
}

.notification-info {
    border-left-color: #17a2b8;
}

.notification-success {
    border-left-color: #28a745;
}

.notification-action {
    background: #667eea;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.notification-action:hover {
    background: #5a67d8;
}

.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

/* Favorite Button for Event Cards */
.favorite-btn {
    background: #ffc107;
    color: #333;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.favorite-btn:hover {
    background: #e0a800;
    transform: scale(1.1);
}

.favorite-btn.active {
    background: #28a745;
    color: white;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .region-selector-content {
        padding: 30px 20px;
        margin: 20px;
    }

    .region-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .region-badge {
        top: 70px;
        right: 10px;
        padding: 8px 12px;
    }

    .badge-text {
        font-size: 14px;
    }

    .priority-region {
        padding: 20px;
        margin: 20px 10px;
    }

    .prefecture-grid.priority {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 10px;
    }

    .notification {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
}

$1
@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

.toast {
    font-family: 'Hiragino Sans', 'Meiryo', sans-serif;
}

/* Responsive Design for SNS Buttons */
@media (max-width: 768px) {
    .sns-share-buttons {
        gap: 10px;
    }

    .sns-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .sns-btn span {
        display: none;
    }

    .sns-btn svg {
        width: 18px;
        height: 18px;
    }
}

$1
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Goopachi Event Styles */
.goopachi-event {
    border-left: 4px solid #ff6b6b;
    background: linear-gradient(135deg, #fff5f5 0%, #ffeaea 100%);
}

.goopachi-event .event-title {
    color: #d63031;
}

.goopachi-event .event-source {
    background: #ff6b6b;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.event-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.event-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.event-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin: 0;
    flex: 1;
}

.event-date {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    white-space: nowrap;
}

.event-details {
    color: #666;
}

.event-hall {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.event-prefecture {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.event-source {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

/* Merged Event Styles */
.merged-event .event-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
}

.merged-event .event-hall {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin: 0;
    flex: 1;
}

.merged-events-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}

.merged-event-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.merged-event-item .event-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.merged-event-item .event-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.event-source-small {
    font-size: 0.75rem;
    color: #999;
    margin-left: 0.5rem;
}

/* Merge Toggle Styles */
.merge-toggle {
    display: inline-flex;
    align-items: center;
    margin-left: 1rem;
    cursor: pointer;
    user-select: none;
}

.merge-toggle input[type="checkbox"] {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.merge-toggle span {
    font-size: 0.9rem;
    color: #666;
}

/* Special Event Styles */
.special-event {
    font-weight: 600;
}

.special-event.oldEvent {
    color: #d9534f;
    background: linear-gradient(90deg, transparent, rgba(217, 83, 79, 0.1), transparent);
    padding: 2px 6px;
    border-radius: 3px;
}

.special-event.anniversary {
    color: #f0ad4e;
    background: linear-gradient(90deg, transparent, rgba(240, 173, 78, 0.1), transparent);
    padding: 2px 6px;
    border-radius: 3px;
}

/* Event Type Filter */
#event-type-filter {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
    margin-right: 1rem;
}

#event-type-filter:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.event-link {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
}

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

.no-events {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .prefecture-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .filter-group {
        flex-direction: column;
    }
    
    .filter-group select,
    .filter-group input,
    .filter-group button {
        width: 100%;
    }
}

/* Latest Events Section */
.latest-events-section {
    padding: 4rem 0;
    background: white;
}

.latest-events-section h2 {
    text-align: center;
    color: #333;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.search-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.search-container input {
    flex: 1;
    max-width: 400px;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.search-container input:focus {
    outline: none;
    border-color: #667eea;
}

.search-container button {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.search-container button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.filter-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-container select,
.filter-container input {
    padding: 0.5rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
}

.filter-container select:focus,
.filter-container input:focus {
    outline: none;
    border-color: #667eea;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-size: 1.1rem;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.event-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 4px solid #667eea;
}

.event-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.event-title {
    color: #333;
    font-size: 1.2rem;
    font-weight: bold;
    flex: 1;
    line-height: 1.4;
}

.event-date {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    white-space: nowrap;
    font-weight: 500;
}

.event-details {
    color: #666;
}

.event-hall {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #444;
}

.event-prefecture {
    margin-bottom: 0.5rem;
    color: #777;
    font-size: 0.9rem;
}

.event-source {
    font-size: 0.8rem;
    color: #999;
    font-style: italic;
}

.no-events {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

/* Mobile Responsive for Events */
@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .search-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-container input {
        max-width: none;
    }
    
    .filter-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .event-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .event-date {
        align-self: flex-start;
    }
    
    .latest-events-section h2 {
        font-size: 1.5rem;
    }
}

/* ============================================
   新しいカード型UIとページネーションスタイル
   ============================================ */

/* イベントセクション */
.events-section {
    padding: 3rem 0;
    background: #f5f5f5;
}

.page-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 0.5rem;
    text-align: center;
}

.page-description {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* 改良されたイベントカード（カチグミマックス風） */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.event-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0e0;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.event-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #dee2e6;
}

.event-type-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-type-regular {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.event-type-old {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
}

.event-type-anniversary {
    background: linear-gradient(135deg, #feca57 0%, #ff9ff3 100%);
    color: #333;
}

.event-type-new {
    background: linear-gradient(135deg, #48dbfb 0%, #0abde3 100%);
    color: white;
}

.event-card-header .event-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    background: transparent;
    padding: 0;
}

.event-card-body {
    padding: 1.25rem;
    flex-grow: 1;
}

.event-store-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.event-card-body .event-prefecture {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.event-card-body .event-prefecture .icon {
    flex-shrink: 0;
}

.event-description {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 0.75rem;
}

.event-card-footer {
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-source {
    font-size: 0.8rem;
    color: #6c757d;
}

.event-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.event-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* ページネーション */
.pagination {
    margin: 3rem 0;
    display: flex;
    justify-content: center;
}

.pagination-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-list li {
    margin: 0;
}

.pagination-prev,
.pagination-next,
.pagination-number {
    display: inline-block;
    padding: 0.6rem 1rem;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination-prev:hover,
.pagination-next:hover,
.pagination-number:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.pagination-number.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    cursor: default;
}

.pagination-number.active:hover {
    transform: none;
}

.pagination-ellipsis {
    display: inline-block;
    padding: 0.6rem 1rem;
    color: #999;
}

/* パンくずリスト */
.breadcrumb-nav {
    background: white;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 2rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
    align-items: center;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item::after {
    content: '›';
    margin-left: 0.5rem;
    color: #999;
}

.breadcrumb-item:last-child::after {
    content: '';
}

.breadcrumb-item a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-item a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #666;
}

/* イベントがない場合の表示 */
.no-events {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.no-events p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

/* レスポンシブデザイン - タブレット */
@media (max-width: 992px) {
    .events-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.25rem;
    }
}

/* レスポンシブデザイン - モバイル */
@media (max-width: 768px) {
    .page-title {
        font-size: 1.5rem;
    }

    .page-description {
        font-size: 1rem;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .event-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .event-store-name {
        font-size: 1.1rem;
    }

    .pagination-list {
        gap: 0.25rem;
    }

    .pagination-prev,
    .pagination-next,
    .pagination-number {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .breadcrumb-nav {
        padding: 0.75rem 0;
    }

    .breadcrumb {
        font-size: 0.9rem;
    }
}