@charset "utf-8";

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal.is-open {
    display: block;
}

.modal-content {
    position: relative;
    width: 88%;
    max-width: 600px;
    margin: 10vh auto;
    padding: 30px;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.modal-content h3 {
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #CE0D1B;
    color: #CE0D1B;
    font-size: 18px;
    text-align: left;
}

.close-button {
    position: absolute;
    top: 8px;
    right: 18px;
    color: #aaaaaa;
    font-size: 30px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
}

.close-button:hover {
    color: #333333;
}

.event-image {
    display: block;
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 14px;
}

.modal-event-title {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: bold;
}

.event-desc {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.8;
}

.modal-event-items {
    margin: 0 0 12px;
    padding-left: 1.2em;
}

.modal-event-items li {
    list-style: disc;
    font-size: 14px;
    line-height: 1.9;
}

.modal-event-url {
    margin-top: 10px;
    text-align: right;
}

.modal-event-url a {
    color: #329545;
    text-decoration: underline;
}

.modal-no-event {
    padding: 20px 0;
    color: #888888;
    text-align: center;
}

.rolling img {
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    transform-origin: center bottom;
    animation: yurayura 2s linear infinite;
}

@keyframes yurayura {

    0%,
    100% {
        transform: rotate(10deg);
    }

    50% {
        transform: rotate(-10deg);
    }

}

.rolling img:hover {
    transform: scale(1.05);
    opacity: 0.85;
}

.rolling .rolling-hint {
    display: block;
    margin-top: 6px;
    color: #329545;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

.rolling-modal-title {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.6;
}

.rolling-modal-img {
    display: block;
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
}

.rolling-modal-text {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.9;
}

.rolling-modal-video {
    display: block;
    width: 100%;
    max-height: 60vh;
    border-radius: 8px;
    margin-bottom: 16px;
    background: #000;
}

.rolling-modal-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    background: #000;
}

.rolling-modal-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.rolling-modal-empty {
    padding: 20px 0;
    color: #888888;
    text-align: center;
}

.newsPop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 15000;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.newsPop.is-open {
    opacity: 1;
    visibility: visible;
}

.newsPop-box {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: 86vh;
    overflow-y: auto;
    padding: 26px 24px 22px;
    border-radius: 14px;
    background-color: #ffffff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    text-align: left;
    transform: translateY(14px) scale(0.97);
    transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.newsPop.is-open .newsPop-box {
    transform: translateY(0) scale(1);
}

.newsPop-close {
    position: absolute;
    top: 6px;
    right: 12px;
    padding: 4px 8px;
    border: none;
    background: none;
    color: #aaaaaa;
    font-size: 28px;
    font-weight: bold;
    font-family: inherit;
    line-height: 1;
    cursor: pointer;
}

.newsPop-close:hover {
    color: #333333;
}

.newsPop-label {
    margin: 0 0 12px;
    color: #CE0D1B;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.12em;
}

.newsPop-img {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 14px;
}

.newsPop-date {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 6px;
    color: #888888;
    font-size: 12px;
}

.newsPop-title {
    margin: 0 0 12px;
    font-size: 17px;
    font-weight: bold;
    line-height: 1.6;
    color: #343535;
}

.newsPop-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #555555;
}

.newsPop-more {
    margin: 6px 0 0;
}

.newsPop-more-btn {
    padding: 0;
    border: none;
    background: none;
    color: #329545;
    font-size: 13px;
    font-weight: bold;
    font-family: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.newsPop-more-btn:hover {
    opacity: 0.7;
}

.newsPop-link {
    margin: 14px 0 0;
    font-size: 14px;
}

.newsPop-link a {
    color: #329545;
    text-decoration: underline;
    word-break: break-all;
}

@media (prefers-reduced-motion: reduce) {

    .newsPop,
    .newsPop-box {
        transition: none;
    }

    .newsPop-box {
        transform: none;
    }
}

@media screen and (max-width: 480px) {
    .newsPop-box {
        padding: 24px 18px 20px;
    }

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