/* Copyright 2025 Johnson */
@import "reset.css";
@import url(http://fonts.googleapis.com/earlyaccess/notosanstc.css);

:root {
    --color-primary: #3E3A39;
    --color-secondary: #F5661B;
    --color-tertiary: #ffffff;
    --color-error: #e22020;
    --bg: #e7e7e7 url(../images/logo-background.png) no-repeat center center / 16% auto;
}

body {
    font-size: 14px;
    font-family: 'Noto Sans TC', '微軟正黑體', 'PingFang TC', sans-serif;
    line-height: 1.7;
    color: var(--color-primary);
}

body.open {
    overflow: hidden;
}

/* Common */

* {
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    scroll-padding-top: calc(96px + 80px);
}

/* Chrome, Safari, Opera */
*::-webkit-scrollbar {
    display: none;
}

i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--bg)
}

.mx-width {
    width: 100%;
    max-width: 1280px;
    padding: 0 32px;
}

*[class^="btn"] {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
    min-height: 40px;
    border-radius: 20px;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-tertiary);
}

.btn-secondary {
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}

.headline {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 56px;
    padding-bottom: 56px;
    border-bottom: 1px solid var(--color-primary);
}

.headline span {
    display: inline-block;
    padding: 0 32px;
    border-left: 2px solid var(--color-secondary);
    border-right: 2px solid var(--color-secondary);
    font-size: 48px;
    font-weight: bold;
}

.headline span+* {
    margin-top: 16px;
    font-weight: 400;
    margin-left: 2.2rem;
}

@media (max-width: 768px) {
    * {

        scroll-padding-top: calc(56px + 60px);
    }

    .mx-width {
        padding: 0 24px;
    }

    .headline {
        margin: 24px;
        padding-bottom: 24px;
    }

    .headline span {
        font-size: 32px;
    }
}

/* Common - tabs  */

.tabs {
    display: flex;
    margin-bottom: 80px;
}

.tabs li {
    flex: 1;
    display: flex;
    justify-content: center;
}

.tabs span {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
    min-height: 40px;
    min-width: 120px;
    border-radius: 40px;
    border: 1px solid var(--color-primary);
    font-size: 18px;
    font-weight: 400;
    color: var(--color-primary);
    cursor: pointer;
    transition: .3s;
}

.tabs span:hover,
.tabs .active span {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-tertiary);
}

@media (max-width: 768px) {
    .tabs {
        margin-bottom: 40px;
    }

    .tabs span {
        min-width: 96px;
        font-size: 14px;
    }
}

/* Common - article  */

.article .title {
    margin-bottom: 32px;
    text-align: center;
    font-size: 22px;
    font-weight: 500;
}

.article .content {
    line-height: 2;
    font-weight: 400;

}

.box-content .article .content {
    line-height: 2;
    font-weight: 400;
    margin-left: 2.2rem;
}

/* Common - swiper  */
.swiper-box,
.swiper-box-card {
    position: relative;
    margin-bottom: 80px;
    width: 100%;
    max-width: 768px;
    overflow-x: hidden;
}

.swiper-box-card {
    max-width: 1024px;
    overflow-y: visible;
    padding-bottom: 240px;
    margin-bottom: 0;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-box-card .swiper {
    width: 100%;
    overflow: visible;
}

.swiper-box-card .swiper .swiper-slide {
    position: relative;
    width: 200px;
}

.swiper-box-card .swiper .card-img {
    position: relative;
    border-radius: 20px;
    width: 100%;
    aspect-ratio: 1 / 0.54;
    overflow: hidden;
}

.swiper-box-card .swiper .card-img img {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    min-width: 100%;
    min-height: 100%;
}

.swiper-box-card .swiper .card {
    position: relative;
    bottom: -100%;
}

.swiper-box-card .swiper .article {
    position: absolute;
    padding-top: 80px;
    width: 100%;
    opacity: 0;
}

.swiper-box-card .swiper .swiper-slide-active .article {
    opacity: 1;
}

.swiper-box-card .swiper .swiper-slide-active .card-img {
    box-shadow: 4px 4px 8px rgba(0, 0, 0, .5);
}

.controller .prev,
.controller .next {
    display: flex;
    justify-content: center;
    position: absolute;
    bottom: 12%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: none;
    cursor: pointer;
    z-index: 10;
}


.controller .prev {
    left: 32px;
}

.controller .next {
    right: 32px;
}

.controller .prev:before {
    content: "";
    width: 0;
    height: 0;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    border-right: 18px solid var(--color-secondary);
}

.controller .next:before {
    content: "";
    width: 0;
    height: 0;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    border-left: 18px solid var(--color-secondary);
}

@media (max-width: 768px) {

    .swiper-box-card .swiper .article {
        padding-top: 40px;
        padding-right: 40px;
        padding-left: 40px;
    }

    .swiper-box-card .swiper .swiper-slide-active .card-img {
        box-shadow: 0px 2px 4px rgba(0, 0, 0, .5);
    }

    .controller .prev {
        left: 0;
        bottom: 8%;
    }

    .controller .next {
        right: 0;
        bottom: 8%;
    }

    .swiper-box,
    .swiper-box-card {
        margin-bottom: 5rem;
    }

    .section-product .swiper-box-card {
        padding-bottom: 12.5rem;
    }
}

/* Common - section  */

*[class^="section"] {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 80px 0;
}

@media (max-width: 768px) {
    *[class^="section"] {
        margin: 60px 0;
        padding: 0 24px;
    }
}

/* Header */

.header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 96px;
    width: 100%;
    background: var(--color-tertiary);
    font-size: 16px;
    z-index: 99;
}

.header>* {
    display: flex;
    justify-content: space-between;
}

.header-logo {
    display: block;
    height: 40px;
    min-width: 180px;
    background: none;
    justify-content: flex-start;
}

.header-logo img {
    height: 100%;
    width: auto;
}

.header .rt {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hamburger {
    display: none;
    position: relative;
    height: 24px;
    width: 24px;
}

.hamburger>* {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 2px;
    width: 100%;
    background: var(--color-secondary);
}

.hamburger:before,
.hamburger:after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 2px;
    width: 100%;
    background: var(--color-secondary);
}

.hamburger:before {
    top: 25%;
}

.hamburger:after {
    top: 75%;
}

.header .rt ul {
    display: flex;
}

.header .rt li {
    padding: 0 16px;
}

.header .rt li+li {
    border-left: 1px solid var(--color-secondary);
}

.header .rt li a {
    color: var(--color-primary);
    transition: .3s;
}

.header .rt li a:hover,
.header .rt li a.active {
    color: var(--color-secondary);
}

.header .rt .h5-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    height: 56px;
}

.header-close {
    position: relative;
    width: 32px;
    height: 32px;
}

.header-close:before,
.header-close:after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 100%;
    height: 2px;
    background: var(--color-secondary);
}

.header-close:after {
    transform: rotate(-45deg);
}


@media (max-width: 768px) {
    .header {
        height: 56px;
    }

    .header-logo {
        height: 24px;
        width: auto;
    }

    .header .rt .menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        padding: 0 24px;
        background: var(--color-primary);
        transition: .3s;
    }

    .open .header .rt .menu {
        display: block;
        -webkit-animation: openMenu .3s forwards;
        animation: openMenu .3s forwards;
    }

    @-webkit-keyframes openMenu {
        0% {
            opacity: 0;
        }

        100% {
            opacity: 1;
        }
    }

    @keyframes openMenu {
        0% {
            opacity: 0;
        }

        100% {
            opacity: 1;
        }
    }

    .header .rt .hamburger {
        display: block;
    }


    .header .rt .h5-header {
        display: flex;
    }

    .header .rt ul {
        flex-direction: column;
    }

    .header .rt li {
        display: flex;
        justify-content: center;
        border-bottom: 1px solid var(--color-secondary);
    }

    .header .rt li+li {
        border-left: none;
    }

    .header .rt li a {
        padding: 32px 0;
        width: 100%;
        text-align: center;
        color: var(--color-tertiary);
    }

}

/* Key visual */

.kv {
    position: relative;
    margin-top: 96px;
    height: calc(100vh - 96px);
    width: 100%;
    height: 820px;
    max-width: 1920px;
    background: transparent url(../images/kv.jpg) center bottom / cover;
}

.kv ul {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0 32px;
    width: 100%;
    max-width: 1280px;
    color: var(--color-tertiary);
}

.kv ul li:first-child {
    font-size: 100px;
    font-weight: 900;
    letter-spacing: -4px;
}

.kv ul li:last-child {
    font-size: 20px;
    font-weight: normal;
}


@media (max-width: 768px) {
    .kv {
        margin-top: 0;
        height: calc(100vh - 56px);
        background: url(../images/kv-mobile.jpg) center top / cover;
    }

    .kv ul {
        padding: 0 24px;
    }

    .kv ul li:first-child {
        font-size: 48px;
    }

    .kv ul li:last-child {
        font-size: 12px;
    }
}

/* About */

.banner {
    width: 100%;
    height: 274px;
    /* background: transparent url(../images/about.jpg) no-repeat center center / auto 100%;  */
    background: transparent url(../images/about.jpg) no-repeat center center / cover;
}

@media (max-width: 768px) {
    .banner {
        background: transparent url(../images/about_m.jpg) no-repeat center center / cover;
    }
}

.section-about {
    margin-bottom: 0;
}

.section-about .slide,
.section-about .tabs {
    width: 100%;
    max-width: 768px;
}

/* Product  */
.section-product {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 32px;
}

.section-product .headline {
    border-bottom: none;
}

.section-product .slide {
    width: 100%;
    max-width: 1024px;
}

.section-product .slide-img {
    margin-bottom: 40px;
    width: 100%;
}

.section-product .content {
    text-align: center;
}

@media (max-width: 768px) {

    .section-product {
        padding: 0 24px;
    }
}

/* Service  */
.section-service {
    padding-top: 40px;
}

.box {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
}

.box:before,
.box:after {
    content: "";
    position: absolute;
    height: 100%;
    transition: .3s;
}

.box:before {
    top: -40px;
    left: 0;
    border-radius: 0 16px 16px 0;
    width: 50%;
    background: #000 url(../images/service.jpg) no-repeat right center / cover;
}

.box:after {
    top: 0;
    right: 0;
    border-radius: 16px 0 0 16px;
    /* width: calc((100% - 1024px) / 2 + (1024px - 24%)); */
    width: calc((100% - 1024px) / 2 + (1024px - 200px));
    background: #EAEAEA;
    opacity: .9;
}

.box-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    /* max-width: 1280px; */
    max-width: 1024px;
    /* padding-left: 24%; */
    padding-left: 200px;
    z-index: 2;
}

.box-content {
    padding: 80px;
    width: 100%;
}

.box .headline {
    align-items: flex-start;
    padding-bottom: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--color-secondary);
}


@media (max-width: 1024px) {
    .box:after {
        width: calc(100% - 200px);
    }
}

@media (max-width: 768px) {
    .section-service {
        padding: 0;
    }

    .box .headline {
        margin-right: 0;
        margin-left: 0;
        margin-bottom: 24px;
        padding-bottom: 24px;
    }

    .box .headline span+* {
        margin-top: 32px;
    }

    .box:before,
    .box:after {
        width: 84%;
    }

    .box-inner {
        padding-left: 16%;

    }

    .box-content {
        padding: 24px 32px;
    }

}

/* Google map  */
.map {
    position: relative;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: auto;
}

.map-img {
    position: absolute;
    top: 128px;
    left: 40px;
    /* transform: translateY(-50%); */
    height: 65%;
    aspect-ratio: 1 / 1;
    border-radius: 100%;
    border: 4px solid #fff;
    background: url(../images/official-img.jpg) no-repeat 60% center / cover;
    z-index: 1;
}

.map-img:before {
    display: none;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    /* background: rgba(0, 0, 0, .5); */
    background: linear-gradient(to right, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
}

.map-img ul {
    display: none;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    padding: 0 24px;
    width: 80%;
    color: #fff;
}



.map-img li:first-child {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -2px;
}

.map-img li:last-child {
    font-size: 12px;
    font-weight: normal;
}

.map iframe {
    position: absolute;
}

iframe {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 400px;
    border: 0;
}

@media (max-width: 768px) {
    .map {
        height: auto;
        padding: 0;
    }

    .map-img {
        position: relative;
        top: 0;
        left: 0;
        transform: translateX(0);
        border: none;
        border-radius: 0;
        aspect-ratio: 1 / 0.55;
    }

    .map-img:before {
        display: block;
    }

    .map-img ul {
        display: block;
    }

    .map iframe {
        position: static;
        transform: translateX(0);
        height: 256px;
    }

}

/* Footer  */

.footer {
    display: flex;
    justify-content: center;
    padding: 40px 0;
    background: #646464;
    font-size: 16px;
    color: var(--color-tertiary);
}

.footer .info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.info ul {
    display: flex;
    align-items: center;
}

.info li:last-child {
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid var(--color-secondary);
}

.info li p+p {
    margin-top: 8px;
}

.info li a {
    color: var(--color-tertiary);
}

.info i {
    width: 336px;
    height: 64px;
}

.info .btn-primary {
    min-width: 120px;
    background: var(--color-secondary);
}


@media (max-width: 768px) {
    .footer {
        padding: 32px 0;
    }

    .info {
        flex-direction: column-reverse;
        width: 100%;
    }

    .info ul {
        display: flex;
        justify-content: center;
        margin-top: 32px;
        width: 100%;
    }

    .info li:first-child {
        display: none;
    }

    .info li:last-child {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-left: 0;
        padding-left: 0;
        padding-top: 24px;
        border-left: none;
        border-top: 1px solid var(--color-tertiary);
        width: 100%;
    }
}

.copyright {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--color-tertiary);
    text-align: center;
}

@media (max-width: 768px) {
    .copyright {
        margin-top: 24px;
        padding-top: 24px;
        font-size: 12px;
        text-align: center;
    }
}







/*css end*/