﻿  
 .item-tag { display: flex; flex-wrap: wrap; flex-direction: row; bottom:0px; left: 0px;  width: auto;padding: 0px 10px; font-size: 0.875rem; color: #fff; transition: all 0.3s cubic-bezier(0.37, 0.75, 0.61, 1.05) 0s; overflow: hidden; text-transform: capitalize;  word-break: keep-all;   z-index: 9;  position: absolute;opacity: 0; }
.item-tag-01{ background:#000;}
.item-tag-02{ background:#999;}


/* Sweep To Right */
.hvr-sweep-to-right { cursor: pointer; display: inline-block; position: relative; vertical-align: middle;  -webkit-transform: translateZ(0); transform: translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); -webkit-backface-visibility: hidden; backface-visibility: hidden; -moz-osx-font-smoothing: grayscale; -webkit-transition-property: color; transition-property: color; -webkit-transition-duration: 0.3s; transition-duration: 0.3s;}
.hvr-sweep-to-right:before { content: ""; position: absolute; z-index: -1; top: 0; left: 0; right: 0; bottom: 0; background: #000!important; -webkit-transform: scaleX(0); transform: scaleX(0); -webkit-transform-origin: 0 50%; transform-origin: 0 50%;  -webkit-transition-property: transform; transition-property: transform; -webkit-transition-duration: 0.3s; transition-duration: 0.3s; -webkit-transition-timing-function: ease-out; transition-timing-function: ease-out;}
.hvr-sweep-to-right:hover, .hvr-sweep-to-right:focus, .hvr-sweep-to-right:active { color: #fff!important;}
.hvr-sweep-to-right:hover:before, .hvr-sweep-to-right:focus:before, .hvr-sweep-to-right:active:before { -webkit-transform: scaleX(1); transform: scaleX(1);}



.cms-item {width: 100%;  margin:0px auto;  padding:0px; display: flex;  flex-wrap: wrap; justify-content: space-between; position: relative; z-index: 1; }
.cms-item li{ display: flex; flex-direction: column;  width: calc(100%/3 - 20px); padding:0px; margin:20px 0px; box-sizing: border-box;  overflow: hidden; list-style: none;  transition: all 0.5s ease 0s; position: relative; }
.cms-item li:hover .item-tag {opacity: 1; }
.cms-item figure img {width: 100%; position: relative; overflow: hidden;  background-color:#f5ecec; transition: all 0.5s ease-in-out;}
.cms-item figure:hover img { opacity: .5;border-color: #df7475;  transform: scale(1.15); }
.cms-item figure {background: #333;  position: relative; overflow: hidden;  }
.cms-item-box { display: flex; align-items: center; flex-wrap: wrap;  }
.cms-item-box .date,.cms-item-box.category { font-size: 12px; letter-spacing: 0.06em; color: #000; }
.cms-item-box .category {  position: relative;  margin-left: 5px; padding-left: 5px; text-transform: uppercase;}
.cms-item-box .category::before {  content: "";  position: absolute; left: 0; margin-top: 10px;  width: 1px; height: 12px; background-color: #aaa;} 
.cms-item-inner {position: relative;  width: 100%; margin: 0;  padding:20px 0px; box-sizing: border-box;display: -ms-flexbox; display: flex; flex-wrap: wrap; color: #4c4c4c; font-size: 14px; font-weight: 400;   }
.cms-item-inner h3 {position: relative;width: 100%; height:50px; font-size:0.9375rem; font-weight:500; line-height: 1.5rem; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: break-word; word-break: keep-all;  word-wrap: break-word;}
.cms-item-inner h3 a{ color:#000; }


.cms-product-inner{width: 100%;padding: 10px 0px; margin: 0px; display: flex; flex-wrap: wrap;align-content: center; align-items: center; transition: all 0.3s linear 0s; } 
#cms-main .cms-product-inner h3{flex: 0 0 100%; margin:5px 0px; min-height: 43px; font-size:1.313rem; line-height:1.5rem; font-weight:700;  color:#000; overflow: hidden; word-break:normal;  word-wrap:normal;text-overflow: ellipsis; display: -webkit-box;  -webkit-line-clamp: 2;  -webkit-box-orient: vertical; }
#cms-main .cms-product-inner p{ flex: 0 0 100%; margin: 10px 0px;  padding: 0px; font-size:0.9375rem; line-height: 20px; font-weight: 500;  color:#000;  overflow: hidden;word-break: keep-all;   word-wrap: normal; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;} 

@media (max-width: 768px) {
.cms-product-inner{ padding: 10px 0px;  } 
.cms-item-inner { padding: 10px 0px;  }
.cms-item-inner h3 { height:90px; line-height: 1.35rem;  -webkit-line-clamp: 4; }
#cms-main .cms-product-inner h3{ font-size: 115%;  line-height:115%;  }
}


@media (max-width: 767px) {
.cms-item li{ display: flex; flex-direction: column;  width: calc(100%/2 - 10px); padding:0px; margin:20px 5px ; box-sizing: border-box;  overflow: hidden; list-style: none;  transition: all 0.5s ease 0s; position: relative; }   
.cms-product-inner{ padding: 10px 0px;  } 
.cms-item-inner { padding: 10px 0px;  }
#cms-main .cms-product-inner p{ font-size:0.875rem; } 
}


.cms-item li figure > * {  -webkit-transform: translate(0%); -ms-transform: translate(0%);  transform: translate(0%); -webkit-transition: 1s; -o-transition: 1s; transition: 1s; }
.cms-item li figure div {position: absolute;top: 0;left: 0;width: 100%;height: 100%;background: rgba(0, 0, 0, 0.7);opacity: 0;display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-pack: center;-ms-flex-pack: center;justify-content: center;  -webkit-box-align: center; -ms-flex-align: center; align-items: center;}
.cms-item li figure div span { height: 60px; width: 60px; border: 4px solid #fff; border-radius:99rem; display: inline-block; position: relative;}
.cms-item li figure div span:before, .cms-item li figure div span:after { position: absolute;  content: '';  width: 60%; height: 4px; left: 50%; top: 50%; background:#fff; -webkit-transition: .5s; -o-transition: .5s; transition: .5s; -webkit-transform-origin: 50% 50%; -ms-transform-origin: 50% 50%; transform-origin: 50% 50%;  -webkit-transform: translate(-50%, -50%); -ms-transform: translate(-50%, -50%); transform: translate(-50%, -50%);}
.cms-item li figure div span:after { -webkit-transform: translate(-50%, -50%) rotate(90deg); -ms-transform: translate(-50%, -50%) rotate(90deg); transform: translate(-50%, -50%) rotate(90deg); }
.cms-item li figure:hover div { opacity: 1; }
.cms-item li figure:hover div span:before { -webkit-transform: translate(-50%, -50%) rotate(90deg);  -ms-transform: translate(-50%, -50%) rotate(90deg); transform: translate(-50%, -50%) rotate(90deg); }
.cms-item li figure:hover div span:after {  -webkit-transform: translate(-50%, -50%) rotate(180deg); -ms-transform: translate(-50%, -50%) rotate(180deg); transform: translate(-50%, -50%) rotate(180deg); }






/*  詳細頁樣式*/
.cms-main-post-wrap{ padding: 20px 0px; margin-top:50px;  }
.cms-main-post{width: 90%;margin: 0px 0px 30px 0px; padding:20px 0px 20px 9%; line-height: 2rem; display: flex; flex-wrap: wrap;   word-break: break-all; }
.cms-main-post p a{ color: #000; }
.cms-main-post-head{width: 100%;margin: 0px 0px 35px 0px; padding-bottom: 15px;  display: flex; flex-wrap: wrap; justify-content: space-between; word-break: break-all;  }
.cms-main-post-head-txt{ width:75%;padding:0px; margin: 0px; position: relative; display: flex; flex-wrap: wrap; flex-direction: column; justify-content: flex-start; align-items: flex-start; }
#cms-main .cms-main-post-head-txt h1{ width: 100%;  font-size:2rem;  line-height: 2.5rem; font-weight:800; letter-spacing: -0.5px;overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: break-word; word-break: normal;  }
.cms-main-post-head-txt .item-tag{ position: relative!important;  margin:0px 25px 0px 0px; opacity: 1;}

.cms-main-post-info{ width: 15%; align-self: center; display: flex;  flex-wrap: wrap;  justify-content: flex-end; }
.cms-main-post-info .cms-social-icons { margin: 0px 0px 0px 10px; padding: 0px; display: flex;  flex-wrap: wrap;  }
.cms-main-post-info .cms-social-icons li {position: relative;  z-index: 1;  display: flex;  align-items: center; justify-content: center;  text-align: center; width:26px; height: 26px;   margin-right: 5px; font-size: 18px; color: #cbcbcb; background: rgba(0,0,0,.35); border-radius:99rem;  }
.cms-main-post-info .cms-social-icons li i{ color:#cbcbcb; font-size:0.9rem;  width:26px; height: 26px;}
.cms-main-post-info .cms-social-icons li:hover{opacity: .5;}
@media (max-width: 768px) {
.cms-main-post-wrap{ padding: 20px 0px; margin-top:30px;  }    
#cms-main .cms-main-post-head-txt h1{ font-size:1.313rem; line-height: 2rem; }
.cms-main-post-info .cms-social-icons li { width:20px; height: 20px;}
.cms-main-post-info .cms-social-icons li i{ width:20px; height: 20px;}
}

.cms-main-post-btn{ width:10%; margin: 0px; padding:0px;  display: flex; flex-wrap: wrap;   justify-content: center; align-content: center; align-items: center; flex-direction: column; }
#cms-main .cms-main-post p{ width: 100%; line-height: 2rem; margin: 5px 0px; word-break: normal; display: block; }
.cms-main-post h3{margin:15px 0;text-align: left; font-size: 1.75rem; font-weight:400; line-height: 2.5rem;}
.cms-main-post-time time{ margin: 0; padding: 0; color:#000; font-size: 1.5rem; font-weight:700; display: block;  position: relative;   }
.cms-main-post-time time b{   font-weight: 700; font-style: italic;  display: block;}
.cms-main-post-time span { position: relative; display:  block; padding: 0 15px; height: 30px;}
.cms-main-post-time time span:before {  content: ""; position: absolute; top: 50%; left: calc(50% - 15px); width: 30px; height: 1px; background-color: #000; -webkit-transform: rotate( -45deg ); transform: rotate(-45deg);}
@media (max-width: 991.98px) {
.cms-main-post{ width: 100%; padding:10px 15px; }    
.cms-main-post-head .cms-main-post-head-txt{ width:80%; padding: 0px 10px;  }
.cms-main-post-info, .cms-main-post-info .item-tag { width:100%; justify-content: flex-start; }
.cms-main-post-head .cms-main-post-btn{width:20%; }
.cms-main-post h3{  font-size:100%; font-weight: 700;  }     
}
@media (max-width: 767.98px) {
#cms-main .cms-main-post-head-txt h1 {font-size: 1.25rem;}
.cms-main-post-head .cms-main-post-btn a.cms-back-button{ display: none; }
.cms-main-post-head .cms-main-post-head-txt{ width:100%;   }
.cms-main-post-pagination h2 {display: none;}
.cms-main-post{ width: 100%; padding:10px 0px; }       
}

.cms-main-post-txt {width: 100%; max-width: 1100px; margin:0px 15px; display: flex; flex-wrap: wrap;    }
.cms-main-post-pagination{ padding: 0; margin:60px auto 0px auto; display: flex;  justify-content: center; width:100%;   }
.cms-main-post-pagination h2 {  font-size: 0.9rem; font-weight: 400;  color:#000; position: relative;width: 100%;   line-height: 1.5rem; letter-spacing: .18em;overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: break-word;}
.cms-main-post-pagination h2:after { display: block; content: ''; width: 0; height:1px;  background:#000; transition: all .3s ease;}
.cms-main-post-pagination h2:hover:after { width: 100%; }
.cms-main-post-pagination > div { cursor: pointer; width:calc(100%/3 ) ; position: relative;  display: flex; flex-wrap: wrap; justify-content: center; align-self: center; transition: all 0.5s;}
.cms-main-post-pagination .cms-prev { padding-right: 12px; } 
.cms-pagination-text{padding-bottom: 3px;font-size: 0.75rem; color: #888; text-transform: uppercase; transition: all 0.5s;}

.cms-prev .cms-news-btn {  margin-left: auto;}
.cms-prev .cms-news-btn:before {  order: 1;}
.cms-prev .cms-news-btn:after {  border-width: 5px 5px 5px 0;}
.cms-prev:hover h2,.cms-next:hover h2{ color:#888;}
.cms-next { padding-left: 12px; justify-content: flex-end;}
.cms-next .cms-news-btn { order: 0; margin-right: auto;}
.cms-next h2 { order: 1;}
.cms-next .cms-main-post-time {order: 2;}
.cms-news-btn { cursor: pointer; width: 35px;  height: 20px; position: relative; display: flex; align-items: center;}
.cms-news-btn:before { content: ''; width: 30px; height: 1px; background-color: #31315e; display: block;}
.cms-news-btn:after { content: ''; width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 5px; border-color: transparent #31315e; display: block;}
.cms-btn-back { width:auto; color:#6c7280!important; font-weight: 400;  padding: 10px 0px;   display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-justify-content:center;  -ms-flex-pack: center; justify-content: center;  -webkit-align-items: center;  -ms-flex-align: center;  align-items: center;background: #000; border: solid 1px #000;}
.cms-btn-back a{color:#fff!important;}
.cms-btn-back:before,.cms-btn-back::after{  content: ''; width: 30px; height:1px; background:#6c7280;-moz-transition: ease 0.3s; -o-transition: ease 0.3s; -webkit-transition: ease 0.3s;  transition: ease 0.3s;  }
.cms-btn-back:before { margin-right: 20px; margin-left: 5px;}
.cms-btn-back:after { margin-left: 20px; margin-right: 5px;}
.cms-btn-back a:hover { color:#fff!important; }
.cms-btn-back:hover { color:#fff!important; }
.cms-btn-back:hover:before{ background:#fff; -moz-transform: translateX(20%); -ms-transform: translateX(20%); -webkit-transform: translateX(20%); transform: translateX(20%);  }
.cms-btn-back:hover:after{ background:#fff;-moz-transform: translateX(-20%); -ms-transform: translateX(-20%); -webkit-transform: translateX(-20%); transform: translateX(-20%);  }
@media (max-width: 767.98px) {
.cms-btn-back  { font-size:.875rem; padding:5px  10px;}  
.cms-btn-back:before,.cms-btn-back::after{ display: none; }
.cms-main-post-pagination h2 { display: none; }

}

#cms-main .editor .h2 { font-size: 1.875rem;  font-weight: 700;  line-height: 1.875rem;  margin:15px 0; width: 100%; word-break: normal;}
#cms-main .editor .h3 { font-size: 1.5rem;  font-weight: 600;  line-height: 2;  margin:15px 0; width: 100%; word-break: normal;}
#cms-main .editor .p { margin:0px 0px 15px 0; width: 100%; word-break: normal;}
@media (max-width: 767.98px) {


}

.cms-best{ width: 100%; max-width: 1400px; margin:20px auto; padding: 20px 0px;  }
.cms-best .slick-prev{ left:5px;}
.cms-best .slick-next{right: 5px;}
@media (max-width: 767.98px) {
.cms-best .cms-main-news-list li {  width: 100%;margin:0px 5px; padding:0px; }
.cms-best .cms-main-news-list figcaption{ padding:0px 10px;}
.cms-best .cms-main-news-list figcaption h3 a {font-size: 1rem; line-height: 1.5rem;}
}