.phone-1{position:fixed;right:1%;top:30%;z-index:1000}


/*手機版-側欄浮動按鈕-縮小*/
@media (max-width: 414px){ 
  .phone, .fb, .line-1, .ig, .map, .wechat, .shop-1 { 
    transform: scale(0.8);
    right:0;
  }
}



/*LOGO語法*/
.topnavbar {
    background-color: #ffcf17;/*頁籤底圖顏色;background-color: rgba(255,255,255,0);透明Transparent*/
    position: relative;/*relative 頁籤&banner分開不重疊;頂置 fixed;*/
    line-height: 0;
    padding: 0 ;/*頁籤間距*/
}

.topnavbar .container {
  text-align: center;
  padding: 10px ;
}

.topnavbar .container::after {
  display: inline-block;
  width: 100%;
}

#logo h1 { text-align: center; }


body {
    background-color: #fff;/*背景底色*/
    font-family: 'Noto Sans TC', sans-serif;/*套用google font字型Noto Sans TC黑體*/
}


/*消除留白*/
body[data-type="fullpage"]:not(#managehome) #wrap>*:not(:last-child) {
    margin-bottom: 0px;
}

body[data-type="fullpage"] #product-header.main {
      min-height: auto;/*產品-編輯框不設定高*/
}



/*banner*/
.swiper-container {
  height: auto !important; /* 將容器預設的高拿掉 */
}

.swiper-wrapper, .swiper-slide {
  height: 0 !important;
  padding-bottom: calc(750 / 1920 * 100%); /* 自定響應式圖片高度 */
}

.swiper-slide {
  width: 100% !important; /* 強制圖片寬度隨容器變更 */
}


/*nav*/
#nav {
    vertical-align: bottom;
}
#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: #d30617;/*頁籤滑過文字顏色*/
}
#nav ul li.current a {
    color: #d30617;/*頁籤按下後文字顏色*/
    font-weight: 500;
}

/*頁籤按鈕上底線滑入特效-底線短*/
#nav ul li a::before {
  content:"";
  border-top:3px solid #d30617;
  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: #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;/*下拉選單箭頭距離*/
}



/*各層編輯欄*/
#bodyinhome .fcol.fcol-1 {
     background-repeat: no-repeat;
   background-position: 50% 50%;
   background-size: cover;/*cover圖片剪裁不拉伸壓縮 ; contain不拉伸壓縮.等比縮放)*/
   background-image: -webkit-linear-gradient(top, rgba(255,255,255,0) 10% ,rgba(255,255,255, 0) 100%) , url(https://static.iyp.tw/409973/files/1754b707-d360-4db8-b874-251e0d4c5f94.jpg);
   padding: 2rem 0;
} 


#bodyinhome .fcol.fcol-2 {
    background-repeat: no-repeat;
   background-position: 50% 10%;
   background-size: cover;/*cover圖片剪裁不拉伸壓縮 ; contain不拉伸壓縮.等比縮放)*/
   background-image: -webkit-linear-gradient(top, rgba(255,255,255,0.7) 0% ,rgba(255, 255, 255, 0.7) 100%) , url(https://static.iyp.tw/25060/files/76f4d7bc-9d8b-44f6-8bca-1b5c4ef17887.jpg);
}

#bodyinhome .fcol.fcol-3 {
    background-repeat: no-repeat;
   background-position: 50% 10%;
   background-size: cover;/*cover圖片剪裁不拉伸壓縮 ; contain不拉伸壓縮.等比縮放)*/
   background-image: -webkit-linear-gradient(top, rgba(0,0,0,0.5) 0% ,rgba(0, 0, 0, 0.5) 100%) , url(https://static.iyp.tw/409973/files/79a133f9-cbc6-46b5-b638-d0b38c14c487.png);
}

#bodyinhome .fcol.fcol-4 {
    background-repeat: no-repeat;
   background-position: 50% 50%;
   background-size: cover;/*cover圖片剪裁不拉伸壓縮 ; contain不拉伸壓縮.等比縮放)*/
   background-image: -webkit-linear-gradient(left, rgba(255,255,255,0.1) 0% ,rgba(255, 255, 255, 0.1) 100%) , url(https://static.iyp.tw/409973/files/167b488c-1239-493d-9fa9-4626c43a8c53.jpg);
  display: flex; 
  align-items: center;
  padding: 3em 0;
}

#bodyinhome .fcol.fcol-6{
background-color:#333;
}


body.about-us .fcol.fcol-2 {
    background: url(https://static.iyp.tw/409973/files/c096bb43-4802-45f5-be67-014906a37211.png) 100% 0 / cover no-repeat;
    position: relative;
    overflow: hidden;
background-position: left top;
}

body.about-us .fcol.fcol-3 {
    background-color: #e9e9e9;
}


/*改內文標題顏色*/
h1, h2, h3, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: inherit;
    font-weight: 700;
    line-height: inherit;
    color: #44403f;
}

h1, .h1 {
text-align: center;
}





/*消防機電安全整合*/
@import url(https://fonts.googleapis.com/css?family=Roboto);

.snip1532 {
  overflow: hidden;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
  color: #000000;
  display: inline-block;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  margin: 0px;
  max-width: 340px;
  min-width: 250px;
  position: relative;
  text-align: center;
  width: 100%;
  background-color: #000;
}

.snip1532 *,
.snip1532 *:before {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: all 0.4s ease-out;
  transition: all 0.4s ease-out;
}

.snip1532 img {
  max-width: 100%;
  vertical-align: top;
  -webkit-transform-origin: 100% 100%;
  -ms-transform-origin: 100% 100%;
  transform-origin: 100% 100%;
}

.snip1532 figcaption {
  position: absolute;
  top: 50%;
  width: 100%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  opacity: 0;
  z-index: 1;
}

.snip1532 h3 {
  font-size: 20px;
  margin: 0;
  padding: 0 20px;
  text-transform: uppercase;
  color: #fff;
}
.snip1532 h4 {
  font-size: 13px;
  margin: 10px 20px;
  padding: 10px 20px;
  text-transform: uppercase;
  color: #ffcc99; 
}

.snip1532 i {
  font-size: 24px; /* 微調大小更精緻 */
  position: absolute;
  bottom: 0;
  right: 0;
  -webkit-transform: translate(0%, 100%);
  transform: translate(0%, 100%);
  opacity: 0;
  line-height: 60px;
  width: 60px;
  height: 60px;
  color: #fff;
  background-color: #9d0509;
}

.snip1532 a {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
}

/* 懸停效果 (Hover) */
.snip1532:hover figcaption {
  opacity: 1;
}

.snip1532:hover img {
  opacity: 0.3;
  filter: brightness(30%); /* 增加變暗效果，讓白色字體更好讀 */
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}

.snip1532:hover i {
  -webkit-transform: translate(0%, 0%);
  transform: translate(0%, 0%);
  opacity: 1;
}
</style>


/*為甚麼選擇我們*/
#frame_c {
  border-radius:10px;
box-shadow: inset 10px -1px 50px 4px #DEDEDE,-1px 34px 26px -23px #A6A6A6;
-webkit-box-shadow: inset 10px -1px 50px 4px #DEDEDE,-1px 34px 26px -23px #A6A6A6;
-moz-box-shadow: inset 10px -1px 50px 4px #DEDEDE,-1px 34px 26px -23px #A6A6A6;
-o-box-shadow: inset 10px -1px 50px 4px #DEDEDE,-1px 34px 26px -23px #A6A6A6;
  background-color: #fff;
}



/*了解更多*/
.bg-icon1  {
   margin-left: 10px; 
  margin-right: auto;
  transition:.3s all ease;
  padding: 5px 20px;
  color: #fff;
  font-size: 18px;
   background-color: #bd0202; 
  border-radius: 30px;
  text-align: center;
}

.bg-icon1:hover  {
  background-color: #b48043; 
  color: #fff;
}

.bg-icon1 a { color:#fff;}





.fs-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
  }
  
  /* 兩欄排版 Grid */
  .grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
  }

  /* 強調區塊 */
  .highlight-box {
    background: #fdfaf6;
    border: 1px solid #9e6f23;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    margin-top: 30px;
  }
  .highlight-box h3 { color: #9e6f23; }