/*BANNER*/
.swiper-container {
  height: auto !important;
}

.swiper-wrapper, .swiper-slide {
  height: 0 !important;
  padding-bottom: calc(800 / 1920 * 100%); /* 注意圖片高度與寬度要去掉單位 */
}

.swiper-slide {
  width: 100% !important;
}

/* 首頁 */
#bodyinhome .swiper-wrapper, #bodyinhome .swiper-slide {
  padding-bottom: calc(800 / 1920 * 100%); /* 首頁 banner 大小 */
}
/* 內頁 */
#bodyinpage .swiper-wrapper, #bodyinpage .swiper-slide {
  padding-bottom: calc(500 / 1920 * 100%); /* 內頁 banner 大小 */
}

/*頁籤*/
.topnavbar .container {
  text-align: center;
  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: #0e3c87;}
#nav ul li a {color: #1a1a1a;}
#nav ul li a:hover {color: #a0a0a0;}

/*下拉式選單*/
#nav .subnav {
  background-color:#fff;/* 填入想要的顏色 */
  padding: 5px;
  max-width: 260px;
}
#nav ul li .subnav a {color:#0e3c87;}
#nav ul li .subnav a:hover {background: rgb(160, 160, 160, 0.3);}

.h1title {
  padding: 10px 20px;
  color: #FFFFFF; /* 白色文字 */
  font-family: arial, helvetica, sans-serif;
  font-size: 1.5rem;
  background: linear-gradient(to right, #007CC3 0%, #76B1E4 50%, #D9E9F9 100%);
  letter-spacing: 1px;
  border-radius: 2px;
  font-weight: bold;
}

/* 區塊背景&背景色 */
body {background-color: #ffffff;}
body.index .fcol-2{
    background-position:center;
    background-image: -webkit-linear-gradient(top, rgb(255 255 255 / 0%) 0%, rgb(255 255 255 / 0%) 30%), url(https://static.iyp.tw/24882/files/3b01000e-5938-4ada-8de6-677800ef2624.png);
}

body.index .fcol-4{
    background-position:center;
    background-image: -webkit-linear-gradient(top, rgb(255 255 255 / 0%) 0%, rgb(255 255 255 / 0%) 30%), url(https://static.iyp.tw/24882/files/2dee1382-9a88-4912-97e4-ad6ab41a149f.png);
}

body.index .fcol-5,body.index .fcol-6 {display: none;}
body.index #footer {margin-top:-40px;}

body.about-us .fcol-2{
    background-position:center;
    background-image: -webkit-linear-gradient(top, rgb(255 255 255 / 20%) 100%, rgb(255 255 255 / 30%) 50%), url(https://static.iyp.tw/24882/files/6099edbf-f33e-4b46-b749-bcbe93d6b9fa.png);}

body.about-us #footer {margin-top:-40px;}
  
body.about-us .fcol-3,
body.about-us .fcol-4,
body.about-us .fcol-5,
body.about-us .fcol-6{display: none;}

/* 整理後的按鈕樣式 - 主底色與框：#1a1a1a */
.primary-button {
  color: white;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0.05rem;
  border: 1px solid #1a1a1a; /* 修改主框線 */
  padding: 0.8rem 2.1rem;
  /* SVG 內部維持主題藍，hover 時會滑入 */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 531.28 200'%3E%3Cdefs%3E%3Cstyle%3E .shape %7B fill: %230063a7; %7D %3C/style%3E%3C/defs%3E%3Cg id='Layer_2' data-name='Layer 2'%3E%3Cg id='Layer_1-2' data-name='Layer 1'%3E%3Cpolygon class='shape' points='415.81 200 0 200 115.47 0 531.28 0 415.81 200' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-color: #1a1a1a; /* 修改底色 */
  background-size: 200%;
  background-position: 200%;
  background-repeat: no-repeat;
  transition: 0.3s ease-in-out;
  transition-property: background-position, border, color;
  position: relative;
  z-index: 1;
}

.primary-button:hover {
  border: 1px solid #1a1a1a; /* 滑鼠移入時維持框線顏色 */
  color: white;
  background-position: 40%;
}

.primary-button:before {
  content: "";
  position: absolute;
  background-color: #1a1a1a; /* 左上角裝飾塊底色 */
  width: 0.2rem;
  height: 0.2rem;
  top: -1px;
  left: -1px;
  transition: background-color 0.15s ease-in-out;
}

.primary-button:hover:before {
  background-color: white;
}

.primary-button:after {
  content: "";
  position: absolute;
  background-color: #0063a7; /* 右下角裝飾塊維持主題藍 */
  width: 0.3rem;
  height: 0.3rem;
  bottom: -1px;
  right: -1px;
  transition: background-color 0.15s ease-in-out;
}

.button-borders {
  position: relative;
  width: fit-content;
  height: fit-content;
}

/* 外部延伸裝飾框線也同步調整為 #1a1a1a */
.button-borders:before {
  content: "";
  position: absolute;
  width: calc(100% + 0.5em);
  height: 50%;
  left: -0.3em;
  top: -0.3em;
  border: 1px solid #1a1a1a; 
  border-bottom: 0px;
}

.button-borders:after {
  content: "";
  position: absolute;
  width: calc(100% + 0.5em);
  height: 50%;
  left: -0.3em;
  bottom: -0.3em;
  border: 1px solid #1a1a1a; 
  border-top: 0px;
  z-index: 0;
}

/*產品格*/
ul.product-list li a:hover {
    color: #fff;
    background-color: rgba(0, 99, 167,1);
}

ul.product-list li a {
    font-family: 'Noto Sans TC', sans-serif;
    color: #1a1a1a;
    background-color: rgba(211,211,211,0.3);
}

/*產品介紹頁編輯框高度auto*/
body[data-type="fullpage"] #product-header.main {
      min-height: auto;
  }

/*連結顏色*/
a {
    color: #1a1a1a;
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    color: #0063a7;
    text-decoration: underline;
}

/*ipheno尺寸調整*/
@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%
    }
}