.TL {position: fixed; right: 0.5%; top: 32%; z-index: 1000;}
.FB {position: fixed; right: 0.5%; top: 42%; z-index: 1000;}
.LINE {position: fixed; right: 0.5%; top: 52%; z-index: 1000;}




/*Banner*/
.swiper-container {
  height: auto !important;
}

.swiper-wrapper, .swiper-slide {
  height: 0 !important;
  padding-bottom: calc(750 / 1920 * 100%); /* 注意圖片高度與寬度要去掉單位 */
}

.swiper-slide {
  width: 100% !important;
}




body[data-type="fullpage"]:not(#managehome) #wrap > :not(:last-child) { margin-bottom: 0px; }


a {
    color: #193D7D;
}
body {
    background-color: #FFF;
    color: #193D7D;
    font-size: 16px;
    margin: 0;
    line-height: 1.8;
    font-family: 'Noto Sans TC';
    font-weight: 300;
}
/*陰影*/
.plan {
  background: #fff;
  width: 100%;
  margin: 0%;
  box-shadow: 0px 5px 15px rgba(0,0,0,0.16);
  padding: 15px;
  text-align: center;
  border-radius: 5px;
}

h1, .h1 {
  color: #193D7D;
  font-family: 'Noto Sans TC';
  font-weight: 400;
}

.h1title {
  padding-top: 30px;
  padding-bottom: 0px;
}


/* 手機版 Logo 置中 */
@media only screen and (max-width: 767px) {

  .topnavbar .logo img {
    display: block;
    margin: 0 auto;
  }

}


body[data-type="fullpage"]:not(#managehome) #wrap > :not(:last-child) { margin-bottom: 0px; }


/*top*/
.topnavbar .container {
  text-align: justify;
  font-size: 0;
  /*text-align: center;*/ 
  padding-top:0px;
}

.topnavbar .container::after {
  content: "";
  display: inline-block;
  width: 100%;
  }


.topnavbar {
  height:100px;
  background-color: rgba(0,0,0,0.1);
}


@media only screen and (max-width: 414px) {
.topnavbar .container {
    text-align: justify;
    font-size: 0;
    /* text-align: center; */
    padding-top: 0px;
    background: #333;
}
}


/*nav*/
#nav ul li a {
    white-space: nowrap;
    color: #fff;
    line-height: 1.3;
    font-weight: normal;
    padding: 10px 18px;
    font-size: 100%;
    border-right: 1px #ccc dotted;
    transition:all 0.5s;
   text-shadow: 1px 1px 5px #333;
}

#nav ul li a:hover{
    color: #a3d4fd;
/*
    filter: glow(color:#fff, strength=5);
    text-shadow: 1px 1px 20px #333;
  */
}

#nav ul li a span{transition:all 0.5s;}

#nav ul li a:hover span{
  border-top:2px solid #a3d4fd;
  padding-top:5px;
}

#nav ul li.current a  {
    color: #a3d4fd;  
}

#nav .subnav {
    position: absolute;
    top: 100%;
    max-width: 180px;
    background-color: rgba(75,75,75,0.75);
} 

#nav ul .subnav li a {
    background-color: rgba(35, 95, 161,0.65);
    color: #fff;
    text-align: left;
    width: 18px;
}

#nav ul .subnav li a {
     color: #fff;
}

#nav li.has-subnav ul li a {
    color: #fff;
    white-space: pre-line;
    padding: 10px 10px;
    width:180px;
}

#nav ul li .subnav a span {
    padding: 5px 0px;
    border-top:0px;
    width:180px;
}

#nav ul li .subnav a span:hover  {
    padding: 5px 0px;
    border-top:0px;
    width:180px;
}


/*h1*/
.h1title{color:#333;border-bottom:1px solid #333;}





/*區塊隱藏*/

#bodyinpage.rwd-collapse.viewmode.default .fcol.fcol-header,
#bodyinpage.about-us .fcol.fcol-6 {
  display: none;
}



#bodyinpage.contact-us .fcol.fcol-header {
  background-image: url(); /* 设置背景图片 */
  background-position: top center; /* 设置背景图像位置 */
  background-size: cover; /* 背景图像覆盖整个元素 */
  display:none;  
}
#bodyinpage.contact-us .fcol.fcol-1 {
  background-image: url(https://static.iyp.tw/409733/files/9ce6946d-6c35-4291-ab40-ae8c5da64129.png
); /* 设置背景图片 */
  background-position: top center; /* 设置背景图像位置 */
  background-size: cover; /* 背景图像覆盖整个元素 */
}





#bodyinpage.product .fcol.fcol-header {
  background-image: url(); /* 设置背景图片 */
  background-position: top center; /* 设置背景图像位置 */
  background-size: cover; /* 背景图像覆盖整个元素 */
  display:none;  
}
#bodyinpage.product .fcol.fcol-1 {
  background-image: url(https://static.iyp.tw/409733/files/9ce6946d-6c35-4291-ab40-ae8c5da64129.png
); /* 设置背景图片 */
  background-position: top center; /* 设置背景图像位置 */
  background-size: cover; /* 背景图像覆盖整个元素 */
}







#bodyinpage.news .fcol.fcol-header {
  background-image: url(); /* 设置背景图片 */
  background-position: top center; /* 设置背景图像位置 */
  background-size: cover; /* 背景图像覆盖整个元素 */
  display:none;  
}
#bodyinpage.news .fcol.fcol-1 {
  background-image: url(https://static.iyp.tw/409733/files/9ce6946d-6c35-4291-ab40-ae8c5da64129.png
); /* 设置背景图片 */
  background-position: top center; /* 设置背景图像位置 */
  background-size: cover; /* 背景图像覆盖整个元素 */
}








/* 外層區塊 */
.service-wrapper{
  height: 640px;
  display: flex;
  align-items: center;
}

/* 白色卡片 */
.service-box{
  background: rgba(255,255,255,0.9);
  padding: 30px;
  border-radius: 10px;
  max-width: 1200px;
  margin: 0 auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  width: 100%;
}

/* 影片自適應 */
.service-box iframe{
  width: 100%;
  height: 400px;
}

/* 手機版優化 */
@media (max-width: 768px){

  .service-wrapper{
    height: auto;            /* 手機不要固定高度 */
    padding: 40px 15px;
  }

  .service-box{
    padding: 20px;
  }

  .service-box .row{
    display: flex;
    flex-direction: column;  /* 直排 */
  }

  .service-box .col-3{
    width: 100%;
    margin-bottom: 20px;
  }

  .service-box iframe{
    height: 220px;           /* 手機影片縮小 */
  }

}








}

/* 產品輪播容器 */
.rwd-table {
  overflow-y: visible !important;
}
#myDiv {
  background-color: #000;
  overflow: hidden;
  width: 100%;
}
#myDiv img {
  max-width: none;
  width: 250px;
}
ul.product-list li h3 {
  flex: 1 0 auto;
  max-height: 3.15rem;
  margin: 0.7rem 0;
  font-size: 1.05rem;
  line-height: 1.5;
  color: #000;
  overflow: hidden;
  padding: 0 16px;
}

/* owl-carousel */
.owl-carousel.owl-theme {
  padding: 0 1rem 2rem;
}
.owl-carousel.owl-theme .owl-nav,
.owl-carousel.owl-theme .owl-dots {
  position: absolute;
  left: 0;
  right: 0;
}
.owl-carousel.owl-theme .owl-nav {
  top: 50%;
  transform: translateY(-50%);
}
.owl-carousel.owl-theme .owl-dots {
  bottom: 0;
}
.owl-carousel.owl-theme button:focus {
  outline: none;
}
.owl-carousel.owl-theme .owl-nav .owl-prev {
  float: left;
  transform: translateX(-100%);
}
.owl-carousel.owl-theme .owl-nav .owl-next {
  float: right;
  transform: translateX(100%);
}
.owl-carousel.owl-theme .owl-nav .fa {
  font-size: 3em;
}
.editmode .owl-carousel.owl-loaded {
  display: flex;
  flex-wrap: wrap;
}
.editmode .owl-carousel > div {
  flex: 0 0 25%;
  max-width: 25%;
}




#bodyinpage.rwd-collapse.viewmode.default.about-us .fcol.fcol-1 { background-color: #004990; /* 改成你要的單色 */ display: flex; align-items: center; justify-content: center; }








#bodyinpage.rwd-collapse.viewmode.default.about-us .fcol.fcol-2 { background: url(https://static.iyp.tw/409912/files/14108066-c157-4cdd-a3f7-69b103fdef49.svg) no-repeat center top; background-size: cover; min-height: 440px; display: flex; align-items: center; justify-content: center; } 



#bodyinpage.rwd-collapse.viewmode.default.about-us .fcol.fcol-3{
  background:url(https://static.iyp.tw/409912/files/c66d3bc0-5cbb-40bd-84c2-cc55b394ec8e.svg)no-repeat;
  background-size:cover;
  background-position:top center;
  min-height:550px;
  background-attachment:fixed;
}




#bodyinpage.rwd-collapse.viewmode.default.about-us .fcol.fcol-4 {
  background: url(https://static.iyp.tw/409912/files/7d54f43b-e08b-4f69-aee2-bc53b54be90f.svg) no-repeat center top;
  background-size: cover;
}




/*
#bodyinpage.rwd-collapse.viewmode.default.about-us .fcol.fcol-4 .container {
  padding: 0px;
  max-width: 80%;
  width: 100%;
  background: url(https://static.iyp.tw/409912/files/7d54f43b-e08b-4f69-aee2-bc53b54be90f.svg) no-repeat center center;
  background-size: cover;
}
*/


#bodyinpage.rwd-collapse.viewmode.default.about-us .fcol.fcol-5 {
  background: url(https://static.iyp.tw/409912/files/e52ec811-8017-4d3c-9dca-47f94847d2bf.svg) no-repeat center top;
  background-size: cover;
  min-height: 436px;
  display: flex;
  align-items: center;
  justify-content: center;
}





/* ==================================================
   表單修正
================================================== */
.mark {
  background: none;
}









/*Index_5*/
#bodyinhome .fcol.fcol-5 .container{
  padding:60px 20px;
}


.gallery {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}


.image-container {
  width: 250px;
  overflow: hidden;
  border-radius: 5px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  background-color: white;
  text-align: center;
  transition: transform 0.3s ease;
}

.image-container a {
  text-decoration: none;
  color: inherit;
}

.image-wrapper {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.image-wrapper img {
  width: 100%;
  height: auto;
  transition: transform 0.4s ease, filter 0.4s ease;
  display: block;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.4s ease;
  pointer-events: none;
}

.plus {
  font-size: 50px;
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.image-wrapper:hover img {
  transform: scale(1.1);
  filter: brightness(70%);
}

.image-wrapper:hover .overlay {
  background-color: rgba(0, 0, 0, 0.3);
}

.image-wrapper:hover .plus {
  opacity: 1;
}

.image-title {
  font-size: 18px;
  padding: 12px;
}


@media(max-width:1200px){
.image-container {
  width: 450px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  background-color: white;
  text-align: center;
  transition: transform 0.3s ease;
  }
}



@media(max-width:900px){
.image-container {
  width: 180px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  background-color: white;
  text-align: center;
  transition: transform 0.3s ease;
  }
}


@media(max-width:767px){
.image-container {
  width: 300px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  background-color: white;
  text-align: center;
  transition: transform 0.3s ease;
  }
}

@media(max-width:600px){
.image-container {
  width: 250px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  background-color: white;
  text-align: center;
  transition: transform 0.3s ease;
  }
}

@media(max-width:480px){
.image-container {
  width: 180px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  background-color: white;
  text-align: center;
  transition: transform 0.3s ease;
  }
}


@media(max-width:428px){
.image-container {
  width: 160px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  background-color: white;
  text-align: center;
  transition: transform 0.3s ease;
  }
}


@media(max-width:368px){
.image-container {
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  background-color: white;
  text-align: center;
  transition: transform 0.3s ease;
  }
}










/*服務圖片與文字 hover 效果*/
.service_img {
  position: relative;
}

.service_text {
  position: absolute;
  display: table-cell;
  z-index: 999;
  width: 100%;
  height: 100%;
  text-align: center;
  vertical-align: middle;
  color: #fff;
  top: 0;
  left: 0;
  padding: 0 15px 15px;
  background: rgba(0, 0, 0, 0);
  text-shadow: black 0.1em 0.1em 0.2em;
}

.service_text:hover {
  background-color: rgba(0, 0, 0, 0.55);
  transition: 0.5s;
}

.service_text div {
  font-size: 20px;
  line-height: 30px;
  position: relative;
  top: 45%;
  font-weight: bold;
}

@media (max-width: 768px) {
  .service_text div {
    font-size: 18px;
    line-height: 20px;
    top: 40%;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .service_text div {
    font-size: 24px;
    line-height: 30px;
    top: 40%;
  }
}


.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.image-container {
  width: calc(33.333% - 20px);
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  background-color: white;
  text-align: center;
  transition: transform 0.3s ease;
}


.col-1 {
  padding:1px;
  min-height:1px;
  -webkit-flex:1 0 100%;
  -ms-flex:1 0 100%;
  flex:1 0 100%;
  max-width:100%
}


body[data-type="fullpage"]:not(#managehome) #wrap > :not(:last-child) { margin-bottom: 0px; }
