
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans TC', Roboto,
    'Helvetica Neue', Arial, sans-serif;
}
img,
svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1220px;
  padding-right: 10px;
  padding-left: 10px;
  margin-right: auto;
  margin-left: auto;
}
@media (max-width: 1200px) {
  .container {
    max-width: 980px;
  }
}
@media (max-width: 992px) {
  .container {
    max-width: 750px;
  }
}
@media (max-width: 767px) {
  .container {
    max-width: 100%;
  }
}
/*間隔*/
.p-top-70 {
  padding-top: 70px;
}
@media (max-width: 992px) {
  .p-top-70 {
    padding-top: 60px;
  }
}
@media (max-width: 767px) {
  .p-top-70 {
    padding-top: 0.5rem;
  }
}

.common-bg {
  background-color: #f5f6f7;
}
/*標題公用*/
.common-titles {
  text-align: center;
  margin-bottom: 40px;
}
.common-titles > h1 {
  display: inline-block;
  position: relative;
  font-size: 30px;
  color: #222;
  margin-bottom: 15px;
}
.common-titles > h1:before,
.common-titles > h1:after {
  content: '';
  position: absolute;
  width: 30px;
  height: 2px;
  background-color: #e1e1e1;
  top: 50%;
  margin-top: -1px;
  left: -40px;
}
.common-titles > h1:after {
  left: auto;
  right: -40px;
}
.common-titles p {
  line-height: 160%;
  font-size: 16px;
  color: #999;
}
@media (max-width: 992px) {
  .common-titles > h1 {
    font-size: 26px;
  }
  .common-titles > h1:before,
  .common-titles > h1:after {
    width: 22px;
    height: 2px;
    left: -32px;
  }
  .common-titles > h1:after {
    left: auto;
    right: -32px;
  }
  .common-titles p {
    font-size: 15px;
  }
}
@media (max-width: 767px) {
  .common-titles {
    margin-bottom: 0.3rem;
  }
  .common-titles > h1 {
    font-size: 0.2rem;
    margin-bottom: 0.06rem;
  }
  .common-titles > h1:before,
  .common-titles > h1:after {
    width: 0.2rem;
    left: -0.3rem;
  }
  .common-titles > h1:after {
    left: auto;
    right: -0.3rem;
  }
  .common-titles p {
    font-size: 0.14rem;
  }
}

.stickyBtns {
  position: fixed;
  width: 50px;
  height: 50px;
  border-radius: 50px;
  cursor: pointer;
  background-color: rgba(1, 92, 97, 0.8);
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  z-index: 1;
  transition: 0.5s ease;
  &:hover {
    background-color: rgba(1, 92, 97, 1);
  }
}

.contactUs {
  right: 15px;
  bottom: 30px;
  & .svg-icon {
    fill: #fff !important;
  }
  & p {
    display: none;
    color: #fff;
  }
}
.goToTop {
  display: none;
  flex-direction: column;
  right: 15px;
  color: #fff;
  & .upArrow {
    fill: #fff;
    width: 15px;
    height: 8px;
  }
}
.changePos.contactUs {
  bottom: 100px;
}
.changePos.goToTop {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  bottom: 30px;
  font-size: 12px;
  padding: 12px 13px;
}
.changeBg {
  background-color: rgba(255, 255, 255, 0.8);
  &:hover {
    background-color: rgba(255, 255, 255, 1);
  }
}
.changeBg.contactUs {
  & .messenger {
    fill: #015c61 !important;
  }
  & p {
    color: #015c61;
  }
}
.changeBg.goToTop {
  color: #015c61;
  & .upArrow {
    fill: #015c61 ;
  }
}

@media (max-width: 992px) {
  .contactUs {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 12px 0;
    display: flex;
    gap: 10px;
    height: 44px;
    & .messenger {
      width: 20px;
      height: 20px;
    }
    & p {
      display: flex;
      align-items: center;
      margin-bottom: 0px;
      font-size: 14px;
      line-height: 14px;
    }
  }
  .changePos.contactUs {
    bottom: 0px;
  }
  .changePos.goToTop {
    bottom: 60px;
  }
  .changeBg.contactUs {
    & .messenger {
      fill: #ffffff !important;
    }
    & p {
      color: #ffffff;
    }
  }
}
