@charset "utf-8";

/* ==================================================================

    product.css

=================================================================== */

/* --------------------------------
■table_grid
-------------------------------- */ 
#itemList{
    p.text{
        margin-bottom: 76px;
    }

    .grid_box{
        li{
            position: relative;
            &.soldout{
                &::before{
                    content: '売り切れ';
                    position: absolute;
                    top: 13px;
                    left: 13px;
                    z-index: 1;

                    display: inline-block;
                    font-size: 1.5rem;
                    line-height: 1.1;
                    padding: 4px;
                    font-weight: 500;
                    color: #fff;
                    background-color: #C77171;
                }
            }
            &.negotiation{
                pointer-events: none;
                &::before{
                    content: '商談中';
                    position: absolute;
                    top: 13px;
                    left: 13px;
                    z-index: 1;

                    display: inline-block;
                    font-size: 1.5rem;
                    line-height: 1.1;
                    padding: 4px;
                    font-weight: 500;
                    color: #fff;
                    background-color: #C77171;
                }
            }
            &.none{
                pointer-events: none;
            }
            a{
                display: block;
                text-decoration: none;
                transition: 0.3s;
                &:hover{
                    opacity: 0.7;
                    figure{
                        img{
                            transform: scale(1.05);
                        }
                    }
                }
            }
            figure{
                .image{
                    overflow: hidden;
                    img{
                        transition: 0.3s;
                        width: 100%;
                        height: auto;
                    }
                    margin-bottom: 14px;
                }

                figcaption{
                    padding: 10px;
                    p{
                        font-size: 1.5rem;
                        font-weight: 500;
                        text-align: center;
                    }
                }
            }
        }
    }
}

/* --------------------------------
■table_grid
-------------------------------- */ 
.table_grid{
    .item{
        background: #fff;
        padding: 0 34px 57px 34px;
        border-right: 1px solid #E4E4E4;

        .title{
            font-size: 2.0rem;
            background: #1C1C1C;
            color: #fff;
            padding: 12px 20px;
            margin-left: -34px;
            margin-right: -34px;
            width: calc(100% + 68px);
            text-align: center;
        }
        
        .description{
            font-size: 1.6rem;
            text-align: center;
            margin: 24px 0 14px 0;
        }
        
        .image{
            text-align: center;
            img{
                max-width: 60%;
                width: 100%;
                height: auto;
            }
        }

        .buttonStyle{
            text-align: center;
            margin: 22px 0 0 0;
            a{
                width: 100%;
            }
        }

        .tableStyle{
            width: 100%;
            td{
                text-align: right;
            }
        }
    }

    & + .remarks{
        margin-top: 19px;
        font-size: 1.3rem;
    }
}

/* --------------------------------
■flowList
-------------------------------- */
.flowList{

    > li{
        position: relative;
        background: #fff;
        border: 1px solid #D4D4D4;

        & + li{
            margin-top: 46px;
        }

        &::before{
            content: '';
            position: absolute;
            bottom: -30px;
            left: 84px;
            width: 16px;
            height: 51px;
            background: url(../../images/common/icon/flow_arrow.svg) no-repeat center center / contain;
        }

        &:last-child{
            &::before{
                display: none;
            }
        }

        >dl{
            align-items: center;
            justify-content: space-between;
            gap: 34px;

            @media only screen and (max-width: 767px) {
                padding: 4vw 4vw 8vw 4vw;
                gap: 4vw;
            }

            dt{
                font-size: 2.0rem;
                font-weight: 500;
                width: calc(34.201954397% - 34px);
                flex-shrink: 0;
                padding:37px 0 37px 72px;

                @media only screen and (max-width: 767px) {
                    width: 100%;
                    padding: 0;
                    font-size: 1.6rem;
                }

                .en{
                    display: inline-block;
                    font-size: 3.6rem;
                    font-weight: 500;
                    margin-right: 8px;

                    @media screen and (max-width: 767px) {
                        font-size: 2.4rem;
                    }
                }
                
            }
            dd{
                flex-grow: 1;
                padding:37px 37px 37px 0;

                @media only screen and (max-width: 767px) {
                    padding: 0;
                }
            }
        }
    }

    & + .buttonStyle{
        margin-top: 52px;

        @media only screen and (max-width: 767px) {
            margin-top: 4vw;
        }
    }
}

/* --------------------------------
■PRODUCT作品グリッド
-------------------------------- */
.productWorksFilter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 0 0 28px;
}

.productWorksFilter__btn {
    appearance: none;
    margin: 0;
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-size: 1.4rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: 0.3s;
}

.productWorksFilter__btn.is-active,
.productWorksFilter__btn[aria-pressed="true"] {
    background: #fff;
    color: #1c1c1c;
    border-color: #fff;
}

.productWorksFilter__btn:focus-visible {
    outline: 1px solid #fff;
    outline-offset: 3px;
}

.productWorksGrid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.productWorksGrid.is-filtering {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

.productWorksGrid__item {
    margin: 0;
    min-width: 0;
}

.productWorksGrid__item[hidden] {
    display: none !important;
}

.productWorksGrid__item.is-appear {
    animation: productWorksAppear 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes productWorksAppear {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.productWorksGrid__thumb {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: #111;
    cursor: pointer;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.productWorksGrid__thumb:focus-visible {
    outline: 1px solid #fff;
    outline-offset: -3px;
}

.productWorksGrid__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--works-object-position, 50% 32%);
    pointer-events: none;
}

.productWorksGrid__badge {
    position: absolute;
    z-index: 1;
    top: 6px;
    left: 6px;
    padding: 3px 7px;
    font-size: 1.1rem;
    line-height: 1.2;
    letter-spacing: 0.08em;
    color: #fff;
    background: rgba(28, 28, 28, 0.62);
    pointer-events: none;
}

.productWorksMore {
    margin: 36px 0 0;
    text-align: center;
}

.productWorksMore[hidden] {
    display: none !important;
}

.productWorksMore__btn {
    appearance: none;
    min-width: 200px;
    margin: 0;
    padding: 14px 28px;
    border: 1px solid #fff;
    background: transparent;
    color: #fff;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: 0.3s;
}

.productWorksMore__btn:hover,
.productWorksMore__btn:focus-visible {
    background: #fff;
    color: #1c1c1c;
}

.productWorksMore__btn:focus-visible {
    outline: 1px solid #fff;
    outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) and (min-width: 768px) {
    .productWorksGrid__thumb {
        transition: opacity 0.3s;
    }

    .productWorksGrid__thumb img {
        transition: transform 0.7s ease;
    }

    .productWorksGrid__thumb:hover {
        opacity: 0.85;
    }

    .productWorksGrid__thumb:hover img {
        transform: scale(1.06);
    }
}

@media only screen and (max-width: 767px) {
    .productWorksFilter {
        margin-bottom: 20px;
        gap: 6px 8px;
    }

    .productWorksFilter__btn {
        padding: 7px 12px;
        font-size: 1.3rem;
    }

    /* SPは4列だとバッジ・タップが過密なため3列を採用 */
    .productWorksGrid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2px;
    }

    .productWorksGrid__badge {
        top: 4px;
        left: 4px;
        padding: 2px 5px;
        font-size: 1rem;
    }

    .productWorksMore {
        margin-top: 28px;
    }

    .productWorksMore__btn {
        width: 100%;
        max-width: 280px;
        padding: 12px 20px;
        font-size: 1.4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .productWorksGrid {
        transition: none;
    }

    .productWorksGrid.is-filtering {
        opacity: 1;
        transform: none;
    }

    .productWorksGrid__item.is-appear {
        animation: none;
    }
}
