﻿.products-box{
    width: 100%;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
    margin-top: 180px;
    min-height: calc(100vh - 180px);
    display:         flex;
    display: -webkit-flex;
    align-items: stretch;
    -webkit-align-items: stretch;
    flex-direction: row;
    background-color: #fafafa;
}
.products-class-box{
    width: 320px;
    background-color: #eee;
    font-size: 0;
    box-sizing: border-box;
    padding: 30px 25px;
}
.products-class-name{
    font-size: 28px;
    letter-spacing: 0.06em;
    line-height: 36px;
    color: #371268;
    font-weight: bold;
    margin-bottom: 10px;
}
.products-class{
    font-size: 18px;
    letter-spacing: 0.06em;
    line-height: 26px;
    color: #666;
    font-weight: 400;
    display: block;
    transition: all .3s linear;
    box-sizing: border-box;
    padding: 10px 0;
}


.products-all-box{
    width: calc(100% - 320px);
    box-sizing: border-box;
    padding: 30px 0;
    position: relative;
    font-size: 0;
}
.products-info-box{
    width: 1200px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
}
.products-info-all-box{
    margin-top: 30px;
}

.products-name-box{
    font-size: 28px;
    letter-spacing: 0.06em;
    line-height: 36px;
    color: #371268;
    font-weight: bold;
}
.products-info{
    width: 360px;
    display: inline-block;
    vertical-align: top;
    margin-right: 60px;
    box-sizing: border-box;
}
.products-info:nth-child(3n){
    margin-right: 0;
}
.products-info:nth-child(n + 4){
    margin-top: 60px;
}
.products-info-img{
    width: 100%;
    height: calc((240 / 360) * 360px);
    display: block;
    box-sizing: border-box;
    border: 1px solid #d1d1d1;
    border-bottom: none;
    overflow: hidden;
    background-color: #fff;
}
.products-info-img span{
    background-size: contain;
}
.products-info-text{
    width: 100%;
    display: block;
    box-sizing: border-box;
    padding: 0 10px;
    background-color: #371268;
    text-align: center;
    font-size: 16px;
    color: #fff;
    letter-spacing: 0.06em;
    line-height: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}




@media only screen and (max-width: 1520px){
    .products-info-box{
        width: 1000px;
    }
    .products-info {
        width: 300px;
        margin-right: 50px;
    }
    .products-info-img {
        width: 100%;
        height: calc((240 / 360) * 300px);
    }
}
@media only screen and (max-width: 1320px){
    .products-info-box{
        width: 750px;
    }
    .products-info {
        width: 230px;
        margin-right: 30px;
    }
    .products-info-img {
        width: 100%;
        height: calc((240 / 360) * 230px);
    }
}
@media only screen and (max-width: 1200px){
    .products-class-box{
        width: 250px;
        padding: 30px 20px;
    }
    .products-all-box {
        width: calc(100% - 250px);
    }
}
@media only screen and (max-width: 1000px){
    .products-box{
        display: block;
        margin-top: 102px;
        min-height: calc(100vh - 102px);
    }
    .products-class-box{
        display: block;
        width: 100%;
        position: relative;
    }
	.rwd-products-class{
        width: 100%;
        height: 46px;
        border: 1px solid #888;
        font-size: 16px;
        letter-spacing: 1px;
        display: block;
        line-height: 46px;
        position: relative;
        box-sizing: border-box;
        padding: 0 10px;
        color: #666;
        background-color: #f9f9f9;
    }
    .rwd-products-class:after {
        content: '';
        width: 0px;
        height: 0px;
        margin: 0 auto;
        border-right: 8px solid transparent;
        border-top: 10px solid #888;
        border-left: 8px solid transparent;
        display: block;
        position: absolute;
        bottom: calc(50% - 5px);
        right: 20px;
        box-sizing: border-box;
    }
    .products-class-all-box{
        width: calc(100% - 5vw);
        display: block;
        position: absolute;
        z-index: 2;
        background-color: #fff;
        box-sizing: border-box;
        padding: 0 10px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
        display: none;
    }
    .products-class-box {
        padding: 30px 2.5vw;
    }
    .products-all-box{
        width: 100%;
        display: block;
    }
}
@media only screen and (max-width: 768px){
    .products-info-box{
        width: 95vw;
    }
    .products-class-name,
    .products-name-box{
        font-size: 24px;
    }
    .products-info {
        width: calc((100% - 20px) / 3);
        margin-right: 10px;
    }
    .products-info-img {
        height: calc((240 / 360) * ((95vw - 20px) / 3));
    }
}
@media only screen and (max-width: 550px){
    .products-box{
        display: block;
        margin-top: 73px;
        min-height: calc(100vh - 73px);
    }
    .products-class-name,
    .products-name-box{
        font-size: 16px;
        line-height: 20px;
    }
    .products-class-box {
        padding: 20px 2.5vw;
    }
    
	.rwd-products-class{
        font-size: 14px;
        line-height: 36px;
        height: 36px;
    }
    .products-class{
        font-size: 14px;
        padding: 5px 0;
    }
    .products-all-box{
        padding: 20px 0;
    }
    .products-info-all-box {
        margin-top: 10px;
    }
    .products-info:nth-child(n) {
        width: calc((100% - 10px) / 2);
        margin-right: 10px;
    }
    .products-info:nth-child(2n) {
        margin-right: 0;
    }
    .products-info:nth-child(n + 3) {
        margin-top: 20px;
    }
    .products-info-img {
        height: calc((240 / 360) * ((95vw - 10px) / 2));
    }
    .products-info-text{
        line-height: 40px;
        font-size: 12px;
    }
}
@media only screen and (max-width: 400px){
    .products-info:nth-child(n) {
        width: 100%;
        margin-right: 0;
    }
    .products-info:nth-child(n + 2) {
        margin-top: 20px;
    }
    .products-info-img {
        height: calc((240 / 360) * 95vw);
    }
}



.products-info:hover .main-bg{
    transform: scale(1.1);
}
.products-class:hover,
.products-class.active{
    color: #371268;
    font-weight: bold;
}



@media only screen and (min-width: 1001px){
    .products-class-name,
    .products-class-all-box,
    .products-name-box{
        opacity: 0;
    }
    .products-class-box.anima .products-class-name{
        animation: fadeInDown 1s ease 0s 1 both;
    }
    .products-class-box.anima .products-class-all-box{
        animation: fade 1s ease 0.4s 1 both;
    }
    .products-info-box.anima .products-name-box{
        animation: fadeInDown 1s ease 0s 1 both;
    }
    .products-info{
        animation: fadeInUp 1s ease 0s 1 both;
    }
}
