/* 
special.css
*/

/* ==============================
workshop
============================== */
.workshop .wrapper {
    padding-top: 60px;
}

.workshop__inner {
    display: flex;
    flex-direction: column;

    p {
        margin-top: 10px;
        font-size: var(--font-size-base);
        line-height: var(--line-height-normal);
        text-align: center;
    }
}

.workshop__image {
    width: 100vw;
    height: auto;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);

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

@media (width >= 768px) {
    .workshop {
        .wrapper {
            max-width: 1040px;
            padding: 60px 20px;
        }

        p {
            margin-top: 15px;
            line-height: var(--line-height-xl);
            text-align: start;
        }

        p:nth-of-type(2) {
            margin-top: 0;
        }
    }

    .workshop__image {
        width: 100%;
        height: auto;
        margin-right: 0;
        margin-left: 0;
    }
}

/* ==============================
gallery
============================== */
.gallery__slider {
    position: relative;
    width: 100%;
    margin-top: 50px;
    overflow: hidden;
}

.gallery__slides {
    position: relative;
    width: 100%;
    height: 240px;
}

.gallery__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
    visibility: hidden;
}

.gallery__slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

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

.gallery__dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.gallery__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 1px solid var(--color-primary);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-base);
}

.gallery__dot.active {
    background-color: var(--color-primary);
}

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

    .gallery__slider {
        margin-top: 80px;
    }

    .gallery__slides {
        height: 500px;
    }

    .gallery__dots {
        margin-top: 30px;
    }

    .gallery__dot {
        width: 12px;
        height: 12px;
    }

    /* PC版グリッドレイアウト */
    .gallery__grid {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 80px;
    }

    .gallery__row {
        position: relative;
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .gallery__row--bottom {
        flex-direction: row-reverse;
    }

    .gallery__row-slides {
        position: relative;
        flex: 1;
        overflow: hidden;
    }

    .gallery__row-slide {
        position: absolute;
        top: 0;
        left: 0;
        display: grid;
        gap: 10px;
        width: 100%;
        opacity: 0;
        transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
        grid-template-columns: repeat(3, 1fr);
        visibility: hidden;
    }

    .gallery__row-slide--active {
        position: relative;
        opacity: 1;
        visibility: visible;
    }

    .gallery__grid-item {
        width: 100%;
        height: 210px;
        overflow: hidden;
        border-radius: 5px;
        aspect-ratio: 1;
    }

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

    .gallery__nav-button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        padding: 0;
        cursor: pointer;
    }

    .gallery__nav-button--left {
        transform: rotate(180deg);
    }
}

/* ==============================
voice
============================== */
.section__head {
    h2 {
        white-space: wrap;
    }
}

.voice__list {
    display: flex;
    flex-direction: column;
    gap: 80px;
    margin-top: 100px;
}

.voice__item {
    position: relative;
    padding: 20px;
    border: 2px solid var(--color-black);
    border-radius: 10px;
}

.image__wrapper {
    position: absolute;
    top: -50px;
    left: 20px;
    width: 60px;
    height: 60px;

    img {
        width: 100%;
        height: 100%;
    }
}

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

    .voice__list {
        margin: 0 auto;
        margin-top: 50px;
    }

    .voice__item {
        position: relative;
        display: flex;
        align-items: center;
        gap: 60px;
        padding: 40px 20px;
    }

    .image__wrapper {
        position: static;
        top: auto;
        bottom: -65px;
        left: auto;
        width: 150px;
        height: 100%;

        img {
            position: absolute;
            bottom: -15px;
            left: 20px;
            width: 150px;
            height: 150px;
        }
    }

    .text__wrapper {
        flex: 1;
        line-height: var(--line-height-xl);
    }
}