/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

/* fadeInUp アニメーション追加 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* イベントページ専用のコンテナスタイル */
.event-page-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 40px 20px;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 50px;
    position: relative;
    color: #2c3e50;
    animation: fadeInUp 0.8s ease-out;
}

.page-title::after {
    content: '';
    display: block;
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, #8eeee7 0%, #5fd4cd 100%);
    margin: 15px auto 0;
    border-radius: 2px;
    animation: expandWidth 1s ease-out 0.5s both;
}

@keyframes expandWidth {
    from { width: 0; }
    to { width: 120px; }
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin: 0 auto;
    animation: cardFadeIn 1s ease-out 0.3s both;
}

@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.event-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 1px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 5px 15px rgba(0, 0, 0, 0.1);
}

.event-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.event-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.event-card:hover .event-card-image img {
    transform: scale(1.1);
}

.status-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    z-index: 2;
}

.status-badge.status-ended {
    background: rgba(108, 117, 125, 0.9);
    color: white;
}

.status-badge.status-ongoing {
    background: rgba(40, 167, 69, 0.9);
    color: white;
    animation: pulse 2s infinite;
}

.status-badge.status-upcoming {
    background: rgba(0, 123, 255, 0.9);
    color: white;
}

.new-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
    backdrop-filter: blur(10px);
    z-index: 2;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.event-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 15px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.event-card:hover .event-title {
    color: #5fd4cd;
}

.event-date {
    font-size: 16px;
    font-weight: 600;
    color: #5fd4cd;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
}

.event-date::before {
    content: "📅";
    margin-right: 8px;
    font-size: 14px;
}

.event-time {
    font-size: 14px;
    color: #6c757d;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
}

.event-time::before {
    content: "🕐";
    margin-right: 8px;
    font-size: 12px;
}

.event-venue {
    font-size: 14px;
    color: #6c757d;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-venue::before {
    content: "📍";
    margin-right: 8px;
    font-size: 12px;
}

.event-price {
    font-size: 16px;
    font-weight: 600;
    color: #28a745;
    margin: auto 0 0 0;
    display: flex;
    align-items: center;
}

.event-price::before {
    content: "💰";
    margin-right: 8px;
    font-size: 14px;
}

.event-card-content.no-image {
    padding: 30px 25px;
}

.event-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.event-badges .status-badge,
.event-badges .new-badge {
    position: static;
    margin: 0;
}

.no-events {
    text-align: center;
    padding: 60px 20px;
    background: #f5f5f5;
    border-radius: 8px;
}

.no-events p {
    font-size: 18px;
    color: #666;
}

.pagination {
    text-align: center;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.pagination a:hover {
    background: #0073aa;
    color: white;
}

.pagination .current {
    background: #0073aa;
    color: white;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .container {
        padding: 20px;
        margin: 10px;
        border-radius: 15px;
    }

    .page-title {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }

    .page-title::after {
        width: 80px;
    }

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

    .event-card-content {
        padding: 20px;
    }

    .event-title {
        font-size: 18px;
    }

    .event-card-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.8rem;
    }

    .page-title::after {
        width: 60px;
        height: 2px;
    }

    .event-card-content {
        padding: 15px;
    }

    .event-title {
        font-size: 16px;
    }

    .status-badge, .new-badge {
        font-size: 10px;
        padding: 4px 8px;
    }
}