body {background-color: #ffffff;}
body.product, body.contact-us {
   background-image : url(https://static.iyp.tw/409900/files/00ce6f99-b8d2-462a-b6a4-30da439203e0.png);
   background-repeat : repeat;
   background-attachment: fixed;
}

#call {
    width: 55px;
    right: 10px;
    border-radius: 50%;
    z-index: 999;
    bottom: 90px;
    position: fixed;
}

/*頁籤*/
.topnavbar .container {
  text-align: justify;
  font-size: 0;
}

.topnavbar .container::after {
  content: "";
  display: inline-block;
  width: 100%;
}

.topnavbar {
  background-color: #fff;
  top:0px;
  position: relative;
  z-index:100;
  width:100%;
  padding: 0;
}
.topnavbar .container {
    padding-top: 0px;
    padding-bottom: 0px;
}


#nav ul li.current a {color: #256886;}
#nav ul li a {color: #1a1a1a;}
#nav ul li a:hover {color: #848484;}

/*BANNER*/
.swiper-container {
  height: auto !important;
}

.swiper-wrapper, .swiper-slide {
  height: 0 !important;
  padding-bottom: calc(800 / 1920 * 100%); /* 注意圖片高度與寬度要去掉單位 */
}

.swiper-slide {
  width: 100% !important;
}

/*標題*/
.h1title {
  color: #236584;
  border-bottom:1px solid#dddddd;
  font-family: "Noto Serif TC", serif;
  font-weight: bold;
}

/*產品格*/

ul.product-list li a:hover {
    color: #fff;
    background-color: rgba(38, 104, 134, 1);}

ul.product-list li a {
    color: #fff;
    background-color: rgba(26, 26, 26, 0.3);}

/*關於*/
body.about-us .fcol-1 {
    background: #fbfbfb url(https://static.iyp.tw/409900/files/d48f6aa9-e5ba-44aa-92c3-bad263952b72.png)no-repeat center;
    background-size: cover;
}
body.about-us .fcol-2 .container {padding:0rem;}
body.about-us .fcol-2 {
    background: #fbfbfb url(https://static.iyp.tw/409900/files/b2edbf75-5d14-4f7a-9855-28e7cf05d410.png)no-repeat center;
    background-size: cover;
}

body.about-us .fcol-3 {
    padding: 2rem 0;
    background: #fbfbfb url(https://static.iyp.tw/409900/files/8e8bb24f-afc3-47e2-b6f0-d7ff4949a13c.png)no-repeat center;
    background-size: cover;
}
body.about-us .fcol-4 {
    padding: 2rem 0;
    background-image: -webkit-linear-gradient(top, rgb(38 104 134 / 100%) 50%, rgb(109 187 186 / 80%) 80%), url(https://static.iyp.tw/409900/files/4a58ff4d-87d9-49e9-993a-c3d801c53cc4.png)  ;
   background-repeat: no-repeat;
   background-position:center;
   background-size: cover;/*cover圖片剪裁不拉伸壓縮 ; contain不拉伸壓縮.等比縮放)*/
   background-attachment: fixed;
}
body.about-us .fcol-5,body.about-us .fcol-6 {display:none;}
body.about-us #footer {margin-top:-60px;}

#footer {
    color: #ffffff;
    background-color: #243c44;}
#foot-nav { border-bottom: 1px solid #243c44;}

/* 按鈕 */ 
.btn-31 {
  font-weight: bold;
  color: white;
  background-color: #171717; /* 預設完全黑色 */
  padding: 1em 2em;
  border: none;
  border-radius: .6rem;
  position: relative;
  cursor: pointer;
  overflow: hidden; /* 確保圓點放大後不會溢出邊界 */
  display: inline-block;
  z-index: 1;
}

/* 針對前 5 個圓點的共同設定 */
.btn-31 span:not(:nth-child(6)) {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 30px;
  width: 30px;
  background-color: #266886;
  border-radius: 50%;
  transition: transform .6s ease; /* 只針對變形做動畫 */
  z-index: -1; /* 放在按鈕背景層，確保不會蓋住文字 */
  
  /* 關鍵修改：初始狀態縮小到 0，完全隱藏 */
  transform: translate(-50%, -50%) scale(0); 
}

/* 第 6 個 span 是文字 */
.btn-31 span:nth-child(6) {
  position: relative;
  pointer-events: none; /* 讓文字不影響滑鼠觸發 */
}

/* 設定 5 個圓點的噴發位置（相對於中心的位移） */
.btn-31 span:nth-child(1) { margin-left: -2em; margin-top: -1.5em; }
.btn-31 span:nth-child(2) { margin-left: -3em; margin-top: 1em; }
.btn-31 span:nth-child(3) { margin-left: 0em; margin-top: 1.5em; }
.btn-31 span:nth-child(4) { margin-left: 3em; margin-top: 1em; }
.btn-31 span:nth-child(5) { margin-left: 2em; margin-top: -1.5em; }

/* 滑鼠懸停：圓點放大並填滿 */
.btn-31:hover span:not(:nth-child(6)) {
  /* scale(12) 確保圓形大到足以覆蓋長方形的所有角落 */
  transform: translate(-50%, -50%) scale(12);
  transition: transform .8s ease;
}

.snip1361 {
  font-family: 'Quattrocento', Arial, sans-serif;
  position: relative;
  overflow: hidden;
  margin: 10px;
  min-width: 230px;
  max-width: 315px;
  width: 100%;
  color: #141414;
  text-align: left;
  line-height: 1.4em;
  font-size: 16px;
  border:2px solid #ffffff;
  background-color: #ffffff; /* 新增：給予底色防止邊緣漏白 */
}

.snip1361 * {
  box-sizing: border-box;
  transition: all 0.35s ease;
}

.snip1361 img {
  max-width: 100%;
  vertical-align: top;
  display: block; /* 移除圖片下方微小間距 */
}

.snip1361 figcaption {
  position: absolute;
  /* 修改：改用 bottom 與 transform 來定位，確保遮罩從底部長出來 */
  bottom: 0; 
  left: 0;
  width: 100%;
  background-color: #ffffff;
  padding: 15px 25px 30px; /* 調整 padding 以符合比例 */
  z-index: 1;
  /* 初始狀態：向下位移，只露出一小部分 */
  transform: translateY(60px); 
}

.snip1361 figcaption:before {
  position: absolute;
  content: '';
  z-index: 2;
  bottom: 100%; /* 緊貼白色背景上方 */
  left: 0;
  width: 100%;
  height: 100px; /* 加高漸層高度，過渡更自然 */
  /* 漸層優化：確保 100% 處完全是不透明白色 */
  background: linear-gradient(to bottom, transparent 0%, #ffffff 100%);
}

.snip1361 h3,
.snip1361 p {
  margin: 0 0 10px;
}

.snip1361 h3 {
  font-size: 1.4em;
  line-height: 1.2em;
  font-family: "Noto Serif TC", serif;
  font-weight: bold;
  color: #1a6b96; /* 加入您之前圖片中的藍色調 */
}

.snip1361 p {
  font-size: 0.9em;
  letter-spacing: 1px;
  opacity: 0.9;
}

.snip1361 a {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3; /* 確保連結在最上層 */
}

/* Hover 效果修改 */
.snip1361:hover figcaption {
  transform: translateY(0); /* 回到原始位置，露出內容 */
}

/* 圖片微縮放動畫（可選，增加質感） */
.snip1361:hover img {
  transform: scale(1.05);
}

@media only screen and (max-width: 576px) {
    .rwd-wrapper .col-2 {
        -webkit-flex:0 0 100%;
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%
    }
}