.phone-1{position:fixed;right:1%;top:30%;z-index:1000;}
.fb{position:fixed;right:1%;top:40%;z-index:1000;}
.line-1{position:fixed;right:1%;top:50%;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.7);
    right:0;
  }
}

/*根元素*/
:root{
--bg:#ffffff; /* 背景(白) var(--bg)*/
--p:#000000; /* 段落文字 var(--p)*/
--card:#f1f1f1; /* 卡片底(淺灰) var(--card)*/
--text:#223382; /* 主要文字(藍) var(--text)*/
--text2:#ffb400; /* h3次要文字(黃) var(--text2)*/
--text3:#7c9ae9; /* h4次要文字(淺藍) var(--text3)*/
--text4:#939597; /* 次要文字(灰) var(--text4)*/
--text5:#e2e8eb; /* 次要文字(灰淺藍) var(--text5)*/
--shadow: 0 5px 10px rgba(0,0,0,.25); /* 陰影 var(--shadow)*/
--gradient: linear-gradient(120deg, var(--text) 0%, var(--text3) 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;/*頁籤間距*/
}

.topnavbar .container {
  text-align: justify;
  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 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(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);/*最小值 首選值 最大值 限制屬性值區間*/
}

.fcol h3 { 
  color: var(--text2);
  font-size: clamp(24px, 3vw, 30px);/*最小值 首選值 最大值 限制屬性值區間*/
}

.fcol h4 { 
  color: var(--text3);
  font-size: clamp(20px, 3vw, 24px);/*最小值 首選值 最大值 限制屬性值區間*/
}

#t-slogan {
  color: #2f59c3;
  text-transform: uppercase;
  line-height: 1.5;
}

/*頁籤底拉寬*/
#header .topnavbar .container {
  padding-left: clamp(30px, 4vw, 50px);
 /* padding-right: clamp(30px, 4vw, 50px);*/
  width: 100%;
}
/*nav*/
#nav {
   /*vertical-align: bottom;*/
  background-color: var(--text5);
    position: absolute;
    top: 70px;
    right: 0;
    padding-right: 10vw;
}
#nav ul li a {
    white-space: normal; /*自動換行*/
    font-size: 1.0rem;/*頁籤文字大小*/
    color: #000;/*頁籤文字顏色*/
    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 .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: 1em;
    font-weight: 400;
    letter-spacing: 5px;
    text-align: center;
  color: var(--bg);
}
#side ul li a {
  font-size: 14px;
  letter-spacing: 1px;
  color: #666;
  border-bottom: 1px dashed #ddd;
}
#side ul li a:hover {
  color: var(--text);
}

.product-list-div h2 a {
    color: #333;
    font-size: clamp(20px, 3vw, 28px);
}

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: clamp(20px, 3vw, 28px);
}/*產品內頁標題文字*/


/*分頁title文字*/
.h1title h1{
    color: var(--text);
}

a {
    color: var(--text);/*連結顏色*/
    text-decoration: none;
}

.swiper-container {
  height: auto !important; /* 將容器預設的高拿掉 */
}
.swiper-wrapper, .swiper-slide {
  height: 0 !important;
}
.swiper-slide {
  width: 100% !important; /* 強制圖片寬度隨容器變更 */
}
/* 首頁 */
#bodyinhome .swiper-wrapper, #bodyinhome .swiper-slide {
  padding-bottom: calc(900 / 1920 * 100%); /* 首頁 banner 大小 */
}
/* 內頁 */
#bodyinpage .swiper-wrapper, #bodyinpage .swiper-slide {
  padding-bottom: calc(600 / 1920 * 100%); /* 內頁 banner 大小 */
}


#bodyinhome .fcol.fcol-2 {
  background-image: -webkit-linear-gradient(280deg, #ffffff 60%, var(--card) 60.1%);
}
#bodyinhome .fcol.fcol-3 {
  background-image: -webkit-linear-gradient(100deg, #ffffff 50%, var(--card) 50.1%);
  min-height: 50vh;
  display: flex;
  align-items: center;
}


#bodyinhome .fcol.fcol-5 .container {
  max-width:100%;
  width:85%;
}

@media only screen and (min-width: 768px){ 
  #bodyinhome .fcol.fcol-5 .container { width: 90%;}/*拉寬編輯欄設定*/
}

#bodyinhome .fcol.fcol-6 {
    width: 100%;
   /* background-attachment: fixed;*/
    background-repeat: no-repeat;
    background-position: 50% 75%;
    background-image: url(https://static.iyp.tw/409920/files/9fb94866-f39c-4024-a1ad-47991b73d63b.jpg);
  background-size: cover;
    background-color: #666;
  display: flex;
  align-items: center;
  margin: 3em 0;
}
#bodyinhome .fcol.fcol-6 .container {
  width: 100%;
  padding: 0; 
}

/*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 .owl-item img {
  object-fit: cover;  /*cover圖片剪裁不拉伸壓縮 ; contain不拉伸壓縮.等比縮放)*/
  display: block;
  width: 100%;
  height: auto; 
  aspect-ratio: 4 / 3;  /*比例*/
  border: 2px solid #fff;
  box-shadow: 0 6px 5px rgba(44,44,44,0.25);
}
.owl-carousel .row-no-gutters {
    margin-right: 5px;
    margin-left: 2px;
}

/*按鈕-文字底色變化特效*/
.custom-btn {
    padding: 3px 10px;
    outline: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.btn-more1 {
  border-radius: 0;
  border: 1px solid #ccc;
  color: #666;
  font-size: clamp(14px, 3vw, 16px);
  background-color: #fff;
  font-weight: 500;
}
.btn-more1:hover{
    background-color: var(--text); /* 當滑鼠經過時按鈕表格底色變化 */
    color: #fff;/* 當滑鼠經過時按鈕表格文字變化 */
}


/*footer*/
#footer {
    color: var(--p);
    background-color: var(--bg);
    width: 100%;
    letter-spacing: 1px;
}

#footer a { color: #666; }
#footer a:hover { color: var(--text); }

#foot-nav ul li a {
    display: block;
    color: #666;
    font-size: 14px;
    margin-right: 15px;
    padding: 3px 10px;
    border-radius: 100vmax; /*弧度保持膠囊狀*/
}
#foot-nav ul li a:hover { color: var(--text);}

#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); }

/*footer-社群icon按鈕*/
.f-icon ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(8px, 2vw, 16px);
}
.f-icon ul li i {
  font-size: 24px;
}

.f-icon-btn {
  width: 35px;
  height: 35px; 
  background-color: #fff;
  border-radius: 100%;
  margin: 0 auto;
  border-width: 0;
  transition: all 0.3s ease;
  line-height: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}


/*服務項目-區塊項目li效果—3格*/
.pro_item ul {
  display: flex;
  flex-wrap: wrap;
  gap:10px;
  margin-top: 1em;
}
.pro_item ul li {
    padding: 5px;
    width: calc(33% - 10px);
    line-height: 1.5;
    border: 1px solid #dddddd;
  border-radius: 5px;
    color: #666;
  background-color: #fff;
  font-size: clamp(14px, 3vw, 16px);
  font-weight: 500;
  text-align: center;
}

.pro_item ul li a {
  color: #666;
  width: 100%;
    outline: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}
.pro_item ul li a:hover { color: var(--text3);}
.pro_item ul li:hover  {  background-color: var(--text5);}

@media only screen and (max-width: 991px){
 .pro_item ul li { width: calc(50% - 10px); }
}
@media only screen and (max-width: 430px){
 .pro_item ul li { width: calc(100% - 10px); }
}
