.phone{position:fixed;right:1%;top:40%;z-index:1000;}
.fb{position:fixed;right:1%;top:52%;z-index:1000;}
.line-1{position:fixed;right:1%;top:64%;z-index:1000;}

/*手機版-側欄浮動按鈕-縮小*/
@media (max-width: 430px){ 
  .phone, .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:#222; /* 背景 var(--bg)*/
--p:#fff; /* 段落文字 var(--p)*/
--card:#444; /* 卡片底(淺灰) var(--card)*/
--text:#ff7700; /* 主要文字(橘) var(--text)*/
--text2:#fff000; /* h3次要文字(黃) var(--text2)*/
--text3:#72f1f3; /* h4次要文字(亮藍綠) var(--text3)*/
--shadow: 0 5px 10px rgba(0,0,0,.25); /* 陰影 var(--shadow)*/
--gradient: linear-gradient(120deg, #ff7700 0%, #fff000 100%); /* 漸層 var(--gradient)*/
}

.topnavbar {
    background-color: var(--bg);/*頁籤底圖顏色;background-color: rgba(255,255,255,0);透明Transparent*/
    position: relative;/*relative 頁籤&banner分開不重疊;頂置 fixed;*/
    line-height: 0;
    padding: 0;/*頁籤間距*/
}

.topnavbar .container {
  text-align: justify;
  padding: 0;
}

.topnavbar .container::after {
  display: inline-block;
  width: 100%;
}

body {
    background-color: var(--bg);/*背景底色*/
    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;
} 

/*編輯欄設定*/
.fcol p{
    font-size: clamp(16px, 2vw, 18px); /*最小值 首選值 最大值 限制屬性值區間*/
    color: var(--p);/*文字顏色*/
    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: 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: var(--p);/*頁籤文字顏色*/
    padding: 10px 20px;/*頁籤文字間隔;padding:2px 16px 2px 16px;*/
    line-height: 1.3;
    transition: .3s;
}

#nav ul li a:hover  {
    color: var(--text);/*頁籤滑過文字顏色*/
}
#nav ul li.current a {
    color: var(--text);/*頁籤按下後文字顏色*/
    font-weight: 500;
}

/*頁籤按鈕上底線滑入特效-底線短*/
#nav ul li a::before {
  content:"";
  border-top:3px solid var(--text);
  width:0;
  position:absolute;
  left:0;
  right:0;
  top:0px;
  margin:0 auto;
  transition:.3s all ease;
}
#nav ul li a:hover::before {
    width: 80%;
}

#nav .subnav {
    background-color: var(--bg);/*次頁籤底色*/
    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;/*下拉選單箭頭距離*/
}

/*產品頁*/
#side h3 {
  color: var(--p);
  background-image: var(--gradient);
  border-radius: 10px 10px 0 0;
  font-size: 1.4em;
  font-weight: 700;
}
#side ul li a {
  font-size: 16px;
  color: var(--p);
  border-bottom: 1px dashed var(--card);
}
#side ul li a:hover {
  color: var(--text);
}

/*產品頁-右側產品項目連結*/
.product-list-div h2 a {
    color: #fff;/*產品項目文字連結顏色*/
    text-decoration: none;
    display: inline-block;
}
.product-list-div h2 a:hover {
    color: #fff100;/*產品項目文字連結滑入顏色*/
}
.product-list-div h2 {
  text-shadow: none;/*產品項目文字陰影隱藏*/
  line-height: 1.5;
  font-size: clamp(1.5em, 3vw, 2em);/*產品項目文字大小*/
}
body[data-type="fullpage"] .product-list-div h2 a.show-all {
    color: #fff;/*查看產品按鈕文字顏色*/
    background: var(--text);/*查看產品按鈕背景顏色*/
    text-shadow: none;/*文字陰影隱藏*/
    padding: 0 10px;
}
body[data-type="fullpage"] .product-list-div h2 a:hover.show-all {
    color: #fff100;/*查看產品按鈕文字滑入顏色*/
}

/*產品格*/
ul.product-list li a {
    color: #fff;/*產品格文字顏色*/
    background-color: var(--card);/*產品格底色*/
    border: 0px solid #ddd;/*產品格外框隱藏*/
}
ul.product-list li a:hover {
    color: #eee;/*產品格滑過文字顏色*/
}
ul.product-list div.img {
    background: #fff; /*產品格圖片底色*/
}

/*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-1 {
  background-color: #444;
  padding:3em 0;
}
#bodyinhome .fcol.fcol-2 {
  background-image: -webkit-linear-gradient(-45deg, #444 50% ,var(--bg)  50%);/*頁籤底色漸層*/
}
#bodyinhome .fcol.fcol-3, 
#bodyinhome .fcol.fcol-4 {
  padding:3em 0;
}
#bodyinhome .fcol.fcol-5 { background-color: var(--card); }

#bodyinhome .fcol.fcol-3 .container,
#bodyinhome .fcol.fcol-5 .container,
#bodyinhome .fcol.fcol-6 .container {
   width: 100%;
   padding: 0;
}/*拉寬編輯欄設定*/

/*圖文連結特效*/
.snip1585 {
  background-color: rgb(41, 46, 57);
  color: #fff;
  display: inline-block;
  font-size: 24px;
  margin: 0 auto 0;
  max-width: 350px;
  min-width: 160px;
  overflow: hidden;
  position: relative;
  text-align: center;
  width: 100%;
}

.snip1585 * {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: all 0.45s ease;
  transition: all 0.45s ease;
}

.snip1585:before,
.snip1585:after {
  background-color: rgba(46, 52, 64,  0.5);
  border-top: 50px solid rgba(46, 52, 64, 0.5);
  border-bottom: 50px solid rgba(46, 52, 64, 0.5);
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  content: '';
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  z-index: 1;
  opacity: 0;
}

.snip1585:before {
  -webkit-transform: scaleY(2);
  transform: scaleY(2);
}

.snip1585:after {
  -webkit-transform: scaleY(2);
  transform: scaleY(2);
  
}

.snip1585 img {
  vertical-align: top;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;  /*cover圖片剪裁不拉伸壓縮 ; contain不拉伸壓縮.等比縮放)*/
  opacity: 0.7;
}

.snip1585 figcaption {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  align-items: center;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.1em;
  opacity: 1;
  -webkit-transition-delay: 0s;
  transition-delay: 0s;
}

.snip1585 h3 {
  font-size: 1em;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 0;
    text-transform: uppercase;
    color: #fff;
    text-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.snip1585 h3 span {
    font-weight: 400;
    font-size: 12px;
    color: #fff;
    background-color: var(--text);
    width: fit-content;
    padding: 0 10px;
    border-radius: 1em;
    line-height: 1.6;
}

.snip1585 a {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
}

.snip1585:hover > img,
.snip1585.hover > img {
  opacity: 0.7;
}

.snip1585:hover:before,
.snip1585.hover:before,
.snip1585:hover:after,
.snip1585.hover:after {
  -webkit-transform: scale(1);
  transform: scale(1);
  opacity: 1;
}

.snip1585:hover figcaption,
.snip1585.hover figcaption {
  opacity: 1;
  -webkit-transition-delay: 0.1s;
  transition-delay: 0.1s;
}

/*首頁-營業項目*/
.card-1 {
  width: 100%;
  height: 100%;
  background-color: var(--card);
  padding: 1.5em;
}
.card-1 h3 {
  font-size: clamp(20px, 3vw, 24px);
  background-image: var(--gradient);
  padding: 3px 10px;
  margin-left: -1.2em;
  margin-bottom: 10px;
  color: var(--p);
}

.contact-1 {
   background-attachment: scroll; /*fixed固定背景; scroll捲動背景*/
   background-repeat: no-repeat;
   background-position: 50% 50%;
   background-size: cover;/*cover圖片剪裁不拉伸壓縮 ; contain不拉伸壓縮.等比縮放)*/
   background-image: -webkit-linear-gradient(-15deg, rgb(0 0 0 / 50%) 80%, var(--card) 80%),url(https://static.iyp.tw/409836/files/94aa3aba-337b-4da7-ba40-c2dd5b6228c5.jpg);
}
@media only screen and (max-width: 768px){
  .contact-1 {
   background-attachment: scroll; /*fixed固定背景; scroll捲動背景*/
   background-repeat: no-repeat;
   background-position: 50% 50%;
   background-size: cover;/*cover圖片剪裁不拉伸壓縮 ; contain不拉伸壓縮.等比縮放)*/
   background-image: -webkit-linear-gradient(-15deg, rgb(0 0 0 / 50%) 0%, rgb(0 0 0 / 50%) 100%),url(https://static.iyp.tw/409836/files/94aa3aba-337b-4da7-ba40-c2dd5b6228c5.jpg);
  }
}

/*聯絡表單*/
.signtxt { color: #fff;}
.form { color: #fff;}