﻿.index-wine-box{
    width: 100%;
    display: block;
    position: relative;
    box-sizing: border-box;
    padding-bottom: 100px;
}
.index-wine-all-box{
    width: 1280px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    position: relative;
    font-size: 0;
}
.index-wine-title-box{
    box-sizing: border-box;
    padding: 70px 0;
}
.index-wine-title-box p{
    font-size: 18px;
    font-family: 'Roboto';
    font-weight: 700;
    color: #000;
    letter-spacing: 0.06em;
    line-height: 30px;
}
.index-wine-title-box h2{
    font-size: 46px;
    color: #7b2532;
    font-family: "Noto Serif TC";
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 60px;
}
.index-wine-info-box{
    width: 100%;
    display: block;
}
.index-wine-info{
    width: 280px;
    display: inline-block;
    vertical-align: top;
    margin-right: 53px;
    position: relative;
}
.index-wine-info:nth-child(4n){
    margin-right: 0;
}
.index-wine-info:nth-child(n + 5){
    margin-top: 50px;
}
.index-wine-info-img{
    width: 100%;
    height: 360px;
    display: block;
    overflow: hidden;
    position: relative;
    z-index: 1;
}
.index-wine-info-text{
    width: 100%;
    display: block;
    box-sizing: border-box;
    padding-top: 16px;
    font-size: 18px;
    color: #000;
    letter-spacing: 0.06em;
    font-family: "Noto Sans TC";
    font-weight: 300;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}
.index-wine-info-text-en{
    width: 100%;
    display: block;
    box-sizing: border-box;
    border-bottom: 1px solid #000;
    padding-bottom: 16px;
    font-size: 16px;
    color: #666;
    letter-spacing: 0.06em;
    font-family: 'Roboto';
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}
.index-wine-info-price{
    width: 100%;
    display: block;
    text-align: right;
    font-size: 18px;
    color: #7b2532;
    letter-spacing: 0.06em;
    font-family: 'Roboto';
    font-weight: 700;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}
.index-wine-info-view{
    width: 100%;
    display: block;
    text-align: right;
    font-size: 14px;
    color: #666;
    letter-spacing: 0.2em;
    font-family: 'Roboto';
    font-weight: 700;
    margin-top: 10px;
    position: relative;
    z-index: 1;
}
.index-wine-info-more-box{
    margin-top: 130px;
}
.index-wine-info-more{
    width: 300px;
    line-height: 60px;
    display: block;
    margin: 0 auto;
    text-align: center;
    box-sizing: border-box;
    border: 1px solid #7b2532;
    font-size: 18px;
    color: #7b2532;
    letter-spacing: 0.2em;
    font-family: 'Roboto';
    font-weight: 700;
    padding-left: 0.2em;
    transition: all .3s linear;
}


@media only screen and (max-width: 1400px){
    .index-wine-all-box{
        width: 1180px;
    }
    .index-wine-info{
        width: 260px;
        margin-right: 46px;
    }
    .index-wine-info-img{
        height: calc((360 / 280) * 260px);
    }
}
@media only screen and (max-width: 1200px){
    .index-wine-all-box{
        width: 980px;
    }
    .index-wine-info {
        width: 220px;
        margin-right: 33px;
    }
    .index-wine-info-img{
        height: calc((360 / 280) * 220px);
    }
}
@media only screen and (max-width: 1000px){
    .index-wine-all-box{
        width: 740px;
    }
    .index-wine-info:nth-child(n){
        width: 230px;
        margin-right: 25px;
    }
    .index-wine-info:nth-child(3n) {
        margin-right: 0;
    }
    .index-wine-info:nth-child(n + 4) {
        margin-top: 30px;
    }
    .index-wine-info-img{
        height: calc((360 / 280) * 230px);
    }
    .index-wine-title-box{
        padding: 40px 0;
    }
    .index-wine-title-box p{
        font-size: 16px;
        line-height: 20px;
    }
    .index-wine-title-box h2{
        font-size: 32px;
        line-height: 50px;
    }
}
@media only screen and (max-width: 768px){
    .index-wine-box{
        padding-bottom: 40px;
    }
    .index-wine-all-box{
        width: 540px;
    }
    .index-wine-info:nth-child(n){
        width: 170px;
        margin-right: 15px;
    }
    .index-wine-info:nth-child(3n) {
        margin-right: 0;
    }
    .index-wine-info:nth-child(n + 4) {
        margin-top: 30px;
    }
    .index-wine-info-img{
        height: calc((360 / 280) * 170px);
    }
    .index-wine-info-text{
        font-size: 14px;
        padding: 10px 0;
    }
    .index-wine-info-price{
        font-size: 16px;
        margin-top: 10px;
    }
    .index-wine-info-view{
        font-size: 12px;
        margin-top: 0;
    }
    .index-wine-info-more-box{
        margin-top: 70px;
    }
}
@media only screen and (max-width: 550px){
    .index-wine-box{
        padding-bottom: 20px;
    }
    .index-wine-all-box{
        width: calc(95vw - 10px);
    }
    .index-wine-title-box{
        padding: 20px 0;
    }
    .index-wine-title-box p{
        font-size: 14px;
        line-height: 16px;
    }
    .index-wine-title-box h2{
        font-size: 20px;
        line-height: 34px;
    }
    .index-wine-info:nth-child(n){
        width: calc((95vw - 20px) / 2);
        margin-right: 10px;
    }
    .index-wine-info:nth-child(2n) {
        margin-right: 0;
    }
    .index-wine-info:nth-child(n + 3) {
        margin-top: 10px;
    }
    .index-wine-info-img{
        height: calc((360 / 280) * ((95vw - 20px) / 2));
    }
    .index-wine-info-more{
        min-width: 150px;
        width: 60vw;
        font-size: 16px;
        line-height: 40px;
    }
    .index-wine-info-more-box{
        margin-top: 40px;
    }
}



@media only screen and (min-width: 1001px){
    .index-wine-info::before{
        content: '';
        width: calc(100% + 20px);
        height: calc(100% + 20px);
        background-color: rgba(123, 37, 50, 0.2);
        position: absolute;
        top: -10px;
        left: -10px;
        opacity: 0;
        transition: all .3s linear;
    }
    .index-wine-info:hover::before{
        opacity: 1;
    }

    .index-wine-info-more:hover{
        background-color: #7b2532;
        color: #fff;
    }


    
    .index-wine-title-box p,
    .index-wine-title-box h2,
    .index-wine-info,
    .index-wine-info-more{
        opacity: 0;
    }
    .index-wine-title-box.anima h2{
        animation: fadeInDown 1s ease 0s 1 both;
    }
    .index-wine-title-box.anima p{
        animation: fadeInDown 1s ease .3s 1 both;
    }
    .index-wine-info.anima{
        animation: fadeInUp 1s ease 0s 1 both;
    }
    .index-wine-info-more.anima{
        animation: fade 1s ease 0s 1 both;
    }
}