﻿.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%)   }


.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-news-list {width: 100%; display: -ms-flexbox; display: flex;  -ms-flex-wrap: wrap; flex-wrap: wrap; position: relative; margin: 60px -15px; justify-content: space-between; z-index: 1;}
.cms-main-news-list li{ width: calc(100%/3 - 30px); padding: 20px 15px 0 0; list-style: none; margin-top:50px; box-sizing: border-box;  transition: all 0.5s ease 0s;}
.cms-main-news-list li:hover{ background-color: #fff; }
 

.cms-main-news-list figure img { display: block; width: 100%;  -webkit-backface-visibility: hidden; backface-visibility: hidden; transition: all 0.3s linear; -webkit-clip-path: polygon(15% 0%, 100% 0%, 85% 100%, 0% 100%);clip-path: polygon(15% 0%, 100% 0%, 85% 100%, 0% 100%);}
.cms-main-news-list figcaption { box-sizing: border-box; color: #4c4c4c; font-size: 14px; font-weight: 400; line-height: 1.8rem; letter-spacing: 0.5px; padding: 20px 0 0 0;}
.cms-main-news-list figcaption .wrap { width: 100%; display: -ms-flexbox; display: flex; margin: 0;padding: 0;}

.cms-main-news-list figcaption .news-box {position: relative;  width: calc(100% - 46px); box-sizing: border-box;}

.cms-main-news-list figcaption  h3 { margin-top: 20px;margin-bottom: 10px;overflow: hidden; word-break: break-all; word-wrap: break-word; text-overflow: ellipsis;  display: -webkit-box; -webkit-line-clamp: 3;  -webkit-box-orient: vertical;}
.cms-main-news-list figcaption  h3 a { display: block; padding-left: 15px; position: relative; font-size: 1.313rem; font-weight: 700; color: #222!important; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;}
.cms-main-news-list figcaption  h3 a:before { content: ""; position: absolute; top: calc(50% - 9px); left: 0; width: 5px; height: 18px; background-color: #222;}
.cms-main-news-list figcaption p { width: 100%; height: 58px; font-size: 1rem; line-height: 1.5rem; color: #6c7280; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: break-word; word-break: break-all; word-wrap: break-word; }
 /*-------------------*/
/***** 日期 *****/
/*------------------*/
.cms-date span:before { content: ""; position: absolute; top: 50%; left: calc(50% - 15px); width: 30px; height: 1px; background-color: #fff; -webkit-transform: rotate(-60deg);transform: rotate( -60deg);}
.cms-date span { position: relative; display: inline-block; padding: 0 15px; height: 30px;}
.cms-main-news-list .cms-date{  width: 40%; margin-top: -12%; margin-bottom: 10px; right: 0px;  padding: 0px 30px;  height: 40px;  -webkit-clip-path: polygon(15% 0%, 100% 0%, 85% 100%, 0% 100%);clip-path: polygon(15% 0%, 100% 0%, 85% 100%, 0% 100%); background:#1f1f20; 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; opacity: 1;}
.month{ font-size: 1rem; color: #fff;}

.cms-main-news-list .btnbox { margin-top: 25px;}
.cms-main-news-list .btnbox .btn-view  { height: 22px; line-height: 22px;}
.btn-view { position: relative; display: inline-block; height: 45px; line-height: 45px; padding-right: 35px; font-size: 12px; font-weight: 500; color: #000 !important; box-sizing: border-box;}
 /* Underline From Left */
.hvr-underline-from-left { display: inline-block; vertical-align: middle; -webkit-transform: perspective(1px) translateZ(0); transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); position: relative; overflow: hidden;}
.hvr-underline-from-left:before { content: ""; position: absolute; z-index: -1; left: 0; right: 100%; bottom: 0; background: #e60013; height: 4px; -webkit-transition-property: right; transition-property: right; -webkit-transition-duration: 0.3s; transition-duration: 0.3s; -webkit-transition-timing-function: ease-out; transition-timing-function: ease-out;}
.hvr-underline-from-left:hover:before, .hvr-underline-from-left:focus:before, .hvr-underline-from-left:active:before {right: 0;}
  /*-------------------*/
/***** 最新消息列表只有一筆 *****/
/*------------------*/
.cms-news-top{width: 94%; margin:0 auto; padding: 30px; display: flex; flex-wrap: wrap; position: relative;  box-shadow: 0px 3px 15px 0px rgb(162 162 162 / 25%);}
.cms-news-top{padding:6px; }
.cms-news-top figure { width: 40%; padding: 10px; background: #fff; }
.cms-news-top .cms-news-top-inner { width:60%; padding:10px 60px;background: #fff;  }
.cms-news-top .cms-news-top-inner .cms-news-top-inner-box{padding:30px 0px;}


#cms-main .cms-news-top .cms-news-top-inner  h3 a{ width: 100%; margin-bottom:30px; font-size:2.25rem; font-weight:700; line-height: 1.5; color:#e60013; overflow: hidden;  text-overflow: ellipsis;  display: -webkit-box;  -webkit-line-clamp: 2;  -webkit-box-orient: vertical;   }
#cms-main .cms-news-top .cms-news-top-inner  p { width: 100%; font-size: 1rem;color:#000; overflow: hidden;  text-overflow: ellipsis;  display: -webkit-box;  -webkit-line-clamp: 3;  -webkit-box-orient: vertical;   }
.cms-date{ font-size: 0.875rem; font-weight:700;color:#e60013; opacity: .5; }
 @media (max-width: 991.98px) {
.cms-news-top .cms-news-top-inner { width:60%; padding:10px 20px;background: #fff;  }     
.cms-main-news-list li{ width: calc(100%/2 - 30px); padding: 20px 15px 0 0; list-style: none; margin-top:50px; box-sizing: border-box;  transition: all 0.5s ease 0s;}
     
}

@media (max-width: 767.98px) {
.cms-news-top .cms-news-top-inner { width:100%; padding:10px 20px;  }     
.cms-news-top figure { width: 100%;  }
.cms-news-top figcaption { width:100%; margin-left:0;  }
.cms-main-news-list {  margin:0px -20px; }
.cms-main-news-list li{ width:100%; padding: 20px 0px 0 0; margin:50px auto auto auto;  }
}



/*  詳細頁樣式*/
.cms-main-post{width: 90%;margin: 0px auto 30px auto; padding:20px 0px 20px 10%;    line-height: 2rem; display: flex; flex-wrap: wrap; justify-content: flex-end; 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: 700; letter-spacing: .5px; position: relative; margin-bottom: 20px;  margin-top:20px; color:#e60013;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; justify-content: flex-start; }    
.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;    }


.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; padding: 20px 0px;  }
.cms-best .cms-main-news-list .cms-date{  width: 80%; margin-top: -12%; }

 
.cms-best a.new-tag-tcategory{   height: 24px; font-size: 12px;   line-height: 1;   padding:3px; margin: 2px; }
.cms-best .cms-main-news-list figcaption .news-box {  width: calc(100% - 16px);  }
.cms-best .slick-prev {left:3px;}
.cms-best .slick-next{right:-20px!important;}


#cms-main .editor{  width: 100%; margin: auto;}
#cms-main .editor p { font-size: 18px; font-weight: 400;  line-height: 2; letter-spacing: 1.2px; margin:15px 0; width: 100%;}
.editor * { -webkit-box-sizing: border-box; box-sizing: border-box}
.editor h2 { font-size: 1.313rem; font-weight: 700; line-height: 1.5; letter-spacing: 1px; margin: 0; color: #e60013}
@media (max-width:767px) {
.editor h2 { font-size:1.063rem; line-height: 1.33; letter-spacing: .6px}
}
.editor h3 { font-size: 1.125rem; font-weight: 400; line-height: 1.75rem; letter-spacing: normal; margin: 0; color: #2a2a2b}
@media (max-width:767px) {
.editor h3 { font-size: 1rem;  }
}
.editor p { font-size: 1.125rem; font-weight: 400; line-height: 1.75rem; letter-spacing: 1.2px; margin: 0; width: 100%}

@media (max-width:767px) {
.editor p { font-size: 1rem;letter-spacing: 1px;}
 }
 .editor b, .editor strong { font-weight: 700}
 
.editor img { display: block !important; width: 100%; height: auto}
.editor figure { width: 100% !important; height: auto !important}
.editor hr { margin: 20px 0; width: 100%; height: 1px; background-color: #f1f1f1; border: 0}
.editor blockquote{font-size: 2.15rem; font-weight: 400; line-height: 1.5; letter-spacing: normal; position: relative; margin: 0; padding-left: 32px; width: 100%; color: #e60013; -webkit-box-sizing: border-box; box-sizing: border-box}
@media (max-width:767px) {
.editor blockquote { font-size: 1.75rem; line-height: 1.55; letter-spacing: .5px; padding-left: 16px }
}
.editor blockquote:before { width: 8px; height: 100%; content: ""; position: absolute; top: 0; left: 0; display: block; background-color: #e60013; transform: skewx(-25deg);}
@media (max-width:767px) {
.editor blockquote:before {  width: 4px; height: 100%;}
}
.editor blockquote p { font-size: 26px; font-weight: 400; line-height: 1.5; letter-spacing: normal}
@media (max-width:767px) {
.editor blockquote p { font-size: 21px; line-height: 1.52; letter-spacing: .5px}
}
.editor a { font-size: 26px; font-weight: 400; line-height: 1.5; letter-spacing: normal; color: #e60013; -webkit-transition: opacity .2s; transition: opacity .2s}

@media (max-width:767px) {
.editor a { font-size: 21px; line-height: 1.52; letter-spacing: .5px}
}
.editor a:hover { opacity: .6}
.editor iframe { width: 100%; height: auto; display: block; border: 0; outline: 0}

.editor:first-child { margin-top: 0 !important}
.editor :last-child { margin-bottom: 0 !important}
.editor * :first-child { margin-top: 0 !important}
.editor * :last-child { margin-bottom: 0 !important}
