.phone{position:fixed;right:1%;top:40%;z-index:1000;}
.line-1{position:fixed;right:1%;top:52%;z-index:1000;}

/*手機版-側欄浮動按鈕-縮小*/
@media (max-width: 430px){ 
  .phone, .fb, .line-1, .ig, .map, .wechat, .shop-1, .phone-1, .pixnet, .youtube-1, .tiktok , .thread { 
    transform: scale(0.8);
    right:0;
  }
}

body {
    background-color: #fff;/*背景底色*/
   font-family: "Noto Sans TC", serif;
    /*font-family: 'Noto Sans TC', sans-serif;套用google font字型Noto Sans TC黑體*/
}


/*按鈕-文字底色變化特效*/
.custom-btn {
    padding: 5px 25px;
    outline: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.btn-more1 {
    border-radius: 30px;
    border: 0px solid #000;
    color: #fff;
    font-size: clamp(14px, 2vw, 16px);
    background-color: #ebb911;
     font-weight: 500;
}
.btn-more1:hover{
    background-color: #b5967c; /* 當滑鼠經過時按鈕表格底色變化 */
    color: #fff;/* 當滑鼠經過時按鈕表格文字變化 */
}

/*table語法 -讓手機不會破版*/
table {
table-layout: fixed;
word-wrap:break-word;
}

.topnavbar {
 /* background-color: Transparent;*/
    background-color: #dfdfdf;/*頁籤底圖顏色;background-color: rgba(255,255,255,0);透明Transparent*/
    position: relative;/*relative 頁籤&banner分開不重疊;頂置 fixed;*/
    line-height: 0;
    padding-bottom: 0;/*頁籤間距*/
}



/*logo置頂*/

#logo h1 { 
  text-align: center; 
  height: 70px;
}

.topnavbar .container {
  text-align: center;
  padding: 0px;
}

/*動到表格手機不會破版*/
table {
  table-layout: fixed;
  word-wrap:break-word;
} 


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: #0f2c45;
  font-size: clamp(0.8rem, 2vw, 1.5rem); 
 /*最小值 首選值 最大值 限制屬性值區間*/
  line-height:2; 
}

.fcol h4 { 
    font-family: 'Noto Serif JP', sans-serif;
  font-weight: 500;
    color: #335d69;
  font-size: clamp(1.0rem, 3vw, 2.0rem); 
 /*最小值 首選值 最大值 限制屬性值區間*/
  line-height:2;  

}

.fcol h3 { 
    color: #0f2c45;
  font-size: clamp(1.0rem, 3vw, 2.0rem); 
 /*最小值 首選值 最大值 限制屬性值區間*/
  line-height:2;  
}


/*nav*/
#nav ul li a {
    white-space: normal; /*自動換行*/
    font-size: 1.0rem;/*頁籤文字大小*/
    color: #302e2b;/*頁籤文字顏色*/
    padding: 10px 20px;/*頁籤文字間隔;padding:2px 16px 2px 16px;*/
    line-height: 1.3;
    transition: .3s;
}

#nav ul li a:hover  {
    color: #3a71ac;/*頁籤滑過文字顏色*/
}
#nav ul li.current a {
    color: #3a71ac;/*頁籤按下後文字顏色*/
    font-weight: 500;
}

/*頁籤按鈕底線滑入特效-底線短*/
#nav ul li a::before {
  content:"";
  border-bottom:3px solid #3a71ac;
  width:0;
  position:absolute;
  left:0;
  right:0;
  top:0px;
  margin:0 auto;
  transition:.3s all ease;
}
#nav ul li a:hover::before {
    width: 50%;
}

/*次頁籤按鈕下底線滑入特效-底線短--隱藏*/
#nav .subnav li a:hover::before  {
    display:none;
}
#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: #033846;/*產品格文字顏色*/
    background-color: #e6e7e9;/*產品格底色*/
}

ul.product-list li a:hover {
    color: #6e685c;/*產品格滑過文字顏色*/
}

/*產品頁產品格圖片填滿*/
ul.product-list div.img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*title文字顏色*/
.h1title h1{
    color: #333333;
}

a {
    color: #2a2a2a;/*連結顏色*/
    text-decoration: none;
}

a:hover  {
    color: #1e5a9b;/*連結顏色*/
    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(850 / 1920 * 100%); /* 首頁 banner 大小 */
}

/* 內頁 */
#bodyinpage .swiper-wrapper, #bodyinpage .swiper-slide {
  padding-bottom: calc(600 / 1920 * 100%); /* 內頁 banner 大小 */
}

/*各層編輯欄設定*/
#bodyinhome .fcol.fcol-2 {
   background-color: #e6e7e9;
   padding: 0em;
}

#bodyinhome .fcol.fcol-2 {
   padding: 2em 0em;
}

#bodyinhome .fcol.fcol-3 .container { width: 100%; padding: 0;}

#bodyinhome .fcol.fcol-1 .container {
   width: 100%;   
   padding: 3em 2em;
}


#bodyinhome .fcol.fcol-4 .container {padding: 1em 0em;}


#bodyinhome .fcol.fcol-5 { 
   width: 100%;
   background-attachment: scroll;
   background-repeat: no-repeat;
   background-position:50% 50%;
   background-size: cover;
   background-image: -webkit-linear-gradient(left, rgb(45 95 133 / 70%) 100%, rgb(45 95 133 / 70%) 100%),url(https://static.iyp.tw/409982/files/726d7b0b-0dd3-409e-8e0f-07f9f97a1fe3.jpg);
  padding: 3rem 0;
}


/*圖文連結特效*/
@import url(https://fonts.googleapis.com/css?family=Raleway:400,600,700,800);
@import url(https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css);
figure.snip1208 {
  font-family: 'Raleway', Arial, sans-serif;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin: auto 0 auto;
  min-width: 150px;
  max-width: 310px;
  width: 100%;
  background-color: #ffffff;
  color: #000000;
  text-align: left;
  font-size: 16px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
}
figure.snip1208 * {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}
figure.snip1208 img {
  max-width: 100%;
  vertical-align: top;
  -webkit-transform-origin: 50% 100%;
  transform-origin: 50% 100%;
  -webkit-transition: all 0.4s ease;
  transition: all 0.4s ease;
   aspect-ratio: 4 / 3;
object-fit: cover;
}
figure.snip1208 figcaption {
  padding: 25px;
  position: relative;
}
figure.snip1208 .date,
figure.snip1208 i {
  background-color: #1abc9c;
  top: 25px;
  color: #fff;
  left: 25px;
  min-height: 60px;
  min-width: 60px;
  position: absolute;
  text-align: center;
}
figure.snip1208 .date {
  -webkit-transition-delay: 0.2s;
  transition-delay: 0.2s;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
}
figure.snip1208 .date span {
  display: block;
  line-height: 30px;
}
figure.snip1208 .date .month {
  font-size: 16px;
  background-color: rgba(0, 0, 0, 0.1);
}
figure.snip1208 i {
  line-height: 60px;
  font-size: 30px;
  -webkit-transform: rotateY(-90deg);
  transform: rotateY(-90deg);
  -webkit-transition-delay: 0s;
  transition-delay: 0s;
}
figure.snip1208 h3,
figure.snip1208 p {
  margin: 0;
  padding: 0;
}
figure.snip1208 h3 {
  margin-bottom: 10px;
  display: inline-block;
  font-weight: 600;
  color: #333333;
  text-transform: uppercase;
}
figure.snip1208 p {
  font-size: 0.8em;
  margin-bottom: 20px;
  line-height: 1.6em;
}
figure.snip1208 button {
  border: medium none;
  padding: 10px 20px;
  background-color: #2d5c85;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.8em;
}
figure.snip1208 a {
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  position: absolute;
  z-index: 1;
}
figure.snip1208:hover img,
figure.snip1208.hover img {
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}
figure.snip1208:hover .date,
figure.snip1208.hover .date {
  -webkit-transform: rotateY(90deg);
  transform: rotateY(90deg);
  -webkit-transition-delay: 0s;
  transition-delay: 0s;
}
figure.snip1208:hover i,
figure.snip1208.hover i {
  -webkit-transform: rotateY(0);
  transform: rotateY(0);
  -webkit-transition-delay: 0.2s;
  transition-delay: 0.2s;
}
figure.snip1208:hover button,
figure.snip1208.hover button {
  background-color: #63819b;
}



/*footer*/
#footer {
    color: #033846;
    background-color: #dfdfdf;
}
#foot-nav {
  clear: both;
  padding: 2em 0 1em;
  border-bottom: 0px solid #444;
  display: flex;
  justify-content: center;
  
}

.contact-row h5 { color: #3a3a3a;}

#footer a { color: #033846; }
#footer a:hover { color: #3a71ac; }

#foot-nav ul li a {
    display: block;
    color: #e6e6e8;
    font-size: 14px;
    margin-right: 15px;
    padding: 3px 10px;
    background-color: #636363;
   border-radius: 5px;
}

#foot-nav ul li a:hover { background-color: #3a71ac; color: #e6e6e8;}

/* 文字新做法*/
#main-wrap .container {
     font-size: clamp(1.0rem, 1.5vw, 1.2rem);
  line-height:30px;
  color: #2d2d2d;
}
#footer {
   font-size: 12px;
}

/*首頁-影片實績按鈕*/
figure.btm_mov{
  position: relative;
  margin: 0 auto;
  padding: 1em;
  background-color: #1a3955;
  display: flex; 
  flex-direction: column;
  justify-content: center; 
  align-items: center;
  border-radius: 100%; 
  width: 200px; 
  height: 200px;
  color: #fff;
  text-align: center;
  transition: 0.5s;
}
figure.btm_mov:hover { background-color: #004a99; }

figure.btm_mov:before {
    position: absolute;
    display: block;
    content: '';
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    top: 50%;
    left: 50%;
    border: 1px solid #fff;
    border-radius: 100%;
    transform: translate(-50%, -50%);
    transition: all .3s;
}

figure.btm_mov:hover:before {
	width: 110%;
	height: 110%;
  border: 1px solid #004a99;
}

figure.btm_mov a {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  color: #fff;
}

/*產品-區塊項目li效果—5格*/
.pro_item ul li {
    padding: 5px;
    margin: 5px;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    flex-direction: column;
    width: calc(33% - 10px);
    border-radius: 5px;
    line-height: 1.5;
    border: 1px solid #dddddd;
    background-color: #fff;
  font-size: 15px;
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 500;
  text-align: center;
}
.pro_item a { color:#666 ;font-size: 15px;}

.pro_item a:hover { 
  opacity: 0.8;   
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
@media only screen and (max-width: 991px){
 .pro_item ul li { width: calc(33% - 10px); font-size: 14px;}
  .pro_item a { font-size: 14px;}
}
@media only screen and (max-width: 768px){
 .pro_item ul li { width: calc(50% - 10px); }
}
@media only screen and (max-width: 567px){
 .pro_item ul li { width: calc(100% - 10px); }
}


/*標題裝飾線*/
.border-1 {position: relative; border-top: 1px solid #cccccc; width: 100%; margin: 10px auto;}
.border-1::after {
    content: "";
    position: absolute;
    top: -5px;
    left: -10px;
    width: 10px;
    height: 10px;
    background-color: #002e92;
    z-index: 1;
}

/*產品*/  
.service-item {
            background-color: #f2f5f9;
            border-radius: 8px;
            padding: 20px;
            transition: all 0.3s ease-in-out;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
           height: 100%;
}
.service-item:hover {
            transform: translateY(-10px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        }
 .service-item i {
            font-size: 40px;
            color: #0050ba;
            margin-bottom: 10px;
 }
.service-item h2 {
            font-size: 22px;
            color: #0050ba;
            margin-bottom: 4px;
}
.service-item p {
            font-size: 15px;
            color: #282828;
            line-height: 1.6;
 }

/*影片語法*/
.youtube-full{
    position:relative;
    width:100%;
    height:850px;
    overflow:hidden;
}

.youtube-full iframe{
    position:absolute;
    top:50%;
    left:50%;
    width:100vw;
    height:56.25vw;
    min-width:1511px;
    min-height:850px;
    transform:translate(-50%,-50%);
}
@media (max-width:768px){

.youtube-full{
    height:300px;
}

.youtube-full iframe{
    width:100%;
    height:100vw;
    min-width:100%;
    min-height:300px;
}

}