:root {
    --assets-color: #C90915;
    --assets-color-2: #CD6600;
    --bg-assets: #FFFBF7;
    --bs-link-color: #000;
    --bs-link-hover-color: var(--assets-color);
    --title-assets: var(--assets-color);
}

:target {
    scroll-margin-top: 90px;
}

@media(max-width: 768px) {
    :target {
        scroll-margin-top: 30px;
    }
}

.text-red {
    color: red;
}

.title {
    font-size: 32px;
    letter-spacing: .35rem;
}

.title-text {
    font-size: 20px;
    letter-spacing: .35rem;
    color: #666;
}

@media (max-width: 768px) {
    .title {
        width: 100%;
        font-size: 24px;
        text-align: center;
    }

    .title-text {
        width: 100%;
        letter-spacing: normal;
        font-size: 18px;
        text-align: center;
    }
}

.text-assets {
    color: var(--assets-color);
}

.bg-assets {
    background-color: var(--bg-assets);
}

.btn-assets {
    background-color: var(--assets-color);
    color: #fff;
    padding: .5rem 2rem;
    border-radius: 20px;
    border: none;
    border: 1px solid #fff;
    transition: all 0.3s ease;
}

.btn-assets:hover {
    background-color: #fff;
    color: var(--assets-color);
    border: 1px solid var(--assets-color);
}

@media (max-width: 768px) {
    .btn-assets {
        width: 100%;
        text-align: center;
    }
}

.btn-more {
    width: max-content;
    padding: .5rem 3rem;
    border-radius: 20px;
    border: 1px solid #666;
}

.btn-more:hover {
    background-color: var(--assets-color);
    color: #fff;
    border: 1px solid #fff;
}

@media (max-width: 768px) {
    .btn-more {
        width: 100%;
        text-align: center;
    }
}

.center-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-column {
    flex-direction: column;
}

.coloer-white {
    color: #fff;
}

.head {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99;
    width: 100%;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.7);
    gap: 4rem;
    transition: background-color 0.3s ease;
}

.mobile-head {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 99;
    width: 100%;
    padding: .5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
}

.head.scrolled {
    background-color: rgba(255, 255, 255, 1);
}

.head img {
    width: 8rem;
    height: auto;
}

.mobile-head img {
    width: 6rem;
    height: auto;
}

.mobile-headi {
    font-size: 1.5rem;
}

.offcanvas-header img {
    width: 50%;
}

.offcanvas-body li {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

a {
    text-decoration: none !important;
}

.banner img {
    width: 100%;
    height: 100vh;
}

@media (max-width: 768px) {
    .banner {
        width: 100%;
    }

    .banner img {
        width: 100%;
        height: auto;
    }
}

.about {
    background-color: var(--bg-assets);
    width: 100%;
    padding: 1.5rem 10%;
    margin: 0;
}

.about .text {
    height: 55vh;
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
}

.about .text-content {
    color: #666;
    margin: 1.5rem 0;
    line-height: 1.75;
}

.about img {
    width: 30vw;
    height: auto;
    border-radius: 20px;
}

.number-div {
    height: 30vh;
    padding: 5vh 0;
    margin: 0;
    border-top: 1px solid #999;
}

.number-div>div {
    border-right: 1px solid #999;
}

.number-div>div:last-child {
    border-right: none;
}

.number {
    display: flex;
    color: var(--assets-color);
}

.number div:first-child {
    font-size: 4rem;
    text-align: center;
}

.number div {
    font-size: 2rem;
}

.number div:last-child {
    font-size: 1.5rem;
    margin-top: auto;
    margin-bottom: 15px;
}

.tag {
    width: max-content;
    color: var(--assets-color);
    padding: 0 10px;
    border: 1px solid var(--assets-color);
    border-radius: 20px;
}

@media (max-width: 768px) {
    .about {
        padding: 3rem 5%;
    }

    .about .text {
        height: 40vh;
    }

    .about img {
        width: 100%;
    }

    .about a {
        width: 100%;
    }

    .number-div {
        padding: 2.5vh 0;
        border-top: none;
    }

    .number div:first-child {
        font-size: 3rem;
    }

    .number div {
        font-size: 16px;
    }

    .number div:last-child {
        font-size: 16px;
    }

    .number-div>div {
        border-right: none;
        margin-bottom: 2rem;
    }

    .number-div>div:last-child {
        border-left: 1px solid #999;
    }

    .number-div>div:first-child {
        border-right: 1px solid #999;
    }
}

.box-1 {
    width: 100%;
    padding: 3rem 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 768px) {
    .box-1 {
        padding: 3rem 5%;
    }
}

.title-img {
    position: absolute;
    top: 0;
    left: auto;
    z-index: 1;
}

.head-title {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2.25rem;
}

.head-title img {
    width: 16rem;
}

@media (max-width: 768px) {
    .head-title {
        padding-top: 1.75rem;
    }

    .head-title img {
        width: 12rem;
    }
}

.services {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.service-img {
    width: 10vw;
    height: 10vw;
    overflow: hidden;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 3rem;
    margin-bottom: 1rem;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.service-img:hover {
    margin-top: 2rem;
    margin-bottom: 2rem;
    transform: translateY(-8px);
}

.service-img img {
    height: 100%;
    width: auto;
    max-width: none;
}

.service-img+div {
    font-size: 1.25rem;
}

@media (max-width: 768px) {
    .services {
        text-align: center;
    }

    .service-img {
        width: 30vw;
        height: 30vw;
    }
}

.zero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    min-height: 42vw;
}

@media (max-width: 991px) {
    .zero {
        grid-template-columns: auto;
    }
}

@media (min-width: 768px) {
    .zero:before {
        content: "";
        position: absolute;
        width: calc(100% - 100px);
        height: calc(100% - 100px);
        border: 2px solid #fff;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 1;
        pointer-events: none;
    }
}

.zero-title {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    writing-mode: vertical-lr;
    margin: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: flex-end;
    text-align: center;
}

.zero-title h2 {
    color: var(--assets-color);
    font-size: max(4vw, 50px);
    white-space: nowrap;
    padding: 0 30px 0 20px;
    border: 1px solid var(--assets-color);
    border-width: 0 1px;
    letter-spacing: 8px;
    line-height: 1;
}

.zero-title h2 span::before {
    content: "";
    position: relative;
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--assets-color);
    margin: 24px auto;
    transform: rotate(45deg);
    left: 6px;
}

@media (max-width: 768px) {
    .zero-title {
        margin-bottom: 32px;
        writing-mode: horizontal-tb;
        flex-direction: column;
        align-items: center;
    }

    .zero-title h2 {
        font-size: 3.5rem;
        letter-spacing: 5px;
        border: none;
        padding: 0;
        border-width: 0;
        border-top: 0;
        line-height: 1.3;

    }

    .zero-title h2 span::before {
        margin: 0 8px;
        top: -15px;
        left: 0;
        width: 6px;
        height: 6px;

    }
}

.zero-main {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 120px 0;
}

.zero-left {
    background-color: #FFF5EA;
}

.zero-right {
    background-color: #FFEEEE;
}

@media (max-width: 768px) {
    .zero-main {
        width: 100%;
        padding: 80px 0;
        margin: 0 auto;
    }
}

.zero-content {
    text-align: center;
    padding: 20px;
    border: 3px solid var(--assets-color);
    border-radius: 50%;
    background: linear-gradient(332deg, rgba(255, 255, 255, 0) 25%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0) 75%);
    max-width: 80%;
    width: max(23vw, 520px);
    height: max(23vw, 520px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.zero-left .zero-content {
    border: 3px solid var(--assets-color-2);
}

.zero-content::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid var(--assets-color);
    border-radius: 50%;
    pointer-events: none;
}

.zero-left .zero-content::before {
    border: 1px solid var(--assets-color-2);
}

@media (max-width: 768px) {
    .zero-content {
        width: 90vw;
        height: 90vw;
        max-width: inherit;
        padding: 5px;
    }

    .zero-content::before {
        top: 10px;
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
}

@keyframes rotate360 {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.circle-container {
    animation: rotate360 20s linear infinite;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
}

.circle-left {
    left: 10px;
    transform: translate(-50%, -50%);
}

.circle-right {
    right: 10px;
    transform: translate(50%, -50%);
}

.circle-left,
.circle-right {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 768px) {
    .circle-left {
        left: 5px;
    }

    .circle-right {
        right: 5px;
    }
}

.zero-left .circle-left,
.zero-left .circle-right {
    background-color: var(--assets-color-2);
}

.zero-right .circle-left,
.zero-right .circle-right {
    background-color: var(--assets-color);
}

.zero-en {
    font-size: .75rem;
    margin-bottom: 10px;
    color: var(--assets-color);
    letter-spacing: .25rem;
}

.zero-left .zero-en {
    color: var(--assets-color-2);
}

.zero-intit {
    font-size: 2rem;
    letter-spacing: .35rem;
}

.zero-text {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #ccc;
    max-width: 60%;
    width: 100%;
}

.zero-link {
    margin-top: 24px;
    padding: 12px 20px;
    background-color: #333;
    color: white;
    border-radius: 99em;
    display: block;
    width: 80%;
    max-width: 250px;
}

@media (max-width: 768px) {
    .zero-en {
        margin-bottom: 5px;
        letter-spacing: normal;
    }

    .zero-intit {
        font-size: 1.5rem;
        letter-spacing: normal;
    }

    .zero-text {
        margin-top: 16px;
        padding-top: 16px;
    }

    .zero-link {
        margin-top: 16px;
        max-width: 150px;
    }
}

.zero-link:hover {
    background-color: var(--assets-color);
    color: #fff;
    text-decoration: none;
}

.zero-start {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    bottom: 30px;
    left: 50%;
    font-size: 14.5vw;
    font-weight: bold;
    transform: translate(-50%, 0%);
    width: 100%;
    line-height: 16vw;
    text-align: center;
    background: linear-gradient(to top, rgb(255 255 255 / 70%) 30%, rgb(255 255 255 / 0%) 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0px;
    font-family: "Lora", "Noto Serif TC", serif;
}

@media (max-width: 768px) {
    .zero-start {
        display: none;
    }
}

/* 輪播圖 */
.box-2 {
    width: 100%;
    height: 50vw;
    padding: 5vw;
    position: relative;
}

.products {
    background-image: url('/assets/img/banner/show.png');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
}

.swiper {
    height: 40vw;
}

.mySwiper2 {
    display: flex;
    flex-direction: column;
}

.swiper-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.swiper-slide img {
    width: 60%;
    height: auto;
    object-fit: cover;
}

.swiper-pagination {
    margin-top: 1rem;
    margin-bottom: 4rem;
    position: relative;
    display: flex;
    justify-content: center;
}

.swiper-pagination-bullet {
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
    color: #000;
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.swiper-pagination-bullet-active {
    color: #000000;
    background: rgba(255, 255, 255, 0.2);
}

.swiper-pagination-bullet svg {
    --progress: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    stroke-width: 2px;
    fill: none;
    stroke-dashoffset: calc(125.6 * (1 - var(--progress)));
    stroke-dasharray: 125.6;
    transform: rotate(-90deg);
}

.swiper-pagination-bullet-active svg {
    stroke: var(--assets-color);
}

.product {
    padding-left: 10%;
}

.product-title {
    font-size: 24px;
    font-weight: bold;
}

.product-text {
    padding-top: 1rem;
    margin-top: 1.5rem;
    border-top: 1px solid #999;
    font-size: 1.25rem;
    letter-spacing: .25rem;
    margin-bottom: 1rem;
}

.product .btn-more {
    margin-top: 2rem;
}

.swiper-button-prev,
.swiper-button-next {
    color: #999;
}

@media (max-width: 768px) {
    .box-2 {
        height: max-content;
        padding: 10vw 5vw;
    }

    .swiper {
        height: max-content;
        padding-top: 1.5rem;
    }

    .products .row {
        margin: 0 !important;
    }

    .product {
        padding-left: 0;
    }

    .product-title {
        font-size: 18px;
        padding-left: .5rem;
    }

    .product .title {
        text-align: start;
        padding-left: .5rem;
    }

    .product-text {
        font-size: 16px;
        letter-spacing: 0;
    }
}

/* 輪播圖 end */

/* 跑馬燈 */
.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: flex;
    will-change: transform;
}

.marquee-news {
    width: 15vw;
    height: 15vw;
    overflow: hidden;
    border-radius: 10px;
    margin: 0 2vw;
}

.marquee-content img {
    width: auto;
    height: 15vw;
    max-width: none;
}

@media (max-width: 768px) {
    .marquee-news {
        width: 30vw;
        height: 30vw;
    }

    .marquee-content img {
        height: 30vw;
    }
}

/* 跑馬燈 end */

.contact {
    width: 70%;
    background-color: #FFEEEE;
    padding: 5vw;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.3);
    margin: 2rem;
    border-radius: 10px;
}

.contact input,
.contact textarea {
    width: 95%;

}

.contact-code {
    align-items: end;
    gap: .5rem;
}

.code-input {
    display: flex;
    gap: .5rem;
    padding: 0;
}

.contact-code input {
    width: 40%;
}

.contact-code .code {
    width: 40%;
    height: 1.75rem;
    overflow: hidden;
}

.code-img {
    width: auto;
    height: 100%;
}

@media (max-width: 768px) {
    .contact {
        width: 90%;
        padding: 5vw 3vw;
    }

    .contact input,
    .contact textarea {
        width: 100%;
    }

    .contact-code {
        display: flex;
        flex-direction: column;
        align-items: start;
        gap: 1;
    }

    .code-input {
        width: 100%;
        gap: .5rem;
        padding: 0 5%;
    }

    .contact-code input {
        width: 40%;
    }

    .contact-code .code {
        width: 40%;
    }
}

.footer-head {
    width: 95%;
    display: flex;
    align-items: end;
    padding-bottom: 1rem;
    border-bottom: 1px solid #999;
    margin-bottom: 1rem;
}

.footer-head img {
    width: 8rem;
    height: auto;
    margin-right: 1rem;
}

.footer-text {
    font-size: 1.25rem;
}

.footer-tag {
    width: 3vw;
    font-weight: bold;
    margin-right: .5rem;
    margin-bottom: .25rem;
}

i {
    color: #999;
}

.footer i {
    font-size: 2rem;
    margin: 0 .5rem;
}

.company {
    color: #999;
    letter-spacing: .2rem;
    padding-left: 1.5rem;
}

@media (max-width: 768px) {
    .footer-head img {
        width: 6rem;
    }

    .footer-text {
        font-size: 1rem;
    }

    .footer-tag {
        width: 12.5vw;
    }

    .company {
        letter-spacing: normal;
        padding-left: 1rem;
        margin-top: 1rem;
    }

    .footer-main {
        margin-bottom: 1rem;
    }
}

.scrollup-fixed {
    position: fixed;
    bottom: 5%;
    right: 2%;
    z-index: 99;
}

.scrollup-fixed-2 {
    position: fixed;
    bottom: 11%;
    right: 2%;
    z-index: 99;
}

.scrollup-fixed div,
.scrollup-fixed-2 div {
    width: 2.15rem;
    height: 2.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    margin-bottom: .75rem;
}

.icon-line {
    background-color: #008c36;
}

.icon-line a {
    width: max-content;
    height: max-content;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, #fff, #fff, #008c36);
}

.icon-line i {
    font-size: 2rem;
    color: #008c36;
}

.icon-message,
.icon-phone {
    background-color: #333;
}

.icon-message i,
.icon-phone i {
    color: #fff;
}

.icon-up i{
    font-size: 1.5rem;
    color: #000;
}