


:root{
    --menuTop: 48px;
    --whiteWord: #ffffff;
    --contentPadding: 0 14vw;
    --themeColor: #031a30;
    --titleColor: #0b3f6d;
    --footerFontSize: 2vh;
    --companyNameFontSize: 26pt;
    --titleFontSize: 1.6vw;
    --serviceFontSize: 1.6vw;
    --serviceImgWidth: 12vw;
    --navFontSize: 1.2vw;
    --marqueeHeight: 400px;
}


@media screen and (max-width: 768px) {
    :root{
        --menuTop: 56px;
        --contentPadding: 0 8vw;
        --footerFontSize: 3vw;
        --companyNameFontSize: 7.2vw;
        --titleFontSize: 2.2vh;
        --serviceFontSize: 3vh;
        --serviceImgWidth: 100%;
        --marqueeHeight: 300px;
    }
    
    .services {
        gap: 2vw !important;
    }
    .service_title{
        padding-bottom: 1vh !important;
    }
    #nav_company_name{
        font-size: 3.8vw !important;
    }

    .ship_insection {
        flex-direction: column !important;
        
    }
    .case_text{
        padding: var(--contentPadding) !important;
        width: unset !important;
    }

    .swiper {
        width: 75vw !important;
        height: 75vw !important;
    }
}

@media screen  and (min-width: 768px){
    .swiper {
        padding: 0 16.8vw !important;
    } 
}

.swiper {
    width: 16vw;
    height: 16vw;
} 

.fade-up {
    opacity: 0 !important;
    transform: translateY(30px) !important;
}
.fade-visible {
    opacity: 1;
    transform: translateY(0);
}

body {
    margin: 0;
    font-family: 微軟正黑體, Verdana, Arial;
    transition: all 0.3s;
}


img,#header_background,#mask {
    width: 100%;
    height: 100%;
}

a{
    text-decoration: none;
}

#mask {
    position: absolute;
    background: rgba(0, 64, 125, 1);
    opacity: 0.5;
    top: 0;
}

#header_background img {
    object-fit: cover;
}

#navbar {
    background-color: var(--themeColor);
    text-align: left;
    display: flex;
    align-items: center;
    position: fixed;
    width: 100vw;
    height: var(--menuTop);
    padding: 0;
    top: 0;
    z-index: 100;
}

#navbar > a {
    display: flex;
    width: 100vw;
    height: var(--menuTop);
    flex-wrap: wrap;
    align-content: center


}

#nav_company_name{
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--whiteWord);
    font-size: var(--navFontSize);
    margin-left: 12px;
}
#company_name{
    position: absolute;
    border: #fff 2px solid;
    color: var(--whiteWord);
    width: 72%;
    height: 60%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 2vw;
    left: 0;
    right: 0;
    margin: 0 auto;
}

#company_name span{
    display: block;
    text-align: center;
    font-size: var(--companyNameFontSize);
}

#logo_block {
    background-color: #ffffff;
    text-align: center;
    height: 68%;
    aspect-ratio: 65/56;
    margin: 0 0 0 2vw;
}

#company{
    position: relative;
    display: flex;
    align-items: center;
    width: 100vw;
    height: 45vh;
    padding: 0;
    margin-top: var(--menuTop);
}

#header_background{
    width: 100%;
    height: 100%;
}

/* #about{
    background: #e1dfdb;
} */

.title {
    font-size:var(--titleFontSize);
    font-weight: 600;
    line-height: 1.75;
    color: var(--titleColor);
}

.title > div {
    display: inline;
}

section {
    padding: 16px 0;
    transition: opacity 1s ease, transform 1s ease;
}

section:not(#company):not(.ship_insection) > div {   
    padding: var(--contentPadding);
}
section > div:nth-of-type(2), .case_content > p:nth-of-type(2) {
    font-size: 12pt;
    line-height: 1.75;
}
section:nth-of-type(even),.ship_insection:nth-of-type(odd),.photo-marquee,#contact {
    background-color: #e1dfdb;
}


section:nth-of-type(odd) .service_img {
    background-color: #e1dfdb;
}

.swiper-slide ,.ship_insection:nth-of-type(even){
    background: #ffffff;
}

#footer {
    text-align: center;
    height: 6vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--themeColor);
    color: var(--whiteWord);
    font-size: var(--footerFontSize);
}

#copyRight p{
    padding: 0;
    margin: 0;
}

#googleMap {
    width: 100%;
    height: 300px;
}

.kindbar{
    background: var(--themeColor) !important;
    color: var(--whiteWord);
    padding: 8px 0;
    width: 40vw;
}

.kindbarDiv {
    color: var(--whiteWord) !important;
}

 

.services {
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8vw;
}

.service_img{
    width: var(--serviceImgWidth);
    position: relative;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: flex;
    background-color: #fff;
    justify-content: space-around;
    align-items: center;
}

.service_img img, .swiper-slide img{
    width: 95% !important;
    height: 95% !important;
}

.services p{
    margin: 0;
}

.service_text {
    flex: 1;
}


.service_title {
    font-size: var(--serviceFontSize);
    font-weight: 600;
    line-height: 1.75;
    color: var(--titleColor);
    padding-bottom: 0.5vw;
}

.sevice_content {
    display: flex;
    gap: 2vw;
    flex-direction: column;
}

div p:nth-of-type(2) {
    line-height: 1.6;
}

.swiper img {
    object-fit: cover;
} 


.ship_insection:nth-of-type(even) {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.ship_insection:nth-of-type(odd) {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
}

.ship_insection:nth-of-type(even) .case_text {
    display: flex;
    flex-direction: column;
    padding: 0 0 0 14vw;
    width: 26vw;
}

.ship_insection:nth-of-type(odd) .case_text {
    display: flex;
    flex-direction: column;
    padding: 0 14vw 0 0;
    width: 26vw;
}

.swiper-slide{
    display: flex;
    justify-content: space-around;
    align-items: center;
    -webkit-transition-timing-function: cubic-bezier(0.48, 0.02, 0.38, 1);
    -o-transition-timing-function: cubic-bezier(0.48, 0.02, 0.38, 1);
    transition-timing-function: cubic-bezier(0.48, 0.02, 0.38, 1)
}

.swiper-slide::after,#docking_repair .service_img::after,#crew_management .service_img::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-bottom: 10px solid var(--titleColor);
}

#technical .service_img::after,#ship_management .service_img::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 0;
    height: 0;
    left: 0;
    border-right: 10px solid transparent;
    border-bottom: 10px solid var(--titleColor);
}

#crew_management .service_img::after {
    border-bottom: 10px solid var(--titleColor);
}

.inspection-img div {
    aspect-ratio: 1/1;
}


.photo-marquee {
    overflow: hidden;
    width: 100%;
    padding: 1rem 0;
  }
  
  .marquee-track {
    
  }
  
  .photo-marquee .marquee-track img {
    height: 300px;
    /* width: auto !important; */
    margin: 0 10px;
    object-fit: contain;
    border-radius: 8px;
  }
  
  /* 重複圖片區域 */
  .marquee-track-wrapper {
    height: var(--marqueeHeight) !important;
    transition-timing-function: linear !important;
  }
  .marquee-track-wrapper div{
    max-width: 500px;
    /* width: auto !important; */
  }