/* banner setting */
.carousel,
.carousel-item {
  height: 100vh;
}

.carousel-inner {
  height: 100%;
}

.carousel-item img {
  object-fit: cover;
  height: 100%;
}

.index-slider .carousel-caption {
  position: absolute;
  top: 40%;
  left: 5%;
  padding-right: 5%;
  padding-left: 5%;
  bottom: auto;
  z-index: 10;
  text-align: left;
  width: 40%;
}

.index-slider .carousel-caption h5,
.index-slider .carousel-caption p {
  letter-spacing: 1px;
  margin-bottom: 0;
  text-shadow: 2px 2px 3px #000;
}

.index-slider .carousel-caption h5 {
  font-size: 32px;
  margin-bottom: 1rem;
}

/* 分頁器 */
.carousel-indicators li {
  width: 10px;
  height: 10px;
}

/* banner rwd */
@media screen and (max-width: 991px) {
  .carousel-caption p {
    font-size: 14px;
  }

  .carousel-inner::after {
    background-image: none;
    z-index: 0 !important;
  }

  .carousel-indicators {
    position: absolute;
    right: 0;
    bottom: -20px;
    left: 0;
    z-index: 15;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: center;
    justify-content: center;
    padding-left: 0;
    margin-right: 15%;
    margin-left: 15%;
    list-style: none;
  }

  .carousel-caption {
    position: absolute;
    right: auto;
    bottom: 36%;
    width: 30%;
    z-index: 10;
    padding-top: 20px;
    padding-bottom: 20px;
    color: #ffffff;
    text-align: center;
    display: inline-block;
    left: 10%;
    font-weight: bolder;
  }

  .index-slider .carousel-caption {
    display: block !important;
    position: initial;
    background: var(--second-match-color) !important;
  }
}

@media screen and (max-width: 576px) {
  .index-slider .carousel-caption h5 {
    font-size: 21px;
  }
}







/* news setting */
.news_in {
  background-image: none !important;
  background-color: #fff;
  max-width: 100%;
  overflow: hidden;
}

.news_mask {
  background-size: cover;
}

/* news item */
.news_mask .container .row .col-md-6.col-sm-12:nth-of-type(1) .indexNews-text .inl {
  width: 25%;
}

.news_mask .container .row .col-md-6.col-sm-12:nth-of-type(1) .indexNews-text .inr {
  width: 75%;
}

.indexNews-text {
  width: 100%;
  display: flex;
  margin: 1rem;
  justify-content: center;
}

.indexNews-text .inr {
  padding: 1rem;
}

/* small item */
.indexNews-text .in-r2 {
  display: flex;
  width: 50%;
}

.in-r1 {
  overflow: hidden;
  height: 100%;
  width: 50%;
}

.in-r1 a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.in-r1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.in-r1 img:hover {
  transform: scale(1.3);
  transition: all 1s;
}

.indexNews-text .in-r2 .int2 {
  display: flex;
}

.indexNews-text .in-r2 .inr .int2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 日期 */
.news_in .indexNews-text .inl {
  padding: 1rem;
  background-color: var(--main-color);
  color: #fff;
  margin: 0.5rem;
}

.date_n {
  font-weight: bolder;
  font-size: 32px;
  color: #fff;
}

.indexNews-text .int1 a {
  font-weight: 700;
}

.int1 a {
  font-size: 18px;
  color: #000;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.int1 {
  border-bottom: 1px solid hsla(0, 0%, 69%, 1) !important;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.int2 {
  color: hsl(0deg 0% 45%) !important;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 14px;
}

.indexNews-text p {
  font-weight: 400;
  line-height: 1.3;
  text-align: left;
  color: #000;
  white-space: normal;
  box-sizing: border-box;
}

.indexNews-text .clear {
  display: none;
}

@media all and (min-width: 320px) {
  .indexNews-text p {
    font-size: 18px;
  }
}

@media all and (min-width: 576px) {
  .indexNews-text p {
    font-size: 22px;
  }
}







/* slogan setting */
.slogan {
  width: 100%;
  padding: 70px 0;
  background-image: none !important;
  background-color: #444444;
}

.slogan h2 {
  color: #ffffff;
  font-family: "moon", "Microsoft JhengHei";
  font-size: 36px;
  margin-bottom: 20px;
  border-bottom: 1px solid hsl(0deg 0% 100% / 28%);
  padding-bottom: 25px;
}

.slogan p {
  line-height: 32px;
  color: #fff;
}

.slogan h3 {
  color: #ffffff;
  font-family: "moon", "Microsoft JhengHei";
  font-size: 16px;
  line-height: 30px;
}







/* ab setting */
section.about {
  padding-top: 0;
  background-position: center;
  padding-bottom: 30px;
  margin-top: -25px;
}

section.about:before {
  background-color: var(--second-color);
}

.about {
  position: relative;
  background-repeat: no-repeat;
  background-position: right center/cover #222;
  background-attachment: fixed;
  color: #fff;
}

.about .container.atop .row {
  overflow: hidden;
}

.atop2 img {
  -webkit-box-shadow: 10px 10px 0px 0px #c4c4c4;
  box-shadow: 10px 10px 0px 0px #c4c4c4;
}

.ab_ind {
  max-width: 500px;
  font-family: "moon", "Microsoft JhengHei";
  font-size: 16px;
  line-height: 25px;
  color: #000;
}

.ab_ind h2 {
  font-family: "moon", "Microsoft JhengHei";
  letter-spacing: 5px;
  margin-bottom: 1.5rem;
}

.ab_ind h2 span {
  color: var(--main-color);
}

/* ab icon */
.ab-feature {
  display: flex;
  justify-content: center;
}

.ab-part {
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.ab-box.icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--main-color);
  width: 110px;
  height: 110px;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  margin-bottom: 1rem;
}

.ab-box.icon img {
  width: 85%;
  height: 85%;
  object-fit: contain;
}

.ab-box.word {
  text-align: center;
  text-transform: uppercase;
}

.ab-box.word h5 {
  font-size: 15px;
}

/* ab rwd */
@media all and (min-width: 992px) {
  section.about:before {
    background: linear-gradient(68deg, var(--second-color) 69%, transparent 50%);
  }
}

@media all and (min-width: 768px) {
  section.about:before {
    background: linear-gradient(68deg, var(--second-color) 79%, transparent 50%);
  }
}







/* pdt setting */
.pro_in.index-product .row{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}





.pro_in {
  padding: 100px 0;
  background-color: #fff;
  background-image: none !important;
  background-attachment: fixed;
  background-size: cover;
  max-width: 100%;
  overflow: hidden;
}

.pro_in .container-fluid.pb100 {
  padding: 0;
}

.pro_in .title01 {
  font-family: "moon", "Microsoft JhengHei"!important;
  color: #333;
  font-size: 40px;
  font-weight: 550;
  padding: 50px 0;
}

.pro_in .slick-next:before,
.pro_in .slick-prev:before {
  color: var(--second-match-color);
}

.pro_in .p_na {
  color: #000000;
}

.pro_in .pro_model {
  color: #fff;
  text-align: center;
  font-size: 12px;
  padding: 3px 10px;
  margin-top: 7px;
  margin-bottom: 7px;
  background-color: var(--main-color);
}

.pro_in1:hover .pli_list {
  position: absolute;
  bottom: 0;
  text-align: center;
  width: 100%;
  background-image: linear-gradient(130deg,
      rgba(var(--main-color-rgba), 0.68) 58.04%,
      rgba(var(--main-color-rgba), 0.72) 58.04%,
      rgba(var(--main-color-rgba), 0.72) 94.3%,
      rgba(var(--main-color-rgba), 1) 94.3%);
}

.pro_in1:hover .pli_list a {
  color: #fff;
}

.pli_list span a {
  padding-top: 9px;
  display: block;
  font-weight: bold;
  font-family: "moon", "Microsoft JhengHei";
}

.pli_list a:hover {
  color: white;
}

.pli_list {
  position: absolute;
  bottom: 0;
  text-align: center;
  width: 100%;
  background-image: linear-gradient(166deg,
      rgba(var(--second-color-rgba), 74%) 2.59%,
      rgba(var(--main-color-rgba), 84%) 100%);
  border-top: 1px solid var(--main-color);
}

.pli_list a {
  color: #fff;
}









/* contact setting */
.contact_in {
  padding: 100px 0;
  background-color: #2b2b2b;
  background-position: center center;
}

.carousel {
  z-index: 1;
}

.itel {
  font-size: 30px;
  color: var(--second-color);
  font-family: "moon", "Microsoft JhengHei";
}

.itel a {
  color: #fff;
  font-weight: bold;
}

.a_img img {
  width: 100%;
  height: auto;
  min-width: 100%;
}

.a_img img:hover {
  transform: scale(1.3);
  transition: all 1s;
}

.a_img {
  overflow: hidden;
  width: 100%;
  min-width: 100%;
  height: auto;
  margin-bottom: 10px;
}

.slick-slide img:hover {
  -webkit-filter: opacity(0.7);
}

@media screen and (min-width: 481px) and (max-width: 768px) {


  .in-r1 {
    width: 100%;
    float: none;
  }

  .in-r2 {
    width: 100%;
    float: none;
  }

  .slogan {
    width: 100%;
    background-size: cover;
    padding: 10% 3% 10% 3%;
    background-position: left center;
  }
}

@media screen and (max-width: 480px) {
  .in-r1 {
    width: 100%;
    float: none;
  }

  .in-r2 {
    width: 100%;
    float: none;
  }

  .slogan {
    width: 100%;
    background-size: cover;
    padding: 10% 3% 10% 3%;
    background-position: left center;
  }
}







/* index rwd setting */
@media (max-width:991px) {

  /* index news */
  .news_mask .container .row {
    display: flex;
    flex-direction: column;
  }

  .news_mask .container .row .col-md-6.col-sm-12 {
    max-width: 100%;
  }

  /* index about */
  .about .container.atop .row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .about .container.atop .col-md-6.col-sm-12 {
    max-width: 100%;
  }

  .ab-box.word h5 {
    font-size: 13px;
  }

  .ab_ind {
    max-width: 100%;
  }

  .ab-feature {
    flex-wrap: wrap;
  }

  .ab-feature .ab-box.icon {
    width: 50px;
    height: 50px;
  }

  /* index pdt */
  .pro_in.index-product .row{
    flex-direction: column;
  }

  .pro_in.index-product .row .col-md-2{
    max-width: 100%;
  }
  .col-md-6.col-sm-12.wow.fadeInRight.animated{
	padding:0;
  }

}

@media (max-width:767px) {
  .news_mask .container .row .col-md-6.col-sm-12:nth-of-type(2) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .news_mask .container .row .col-md-6.col-sm-12:nth-of-type(1) .indexNews-text {
    margin: 1rem 0;
  }

  .news_mask .container .row .col-md-6.col-sm-12:nth-of-type(2) .indexNews-text {
    flex-direction: column;
    display: flex;
    flex-direction: column;
    align-items: center;
  }


  .news_mask .container .row .col-md-6.col-sm-12:nth-of-type(2) .indexNews-text .in-r2 {
    flex-direction: row;
    width: 100%;
    margin: 1rem 0;
  }
  
  .news_mask .container .row .col-md-6.col-sm-12:nth-of-type(1) .indexNews-text .inl,
  .news_mask .container .row .col-md-6.col-sm-12:nth-of-type(1) .indexNews-text .inr {
    width: auto;
  }
  .col-md-6.col-sm-12.wow.fadeInRight.animated{
	padding:0 15px;
  }

}
@media (max-width:576px) {

  /* index slogan */
  .slogan.index-slogan .container.right.webeditor {
    padding: 3rem 1rem;
  }

  /* index contact */
  .contact_in .itel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .contact_in .sim-button {
    margin: 1rem 0;
  }
}
