﻿.lawyer-box{
    width: 100%;
    display: block;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    box-sizing: border-box;
    padding: 110px 0;
    padding-bottom: 0;
}
.lawyer-all-box{
    width: 1280px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
    position: relative;
    box-sizing: border-box;
    padding-bottom: 100px;
}
.lawyer-info-title-box{
    width: 100%;
    display: block;
    box-sizing: border-box;
    border-bottom: 1px solid #78161b;
}
.lawyer-info-title{
    width: 280px;
    display: block;
    font-family: "Noto Serif TC";
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 0.06em;
    line-height: 60px;
    color: #fff;
    box-sizing: border-box;
    padding-left: 0.06em;
    background-color: #78161b;
    text-align: center;
}
.lawyer-info-box{
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    padding-top: 55px;
    padding-bottom: 90px;
}
.lawyer-info{
    width: 280px;
    display: inline-block;
    vertical-align: top;
    margin-right: calc(160px / 3);
    cursor: pointer;
}
.lawyer-info:nth-child(4n){
    margin-right: 0;
}
.lawyer-info:nth-child(n + 5){
    margin-top: 60px;
}
.lawyer-info-img{
    width: 100%;
    height: calc((420 / 280) * 280px);
    display: block;
    position: relative;
    overflow: hidden;
    transition: all .3s linear;
}
.lawyer-info-text-box{
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
    margin-top: 35px;
}
.lawyer-info-text-name{
    font-family: "Noto Serif TC";
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 0.06em;
    line-height: 30px;
    color: #000;
}
.lawyer-info-text{
    font-family: "Noto Sans TC";
    font-size: 18px;
    letter-spacing: 0.06em;
    line-height: 30px;
    color: #666;
}


@media only screen and (max-width: 1280px){
    .lawyer-all-box{
        width: 1000px;
    }
    .lawyer-info{
        width: 230px;
        margin-right: calc(80px / 3);
    }
    .lawyer-info:nth-child(n + 5) {
        margin-top: 40px;
    }
    .lawyer-info-img {
        height: calc((420 / 280) * 230px);
    }
    .lawyer-info-text-box{
        margin-top: 15px;
    }
}
@media only screen and (max-width: 1000px){
    .lawyer-all-box{
        width: 750px;
    }
    .lawyer-info{
        width: 170px;
        margin-right: calc(70px / 3);
    }
    .lawyer-info-img {
        height: calc((420 / 280) * 170px);
    }
}
@media only screen and (max-width: 768px){
    .lawyer-box{
        padding: 85px 0;
        padding-bottom: 0;
    }
    .lawyer-all-box{
        width: 550px;
    }
    .lawyer-info:nth-child(n){
        width: 260px;
        margin-right: 30px;
    }
    .lawyer-info:nth-child(2n){
        margin-right: 0;
    }
    .lawyer-info:nth-child(n + 3) {
        margin-top: 40px;
    }
    .lawyer-info-img {
        height: calc((420 / 280) * 260px);
    }
}
@media only screen and (max-width: 550px){
    .lawyer-all-box{
        width: calc(100vw - 40px);
    }
    .lawyer-info-title{
        width: 140px;
        font-size: 16px;
        line-height: 40px;
    }
    .lawyer-info-box{
        padding-top: 20px;
        padding-bottom: 30px;
    }
    .lawyer-info:nth-child(n){
        width: calc((100vw - 40px - 10px) / 2);
        margin-right: 10px;
    }
    .lawyer-info:nth-child(2n){
        margin-right: 0;
    }
    .lawyer-info:nth-child(n + 3) {
        margin-top: 15px;
    }
    .lawyer-info-img {
        height: calc((420 / 280) * ((100vw - 40px - 10px) / 2));
    }
    .lawyer-info-text-box{
        margin-top: 0;
        padding: 5px;
    }
    .lawyer-info-text-name{
        font-size: 16px;
        line-height: 22px;
    }
    .lawyer-info-text{
        font-size: 14px;
        line-height: 22px;
    }
}
@media only screen and (max-width: 320px){
    .lawyer-info-title{
        width: 100px;
        font-size: 14px;
    }
    .lawyer-info:nth-child(n){
        width: calc(100vw - 40px);
        margin-right: 0;
    }
    .lawyer-info:nth-child(n + 2) {
        margin-top: 15px;
    }
    .lawyer-info-img {
        height: calc((420 / 280) * (100vw - 40px));
    }

}



@media only screen and (min-width: 769px){
    .lawyer-info:hover .lawyer-info-img{
        box-shadow: 0 0 10px rgba(0, 0, 0, .7);
    }
    .lawyer-info:hover .main-bg{
        transform: scale(1.1);
    }

    .lawyer-info-title-box,
    .lawyer-info{
        opacity: 0;
    }
    .lawyer-info-title-box.anima{
        animation: fadeInRight 1s ease 0s 1 both;
    }
    .lawyer-info.anima{
        animation: fadeInUp 1s ease 0s 1 both;
    }

}