/*====================================
# kv
==================================== */
.section-kv {
  max-height: 520px;
  height: 98vh;
  position: relative;
  overflow: hidden;
  padding-top: 0;
  background-color: #fff;
  /* background: url("../img/kv.png") center center no-repeat; */
  background-size: cover;
  transition: all .3s ease-in-out;
}

.section-kv::after {
  z-index: 1;
  content: url('../img/x.png');
  position: absolute;
  bottom: 0;
  left: 0;
  width: 354px;
  height: 417px;
  animation: cloud .4s linear infinite both;
}

@keyframes cloud {
  0% {
    transform: translate(0);
  }

  20% {
    transform: translate(0, -2px);
  }

  50% {
    transform: translate(0, 2px);
  }

  70% {
    transform: translate(0, -2px);
  }

  100% {
    transform: translate(0);
  }
}

.kv-txt {
  width: 100%;
  position: absolute;
  inset: 0;
  color: #333;
  text-align: center;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.kv-txt h1 {
  margin: 1.6rem 0;
  font-size: 3rem;
  margin: 1.6rem 0;
  -webkit-animation: tracking-in-expand-fwd 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
  animation: tracking-in-expand-fwd 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}


@-webkit-keyframes tracking-in-expand-fwd {
  0% {
    letter-spacing: -0.5em;
    -webkit-transform: translateZ(-700px);
    transform: translateZ(-700px);
    opacity: 0;
  }

  40% {
    opacity: 0.6;
  }

  100% {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    opacity: 1;
  }
}

@keyframes tracking-in-expand-fwd {
  0% {
    letter-spacing: -0.5em;
    -webkit-transform: translateZ(-700px);
    transform: translateZ(-700px);
    opacity: 0;
  }

  40% {
    opacity: 0.6;
  }

  100% {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    opacity: 1;
  }
}


.kv-txt h3 {
  margin: 1rem 0;
  background-color: var(--main);
  background: linear-gradient(45deg, var(--main), var(--C3));
  /* background: linear-gradient(90deg, #359b87 0%, #42b6ff 50%, #7c47c2 60%, #4fc7ff 80%, #359b87 100%);
  background-size: 1000% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  -webkit-animation: font-color-smooth 60s linear infinite;
  animation: font-color-smooth 60s linear infinite; */
  color: #fff;
  padding: 5px 10px;
  font-size: 2rem;
  letter-spacing: 0.2rem;
}

@keyframes font-color-smooth {
  0% {
    background-position: 0% 100%;
  }

  100% {
    background-position: 1000% 100%;
  }
}

.kv-txt p {
  line-height: 1.5;
  margin-bottom: 0;
  font-size: 24px;
  letter-spacing: 2px;
}

.kv-txt p span {
  color: var(--main);
}

.kv-txt p span::after {
  content: '|';
  padding: 0 10px;
}

.box-none {
  margin-top: 5rem;
}

@media (max-width: 1200px) {
  .kv-txt h1 {
    font-size: 2.5rem;
    -webkit-animation: none;
    animation: none;
  }

  .kv-txt h3 {
    font-size: 1.8rem;
    letter-spacing: 0;
  }

  .box-none {
    margin-top: 10rem;
  }
}

@media (max-width: 992px) {
  .section-kv {
    background: url("../img/kv-xs.png") center center no-repeat;
    max-height: 600px;
  }

  .section-kv .kv-txt {
    padding: 0 1.4rem;
  }
}

@media (max-width: 576px) {

  .kv-txt h1 {
    font-size: 2.2rem;
    margin: 1rem 0;
    letter-spacing: 0.05rem;
  }

  .kv-txt h3 {
    font-size: 1.3rem;
    line-height: 1.6;
  }

  .kv-txt p {
    font-size: 1.2rem;
    line-height: 1.4;
    text-align: center;
  }

  .kv-txt p span {
    display: block;
  }

  .kv-txt p span::after {
    content: '';
  }
}

/*====================================
# kv動態副標
==================================== */
.overflow {
  height: 30px;
  overflow: hidden;
  position: relative;
  width: 100%;
  display: -webkit-inline-box;
}

#text-animate>h4 {
  font-weight: 400;
  display: inline;
  position: absolute;
  width: 100%;
  margin-top: 0;
  opacity: 0;
  animation: textAnimation 20s ease-in-out infinite;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 0);
}

#text-animate>h4:nth-child(2) {
  animation-delay: 4s;
}

#text-animate>h4:nth-child(3) {
  animation-delay: 8s;
}

#text-animate>h4:nth-child(4) {
  animation-delay: 12s;
}

#text-animate>h4:nth-child(5) {
  animation-delay: 16s;
}

@keyframes textAnimation {
  0% {
    opacity: 1;
    top: 35px;
  }

  8% {
    opacity: 1;
    top: 0;
  }

  17% {
    opacity: 1;
    top: 0;
  }

  25% {
    opacity: 1;
    top: -35px;
  }

  100% {
    opacity: 1;
    top: -35px;
  }
}

@media (max-width:768px) {
  #text-animate>h4 {
    font-size: 18px;
  }
}

@media (max-width:576px) {
  .overflow {
    display: none;
  }
}

/*====================================
# inner-kv
==================================== */
.inner-kv {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  width: 100%;
  height: 300px;
  overflow: hidden;
  background-size: cover !important;
  /* background: url(../img/kv.png) no-repeat center center scroll; */
  background-color: #bceaff;
}

.inner-logo {
  max-width: 500px;
}

@media (max-width:1200px) {
  .inner-kv {
    height: 400px;
  }

  .inner-kv .box-none {
    margin-top: 8rem;
  }

  .inner-logo {
    max-width: 350px;
  }
}

@media (max-width:992px) {
  .inner-kv {
    height: 310px;
  }

  .inner-kv .box-none {
    margin-top: 5rem;
  }

  .inner-logo {
    max-width: 300px;
  }
}

@media (max-width:768px) {
  .inner-logo {
    max-width: 400px;
  }
}

@media (max-width:576px) {

  .inner-logo {
    max-width: 300px;
  }
}