/* General styles */
@font-face {
  font-family: Montserrat;
  font-weight: 100;
  src: url('../assets/fonts/Montserrat-Thin.ttf') format('ttf');
  font-display: swap;
}

@font-face {
  font-family: Montserrat;
  font-weight: 200;
  src: url('../assets/fonts/Montserrat-ExtraLight.ttf') format('ttf');
  font-display: swap;
}

@font-face {
  font-family: Montserrat;
  font-weight: 300;
  src: url('../assets/fonts/Montserrat-Light.ttf') format('ttf');
  font-display: swap;
}

@font-face {
  font-family: Montserrat;
  font-weight: 400;
  src: url('../assets/fonts/Montserrat-Regular.ttf') format('ttf');
  font-display: swap;
}

@font-face {
  font-family: Montserrat;
  font-weight: 500;
  src: url('../assets/fonts/Montserrat-Medium.ttf') format('ttf');
  font-display: swap;
}

@font-face {
  font-family: Montserrat;
  font-weight: 600;
  src: url('../assets/fonts/Montserrat-SemiBold.ttf') format('ttf');
  font-display: swap;
}

@font-face {
  font-family: Montserrat;
  font-weight: 700;
  src: url('../assets/fonts/Montserrat-Bold.ttf') format('ttf');
  font-display: swap;
}

@font-face {
  font-family: Montserrat;
  font-weight: 800;
  src: url('../assets/fonts/Montserrat-ExtraBold.ttf') format('ttf');
  font-display: swap;
}

@font-face {
  font-family: Montserrat;
  font-weight: 900;
  src: url('../assets/fonts/Montserrat-Black.ttf') format('ttf');
  font-display: swap;
}

:root {
  --uttc-black: #1e1e1e;
  --uttc-white: #fff;
  --uttc-gold: #BEA26E;
  --uttc-gray: #616161;
  --uttc-dark-gray: #4b5165;
  --uttc-light-gray: #e5e5e9;
}

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  height: -webkit-fill-available;
  scroll-behavior: smooth;
  overscroll-behavior: none;
}

body {
  font-family: "Montserrat", "Noto Sans TC", sans-serif;
  font-optical-sizing: auto;
  font-size: 16px;
  font-weight: 400;
  color: var(--uttc-black);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

main section .container,
footer .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 16px;
  position: relative;
  width: calc(100% - 32px);
  height: 100%;
  max-width: 1288px;
  margin: 0 auto;
}

.mobile-only {
  display: none !important;
}

.btn-animate {
  display: block;
  position: relative;
  font-size: 16px;
  line-height: 28px;
  font-weight: 700;
  background-color: var(--uttc-white);
  color: var(--uttc-black);
  padding: 18px 64px;
  width: calc(384px - 128px);
  max-width: calc(100% - 128px - 32px);
  border-radius: 50px;
  text-align: center;
  text-decoration: none;
}

.btn-animate .text-wrapper {
  display: block;
  overflow: hidden;
  height: 28px;
}

.btn-animate .text-wrapper .text {
  display: block;
  transition-property: transform;
  transition-duration: .5s;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-animate .icon-wrapper {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  right: 28px;
  width: 8px;
  height: 8px;
}

.btn-animate .icon-wrapper::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--uttc-gold);
  transform: translate(-50%, -50%) scale(0.26);
  transition-property: transform, opacity;
  transition-duration: .5s;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  content: '';
}

.btn-animate .icon-wrapper img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  opacity: 0;
  transform: translate(-100%, -50%) scale(0.7);
  transition-property: transform, opacity;
  transition-duration: .5s;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-animate:hover .text-wrapper .text {
  transform: translateY(-100%);
}

.btn-animate:hover .icon-wrapper::before {
  transform: translate(-50%, -50%) scale(1);
}

.btn-animate:hover .icon-wrapper img {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.btn-animate.btn-primary {
  background-color: var(--uttc-gold);
  color: var(--uttc-white);
}

.btn-animate.btn-primary .icon-wrapper::before {
  background-color: var(--uttc-white);
}

@media (max-width: 991.98px) {
  .btn-animate {
    font-size: 14px;
  }

  .btn-animate .icon-wrapper {
    right: 15px;
    width: 30px;
    height: 30px;
    background: var(--uttc-gold);
  }

  .btn-animate.btn-primary .icon-wrapper {
    background-color: var(--uttc-white);
  }

  .btn-animate .icon-wrapper::before {
    display: none;
  }

  .btn-animate .icon-wrapper img {
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    opacity: 1;
  }
}

.marquee-container {
  display: flex;
  align-items: center;
  height: 36px;
  width: 100%;
  background-color: var(--uttc-gold);
  color: var(--uttc-white);
  overflow: hidden;
}

.marquee-container img {
  height: 20px;
  filter: brightness(0) invert(1);
}

.marquee-content {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
}

.marquee-container.is-reverse .marquee-content {
  animation: marquee-reverse 20s linear infinite;
}

@media (max-width: 991.98px) {
  .marquee-container {
    height: 30px;
  }

  .marquee-container img {
    height: 18px;
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

@keyframes marquee-reverse {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(0);
  }
}

/* header styles */
header {
  position: fixed;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 120px;
  z-index: 9999;
  background-color: var(--uttc-white);
  opacity: .95;
  transition-property: height;
  transition-duration: .6s;
  transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
}

header::before {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1;
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: #e5e5e9;
  opacity: 0;
  transition-property: top, opacity;
  transition-duration: .6s;
  transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
}

.is-scrolled header {
  height: 75px;
}

.is-scrolled header::before {
  opacity: 1;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  max-width: 1288px;
  width: calc(100% - 32px);
}

header .logo {
  display: flex;
  font-size: 20px;
  color: var(--uttc-gold);
  text-decoration: none;
}

header .logo img {
  width: auto;
  height: 46px;
}

header .header__links {
  display: flex;
  align-items: center;
  gap: 48px;
  justify-content: space-between;
}

@media (max-width: 1199.98px) {

  .en header .header__links,
  .jp header .header__links {
    gap: 18px;
  }

  .en header .header__sublinks,
  .jp header .header__sublinks {
    gap: 8px;
  }
}

header .header__links a {
  position: relative;
  font-size: 14px;
  font-weight: 700;
  color: var(--uttc-black);
  text-decoration: none;
}

header .header__sublinks {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

header .header__sublinks .icon {
  width: 18px;
  margin-left: 8px;
}

header .header__sublinks a {
  display: block;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 14px;
  line-height: 1.75;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  border-style: solid;
  border-width: 1px;
  transition-property: background, color;
  transition-duration: .5s;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

header .header__sublinks a.btn-primary {
  border-color: var(--uttc-gold);
  background: var(--uttc-gold);
}

header .header__sublinks a.btn-secondary {
  border-color: var(--uttc-dark-gray);
  background: var(--uttc-dark-gray);
}

header .header__sublinks a.btn-primary:hover {
  background: #fff;
  color: var(--uttc-gold);
}

header .header__sublinks a.btn-secondary:hover {
  background: #fff;
  color: var(--uttc-dark-gray);
}

header .header__links a {
  transition: all .2s;
}

header .header__links a:hover {
  color: var(--uttc-gold);
}

header .header__lang {
  position: relative;
  display: inline-block;
  font-family: sans-serif;
}

header .header__lang .lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}

header .header__lang .lang-btn .lang-icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

header .header__lang .lang-arrow {
  font-size: 10px;
}

header .header__lang .lang-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  list-style: none;
  padding: 6px 0;
  background: #fff;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  min-width: 70px;
  display: none;
  z-index: 1000;
}

header .header__lang .lang-menu li {
  text-align: center;
}

header .header__lang .lang-menu a {
  display: block;
  padding: 6px 12px;
  text-decoration: none;
  color: #333;
  font-size: 13px;
  border: none;
  border-radius: 0;
}

header .header__lang .lang-menu a:hover {
  background: #f2f2f2;
}

header .header__lang .lang-menu.show {
  display: block;
}

header .header__toggle {
  position: relative;
  display: none;
  width: 28px;
  height: 28px;
  cursor: pointer;
}

header .header__toggle .hamburger {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 18px;
  transform: translate(-50%, -50%);
}

header .header__toggle .hamburger>div {
  width: 28px;
  height: 2px;
  background-color: var(--uttc-black);
  margin: 6px 0;
  transition: 0.7s;
}

header .header__toggle .hamburger>div:nth-child(1) {
  margin-top: 0;
}

header .header__toggle .hamburger>div:nth-child(2) {
  transition: 0.35s;
}

header .header__toggle .hamburger>div:nth-child(3) {
  margin-bottom: 0;
}

header .header__toggle .hamburger.active>div:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

header .header__toggle .hamburger.active>div:nth-child(2) {
  opacity: 0;
}

header .header__toggle .hamburger.active>div:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* .header-menu styles */
.header-menu {
  display: none;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, -100%, 0);
  width: 100%;
  height: 100%;
  background-color: var(--uttc-white);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9998;
  transition: opacity 700ms step-end, transform 700ms cubic-bezier(0.8, 0, 0.55, 0.94), visibility 700ms step-end, background-color 700ms cubic-bezier(0.8, 0, 0.55, 0.94);
}

.header-menu__navs {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12vh;
  padding: 0 29px;
  height: 100vh;
}

.header-menu .header-menu__nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 9vh;
}

.header-menu .header-menu__nav a {
  font-size: 16px;
  font-weight: 700;
  color: var(--uttc-black);
  text-decoration: none;
}

.header-menu .header-menu__nav a:hover,
.header-menu .header-menu__subnav a:hover {
  color: var(--uttc-gold);
}

.header-menu .header-menu__subnav {
  display: flex;
  justify-content: space-between;
  max-width: 100%;
  align-self: center;
  gap: 24px;
}

.header-menu .header-menu__subnav a {
  position: relative;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--uttc-black);
  text-decoration: none;
}

.header-menu .header-menu__subnav a:not(:first-child)::before {
  position: absolute;
  left: -12.5px;
  top: 11.5px;
  transform: translateY(-50%);
  width: 1px;
  height: 15px;
  background-color: rgba(0, 0, 0, .2);
  content: '';
}

.header-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
  transition: opacity 700ms step-start, transform 700ms cubic-bezier(0.8, 0, 0.55, 0.94), visibility 700ms step-start, background-color 700ms cubic-bezier(0.8, 0, 0.55, 0.94);
  transition-delay: 0s;
}

@media (max-width: 991.98px) {

  /* General styles */
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  /* header styles */
  header {
    height: 90px;
  }

  .is-scrolled header {
    height: 75px;
  }

  header .logo img {
    height: 36px;
  }

  header .header__links,
  header .header__sublinks {
    display: none;
  }

  header .header__toggle {
    display: block;
  }

  /* .header-menu styles */
  .header-menu {
    display: block;
  }
}

/* footer styles */
footer {
  background-color: var(--uttc-black);
  color: var(--uttc-white);
  padding: 120px 0;
}

footer a {
  color: var(--uttc-white);
  text-decoration: none;
  display: flex;
}

footer .footer-line {
  border: none;
  border-top: 1px solid rgba(155, 155, 155, 0.2);
  width: 100%;
  margin: 32px 0;
  height: 0;
}

footer .footer-section {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
}

footer .footer-section:first-child {
  padding-bottom: 48px;
  flex-direction: row-reverse;
}

footer .footer-info .logo img {
  width: auto;
  height: 66px;
}

footer .footer-menu__navs {
  display: flex;
  flex: 1;
}

footer .footer-menu__navs {
  flex-direction: row;
}

footer .footer-menu__nav {
  display: flex;
  flex-direction: column;
  width: 20%;
}

footer .footer-menu__nav .nav-link {
  font-size: 16px;
}

footer .footer-menu__nav .nav-link:not(:first-child) {
  margin-top: 32px;
}

footer .footer-menu__subnav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 15px;
}

footer .footer-menu__subnav a {
  display: inline-block;
  width: auto;
  align-self: flex-start;
  position: relative;
  font-size: 14px;
  opacity: 0.7;
  padding-bottom: 1px;
}

footer .footer-menu__subnav a:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background-color: var(--uttc-white);
  transition: width 0.4s ease;
}

footer .footer-menu__subnav a:hover::after {
  width: 100%;
}

footer .footer-address {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

footer .footer-address span {
  display: inline-flex;
  align-items: center;
  font-style: normal;
  font-size: 14px;
}

footer .footer-address .footer-contact {
  display: flex;
  align-items: center;
  gap: 8px;
}

footer .footer-copyright p {
  margin: 0;
  font-size: 12px;
  color: var(--uttc-white);
  opacity: 0.7;
}

footer .footer-lang {
  display: flex;
  gap: 8px;
}

footer .footer-lang a {
  font-size: 12px;
  color: var(--uttc-white);
  opacity: 0.7;
}

@media (max-width: 991.98px) {
  footer {
    padding: 80px 0;
  }

  footer .footer-line {
    margin: 20px 0;
  }

  footer .footer-section:first-child {
    padding-bottom: 40px;
    flex-direction: column;
  }

  footer .footer-info .logo img {
    height: 56px;
  }

  footer .footer-menu__navs {
    flex: 0 0 100%;
    margin-top: 60px;
  }

  footer .footer-menu__nav {
    width: 50%;
  }
}

@media (max-width: 575.98px) {
  .footer-section:last-child {
    flex-direction: column;
  }

  footer .footer-address .footer-contact {
    flex-direction: column;
    align-items: flex-start;
  }

  footer .footer-address .footer-contact .footer-slash {
    display: none;
  }

  footer .footer-lang {
    margin-top: 20px;
  }
}

.grecaptcha-badge {
  display: none;
}
