.phone{position:fixed;right:1%;top:40%;z-index:1000;}
.line-1{position:fixed;right:1%;top:52%;z-index:1000;}
.map{position:fixed;right:1%;top:64%;z-index:1000}


/*div 背景圖自動等比放大"cover"*/
#main-wrap {
  width:100%;
   background-attachment: scroll;
   background-repeat: no-repeat;
  background-position: center bottom;
   background-image: -webkit-linear-gradient(left, rgb(255 255 255 / 20%) 0%, rgb(255 255 255 / 80%) 100%),url(https://static.iyp.tw/409941/files/7847c971-650c-403f-b70e-4dd3050e4a4a.jpg);
   background-color: #fff;
}

/*cod-陰影框*/
.frame-1 {
  width:100%;
  margin-right: 6px; margin-bottom: 10px;
  background-color: #fff;
  padding:10px;
  border-radius: 15px; box-shadow: 3px 3px 18px 0px rgba(180, 180, 180, 0.30); 
}


/*按鈕-文字底色變化特效*/
.custom-btn {
    padding: 5px 25px;
    outline: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.btn-more1 {
    border-radius: 30px;
    border: 0px solid #000;
    color: #fff;
    font-size: clamp(14px, 2vw, 16px);
    background-color: #666;
     font-weight: 500;
}
.btn-more1:hover{
    background-color: #444; /* 當滑鼠經過時按鈕表格底色變化 */
    color: #fff;/* 當滑鼠經過時按鈕表格文字變化 */
}

/*手機版-側欄浮動按鈕-縮小*/
@media (max-width: 430px){ 
  .phone, .fb, .line-1, .ig, .map, .wechat, .shop-1, .x-twitter, .pixnet, .youtube-1, .tiktok , .thread { 
    transform: scale(0.8);
    right:0;
  }
}



/*table語法 -讓手機不會破版*/
table {
table-layout: fixed;
word-wrap:break-word;
}


.topnavbar {
 /* background-color: Transparent;*/
    background-color: #5f5f5f;/*頁籤底圖顏色;background-color: rgba(255,255,255,0);透明Transparent*/
    position: relative;/*relative 頁籤&banner分開不重疊;頂置 fixed;*/
    line-height: 0;
    padding-bottom: 0;/*頁籤間距*/
}

.topnavbar .container {
   text-align: center;
  padding: 0;
}

.topnavbar .container::after {
  display: inline-block;
  width: 100%;
}

body {
    background-color: #fff;/*背景底色*/
    font-family: 'Noto Sans TC', sans-serif;/*套用google font字型Noto Sans TC黑體*/
}

/*logo置頂*/

#logo h1 { 
  text-align: center; 
  height: 70px;
}

#logo {
  display: block;
}

/*動到表格手機不會破版*/
table {
  table-layout: fixed;
  word-wrap:break-word;
} 

/*編輯欄設定*/
.fcol p{
    font-size: clamp(16px, 2vw, 18px); /*最小值 首選值 最大值 限制屬性值區間*/
    color: #000000;/*文字顏色*/
    line-height: 2;
}

body[data-type="fullpage"]:not(#managehome) #wrap>*:not(:last-child) {
    margin-bottom: 0px;
}

body[data-type="fullpage"] #product-header.main {
      min-height: auto;/*產品-編輯框不設定高*/
}

.fcol h2 { 
  color: #fff;
  font-size: clamp(1.5rem, 2vw, 2rem); /*最小值 首選值 最大值 限制屬性值區間*/
  line-height:2;

}

.fcol2 { 
 display: flex; 
  justify-content: center; 
  padding: 30px; 
  width: 100%;
}

.fcol h4 { 
  color: #fff;
  font-size: clamp(1.5rem, 2vw, 2rem); /*最小值 首選值 最大值 限制屬性值區間*/
  line-height:2;
    border-left: 5px solid #f2e98c;
   padding: 5px 20px;
   background-image: linear-gradient(120deg, #947133 0%, #c4a846 100%);
  display: inline-block;  
  text-shadow: 2px 2px 2px #000;
}

.fcol h3 { 
    color: #958a74;
  font-size: clamp(0.9rem, 2vw, 1.3rem); /*最小值 首選值 最大值 限制屬性值區間*/
  line-height:2;  
}

/*nav*/
#nav ul li a {
    white-space: normal; /*自動換行*/
    font-size: 1.0rem;/*頁籤文字大小*/
    color: #fff;/*頁籤文字顏色*/
    padding: 10px 10px;/*頁籤文字間隔;padding:2px 16px 2px 16px;*/
    line-height: 1.3;
    transition: .3s;
}

#nav ul li a:hover  {
    color: #bcbcbc;/*頁籤滑過文字顏色*/
}
#nav ul li.current a {
    color: #bcbcbc;/*頁籤按下後文字顏色*/
    font-weight: 500;
}

/*頁籤按鈕底線滑入特效-底線短*/
#nav ul li a::before {
  content:"";
  border-bottom:3px solid #bcbcbc;
  width:0;
  position:absolute;
  left:0;
  right:0;
  top:0px;
  margin:0 auto;
  transition:.3s all ease;
}
#nav ul li a:hover::before {
    width: 50%;
}

#nav .subnav {
    background-color: #fff;/*次頁籤底色*/
    max-width: 400px;/*次頁籤背景最大寬度*/
    width: max-content;/*最大內容*/
    text-align: left;
}

#nav li.has-subnav ul li.has-subnav>div a::after, #nav>ul>li.has-subnav>a::after {
    padding-left: 2px;/*下拉選單箭頭距離*/
}

ul.product-list li a {
    color: #033846;/*產品格文字顏色*/
    background-color: #e6e7e9;/*產品格底色*/
}

ul.product-list li a:hover {
    color: #6e685c;/*產品格滑過文字顏色*/
}
.productdetail .detail-spec h2 p{
    color: #000;
    font-size: 30px;
}/*產品內頁標題文字*/

/*產品頁產品格圖片填滿*/
ul.product-list div.img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*title文字顏色*/
.h1title h1{
    color: #333333;
}

a {
    color: #000;/*連結顏色*/
    text-decoration: none;
}

a:hover  {
    color: #c69c48;/*連結顏色*/
    text-decoration: none;
}

.swiper-container {
  height: auto !important; /* 將容器預設的高拿掉 */
}

.swiper-wrapper, .swiper-slide {
  height: 0 !important;
  padding-bottom: calc(750 / 1920 * 100%); /* 自定響應式圖片高度 */
}

.swiper-slide {
  width: 100% !important; /* 強制圖片寬度隨容器變更 */
}

/*各層編輯欄設定*/
#bodyinhome .fcol.fcol-1, #bodyinhome .fcol.fcol-2, #bodyinhome .fcol.fcol-4 {
   background-color: #e6e7e9;
}


#bodyinhome .fcol.fcol-2 .container {
   width: 100%;   
   padding: 3em 2em;
}

#bodyinhome .fcol.fcol-3 {
/* Permalink - use to edit and share this gradient. 固定鏈接 - 用於編輯和分享此漸變： https://colorzilla.com/gradient-editor/#e6e7e9+23,e6e7e9+23,fffcfc+23,fffcfc+50,ffffff+64,ffffff+78,ffffff+78,ffffff+84,e6e7e9+84 */
background: linear-gradient(135deg,  #e6e7e9 23%,#e6e7e9 23%,#fffcfc 23%,#fffcfc 50%,#ffffff 64%,#ffffff 78%,#ffffff 78%,#ffffff 84%,#e6e7e9 84%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */  
}


#bodyinhome .fcol.fcol-5 {  display:none;}


#bodyinhome .fcol.fcol-6 { 
   width: 100%;
   background-attachment: scroll;
   background-repeat: no-repeat;
   background-position:50% 50%;
   background-size: cover;
   background-image: -webkit-linear-gradient(left, rgb(255 255 255 / 20%) 0%, rgb(255 255 255 / 80%) 100%),url(https://static.iyp.tw/409941/files/a9a55c1d-9a75-421b-8e77-032e86abf9a1.jpg);
   background-color: #e8c8a2;
  padding: 3rem 0;
}


/*首頁-about*/
@media only screen and (min-width: 768px){
  .t-box {
    z-index: 2;
    right: -4em;
  }
  .t-bg { 
    background-color: rgb(255 255 255 / 70%); 
    padding: 3em 4em; 
  }
}
@media only screen and (max-width: 767px){ .t-bg { background-color: #fff0; padding: 2em 3em; }}

.img-about {
  position: relative; /* 設置相對定位，方便控制偽元素位置 */
}
.img-about img {
  position: relative;
  z-index:1;
  display: block;
   aspect-ratio: 8 / 9; 
  object-fit: cover;
}
.img-about::after {
  content: ""; /* 偽元素的內容設為空 */
  position: absolute; /* 絕對定位 */
  left: -30%;
  bottom: 5%;
  width: 100%;
  height: 85%; 
  border: 10px #ddd solid;
}


/*標題裝飾線*/
.border-1 {position: relative; border-top: 1px solid #cccccc; width: 100%; margin: 10px auto;}
.border-1::after {
    content: "";
    position: absolute;
    top: -5px;
    left: -10px;
    width: 10px;
    height: 10px;
    background-color: #ffa800;
    z-index: 1;
}

.border-2 {position: relative; border-top: 1px dotted #ddd; width: 100%; margin: 10px auto;}
.border-2::before {
    content: "";
    position: absolute;
    top: -4px;
    right: 0px;
    width: 7px;
    height: 7px;
    background-color: #fc4138;
    z-index: 1;    
  border-radius: 100%;
}


/*owl 輪播圖語法*/
.owl-carousel.owl-theme {
  padding: 0 20px 35px;/*內距:上 左右 下;*/
}
.owl-carousel.owl-theme .owl-nav {
  position: absolute;
  margin: 0;
  top:35%;
  left: 0;
  right: 0;
  transform: translateY(0%);
}
.owl-carousel.owl-theme .owl-dots {
  position: relative;
  left: 0;
  right: 0;
  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 .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: 3em; /*箭頭大小*/
}

.editmode .owl-carousel.owl-loaded {
  display: flex;
  flex-wrap: wrap;
}
.editmode .owl-carousel > div {
  flex: 0 0 25%;
  max-width: 25%;
}

.owl-carousel .word {
   border: 1px solid #ddd;
  border-radius: 10px;
  padding:10px;
  box-shadow: 0 6px 5px rgba(44,44,44,0.25);
   margin: 6px 5px 10px 2px;
  height: 100%;
  background-color: #fff;
}

.owl-carousel .row-no-gutters {
    margin-right: 5px;
    margin-left: 2px;
}

/*footer*/
#footer {

    background-color: #5f5f5f;
}

#foot-nav ul { text-align: center; display: flex; justify-content: center;}

#foot-nav ul li a {
    display: block;
    color: #e6e6e8;
    font-size: 14px;
    margin-right: 15px;
    padding: 3px 10px;
    background-color: #848983;
   border-radius: 5px;
}

#foot-nav ul li a:hover { background-color: #033846; color: #e6e6e8;}


.step2 {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  padding: 20px 15px;
  text-align: center;
  flex: 1;
  margin: 10px;
  min-width: 140px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/*流程圖*/
.flow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.step {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  padding: 20px 15px;
  text-align: center;
  flex: 1;
  margin: 10px;
  min-width: 140px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.step .icon {
  font-size: 40px;
  color: #bf9a41;
  margin-bottom: 10px;
}

.step .number {
  width: 28px;
  height: 28px;
  line-height: 28px;
  border-radius: 50%;
  background: #bf9a41;
  color: #fff;
  font-size: 13px;
  margin: 0 auto 8px;
}

.step .text {
  color: #333;
}

/* 箭頭 */
.step:not(:last-child)::after {
   content: "\f061"; /* 右箭頭 */
  font-family: "Font Awesome 6 Free";
  font-weight: 900; /* 很重要！solid icon 一定要加 */
  position: absolute;
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
  color: #bf9a41;
  font-size: 18px;
}

/* 手機版 */
@media (max-width: 768px) {
  .flow {
    flex-direction: column;
    align-items: flex-start;
  }

  .step {
    width: 100%;
  }

  .step:not(:last-child)::after {
    content: "\f063";
    font-weight: 900; /* 很重要！solid icon 一定要加 */
    right: 50%;
    top: 100%;
    transform: translateX(50%);
    margin-top: 0px;
  }
}

@import url(https://fonts.googleapis.com/css?family=Raleway:400,800);
figure.snip1104 {
  font-family: 'Raleway', Arial, sans-serif;
  position: relative;
  overflow: hidden;
  margin: 0 auto 0;
  min-width: 220px;
  max-width: 310px;
  max-height: 220px;
  width: 100%;
  background: #000000;
  color: #ffffff;
  text-align: center;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
}

figure.snip1104 * {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out;
}

figure.snip1104 img {
  max-width: 100%;
  position: relative;
  opacity: 0.4;
}

figure.snip1104 figcaption {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

figure.snip1104 h2 {
  position: absolute;
  left: 40px;
  right: 40px;
  display: inline-block;
  background: #c69c48;
  -webkit-transform: skew(-10deg) rotate(-10deg) translate(0, -50%);
  transform: skew(-10deg) rotate(-10deg) translate(0, -50%);
  padding: 8px 3px;
  margin: 0;
  top: 50%;
  text-transform: uppercase;
  font-weight: 400;
}

figure.snip1104 img {
aspect-ratio: 4 / 3;
object-fit: cover; 
}

figure.snip1104 h2 span {
  font-weight: 800;
}

figure.snip1104:before {
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  content: '';
  background: #ffffff;
  position: absolute;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  -webkit-transform: rotate(110deg) translateY(-50%);
  transform: rotate(110deg) translateY(-50%);
}

figure.snip1104 a {
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  position: absolute;
  z-index: 1;
}

figure.snip1104.blue {
  background: #123851;
}

figure.snip1104.blue h2 {
  background: #0a212f;
}

figure.snip1104.red {
  background: #581a14;
}

figure.snip1104.red h2 {
  background: #36100c;
}

figure.snip1104.yellow {
  background: #7f5006;
}

figure.snip1104.yellow h2 {
  background: #583804;
}

figure.snip1104:hover img,
figure.snip1104.hover img {
  opacity: 1;
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}

figure.snip1104:hover h2,
figure.snip1104.hover h2 {
  -webkit-transform: skew(-10deg) rotate(-10deg) translate(-150%, -50%);
  transform: skew(-10deg) rotate(-10deg) translate(-150%, -50%);
}

figure.snip1104:hover:before,
figure.snip1104.hover:before {
  -webkit-transform: rotate(110deg) translateY(-150%);
  transform: rotate(110deg) translateY(-150%);
}

/*產品-區塊項目li效果—5格*/
.pro_item ul li {
    padding: 5px;
    margin: 5px;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    flex-direction: column;
    width: calc(50% - 10px);
    border-radius: 5px;
    line-height: 1.5;
    border: 1px solid #dddddd;
    background-color: #fff;
  font-size: 15px;
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 500;
  text-align: center;
}
.pro_item a { color:#666 ;font-size: 15px;}

.pro_item a:hover { 
  opacity: 0.8;   
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
@media only screen and (max-width: 991px){
 .pro_item ul li { width: calc(33% - 10px); font-size: 14px;}
  .pro_item a { font-size: 14px;}
}
@media only screen and (max-width: 768px){
 .pro_item ul li { width: calc(50% - 10px); }
}
@media only screen and (max-width: 567px){
 .pro_item ul li { width: calc(100% - 10px); }
}