.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;}
.messenger-link{position:fixed;right:1%;top:76%;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 { 
    transform: scale(0.8);
    right:0;
  }
}

.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;
} 

/*編輯欄設定*/
.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: #ff5a00;
  font-size: clamp(30px, 3vw, 40px);/*最小值 首選值 最大值 限制屬性值區間*/
 /* line-height:2;*/
}

.fcol h3 { 
  color: #282864;
  font-size: clamp(24px, 3vw, 30px);/*最小值 首選值 最大值 限制屬性值區間*/
  /*line-height:2;*/
}
.fcol h4 { 
  font-size: clamp(16px, 2vw, 18px);/*最小值 首選值 最大值 限制屬性值區間*/
}

/*nav*/
#nav {
    vertical-align: bottom;
}
#nav ul li a {
    white-space: normal; /*自動換行*/
    font-size: 1.0rem;/*頁籤文字大小*/
    color: #333333;/*頁籤文字顏色*/
    padding: 10px 15px;/*頁籤文字間隔;padding:2px 16px 2px 16px;*/
    line-height: 1.3;
    transition: .3s;
      border-top: 3px solid #ff5a0000;
}
#nav ul li a:hover::after,
#nav ul li.current a::after {
  content: "";
  display: inline-block;
  position: absolute;
  top: 0;
  left: 44%;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid #ff5a00; /* 更大的底邊框寬度 */
}
#nav ul li a:hover  {
    color: #ff5a00;/*頁籤滑過文字顏色*/
    border-top: 3px solid #ff5a00;
}
#nav ul li.current a {
    color: #ff5a00;/*頁籤按下後文字顏色*/
    font-weight: 500;
  border-top: 3px solid #ff5a00;
}

#nav li.has-subnav ul li a:hover::after,
#nav li.current.has-subnav ul li a::after {  display: none; }

#nav li.has-subnav ul li a {
   /*color: #fff;/*次頁籤文字顏色*/   
  border-top: 3px solid #ff5a0000;
}

#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: #2276d2;/*產品格文字顏色*/
    background-color: #eee;/*產品格底色*/
}
ul.product-list li a:hover {
    color: #2276d2;/*產品格滑過文字顏色*/
}
.productdetail .detail-spec h2 p{
    color: #333;
    font-size: 30px;
}/*產品內頁標題文字*/


/*title文字顏色*/
.h1title h1{
    color: #333333;
}

a {
    color: #00b7ee;/*連結顏色*/
    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(750 / 1920 * 100%); /* 首頁 banner 大小 */
}
/* 內頁 */
#bodyinpage .swiper-wrapper, #bodyinpage .swiper-slide {
  padding-bottom: calc(500 / 1920 * 100%); /* 內頁 banner 大小 */
}



#bodyinhome .fcol.fcol-1 { background-color: #eee; }

#bodyinhome .fcol.fcol-2 {
  background-image: -webkit-linear-gradient(-45deg, #f5f5f5 40%, #fff 40%);
  padding: 3em 0;
}

#bodyinhome .fcol.fcol-3 {
  background-color: #eee;
  padding: 3em 0;
}

@media only screen and (min-width: 768px){
  #bodyinhome .fcol.fcol-3 .container { width: 90%; }
}

#bodyinhome .fcol.fcol-4 { padding: 3em 0; }

#bodyinhome .fcol.fcol-5 {
  width: 100%;
   background-attachment: scroll; /*fixed固定背景; scroll捲動背景*/
   background-repeat: no-repeat;
   background-position:50% 20%;
   background-size: cover;/*cover圖片剪裁不拉伸壓縮 ; contain不拉伸壓縮.等比縮放)*/
  background-image: -webkit-linear-gradient(top, rgb(0 0 0 / 50%) 70%, rgb(0 0 0 / 100%) 70%), url(https://static.iyp.tw/409783/files/2311e862-cd0c-40e4-b26f-a544c3e01b7c.jpg);
  padding: 3em 0;
}
@media only screen and (min-width: 768px){
  #bodyinhome .fcol.fcol-5 .container { width: 85%; }
}

#bodyinhome .fcol.fcol-6 .container { width: 100%; padding: 0; }

/*服務-圖文特效*/
.snip1518 {
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  min-width: 150px;
  max-width: 400px;
  width: 100%;
  background-color: #ffffff;
  color: #2B2B2B;
  text-align: center;
  font-size: 16px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
}

.snip1518 * {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
    -webkit-transition: all 0.4s ease;
  transition: all 0.4s ease;
}

.snip1518 img {
  width: 100%;
  height: auto;
  vertical-align: top;
  position: relative;
  aspect-ratio: 4 / 3;
  background-color: #fff;
  object-fit: cover;
  z-index:1;
}

.snip1518 figcaption {
  padding: 0;
  background-color: #ffffff;
}

.snip1518 h3 {
  text-transform: uppercase;
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 500;
  color: #224466;
  margin: 0 ;
  background-color: #ffffff;
  padding: 10px;
  z-index:2; 
  position: relative;
}

.snip1518 a {
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  position: absolute;
  z-index: 3;
}

.snip1518:hover h3 {
  background-color: #224466;
  color:#fff;
}

.snip1518:hover img {
  -webkit-transform:scale(1.1, 1.1);
  transform:scale(1.1, 1.1);
}

/*四大承諾*/
.promise-1 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2em 1em;
}
.promise-1 .box {
  background-color: #fff;
  border: 2px solid #ddd;
  border-radius: 1em;
  width: 47%;
  padding: 1em;
}
.promise-1 h3 { 
  color: #282864;
  font-size: clamp(20px, 3vw, 28px);/*最小值 首選值 最大值 限制屬性值區間*/
  text-transform:uppercase;
  line-height:1.2;
}
.promise-1 i { 
  display: flex; 
  justify-content: center;
    width: 40px;
    height: auto;
    aspect-ratio: 1 / 1;
    font-size: 3em;
    color: #fff;
    background-color: #ff5a00;
    border-radius: 100%;
    padding: 15px;
    margin: -30px 0 5px 0;
}

/*首頁-服務流程*/
.service-step h3 {
  color: #dfc7a3;
  font-size: clamp(20px, 3vw, 22px);
  line-height: 1.2;
  padding: 3px 10px;
  margin: 10px auto;
  background-color: #000000;
  border-radius: 30px;
}
.service-step h3::before {
    content: '';
    display: block;
    position: absolute;
    height: 45px;
    width: 45px;
    background-color: #dfc7a3;
    border-radius: 100%;
    margin: -15px 0 0 -20px;
    z-index: -1;
}

.service-step p { 
  font-size: clamp(14px, 2vw, 16px);
  color: #333;
  line-height: 1.5;
}

.service-step .row [class^="col-"]:nth-child(n+1):nth-child(-n+4) {
  border-right: 1px dashed #ddd;
  z-index: -2;
}
@media only screen and (max-width: 767px){
  .service-step .row [class^="col-"]:nth-child(n+1):nth-child(-n+4) { 
    border-right: 0px dashed #ddd;
  }
}

/*按鈕-文字底色變化特效*/
.custom-btn {
    padding: 5px 20px;
    outline: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}
.btn-more1 {
  border: 1px solid #666;/*表格按鈕框線樣式*/
  color: #000;
  font-size: clamp(14px, 2vw, 16px);
  font-weight: 400;
  background-color: #fff;
}
.btn-more1:hover{
    background-color:#ff5a00; /* 當滑鼠經過時按鈕表格底色變化 */
    color: #fff;/* 當滑鼠經過時按鈕表格文字變化 */
}

/*認識蟲害-按鈕*/
.btn-img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 1;
  color: #fff;
  font-size: 2.5em;
  text-align: right;
  border: 2px solid #fff;
}
.btn-img:hover { 
  /*border: 2px solid #000;*/
  box-shadow: 0 0 10px #0005;
}