/**
 * 20th-anniversary（設立20周年記念ページ）のCSS
 */

@charset "utf-8";
.anniversary-main {
    position: relative;
    width: 100%;
    height: auto;
    color: #fff;
}


/* メッセージセクション */

.message-section {
    position: relative;
    width: 100%;
    height: auto;
    text-align: center;
    overflow: hidden;
    background-color: #000;
}

.parallelogram {
    position: relative;
    display: inline-block;
    width: 100%;
    height: auto;
    padding: 100px 10% 100px 10%;
    transform: skewX(-25deg);
    background: #025377;
}

.message-span {
    line-height: 150%;
    font-size: 25px;
    display: inline-block;
    transform: skewX(25deg);
}

.element-1 {
    animation: fadeIn 2s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/* パーティの様子 */

.party-scene-section {
    position: relative;
    width: 100%;
    height: auto;
    padding: 150px 5% 150px 5%;
    background: linear-gradient(90deg, rgb(82, 255, 241), rgb(22, 135, 237));
    background-size: 200% 200%;
    animation: gradientAnimation 5s infinite alternate;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.section-title-back {
    position: relative;
    top: 0;
    left: -6%;
    width: 70%;
    height: auto;
    background: linear-gradient(90deg, rgb(0, 68, 153), rgb(0, 0, 0, 0));
    padding: 1em 0 1em 6%;
    margin-bottom: .3em;
}

.party-scene-section-title {
    font-size: 40px;
    font-weight: bold;
}

.party-scene-section>p {
    font-size: 20px;
    margin-left: 0.5em;
}

.party-scene-section>p>span {
    font-weight: bold;
}

.back-strings {
    display: inline-block;
    position: absolute;
    top: 2em;
    right: 1em;
    text-align: right;
    width: auto;
    height: auto;
}

.back-strings p {
    font-size: 8vw;
    font-style: italic;
    font-weight: bold;
    opacity: 0.3;
}

.party-scene-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 3em;
}

.party-scene-item {
    width: 40%;
    height: auto;
    margin: 1em;
    padding: 2em;
    text-align: center;
    background-color: #025377;
    box-shadow: 2px 2px 8px rgba(42, 82, 102, 0.15);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.party-scene-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.img-box>img {
    width: 100%;
}

.img-box:hover {
    opacity: 0.7;
}

.party-scene-txt {
    margin-top: 1em;
    font-size: 16px;
    text-wrap: wrap;
    line-height: 140%;
    text-align: left;
}

.logo-img {
    width: 100%;
    height: 22vw;
    object-fit: cover;
}


/* SP&Tab */

@media(max-width: 991px) {
    .message-span {
        font-size: 24px;
    }
    .party-scene-section {
        padding: 100px 5% 100px 5%;
    }
    .party-scene-item {
        width: 80%;
        height: auto;
        margin: 15px;
        padding: 15px;
        text-align: center;
    }
    .section-title-back {
        width: 100%;
    }
    .party-scene-section-title {
        font-size: 36px;
        margin-bottom: 20px;
    }
    .party-scene-section>p {
        font-size: 15px;
        margin-left: 0.5em;
    }
    .party-scene-txt {
        margin-top: 1em;
        font-size: 16px;
        text-wrap: wrap;
    }
    .logo-img {
        width: 100%;
        height: 38vw;
        object-fit: cover;
    }
}


/* SP */

@media(max-width: 575px) {
    .party-scene-section-title {
        font-size: 25px;
    }
    .party-scene-item {
        width: 100%;
        height: auto;
        margin: 2em 2em 0 2em;
        padding: 1em;
        text-align: center;
    }
    .parallelogram {
        padding: 100px 15% 100px 15%;
        transform: skewX(-20deg);
    }
    .message-span {
        transform: skewX(20deg);
        font-size: 18px;
    }
}


/* モーダルスタイル */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.modal-active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    transform: scale(0.7);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modal-overlay.modal-active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1001;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

.modal-image-container {
    width: 100%;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    min-height: 0;
    min-width: 0;
}

.modal-image {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    background: #000;
}

.modal-text {
    padding: 20px;
    color: #333;
}

.modal-description {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}


/* レスポンシブ対応 */

@media(max-width: 768px) {
    .modal-content {
        max-width: 95%;
        max-height: 95%;
    }
    .modal-image-container {
        max-height: 50vh;
    }
    .modal-text {
        padding: 15px;
    }
    .modal-description {
        font-size: 14px;
    }
}