﻿.dealer-box{
    width: 100%;
    display: block;
    position: relative;
    min-height: 100vh;
    box-sizing: border-box;
    padding: 100px 0;
}
.dealer-all-box{
    width: 1200px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
    position: relative;
    box-sizing: border-box;
    padding-top: 100px;
}
.dealer-title-box{
    width: 100%;
    display: block;
    text-align: center;
}
.dealer-title{
    font-family: "IBM Plex Sans","Noto Sans TC";
    font-size: 60px;
    letter-spacing: 0.06em;
    line-height: 1;
    color: #000;
    display: inline-block;
    vertical-align: bottom;
    transition: all .3s linear;
}
.dealer-category-box{
    width: 100%;
    display: block;
    text-align: center;
    margin-top: 60px;
}
.dealer-category-first {
    font-family: "IBM Plex Sans",'Noto Sans TC';
    font-size: 20px;
    color: #000;
    letter-spacing: 0.06em;
    line-height: 1.4;
    display: inline-block;
    vertical-align: middle;
    margin: 0 25px;
    cursor: pointer;
    position: relative;
    transition: all .3s linear;
}
.dealer-category-first::after{
    content: "|";
    font-family: "IBM Plex Sans",'Noto Sans TC';
    font-size: 20px;
    letter-spacing: 0.06em;
    line-height: 1.4;
    position: absolute;
    top: 0;
    text-align: center;
    left: calc(100% + 21px);
    color: #eee;
    pointer-events: none;
    transition: all .3s linear;
}
.dealer-category-first:last-child:after{
    display: none;
}
.dealer-category-second-box{
    margin-top: 20px;
    box-sizing: border-box;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.dealer-category-second {
    font-family: "IBM Plex Sans",'Noto Sans TC';
    font-size: 20px;
    color: #000;
    letter-spacing: 0.06em;
    line-height: 1.4;
    display: inline-block;
    vertical-align: middle;
    margin: 0 25px;
    cursor: pointer;
    position: relative;
    transition: all .3s linear;
}
.dealer-category-second::after{
    content: "|";
    font-family: "IBM Plex Sans",'Noto Sans TC';
    font-size: 20px;
    letter-spacing: 0.06em;
    line-height: 1.4;
    position: absolute;
    top: 0;
    text-align: center;
    left: calc(100% + 21px);
    color: #eee;
    pointer-events: none;
    transition: all .3s linear;
}
.dealer-category-second:last-child:after{
    display: none;
}
.dealer-info-box{
    margin-top: 20px;
    box-sizing: border-box;
    border-top: 1px solid #eee;
}
.dealer-info{
    display: flex;
    display: -webkit-flex;
    align-items: flex-start;
    -webkit-align-items: flex-start;
    justify-content: flex-start;
    -webkit-justify-content: flex-start;
    flex-direction: row;
    border-bottom: 1px solid #eee;
}
.dealer-info-left{
    width: 250px;
    max-width: 100%;
}
.dealer-info-title{
    font-size: 36px;
    font-family: "IBM Plex Sans";
    font-weight: 700;
    color: #000;
    letter-spacing: 0.06em;
    line-height: 40px;
    box-sizing: border-box;
    padding: 30px 0;
}
.dealer-info-right{
    width: calc(100% - 250px);
}
.dealer-info-list{
    display: flex;
    display: -webkit-flex;
    align-items: flex-start;
    -webkit-align-items: flex-start;
    justify-content: flex-start;
    -webkit-justify-content: flex-start;
    flex-direction: row;
    border-bottom: 1px solid #eee;
    box-sizing: border-box;
    padding: 30px 15px;
    transition: all .3s linear;
}
.dealer-info-list:last-child{
    border-bottom: none;
}
.dealer-info-name{
    width: 200px;
    max-width: 100%;
    font-size: 24px;
    font-family: "IBM Plex Sans";
    font-weight: 700;
    color: #000;
    letter-spacing: 0.06em;
    line-height: 40px;
}
.dealer-info-address-box{
    width: calc(100% - 350px);
    box-sizing: border-box;
    padding: 9px 0;
    padding-right: 10px;
}
.dealer-info-address{
    font-size: 16px;
    font-family: "IBM Plex Sans";
    color: #000;
    letter-spacing: 0.06em;
    line-height: 1.4;
    transition: all .3s linear;
    box-sizing: border-box;
}
.dealer-info-tel{
    width: 150px;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px 0;
    font-size: 16px;
    font-family: "IBM Plex Sans";
    color: #000;
    line-height: 1.4;
}
.dealer-info-tel a{
    transition: all .3s linear;
}


@media only screen and (max-width: 1200px){
    .dealer-all-box{
        width: 1000px;
    }
}
@media only screen and (max-width: 1000px){
    .dealer-all-box{
        width: 750px;
    }
    .dealer-title{
        font-size: 40px;
    }
    .dealer-info-left{
        width: 150px;
    }
    .dealer-info-title{
        font-size: 28px;
        line-height: 30px;
        padding: 20px 0;
    }
    .dealer-info-right {
        width: calc(100% - 150px);
    }
    .dealer-info-list{
        padding: 20px 15px;
    }
    .dealer-info-name{
        width: 150px;
        font-size: 18px;
        line-height: 30px;
    }
    .dealer-info-address-box {
        width: calc(100% - 300px);
        box-sizing: border-box;
        padding: 5px 0;
    }
    .dealer-info-address{
        font-size: 16px;
        line-height: 1.2;
    }
}
@media only screen and (max-width: 768px){
    .dealer-box{
        padding: 70px 0;
    }
    .dealer-all-box{
        width: 550px;
        padding-top: 40px;
    }
    .dealer-category-box{
        margin-top: 40px;
    }
    .dealer-title{
        font-size: 30px;
    }
    .dealer-info-list{
        flex-direction: column;
        padding: 20px 10px;
    }
    .dealer-info-name{
        width: 100%;
    }
    .dealer-info-address-box{
        width: 100%;
        padding-top: 10px;
        padding-bottom: 15px;
    }
    .dealer-info-tel{
        width: 100%;
        padding: 0;
    }
    .dealer-category-first{
        font-size: 18px;
        margin: 0 15px;
    }
    .dealer-category-first::after{
        font-size: 18px;
        left: calc(100% + 11px);
    }
    .dealer-category-second{
        font-size: 18px;
        margin: 0 15px;
    }
    .dealer-category-second::after{
        font-size: 18px;
        left: calc(100% + 11px);
    }
}
@media only screen and (max-width: 550px){
    .dealer-box{
        padding-top: 50px;
        padding-bottom: 20px;
    }
    .dealer-all-box{
        width: calc(100% - 40px);
        padding-top: 20px;
    }
    .dealer-category-box{
        margin-top: 20px;
    }
    .dealer-title{
        font-size: 20px;
    }
    .dealer-info-left{
        width: 90px;
    }
    .dealer-info-title{
        font-size: 20px;
        padding: 5px 0;
    }
    .dealer-info-right {
        width: calc(100% - 90px);
    }
    .dealer-info-list{
        flex-direction: column;
        padding: 12px 5px;
    }
    .dealer-info-name{
        font-size: 16px;
        line-height: 20px;
    }
    .dealer-info-address,
    .dealer-info-tel{
        font-size: 14px;
    }
    .dealer-info-address-box {
        width: 100%;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .dealer-category-box{
        text-align: left;
        margin-top: 10px;
    }
    .dealer-info-box{
        margin-top: 10px;
    }
    .dealer-category-first{
        line-height: 1;
        width: calc(((100% - 1px) / 3) - 20px);
        text-align: center;
        box-sizing: border-box;
        padding: 5px 0;
        margin: 0 10px;
        font-size: 14px;
    }
    .dealer-category-first::after{
        top: calc(50% - 13px);
        left: calc(100% + 6px);
    }
    .dealer-category-first:nth-child(3n)::after{
        display: none;
    }
    .dealer-category-second-box{
        margin-top: 10px;
        padding-top: 10px;
    }
    .dealer-category-second{
        line-height: 1;
        width: calc(((100% - 1px) / 3) - 20px);
        text-align: center;
        box-sizing: border-box;
        padding: 5px 0;
        margin: 0 10px;
        font-size: 14px;
    }
    .dealer-category-second::after{
        top: calc(50% - 13px);
        left: calc(100% + 6px);
    }
    .dealer-category-second:nth-child(3n)::after{
        display: none;
    }
}

@media only screen and (min-width: 769px){
    .dealer-category-first:hover,
    .dealer-category-first.active{
        color: #e60012;
    }
    .dealer-category-second:hover{
        color: #e60012;
    }
    .dealer-info-list:hover{
        background-color: rgba(0, 0, 0, 0.05);
    }
    .dealer-info-address:hover{
        color: #e60012;
    }
    .dealer-info-tel a:hover{
        color: #e60012;
    }
}
.dealer-category-first.active{
    color: #e60012;
}