* {
  /* font-family: "微軟正黑體", "Microsoft JhengHei", Arial, sans-serif !important; */
  font-family: "sans-serif" !important;
  letter-spacing: 0.5px;
  line-height: 1.8;
}

body {
  position: relative;
  z-index: 0;
  color: rgb(109, 109, 109);
  background-color: #fcfcfc;
}

/* body:after {
  z-index: -1;
  content: "";
  position: fixed;
  right: 0;
  left: 0;
  top: 0;
  bottom: 0;
  background: url("../image/bg.jpg") no-repeat center/cover, rgb(216, 216, 216);
  background-blend-mode: overlay;
  background-attachment: fixed;
} */

img {
  width: 100%;
}

main .trio-block {
  background: url(../image/ice/banner/woman.png) right bottom;
  background-color: #828282;
  background-size: 200px;
  background-repeat: no-repeat;
  /* border:3px solid rgb(104, 104, 104); */
}

main .txt-content .text-dec b {
  text-shadow: 0px 1px #000;
}

main .img-box {
  box-shadow: 0 8px 10px #2E131F10;
}

main .txt-content {
  background-color: #EBF8F2;
  font-weight: 300;
  padding: 50px !important;
}

@media screen and (min-width: 992px) {
  main .txt-content {
    padding: 80px !important;
  }
}

main .txt-content p {
  color: rgb(109, 109, 109);
  font-size: 1em;
}

main .hero .slogan {
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  padding: 2rem;
  /*  */
  font-size: 1.25rem;
  color: #333;
  /* background-color: #ffffffcc; */
  /* background-color: #fef8e2cc; */
  pointer-events: none;
  opacity: 0;
}

main .banner {
  position: relative;
}

main .hero {
  padding-top: 80px;
}

main .hero figure {
  width: 80%;
  height: 70vh;
  overflow: hidden;
}

main .hero figure img {
  height: 100%;
  object-fit: cover;
}

h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

@media screen and (min-width: 992px) {
  h2 {
    margin-bottom: 40px;
  }
}

.slogan h2 {
  font-size: 1.875rem !important;
}

.hWhiteboard {
  margin: 1.5rem 0 0;
  line-height: 1.875;
  text-align: center;
  font-weight: 600;
  min-width: 265px;
}

/*裝飾*/
.rec {
  width: fit-content;
  height: 100%;
  margin: 30px auto 20px;
  padding: 5px 60px;
  background-repeat: no-repeat;
  background-position: left center;
  background-image: url("../image/ice/deco1.png");
}

/*  */
@media screen and (min-width: 769px) {
  .h-header .navbar .navbar-brand img {
    width: 280px;
  }

  .h-header .navbar {
    padding: 1rem 2rem;
  }
}

.h-header .navbar {
  background-color: white;
}

.h-header .navbar .navbar-brand img {
  width: 160px;
}


.navbar-dark .fa-bars {
  color: rgb(109, 109, 109);
}

.nav-link.dropdown-toggle:hover,
.nav-link.dropdown-toggle:focus,
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
  color: #222;
}

.nav-link,
.navbar-dark .navbar-nav .nav-link {
  color: #246646;
}

.h-header .navbar .navbar-brand {
  color: #246646;
}

.nav-item {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0px;
}

.dropdown-item {
  margin: 1rem 0;
  font-size: 1.25rem;
}

h2 {
  /* text-align: center; */
  letter-spacing: 1px;
  font-size: 2rem;
  color: #246646;
  font-weight: 600;
}

/* 商標設計 */

.hLogo {
  display: block;
  position: relative;
  transition: 0.2s all;
}

.hLogoText {
  /* background-color: #222222cc; */
  color: #333;
  font-size: 1.25rem;
  font-weight: 600;
  background: rgb(255, 208, 128);
  padding: 5px 1rem;
  border-radius: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.4s all;
  margin-top: 1rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 3px 2px 3px rgba(0, 0, 0, 0.536);
}

.hLogoText:hover {
  opacity: 1;
}

.hImgDiv {
  border: 5px solid #fef8e3;
  position: relative;
  opacity: 0.5;
  transition: all 0.3s;
}

.hImgDiv:hover {
  opacity: 1;
}

.whitebutton {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hImgDiv img {
  height: 400px;
  width: 100%;
  object-fit: cover;
}

.flow {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flow img {
  width: 40px;
}

.flow b {
  margin-right: 2rem;
}

:root {
  --swiper-theme-color: #f8cf69;
}

h2 {
  position: relative;
}

.about-dec {
  display: inline-block;
  width: 30px;
  margin-bottom: 10px;
  /* padding-right: 10px; */
}

/* 服務流程 */

.hFlowText {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: #333;
  margin-top: 1rem;
}

.hFlowDetail {
  font-size: 1rem;
  max-width: 200px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.75;
}

.hContactText {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
}

/*  */

#slogon {
  background: url(../image/ice/banner/layout.jpg) center center;
  background-attachment: fixed;
  padding: 4rem;
}

.hSlogonText {
  text-align: center;
  color: #333333;
}

.hSlogonText h3 {
  font-size: 18px;
  font-weight: 600;
}

.hSlogonText h4 {
  font-size: 1.125rem;
  line-height: 1.5;
}

/* logo */
.logo {
  filter: drop-shadow(5px 5px 10px #333);
  -webkit-filter: drop-shadow(5px 5px 10px #333);
}

/*  */

footer {
  margin: 0;
  background-color: #383735;
  text-align: center;
  color: #eee;
}

.hFooterText {
  font-size: 1.125rem;
}

.hFooterText a {
  color: #eee;
}

.copyright {
  font-size: 1rem;
  margin-top: 1rem;
}

.toTop {
  background-color: #fafafa;
  border: 1px solid #ccc;
}

/* a {
  color: inherit;
} */

/* */

.hFixFabFlex {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 5566;
  /*  */
  display: flex;
  flex-flow: column-reverse;
  justify-content: center;
  align-items: center;
}

.hFixFabFlex>a {
  display: block;
}

.hFab {
  width: 48px;
  height: 48px;
  font-size: 32px;
  line-height: 48px;
  text-align: center;
  color: white;
  /*  */
  border-radius: 64px;
  box-shadow: 0px 2px 3px 0px #66666666;

  transition: 0.2s all;
  margin-top: 16px;
}

.hFab:hover {
  box-shadow: 1px 3px 4px 0px #666666cc;
}

.hFabHome {
  background-color: #666;
}

.hFabPhone {
  background-color: #246646;
}

.hFabIg {
  background-color: #C0648C;
}

.hFabLine {
  background-color: #80c89d;
}

.hFabFacebook {
  background-color: #6489df;
}

/* .banner.single-item img {
  max-height: 700px;
} */

.swiper-container {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;

  /* Center slide text vertically */
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
}

.swiper-slide img {
  width: 100%;
}

a {
  color: #333333;
}

html {
  overflow-y: scroll;
}

:root {
  overflow-y: auto;
  overflow-x: hidden;
}

:root body {
  position: absolute;
}

body {
  width: 100vw;

}

figure {
  position: relative;
}

.banner .banner-text {
  z-index: 2;
  width: 70%;
  background: rgba(255, 255, 255, 0.8);
  position: absolute;
  /* padding:6rem; */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  border-radius: 3px;
  padding: 1rem;
}

@media screen and (max-width: 375px) {
  figure .banner {
    z-index: 2;
    width: 80%;
    background: rgba(255, 255, 255, 0.618);
    /* padding:2rem !important; */
  }

  .copyright {
    font-size: 0.6rem;
  }

  #slogon {
    background: url(../image/ice/banner/layout.jpg) center center;
    background-attachment: inherit;
    padding: 4rem;
    background-size: contain;
    background-repeat: no-repeat;
    padding: 2rem 0;
  }

  h1,
  .h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .flow {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }

  .flow b {
    margin-right: 0;
    margin-bottom: 1rem;
  }
}

@media screen and (max-width: 768px) {
  .h-diN {
    display: none;
  }

  .mobile-none {
    display: none;
  }
}



/* ------------------------------- */



/* --------------about----------------- */

#about .container,
#teacher .container,
#services .container {
  width: 100%;
  padding: 0;
  max-width: unset;
}

#about .row,
#teacher .row,
#services .row {
  margin: 0;
}

#about .row .col-lg-7,
#about .row .col-lg-5,
#teacher .row .col-lg-7,
#teacher .row .col-lg-5,
#services .row .col-lg-7,
#services .row .col-lg-5 {
  padding: 0;
}


/* --------------about----------------- */
#about {
  margin-top: 100px;
}

#about .about-box {
  padding: 80px;
  background: url("../image/about/bg.jpg") no-repeat center/cover;
  background-attachment: fixed;
  /* color: white; */
  /* text-shadow: 0 0 1px #000; */
  position: relative;
  color: rgb(68, 68, 68);
  z-index: 0;
  border-radius: 20px;
}

#about .about-box:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: #EBF8F2;
  z-index: -1;
  opacity: 0.7;
}

#about h2 {
  text-align: center;
  /* color: white; */
}

@media (min-width:992px) {
  #about .txt-content {
    padding: 150px 100px !important;
  }
}

/* --------------teacher----------------- */
#teacher ul {
  list-style-position: inside;
}

#teacher blockquote {
  font-size: 1.2em;
  font-style: italic;
}


/* --------------services----------------- */

#services h3 {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 8px;
  padding-bottom: 8px;
  display: inline-block;
  position: relative;
}

#services h3:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  background-color: rgb(109, 109, 109);
  height: 1px;
  width: 80px;
}

#services p {
  font-weight: 300;
}



/* ===========portfolios============= */
#portfolios .container {
  max-width: unset;
  padding: 0 20px;
}

#portfolios {
  background-color: white;
}

#portfolios figure {
  margin: 16px 0;
}

#portfolios figure img {
  border: 1px solid gray;
  border-radius: 10px;
  padding: 5px;
}

#portfolios .tab-box:not(:first-child) {
  display: none;
}

#portfolios .tab-link {
  width: 100%;
  background-color: #FEFCFD;
}

#portfolios .tab-link h2 {
  padding-top: 20px;
  margin-bottom: 0;
}

#portfolios .tab-link a {
  margin: 12px 0;
  display: inline-block;
  text-align: center;
  font-size: 14px;
  line-height: 28px;
  border-radius: 10px;
  background-color: transparent;
  border: 1px solid #246646;
  color: #246646;
  width: 21%;
}

#portfolios .tab-link a.active {
  background-color: #246646;
  color: white;
}

/* --------------works----------------- */
#works {
  padding: 80px 0;
  position: relative;
  z-index: 0;
  background-color: #F6FCF9;
}
#works:after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: url(../image/works/bg.png) no-repeat center/cover;
z-index: -1;
opacity: 0.05;
}

#works .video-box {
  width: 100%;
  height: 0;
  padding-bottom: 180%;
}

#works .video-box video {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

/* --------------contact----------------- */
#contact {
  padding: 80px 10px;
  background-color: #EBF8F2;
}

#contact strong.name {
  font-size: 2.2rem;
  color: #246646;
text-shadow: 1px 1px 1px #00000030;
}

#contact a {
  color: rgb(109, 109, 109);
}

#contact a.icon-btn {
  font-size: 36px;
  margin: 12px;
}

#contact img.qrcode {
  margin-top: 10px;
  width: 150px;
  height: 150px;
  display: block;
}


@media (min-width:992px) {
  #portfolios {
    margin-top: 100px;
    padding: 80px 40px;
  }

  #portfolios figure {
    margin: 28px 0;
  }

  #portfolios figure:hover {
    filter: brightness(0.9);
  }

  #portfolios .row {
    position: relative;
  }

  #portfolios .tab-wrapper {
    width: 78%;
    margin-left: auto;
  }

  #portfolios .tab-link {
    background-color: transparent;
    width: 18%;
    height: fit-content;
  }

  #portfolios .tab-link h2 {
    padding-top: 30px;
    margin-bottom: 20px;
  }

  #portfolios .tab-link a {
    width: 100%;
    margin-top: 10px;
    font-size: 16px;
    line-height: 40px;
  }

  #portfolios .tab-link a:hover {
    background-color: #246646;
    color: white;
  }



  #contact a:hover {
    color: #246646;
  }

}

footer {
  background-color: #EBF8F2;
}

footer p,
footer a {
  color: gray !important;
}

.carousel-control-prev,
.carousel-control-next {
  border: 0;
  background-color: transparent;
}

a.primary-btn {
  width: 100%;
  max-width: 200px;
  background-color: #246646;
  display: inline-block;
  color: white;
  text-align: center;
  padding: 8px;
  margin-top: 24px;
  border-radius: 50vh;
}

@media (min-width:992px) {
  a.primary-btn:hover {
    filter: brightness(0.9);
    text-decoration: none;
  }
}

/* ================load============== */
#load {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  z-index: 99999;
  background-color: white;
  background: url("../image/bg.jpg") no-repeat center/cover, rgb(216, 216, 216);
  background-blend-mode: overlay;
}

.lds-ellipsis {
  display: inline-block;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
}

.lds-ellipsis div {
  position: absolute;
  top: 33px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #EBF8F2;
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.lds-ellipsis div:nth-child(1) {
  left: 8px;
  animation: lds-ellipsis1 0.6s infinite;
}

.lds-ellipsis div:nth-child(2) {
  left: 8px;
  animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(3) {
  left: 32px;
  animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(4) {
  left: 56px;
  animation: lds-ellipsis3 0.6s infinite;
}

@keyframes lds-ellipsis1 {
  0% {
    transform: scale(0);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes lds-ellipsis3 {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(0);
  }
}

@keyframes lds-ellipsis2 {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(24px, 0);
  }
}