﻿.index-teams-box{
    width: 100%;
    display: block;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    padding: 100px 0;
}
.index-title-box{
    width: 100%;
    display: block;
    text-align: center;
    box-sizing: border-box;
    padding: 30px 0;
}
.index-title-box h2{
    font-size: 36px;
    line-height: 50px;
    font-family: "Noto Sans TC";
    font-weight: 700;
    letter-spacing: 0.2em;
    box-sizing: border-box;
    padding-left: 0.2em;
    display: block;
}
.index-teams-all-box{
    width: 1280px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
}
.index-teams-info-box{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    column-gap: 20px;
    row-gap: 20px;
    margin-top: 20px;
}
.index-teams-info-img{
    width: 100%;
    display: block;
    position: relative;
    padding-bottom: calc((300 / 200) * 100%);
    overflow: hidden;
}
.index-teams-info-img img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s linear;
}
.index-teams-info-text-box{
    text-align: center;
    box-sizing: border-box;
    padding: 20px;
    background-color: #efefef;
}
.index-teams-info-text p{
    font-family: "Noto Sans TC";
    font-weight: 700;
    font-size: 28px;
    letter-spacing: 0.06em;
    line-height: 1.2;
    color: #323c53;
}
.index-teams-info-text span{
    font-family: "Roboto";
    font-size: 16px;
    letter-spacing: 0.06em;
    line-height: 1.2;
    color: #8f8681;
}
.index-teams-info-post{
    font-family: "Noto Sans TC";
    font-size: 20px;
    letter-spacing: 0.06em;
    line-height: 24px;
    color: #000;
    margin-top: 10px;
}


@media only screen and (max-width: 1280px){
    .index-teams-all-box{
        width: 1000px;
    }
}
@media only screen and (max-width: 1000px){
    .index-teams-box{
        padding: 60px 0;
    }
    .index-teams-all-box{
        width: 750px;
    }
    .index-title-box{
        padding: 20px 0;
    }
    .index-title-box h2{
        font-size: 28px;
        letter-spacing: 0.1em;
        line-height: 40px;
    }
    .index-teams-info-text-box{
        padding: 10px 5px;
    }
    .index-teams-info-text p{
        font-size: 22px;
    }
    .index-teams-info-post{
        font-size: 18px;
        line-height: 20px;
        margin-top: 5px;
    }
}
@media only screen and (max-width: 768px){
    .index-teams-box{
        padding: 40px 0;
    }
    .index-teams-all-box{
        width: 550px;
    }
    .index-title-box{
        padding: 10px 0;
    }
    .index-title-box h2{
        font-size: 20px;
        letter-spacing: 0.06em;
        line-height: 30px;
    }
    .index-teams-info-text span{
        font-size: 14px;
    }
    .index-teams-info-box {
        grid-template-columns: repeat(4, 1fr);
        column-gap: 15px;
        row-gap: 15px;
        margin-top: 15px;
    }
}
@media only screen and (max-width: 550px){
    .index-teams-box{
        padding: 20px 0;
    }
    .index-teams-all-box{
        width: calc(100vw - 40px);
    }
    .index-teams-info-box {
        grid-template-columns: repeat(3, 1fr);
        column-gap: 10px;
        row-gap: 10px;
        margin-top: 10px;
    }
    .index-title-box h2{
        font-size: 22px;
        letter-spacing: 0.06em;
        line-height: 30px;
    }
    .index-teams-info-text p{
        font-size: 16px;
    }
    .index-teams-info-post{
        font-size: 16px;
    }
}
@media only screen and (max-width: 440px){
    .index-teams-info-box {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 5px;
        row-gap: 5px;
        margin-top: 5px;
    }
    .index-title-box h2{
        font-size: 18px;
    }
}



/*animation*/
/*<-------------動畫------------->*/
@media only screen and (min-width: 1001px){
    .index-teams-info:hover img{
        transform: scale(1.1)
    }

    .index-title-box,
    .index-teams-info{
        opacity: 0;
    }
    .index-title-box.anima{
        animation: fadeInDown 1s linear 0s 1 both;
    }
    .index-teams-info.anima{
        animation: fade 1s linear 0s 1 both;
    }
}