﻿:root {
    --primary: #ed806c;
    --light: #f1af97;
    --text-light: #f6f1ef;
    --dark: #242423;
    scroll-behavior: auto;
}

@font-face {
    font-family: 'jfOpenhuninn';
    src: local('jf-openhuninn-2.0'), url('/fonts/jf-openhuninn-2.0.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'YuPearlLight';
    src: local('YuPearl-Light'), url('/fonts/YuPearl-Light.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'TaipeiSansTCBetaBold';
    src: local('TaipeiSansTCBeta-Bold'), url('/fonts/TaipeiSansTCBeta-Bold.ttf') format('truetype');
    font-display: swap;
}

* {
    font-family: 'YuPearlLight';
    color: var(--text-light);
}

html {
    position: relative;
    min-height: 100%;
}

body {
    background-color: #242423;
}

.footer {
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px;
  position: relative;
}

.bg-custom-primary {
    background-color: var(--primary);
}

.bg-custom-light {
    background-color: var(--light);
}

.bg-trans-dark {
    background-color: #242423cc;
}

.navbar {
    padding: 16px 86px 8px 86px;
    position: fixed;
    top: 0;
    z-index: 10;
    width: 100%;
    transition: background-color .5s;
}

.navbar-image {
    height: 52px;
}
@media(max-width: 992px) {
    html {
        font-size: 12px;
    }
    .navbar {
        padding: 16px 2rem 8px 2rem;
    }

    .navbar-image {
        height: 30px;
    }
}

@keyframes slideIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.animation-slidedown {
    transform: translateY(-100%);
    opacity: 0;
}

.animation-slideup {
    transform: translateY(50%);
    opacity: 0;
}
.animation-slideright {
    transform: translateX(-100%);
    opacity: 0;
}

.animation-slideleft {
    transform: translateX(100%);
    opacity: 0;
}
.animation-in-view {
    animation: slideIn 1s ease-out forwards;
}
.animation-zoom-in {
    transform: scale(1.5);
    opacity: 0;
    animation: zoomIn 0.8s linear forwards;
}
.nav-link {
    padding: 0.5rem 1rem !important;
    margin-left: 52px;
    color: white;
    display: block;
    position: relative;
    overflow: hidden;
}
    .nav-link:hover {
        color: white;
    }

    .nav-link::before,
    .nav-link::after,
    .nav-link span::before,
    .nav-link span::after {
        content: "";
        position: absolute;
        width: 8px;
        height: 9px;
        background: transparent;
        opacity: 0;
        transform: scale(0.5);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-link::before {
        top: 0;
        left: 0;
        border-top: 1px solid white;
        border-left: 1px solid white;
        transform-origin: top left;
    }

    .nav-link::after {
        bottom: 0;
        left: 0;
        border-bottom: 1px solid white;
        border-left: 1px solid white;
        transform-origin: bottom left;
    }

    .nav-link span {
        width: 100%;
        height: 100%;
        position: absolute;
        left: 0;
        top: 0;
        z-index: 1;
    }

        .nav-link span::before {
            top: 0;
            right: 0;
            border-top: 1px solid white;
            border-right: 1px solid white;
            transform-origin: top right;
        }

        .nav-link span::after {
            bottom: 0;
            right: 0;
            border-bottom: 1px solid white;
            border-right: 1px solid white;
            transform-origin: bottom right;
        }

    /* Hover 狀態，顯示並動畫出角落 */
    .nav-link:hover::before,
    .nav-link:hover::after,
    .nav-link:hover span::before,
    .nav-link:hover span::after {
        opacity: 1;
        transform: scale(1);
    }

.dropdown .navbar-mobile {
    position: absolute;
    right: 0;
    left: unset;
    background-color: #242423;
    padding: 1rem;
}
.navbar-mobile li {
    list-style: none;
}

.navbar-mobile .nav-link {
    margin: 0.5rem 0;
}
.img-primary {
    width: 90px;
}

.hero-section {
    height: 100vh;
}

.img-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bg-grid-slogan {
    background-image: url('/image/grid-slogan.png');
    background-size: 100%;
    background-repeat: no-repeat;
}

.icon-sm {
    width: 30px;
    height: 30px;
}

.text-custom-primary {
    color: var(--primary);
}

.bg-texture {
    background-image: url('/image/bg-texture.jpg');
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.bg-footer {
    background-image: url('/image/bg-footer.png?v=1');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    box-shadow: 0px -5px 8px black;
    position: relative;
}

.footer-nav {
    padding-top: 26px;
}

.footer-container {
    display: flex;
    justify-content: end;
    width: 100%;
    padding-right: 76px;
}

.img-logo-footer {
    height: 198px;
    position: absolute;
    left: 0;
    bottom: 0;
}

.footer-info {
    color: white;
    display:flex;
    flex-flow: column;
    align-items: end;
    margin-top: 84px;
}
    .footer-info * {
        color: white;
    }

.event-section {
    max-width: 1120px;
    width: 100%;
}

.event-title {
    padding: 14px 22px;
    font-size: 24px;
    position: relative;
    opacity: 0;
    transition: 0.8s ease;
}
    .event-title::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 8px;
        height: 9px;
        border-top: 1px solid var(--text-light);
        border-left: 1px solid var(--text-light);
    }
    .event-title::after {
        content: "";
        position: absolute;
        bottom: 0;
        right: 0;
        width: 8px;
        height: 9px;
        border-right: 1px solid var(--text-light);
        border-bottom: 1px solid var(--text-light);
    }

.event-border {
    width: 75%;
    max-width: 840px;
    display: flex;
    border-radius: 0 10px 10px 0;
    padding: 1rem 0 0 0;
    margin-left: 2rem;
}

.event-has-border {
    border: 4px solid var(--text-light);
    border-left: none;
}

.event-box {
    max-width: 696px;
    width: 80%;
}

.event-eng-box-left {
    position: relative;
    border-left: 4px solid var(--text-light);
    transform-origin: top;
    transform: scaleY(0);
    transition: 1.5s ease;
}

.event-rotate {
    transform: translateX(100px) rotate(270deg);
    transform-origin: left bottom;
    position: absolute;
    bottom: 0;
    right: 0;
}

.event-eng {
    font-size: 2rem;
    white-space: nowrap;
    opacity: 0;
    transition: 1.8s ease;
}

@media(max-width: 996px) {
    .event-border {
        margin-left: 0;
    }
    .event-box{
        width: 100%;
    }
    .event-rotate {
        transform: translateX(3rem) rotate(270deg);
    }
    .event-eng {
        font-size: 1rem;
    }
}

.animation-in-view .event-title {
    opacity: 1;
}
.animation-in-view .event-eng-box-left {
    transform: scaleY(1);
}
.animation-in-view .event-eng {
    opacity:1;
}
.animation-in-view .video-intro-box {
    opacity: 1;
    transform: translateY(0);
}

.img-dot {
    width: 10px;
    height: 10px;
}

.img-event-border {
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.img-dual-dot {
    width: 69px;
    height: 65px;
    position: absolute;
    right: 0;
    bottom: 1rem;
}

.video-intro {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
}

.aboutus-container {
    display: flex;
    justify-content: center;
    padding-bottom: 76px;
}

.aboutus-content {
    width: 100%;
    max-width: 1092px;
}

.aboutus-border {
    position: relative;
    padding-left: 60px;
}
    .aboutus-border::before {
        content: "";
        border-left: 2px solid var(--text-light);
        height: 0;
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
        animation: borderGrow 1s ease-in forwards;
    }
@keyframes borderGrow {
    to {
        height: 100%;
        opacity: 1;
    }
}

.img-about {
    width: 100%;
    aspect-ratio: 430/214;
    object-fit: cover;
}

.contactus-banner-container {
    width: 88%;
    height: 470px;
    max-width: 1130px;
    background-image: url('/image/contactus-banner.png?v=1');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding: 0 61px 0 115px;
    border-radius: 20px;
}

    .contactus-banner-container * {
        transition: all 0.4s ease;
    }

.mb-contactus-cn {
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}

.mb-contactus-en {
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}

.contactus-banner-border {
    position: relative;
    height: 100%;
}
    .contactus-banner-border::after {
        content: "";
        border-left: 4px solid white;
        position: absolute;
        right: 0;
        bottom: 0;
        height: 40%;
        transition: all 0.4s ease;
    }

.contactus-banner-content {
    padding-bottom: 1.5rem;
    color: white;
    transition: all 0.4s ease;
    position: absolute;
    left: 0;
    bottom: 0;
}
.contactus-banner-container:hover {
    background-position: bottom;
}
.contactus-banner-container:hover .contactus-banner-content {
    bottom: 50%;
    transform: translate(0, 50%);
}

.contactus-banner-container:hover .mb-contactus-cn {
    margin-bottom: 0;
    transition: all 0.4s ease;
}

.contactus-banner-container:hover .mb-contactus-en {
    margin-bottom: 3rem;
    transition: all 0.4s ease;
}

.contactus-banner-container:hover .contactus-banner-border::after {
    height: 90%;
    transition: all 0.4s ease;
}
.contactus-banner-container:hover .dot-contactus-banner {
    top: 10%;
    right: 22px;
}

.btn-contact {
    padding: 13px 49px;
    color: white;
    background-color: transparent;
    border: none;
    position: relative;
}

    .btn-contact::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 90%;
        height: 100%;
        border-top: 1px solid white;
        border-left: 1px solid white;
        transition: all 0.4s ease;
    }
    .btn-contact::after {
        content: "";
        position: absolute;
        bottom: 0;
        right: 0;
        width: 90%;
        height: 100%;
        border-bottom: 1px solid white;
        border-right: 1px solid white;
        transition: all 0.4s ease;
    }
    .btn-contact:hover::before {
        width: 50%;
        height: 100%;
        border-top: none;
        border-bottom: 1px solid white;
    }

    .btn-contact:hover::after {
        width: 50%;
        height: 100%;
        border-bottom: none;
        border-top: 1px solid white;
    }

.page-banner-cn {
    color: white;
    text-align: center;
    text-shadow: 2px 2px 2px #4d4d4d;
}

.page-banner-eng {
    color: white;
    text-align: center;
    font-size: 128px;
    font-family: 'jfOpenhuninn';
    opacity: 0.5;
    white-space: nowrap;
}

.fs-contactus-banner {
    font-size: 64px;
}

.dot-contactus-banner {
    position: absolute;
    top: 50%;
    right: -40px;
    transform: translate(0, -50%);
}

@media(max-width: 996px) {
    .page-banner-cn {
        font-size: 1rem;
    }
    .page-banner-eng {
        font-size: 3rem;
    }
    .contactus-banner-container {
        padding: 1rem;
    }
    .contactus-banner-content {
        padding: 0;
        bottom: 50%;
        transform: translateY(50%);
    }
    .fs-contactus-banner {
        font-size: 2.5rem;
    }
}

.fm-contactus-eng {
    font-family: 'jfOpenhuninn';
    opacity: 0.5;
    font-weight: bolder;
}

.fm-jf {
    font-family: 'jfOpenhuninn';
}

.service-container {
    background-image: url('/image/bg-service.png?v=1');
    background-size: cover;
    background-repeat: no-repeat;
    padding-top: 89px;
    display: flex;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1280/587;
}

.service-content {
    position: relative;
    max-width: 996px;
    width: 66%;
    display: flex;
    flex-flow: column;
}

.img-service-dualdot {
    width: 54px;
    height: 51px;
    position: absolute;
    top: 0;
    right: 0;
}

.service-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    position: relative;
}

.service-title-box {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.service-intro-box {
    opacity: 0;
    width: 0;
    padding-left: 2rem;
    display: none;
}

.service-item * {
    transition: max-height 1.3s ease-in-out, width 1.3s ease-in-out, opacity 1s ease-in-out;
}

.service-item::after {
    content: '';
    width: 100%;
    position: absolute;
    left: 0;
    bottom: 0;
    border-bottom: 1px solid white;
}

    .bg-grid-up {
        background-image: linear-gradient(to bottom, transparent 0, #fbf6f4 94px), repeating-conic-gradient(#ed806c4D 0 25%, #fbf6f4 0 50%);
        background-size: 100% 100%, 20px 20px;
        background-color: #fbf6f4; /* 最底色 */
    }
.bg-grid-down {
    background-image: linear-gradient(to top, transparent 0, #fbf6f4 94px), repeating-conic-gradient(#ed806c4D 0 25%, #fbf6f4 0 50%);
    background-size: 100% 100%, 20px 20px;
    background-color: #fbf6f4; /* 最底色 */
}

.cate-list {
    display: flex;
    justify-content: space-between;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--text-light);
    margin-bottom: 65px;
}

.cate-item {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    padding: 9px 0;
    border-radius: 1.75rem 1.75rem 0 0;
    color: var(--text-light);
    font-weight: bold;
    cursor: pointer;
}

.cate-item.active {
    background-color: var(--primary);
    color: white;
}

.project-container {
    max-width: 1133px;
    width: 88%;
}

.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 100px;
}

.pagination-custom{
    display: flex;
}

.page-item-custom {
    list-style: none;
    width: 20px;
    height: 20px;
    border: 1px solid var(--text-light);
    margin: 0 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
    border-radius: 50%;
    cursor: pointer;
}
    .page-item-custom.active {
        border: none;
    }

    .icon-goback {
        width: 39px;
        margin-right: 1rem;
    }

.video-section {
    width: 100%;
    aspect-ratio: 1132/637;
    background-color: #666666;
    margin-bottom: 44px;
}

.contact-info-container {
    padding: 100px 0;
    display: flex;
}

.contact-info-map {
    width: 63%;
}

.sms-list {
    display: flex;
    padding: 0;
}
.sms-list li {
    list-style: none;
    margin-right: 23px;
}
.sms-list li img {
    height: 2rem;
    width: 2rem;
    transition: all .5s;
}

.sms-list a:hover img{
    filter: brightness(0) invert(1);
}

.contact-container {
    max-width: 678px;
    width: 100%;
    display: flex;
    flex-flow: column;
    align-items: center;
}

.custom-input {
    width: 100%;
    height: 50px;
    border: 1px solid var(--text-light);
    padding: 0 22px;
    border-radius: 25px;
    margin-bottom: 38px;
    background-color: transparent;
    color: var(--text-light);
}
    .custom-input:focus {
        outline: none;
    }

    textarea.custom-input {
        height: 230px;
        padding: 22px;
    }

.btn-submit {
    padding: 7px 23px;
    background-color: transparent;
    border: none;
    position: relative;
    font-family: 'TaipeiSansTCBetaBold';
    color: var(--text-light);
}

    .btn-submit::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 90%;
        height: 100%;
        border-top: 1px solid var(--text-light);
        border-left: 1px solid var(--text-light);
        transition: all 0.4s ease;
    }

    .btn-submit::after {
        content: "";
        position: absolute;
        bottom: 0;
        right: 0;
        width: 90%;
        height: 100%;
        border-bottom: 1px solid var(--text-light);
        border-right: 1px solid var(--text-light);
        transition: all 0.4s ease;
    }

    .btn-submit:hover::before {
        width: 50%;
        height: 100%;
        border-top: none;
        border-bottom: 1px solid var(--text-light);
        border-left: 1px solid var(--text-light);
    }

    .btn-submit:hover::after {
        width: 50%;
        height: 100%;
        border-bottom: none;
        border-top: 1px solid var(--text-light);
        border-right: 1px solid var(--text-light);
    }
@media(max-width: 996px) {
    .contact-info-container {
        display: block;
    }

    .contact-info-map {
        width: 100%;
        height: 300px;
    }
}

.slogan-rotate {
    position: absolute;
    top: 50%;
    left: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.5);
    animation: sloganZoomIn 0.8s linear forwards, rotate360 10s 0.8s linear infinite;
    /* zoomIn 為進場動畫，rotate360 為持續旋轉動畫 */
}

@keyframes sloganZoomIn {
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes zoomIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotate360 {
    from {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) scale(1) rotate(360deg);
    }
}

.text-shadow {
    text-shadow: 5px 5px 5px #4d4d4d;
}

.btn-goto {
    border: 1px solid var(--text-light);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: transparent;
    background-image: url('/image/goto-white.svg');
    background-size: 20px 6px;
    background-repeat: no-repeat;
    background-position: center 45%;
    transition: all 0.4s ease;
}
    .btn-goto:hover {
        background-color: var(--text-light);
        background-image: url('/image/goto-dark.svg');
        background-position: 100% 45%;
    }

.footer-link {
    padding: 0.5rem 1rem !important;
    margin-left: 52px;
    color: white;
    display: block;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
}
    .footer-link::before {
        content: url('/image/dot-white.svg');
        position: absolute;
        top: -16px; /* 從上方起始 */
        left: 50%;
        transform: translateX(-50%) translateY(0);
        width: 8px;
        height: 8px;
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .footer-link:hover::before {
        transform: translateX(-50%) translateY(8px); /* 向下滑入 */
        opacity: 1;
    }

.contact-list {
    list-style: none;
    padding: 0;
}

    .contact-list li {
        display: flex;
        align-items: center;
        margin-block: 1rem;
    }

    .contact-list img {
        object-fit: contain;
        height: 2rem;
        width: 2rem;
        transition: all .5s;
        margin-right: 1rem;
    }

    .contact-list a {
        color: white;
        text-decoration: none;
    }

    .contact-list a:hover img {
        filter: brightness(0) invert(1);
    }

.logo-box {
    height: 80px;
    overflow: hidden;
}

@media(max-width: 996px) {
    .footer-container {
        padding: 0 1rem 3rem 0;
    }

    .footer-link {
        margin-left: 1rem;
    }

    .footer-info {
        margin-top: 0;
    }

    .img-logo-footer {
        height: 100px;
    }
}

.thumbnail {
    display: block;
    cursor: pointer;
    position: relative;
    aspect-ratio: 268/151;
}
    .thumbnail img {
        width: 100%;
        height: 100%;
    }
    .thumbnail::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 8px;
        height: 8px;
        border-top: 1px solid white;
        border-left: 1px solid white;
        z-index: 10;
        opacity: 0;
        transition: all .4s ease-in;
    }

    .thumbnail::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 8px;
        height: 8px;
        border-bottom: 1px solid white;
        border-left: 1px solid white;
        z-index: 10;
        opacity: 0;
        transition: all .4s ease-in;
    }
    .thumbnail span {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #ed806cCC;
        background-image: url('/image/play.svg');
        background-size: 28px 28px;
        background-position: center;
        background-repeat: no-repeat;
        opacity: 0;
        transition: all .4s ease-in;
    }
    
        .thumbnail span::before {
            content: "";
            position: absolute;
            top: 0;
            right: 0;
            width: 8px;
            height: 8px;
            border-top: 1px solid white;
            border-right: 1px solid white;
            z-index: 10;
            opacity: 0;
            transition: all .4s ease-in;
        }

        .thumbnail span::after {
            content: "";
            position: absolute;
            bottom: 0;
            right: 0;
            width: 8px;
            height: 8px;
            border-bottom: 1px solid white;
            border-right: 1px solid white;
            z-index: 10;
            opacity: 0;
            transition: all .4s ease-in;
        }

    .thumbnail:hover::before, .thumbnail:hover::after, .thumbnail:hover span::before, .thumbnail:hover span::after {
        opacity: 0.8;
    }
.thumbnail:hover span {
    opacity: 1;
}
.thumbnail:hover::before {
    top: 1rem;
    left: 1rem;
}
    .thumbnail:hover::after {
        bottom: 1rem;
        left: 1rem;
    }
    .thumbnail:hover span::before {
        top: 1rem;
        right: 1rem;
    }
    .thumbnail:hover span::after {
        right: 1rem;
        bottom: 1rem;
    }

.navbar-hamburger-icon {
    cursor: pointer;
    width: 2rem;
    height: 2rem;
}

.space-pre {
    white-space: pre-wrap;
}

.section-title-border-start {
    border-left: white 4px solid;
}

.section-title-border-end {
    border-right: white 4px solid;
}

.event-item{
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    position: relative;
}

    .event-item * {
        transition: max-height 1.3s ease-in-out, height 1.3s ease-in-out, opacity 1s ease-in-out;
    }

.event-item::after {
    content: '';
    width: 75%;
    position: absolute;
    left: 0;
    bottom: 0;
    border-bottom: 1px solid white;
}

.h-rotate-border {
    height: 15rem;
}

.h-title-border {
    height: 5rem;
}

.section-title {
    position: absolute;
    bottom: 0;
    margin: 0;
    padding-left: 2rem;
}

.event-intro-box {
    display: flex;
    justify-content: space-between;
    width: 75%;
}

.video-intro-box {
    opacity: 0;
    width: 0;
    aspect-ratio: 640/360;
}

.event-intro-text {
    opacity: 0;
    max-height: 0;
    margin: 0;
    overflow: hidden;
}
.event-item:hover .event-intro-box, .service-item:hover .service-title-box {
    width: 45%;
}
.event-item:hover .video-intro-box, .service-item:hover .service-intro-box {
    opacity: 1;
    width: 55%;
    display: block;
}
.event-item:hover .event-intro-text {
    opacity: 1;
    max-height: 360px;
    margin-top: 1rem;
}
.event-item:hover .event-color, .service-item:hover .event-color {
    color: var(--primary);
}

@media(max-width: 996px){
    .event-item {
        display: block;
    }

    .event-item:hover .event-intro-box{
        width: 75%;
    }
}

.text-custom-dark {
    color: var(--dark);
}

.border-custom-dark {
    border-color: var(--dark);
}

.img-coop {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.process-number {
    font-weight: bold;
    font-size: 4rem;
}

.process-section .swiper-slide {
    width: 250px;
    text-align: center;
}

.h-process-title {
    height: 10rem;
}

.h-step-border {
    height: 8rem;
}

.step-row {
    display: flex;
    justify-content: space-between;
    position: relative;
    width: 75%;
}

    .step-row::after {
        content: '';
        position: absolute;
        width: 80%;
        left: 50%;
        transform-origin: left;
        transform: translateX(-50%) scaleX(0);
        bottom: .5rem;
        border-bottom: 2px solid var(--dark);
        transition: all 6s linear;
    }
.animation-in-view.step-row::after {
    transform: translateX(-50%) scaleX(1);
}

.step-item {
    width: 20%;
    display: flex;
    flex-flow: column;
    align-items: center;
    opacity: 0;
    transform: translateX(-100%);
}

.animation-in-view .step-item {
    animation: stepSlideIn 1.5s ease forwards;
}

.animation-in-view .step-item:nth-child(1) {
    animation-delay: 0s;
}

.animation-in-view .step-item:nth-child(2) {
    animation-delay: 2s;
}

.animation-in-view .step-item:nth-child(3) {
    animation-delay: 4s;
}

.animation-in-view .step-item:nth-child(4) {
    animation-delay: 6s;
}

@keyframes stepSlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-item::after {
    content: '';
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: var(--dark);
    display: block;
    margin-top: 1rem;
}

.h-step-text {
    height: 1.5rem;
}

.img-step {
    width: 100%;
    height: 8rem;
    object-fit: contain;
    transition: all .5s ease;
}

.img-step.active {
    filter: brightness(0) invert(1);
}

.process-section {
    width: 100%;
    padding-left: calc((100% - 1120px) / 2); /* 留出左邊對齊空間 */
    padding-right: 0;
}

.pb-process {
    padding-bottom: 10rem;
}

.scale-box {
    position: absolute;
    width: 100%;
    height: 1rem;
    bottom: 2rem;
    background-image: repeating-linear-gradient( to right, transparent 0px, transparent 114px, #fff 114px, #fff 115px );
}

.scale-box::before {
    content: '';
    display: block;
    height: 50%;
    border-bottom: 1px solid white;
}

.scale-dot {
    position: absolute;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: white;
    top: 0;
    left: 0;
    transform: translateX(-50%);
    transition: all .5s ease;
}

.mt-client {
    margin-top: 15rem;
}

#sectionTitle {
    transition: all .5s;
}

.img-member {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.btn-gotop {
    position: absolute;
    border: none;
    width: 5rem;
    height: 5rem;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    top: 0;
    right: 5rem;
    transform: translateY(-50%);
    text-align: center;
    box-shadow: 0 5px 5px black;
}

.btn-gotop:hover {
    background-color: white;
}

.btn-gotop:hover * {
    color: var(--primary);
}

.btn-img {
    border: none;
    background-color: transparent;
}

.btn-swiper-prev {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.btn-swiper-next {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.btn-swiper-prev img, .btn-swiper-next img{
    width: 1.5rem;
    height: 1.5rem;
    object-fit: contain;
}

@media(max-width: 996px) {
    .process-section .swiper-slide {
        width: 150px;
    }

    .step-item .process-number {
        font-size: 2rem;
    }

    .step-item h3 {
        font-size: 1rem;
    }

    .h-step-text {
        height: 3rem;
    }

    .img-step {
        height: 5rem;
    }

    .scale-box {
        background-image: repeating-linear-gradient( to right, transparent 0px, transparent 34px, #fff 34px, #fff 35px );
    }

    .img-coop {
        max-height: 3rem;
    }
}
