/* イベントアーカイブページのスタイル */
.events-archive {
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* タイトルを中央寄せ */
.events-archive .page-title,
.events-archive h1 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
    color: #333;
}

/* グリッドの幅を制限 */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 450px));
    gap: 30px;
    margin-top: 30px;
    justify-content: center; /* カードを中央に配置 */
    max-width: 1000px; /* グリッド全体の最大幅を制限 */
    margin: 30px auto 0; /* 中央寄せ */
}

/* カードの最大幅を固定 */
.event-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    max-width: 450px; /* 最大幅を固定 */
    width: 100%;
}

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

.event-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-content {
    padding: 20px;
}

.event-title a {
    text-decoration: none;
    color: #333;
    font-size: 1.3em;
    font-weight: bold;
}

.event-date, .event-location {
    margin: 10px 0;
    color: #666;
    font-size: 0.95em;
}

.date-label, .location-label {
    font-weight: bold;
    color: #555;
}

.event-excerpt {
    margin: 15px 0;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #007cba;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background: #005a87;
}

.no-events {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.2em;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        padding: 0 15px;
    }
    
    .events-archive {
        padding: 15px;
    }
    
    .events-archive .page-title,
    .events-archive h1 {
        font-size: 2em;
        margin-bottom: 30px;
    }
    
    .event-card {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .events-archive .page-title,
    .events-archive h1 {
        font-size: 1.8em;
    }
    
    .event-content {
        padding: 15px;
    }
}

