@charset "UTF-8";
* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  background-color: #fff;
}

body {
  font-family: Roboto, Helvetica, Arial, "文泉驛正黑", "WenQuanYi Zen Hei", "儷黑 Pro", "LiHei Pro", "黑體-繁", "Heiti TC", "微軟正黑體", "Microsoft JhengHei", sans-serif;
}

main {
  color: #646464;
}

a {
  color: #646464;
  text-decoration: none;
  transition: 0.3s;
}
a:hover {
  color: #3287d2;
  text-decoration: none;
}

.-text-black {
  color: #000;
}

a.-text-black:hover {
  color: #000;
}

.button--black {
  color: #fff;
  background-color: #000;
}
.button--black:hover {
  color: #ebebeb;
  background-color: black;
}

.-text-white {
  color: #fff;
}

a.-text-white:hover {
  color: #b3b3b3;
}

.button--white {
  color: #fff;
  background-color: #fff;
}
.button--white:hover {
  color: #ebebeb;
  background-color: #ccc;
}

.-text-gray {
  color: #646464;
}

a.-text-gray:hover {
  color: rgb(61.75, 61.75, 61.75);
}

.button--gray {
  color: #fff;
  background-color: #646464;
}
.button--gray:hover {
  color: #ebebeb;
  background-color: rgb(74.5, 74.5, 74.5);
}

.-text-red {
  color: #96241e;
}

a.-text-red:hover {
  color: rgb(86.25, 20.7, 17.25);
}

.button--red {
  color: #fff;
  background-color: #96241e;
}
.button--red:hover {
  color: #ebebeb;
  background-color: rgb(107.5, 25.8, 21.5);
}

.-text-orange {
  color: #e66e3c;
}

a.-text-orange:hover {
  color: rgb(189.2386363636, 72.7840909091, 24.2613636364);
}

.button--orange {
  color: #fff;
  background-color: #e66e3c;
}
.button--orange:hover {
  color: #ebebeb;
  background-color: rgb(211.8409090909, 81.4772727273, 27.1590909091);
}

.-text-yellow {
  color: #ffaf19;
}

a.-text-yellow:hover {
  color: rgb(203.5, 132.7173913043, 0);
}

.button--yellow {
  color: #fff;
  background-color: #ffaf19;
}
.button--yellow:hover {
  color: #ebebeb;
  background-color: rgb(229, 149.347826087, 0);
}

.-text-green {
  color: #5aa564;
}

a.-text-green:hover {
  color: rgb(63, 115.5, 70);
}

.button--green {
  color: #fff;
  background-color: #5aa564;
}
.button--green:hover {
  color: #ebebeb;
  background-color: #488450;
}

.-text-bluegreen {
  color: #49a29b;
}

a.-text-bluegreen:hover {
  color: rgb(49.2361702128, 109.2638297872, 104.5425531915);
}

.button--bluegreen {
  color: #fff;
  background-color: #49a29b;
}
.button--bluegreen:hover {
  color: #ebebeb;
  background-color: rgb(57.1574468085, 126.8425531915, 121.3617021277);
}

.-text-blue {
  color: #3287d2;
}

a.-text-blue:hover {
  color: rgb(33.03, 95.42, 150.47);
}

.button--blue {
  color: #fff;
  background-color: #3287d2;
}
.button--blue:hover {
  color: #ebebeb;
  background-color: rgb(37.62, 108.68, 171.38);
}

.-text-lightblue {
  color: #009cff;
}

a.-text-lightblue:hover {
  color: rgb(0, 109.2, 178.5);
}

.button--lightblue {
  color: #fff;
  background-color: #009cff;
}
.button--lightblue:hover {
  color: #ebebeb;
  background-color: rgb(0, 124.8, 204);
}

.latest-case__name {
  color: #49a29b;
}
.latest-case__name:hover {
  color: #193936;
}

.button.see-all-button {
  width: 100%;
}
@media (min-width: 768px) {
  .button.see-all-button {
    width: 300px;
  }
}

.page-title {
  display: flex;
  justify-content: center;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 300px;
  margin-bottom: 0;
}
@media (max-width: 767.98px) {
  .page-title {
    height: 200px;
  }
}
.page-title__icon {
  height: 5rem;
  width: 5rem;
  margin: 0 0.5rem;
  border-radius: 50%;
  background-color: white;
  box-shadow: 0 0 6px #49a29b;
}
@media (max-width: 767.98px) {
  .page-title__icon {
    height: 4rem;
    width: 4rem;
  }
}
.page-title__text {
  margin: 0 0.5rem;
  color: #fff;
  font-size: 2.8rem;
  font-weight: bold;
  letter-spacing: 0.5rem;
  text-shadow: 0 0 6px #49a29b;
}
@media (max-width: 767.98px) {
  .page-title__text {
    font-size: 2.2rem;
  }
}

#page-title-bg {
  background-image: url("../img/case_series/main.jpg");
}

.section {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.latest-case-bg {
  background-color: #eaf6f5;
}

.section__title {
  font-size: 1.8rem;
  color: #000;
  margin-bottom: 1rem;
  font-weight: bolder;
  text-align: center;
}

.latest-case-box {
  box-shadow: 2px 2px 6px #646464;
  border-radius: 0.25rem;
  overflow: hidden;
  background-color: #fff;
}
@media (max-width: 575.98px) {
  .latest-case-box {
    max-height: none;
    width: 250px;
    display: inline-block;
  }
}

#carouselExampleIndicators_m .latest-case-box {
  margin-right: 12px;
}

.latest-case__text-box {
  padding: 2rem 0 2rem 2rem;
}
@media (max-width: 575.98px) {
  .latest-case__text-box {
    padding: 1rem;
  }
}

.latest-case__name {
  font-size: 1.3rem;
  padding-left: 0.5rem;
  margin-bottom: 1rem;
  border-left: 0.5rem solid;
}

.latest-case__img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}
@media (max-width: 575.98px) {
  .latest-case__img {
    height: 250px;
  }
}

@media (max-width: 575.98px) {
  .case__search {
    border-top: 1px solid #cacaca;
    border-bottom: 1px solid #cacaca;
    padding: 1rem 0;
    margin: 1rem 0;
  }
}

.case-section__title-area {
  margin-bottom: 1rem;
}
@media (max-width: 575.98px) {
  .case-section__title-area {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .case-section__title-area .section__title {
    margin-bottom: 0;
  }
}

.case__search-shortcut {
  display: none;
}
@media (max-width: 575.98px) {
  .case__search-shortcut {
    position: absolute;
    right: 0;
    display: inline-flex;
    padding: 0.5em;
    border: 1px solid #cacaca;
    border-radius: 0.25rem;
  }
}

.case__search-row {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  margin: 1rem 0;
}
.case__search-row > *:not(:first-child) {
  margin-left: 4px;
}
.case__search-row > *:not(:last-child) {
  margin-right: 4px;
}
@media (max-width: 575.98px) {
  .case__search-row {
    margin: 0;
    flex-direction: column;
  }
  .case__search-row > * {
    margin: 0.5rem 0 !important;
    height: 38px;
  }
}

.arrangement-button {
  padding: 0.5em;
  width: 2.5rem;
  font-size: 1rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 auto;
  border-radius: 0.25rem;
  background-color: white;
  color: #646464;
  border: 1px solid #ced4da;
}
.arrangement-button:not(.currently):hover {
  background-color: #e6e6e6;
  color: #676767;
  border-color: #b1bbc4;
}
.arrangement-button.currently {
  background-color: #e6e6e6;
}
@media (max-width: 575.98px) {
  .arrangement-button {
    display: none;
  }
}

.case__search-input {
  width: calc(75% + 22px);
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
}
@media (max-width: 575.98px) {
  .case__search-input {
    width: 100%;
  }
}
.case__search-input input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: 0;
}
.case__search-input .search-icon {
  padding: 0.5em;
  width: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ced4da;
  border-top-right-radius: 0.25rem;
  border-bottom-right-radius: 0.25rem;
  cursor: pointer;
}

.see-all-button {
  width: calc(25% - 30px);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 0.25rem;
  background-color: #646464;
}
.see-all-button:hover {
  background-color: #4b4b4b;
}
@media (max-width: 575.98px) {
  .see-all-button {
    width: 100%;
  }
}

.case-group._block {
  margin: 3rem -8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.case-group._block .case {
  width: calc((100% - 64px) / 4);
  margin: 0 8px;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-bottom: 0;
}
@media (max-width: 991.98px) {
  .case-group._block .case {
    width: calc((100% - 48px) / 3);
  }
}
@media (max-width: 767.98px) {
  .case-group._block .case {
    width: calc((100% - 32px) / 2);
  }
}
.case-group._block .case .case__img-box {
  width: 100%;
  margin: 0;
}
@media (max-width: 575.98px) {
  .case-group._block .case .case__img {
    height: 180px;
  }
}
.case-group._block .case .case__body {
  width: 100%;
  align-items: center;
}
.case-group._block .case .case__title {
  margin: 0.5rem 0;
}
.case-group._block .case .case__content, .case-group._block .case .case__button {
  display: none;
}

.case {
  padding: 2rem 0;
  border-bottom: 1px solid #cacaca;
}
.case:last-child {
  border-bottom: 0;
}
.case__img-box {
  margin-right: 2rem;
}
.case__img {
  border-radius: 0.25rem;
  object-fit: cover;
  width: 100%;
  height: 250px;
}
.case__title {
  color: #49a29b;
}
.case__content {
  margin-bottom: 1rem;
}
.case__content p {
  margin-bottom: 0.5rem;
}
.case__button {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 38px;
  align-self: flex-end;
  border-radius: 0.25rem;
  background-color: #49a29b;
  color: #fff;
}
.case__button:hover {
  background-color: #397f79;
  color: #b3b3b3;
}

.pagefooter__legal__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin-top: 1.5rem;
}
.pagefooter__legal__links__item {
  padding: 0 10px;
  white-space: nowrap;
}

#footer {
  padding: 0.5rem 0;
  background-color: #464646;
  color: #cacaca;
  text-align: center;
}
#footer a {
  color: #fff;
}
#footer a:hover {
  color: #b3b3b3;
}

.case-pagination {
  margin: 2rem;
  display: flex;
  justify-content: center;
}

ol.carousel-indicators {
  bottom: -45px;
  z-index: 999;
}

ol.carousel-indicators li {
  border-radius: 16px;
  margin: 1px 10px;
  height: 16px;
  max-width: 16px;
  border: 1px solid #555555;
  background-color: #FFFFFF;
}

ol.carousel-indicators li.active {
  border-radius: 16px;
  margin: 1px 10px;
  height: 16px;
  max-width: 16px;
  border: 1px solid #555555;
  background-color: #555555;
}

.bouncing-box__content {
  display: none;
}

/* .carousel-control-prev { } */
/* .carousel-control-next {} */
.carousel-control-prev-icon {
  background-image: url("https://use.fontawesome.com/releases/v5.0.13/svgs/solid/chevron-left.svg");
  background-size: 20px 45px;
}

.carousel-control-next-icon {
  background-image: url("https://use.fontawesome.com/releases/v5.0.13/svgs/solid/chevron-right.svg");
  background-size: 20px 45px;
}

@media screen and (max-width: 576px) {
  #carouselExampleIndicators {
    display: none;
  }
  #carouselExampleIndicators_m {
    display: block;
  }
}
@media screen and (min-width: 577px) and (max-width: 2700px) {
  #carouselExampleIndicators {
    display: block;
  }
  #carouselExampleIndicators_m {
    display: none;
  }
}
.latest-case-box.carousel-item {
  margin-right: 10px;
  margin-bottom: 10px;
}

.latest-case-box.carousel-item.active {
  box-shadow: 2px 2px 6px #646464;
}

.carousel-item img {
  width: 100%;
  height: 350px;
  -o-object-fit: cover;
  object-fit: cover;
}

.carousel .carousel-indicators button {
  border-radius: 16px;
  margin: 1px 10px;
  height: 16px;
  max-width: 16px;
  border: 1px solid #555555;
  background-color: #FFFFFF;
}

.carousel-indicators button.active {
  border-radius: 16px;
  margin: 1px 10px;
  height: 16px;
  max-width: 16px;
  border: 1px solid #555555;
  background-color: #555555;
}

.case__search-row > *:not(:first-child) {
  margin-left: 4px;
}

a.button {
  color: #fff;
}

.see-all-button {
  width: calc(25% - 30px);
  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;
  position: relative;
  border-radius: 0.25rem;
  background-color: #646464;
}

.page-link:not(:disabled):not(.disabled) {
  cursor: pointer;
}

select.page-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 0;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23646464' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px 6px;
  padding: 0.5rem 1.75rem 0.5rem 0.75rem;
}

.page-link, select.page-select {
  color: #646464;
  background-color: #fff;
}

.page-link {
  position: relative;
  display: block;
  padding: 0.5rem 0.75rem;
  margin-left: -1px;
  line-height: 1.25;
  color: #007bff;
  background-color: #fff;
  border: 1px solid #dee2e6;
}

.page-link, select.page-select {
  color: #646464;
  background-color: #fff;
}

.case-group._block {
  margin: 3rem -8px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: start;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

.case-group._block .case {
  margin-left: 8px;
  margin-right: 8px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  padding: 0;
  border-bottom: 0;
}

.case {
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #cacaca;
}

.item-card {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: left;
  justify-content: left;
  -webkit-box-align: stretch;
  -ms-flex-align: stretch;
  align-items: stretch;
}

.case-group._block .case .case__img-box {
  width: 100%;
  margin: 0;
}

.case__img-box {
  margin-right: 2rem;
}

.item-card__img-box {
  width: 30%;
  min-width: 30%;
  margin-right: 5%;
  -webkit-box-flex: 1;
  -ms-flex-positive: 1;
}

a {
  color: #646464;
}

.carousel.slide {
  text-align: center;
}

.carousel-inner {
  display: inline-block;
  width: 80%;
}

.see-all-button {
  position: relative; /* 作為圖示定位的基準 */
  display: inline-block; /* 或是 inline-flex */
  text-align: center; /* 確保文字置中 */
  padding: 10px 40px; /* 增加左右內邊距，留空間給圖示 */
  min-width: 140px; /* 設定寬度讓置中效果更明顯 */
  line-height: 1.5;
}

.see-all-button i {
  position: absolute; /* 絕對定位 */
  right: 15px; /* 固定在距離右邊 15px 的位置 */
  top: 50%; /* 垂直居中 */
  transform: translateY(-50%); /* 修正垂直置中的位移 */
}

.case__title {
  color: #49a29b;
}

.item-card__title {
  margin-bottom: 0.4rem;
  font-weight: bold;
  font-size: 1.3rem;
}

.case-group._block .case .case__title {
  margin: 0.5rem 0;
  text-align: center;
  line-height: 1.4;
  min-height: 2.8em;
  display: flex;
  align-items: center;
  justify-content: center;
}
