﻿.cms-main-content{background:  #000;}
 .cms-main-banner-img:after { position: absolute;z-index: 0; content: ''; top: 0; left: 0; width: 100%; height: 100%; opacity: .5;background-image: linear-gradient(to top, #dbdcd7 0%, #dddcd7 24%, #e2c9cc 30%, #e7627d 46%, #b8235a 59%, #801357 71%, #3d1635 84%, #1c1a27 100%);}
 
.cms-main-content{background:url("../images/index/bg-coach.jpg") no-repeat left top #fff;}
.cms-main-content:before{position: absolute;z-index: 0; content: ''; top: -60px; left: 0; width: 100%; height:50%;opacity: .2;  -webkit-clip-path: polygon(100% 0, 100% 21%, 88% 56%, 0 32%, 0 0);
clip-path: polygon(100% 0, 100% 21%, 88% 56%, 0 32%, 0 0); background-image: linear-gradient(to top, #cececc 40%, #fff 100%)   }
.cms-gym { width: 100%;  display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap;  justify-content: center; list-style: none; margin: 0px auto; padding: 0px;  }
.cms-gym li{width:31.333%; padding:50px 20px; margin:30px 0px; list-style: none}
.cms-gym li figure { width: 100%;  height: 100%;  position: relative; overflow: hidden;}
.cms-gym li figure > * {  -webkit-transform: translate(0%); -ms-transform: translate(0%);  transform: translate(0%); -webkit-transition: 1s; -o-transition: 1s; transition: 1s; }
.cms-gym 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-gym li figure div span { height: 60px; width: 60px; border: 2px solid #CD1A41; border-radius:99rem; display: inline-block; position: relative;}
.cms-gym li figure div span:before, .cms-gym li figure div span:after { position: absolute;  content: '';  width: 60%; height: 2px; left: 50%; top: 50%; background: #cd1a41; -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-gym li figure:after{ content: ''; right: 0; bottom: -1px; left: auto; bottom: 0; position: absolute; width: 0; height: 0;  border-style: solid; border-width: 0 0 50px 50px; border-color: transparent transparent #fff transparent;}
.cms-gym li  figcaption { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; -webkit-box-align: center; -ms-flex-align: center; align-items: center;}
.cms-tag { display: inline-block; width: auto;margin-top: -8%;  padding: 0px 30px;  height: 40px;  -webkit-transform-origin: left; -ms-transform-origin: left; transform-origin: left;-webkit-clip-path: polygon(15% 0%, 100% 0%, 85% 100%, 0% 100%);clip-path: polygon(15% 0%, 100% 0%, 85% 100%, 0% 100%); background: #e60013; color: #fff; 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-gym 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-gym li figure:hover div { opacity: 1; }
.cms-gym 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-gym 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-gym li .cms-tag h4 { font-size: 1rem; font-weight: 700; margin: 5px 0 5px; }
.cms-gym li figcaption  h3 {font-size: 1.125rem; font-weight: 700;color: #000; margin-bottom: 25px; }
#cms-main .cms-gym li figcaption p { width: 100%; height: 50px; font-size: 0.875rem; font-weight: 400;color: #888;overflow: hidden; line-height: 1.75rem; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: break-word;}


@media (max-width: 991.98px) {
.cms-gym li{ padding:0px 10px 40px 10px;  }
}
@media (max-width: 768px) {
.cms-gym li{width:50%; padding:10px; margin-top: 0px; padding-bottom: 50px; }
.cms-tag { margin-top: -12%;  padding: 0px 20px;} 
.cms-gym li .cms-tag h4 { font-size: 0.875rem; }
     
}


/*  詳細頁樣式*/
.cms-main-post{width: 100%;margin: 0px auto 30px auto; padding:10px 0px 50px 0px;    line-height: 2rem; display: flex; flex-wrap: wrap; justify-content: center; word-break: break-all; }
.cms-main-post-head{width: 100%;margin: 0px 0px 15px 0px;  display: flex; flex-wrap: wrap; justify-content: flex-start; word-break: break-all;  border-bottom: solid 1px rgba(0,0,0,.2);}
.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-post-head-txt{ width: 90%;padding:10px 20px; position: relative; }
#cms-main .cms-main-post-head-txt h1{ font-size: 36px; font-weight: 500; letter-spacing: .5px; position: relative; margin-bottom: 20px;  margin-top:20px; color: #000;overflow: hidden; line-height:1.35; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: break-word; }
.cms-main-post-head-txt:before { width: 100px; height: 100px; content: ""; position: absolute; top: 50px; left: 0; display: block; background-color: rgba(230,0,19,.2); border-radius: 50%;}

#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;}
@media (max-width: 991.98px) {
.cms-main-post{  padding:10px 15px; }    
.cms-main-post-head .cms-main-post-head-txt{ width:80%; padding: 0px 10px;  }
.cms-main-post-info .new-tag,.cms-main-post-info .cms-social-icons{ 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-post-head-txt h1 {font-size: 1.25rem;}
.cms-main-post-pagination h2 {display: none;}
}

.cms-main-post-txt {width: 100%; max-width: 1100px; margin:0px 15px; display: flex; flex-wrap: wrap;    }
.new-tag { display: flex; flex-wrap: wrap; flex-direction: row; width: 100%; 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;   }
#cms-main a.new-tag-tcategory{ color: #e60013;  }
.new-tag-tcategory{ width: auto;max-width: 100%; height: 36px; font-size: 14px; font-weight: 400; line-height: 1.57; letter-spacing: normal; position: relative; padding: 6px 8px 5px 9px; margin: 2px;  color: #e60013; border: 1px solid #e60013; border-radius: 17.5px; -webkit-transition: background-color .2s,color .2s,border-color .2s; transition: background-color .2s,color .2s,border-color .2s;}
 .new-tag-tcategory:hover{ color: #fff; background:#e60013; }
#cms-main a.new-tag-tcategory:hover{ color: #fff;  }


.cms-main-post-pagination{ padding: 0; margin:60px auto 20px auto; display: flex; width:80%; }
.cms-main-post-pagination h2 {  font-size: 1.125rem; font-weight: 400;  color: #000000;}
.cms-main-post-pagination>div { cursor: pointer; width: 100%; position: relative;  display: flex;  flex-wrap: wrap;  align-items: center;}
.cms-main-post-pagination .cms-prev { padding-right: 12px; } 
.cms-prev h2 { margin-left: 24px; margin-right: 12px;}
.cms-prev .cms-btn {  margin-left: auto;}
.cms-prev .cms-btn:before {  order: 1;}
.cms-prev .cms-btn:after {  border-width: 5px 5px 5px 0;}
.cms-prev:hover h2,.cms-next:hover h2{  color:#000;}
.cms-next { padding-left: 12px; justify-content: flex-end;}
.cms-next h2 { margin-left: 12px;  margin-right: 24px;}
.cms-next .cms-btn { order: 0; margin-right: auto;}
.cms-next h2 { order: 1;}
.cms-next .cms-main-post-time {order: 2;}
.cms-btn { cursor: pointer; width: 35px;  height: 20px; position: relative; display: flex; align-items: center;}
.cms-btn:before { content: ''; width: 30px; height: 1px; background-color: #31315e; display: block;}
.cms-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:#000!important; font-weight: 700; border: solid 1px #000;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;  }
.cms-btn-back a{color:#000!important;}
.cms-btn-back:before,.cms-btn-back::after{  content: ''; width: 30px; height:1px; background:#000;-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:#6c7280!important; }
.cms-btn-back:hover { color:#6c7280!important; border: solid 1px #6c7280;}
.cms-btn-back:hover:before{ background:#6c7280; -moz-transform: translateX(20%); -ms-transform: translateX(20%); -webkit-transform: translateX(20%); transform: translateX(20%);  }
.cms-btn-back:hover:after{ background:#6c7280;-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-best{ width: 100%; max-width: 1100px; margin:20px auto;   }
.cms-best .cms-gym li {  width: 100%;margin: 5px 10px;}

 #cms-main .editor p { font-size: 18px; font-weight: 400;  line-height: 2; letter-spacing: 1.2px; margin:15px 0; width: 100%;}




