@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100;300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600;700&display=swap');

:root {
    --color-black: #111111;
    --color-gray: #666666;
    --color--light-gray: #a0a0a0;
    --color-normal-gray: #E6E6E6;
    --color-light-gray: #FAFAFA;
    --color-white: #FFFFFF;
    --color-red: #E4007F;
    --color-blue: #1D2088;
    --color-green: #009944;
    --color-deep-green: #007233;
}


/*Reset*/

* {
    box-sizing: border-box;
}

html,
body {
    font-size: 16px;
    font-family: 'Noto Sans TC', sans-serif;
    color: var(--color-black);
    line-height: 2rem;
    max-width: 1920px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}


/*Text*/

h1 {
    font-size: 0;
    line-height: 0;
}

h1,
h2,
h3,
h4,
h5 {
    padding: 0;
    margin: 0;
}

h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-gray);
    margin-bottom: 1rem
}

h3 {
    font-size: 1rem;
    font-weight: normal;
}

p {
    line-height: 1.5rem;
}

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

.text-gray {
    font-size: .9rem;
    color: var(--color-gray);
}


/*General*/

main article {
    margin-top: 80px;
    margin-bottom: 60px;
    padding: 0 240px;
}

@media(max-width:1439.98px) {
    main article {
        padding: 0 120px;
    }
}

@media(max-width:1279.98px) {
    main article {
        padding: 0 40px;
    }
}

@media(max-width:767.98px) {
    main {
        padding-top: 100px;
    }
}

main article:last-child {
    margin-bottom: 150px;
}

p {
    margin: .5rem 0 .5rem 0;
    padding: 0;
}

ul,
ol,
li {
    list-style: none;
}

ul,
ol {
    margin-left: 0;
    padding-left: 0;
}

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

.d-none {
    display: none;
}

.img-sm {
    display: none;
}

@media(max-width:767.98px) {
    .img-md {
        display: none !important;
    }

    .img-sm {
        display: block !important;
    }
}

.card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    align-items: flex-start;
    justify-items: center;
    gap: 2.5rem;
}

@media(max-width:991.98px) {
    .card-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width:767.98px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}

.card-flex {
    display: flex;
    gap: 1.5rem;
}

@media(max-width:767.98px) {
    .card-flex {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}


/*Navbar*/

.menu {
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    padding: 0 240px 10px;
    margin-bottom: 20px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

@media(max-width:1439.98px) {
    .menu {
        padding: 0 120px 10px;
    }
}

@media(max-width:1279.98px) {
    .menu {
        padding: 0 40px 10px;
    }
}

@media (max-width:767.98px) {
    .menu {
        height: 100px;
        background-color: var(--color-white);
        padding-bottom: 30px;
        box-shadow: 0px 0px 18px 0 rgba(0, 0, 0, 0.08);
        position: fixed;
        z-index: 999999;
    }
}

.menu .logo {
    max-width: 250px;
    width: 100%;
    padding-right: 2rem;
    cursor: pointer;
}

.menu .menu-link {
    padding: 0;
    margin: 0;
    margin-left: auto;
    display: flex;
    gap: 1rem;
    white-space: nowrap;
}

.menu .menu-link li {
    text-align: center;
    width: 82px;
    padding: 0 .5rem;
    cursor: pointer;
}

@media(max-width:767.98px) {
    .menu .menu-link li {
        width: 120px;
        margin-bottom: 10px;
    }
}

.menu .menu-link li:hover {
    color: var(--color-red);
    position: relative;
}

.menu .menu-link li:hover::before {
    content: '>';
    position: absolute;
    left: -3px;
    margin-left: 50%;
    transform: rotate(90deg) scale(0.8, 2);
    color: var(--color-red);
    -webkit-animation: menu-hover .5s forwards;
    animation: menu-hover .5s forwards;
}

.menu .menu-link li.focus {
    color: var(--color-black);
    position: relative;
}

.menu .menu-link li.focus::before {
    content: '>';
    position: absolute;
    bottom: -1.5rem;
    left: -3px;
    margin-left: 50%;
    transform: rotate(90deg) scale(0.8, 2);
    color: var(--color-black);
}

@-webkit-keyframes menu-hover {
    0% {
        bottom: -2rem;
        opacity: 0;
    }

    100% {
        bottom: -1.5rem;
        opacity: 1;
    }
}

@keyframes menu-hover {
    0% {
        bottom: -2rem;
        opacity: 0;
    }

    100% {
        bottom: -1.5rem;
        opacity: 1;
    }
}

@media(max-width:767.98px) {
    .menu .menu-link {
        font-size: 1.2rem;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.96);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        position: fixed;
        top: 0;
        right: -100%;
        z-index: 999;
        transition: ease .8s;
    }

    .menu .menu-link.show {
        right: 0;
    }
}

.home {
    display: none;
}

@media(max-width:767.98px) {
    .home {
        display: block;
    }
}


/*Menu SVG*/

.menu .menu-toggle-nav {
    display: none;
}

@media screen and (max-width:767.98px) {
    .menu .menu-toggle-nav {
        display: block;
    }

    .menu .menu-toggle-nav {
        border: none;
        cursor: pointer;
        display: flex;
        outline: none;
        position: fixed;
        top: 30px;
        right: 30px;
        z-index: 9999;
    }

    .line {
        fill: none;
        stroke: #666666;
        stroke-width: 5;
        transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1), stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
        -webkit-transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1), stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
        -moz-transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1), stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
        -ms-transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1), stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
        -o-transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1), stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
    }

    .line1 {
        stroke-dasharray: 60 207;
        stroke-width: 5;
    }

    .line2 {
        stroke-dasharray: 60 60;
        stroke-width: 5;
    }

    .line3 {
        stroke-dasharray: 60 207;
        stroke-width: 5;
    }

    .opened .line1 {
        stroke-dasharray: 95 207;
        stroke-dashoffset: -139;
        stroke-width: 5;
    }

    .opened .line2 {
        stroke-dasharray: 1 60;
        stroke-dashoffset: -30;
        stroke-width: 5;
    }

    .opened .line3 {
        stroke-dasharray: 90 207;
        stroke-dashoffset: -134;
        stroke-width: 5;
    }
}


/*Main*/


/*Banner*/

.owl-carousel {
    position: relative;
}

.owl-theme .owl-dots {
    transform: translateY(-40px);
}

.owl-theme .owl-nav.disabled+.owl-dots {
    transform: translateY(-50px);
}

@media(max-width:767.98px) {
    .owl-theme .owl-dots {
        transform: translateY(-30px);
    }

    .owl-theme .owl-nav.disabled+.owl-dots {
        transform: translateY(-40px);
    }
}

.owl-theme .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin-top: -10px;
}

.owl-nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.owl-nav button {
    width: 30px;
}

.owl-nav .owl-prev:hover,
.owl-nav .owl-next:hover {
    background-color: rgba(255, 255, 255, 0) !important;
}

.owl-nav .owl-prev span,
.owl-nav .owl-next span {
    font-size: 32px !important;
    color: var(--color--light-gray) !important;
}


/*index*/

.index .more {
    color: var(--color-white);
    background-color: var(--color-green);
    padding: 5px 8px;
    margin-top: .5rem;
    border-radius: 5px;
    display: table;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    transition: ease .3s;
}

.index .more:hover {
    background-color: var(--color-deep-green);
    transform: scale(1.05);
}

.index .more-text {
    display: none;
}

.news li {
    margin-top: .1rem;
}

.news li:nth-child(even) {
    background-color: var(--color-normal-gray);
    padding-top: .1rem;
    padding-bottom: .1rem;
}

.news li:nth-child(1) {
    margin-top: 0;
}

.news .tag-1,
.news .tag-2 {
    margin-left: 2rem;
    padding-left: .5rem;
    position: relative;
}

@media(max-width:767.98px) {

    .news .tag-1,
    .news .tag-2 {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
}

.news .tag-1::before {
    font-weight: 500;
    color: var(--color-red);
    content: '休';
    position: absolute;
    left: -2rem;
}

.news .tag-2::before {
    font-weight: 500;
    color: var(--color-blue);
    content: '賀';
    position: absolute;
    left: -2rem;
}

.news .news-date {
    color: var(--color-gray);
    float: right;
    padding: 0 .5rem;
}

@media(max-width:767.98px) {
    .news .news-date {
        color: var(--color-gray);
        float: none;
        padding: 0;
        transform: translateY(-.1rem);
    }
}


/*page*/

.about .logo-sub {
    max-width: 400px;
    width: 100%;
}

.about .card-flex {
    margin-top: 1rem;
}

.about .card-flex .card-item span {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-red);
}

.about .card-grid .card-item span {
    font-size: 1.1rem;
    font-weight: 500;
}

.about .card-grid .card-item:nth-child(odd) span {
    color: var(--color-blue);
}

.about .card-grid .card-item:nth-child(even) span {
    color: var(--color-green);
}

.about .card-item,
.service .card-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.about .card-item,
.service .card-item {
    max-width: 260px;
    width: 100%;
}

.service .card-flex {
    margin-top: 1rem;
    margin-bottom: 80px;
}

.service .card-flex .card-item span {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-blue);
}

.card-print-flex .card-item-right,
.card-print-flex .card-item-left {
    max-width: 1080px;
    width: 100%;
    gap: 15px;
}

.card-print-flex img {
    max-width: 260px;
    width: 100%;
}

.card-print-flex .card-item-right {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-start;
    align-items: center;
}

.card-item-right .card-item-text {
    text-align: right;
}

.card-item-text span {
    font-size: 1.7rem;
    font-weight: bold;
    font-family: 'Dancing Script', cursive;
    color: var(--color-green);
}

.card-item-left .card-item-text span {
    -webkit-text-stroke: 1px var(--color-blue);
    color: var(--color-blue);
}

.card-print-flex .card-item-left {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

.card-print-flex .card-item-border {
    width: calc(100% - 590px);
    height: 1px;
    margin-left: 295px;
    background-color: var(--color--light-gray);
}

@media(max-width:767.98px) {

    .card-print-flex .card-item-right,
    .card-print-flex .card-item-left {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .card-item-right .card-item-text,
    .card-item-left .card-item-text {
        width: 100%;
        text-align: left;
    }

    .card-print-flex .card-item-border {
        width: 100%;
        margin-left: auto;
        margin: 30px auto 10px;
    }
}

@media(max-width:767.98px) {

    .about .card-item,
    .service .card-item {
        max-width: 220px;
    }
}

.about .card-item img,
.about .card-item-right img,
.about .card-item-left img,
.service .card-item img,
.portfolio img {
    transition: ease .5s;
}

.about .card-item:hover img,
.about .card-item-right:hover img,
.about .card-item-left:hover img,
.service .card-item:hover img,
.portfolio img:hover {
    transform: scale(1.05);
}

.smile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.smile span {
    font-size: 1.2rem;
    color: var(--color-red);
}

.smile-img {
    width: 42px;
    height: 42px;
    margin-top: 15px;
    position: relative;
}

.smile-img img {
    width: 42px;
}

.smile-img .eye-close {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.smile-img:hover .eye-open {
    opacity: 0;
}

.smile-img:hover .eye-close {
    opacity: 1;
}

.slash {
    position: relative;
    padding-left: 6rem;
}

.slash::before {
    content: '';
    width: 100px;
    height: 1px;
    background-color: var(--color--light-gray);
    position: absolute;
    left: 2.6rem;
    top: -5px;
    transform: rotate(-45deg);
}

.portfolio article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: flex-end;
    gap: 12px;
}

@media(max-width:767.98px) {
    .portfolio article {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
        align-items: flex-start;
        gap: 12px;
    }
}

.portfolio .title {
    font-size: 1.15rem;
    font-weight: 500;
}

.portfolio p {
    margin: 0.2rem 0 0.5rem 0;
}

.left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.left .showImg {
    width: 100%;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.left .showImg img {
    width: 110%;
}

.left .Img,
.right .Img {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.left img,
.right img {
    min-width: 100px;
}

@media(max-width:767.98px) {

    .left img,
    .right img {
        min-width: 100%;
    }
}

.imgCaption-md {
    margin-bottom: 1.5rem;
}

.imgCaption-sm {
    display: none;
}

@media(max-width:767.98px) {
    .imgCaption-sm {
        display: block;
    }

    .imgCaption-md {
        display: none;
    }
}

.imgCaption-sm .captionTitle,
.imgCaption-md .captionTitle {
    font-size: 1.67em;
    font-weight: bold;
}

.captionText {
    display: block;
    position: relative;
    padding-left: 80px;
}

@media(max-width:1199.98px) {
    .captionText {
        display: unset;
    }
}

.captionText::before {
    content: "業務內容：";
    white-space: nowrap;
    position: absolute;
    left: 0;
}

.FAQ h2 {
    color: var(--color-red);
}

.QA li {
    margin-top: .1rem;
}

.QA li:nth-child(even) {
    background-color: var(--color-normal-gray);
    padding-top: .1rem;
    padding-bottom: .1rem;
}

.QA li:nth-child(1) {
    margin-top: 0;
}

.QA .tag-1 {
    margin-top: 1.2rem;
    cursor: pointer;
}

.QA .tag-1:nth-child(1) {
    margin-top: 0;
}

.QA .tag-1,
.QA .tag-2 {
    margin-left: 2rem;
    padding-left: .5rem;
    position: relative;
}

@media(max-width:767.98px) {

    .QA .tag-1,
    .QA .tag-2 {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
}

.QA .tag-1::before {
    font-weight: 500;
    color: var(--color-green);
    content: 'Q';
    position: absolute;
    left: -2rem;
}

.QA .tag-2::before {
    font-weight: 500;
    color: var(--color-blue);
    content: 'A';
    position: absolute;
    left: -2rem;
}

.QA .tag-1+.tag-2 {
    max-height: 0;
    background: #FFFFFF;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    -webkit-transition: max-height 0.3s ease-out;
    -moz-transition: max-height 0.3s ease-out;
    -ms-transition: max-height 0.3s ease-out;
    -o-transition: max-height 0.3s ease-out;
}

.guide li {
    line-height: 1.5rem;
}

.guide .tag-1 {
    margin-left: .6rem;
    padding-left: .5rem;
    position: relative;
}

.guide .tag-1::before {
    width: 12px;
    content: url("../img/check.svg");
    position: absolute;
    left: -.6rem;
}


/*Toggle Control*/

section {
    opacity: 0;
    display: none;
}

.toggleShow {
    -webkit-animation: toggleControl 2.5s ease forwards;
    animation: toggleControl 2.5s ease forwards;
}

@-webkit-keyframes toggleControl {
    form {
        display: block;
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes toggleControl {
    form {
        display: block;
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.toggleShowReverse {
    -webkit-animation: toggleControlReverse 1s ease forwards;
    animation: toggleControlReverse 1s ease forwards;
}

@-webkit-keyframes toggleControlReverse {
    form {
        opacity: 1;
    }

    to {
        display: none;
        opacity: 0;
    }
}

@keyframes toggleControlReverse {
    form {
        opacity: 1;
    }

    to {
        display: none;
        opacity: 0;
    }
}


/*Footer*/

footer {
    background-color: var(--color-light-gray);
    padding: 35px 240px 30px 240px;
}

@media(max-width:1439.98px) {
    footer {
        padding: 35px 120px 30px 120px;
    }
}

@media(max-width:1279.98px) {
    footer {
        padding: 35px 40px 30px 40px;
    }
}

.contact a, .contact a:hover, .contact a:visited {
    color: var(--color-red);
    text-decoration: none;
}

footer a, footer a:hover, footer a:visited {
    color: var(--color-black);
    text-decoration: none;
}

footer .footer-logo {
    height: 30px;
    display: flex;
    justify-content: flex-start;
    gap: .5rem;
    margin-bottom: 1rem;
}

footer .contact-info {
    margin-bottom: 2rem;
    display: flex;
    gap: 5px;
    white-space: nowrap;
}

footer .contact-info span {
    padding-right: 20px;
    position: relative;
}

footer .contact-info span:nth-child(1)::before,
footer .contact-info span:nth-child(2)::before {
    content: "/";
    position: absolute;
    right: 5px;
}

footer .contact-info,
footer .copyright {
    font-size: .9rem;
}

@media(max-width:575.98px) {
    footer .contact-info {
        flex-direction: column;
    }

    footer .footer-logo {
        max-width: 240px;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    footer .footer-logo img:nth-child(1) {
        max-width: 200px;
    }

    footer .contact-info span:nth-child(1)::before,
    footer .contact-info span:nth-child(2)::before {
        content: "";
    }
}


/*animate*/

.card-item-left {
    position: relative;
    transform: translateX(-150px);
    opacity: 0;
    transition: 2s all ease;
    -webkit-transform: translateX(-150px);
    -moz-transform: translateX(-150px);
    -ms-transform: translateX(-150px);
    -o-transform: translateX(-150px);
}

.card-item-left.active {
    transform: translateX(0);
    opacity: 1;
    -webkit-transform: translateX(0);
    -moz-transform: translateX(0);
    -ms-transform: translateX(0);
    -o-transform: translateX(0);
}

.card-item-right {
    position: relative;
    transform: translateX(150px);
    opacity: 0;
    transition: 2s all ease;
    -webkit-transform: translateX(150px);
    -moz-transform: translateX(150px);
    -ms-transform: translateX(150px);
    -o-transform: translateX(150px);
}

.card-item-right.active {
    transform: translateX(0);
    opacity: 1;
    -webkit-transform: translateX(0);
    -moz-transform: translateX(0);
    -ms-transform: translateX(0);
    -o-transform: translateX(0);
}