@charset "utf-8";

/* --------------------------------------------

works

---------------------------------------------- */



.tab {
    padding: 0 20px;
    text-align: center;
    font-size: 16px;
    font-size: 1.6rem;
    color: #777777;
    cursor: pointer;
}

.tab.is-btn-active {
    position: relative;
    color: #000;
}

.tab.is-btn-active::after {
    position: relative;
    display: block;
    content: "";
    width: 110%;
    height: 4px;
    left: -5%;
    background-color: #FFC800;
}

.tab a {
    color: #fff;
}

.tab__contents {
    display: none;
}

.is-contents-active {
    display: block;
    animation-name: displayAnime;
    /*ふわっと表示させるためのアニメーション*/
    animation-duration: 0.7s;
}

.slide {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.swiper-container {
    position: relative;
    z-index: 10000;
    width: 100%;
    overflow: hidden;
}

.swiper-wrapper {
    display: flex;
}

.swiper-slide {
    width: auto;
    /* テキスト幅に応じて伸びる */
    padding: 10px 20px;
    font-size: 16px;
    font-size: 1.6rem;
    cursor: pointer;
    white-space: nowrap;
}

.swiper-button-next,
.swiper-button-prev {
    z-index: 9999;
    position: absolute;
    bottom: 12px !important;
    height: 24px !important;
    color: #777 !important;
    cursor: pointer;
}

.swiper-button-next.active,
.swiper-button-prev.active {
    z-index: 90;
}

.swiper-button-prev {
    left: -40px !important;
    transform: rotate(180deg);
}

.swiper-button-next {
    left: 820px !important;
}

@keyframes displayAnime {
    from {
        opacity: 0.3;
    }

    to {
        opacity: 1;
    }
}

.sp-only {
    display: none;
}

@media only screen and (max-width:640px) {
    .sp-only {
        display: flex;
    }

    .slide {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #fff;
        z-index: 10;
        border-top: 1px solid #ddd;
    }

    .slide__current {
        height: 56px;
        padding: 0 16px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-weight: bold;
        cursor: pointer;
        background-color: #FFC800;
    }

    .current-text,
    .arrow {
        font-size: 16px;
        font-size: 1.6rem;
    }

    .arrow {
        transition: transform .3s;
    }

    .slide.is-open .arrow {
        transform: rotate(180deg);
    }

    /* 一覧（Swiper） */
    .swiper-container {
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
    }

    .slide.is-open .swiper-container {
        max-height: 200px;
        /* 必要に応じて調整 */
    }
}


/* --------------------------------------------

product

---------------------------------------------- */

.product {
    margin-bottom: 200px;
}

.works__title {
    margin: 80px auto;
}

.works__title h2 {
    margin: 40px 0;
    text-align: center;
    font-weight: bold;
    font-size: 36px;
    font-size: 3.6rem;
}

.works__title h2 small {
    display: block;
    text-align: center;
    font-weight: normal;
    font-size: 16px;
    font-size: 1.6rem;
}

.works__title p {
    text-align: center;
}


.image__wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
}

.img-frame {
    width: calc((100vw - 115px) /6);
}

@media only screen and (max-width:640px) {

    .product {
        width: 94%;
        margin: 120px auto;
    }

    .works__title {
        margin: 80px auto;
    }

    .works__title h2 {
        font-size: 32px;
        font-size: 3.2rem;
    }

    .image__wrap {
        justify-content: space-between;
    }

    .img-frame {
        width: 290px;
    }
}