﻿
.faq{  width: 100%; max-width: 75%; margin: auto; list-style: none; padding:150px 0px; counter-reset: index; background-color: transparent;}
.faq li { margin:0px auto 20px auto;  padding: 10px 0px ; display: flex; flex-wrap: wrap; border: solid 1px #f0f0f0; border-radius:8px;   counter-increment: index;  background:#fff;   position: relative;}
.faq li::before { z-index: 3; content: counters(index, ".", decimal-leading-zero); font-size: 1.5rem; text-align: right;  font-weight: 500;  min-width: 50px; padding-right: 12px; font-variant-numeric: tabular-nums; align-self:center;background:#f8b500; background-attachment: fixed;  -webkit-background-clip: text; -webkit-text-fill-color: transparent;}
.faq li::after{content: ""; position: absolute; left:0px; top:20px; width: 50px; height:50px; background:#f0f0f0; border-radius:0px 15px 15px 0px;}

.faq li.active .answer {display: block; max-height:100%;  transition: max-height 0.5s ease, padding-bottom 0.5s ease;}
.faq li.active h3.question { color:#000; transition: color 0.5s ease;}
.faq li.active { background-color:#fff; }

.faq h3.question {position: relative; width: calc(100% - 50px); padding:20px 0px 20px 20px; cursor: pointer;font-size: 1.125rem;font-weight:400; color:#333;  transition: color 0.5s ease;}
.faq li .answer { display: none;color: #495057; font-size: 16px; line-height: 24px;width: 100%; max-height: 0; padding:15px 15px 25px 70px; overflow: hidden;  transition: max-height 0.5s ease, padding-bottom 0.5s ease;}
.faq li .answer a{ color:#0ea997; text-decoration: underline!important; }
.faq li .answer a:hover{ color:#70a84a;}

.faq .plus-minus-toggle { position: absolute;bottom: -10px; right: 0px;  z-index: 2;cursor: pointer; width: 50px; height: 50px; border-radius:100px 0px 10px  0px; transition: background-color .3s ease, transform .3s ease;}
.faq .plus-minus-toggle.collapsed { background:#f0f0f0; }




.faq .plus-minus-toggle:before,.faq .plus-minus-toggle:after { content: '';width: 21px;height:2px; right:20%; top: 52%; position: absolute;   transition: transform 500ms ease;}
.faq .plus-minus-toggle:after{transform: rotate(-45deg);  background:#000; }
.faq .plus-minus-toggle:before{ transform: rotate(45deg);  background:#000; }  
.faq .plus-minus-toggle.collapsed:after {transform: rotate(90deg); background:#f8b500;}
.faq .plus-minus-toggle.collapsed:before {transform: rotate(180deg);background:#f8b500;  }
.faq li.active .answer:before{ -ms-transform: translateY(-50%) scaleX(1); transform: translateY(-50%) scaleX(1);}
.faq li.active .answer:before { position: absolute; top: 50%; left: 0;  -ms-transform-origin: left; transform-origin: left; -ms-transform: translateY(-50%) scaleX(0); transform: translateY(-50%) scaleX(0); width: 3%;  height: 2px; background-color: #fff; transition: transform .3s ease;}


/*hover*/
.faq li:hover{border-color:#f8b500;  }
.faq li:hover h3.question {color:#f8b500; }
.faq li:hover .plus-minus-toggle.collapsed { background:#f8b500; }
.faq li:hover .plus-minus-toggle.collapsed:after {  background:#fff;}
.faq li:hover .plus-minus-toggle.collapsed:before { background:#fff;  }




@media (max-width:992px) {
.faq{max-width: 100%;  padding:30px 0px;}    
.faq .question { font-size: 16px;}
.faq h3.question { padding:10px 34px 10px 10px; font-size:0.9375rem; }

}
@media (max-width:420px) {
.faq .plus-minus-toggle { right: 0px; }    
.faq li .answer {padding:15px 15px 25px 60px;}
}

/*  詳細頁樣式*/
.main-post-wrap{ padding: 0px 40px 100px 40px; margin:0px;  }
.main-post{width: 90%;margin: 0px auto 30px auto; padding:20px 0px 20px 20px;    line-height: 2rem; display: flex; flex-wrap: wrap;   word-break: break-all; }
.main-post p a{ color: #000; }
.main-post p a:hover{ color: #a01f35; }
.main-post-head{width: 100%;margin:0px 0px 35px 0px; padding: 20px 0px;  display: flex; flex-wrap: wrap; justify-content: space-between; word-break: break-all;  border-bottom: 1px solid #ebebeb;}
.main-post-head-txt{ width:100%;padding:0px; margin:0px; position: relative; display: flex; flex-wrap: wrap; align-self: center;  }
.main-post-head-txt h1{ width: 80%; font-size:2rem;   font-weight:700;  overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: normal; overflow-wrap: break-word;   }
.main-post-time{ width:100%; display: flex; flex-wrap: wrap;  align-content: center; align-items: center;  }
.news-date { width: 100%; margin-bottom: 10px;  display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center;  -ms-flex-align: center; align-items: center; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between;}

.news-date .date {font-family: "Poppins";color: #12B3A5;font-weight: 700;}
.news-date .date .top {font-size: 32px; }
.news-date .date .bom {font-size: 12px;margin-left: 10px;}
.news-date .new-tag  {padding: 2px 8px;border-radius: 25px;color: #12B3A5;display: block;	font-size: 13px;border: 1px solid #12B3A5; }
 .main-post-head-txt .new-tag{ position: relative; display: flex;  align-self: center; margin-right: 25px; font-weight: 700;  }
.main-post-info{ width: 30%;margin-top: 20px; display: flex;  flex-wrap: wrap;justify-content: flex-start; align-items: center; font-size: 1rem;}
.main-post-info .social-icons { width: auto; margin: 0px 0px 0px 20px; padding: 0px; display: flex; flex-wrap: wrap; }
.main-post-info .social-icons li {position: relative; z-index: 1;  display: flex;  align-items: center; justify-content: center;  text-align: center;  width: 60px; height: 60px;  margin-left:3px; font-size: 18px; background:#b7c3c1;   border-radius:99rem;  }
.main-post-info .social-icons li i{ color:#000; transform: scale(.75); }
.main-post-btn{ width:auto; margin: 0px; padding:0px;  display: flex; justify-content: flex-end;  }
.main-post p{ width: 100%; line-height: 2rem; margin: 5px 0px; word-break: normal; display: block;  }
.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) {
.main-post{ width: 100%; padding:10px 0px; }    
.main-post-time{ width:20%;}
.main-post-head .main-post-head-txt{ width:80%; padding: 0px 10px;  }
.main-post-info{ width:100%; justify-content: flex-start; }
.main-post-head .main-post-btn{width:100%; }
.main-post h3{  font-size:100%; font-weight: 700;  }     
}
@media (max-width: 767.98px) {
.main-post-wrap{ padding: 20px 0px; }
.main-post-head-txt h1 {width: 100%; font-size: 1.25rem;}
.main-post h2{ font-size:120%; font-weight: 700; line-height: 1.875rem; }     
.main-post-pagination h2 {display: none;}
}
.main-post-txt {width: 100%; max-width: 1100px; margin:0px 15px; display: flex; flex-wrap: wrap;    }
.main-post-pagination{ padding: 0; margin:60px auto 30px auto; display: flex;justify-content: center; width:100%;   }
.main-post-pagination h2 {  font-size: 1rem; font-weight: 700;  color:#000; position: relative;width: 100%;   line-height: 1.5rem;  overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: break-word;}
.main-post-pagination h2:after { display: block; content: ''; width: 0; height:1px;  background:#000; transition: all .3s ease;}
.main-post-pagination h2:hover:after { width: 100%; }
.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;}
.main-post-pagination .prev { padding-right: 12px; } 
.pagination-text{padding-bottom: 3px;font-size: 1rem;font-weight: 700;  color: #888; text-transform: uppercase; transition: all 0.5s; position: relative;width: 100%; line-height: 1.5rem;  overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: break-word;} 
.pagination-text:hover{color: #00a0e8;  }
.pagination-text:after { display: block; content: ''; width: 0; height:1px;  background:#00a0e8; transition: all .3s ease;}
.pagination-text:hover:after { width: 100%; }
.prev .news-btn {  margin-left: auto;}
.prev .news-btn:before {  order: 1;}
.prev .news-btn:after {  border-width: 5px 5px 5px 0;}
.prev:hover h2,.next:hover h2{ color:#888;}
.next { padding-left: 12px; justify-content: flex-end;}
.next .news-btn { order: 0; margin-right: auto;}
.next h2 { order: 1;}
.next .main-post-time {order: 2;}
.news-btn { cursor: pointer; width: 35px;  height: 20px; position: relative; display: flex; align-items: center;}
.news-btn:before { content: ''; width: 30px; height: 1px; background-color: #31315e; display: block;}
.news-btn:after { content: ''; width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 5px; border-color: transparent #31315e; display: block;}
 
.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:#14b39f; border: solid 1px #14b39f; border-radius:0px; }
.btn-back a{color:#fff!important;}
.btn-back:before,.btn-back::after{  content: ''; width: 30px; height:1px; background:#fff;-moz-transition: ease 0.3s; -o-transition: ease 0.3s; -webkit-transition: ease 0.3s;  transition: ease 0.3s;  }
.btn-back:before { margin-right: 20px; margin-left: 5px;}
.btn-back:after { margin-left: 20px; margin-right: 5px;}
.btn-back a:hover { color:#fff!important; }
.btn-back:hover { color:#fff!important;  background:#b7c3c1;border-color:#b7c3c1;  }
.btn-back:hover:before{ background:#fff; -moz-transform: translateX(20%); -ms-transform: translateX(20%); -webkit-transform: translateX(20%); transform: translateX(20%);  }
.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) {
.btn-back  { font-size:.875rem; padding:5px  10px;}  
.btn-back:before,.btn-back::after{ display: none; }
}
 