/* 
denim.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-inner {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (width >= 768px) {
    .detail {
        .wrapper {
            gap: 80px;
            max-width: none;
            padding: 90px 0 60px;
        }
        
        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(90deg, rgb(255 255 255 / 60%) 20%, rgb(174 227 244 / 60%) 100%);
        }

        .image__wrapper {
            position: relative;
            width: 100%;
            height: 300px;
            max-width: 50%;
            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;
                }
            }
        }
    }
}

@media (width >=  1240px) {
    .detail {
        .detail__flex:nth-of-type(1) {
            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);

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

.fees__price-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 15px;
}

.fees__inner {
    display: flex;
    flex-direction: column-reverse;
    gap: 15px;
}

.fees__image {
    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;
}

.fees__workshop {
    h3 {
        margin-top: 60px;
        font-size: var(--font-size-medium);
        text-align: center;
    }

    .fees__workshop-inner {
        display: flex;
        flex-direction: column;
        gap: 30px;
        margin-top: 50px;
        line-height: var(--line-height-normal);
    }
}

@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;
        gap: 70px;
    }

    .fees__inner {
        flex-direction: column;
        margin-top: 10px;
    }

    .fees__item-left {
        width: 60%;
    }

    .fees__price-title {
        margin-top: 0;
        font-size: 24px;
    }

    .fees__item:nth-of-type(2) {
        .fees__price-title:nth-of-type(1) {
            font-size:20px;
        }

        .fees__price-title:nth-of-type(2) {
            margin-top: 30px;
        }
    }

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

    .fees__item-right {
        width: 33%;
    }

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

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

    .fees__workshop {
        margin-top: 50px;

        h3::before,
        h3::after {
            content: '※※※';
        }

        h3 {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .fees__workshop-inner {
            margin-top: 30px;
            line-height: var(--line-height-xxl);
            text-align: center;
        }
    }
}

/* ==============================
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;
}

@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;

    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;
    }
}