/* 
special.css
*/

/* ==============================
detail
============================== */
.detail {
    .wrapper {
        display: flex;
        flex-direction: column;
        gap: 50px;
    }

    .detail__flex {
        display: flex;
        flex-direction: column;
        gap: 50px;
    }

    .image__wrapper {
        position: relative;
        width: 100%;
        height: 240px;
        margin-top: 50px;
        margin-bottom: 20px;
        
        img {
            position: absolute;
            z-index: 10;
            width: 100%;
            height: 100%;
            overflow: hidden;
            border-radius:5px;
            box-shadow: 0 4px 4px 0 rgb(0 0 0 / 25%);
            object-fit: cover;
            object-position: center;
        }
    }

    .image__wrapper::after {
        position: absolute;
        bottom: -20px;
        z-index: 1;
        width: 100vw;
        height: 100%;
        margin-right: calc(50% - 50vw);
        margin-left: calc(50% - 50vw);
        content: '';
    }

    .detail__flex:nth-of-type(1) {
        .image__wrapper {
            img {
                top: 0;
                left: 0;
                margin-left: calc(50% - 50vw);
            }
        }

        .image__wrapper::after {
            background: linear-gradient(270deg, rgb(255 255 255 / 60%) 20%, rgb(174 227 244 / 60%) 100%);
        }
    }

    .detail__flex:nth-of-type(2) {
        .image__wrapper {
            img {
                top: 0;
                right: 0;
                margin-right: calc(50% - 50vw);
            }
        }

        .image__wrapper::after {
            background: linear-gradient(90deg, rgb(255 255 255 / 60%) 20%, rgb(174 227 244 / 60%) 100%);
        }
    }
}

.detail__flex-inner {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (width >= 768px) {
    .detail {
        .wrapper {
            gap: 80px;
            max-width: none;
            padding: 60px 0;
        }
        
        p {
            position: relative;
            z-index: 40;
            flex: 1;
            width: auto;
        }

        .detail__flex {
            position: relative;
        }

        .detail__flex-wrapper {
            display: flex;
            flex-direction: row-reverse;
            align-items: center;
            justify-content: space-between;
            gap: 50px;
            width: 100%;
            max-width: 1240px;
            padding: 0 20px;
        }

        .detail__flex-wrapper--reverse {
            flex-direction: row;
            max-width: 1240px;
        }

        .detail__flex--reverse {
            flex-direction: row;
        }

        .detail__flex::after {
            position: absolute;
            top: 0;
            left: 0;
            display: block;
            width: 100%;
            height: 100%;
            content: '';
        }

        .detail__flex:nth-of-type(1)::after {
            background: linear-gradient(270deg, rgb(255 255 255 / 60%) 20%, rgb(174 227 244 / 60%) 100%);
        }

        .detail__flex:nth-of-type(2)::after {
            background: linear-gradient(90deg, rgb(255 255 255 / 60%) 20%, rgb(174 227 244 / 60%) 100%);
        }

        .image__wrapper {
            position: relative;
            width: 40%;
            height: 300px;
            margin-top: 0;
            margin-bottom: 0;
            
            img {
                position: relative;
            }
        }

        .image__wrapper::after {
            display: none;
        }

        .detail__flex:nth-of-type(1) {
            .image__wrapper {
                img {
                    position: absolute;
                    top: -30px;
                    left: 0;
                    margin-left: auto;
                }
            }
        }

        .detail__flex:nth-of-type(2) {
            .image__wrapper {
                img {
                    position: absolute;
                    top: -30px;
                    right: 0;
                    margin-right: auto;
                }
            }
        }
    }
}

@media (width >=  1240px) {
    .detail {
        .detail__flex:nth-of-type(1) {
            margin-right: calc((100% - 1040px) / 2 );
        }

        .detail__flex:nth-of-type(2) {
            margin-left: calc((100% - 1040px) / 2 );
        }
    }
}

/* ==============================
fees
============================== */
.fees__content {
    margin-top: 50px;
}

.fees__price-inner {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: var(--font-size-medium);
    border-bottom: 1px solid var(--color-black);
}

.fees__price-inner p:nth-of-type(2) {
    font-weight: var(--font-weight-bold);
}

.fees__price-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 15px;
    line-height: var(--line-height-sxl);
}

.fees__image {
    height: 240px;
    margin-top: 30px;
    overflow: hidden;
    border-radius: 5px;
    object-fit: cover;
    object-position: center;

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

.fees__price-title {
    margin-top: 50px;
    font-size: var(--font-size-medium);
}

.fees__price-list {
    margin-top: 30px;
}

@media (width >= 768px) {
    .fees .wrapper {
        max-width: 1040px;
    }
    
    .fees__content {
        display: flex;
        flex-direction: column;
        gap: 50px;
    }

    .fees__item {
        display: flex;
        flex-direction: row-reverse;
        align-items: center;
        justify-content: space-between;
    }

    .fees__item-left {
        width: 60%;
    }

    .fees__price-title {
        margin-top: 0;
    }

    .fees__item-right {
        width: 35%;
    }

    .fees__image {
        width: 100%;
        margin-top: 0;
    }

    .fees__item-text {
        margin-top: 5px;
        line-height: var(--line-height-normal);
    }

    .fees__price-list {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
}

/* ==============================
video
============================== */
.video__flex {
    margin-top: 50px;
}

.video__text {
    margin-top: 50px;
    font-size: var(--font-size-medium);
    line-height: var(--line-height-xl);
    text-align: center;
}

.video__list {
    margin-top: 20px;
    border-top: 1px solid var(--color-black);
}

.video__item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
    line-height: var(--line-height-normal);
    border-bottom: 1px solid var(--color-black);

    .item__head {
        font-size: var(--font-size-medium);
    }

    .item__bottom {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
    }
}

.video__item .item__time-number {
    font-size: 18px;
}

.video__item:nth-of-type(even) {
    background: #F1F1F1;
}

.video__button {
    display: block;
    width: 200px;
    margin: 50px auto 0;
    padding: 10px 0;
    color: var(--color-base); 
    text-align: center;
    background-color: var(--color-primary);
}


@media (width >= 768px) {
    .video {
        .wrapper {
            max-width: 1040px;
        }

        .movie__iframe {
            width: 100%;
            height: 550px;
            margin: 0;
        }

        .video__flex {
            margin-top: 50px;
        }

        .video__list {
            max-width: 800px;
            margin: 50px auto 0;
        }

        .video__item {
            flex-direction: row;
                        align-items: center;

            .item__head {
                white-space: nowrap;
            }

            .item__bottom {
                justify-content: space-between;
                width: 100%;   
            }

            p {
                padding: 0 30px;
            }

            .item__time {
                font-size: var(--font-size-medium);
                white-space: nowrap;
            }

            .item__time-number {
                font-size: 24px;
            }
        }
    }

    .video__button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 300px;
        height: 60px;
        cursor: pointer;
        transition: var(--transition-base);

        &:hover {
            color: var(--color-black);
            background-color: var(--color-base);
            border: 2px solid var(--color-gradient-dark);
        }
    }
}

/* ==============================
location
============================== */
.location__inner {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 50px;
    line-height: var(--line-height-normal);
}

.location__wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.location__text {
    padding-left: 15px;
}

.location__nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.location__list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.location__map {
    margin-top: 30px;
}


.location__title {
    font-size: var(--font-size-base);
}

@media (width >= 768px) {
    .location .wrapper {
        max-width: 1040px;
    }

    .location__content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 50px;
    }

    .location__inner { 
        width: 40%;
        margin-top: 0;
    }

    .location__map {
        width: 50%;
        margin-top: 0;
    }

    .location__title {
        font-size: var(--font-size-medium);
    }
}

/* ==============================
section__flex
============================== */
.section__flex {
    display: flex;
    flex-direction: column;
    margin: 30px 0;

    section {
        position: relative;
        height: 450px;
    }

    .wrapper {
        position: relative;
        z-index: 20;
    }

    .section__bg {
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
        width: 100%;
        height: 100%;

        img {
            height: 100%;
        }
    }

    section::after {
        position: absolute;
        top: 0;
        left: 0;
        z-index: 10;
        width: 100%;
        height: 100%;
        background: linear-gradient(218deg, rgb(255 255 255 / 90%) 0%, rgb(255 255 255 / 60%) 100%);
        content: '';
        backdrop-filter: blur(2.5px);
    }
}

@media (width >= 768px) {
    .section__flex {
        flex-direction: row;

        section {
            flex: 1;
            height: auto;
            min-height: 470px;
        }
    }
}

/* ==============================
people
============================== */
.people {
    h4 {
        margin-top: 50px;
        font-size: var(--font-size-medium);
    }

    p {
        margin-top: 30px;
    }
}

/* ==============================
bring
============================== */
.bring {
    .bring__list {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-top: 50px;
        line-height: var(--line-height-normal);
    }
}

/* ==============================
time
============================== */
.time {
    h4 {
        margin-top: 50px;
        font-size: var(--font-size-medium);
    }

    p {
        margin-top: 30px;
    }
}

/* ==============================
hometown
============================== */
.hometown {
    .hometown__list {
        display: flex;
        flex-direction: column;
        gap: 30px;
        margin-top: 50px;
    }
    
    li a {
        text-decoration: underline
    }
}

@media (width >= 768px) {
    .hometown .wrapper {
        max-width: 1040px;
    }

    .hometown__list {
        padding: 0 50px;
    }
}

/* ==============================
video-info-modal
============================== */
.video-info-modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    display: none;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-info-modal.is-active {
    display: block;
    opacity: 1;
}

.video-info-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 / 70%);
    backdrop-filter: blur(2px);
}

.video-info-modal__content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 95%;
    max-width: 1200px;
    margin: 5vh auto;
    background: var(--color-base);
    box-shadow: 0 10px 40px rgb(0 0 0 / 30%);
    animation: modal-slide-in 0.3s ease;
}

@keyframes modal-slide-in {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-info-modal__image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 90vh;
    border-radius: 5px;
    object-fit: contain;
}

/* モバイル対応 */
@media (width <= 768px) {
    .video-info-modal__content {
        width: 95%;
        margin: 2.5vh auto;
        padding: 15px;
    }
    
    .video-info-modal__image {
        max-height: 95vh;
    }
}