:root {
    --primary: #005745;
    --secondary: #00a48d;
    --focus: #e6002d;
    --green: #8fc31f;
    --light-primary: #85cbbf;
    --red: #e6002d;
    --pink: #f091a0;
    --gray: #bababa;
    --blue: #c60021;
    --indigo: #6610f2;
    --purple: #6f42c1;
    --orange: #fd7e14;
    --yellow: #f6c23e;
    --teal: #20c9a6;
    --cyan: #36b9cc;
    --white: #fff;
    --gray-dark: #5a5c69;
    --success: #1cc88a;
    --info: #36b9cc;
    --warning: #f6c23e;
    --danger: #e74a3b;
    --light: #f8f9fc;
    --dark: #5a5c69;
}

body, html {
    overflow-x: hidden;
    font-family: 'MyCustomFont', sans-serif;
}

@media (max-width: 768px) {
    body, html {
        margin: 0px 5px 0px 5px;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #4e5346;
    font-size: 16px;
}

.big_btn{
    transform: translate(0, 0);
    letter-spacing: 4px;
}

.btn_wrap a{
    text-decoration: none; /* 移除底線 */
}

.big_btn_reverse,
.big_btn{
    display: inline-block;
    position: relative;
    /* border: 1px solid #ccc; */
    /* padding-right: 80px; */
    padding: 20px 50px 20px 40px;
}

.big_btn_reverse::after,
.big_btn::after {
    content: '';
    background-repeat: no-repeat;
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 70px;
    height: 5px;

}

.big_btn::after{
    background-image: url('/Img/arrow_green_right.svg');
}

.big_btn_reverse::after {
    background-image: url('/Img/arrow_white_right.svg'); /* 滑鼠移上去換圖片 */
}

.big_btn:hover {
    background-color: #4e5346;
}

.big_btn_reverse:hover{
    background-color: #fff;
}

.big_btn_reverse span{
    color:#fff;
}

.big_btn:hover span {
    color: #fff; /* 滑鼠移上去換文字顏色 */
}

.big_btn_reverse:hover span {
    color: #4e5346; /* 滑鼠移上去換文字顏色 */
}

.big_btn:hover::after {
    background-image: url('/Img/arrow_white_right.svg'); /* 滑鼠移上去換圖片 */
}

.big_btn_reverse:hover::after {
    background-image: url('/Img/arrow_green_right.svg'); /* 滑鼠移上去換圖片 */
}

.big_btn span {
    position: relative;
    padding-right: 40px; /* 給圖片留出空間 */
}

.arrow{
    letter-spacing: 2px;
    display: inline-block;
    position: relative;
    padding: 10px 80px 0px 5px;
}
.arrow::after {
    background-repeat: no-repeat;
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 5px;
    background-image: url('/Img/arrow_green_right.svg');
}

.container {
    text-align:center;
    /*max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;*/
}


main {
    margin-top: var(--head-height); /* 確保主體內容不被固定的 header 遮擋 */
}

.news {
    text-align: center;
    /* background-color: #f9f9f9; */
    padding: 20px;
    /* border-bottom: 1px solid #ddd; */
    font-size: 14px;
    display: flex;
    justify-content: space-around;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    font-weight: bold;
}

.philosophy {
    padding: 60px 20px;
    display: flex;
    justify-content: center;
}

.philosophy .container {
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.philosophy .text-content {
    max-width: 41%;
}

.philosophy button:hover {
    background-color: #f9f9f9;
}

.philosophy .image-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.philosophy2{
    /* display: flex;
    justify-content: flex-end;
    align-items: center; */

    display: flex;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    margin-top: 5px;
    margin-bottom:70px;
}

/* 設置圖片部分的寬度 */
/* .philosophy2 .image-content {
    width: 59%;  
    max-width: 825px;
} */

.philosophy2 .image-content{
    overflow: hidden;
    width: 50%;/* 圖片佔一半的寬度 */
    height: 600px;
}

.philosophy2 .image-content img {
    width: 100%;
    min-height: 600px;
    object-fit: cover;
    border-radius: 10px;
}

/* 設置文字部分的寬度 */
.philosophy2 .text-content {
    /* flex: 1; */
    width: 41%;  /* 文字佔一半的寬度 */
    /* padding-left: 80px; */
    margin-top: 50px;
    /* padding-right: 10px; */
}

.philosophy2 .text-content .text {
    letter-spacing: 0.14em;
    line-height: 5em;
    margin-top: 55px;
}


/* 手機版的佈局：圖片和文字垂直排列 */
@media (max-width: 768px) {
    
    .philosophy2 {
        flex-direction: column-reverse;
        text-align: center; /* 文字居中對齊 */
    }

    .philosophy2 .image-content,
    .philosophy2 .text-content {
        width: 100%; /* 在手機版中，圖片和文字寬度設為100% */
        height: 400px;
    }

    .philosophy2 .image-content img {
        width: 100%; /* 圖片在手機版中佔據全寬 */
        min-height: 400px;
    }

    .philosophy2 .text-content {
        padding-left: 0px;
        margin-bottom: 200px;
    }

    .philosophy2 button {
        margin-top: 20px; /* 調整按鈕的間距 */
    }
    
    .big_btn{
        padding: 20px 50px 20px 0px;
    }

    .philosophy2 .text-content .text {
        line-height: 3.5em;
    }
}

.commitment {
    padding: 50px 20px;
    text-align: center;
}

.product-grid {
    /* display: flex;
    justify-content: center;
    gap: 40px; */
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    max-width: 1230px;
    margin: 95px auto 0;
    /* margin-top: 60px; */
}

.product-item {
    text-align: start;
    width: calc((100% - 13%) / 3);
}

.product-item img {
    /* width: 350px; */
    width:100%;
    height: auto;
    /* border-radius: 10px; */
    margin-bottom: 20px;
}

.product-item p {
    font-size: 16px;
    color: #666;
}

.product-item p::after {
    content: ' ';
    font-weight: bold;
}

@media (max-width: 768px) {
    .commitment{
        padding: 0px 20px;
    }

    .product-grid{
        margin: unset;
        flex-direction: column;
        text-align: center;
    }

    .product-item{
        width:100%;
        margin-bottom: 20px;
    }

    .product-item img{
        margin-bottom: 0px;
    }
}

.works{
    text-align: center;
}
.swiper-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

.swiper-container{
    overflow: hidden; /* 隱藏滾動條 */
}

.swiper-wrapper figure{
    position: relative;
}

.swiper-wrapper figure .image{
    overflow: hidden;
    width: 100%;
    height: 450px;
}

.swiper-wrapper figure .image img {
    width: 100%;
    min-height: 450px;
    object-fit: cover;
}

.swiper-wrapper figure figcaption{
    /* position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    margin: 5px;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    letter-spacing: 0.14em;
    -webkit-transition: .3s;
    transition: .3s;
    opacity: 0; */
    
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 5px;
    background-color: rgba(255, 255, 255, 0.5); /* 半透明黑色 */
    color: #6c757d;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
}

.swiper-wrapper figure:hover .overlay {/* 當滑鼠指上去時，顯示覆蓋圖和文字 */
    opacity: 1;
}

.swiper-wrapper figure:hover img {/* 當滑鼠指上去時，將原始圖片變淡 */
    opacity: 0.7;
}

@media (max-width: 768px) {
    
    .swiper-wrapper figure figcaption{
        position: relative;
        align-items: baseline;
        text-align: left;
        background-color:unset;
        color:unset;
        opacity: 1;
    }

    .swiper-container a{
        text-decoration: unset;
    }

    .swiper-wrapper a:hover{
        color: var(--gray);
    }
}

/* ------ Logo2 -------- */
.inner{
    display: flex;
    justify-content: center;
    margin-top: 60px;
}
.inner2{
    max-width:800px;
    margin:50px auto 0;
    padding:30px 0;
    border-top:1px solid #72756b;
    border-bottom:1px solid #72756b;
    text-align:center;
}
.inner2 span{
    padding-right: 40%;
    letter-spacing:6px;
    
}
.inner2 a{
    text-decoration: none;   
}

.Logo2{
    background-color: #4e5346;
    color: #fff;
    padding: 110px 0px 110px 0px;
}

.Img_area{
    align-content: center;
    text-align: end;
    flex: 1;
    width: 50%;  /* 文字佔一半的寬度 */
}

.Img_area Img{
    /* width: 35%; */
    height:70%;
    /*margin-right: -40px;*/
    /* margin-top: 20px; */
}

.text_area{
    margin-left: 90px;
    width: 50%;
    letter-spacing: 3px;
}

.join_com{
    display: block;
    margin-top: 60px;
    padding: 30px 100px;
    transition: .3s;
    border: 1px solid #fff;
    
    font-size: 15px;
    letter-spacing: 0.14em;
    text-align: center;
}

.join_com:hover{
    background-color: #fff;
    color: #4e5346;
    text-decoration: none; /* 移除下划线 */
}

.join_com span{
    color: #fff;
} 

.join_com:hover span{
    color: #4e5346;
}

@media (max-width: 768px) {
    .inner{
        flex-direction: column;
        text-align: center;
        margin: 0px;
    }

    .inner .Img_area{
        width:100%;
        text-align: center;
        flex: 1;
        /* width:100%; */
    }

    .inner .text_area{
        width:100%;
        margin: 0% 2%;
    }

    .inner .join_com{
        display: inline-block;
    }

    .big_btn_reverse{
        padding: 25px 80px 25px 0px;
    }
    
    .Img_area Img{
        width: 35%;
        margin-right: 0px;
    }

    .Logo2{
        padding: 80px 0px;
    }

    .inner2 span{
        padding-right: 0%;
        
    }
    .inner2 {
        max-width:300px;
        padding: 0%;
        
    }
}



/* *------------------- FAQ --------------------- */
/* FAQ 區塊容器 */
.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 5px;
    overflow: hidden; 
    box-shadow:0px 2px 6px 0px rgba(48, 51, 37, 0.3)
   
  }
  .accordion-button {
    background: linear-gradient(45deg, #dcdfd5, #d6d0d0c0);
    color: #000000;
    font-weight: bold;
    border: none;
    border-radius: 0;
    padding: 1rem;
    font-size: 1.2rem;
    padding: 25px 20px;
    
  }
  .accordion-button:hover,
  .accordion-button:focus {
    background: linear-gradient(45deg, #9da882, #b8c5a0);
    box-shadow: 0 0 0 0.25rem rgba(121, 143, 89, 0.5) !important;
    color: #fff;
  }
  .accordion-button:not(.collapsed) {
    background: linear-gradient(45deg, #7c8f5b, #9da882);
    box-shadow: 0 0 0 0.25rem rgba(121, 143, 89, 0.5) !important;

    color: #fff;  
  }
  .accordion-body {
    background: #edeeeb;
    border-top: 1px solid #55b330;
    font-size: 1.1rem;
    padding: 2rem;
    text-align: start;
  }

  @media (max-width: 767px){
    .accordion-button {
        font-size: 0.9rem;
    }

    .accordion-body {
        font-size: 0.8rem;
    }
  }
/* *------------------- FAQ --------------------- */
/* line-CAT */
.line-CAT img{
    width: 75%;
    display: block;
    margin: 0 auto;
}

@media (max-width: 767px){
    .line-CAT img{
        width: 100%;
    }

}
/* line-CAT */

footer {
    background-color: #fff;
    border-top: 1px solid #ccc;
}


