@charset "UTF-8";

.event__wrap {
    padding-top: 64px;
}

.event__ttl {
    margin-bottom: 38px;
}

.event__txt {
    margin-bottom: 42px;
    font-size: clamp(10px, 1.1724137931vw, 16px);
    line-height: 1.75;
    letter-spacing: .02em;
    text-align: center;
}

@media screen and (max-width: calc(1160px + 10vw)) {
    .event__wrap {
        padding-top: 4.6896551724vw;
    }

    .event__ttl {
        margin-bottom: 2.7844827586vw;
    }

    .event__txt {
        margin-bottom: 3.0775862069vw;
    }
}

.event-list {
    padding: 56px 0 120px;
    color: #555;
}

.event-list.event-list--empty {
    padding-bottom: 0;
}

.event-list__inner {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}

.event-filter {
    margin-bottom: 54px;
}

.event-filter__list {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.event-filter__item {
    position: relative;
    flex: 1 1 0;
    margin: 0;
    padding: 0;
    border: 1px solid #ccc;
    border-left: 0;
    box-sizing: border-box;
}

.event-filter__item:first-child {
    border-left: 1px solid #ccc;
}

.event-filter__link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    height: 88px;
    padding: 12px 16px;
    background-color: #fff;
    color: #4c4541;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .04em;
    text-align: center;
    text-decoration: none;
    transition: background-color .25s ease, color .25s ease;
    box-sizing: border-box;
}

.event-filter__link:hover,
.event-filter__link:focus-visible {
    background-color: #faf8f3;
    color: #b48c51;
}

.event-filter__link.is-active {
    background-color: #b48c51;
    color: #fff;
}

.event-filter__message {
    margin: 0 0 24px;
    padding: 12px 16px;
    background-color: #faf8f3;
    color: #4c4541;
    text-align: center;
}

.event-filter__message.is-error {
    background-color: #fff0f0;
    color: #a52020;
}

.event-filter__status {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.event-list.is-loading .event-grid {
    opacity: .45;
    pointer-events: none;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
}

.event-list--front-page .event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.event-list--front-page .event__ttl .subtit,
.event-list--front-page .event__ttl .tit,
.event-list--front-page .event__txt {
    color: #000;
}

.event-card {
    background-color: #fff;
    transition: transform .35s ease, box-shadow .35s ease;
}

.event-card__link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.event-card__image {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background-color: #eee;
}

.event-card__thumbnail {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.event-card:hover .event-card__thumbnail {
    transform: scale(1.06);
}

.event-card__body {
    padding: 24px 0 0;
}

.event-card__status {
    display: inline-block;
    margin-bottom: 16px;
    padding: 5px 12px;
    border: 1px solid #003e80;
    background-color: #003e80;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.event-card__status--ended {
    border-color: #cd3639;
    background-color: #cd3639;
    color: #fff;
}

.event-card__date,
.event-card__address {
    margin: 0;
    color: #555;
    font-size: 14px;
    line-height: 1.7;
}

.event-card__title {
    margin: 11px 0 0;
    color: #222;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .02em;
    transition: color .35s ease;
}

.event-card:hover .event-card__title {
    color: #003e80;
}

.event-list__empty {
    grid-column: 1 / -1;
    margin: 0;
    text-align: center;
}

@media screen and (max-width: 769px) {
    .event__wrap {
        padding-top: 10.6666666667vw;
    }

    .event__ttl {
        margin-bottom: 8vw;
    }

    .event__txt {
        margin-bottom: 6.6666666667vw;
        font-size: clamp(16px, 3vw, 32px);
    }

    .event-list {
        padding: 40px 0;
    }

    .event-list__inner {
        width: calc(100% - 40px);
    }

    .event-filter {
        margin-bottom: 30px;
    }

    .event-filter__link {
        height: 54px;
        padding: 8px 4px;
        font-size: 10px;
        line-height: 1.5;
        letter-spacing: 0;
    }

    .event-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 16px;
    }

    .event-card__body {
        padding: 16px 0 0;
    }

    .event-card__status {
        margin-bottom: 12px;
        padding: 4px 8px;
        font-size: 12px;
    }

    .event-card__address {
        font-size: 14px;
    }

    .event-card__title {
        margin-bottom: 12px;
        font-size: 18px;
    }

    .event-card__date {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .event-filter__link,
    .event-card,
    .event-card__thumbnail,
    .event-card__title {
        transition: none;
    }
}
