/* --- セクション全体：背景グレー設定 --- */
.p-top-section-events {
    padding: 100px 0;
    background-color: #f9f9f9; /* 薄いグレー */
    color: #001a43;
    text-align: center;
}

/* 共通の見出し設定 */
.c-lead, .c-sub-lead {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 40px;
}
.c-sub-lead {
    margin-top: 60px; /* 小カードの上の余白 */
    margin-bottom: 30px;
}

/* --- 大カード（4枚）：横幅を固定して中央寄せ --- */
.p-event-grid--large {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 900px; /* ★ここで全体の広がりを抑える */
    margin: 0 auto 50px; /* 左右中央寄せ、下にボタンとの余白 */
}

.p-event-card {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.p-event-card__img {
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.p-event-card__img img {
    width: 100%; height: 100%; object-fit: cover;
}

/* 日付エリアの装飾 */
.p-event-card__date-box {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed #ddd;
}
.p-event-card__date-box .label { font-size: 10px; color: #888; display: block; }
.p-event-card__date-box .date { font-size: 15px; font-weight: bold; }

/* --- ボタンエリア：左右中央配置 --- */
.p-event-btn-area {
    display: flex;
    justify-content: center; /* 左右中央 */
    margin-bottom: 60px;
}

.c-button-dark {
    display: inline-flex;
    align-items: center;
    background-color: #001a43;
    color: #fff;
    padding: 14px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.3s;
}
.c-button-dark:hover { background-color: #003366; }

/* --- 小カード（3枚）：さらに幅を絞って中央寄せ --- */
.p-event-grid--small {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 700px; /* ★さらにスリムに固定 */
    margin: 0 auto;
}

.p-event-card--mini {
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.p-event-card__img--mini {
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}
.p-event-card__img--mini img { width: 100%; height: 100%; object-fit: cover; }

.p-event-card--mini .name { font-size: 13px; font-weight: bold; }


/* --- レスポンシブ --- */
@media (max-width: 768px) {
    .p-event-grid--large { grid-template-columns: repeat(2, 1fr); max-width: 500px; }
    .p-event-grid--small { grid-template-columns: 1fr; max-width: 300px; }
}