@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@300&display=swap");
@import url("https://fonts.googleapis.com/css2?family=LXGW+WenKai+Mono+TC&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

:root {
    --banner-ratio-720: calc(100vw * (720 / 720)); /* 預設比例 */
    --banner-ratio-1024: calc(100vw * (624 / 1024));
    --banner-ratio-1440: calc(100vw * (624 / 1440));
    --banner-ratio-1280: calc(100vw * (720 / 1280));
    --banner-ratio-1920: calc(100vw * (672 / 1920));

    --primary-color: #314c5a;
    --secondary-color: #474747;
    --accent-color: #314d5a;
    --color-f5f5f5: #f5f5f5;
    --color-172740: #172740;
    --color-7b8f99: #7b8f99;
    --color-a9b8be: #a9b8be;
    --color-caff7e: #caff7e;
    --color-ffffff: #ffffff;
    --color-d0d9dd: #d0d9dd;
    --color-e1ebf4: #e1ebf4;
    --color-80a1b1: #80a1b1;
    --color-869ca7: #869ca7;
    --color-5bb512: #5bb512;
    --color-162740: #162740;
    --color-fefcfb: #fefcfb;
    --color-fdfdfd: #fdfdfd;
}

html,
body {
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
.h1,
.h2,
.h3,
.h4,
.h5 {
    font-family: "微軟正黑體", "Roboto", sans-serif !important;
}

a {
    /* font-family: "Noto Serif TC", serif !important; */
}

p {
    /* color: #71706e; */
    color: var(--secondary-color);
    font-weight: 600;
    letter-spacing: 1.5px;
}

@media (max-width: 768px) {
    p {
        font-size: 1.2rem;
    }
}

.text-small {
    font-size: 0.875rem;
}

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

.text-869ca7 {
    color: var(--color-869ca7);
}

.text-main {
    color: var(--primary-color);
}

.text-sub {
    color: var(--color-secondary);
}

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

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

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

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

.line-869ca7 {
    background-color: var(--color-869ca7);
    width: 100%;
    height: 1.5px;
}

.btn-main {
    background-color: var(--primary-color);
    padding: 0.15rem 0.85rem;
}

.btn-third {
    background-color: var(--color-ffffff);
    padding: 0.15rem 0.85rem;
}

.btn-sub {
    background-color: var(--color-ffffff);
    border: 1px solid var(--primary-color);
    padding: 0.2rem 1.5rem;
}

.btn-sub span {
    color: var(--primary-color);
    font-weight: 500;
}

.btn-sub:hover {
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-sub:hover span {
    color: var(--color-ffffff);
    transition: all 0.3s ease;
}

.bg-gray-20 {
    /* background-color: #ece9e2d7; */
    background-color: #f9f5f1;
}

.w-fit {
    width: fit-content;
}

.line-height-high {
    line-height: 2.35rem;
}

.line-height-higher {
    line-height: 2rem;
}

#hero {
    /* background: linear-gradient(#fff 0%, #f1f0ede0 50%, #ece9e2d7 50%); */
    /* background: linear-gradient(#fff 0%, #ece9e2d7 50%, #f9f5f1 100%); */
    /* background: linear-gradient(#fff 0%, #f9f5f1 100%); */
}

.carousel-caption {
    background: transparent !important;
}

#hero {
    min-height: auto !important;
}

#hero .item1,
#hero .item2,
#hero .item3 {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    /* width: 100vw; */
}

#hero .item1 {
    background-image: url(../images/00-hp/banner01_624.jpg);
}
#hero .item2 {
    background-image: url(../images/00-hp/banner02_624.jpg);
}
#hero .item3 {
    background-image: url(../images/00-hp/banner03_624.jpg);
}

@media (max-width: 768px) {
    #hero .item1,
    #hero .item2,
    #hero .item3 {
        height: var(--banner-ratio-720);
        /* height: 100vw; 以正方形顯示 */
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    #hero .item1,
    #hero .item2,
    #hero .item3 {
        height: var(--banner-ratio-1024);
    }
}

@media (min-width: 1024px) and (max-width: 1280px) {
    #hero .item1,
    #hero .item2,
    #hero .item3 {
        height: var(--banner-ratio-1280);
    }
}

@media (min-width: 1280px) and (max-width: 1440px) {
    #hero .item1,
    #hero .item2,
    #hero .item3 {
        height: var(--banner-ratio-1440);
    }
}

@media (min-width: 1440px) {
    #hero .item1,
    #hero .item2,
    #hero .item3 {
        height: var(--banner-ratio-1920);
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    #hero .item1 {
        background-image: url(../images/00-hp/banner01_1024.jpg);
    }
    #hero .item2 {
        background-image: url(../images/00-hp/banner02_1024.jpg);
    }
    #hero .item3 {
        background-image: url(../images/00-hp/banner03_1024.jpg);
    }
}

@media (min-width: 1024px) and (max-width: 1280px) {
    #hero .item1 {
        background-image: url(../images/00-hp/banner01_1280.jpg);
    }
    #hero .item2 {
        background-image: url(../images/00-hp/banner02_1280.jpg);
    }
    #hero .item3 {
        background-image: url(../images/00-hp/banner03_1280.jpg);
    }
}

@media (min-width: 1280px) and (max-width: 1440px) {
    #hero .item1 {
        background-image: url(../images/00-hp/banner01_1440.jpg);
    }
    #hero .item2 {
        background-image: url(../images/00-hp/banner02_1440.jpg);
    }
    #hero .item3 {
        background-image: url(../images/00-hp/banner03_1440.jpg);
    }
}

@media (min-width: 1440px) {
    #hero .item1 {
        background-image: url(../images/00-hp/banner01_1920.jpg);
    }
    #hero .item2 {
        background-image: url(../images/00-hp/banner02_1920.jpg);
    }
    #hero .item3 {
        background-image: url(../images/00-hp/banner03_1920.jpg);
    }
}

.site-blocks-cover {
    min-height: auto !important;
    height: auto !important;
}

.site-navbar {
    padding: 1rem 0 !important;
    transition: all 0.3s ease;
}

.site-navbar.scrolled {
    background-color: rgba(49, 77, 91, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .site-navbar {
        padding: 0.5rem 0 !important;
    }
}

.site-navigation {
    background-color: var(--color-f5f5f5);
    border-radius: 5px;
    padding: 3px 9px;
}

.site-navigation ul {
    padding: 0;
}

.site-navigation ul li {
    padding: 0px 5px !important;
}

.site-navigation ul li a {
    color: var(--accent-color) !important;
    padding: 0 8px !important;
}

.site-navigation ul li a:hover {
    color: var(--color-a9b8be) !important;
    transition: all 0.3s ease !important;
}

/* 為 nav 中 site-menu 的嵌套 li 元素添加分隔線 */
nav .site-menu li {
    position: relative;
}

nav .site-menu li:not(:first-child):before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background-color: #7b8f99;
}

nav .site-menu li a {
    font-weight: normal !important;
}

.nav-cta {
    background-color: var(--color-172740);
    border-radius: 5px;
    padding: 3px 10px;
}

.about-item {
    background-color: var(--color-ffffff);
    padding-bottom: 15px;
    padding-left: 15px;
    padding-right: 15px;
    border: 9px solid var(--color-d0d9dd);
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.ser-tick {
    margin-right: 0.2rem;
    width: 25px;
    height: 25px;
}

.ser-pic {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.line_pic {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

@media (min-width: 992px) {
    .ser-pic {
        height: 100%;
    }

    .line_pic {
        height: 100%;
    }
}

@media (max-width: 992px) {
    .ser-pic {
        height: auto;
    }
    .line_pic {
        height: auto;
    }
}

.hp-s1-cta {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 20px;
    left: 40px;
    background: var(--color-e1ebf4);
    z-index: 1;
}

.overflow-hidden {
    overflow: hidden !important;
}

.hp-s1-section {
    background: url(../images/00-hp/bg1920.jpg) repeat center center;
    background-size: contain;
}

@media (max-width: 768px) {
    .hp-s1-section {
        background-color: #f3f9ff;
        background-image: url(../images/00-hp/bg750.jpg);
        background-position: center;
        background-repeat: repeat;
        background-size: contain;
    }
}

/* @media (min-width: 768px) and (max-width: 1024px) {
    .hp-s1-section {
        background: url(../images/00-hp/news_bg1024.jpg) no-repeat center center;
        background-size: cover;
    }
}

@media (min-width: 1024px) and (max-width: 1280px) {
    .hp-s1-section {
        background: url(../images/00-hp/news_bg1280.jpg) no-repeat center center;
        background-size: cover;
    }
}

@media (min-width: 1280px) and (max-width: 1440px) {
    .hp-s1-section {
        background: url(../images/00-hp/news_bg1440.jpg) no-repeat center center;
        background-size: cover;
    }
}

@media (min-width: 1440px) {
    .hp-s1-section {
        background: url(../images/00-hp/news_bg1920.jpg) no-repeat center center;
        background-size: cover;
    }
} */

.works-item-img {
    width: 100%;
    border: 15px solid var(--color-d0d9dd);
}

.works-category {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 2px 5px;
    border: 1px solid var(--primary-color);
}

.works-title {
    padding-bottom: 8px;
    border-bottom: 1.5px solid var(--color-80a1b1);
}

.hp-s1-section-bottom-line {
    width: 100%;
    height: 8px;
    background-color: var(--color-d0d9dd);
}

.cta-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.f-qrcode {
    width: auto;
    height: auto;
    max-height: 95px;
    object-fit: cover;
    object-position: center;
}

.cta-items p {
    padding: 0 1rem;
    font-size: 15px;
    font-weight: 500;
}

.cta-items p:not(:first-child) {
    border-left: 1px solid #ffffff;
}

@media (max-width: 992px) {
    .cta-items p {
        padding: 0px 0;
        font-size: 14px;
        text-wrap: inherit !important;
        border-left: none !important;
    }
}

.site-footer {
    background-color: var(--primary-color);
    padding-top: 2rem !important;
    padding-bottom: 0 !important;
}

@media (max-width: 768px) {
    .site-footer {
        margin-bottom: 45px;
    }
}

.links {
    font-size: 15px;
}

@media (max-width: 992px) {
    .links {
        font-size: 14px;
    }
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

@media (max-width: 768px) {
    .back-to-top {
        width: 50px;
        right: 10px;
        bottom: 60px;
    }
}

.social-links-btn {
    position: fixed;
    z-index: 9;
    top: 50%;
    left: 0;
    transform: translate(0, -50%);
    -webkit-transform: translate(0, -50%);
    -moz-transform: translate(0, -50%);
    -ms-transform: translate(0, -50%);
    -o-transform: translate(0, -50%);
}

.social-links-btn a {
    width: 4rem;
}

.social-links-btn-mobile {
    width: 100vw;
    height: 45px;
    z-index: 9;
}

.s-line-btn {
    background: linear-gradient(
        to top,
        var(--color-5bb512) 0%,
        var(--color-5bb512) 100%
    );
    height: 100%;
    border-right: 0.5px solid #fff;
    /* border-left: 0.5px solid #fff; */
}

.s-phone-btn {
    background: linear-gradient(
        to top,
        var(--color-162740) 0%,
        var(--color-162740) 100%
    );
    height: 100%;
    /* border-right: 0.5px solid #fff; */
    border-left: 0.5px solid #fff;
}

.s-location-btn {
    background: linear-gradient(
        to top,
        var(--color-162740) 0%,
        var(--color-162740) 100%
    );
    height: 100%;
    /* border-right: 0.5px solid #fff; */
    border-left: 0.5px solid #fff;
}

.social-links-btn-mobile a {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    line-height: 50px;
}

.bottom-0 {
    bottom: 0;
}

.left-0 {
    left: 0;
}

.site-mobile-menu {
    width: 300px !important;
    top: 0;
    padding-top: 15px;
    z-index: 9999;
    background-color: var(--color-fefcfb) !important;
}

@media (max-width: 768px) {
    .site-mobile-menu {
        width: 200px !important;
    }
}

.site-wrap:before {
    background-color: var(--color-d0d9dd) !important;
    opacity: 0.6 !important;
}

.site-mobile-menu .site-nav-wrap a {
    color: var(--primary-color) !important;
    font-weight: 500 !important;
}

.icon-close2:before {
    color: var(--primary-color) !important;
}

.ab-01-pic {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
}

.about-item-line {
    width: 100%;
    height: 1.5px;
    background-color: var(--color-d0d9dd);
    margin: 8px 0;
    flex-shrink: 0;
}

.about-item p:last-child {
    flex: 1;
    margin-bottom: 0;
}

.pg-ser {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 80px;
    right: -80px;
    background: var(--color-e1ebf4);
    z-index: 1;
}

.s_ban {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
}

.overflow-scroll {
    overflow-x: scroll !important;
}

.services-menu {
}

.services-menu li {
    padding: 0px 1.8rem !important;
    position: relative;
}

.services-menu li a {
    color: var(--primary-color) !important;
    font-weight: 500 !important;
    transition: color 0.3s ease;
    cursor: pointer;
}

.services-menu li a:hover {
    color: var(--color-a9b8be) !important;
    text-decoration: none;
}

.services-menu li:not(:first-child):before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background-color: var(--primary-color);
}

@media (max-width: 768px) {
    .services-menu li {
        padding: 0px 1rem !important;
    }
}

.services-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.services-item-line-s {
    width: 1.5rem;
    height: 1.5px;
    background-color: var(--primary-color);
}

.services-item-content {
    border: 10px solid var(--color-d0d9dd);
    height: 100%;
    background-color: var(--color-ffffff);
}

.services-item-num {
    font-size: 2.3rem;
    font-weight: 900;
    color: var(--color-d0d9dd);
}

.services-item-content p {
    line-height: 2.35rem;
    width: 100%;
}

.bg-ser-02 {
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: 0;
    left: 0;
    z-index: 1;
}

.bg-ser-02 {
    background: url(../images/02/02bg_pic1024.jpg) no-repeat center center;
    background-size: cover;
}

@media (max-width: 768px) {
    .bg-ser-02 {
        background-color: #dddee1;
        background-image: url(../images/02/02bg_pic750.jpg);
        background-position: center bottom;
        background-repeat: no-repeat;
        background-size: 100%;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .bg-ser-02 {
        background: url(../images/02/02bg_pic1024.jpg) no-repeat center center;
        background-size: cover;
    }
}

@media (min-width: 1024px) and (max-width: 1280px) {
    .bg-ser-02 {
        background: url(../images/02/02bg_pic1280.jpg) no-repeat center center;
        background-size: cover;
    }
}

@media (min-width: 1280px) and (max-width: 1440px) {
    .bg-ser-02 {
        background: url(../images/02/02bg_pic1440.jpg) no-repeat center center;
        background-size: cover;
    }
}

@media (min-width: 1440px) {
    .bg-ser-02 {
        background: url(../images/02/02bg_pic1440.jpg) no-repeat center center;
        background-size: cover;
    }
}

.work-category {
}

.category-title {
    font-size: 1.15rem;
    font-weight: 600;
    background-color: var(--accent-color);
    color: var(--color-ffffff);
    padding: 5px 0;
}

.category-list {
    max-height: 250px;
    overflow-y: auto;
    /* scrollbar-width: thin; */
    scrollbar-color: var(--color-d0d9dd) transparent;
}

.category-list li a {
    padding: 8px 12px;
    display: block;
    color: var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-list li:last-child a {
    border-bottom: none;
}

.category-list li a {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.category-list li a:hover {
    color: var(--color-869ca7);
    text-decoration: none;
    transition: all 0.3s ease;
    transform: scale(0.95);
}

.category-toggle {
    text-align: center;
    font-size: 12px;
}

@media (max-width: 768px) {
    .category-title {
        font-size: 1rem;
        cursor: pointer;
    }
}

.works-details-title {
    background-color: var(--accent-color);
    color: var(--color-fdfdfd);
    padding: 5px 10px;
}

.works-details-info {
    color: var(--accent-color);
    font-size: 13px;
    font-weight: normal;
}

.works-details-line {
    height: 1px;
    background-color: var(--accent-color);
}

.btn-back {
    border: 1px solid var(--accent-color);
    padding: 0.2rem 1.5rem;
}

.btn-back span {
    color: var(--accent-color);
    font-weight: 500;
}

.works-details-content * {
    color: var(--secondary-color);
    font-weight: normal;
}

.process-item {
    border: 10px solid var(--color-d0d9dd);
    padding: 2rem 3rem;
    height: 100%;
}

@media (max-width: 768px) {
    .process-item {
        padding: 1.2rem 1.5rem;
    }
}

.process-num {
    font-size: 1.8rem;
    line-height: 1.6rem;
    font-weight: 900;
    color: var(--color-ffffff);
    background-color: var(--accent-color);
    padding: 10px !important;
    display: flex;
    align-items: center;
}

.process-title {
    font-size: 1.3rem;
    line-height: 1.6rem;
    font-weight: 700;
    color: var(--color-ffffff);
    background-color: var(--accent-color);
    padding: 10px;
}

.process-item p {
    font-size: 16px;
}

.ban04-pic {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.pg-process {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 120px;
    left: 0px;
    background: var(--color-e1ebf4);
    z-index: 1;
}

.faq-intro {
    background: url(../images/05/05babg1608.jpg) no-repeat center center;
    background-size: cover;
}

@media (max-width: 768px) {
    .faq-intro {
        background-color: #f3f9ff;
        background-image: url(../images/05/05babg624.jpg);
        background-position: center bottom;
        background-repeat: no-repeat;
        background-size: 100%;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .faq-intro {
        background-color: #f3f9ff;
        background-image: url(../images/05/05babg1024.jpg);
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
    }
}

@media (min-width: 1024px) and (max-width: 1440px) {
    .faq-intro {
        background: url(../images/05/05babg1280.jpg) no-repeat center center;
        background-size: cover;
    }
}

.faq-item {
    margin-bottom: 1.8rem;
}

.faq-item p {
    line-height: 2rem;
}

.faq-title {
    border: 1px solid var(--accent-color);
}

.faq-title span {
    background-color: var(--accent-color);
    color: var(--color-ffffff);
    padding: 5px 24px;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.6rem;
    display: flex;
    align-items: center;
}

.faq-title h5 {
    font-size: 1.2rem;
    line-height: 1.6rem;
    padding: 5px 10px;
    font-weight: 600;
}
