﻿.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: .5;  -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:1rem; font-weight: 400; line-height: 1.57; letter-spacing: normal; position: relative; padding:5px 10px; margin: 2px;  color: #e60013; -webkit-transition: background-color .2s,color .2s,border-color .2s; transition: background-color .2s,color .2s,border-color .2s;}
.new-tag-tcategory:hover{ opacity: .5;}
#cms-main a.new-tag-tcategory:hover{ opacity: .5; }
.new-tag-tcategory::after{content:""; position: absolute;margin:8px 0px 0px 5px; z-index: 1; width: 5px; height: 5px; background:#e60013;border-radius:99rem;  }

.cms-article { width: 100%; margin: 0; padding: 0px 0px;  display: flex; flex-wrap: wrap;}

.cms-article li {width:  calc(100%/2 - 30px);  margin: 20px 15px 70px 15px!important; padding-bottom: 5px;display: flex; flex-wrap: wrap; background: #fff; clear: both; }
.cms-article li:hover figure img { -webkit-transform: scale(1.05); -ms-transform: scale(1.05); transform: scale(1.05);}
.cms-article figure{ max-width: 100%; width: 45%;    height:auto;  position: relative; z-index: 1; line-height: 0; overflow: hidden; -webkit-clip-path: polygon(0 5%, 100% 0, 100% 85%, 0 100%);clip-path: polygon(0 5%, 100% 0, 100% 85%, 0 100%); }
.cms-article figure img{ max-width: 100%;width: 100%;  height: auto; position: relative; z-index: 1; -webkit-backface-visibility: hidden; backface-visibility: hidden;}
.cms-article figure, .cms-article figure img, .cms-article figcaption{ transition: all 0.5s cubic-bezier(0.65, 0.05, 0.36, 1);}


.cms-article figcaption { width:55%; padding:0px 30px;  top: 0;  position: relative; z-index: 1;background: #fff;  }

.cms-article li .new-tag {   margin-top: 0px; }
.cms-article li .new-tag-tcategory{ color: #e60013;}
 #cms-main .cms-article li a.new-tag-tcategory{ color: #e60013;  }
 #cms-main .cms-article figcaption a h3 { font-size: 26px; height:72px; letter-spacing: 1px;  padding: 0px 0;margin: 0px;  color:#e60013; overflow: hidden; word-break: break-all; word-wrap: break-word; text-overflow: ellipsis;  display: -webkit-box; -webkit-line-clamp: 2;  -webkit-box-orient: vertical;}
 .cms-article figcaption p{font-size: 1rem; font-weight: 400; height:96px; padding-top: 9px;  letter-spacing: 1px; position: relative; overflow: hidden;line-height: 1.75rem; text-overflow: ellipsis;  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow-wrap: break-word;}

/* Underline From Left */
.cms-article li {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;}
.cms-article li: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;}
.cms-article li:hover:before, .cms-article li:focus:before, .cms-article li:active:before { right: 0;}
 
@media (max-width: 991.98px) {
 .cms-article li {width:  calc(100% - 30px);  margin: 20px 15px 30px 15px!important; padding-bottom: 5px;display: flex; flex-wrap: wrap; background: #fff; clear: both; }     
}
 @media (max-width: 767.98px) {
 .cms-article figure{  width: 40%; }
.cms-article figcaption { width:60%; padding:0px 10px;  }
 #cms-main .cms-article figcaption a h3 { font-size: 18px; height:48px; }
 #cms-main .cms-article figcaption p{font-size: 0.9375rem; height:96px; line-height: 1.5; }

.new-tag-tcategory{  padding:5px; }
}
 

/*  詳細頁樣式*/
.cms-main-post{width: 90%;margin: 0px 0px 30px 0px; padding:20px 0px 20px 10%;    line-height: 2rem; display: flex; flex-wrap: wrap; justify-content: flex-start; 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; margin: auto; }    
.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-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}


.cms-best{ width: 100%; max-width: 1100px; margin:20px auto; padding: 20px 0px;  }
.cms-best .cms-article li { display: block; width: 100%;margin:0px 20px; padding: 50px 0px; }

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

