body {background-color: #ffffff;}

/*連結*/
a {
  color: #c81e00;       /* 建議使用您之前提到的藍色 */
  text-decoration: none; /* 移除底線 */
}

/*頁籤*/
.topnavbar .container {
  text-align: justify;
  font-size: 0;
}

.topnavbar .container::after {
  content: "";
  display: inline-block;
  width: 100%;
}

.topnavbar {
  background-color:#c81e00;
  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: #ffffff;}
#nav ul li a {color: #ffffff;}
#nav ul li a:hover {color: #fff799;}

/*下拉式選單*/
#nav .subnav {
  background-color:#c81e00;/* 填入想要的顏色 */
  max-width: 251px;
}

/*BANNER*/
.swiper-container {
  height: auto !important;
}

.swiper-wrapper, .swiper-slide {
  height: 0 !important;
  padding-bottom: calc(700 / 1920 * 100%); /* 注意圖片高度與寬度要去掉單位 */
}

.swiper-slide {
  width: 100% !important;
}

/*標題*/
.h1title {
  color: #c81e00;
  font-family: "Noto Serif TC", serif;
  font-weight: bold;
  background: #ffffff url(https://static.iyp.tw/4306/files/b5ccf6dd-38f6-4893-9b1b-5bf76dfe9538.png)no-repeat left bottom;}

@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%
    }
}

body.index .fcol-1 {
    background: #fbfbfb url(https://static.iyp.tw/4306/files/dfe87b85-e3af-4f69-8081-c74530aec7b1.png)no-repeat bottom;
    background-size: cover;
}
body.index .fcol-2 {
    padding: 2rem 0;
    background: #fbfbfb url(https://static.iyp.tw/4306/files/1f2ad7b4-379d-4824-9357-ff7d3fdd2059.png)no-repeat top;
    background-size: cover;
}
body.index .fcol-3,body.index .fcol-4,body.index .fcol-5 {
  display:none;}
body.index .fcol-6 {
    background: #f39800;
}
body.index #footer {
    margin-top:-40px;
}

body.about-us .fcol-1 {
    background: #fbfbfb url(https://static.iyp.tw/4306/files/3b555dc0-404f-4f98-b0d7-ff9725c018e0.png)no-repeat center;
    background-size: cover;
}
body.about-us .fcol-2,body.about-us .fcol-3,body.about-us .fcol-4,body.about-us .fcol-5,body.about-us .fcol-6 {
  display:none;}
body.about-us #footer {
    margin-top:-40px;
}

/*按鈕*/
.btn2,
.btn2:focus {
    position: relative;
    min-width: 200px;
    background-color: #0d0d0d; /* 修改：預設背景色變為深紅色 */
    border-radius: 4em;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition-duration: 0.4s;
    padding: 10px 20px;
    border: none; /* 建議加上，防止預設邊框干擾 */
    cursor: pointer;
}

/* 滑鼠懸停狀態 */
.btn2:hover {
    background-color: #4c4c4c; /* 修改：懸停時顏色稍微變亮，增加互動感 */
    color: white;
    transition-duration: 0.1s;
}

/* 按鈕點擊時的波紋特效層 */
.btn2:after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 0.5s;
    /* 這裡維持白色陰影，點擊時會有白色光圈擴散效果 */
    box-shadow: 0 0 10px 40px white; 
    border-radius: 4em;
}

/* 點擊瞬間觸發 */
.btn2:active:after {
    opacity: 1;
    transition: 0s;
    box-shadow: 0 0 0 0 white;
}

/* 按鈕按下時的位移感 */
.btn2:active {
    top: 2px; /* 稍微增加位移感 */
}

/*產品格*/
ul.product-list li a:hover {
    color: #fff;
    background: linear-gradient(180deg,rgba(200, 30, 0, 1) 80%, rgba(228, 110, 0, 1) 100%);}

ul.product-list li a {
    color: #fff;
    background-color: rgba(10, 10, 10, 0.3);}

/* 服務項目 */
.snip1551 {
  font-family: 'Raleway', sans-serif;
  position: relative;
  overflow: hidden;
  margin: 10px;
  min-width: 220px;
  max-width: 300px;
  width: 100%;
  color: #ffffff;
  font-size: 16px;
  background-color: #000000;
}
.snip1551 * {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: all 0.35s ease;
  transition: all 0.35s ease;
}

.snip1551 img {
  vertical-align: top;
  max-width: 100%;
  backface-visibility: hidden;
}

.snip1551 figcaption {
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 15px;
  right: 15px;
  z-index: 1;
  border: 1px solid #ffffff;
  overflow: hidden;
  padding: 0;
  box-shadow: 0 0 0 15px rgba(0, 0, 0, 0.8);
}

.snip1551 h3 {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 7px 15px;
  margin: 0;
  font-weight: normal;
  font-size: 1em;
  letter-spacing: 2px;
  display: inline-block;
  border-top: 1px solid #fff;
  border-left: 1px solid #fff;
  background-color: rgba(0, 0, 0, 0.8);
  -webkit-transform: translate(0%, 100%);
  transform: translate(0%, 100%);
  color: rgba(255, 255, 255, 0);
}

.snip1551 a {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
}

.snip1551:hover > img,
.snip1551.hover > img {
  opacity: 0.5;
}

.snip1551:hover h3,
.snip1551.hover h3 {
  -webkit-transform: translate(0%, 0%);
  transform: translate(0%, 0%);
  color: #ffffff;
}