:root {
    --car-lg-width: 1200px;
    --car-font-color-default: #333333;
    --car-font-color-note: #848484;
    --car-font-color-link: #0F69FF;
}

.car-ref {
    font-family: 'Noto Sans CJK TC', sans-serif;
    font-size: 18px;
    line-height: 30px;
    font-weight: 350;
    letter-spacing: 0;
    color : var(--car-font-color-default);
}
.car-ref a {
    font-size: 18px;
    line-height: 30px;
    font-weight: 350;
    letter-spacing: 0;
    color : var(--car-font-color-link);
}
.car-ref p {
    font-size: 18px;
    line-height: 30px;
    margin-bottom: 0;
}
.car-ref .img-des {
    margin-top: 12px;
    font-size: 16px;
    line-height: 30px;
    color: var(--car-font-color-note);
    position: relative;
    padding-left: 24px;
}
.car-ref .img-des::before {
    content: '▲';
    position: absolute;
    top: 0;
    left: 0;
}

.car-ref h1 {
    font-size: 50px;
    font-weight: 700;
    line-height: 66px;
    letter-spacing: 1px;
}
.car-ref h2 {
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 1px;
}
.car-ref ul {
    list-style: none;
    padding-left: 0;;
}
.car-ref ul li {
    list-style: none;
}
.car-ref ul li::before {
    content: '●';
    font-size: 14px;
    line-height: 1;
    margin-right: 8px;
}

.car-ref ol:not([type="a"]) {
    list-style: none;
    counter-reset: num;
    padding-left: 0;
}
.car-ref ol:not([type="a"])>li {
    counter-increment: num;
}
.car-ref ol:not([type="a"])>li::before {
    content: counter(num) "．";
}
.car-ref ol li::marker {
  font-weight: 700;
}
.car-ref ol li::before {
  font-weight: 700;
}

.car-ref .title-bg-group:after {
    content: '';
    background-image: none;
}
.car-ref .title-bg-group:before {
    content: '';
    background-image: none;
}

.car-ref .section-1-wrapper {
    width: 100%;
    max-width: 1608px;
    margin: 0 auto;
}
.car-ref .section-1 {
    width: 100%;
    max-width: 1608px;
    position: relative;
    padding-top: 670px;
    background-image: url(../img/car/car-kv_md.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.car-ref  .kv-title-wrapper {
    position: absolute;
    top: 4.5%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    padding: 0 28px;
}
.car-ref .section-1 .title-bg {
    max-width: 830px;
    padding-bottom: 37px;
}

.car-ref .title-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 47px;
    margin-bottom: 0;
}
.car-ref .title-group>div {
    width: auto;
    max-width: calc(100%/3 - 47px);
    top: 0;
}
.car-ref .gotitle-btn .title-pics{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.car-ref .gotitle-btn .title-pics .title-pics__icon{
    max-width: 170px;
    width: 100%;
    transform: scale(1);
}
.car-ref .gotitle-btn .title-pics .title-pics__arrow{
    position: relative;
    padding-top: 7%;
    max-width: 34px;
    width: 22%;
    transform: scale(1);
}
.car-ref .gotitle-btn:hover .title-pics .title-pics__icon{
    transform: scale(1.1); 
    transition-duration: 0.5s;
}
.car-ref .gotitle-btn:hover .title-pics .title-pics__arrow{
    top: 2%;
    transition-duration: 0.5s;
    animation: downbtn 1.2s infinite ease -1.2s;
}

.car-ref {
    margin-bottom: -59px;
}
.car-ref .section-2:before {
    content: '';
    width: 100%;
    height: 219px;
    background-image: url(../img/car/car-kv-bottom_md.png);
    background-size: auto;
    background-position: top center;
    position: absolute;
    z-index: -1;
}
.car-ref .section-2:after{
    content: '';
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 261px;
    background-image: url(../img/car/car-bg-bottom_md.png);
    background-size: auto 100%;
    background-position: bottom center;
    background-repeat: repeat-x;
    z-index: -1;   
}

.car-ref .title-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}
.car-ref .title-section img {
    padding-top: 92px;
}
/* 膠囊連結按鈕設定 */
.car-ref .pill-link {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 107px;
}
.car-ref .pill-link .pill-link__group {
    display: flex;
    justify-content: center;
    gap: 24px;
}
.car-ref .pill-link .pill-link__group--bottom {
    margin-top: 20px;
}
.car-ref .pill-link .pill-link__item {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.car-ref .pill-link .pill-link__label {
    color: var(--car-font-color-note);
    font-size: 16px;
    text-align: center;
}
.car-ref .pill-link .pill-link__group--bottom .pill-link__label {
    margin-left: 14%;
    margin-bottom: -4%;
}
.pill-link__button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    width: 234px;
}
.pill-link__button .pill-link__text {
    width: 100%;
    background-color: #333;
    color: #fff;
    padding: 11px 40px 11px 18px;
    border-radius: 999px;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    text-align: center;

    position: relative;
    overflow: hidden;
    z-index: 0;
}
/* 填滿層 */
.pill-link__button .pill-link__text::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #ff6666;     /* hover 填滿顏色 */
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s ease;
    z-index: -1;
}
a.pill-link__button:hover .pill-link__text::before {
    transform: scaleX(1);
}

.pill-link__button.pill-arrow .pill-link__icon {
    z-index: 3;
    max-width: 50px;
    margin-left: -32px;
}
.pill-link__button.pill-moto .pill-link__text {
    width: 228px;
    padding: 11px 18px 11px 40px;
}
.pill-link__button.pill-car .pill-link__text {
    padding: 11px 13px 11px 35px;
}

.pill-link__button.pill-car .pill-link__icon {
    z-index: 2;
    max-width: 89px;
    margin-right: -32px;
}
.pill-link__button.pill-moto .pill-link__icon {
    z-index: 2;
    max-width: 75px;
    margin-right: -32px;
}

.car-ref .another-page {
    margin-top: 53px;
    margin-bottom: 0;
    padding-bottom: 226px;
    display: flex;
    justify-content: space-between;
    gap: 45px;
}
.car-ref .another-page>a {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    margin: 0;
}
.car-ref .another-page>a>img {
    max-width: 247px;
    width: 100%;
    margin: 0;
}
.another-page .pill-link__button {
    width: 275px;
    margin-top: 6px;
}
.another-page .pill-link__button .pill-link__text {
    font-weight: bold;
    font-size: 30px;
    border-radius: 25px;
}
.another-page .pill-link__button .pill-link__icon {
    max-width: 60px;
    margin-right: -32px;
}
.another-page .pill-link__button.pill-prev .pill-link__text {
    max-width:275px;
    width: auto;
    padding: 10px 24px 10px 45px;
    margin-left: -40px;
}
.another-page .pill-link__button.pill-next .pill-link__text {
    max-width:275px;
    width: auto;
    padding: 10px 45px 10px 24px;
    margin-right: -40px;
}
.another-page .pill-link__button.pill-prev .pill-link__icon {
    margin: 0;
}
.another-page .pill-link__button.pill-next .pill-link__icon {
    margin: 0;
}
.another-page a:hover .pill-link__text::before {
    transform: scaleX(1);
}
/* 膠囊連結按鈕設定 end */
@media screen and (max-width: 1024px){
    .car-ref .section-1-wrapper {
        width: 100%;
        max-width: 1608px;
        margin: 0 auto;
    }
    .car-ref .section-1 {
        width: 100%;
        max-width: 1608px;
        position: relative;
        padding-top: 670px;
        background-image: url(../img/car/car-kv_md.png);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    .car-ref .section-1 .title-bg {
        max-width: 800px;
    }
}
@media screen and (max-width: 768px) {
    .car-ref h1 {
        font-size: 28px;
        font-weight: 700;
        line-height: 1.4;
        letter-spacing: 1px;
    }
    .car-ref h2 {
        font-size: 20px;
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: 1px;
    }
    .car-ref .section-1 {
        padding-top: calc(1536 / 1024 * 100%);
        background-image: url('../img/car/car-kv_sm.png');
        background-size: cover;
        background-position: center;
    }
    .car-ref .section-1 .title-bg {
        padding-bottom: 8%;
        max-width: 670px;
    }
    .car-ref  .kv-title-wrapper {
        top: 3%;
        margin: 0 auto;
    }
    .car-ref .reset-mgt {
        margin-top: 0 !important;
    }
    .car-ref .pill-link {
        gap: 16px;
        margin-bottom: 107px;
    }
    .car-ref .pill-link .pill-link__group {
        gap:16px;
    }
    .car-ref .title-group {
        gap: 30px;
    }
    .car-ref .title-group>div {
        width: auto;
        max-width: calc(100%/3 - 30px);
    }
    .pill-link__button {
        position: relative;
        display: inline-flex;
        align-items: center;
        text-decoration: none;
        cursor: pointer;
        width: 175px;
    }
    .pill-link__button .pill-link__text {
        width: 100%;
        background-color: #333;
        color: #fff;
        padding: 8px 30px 8px 13px;
        border-radius: 999px;
        font-size: 16px;
        font-weight: bold;
        line-height: 1;
        text-align: center;
    }
    .pill-link__button.pill-arrow .pill-link__icon {
        max-width: 40px;
        margin-left: -32px;
    }
    .pill-link__button.pill-moto .pill-link__text {
        width: 175px;
        padding: 8px 13px 8px 35px;
    }
    .pill-link__button.pill-car .pill-link__text {
        padding: 8px 13px 8px 32px;
    }
    .pill-link__button.pill-car .pill-link__icon {
        max-width: 60px;
    }
    .pill-link__button.pill-moto .pill-link__icon {
        max-width: 50px;
    }

    .car-ref .another-page>a>img {
        max-width: 160px;
        width: 100%;
    }
    .another-page .pill-link__button {
        width: 100%;
    }
    .another-page .pill-link__button .pill-link__text {
        font-size: 20px;
    }
    .another-page .pill-link__button .pill-link__icon {
        z-index: 2;
        max-width: 42px;
        margin-right: -32px;
    }
    .another-page .pill-link__button.pill-prev .pill-link__text {
        max-width:240px;
        padding: 8px 18px 8px 36px;
        margin-left: -30px;
    }
    .another-page .pill-link__button.pill-next .pill-link__text {
        max-width:240px;
        padding: 8px 36px 8px 18px;
        margin-right: -30px;
    }
}
@media screen and (max-width: 500px) {
    .car-ref .section-1 {
        padding-top: calc(1536 / 1024 * 97%);
        background-position: bottom;
    }
    .car-ref .section-1 .title-bg {
        padding-bottom: 6%;
    }
    .car-ref .pill-link {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        margin-bottom: 60px;
    }
    .car-ref .pill-link .pill-link__group {
        flex-direction: column;
        align-items: center;
        gap:16px;
    }
    .car-ref .pill-link .pill-link__group--bottom .pill-link__label {
        margin-bottom: -2%;
    }
    .car-ref .title-group {
        gap: 18px;
    }
    .car-ref .title-group>div {
        width: auto;
        max-width: calc(100%/3 - 18px);
    }
    .car-ref .title-group {
        gap: 18px;
    }
    .car-ref .title-group>div {
        width: auto;
        max-width: calc(100%/3 - 18px);
    }

    .car-ref .another-page>a>img {
        max-width: 100px;
        width: 100%;
    }
    .another-page .pill-link__button {
        width: 100%;
    }
    .another-page .pill-link__button .pill-link__text {
        font-size: 14px;
    }
    .another-page .pill-link__button .pill-link__icon {
        z-index: 2;
        max-width: 28px;
        margin-right: -18px;
    }
    .another-page .pill-link__button.pill-prev .pill-link__text {
        max-width: 150px;
        padding: 6px 16px 6px 26px;
        margin-left: -20px;
    }
    .another-page .pill-link__button.pill-next .pill-link__text {
        max-width: 150px;
        padding: 6px 26px 6px 16px;
        margin-right: -20px;
    }
} 

/** 蓋掉 main 的設定 */
@media (min-width: 768px) {
    .d-md-block {
        display: block !important;
    }
    .mgt-md {
        margin-top: 20px;
    }
}
@media screen and (max-width: 425px) {
    .car-ref .another-page>a{
        width: auto;
    }
}
