.phone-1{position:fixed;right:1%;top:30%;z-index:1000;}
.fb{position:fixed;right:1%;top:42%;z-index:1000;}
.line-1{position:fixed;right:1%;top:54%;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:#016191; /* 主要文字(藍) var(--text)*/
--text2:#0197ca; /* h3次要文字(水藍) var(--text2)*/
--text3:#fff000; /* h4次要文字(黃) var(--text3)*/
--text4:#adcace; /* 次要文字(淺灰藍) var(--text4)*/
--shadow: 0 5px 10px rgba(0,0,0,.25); /* 陰影 var(--shadow)*/
--gradient: linear-gradient(120deg, #6f86d6 0%, #48c6ef 100%); /* 漸層 var(--gradient)*/
}

.topnavbar {
    background-color: var(--text2);/*頁籤底圖顏色;background-color: rgba(255,255,255,0);透明Transparent*/
    position: relative;/*relative 頁籤&banner分開不重疊;頂置 fixed;*/
    line-height: 0;
    padding: 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 { display: block; }
#logo h1 { text-align: center; }

/*動到表格手機不會破版*/
table {
  table-layout: fixed;
  word-wrap:break-word;
} 

hr {
  border-top: 1px solid #ddd;
  border-bottom: 0;
  margin: 1em 0;
}

/*編輯欄設定*/
#main-wrap .container {
  font-size: clamp(16px, 2vw, 18px);
  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);/*最小值 首選值 最大值 限制屬性值區間*/
  line-height:2;
}

.fcol h3 { 
  color: var(--text2);
  font-size: clamp(24px, 3vw, 30px);/*最小值 首選值 最大值 限制屬性值區間*/
}

.fcol h4 { 
  color: var(--text3);
  font-size: clamp(20px, 3vw, 24px);/*最小值 首選值 最大值 限制屬性值區間*/
}

/*nav*/
#nav {
    vertical-align: bottom;
}
#nav ul li a {
    white-space: normal; /*自動換行*/
    font-size: 1.0rem;/*頁籤文字大小*/
    color: #fff;/*頁籤文字顏色*/
    padding: 10px 20px;/*頁籤文字間隔;padding:2px 16px 2px 16px;*/
    line-height: 1.3;
    transition: .3s;
}

#nav ul li a:hover  {
    color: var(--text4);/*頁籤滑過文字顏色*/
}
#nav ul li.current a {
    color: var(--text4);/*頁籤按下後文字顏色*/
    font-weight: 500;
}

#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;
}/*產品內頁標題文字*/


/*分頁title文字*/
.h1title h1{
    color: var(--text);
}

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; /* 強制圖片寬度隨容器變更 */
}


#bodyinhome .fcol.fcol-3 .container {
    width: 100%;
    padding: 3em 1em;
  background-color: var(--text2);
}
#bodyinhome .fcol.fcol-4 {
    width: 100%;
    padding: 3em 1em;
  background-color: var(--text);
}

/*優勢*/
.s-item  { text-align: justify;}
.s-item h3 { 
  font-size: clamp(20px, 2vw, 24px);
  font-family: 'Noto Serif TC', serif;
  font-weight: 700;
  text-align: left;
}
.s-item h3 span {
  font-style: italic;
  color: #fff000;
  background-image: var(--gradient);
  clip-path: polygon(10% 0, 100% 20%, 60% 100%, 0 80%);
  padding: 0px 10px;
}
.s-item>div {
  background-image: -webkit-linear-gradient(-45deg, #ffffff 70%, #fff8 100%);
  border-radius: 0 0 2em 0;
  padding: 2em;
}


/*產品介紹圖文特效*/
figure.snip1249 {
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  background: #f5f5f5;
  /*box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);*/
}
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: 10px;
  object-fit: cover;  /*cover圖片剪裁不拉伸壓縮 ; contain不拉伸壓縮.等比縮放)*/
}
figure.snip1249:hover img{
  opacity: 0.8;
}
figure.snip1249 h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  color:var(--text2);
}
figure.snip1249 h4 {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
  text-transform: uppercase;
  text-align: center;
  color:var(--text);
}
figure.snip1249 p {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
  text-align: left;
  line-height: 1.5;
}
figure.snip1249 figcaption {
  padding: 5px 20px 10px 20px;
  position: relative;
}

figure.snip1249 .btn-more {
  border: 1px solid var(--text);
    padding: 5px;
    color: var(--text);
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    text-transform: uppercase;
    margin: 15px;
    text-align: center;
}

figure.snip1249:hover .btn-more {
  background-color: var(--text);
  color: #ffffff;
}
figure.snip1249 a {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
}
figure.snip1249 ul { 
  list-style-type: square;
  margin-left: 1.5rem; 
  font-size: 14px; 
  color: #080808; 
  line-height: 1.5; 
}


/*footer*/
#footer {
  color:#fff;
  width: 100%;
  background-color: var(--text2);
  letter-spacing: 1px;
}
#footer a { color: #fff; }
#footer a:hover { color: #fff; }

#foot-nav ul li a {
    display: block;
    color: #fff;
    font-size: 14px;
    margin-right: 15px;
    padding: 3px 10px;
    background-color: var(--text);
    border-radius: 100vmax; /*弧度保持膠囊狀*/
}
#foot-nav ul li a:hover { background-color: var(--text4); color: #000;}

#foot-nav {
  clear: both;
  padding: 2em 0 1em;
  border-bottom: 0px solid #444;
  display: flex;
  justify-content: center;
}
.contact-row h5 {
    color: #fff;
}
#contact-info ul li span {
    color: #fff;
}


/*Q&A手風琴*/
#accordion li div {
 display:none;
}

#accordion li>h3{
   display:block;
   border:1px solid #dddddd;
   border-radius:3px; 
   background: #eeeeee;
   margin-top: 7px;
   color:#000;
   font-size: 18px;
   font-weight: 700;
   padding: 10px;
}
#accordion li>div{
   border:1px solid #dddddd;
   border-radius:3px; 
   margin-top: 7px;
   padding: 10px;
   background: rgb(255,255,255,0.9);
   color:#222;
}
#accordion li>h3:after {
    position: relative;
   font-family: "Font Awesome 7 Free";
   content: "\f107";
    font-size: 20px;
    float: right;
    transition: transform 0.3s ease-in-out;
}

/*內文效果(有偽元素裝飾)*/
.t-1 h2 { 
  font-size: clamp(26px,3vw,30px);
  color: var(--text);
  line-height: 1.5;
}
.t-1 h3 {
  color: #000;
  font-size: clamp(22px, 3vw, 26px); 
  line-height:1.5;
}
.t-1 h3::before { 
    content: '';
    display: block;
    position: relative;
    height: 40px;
    width: 40px;
    background-color: var(--text4);
  clip-path: polygon(10% 0, 100% 20%, 60% 100%, 0 80%);
    /*border-radius: 100%;*/
    margin-left: -10px;
    margin-bottom: -30px;
    z-index: -1;
}

.t-1 h4 {
  color: var(--text2);
  font-size: clamp(20px, 2vw, 26px); 
  line-height:1.5;
}

.t-1 ul li::marker { color: var(--text2); }
.t-1 ul { list-style-type: square; margin-left: 1.5rem; font-size: 16px; color: #000; line-height: 1.5;}

.t-1 ol li::marker { color: var(--text4); }
.t-1 ol { list-style-type: decimal; margin-left: 1.5rem; font-size: 18px;  color: #000; line-height: 1.5;}
