@charset "UTF-8";

#products {
    margin-bottom: 120px;
}
#products .products-list {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-bottom: 50px;
}
#products .products-list.active {
    display: grid;
}
#products .item {
    padding: 50px;
    border-top: 1px solid #666;
    border-left: 1px solid #666;
    text-align: center;
}
#products .item:nth-child(3n+1) {
    border-left: none;
}
#products .item .name {
    font-size: 1.25rem;
    font-weight: 700;
}
#products .item .name-ja {
    font-size: 0.625rem;
    margin-bottom: 10px;
}
#products .item .price {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 20px;
}
#products .item .img {
    padding: 0 30px;
    margin-bottom: 30px;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}
#products .item .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.5);
}
#products .item .detail {
    margin-bottom: 30px;
}
#products .item .detail-btn {
    font-size: 0.875rem;
    border: solid 1px #222;
    border-radius: 30px;
    padding: 8px 35px;
    display: inline-block;
    transition: 0.5s;
}
#products .item .detail-btn:hover {
    background-color: #222;
    color: #fff;
}
/*------------products trial-item---------------*/
#products .trial-item {
    grid-column: 1/4;
    grid-row: 3/4;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #666;
}
#products .trial-item .img-trial {
    width: 40%;
    padding: 0;
    margin-bottom: 0;
    margin-right: 10%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}
#products .trial-item .img-trial img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.3);
}

#products .trial-item .text {
    width: 50%;
    text-align: left;
}
/*------------products-switch---------------*/
#products .products-switch {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
}
#products .switch-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    color: #666;
}
#products .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid #666;
    display: inline-block;
    transition: 0.3s;
}
#products .switch-btn.active {
    color: #222;
    font-weight: 500;
}
#products .switch-btn.active .dot {
    background-color: #666;
}
#products .switch-btn:hover {
    opacity: 0.7;
}

/*---------------------------supplement-------------------------*/
.supplement {
    text-align: center;
    margin-bottom: 120px;
}
.supplement p {
    line-height: 1.8;
}
.supplement .line {
    border-bottom: solid 1px #666;
}



/*---------------------------------------
--------------タブレット-----------------------------*/
@media screen and (max-width: 900px) {
    #products .products-list {
    grid-template-columns: repeat(2, 1fr);
    }
    #products .trial-item {
        grid-column: 1/3;
        grid-row: 5/6;
    }
    #products .item:nth-child(3n+1) {
        border-left: 1px solid #666;
    }
    #products .item:nth-child(2n+1) {
        border-left: none;
    }
}

/*---------------------------------------
--------------スマートフォン-----------------------------*/
@media screen and (max-width: 520px) {
/*----------------------products-------------------*/
    #products {
        margin-bottom: 80px;
    }
    #products .products-list {
        grid-template-columns: 1fr;
    }
    #products .item {
        padding: 30px 50px;
        border-left: none;
    }
    #products .item:nth-child(3n+1) {
        border-left: none;
    }
/*------------products trial-item---------------*/
    #products .trial-item {
        grid-column: 1/2;
        grid-row: 7/8;
        flex-direction: column;
        align-items: stretch;
    }
    #products .trial-item .img-trial {
        width: 100%;
        margin: 0 0 30px;
        order: 2;
    }
    #products .trial-item .text {
        width: 100%;
        text-align: center;
        display: contents;
    }
    #products .trial-item .top-text {
        order: 1;
    }
    #products .trial-item .bottom-text {
        order: 3;
    }
/*------------products-switch---------------*/
    #products .products-switch {
        margin-bottom: 50px;
    }
/*---------------------------supplement-------------------------*/
    .supplement {
        margin-bottom: 80px;
    }


}