.phone-1{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;}

/*手機版-側欄浮動按鈕-縮小*/
@media (max-width: 430px){ 
  .phone-1, .fb, .line-1, .ig, .map, .wechat, .shop-1, .x-twitter, .pixnet, .youtube-1, .tiktok , .thread , .messenger-link , .mail-1 { 
    transform: scale(0.8);
    right:0;
  }
}

/*根元素*/
:root{
--bg:#ffffff; /* 背景(白) var(--bg)*/
--p:#000000; /* 段落文字 var(--p)*/
--card:#f1f1f1; /* 卡片底(淺灰) var(--card)*/
--text:#1f2a44; /* 主要文字(海軍藍) var(--text)*/
--text2:#c6a75e; /* h3次要文字(軟金) var(--text2)*/
--text3:#e8dcc8; /* h4次要文字(暖米色) var(--text3)*/
--text4:#d2285a; /* 次要文字(桃紅) var(--text4)*/
--text5:#dc6e46; /* 次要文字(暗橘) var(--text4)*/
--shadow: 0 5px 10px rgba(0,0,0,.25); /* 陰影 var(--shadow)*/
--gradient: linear-gradient(120deg, var(--text) 0%, var(--text4) 100%); /* 漸層 var(--gradient)*/
}

.topnavbar {
    background-color: #fff;/*頁籤底圖顏色;background-color: rgba(255,255,255,0);透明Transparent*/
    position: relative;/*relative 頁籤&banner分開不重疊;頂置 fixed;*/
    line-height: 0;
    padding: 0;/*頁籤間距*/
      box-shadow: var(--shadow);
}

body[data-type="fullpage"] .topnavbar .container {
    text-align: center;
    padding: 0;
    width: 100%;
}

.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 h1 { text-align: center; }

/*動到表格手機不會破版*/
table {
  table-layout: fixed;
  word-wrap:break-word;
} 

hr {
  border-top: 1px solid #ddd;
  border-bottom: 0;
  margin: 2em 0;
}

/*編輯欄設定*/
#main-wrap .container {
  font-size: clamp(14px, 2vw, 16px);
  color: var(--p);
}/*編輯欄文字*/

body[data-type="fullpage"]:not(#managehome) #wrap>*:not(:last-child) {
    margin-bottom: 0px;
}

body[data-type="fullpage"] #product-header.main {
      min-height: auto;/*產品-編輯框不設定高*/
}

.fcol p{  
  line-height: 2;
  text-wrap: pretty ;  /*適用內文,段落避開孤字*/
 }

h1, h2, h3, h4, h5, h6 { 
  text-wrap: balance ;  /*適用標題和短文案,視覺效果更平衡*/
} 

.fcol h2 { 
  color: var(--text);
  font-size: clamp(26px, 3vw, 36px);/*最小值 首選值 最大值 限制屬性值區間*/
}

.fcol h3 { 
  color: var(--text2);
  font-size: clamp(24px, 3vw, 30px);/*最小值 首選值 最大值 限制屬性值區間*/
}

.fcol h4 { 
  color: var(--text3);
  font-size: clamp(20px, 3vw, 24px);/*最小值 首選值 最大值 限制屬性值區間*/
}

.fcol h5 { 
  color: var(--text4);
  font-size: clamp(18px, 3vw, 20px);/*最小值 首選值 最大值 限制屬性值區間*/
}

.fcol h6 { 
  color: var(--text5);
  font-size: clamp(16px, 3vw, 18px);/*最小值 首選值 最大值 限制屬性值區間*/
}

/*nav*/
#nav {
  display: inline-flex;
  vertical-align: bottom;
  justify-content: center;
  background-color: var(--text);
  width: 100%;
  
      /* Permalink - use to edit and share this gradient. 固定鏈接 - 用於編輯和分享此漸變： https://colorzilla.com/gradient-editor/#f0b7a1+0,752201+13,bf6e4e+15,8c3310+50,f0b7a1+57,bf6e4e+74,752201+96,bf6e4e+100 */
/*background: linear-gradient(to right,  #f0b7a1 0%,#752201 13%,#bf6e4e 15%,#8c3310 50%,#f0b7a1 57%,#bf6e4e 74%,#752201 96%,#bf6e4e 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
}

#nav ul li a {
    white-space: normal; /*自動換行*/
    font-size: 15px;/*頁籤文字大小*/
    color: var(--bg);/*頁籤文字顏色*/
    padding: 10px 15px;/*頁籤文字間隔;padding:2px 16px 2px 16px;*/
    line-height: 1.3;
    transition: .3s;
    letter-spacing: 1px;
}

#nav ul li a:hover  {
    color: var(--bg);/*頁籤滑過文字顏色*/
  background-color: var(--text2);
  transform: scale(1.1, 1.1);
  box-shadow: var(--shadow);
}
#nav ul li.current a {
    color: var(--bg);/*頁籤按下後文字顏色*/
    font-weight: 500;
    background-color: var(--text2);
  box-shadow: var(--shadow);
}

#nav .subnav {
    background-color: #fff;/*次頁籤底色*/
    max-width: 400px;/*次頁籤背景最大寬度*/
    width: max-content;/*最大內容*/
    text-align: left;
}

#nav .subnav .has-subnav span{
    max-width: 400px;/*次頁籤文字背景最大寬度*/
}

#nav li.has-subnav ul li.has-subnav>div a::after, #nav>ul>li.has-subnav>a::after {
    padding-left: 2px;/*下拉選單箭頭距離*/
}

/*產品頁*/
#side h3 {
  /*background-color: var(--card);*/
  background-image: var(--gradient);
  border-radius: 10px 10px 0 0;
  font-size: 1.4em;
  font-weight: 700;
  color: var(--bg);
}
#side ul li a {
  font-size: 16px;
  color: #333;
  border-bottom: 1px dashed #ddd;
}
#side ul li a:hover {
  color: var(--text);
}

ul.product-list li a {
    color: var(--text);/*產品格文字顏色*/
    background-color: #eee;/*產品格底色*/
}
ul.product-list li a:hover {
    color: var(--text2);/*產品格滑過文字顏色*/
}
.productdetail .detail-spec h2 {
    color: #333;
    font-size: 30px;
}/*產品內頁標題文字*/

/*產品頁產品格圖片填滿*/
ul.product-list div.img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/*分頁title文字*/
.h1title h1{
    color: var(--text2);
  text-align: center;
}

a {
    color: var(--text2);/*連結顏色*/
    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; /* 強制圖片寬度隨容器變更 */
}

/*按鈕-文字底色變化特效*/
.custom-btn {
    padding: 5px 25px;
    outline: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.btn-more1 {
   /* border-radius: 100vmax; /*弧度保持膠囊狀*/
    border: 0px solid #000;
    color: var(--text3);
    font-size: clamp(18px, 3vw, 20px);
    background-color: var(--text);
  font-weight: 400;
  letter-spacing: 3px;
}
.btn-more1:hover{
    background-color: var(--text2); /* 當滑鼠經過時按鈕表格底色變化 */
    color: #fff;/* 當滑鼠經過時按鈕表格文字變化 */
}
.btn-more1 i { transform: translate(0, 0);transition: all 0.3s ease; }
.btn-more1:hover i { transform: translate(10px, 0); }

/*首頁編輯欄*/
#bodyinhome .fcol.fcol-1 {
   width: 100%;
   background-attachment: fixed; /*fixed固定背景; scroll捲動背景*/
   background-repeat: no-repeat;
       background-position: 75% 50%;
   background-size: cover;/*cover圖片剪裁不拉伸壓縮 ; contain不拉伸壓縮.等比縮放)*/
  background-image: -webkit-linear-gradient(315deg, rgb(255 255 255 / 80%) 50%, rgb(255 255 255 / 0%) 80%), url(https://static.iyp.tw/409961/files/885a6c4a-7f96-44db-b076-5b1ee2e5e9e9.jpg);
   padding: 3em 0;
}

#bodyinhome .fcol.fcol-2 .container {
  width: 100%;
  padding: 0;
}
#bodyinhome .fcol.fcol-3 { background-color: var(--card); padding: 3em 0; }

/*產品介紹圖文特效*/
figure.snip1249 {
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  background: #f5f5f5;
  background: var(--bg);
    border: 1px solid #ddd;
      text-align: center;
}
figure.snip1249 * {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: all 0.35s ease-in-out;
  transition: all 0.35s ease-in-out;
}
figure.snip1249 img{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  vertical-align: top;
  padding: 0px;
  object-fit: cover;  /*cover圖片剪裁不拉伸壓縮 ; contain不拉伸壓縮.等比縮放)*/
}
figure.snip1249:hover img{
  opacity: 0.8;
}
figure.snip1249 h3 {
    font-size: clamp(20px, 3vw, 24px);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}
figure.snip1249 p {
  font-weight: 400;
}
figure.snip1249 figcaption {
  padding: 10px;
  color: #000000;
  position: relative;
  /*font-size: 0.9em;*/
  text-align: center;
}

figure.snip1249 .btn-more {
  display: inline-block;
    width: auto;
    border: 1px solid var(--text);
  background-color: var(--text);
    padding: 0.4em 0.6em;
    color: var(--bg);
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    text-transform: uppercase;
    margin: 0 1em 1em;
}

figure.snip1249:hover .btn-more {
      border: 1px solid var(--text2);
  background-color: var(--text2);
  color: var(--bg);
}
figure.snip1249 a {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
}

/*優勢*/
.feature-1 { 
  border: 2px dashed var(--text2);
    border-radius: 1em;
    width: 95%;
    margin: 0 auto 1em;
    background-color: #fff;
 }

/*服務地區*/
.area-1 ul {
  font-size: clamp(16px, 2vw,18px);
  line-height: 1.5;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 15px;
  margin-top: 1em;
}
.area-1 li {
  background-image: var(--gradient); 
  padding: 0 15px;
  border-radius: 100vmax;
  color: #fff;
}

/*footer*/
#footer {
color: var(--text);
    background-color: var(--text3);
    width: 100%;
    letter-spacing: 1px;
}

#footer a { color: var(--text); }
#footer a:hover { color: var(--text2); }

#foot-nav ul li a {
    display: block;
    color: #fff;
    font-size: 14px;
    margin: 5px;
    padding: 3px 10px;
    border-radius: 100vmax; /*弧度保持膠囊狀*/
  border:1px solid var(--text2);
  background-color:var(--text2);
}
#foot-nav ul li a:hover { color: var(--text); background-color:var(--vard);   border:1px solid var(--text2); }

#foot-nav {
  clear: both;
  padding: 2em 0 1em;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: center;
}

#foot-nav ul li.current a { color: #666; }

.contact-row h5 { color: var(--p); }
#contact-info ul li span { color: var(--p); }

#foot-nav {
  overflow: hidden;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/*流程*/
.list-1 {
  display: grid;
  grid-template-columns: repeat(6, 150px);
  gap: 10px;
      margin: 0 auto;
}
.list-1 .item-icon {
  background-image: var(--gradient);
  clip-path: polygon(0 0, 90% 0%, 100% 50%, 90% 100%, 0 100%, 0% 50%);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--bg);
  font-size: clamp(16px, 3vw, 18px);
  padding: 10px;
}
@media only screen and (max-width: 768px){
  .list-1 { grid-template-columns: repeat(3, 150px); }
} 
@media only screen and (max-width: 430px){
  .list-1 { grid-template-columns: 200px; }
} 