@charset "utf-8";

/* animation ------------------------------- */

.ani-move-downToUp, .ani-fadeIn-leftToRight {
  animation-fill-mode: forwards;
}

.ani-fadeIn-leftToRight {
  opacity: 0;
}

.ani-move-downToUp {
  transform: translateY(120%);
  animation-name: moveDownToUp;
  animation-duration: .5s;
}

.ani-fadeIn-leftToRight {
  transform: translateX(-100%);
  animation-name: fadeInLeftToRight;
  animation-duration: 1s;
}

.ani-delay-1 {
  animation-delay: .3s;
}

.ani-delay-2 {
  animation-delay: .6s;
}

.ani-delay-3 {
  animation-delay: .9s;
}

.ani-delay-4 {
  animation-delay: 1s;
}

.ani-delay-5 {
  animation-delay: 1.2s;
}

.ani-delay-6 {
  animation-delay: 1.3s;
}

.ani-delay-7 {
  animation-delay: 1.4s;
}

@keyframes moveDownToUp {
  to {
    transform: translateY(0);
  }
}

@keyframes fadeInLeftToRight {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* base: service、project、intro、build 共用 ------------------------------------------ */

.base {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.base-container {
  padding-left: 1rem;
  padding-right: 1rem;
}

.base-body {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.base-head {
  text-align: center;
}

.base-title {
  text-transform: uppercase;
  font-size: 2rem;
  letter-spacing: 10px;
}

.base-btns {
  text-align: center;
}

.base-btn {
  padding: 1rem 3rem;
  display: inline-block;
  text-transform: uppercase;
  text-decoration: none;
  color: #cf7688;
  border: solid 2px #cf7688;
  border-radius: 5px;
  transition-duration: .3s;
}

.base-btn:hover {
  background-color: #f6cdd5;
}

/* service --------------------------------------------- */

.service-items {
  display: flex;
  flex-wrap: wrap;
}

.service-item {
  width: 33.33333%;
  margin-right: -1px;
  margin-bottom: -1px;
  padding: 1.5rem 2rem;
  color: rgba(0, 0, 0, .7);
  border: solid 1px #e6e6e6;
  box-sizing: border-box;
}

.service-title {
  font-size: 1.25rem;
  text-align: center;
}

.service-desc {
  font-size: .95rem;
  line-height: 1.5;
  text-align: justify;
}

.service-icons {
  margin-top: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  font-size: 3rem;
}

.service-icons .fa-solid {
  color: #cf7688;
}

/* project ------------------------------------------- */

.base-project {
  background-image: linear-gradient(#f6f6f6 0, #fff 50%);
}

.project-items {
  display: flex;
  flex-wrap: wrap;
}

.project-item {
  width: 20%;
  margin-bottom: 1rem;
  text-align: center;
}

.project-img {
  max-width: 100%;
  height: auto;
}

/* intro --------------------------------------------- */

.base-intro {
  padding-top: 5rem;
  padding-bottom: 5rem;
  background-image: url("../images/intro-bg.jpg");
  background-size: cover;
  background-attachment: fixed;
  position: relative;
  clip-path: polygon(0 0, 100% 10%, 100% 85%, 0% 100%);
}

.base-intro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: linear-gradient(rgba(0, 0, 0, .8), rgba(0,0,0,.3));
}

.base-intro .base-head {
  text-align: left;
}

.base-intro .base-title {
  letter-spacing: 0;
}

.base-intro .base-title-small, .base-intro .base-title-primary {
  display: block;
}

.base-intro .base-title-small {
  color: #ddd;
  font-size: 2.5rem;
}

.base-intro .base-title-primary {
  margin-top: .5rem;
  color: #fff;
  font-size: 3.5rem;
}

.base-intro .base-btns {
  text-align: left;
}

.base-intro .base-btn {
  color: #fff;
  border-color: #ffff;
}

.base-intro .base-btn:hover {
  background-color: rgba(255, 255, 255, .2);
}

.intro-desc {
  margin-top: 1rem;
  color: #fff;
  line-height: 1.7rem;
}

/* build --------------------------------- */

.base-build .base-body {
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.build-ol {
  color: rgba(255, 255, 255, .9);
}

.build-li {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  position: relative;
  text-align: center;
}

.build-li + .build-li {
  margin-top: 2rem;
}

.build-li::before, .build-li::after {
  content: '';
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  border-radius: 5px;
}

.build-li::before {
  left: -40px;
  transform: skewX(-15deg);
}

.build-li::after {
  right: -40px;
  transform: skewX(-15deg);
}

.build-content {
  position: relative;
  z-index: 1;
}

.build-title {
  font-size: 1.2rem;
  font-weight: 600;
}

.build-desc {
  margin-top: 1rem;
  line-height: 1.5;
}

.build-li-1, .build-li-1::before, .build-li-1::after {
  background-color: #f5ba54;
}

.build-li-2, .build-li-2::before, .build-li-2::after {
  background-color: #eaa666;
}

.build-li-3, .build-li-3::before, .build-li-3::after {
  background-color: #cf7688;
}

/* RWD --------------------------------- */

@media screen and (max-width: 480px) {

  .service-items {
    flex-direction: column;
  }

  .service-item {
    width: auto;
  }

  .base-intro {
    clip-path: polygon(0 0, 100% 5%, 100% 95%, 0% 100%);
  }

  .base-intro .base-head{
    text-align: center;
  }

  .base-intro .base-btns {
    text-align: center;
  }

  .base-build .base-body {
    max-width: 55vw;
  }
  
  .project-item {
    width: 33.33333%;
  }

}