/* icon */
.TEL-1 {
  position: fixed;
  right: 0.1%;
  top: 60%;
  z-index: 1000;
  transform: scale(0.9);
}

.MAP {
  position: fixed;
  right: 0.1%;
  top: 75%;
  z-index: 1000;
  transform: scale(0.9);
}

/* icon_手機版 */
@media (max-width: 767px) {
  .TEL-1 {
    position: fixed;
    right: 0.1%;
    top: 55%;
    z-index: 1000;
    transform: scale(0.9);
  }

  .MAP {
    position: fixed;
    right: 0.1%;
    top: 68%;
    z-index: 1000;
    transform: scale(0.9);
  }
}


/*SVG_LOGO*/
#logo img, .modal .logo img {
  width:100%;
  height:100%;
}

@media(max-width:767px){
  #logo img, .modal .logo img { 
    width:100%;
    height: auto;
    margin: 0 auto;
  }
}

/*Banner*/
.swiper-container {
    height: auto !important;
}
.swiper-wrapper, .swiper-slide {
  height: 0 !important;
  padding-bottom: calc( 800 / 1920 * 100%); /* 注意圖片高度與寬度要去掉單位 */
}*/

.swiper-slide {
  width: 100% !important;
}

@media(max-width:767px){
  .swiper-wrapper, .swiper-slide {
    padding-bottom: calc( 700 / 700 * 100%);
  }
}



body[data-type="fullpage"]:not(#managehome) #wrap > :not(:last-child) { margin-bottom: 0px; }


a {
    color: #5C5C5C;
}
body {
    background-color: #FDFDFD;
    color: #5C5C5C; 
    font-size: 16px;
    margin: 0;
    /*line-height: 1.8;*/
    font-family: 'Noto Sans TC';
    font-weight: 300;
}


/*頁籤寬版*/
body[data-type="fullpage"] #nav {
    font-size: 1rem;
    width: 100%;
}

#header .topnavbar .container {
    padding-left: 20px;
    padding-right: 20px;
    width: 90%;
}


/*標題*/
h1, .h1 {
  color: #5C5C5C;
  font-family: 'Noto Sans TC';
  
}

.h1title {
  padding-top: 0px;
  padding-bottom: 0px;
}

.fcol h2 {
 font-weight:350
}

.fcol h3 {
 font-weight:350
}

/*標題_隱藏*/
#bodyinpage.about-us .fcol.fcol-header
{
  display:none;
}

#bodyinpage.menu .fcol.fcol-header
{
  display:none;
}

#bodyinpage.news .fcol.fcol-header
{
  display:none;
}

#bodyinpage.contact-us .fcol.fcol-header
{
  display:none;
}


/*頁籤*/
.navbar-nav > li > a {
    color: #2A323D;
}

.topnavbar .container {
  text-align: justify;
  font-size: 0;
}

.topnavbar .container::after {
  display: inline-block;
  width: 100%;
}

.topnavbar {
   background-color: #FDFDFD;
   top:0px;
   padding: 0;
   position: relative;
   z-index:100;
   width:100%;
}


/*頁籤_手機版_移除背景圖 
@media (max-width: 768px) {
  .topnavbar {
    background: none !important;
  }
}
*/
/*頁籤_上下邊距*/
.topnavbar .container {
    padding-top: 10px;
    padding-bottom: 8px;
   
}

/*頁籤_上下邊距*/
body[data-type="fullpage"] #nav {
  font-size: 1rem;
  width: 100%;
  padding-top: 0px; /* 上邊距 */
  padding-bottom: 0px; /* 下邊距 */
}


/*nav_faa*/
body[data-type="fullpage"] #nav {
    font-size: 1rem;
    width: 100%;
}


/*nav*/
#nav{margin-top:-80px ; background-color: #FDFDFD;}

#nav ul {float:right;}

#nav ul li a {
    white-space: nowrap;
    color: #5C5C5C;
    line-height: 1;
    font-weight: 300;
    padding: 10px 18px;
    font-size: 100%;
    transition:all 0.5s;
}


/*頁籤_滑過去反饋字體色*/
#nav ul li a:hover {
    color: #222222;
    font-weight:300px
}


/*子頁籤_背景色*/
#nav .subnav {
  background-color:#FDFDFD;
}


/*頁籤_字體色*/
#nav ul li.current a {
  color: #D7000F;
  font-weight: normal;
}



/*導覽列*/
 @media only screen and (min-width: 768px) {

   .topnavbar {
      background-color: #FDFDFD; /* 桌面版型_導覽列顏色 */
    }
 }

  .navbar {
    background-color: #FDFDFD; /* 手機版型_導覽列顏色 */
  }
  #nav ul li a {
    color: #5C5C5C; /* 桌面版型_導覽列文字顏色 */
    font-weight: 400;  /* 桌面版型_導覽列文字粗度 */
  }


.rwd-navbar-toggle {
    float: right;
  }
  .navbar-nav {
    margin-right: 15px;
  }
 

 @media only screen and (max-width: 767px) {
    .rwd-side {
      background-color: #F4EFE9;
      transform: translateX(100%);
    }
  }

.rwd-navbar-toggle .label {
  color: #d7000f;/*選單兩字顏色*/
}
.navbar-icon-bar {
    background-color: #d7000f;/*三條線*/
}
.navbar-icon-bar::before, .navbar-icon-bar::after {
  background-color: #d7000f;/*三條線*/
}

.rwd-side.menu-open {
  color:#D7000F;
  background: #FDFDFD;
 }


/*回首頁*/
.navbar-nav > li > a {
    color: #FDFDFD;
    background-color: #D7000F;
}

/* 回首頁_滑鼠懸停時變更背景顏色 */
.navbar-nav > li > a:hover {
    color: #DCDDDD;
    background-color: #D7000F; /* 當滑鼠懸停時的背景顏色 */
}



/* about-us_1 */
#bodyinpage.about-us .fcol.fcol-1 .container {
    padding: 40px 180px; /*內距*/ 
    max-width: 100%;
    width: 100%;
    background-image: url('https://static.iyp.tw/409844/files/498ee46d-b665-40a7-981e-f3963a4dd773.svg');
    background-size: cover; 
    background-position: top center; 
    background-repeat: no-repeat; 

} 



@media (max-width: 768px) {
  #bodyinpage.about-us .fcol.fcol-1 .container {
    padding: 30px 15px; /* 內距縮小以符合手機寬度 */
    background: none !important;

  }
}


 /* about-us_2 */
#bodyinpage.about-us .fcol.fcol-2 .container {
    padding: 10px 180px; /*內距*/ 
    max-width: 100%;
    width: 100%;
    background-image: url('');
    background-size: cover; 
    background-position: top center; 
    background-repeat: no-repeat; 

}

@media (max-width: 768px) {
  #bodyinpage.about-us .fcol.fcol-2 .container {
    padding: 30px 15px; /* 內距縮小以符合手機寬度 */
    background: none !important;

  }
}


/* about-us_3 */
#bodyinpage.about-us .fcol.fcol-3 .container {
    padding: 10px 180px; /*內距*/ 
    max-width: 100%;
    width: 100%;
    background-image: url('https://static.iyp.tw/409844/files/d44ab7fc-0026-4a28-9bcb-597650b41726.svg');
    background-size: cover; 
    background-position: top center; 
    background-repeat: no-repeat; 

}


@media (max-width: 768px) {
  #bodyinpage.about-us .fcol.fcol-3 .container {
    padding: 30px 15px; /* 內距縮小以符合手機寬度 */
    background: none !important;

  }
}

/* about-us_4 */
#bodyinpage.about-us .fcol.fcol-4 .container {
    padding: 40px 180px; /*內距*/ 
    max-width: 100%;
    width: 100%;
    background-image: url('https://static.iyp.tw/409844/files/498ee46d-b665-40a7-981e-f3963a4dd773.svg');
    background-size: cover; 
    background-position: top center; 
    background-repeat: no-repeat; 

} 



@media (max-width: 768px) {
  #bodyinpage.about-us .fcol.fcol-4 .container {
    padding: 30px 15px; /* 內距縮小以符合手機寬度 */
    background: none !important;

  }
}


/* about-us_5 */
#bodyinpage.about-us .fcol.fcol-5 .container {
    padding: 40px 100px; /*內距*/ 
    max-width: 100%;
    width: 100%;
    background-image: url('https://static.iyp.tw/409844/files/d496b039-7030-48c1-bb8c-5bfe8424fffa.jpg');
    background-size: cover; 
    background-position: top center; 
    background-repeat: no-repeat; 
    background-attachment: fixed; /* 使背景图像固定，達到視差效果 */

} 



@media (max-width: 768px) {
  #bodyinpage.about-us .fcol.fcol-5 .container {
    padding: 30px 15px; /* 內距縮小以符合手機寬度 */

  }
}

/* about-us_6 */
#bodyinpage.about-us .fcol.fcol-6 .container   
  {
  display:none;
}


/* contact-us_1 */
#bodyinpage.contact-us .fcol.fcol-1 .container {
    padding: 40px 180px; /* 內距 */
    max-width: 100%;
    width: 100%;
    background-image: url('');
    background-size: cover; /* 背景覆蓋 */
    background-position: top center; /* 背景置頂居中 */
    background-repeat: no-repeat; /* 避免背景重複 */
    background-attachment: fixed; /* 使背景图像固定，達到視差效果 */

}

@media (max-width: 768px) {
  #bodyinpage.contact-us .fcol.fcol-1 .container {
    padding: 30px 15px; /* 內距縮小以符合手機寬度 */

  }
}  

#bodyinpage.contact-us .fcol.fcol-2 .container   
  {
  display:none;
}


/*footer*/
#footer a {
  color:#111
}

#footer a:hover {
  color:#111
}

#footer{background:#DCDDDD;}

#foot-nav{
  display:none;
}

#foot-nav ul li a {
    color: #111;
    font-size: 1.06em;
}

#foot-nav {
    clear: both;
    padding: 1em 0;
    border-bottom: 1px solid #222;
}

#footer {
    color:#111;
}

#contact-info ul li span {
    color: #111;
}

#copyright, #copyright a{color:#111;}


.contact-row h5 {
  color:#111;
  padding:.5em 0 1em;
  width:100%
}

#footer{background:#DCDDDD;max-width:100%;}



/*滑鼠游標位移過去時更換圖片*/
.image-container {
    position: relative;
    display: inline-block;
    width: 100%;
    height: auto;
}

.image {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.hover-image {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.image-container:hover .hover-image {
    opacity: 1;
}

.image-container:hover .image {
    opacity: 0;
}


/*段字*/
@media(max-width:767px){
.mobile-br:before { 
    content: ' '; 
    display: block;
 }  
}
  

/*news_返回鍵*/
.back > a, .btn-search, .btn-style, input[type="submit"] {
    -webkit-transition: background 0.15s ease-out;
    -moz-transition: background 0.15s ease-out;
    transition: background 0.15s ease-out;
    color: #F9F4EF;
    border: 0px solid #FEFCEF;
    background-color: #D7000F;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    display: block; /* 使元素變為區塊級元素 */
    margin-left: auto; /* 自動設定左邊距 */
    margin-right: auto; /* 自動設定右邊距 */
    width: fit-content; /* 使寬度自動適應內容 */
}

/* news_返回鍵 當滑鼠懸停時改變背景顏色 */
.back > a:hover, .btn-search:hover, .btn-style:hover, input[type="submit"]:hover {
  color: #FDFDFD;  
  background-color: #D7000F; 
}


/* news_icon */
.news .fcol .news-list li .ico,
.news .news.main-content li .ico,
#news-heading .ico {
  background: url("https://static.iyp.tw/409844/files/3a338c8b-1254-49e6-b8c0-96d1d78318b7.svg") left center no-repeat;
  width: 1.575rem;
  height: 1.575rem;
  background-size: contain;
}

/* news_橫幅 */
#news-heading .news-box {
  background-color:#D7000F;
  color:#FDFDFD;
  font-family: Noto Serif TC;
}

#news-heading .date {
  width:15%;
  font-size:.9rem;
  text-align:right;
  color:#FDFDFD;
  padding-left:10px
}



/*產品格*/
ul.product-list li a {
    display: flex;
    flex-flow: column;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    text-decoration: none;
    cursor: pointer;
    padding-bottom: 16px;
    color: #111;
    border: 0px;
    border-radius: 3px;
    background-color: rgba(0, 0, 0, 0.05);
}
 

/*產品格名稱顏色*/
#side ul li.current > div a {
    color: #fff;
    background-color: #B98D58;
    border-radius: 30px; 
}

#side ul li a {
    color: #2A323D;
    display: block;
    padding: 10px 20px;
    transition: .3s;
}

.product-list-div h2 a {
    color: #494949;
    text-decoration: none;
    display: inline-block;

}

.product-list-div h2 {
    margin-bottom: 10px;
    border-bottom: 1px solid #2A323D;
    text-shadow: 0 0px 0 #fff;
}

body[data-type="fullpage"] .product-list-div h2 a.show-all {
    color: #494949;
    transition-property: left, color;
}

ul.product-list li .money-icon {
    color: #2A323D;
    font-size: 95%;
    margin-right: 8px;
    margin-left: 16px;
    text-shadow: 0 0px 0 rgba(255,255,255,0.7);
}

/*pd*/
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;
}

ul.product-list li .desc {
   display: none;
}

body[data-type="fullpage"] .product-list-div h2 a.show-all {
    color: #fff;
    transition-property: left, color;
    background: #000;
    text-shadow: none;
    padding: 0 10px;
}



/*intro1*/
.intro1 {
  -webkit-animation-delay: 1.5s;
}

.intro1 a {
  margin: 10px;
  overflow: hidden;
  position: relative;
  padding: 15px 30px;
  border: 0px #D7000F solid;
  display: inline-block;
  font-size: 100%;
  color: #D7000F;
  background: #FDFDFD;
  border-radius: 0px;
  text-align: center;
}

.intro1 a:hover {
  color: #FDFDFD!important;
  border: 0px #FDFDFD solid;
  background: #D7000F;!important;
  transition: all 0.4s ease;
}

.intro1 a:hover:after {
  left: 0;
}





/* intro2 */
.intro2 {
  -webkit-animation-delay: 1.5s;
}

.intro2 a {
  margin: 10px;
  overflow: hidden;
  position: relative;
  padding: 15px 30px;
  border: 0px #FDFDFD solid;
  display: inline-block;
  font-size: 100%;
  color: #FDFDFD;
  background: #D7000F;
  border-radius: 0px;
  text-align: center;
}

.intro2 a:hover {
  color: #D7000F!important;
  border: 0px #D7000F solid;
  background: #FDFDFD;!important;
  transition: all 0.4s ease;
}

.intro2 a:hover:after {
  left: 0;
}



/* intro1-2_手機版 */
@media screen and (max-width: 768px) {
  .btn-box {
    display: block; /* 按鈕自動換行 */
  }

  .intro1, .intro2 {
    width: 100%; 
    margin-bottom: 10px; /* 上下間距 */
  }

  .intro1 a, .intro2 a {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}


/*owl*/
.owl-carousel.owl-theme {
  padding: 0 1rem 2rem;
}
.owl-carousel.owl-theme .owl-nav {
  top: 50%;
  margin: 0;
  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-carousel.owl-theme .owl-dots {
  position: absolute;
  left: 0;
  right: 0;
}
.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 .owl-prev:hover,
.owl-carousel.owl-theme .owl-nav .owl-next:hover{
  background: none;
  color: inherit;
}
.owl-carousel.owl-theme .owl-nav .fa{
  font-size: 0em; /*箭頭大小*/
}

.editmode .owl-carousel.owl-loaded {
  display: flex;
  flex-wrap: wrap;
}
.editmode .owl-carousel > div {
  flex: 0 0 25%;
  max-width: 25%;
}

.owl-carousel .owl-item img {
  display: block;
  width: 100%;
  border: 0px solid #fff;
  border-radius: 10px;
}


/* 手機（360px~575px */
@media (min-width: 360px) and (max-width: 575px) {
  .col-lg-3 {
    width: 45%;
  }
  .col-xs-12 {
    width: 100%;
  }
}

/* 手機小螢幕（375px~575px */
@media (min-width: 375px) and (max-width: 575px) {
  .col-lg-3 {
    width: 100%;
  }
}

/* 平板（>=768px） */
@media (min-width: 768px) {
  .col-lg-3 {
    width: 100%;
  }
}

/* 桌機（>=1024px */
@media (min-width: 1024px) {
  .col-lg-3 {
    width: 20%;
  }
}

/* 大桌機（>=1200px） */
@media (min-width: 1200px) {
  .col-lg-3 {
    width: 24%;
  }
}


/*編排_字上圖下*/
/* 手機統一：文字在上、圖片在下 */
@media (max-width: 767px) {

  /* 預設：所有 .row.flex-md-nowrap 在手機都用 column-reverse（反轉） */
  .row.flex-md-nowrap {
    display: flex !important;
    flex-direction: column-reverse !important;
  }

  /* 如果某一個 .row 同時有 reverse-second，則「取消反轉」，改成 column（文字在上，圖片在下） */
  .row.flex-md-nowrap.reverse-second {
    display: flex !important;
    flex-direction: column !important;
  }

  /* 確保子元素沒有其他 order 干擾；強制第一個為上、第二個為下（可保險） */
  .row.flex-md-nowrap.reverse-second > *:first-child { order: 1 !important; }
  .row.flex-md-nowrap.reverse-second > *:last-child  { order: 2 !important; }

}
