.phone{position:fixed;right:1%;top:30%;z-index:1000;}
.fb{position:fixed;right:1%;top:42%;z-index:1000;}
.line-1{position:fixed;right:1%;top:54%;z-index:1000;}
.ig{position:fixed;right:1%;top:66%;z-index:1000;}
.google-shop{position:fixed;right:1%;top:78%;z-index:1000;}

/*手機版-側欄浮動按鈕-縮小*/
@media (max-width: 414px){ 
  .phone, .fb, .line-1, .ig, .map, .wechat, .shop-1, .x-twitter, .pixnet, .google-shop { 
    transform: scale(0.8);
    right:0;
  }
}

.topnavbar {
    background-color: #FDF5E6;/*頁籤底圖顏色;background-color: rgba(255,255,255,0);透明Transparent*/
    position: relative;/*relative 頁籤&banner分開不重疊;頂置 fixed;*/
    line-height: 0;
    padding: 0;/*頁籤間距*/
     width: 100%;
   background-attachment: scroll; /*fixed固定背景; scroll捲動背景*/
   background-repeat: no-repeat;
   background-position:center;
   background-size: cover;/*cover圖片剪裁不拉伸壓縮 ; contain不拉伸壓縮.等比縮放)*/
   background-image: url(https://static.iyp.tw/409497/files/464826e1-2094-415e-bdb5-6437758d8cf4.jpg);
}

.topnavbar .container {
  text-align: center;
  padding: 0;
}

.topnavbar .container::after {
  display: inline-block;
  width: 100%;
}

body {
    background-color: #fff;/*背景底色*/
  font-family: 'Noto Sans TC', sans-serif;
}

#logo { display: block; }
#logo h1 { text-align: center; }

table {
table-layout: fixed;
word-wrap:break-word;
} /*動到表格手機不會破版*/


/*編輯欄設定*/
.fcol p{
    font-size: 18px;/*文字大小*/
    color: #000000;/*文字顏色*/
    line-height: 2;
}
@media only screen and (max-width: 768px){
.fcol p{
    font-size: 16px;/*螢幕寬度768px內文字大小*/
}}

body[data-type="fullpage"] #product-header.main {
      min-height: auto;/*產品-編輯框不設定高*/
}
/*編輯欄設定*/


/*nav*/
/*頁籤底拉寬*/
#header .topnavbar .container {
    padding-left: 60px;
    padding-right: 60px;
    width: 100%;
}
#nav {
    vertical-align: bottom;
}
#nav ul li a {
  font-family: 'Noto Serif TC', serif;
    font-size: 1.0rem;/*頁籤文字大小*/
    color: #5e5956;/*頁籤文字顏色*/
    padding: 10px 20px;/*頁籤文字間隔;padding:2px 16px 2px 16px;*/
    line-height: 1.3;
    transition: .3s;
  font-weight: 400;
  letter-spacing: 2px;
}

#nav ul li a:hover  {
    color: #978676;/*頁籤滑過文字顏色*/
  font-weight: 400;
}
#nav ul li.current a {
    color: #5e5956;/*頁籤按下後文字顏色*/
  font-weight: 400;
}

#nav .subnav {
    background-color: #fff;/*次頁籤底色*/
    max-width: 400px;/*次頁籤背景最大寬度*/
    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;/*下拉選單箭頭距離*/
}

/*產品頁產品格圖片填滿*/
ul.product-list div.img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

ul.product-list li a {
  color: #8d6e62;/*產品格文字顏色*/
  background-color: transparent;
  border: 0px solid #ddd;
}
ul.product-list li a:hover {
    color: #978676;/*產品格滑過文字顏色*/
}
.productdetail .detail-spec h2 p{
    color: #333;
    font-size: 30px;
}/*產品內頁標題文字*/


/*title文字顏色*/
.h1title h1{
  font-family: 'Noto Serif TC', serif;
  font-size: 30px;
  font-weight: 500;
  color: #8e6d63;
  text-align: center;
  letter-spacing: 5px;
}
.h1title h1::before, .h1title h1::after {
  content: '';
  position: relative;
  top: -10px;
  display: inline-block;
  width: 30px;
  height: 1px;
  background-color: #cccccc;
}
.h1title h1::before { left:-6px; }

a {
    color: #8d4423;/*連結顏色*/
    text-decoration: none;
}

.swiper-container {
  height: auto !important; /* 將容器預設的高拿掉 */
}

.swiper-wrapper, .swiper-slide {
  height: 0 !important;
  padding-bottom: calc(750 / 1920 * 100%); /* 自定響應式圖片高度 */
}

.swiper-slide {
  width: 100% !important; /* 強制圖片寬度隨容器變更 */
}

body[data-type="fullpage"]:not(#managehome) #wrap>*:not(:last-child) {
    margin-bottom: 0px;
}


#bodyinhome .fcol.fcol-1,
#bodyinhome .fcol.fcol-2,
#bodyinhome .fcol.fcol-3,
#bodyinhome .fcol.fcol-4,
#bodyinhome .fcol.fcol-5 { padding: 3rem 0; }

#bodyinhome .fcol.fcol-3 { background-color: #fbf8f1; }
#bodyinhome .fcol.fcol-4 {  background-color: #5e5956; }

@media only screen and (min-width: 768px) {
  #bodyinhome .fcol.fcol-2 .container {
   width: 90%;
  }
  
  #bodyinhome .fcol.fcol-3 .container {
    width: 90%;
  }  
  
  #bodyinhome .fcol.fcol-4 .container {
   width: 90%;
  }
}


/*footer*/
#footer {
  color:#fff;
  width: 100%;
  background-color: #3b2417;
  letter-spacing: 1px;
}
#footer a { color: #fbf8f1; }
#footer a:hover { color: #e2dbd1; }

#foot-nav ul li a {
    display: block;
    color: #5e5956;
    font-size: 14px;
    margin-right: 15px;
    padding: 3px 10px;
    background-color: #e2dbd1;
    border-radius: 10px;
}
#foot-nav ul li a:hover { background-color: #fbf8f1; color: #5e5956;}

#foot-nav {
  clear: both;
  padding: 2em 0 1em;
  border-bottom: 0px solid #444;
  display: flex;
  justify-content: center;
}
.contact-row h5 {
    color: #fbf8f1;
}
#contact-info ul li span {
    color: #fbf8f1;
}

/*標題-英文*/
#t1-en {
  font-family: 'Noto Serif TC', serif;
  font-size: 45px;
  color:#5e5956;
}
@media only screen and (max-width: 430px){  #t1-en { font-size: 32px; } }


/*圖文連結特效*/
.snip1504 {
  position: relative;
  overflow: hidden;
  margin: 0 auto 0;
  min-width: 150px;
  width: 100%;
  color: #fff;
  text-align: center;
  background-color: #000000;
}

.snip1504 * {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: all 0.45s ease;
  transition: all 0.45s ease;
}

.snip1504 img {
  object-fit: cover;  /*cover圖片剪裁不拉伸壓縮 ; contain不拉伸壓縮.等比縮放)*/
  vertical-align: top;
  width: 100%;
  aspect-ratio: 4 / 3;
  backface-visibility: hidden;
  opacity: 0.5;
}

.snip1504 figcaption {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  align-items: center;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.snip1504 figcaption:after {
  content: '';
    background: url(https://static.iyp.tw/409497/files/2cb04905-3cda-4b59-bdc2-dea0e387b628.png) no-repeat top;
    background-size: cover;
    position: absolute;
    width: auto;
    height: 95%;
    aspect-ratio: 1 / 1;
    opacity: 0.15;
      right: 10%;
}
.snip1504:hover figcaption:after {
    opacity: 0;
}

.snip1504 h3,
.snip1504 h5 {
  margin: 0;
  opacity: 1;
  letter-spacing: 2px;
  z-index: 1;
}

.snip1504 h3 {
  -webkit-transform: translateY(0);
  transform: translateY(0);
  text-transform: uppercase;
  font-weight: 400;
  font-size: 22px;
}

.snip1504 h5 {
  font-weight: normal;
  font-style: italic;
  color: #e0cab5;
  font-size: 12px;
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

.snip1504 a {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
}

.snip1504:hover > img,
.snip1504.hover > img {
  opacity: 1;
}

.snip1504:hover h3,
.snip1504.hover h3,
.snip1504:hover h5,
.snip1504.hover h5 {
  -webkit-transform: translateY(-100%);
  transform: translateY(-100%);
  opacity: 0;
}

/*圖文連結特效-醫師團隊*/
.snip1504-2 {
  position: relative;
  overflow: hidden;
  margin: 0 auto 0;
  width: 100%;
  color: #fff;
  text-align: center;
  background-color: #000000;
}

.snip1504-2 * {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: all 0.45s ease;
  transition: all 0.45s ease;
}

.snip1504-2 img {
  object-fit: cover;  /*cover圖片剪裁不拉伸壓縮 ; contain不拉伸壓縮.等比縮放)*/
  vertical-align: top;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-position: 50% 0%;
  opacity: 0.7;
}

.snip1504-2 figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10%;
  z-index: 1;
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.snip1504-2 h3 {
  text-transform: uppercase;
  font-weight: 400;
  font-size: 36px;
  letter-spacing: 2px;
}

.snip1504-2:hover > img,
.snip1504-2.hover > img {
  opacity: 1;
}

.snip1504-2:hover h3,
.snip1504-2.hover h3 {
  -webkit-transform: translateY(-100%);
  transform: translateY(-100%);
  opacity: 0;
}


/*owl 輪播圖語法*/
.owl-carousel.owl-theme {
  padding: 0 20px 35px;/*內距:上 左右 下;*/
}
.owl-carousel.owl-theme .owl-nav {
  position: absolute;
  margin: 0;
  top:50%;
  left: 0;
  right: 0;
  transform: translateY(-100%);
}
.owl-carousel.owl-theme .owl-dots {
  position: relative;
  left: 0;
  right: 0;
  bottom: 0;
}
.owl-carousel.owl-theme button:focus {
  outline: none;
}
.owl-carousel.owl-theme .owl-nav .owl-prev {
  float: left;
  transform: translateX(-100%);
}
.owl-carousel.owl-theme .owl-nav .owl-next {
  float: right;
  transform: translateX(100%);
}
.owl-carousel.owl-theme .owl-nav .owl-prev:hover,
.owl-carousel.owl-theme .owl-nav .owl-next:hover{
  background: none;
  color: inherit;
}
.owl-carousel.owl-theme .owl-nav .fa{
  font-size: 3em; /*箭頭大小*/
}

.editmode .owl-carousel.owl-loaded {
  display: flex;
  flex-wrap: wrap;
}
.editmode .owl-carousel > div {
  flex: 0 0 25%;
  max-width: 25%;
}

.owl-carousel .owl-item img {
  object-fit: cover;  /*cover圖片剪裁不拉伸壓縮 ; contain不拉伸壓縮.等比縮放)*/
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;  /*比例*/
  border: 2px solid #fff;
  box-shadow: 0 6px 5px rgba(44,44,44,0.25);
}
.owl-carousel .row-no-gutters {
    margin-right: 5px;
    margin-left: 2px;
}


/*CSS圖形-線-●*/
.greyLine {
    position: relative;
    margin: 0 auto;
    height: 5rem;
    width: 1px;
    background: #e2dbd1;
    display: block;
    margin-bottom: 2rem;
}
.greyLine::before {
    content: '✦';
    display: block;
    position: absolute;
    font-size: 30px;
    color: #e2dbd1;
    top: -20px;
    left: -11px;
}

.greyLine::after {
    content: '●';
    display: block;
    position: absolute;
    font-size: 10px;
    color: #e2dbd1;
    bottom: -5px;
    left: -4px;
}

/*按鈕-文字底色變化特效*/
.btn-1 {
  border: 0px solid #000;/*表格按鈕框線樣式*/
  color: #fff;
  font-size: 16px;
  letter-spacing: 2px;
}
.btn-1:hover{
    background-color: #8d6e62; /* 當滑鼠經過時按鈕表格底色變化 */
    color: #fff;/* 當滑鼠經過時按鈕表格文字變化 */
}
.custom-btn {
    padding: 5px 25px;
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 400;
    background: #978676;
    outline: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

/*內頁圖片-剪裁*/
.inpage-img1 img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  background-color: #e2dbd1;
  border: 1px solid #fbf8f1;
  box-shadow:-1px 15px 20px -15px #A6A6A6;
}
/*內頁圖片-等比縮*/
.inpage-img2 img {
  width: 100%;
  object-fit: contain;
  aspect-ratio: 4 / 3;
  background-color: #e2dbd1;
  border: 1px solid #fbf8f1;
  box-shadow:-1px 15px 20px -15px #A6A6A6;
}
