/* EVENT用バウンス(グレー→ピンク) */
#event .title-bounce {
    animation: textBounceGrey 5s ease-in-out infinite;
}

#event .title-bounce:nth-child(1) { animation-delay: 0s; }
#event .title-bounce:nth-child(2) { animation-delay: 0.4s; }
#event .title-bounce:nth-child(3) { animation-delay: 0.8s; }
#event .title-bounce:nth-child(4) { animation-delay: 1.2s; }
#event .title-bounce:nth-child(5) { animation-delay: 1.6s; }

@keyframes borderGradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* EVENT セクション */
#event {
    height: auto;
    min-height: 702px;
    padding-top: 130px;
    padding-bottom: 100px;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}

#event h2 {
    color: #6e6e6e;
    position: relative;
    z-index: 2;
    font-weight: 300;
    -webkit-text-stroke: 5px #ffffff;
    text-stroke: 5px #ffffff;
    paint-order: stroke fill;
}

#event h2::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 5px);
    width: 1182px;
    height: 15px;
    background: linear-gradient(90deg,
        #ffcfe3 0%,
        #eaeaff 40%,
        #eaeaff 60%,
        #ffcfe3 100%);
    background-size: 200% 100%;
    border-radius: 5px;
    z-index: -1;
    animation: borderGradientFlow 10s ease-in-out infinite;
}

/* イベントリスト */
.event-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 50px;
    width: 1180px;
    margin-left: calc(50% - 590px - 1px);
    margin-right: auto;
}

.event-item {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.event-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    padding: 4px;
    background: linear-gradient(135deg, rgba(248, 165, 200, 0.3) 0%, rgba(157, 174, 228, 0.3) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: 0;
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.event-title {
    font-family: "Yu Mincho", "YuMincho", serif;
    font-size: 26px;
    font-weight: bold;
    color: #333333;
    margin: 0;
    text-align: center;
    flex: 1;
}

.event-date {
    font-family: "Yu Mincho", "YuMincho", serif;
    font-size: 14px;
    color: #7e7e7e;
    letter-spacing: 1px;
    white-space: nowrap;
    position: absolute;
    right: 0;
}

.event-image {
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.event-image img {
    width: 864px;
    height: auto;
    display: block;
    border-radius: 5px;
}

.event-description {
    position: relative;
    z-index: 1;
    width: 864px;
    margin: 0 auto;
}

.event-description p {
    font-family: "Yu Mincho", "YuMincho", serif;
    font-size: 18px;
    color: #333333;
    line-height: 1.8;
    margin-top: 20px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 1024px) {
    #event {
        padding-top: 80px;
        padding-bottom: 60px;
    }

    #event h2::before {
        width: 90%;
    }

    .event-list {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .event-image img {
        width: 100%;
    }

    .event-description {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    #event {
        padding-top: 50px;
        padding-bottom: 40px;
        min-height: auto;
    }

    #event h2::before {
        width: 95%;
    }

    .event-list {
        width: 95%;
    }

    .event-item {
        gap: 15px;
        padding: 20px;
    }

    .event-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

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

    .event-date {
        font-size: 14px;
        position: relative;
    }

    .event-image img {
        width: 100%;
    }

    .event-description {
        width: 100%;
    }

    .event-description p {
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .event-item {
        padding: 15px;
    }

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

