
/*------------------------------------*\
    $RESET
\*------------------------------------*/
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  font-size: 100%;
  vertical-align: baseline;
}

html {
  line-height: 1;
}

ol,
ul {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

caption,
th,
td {
  text-align: left;
  font-weight: normal;
  vertical-align: middle;
}

q,
blockquote {
  quotes: none;
}

q:before,
q:after,
blockquote:before,
blockquote:after {
  content: "";
  content: none;
}

a img {
  border: none;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section,
summary {
  display: block;
}

a,
button {
  display: inline-block;
}

:focus {
  outline: 0;
}

img {
  display: block;
  max-width: 100%
}

a {
  text-decoration: none;
  color: inherit
}

button {
  font: inherit;
  border: none;
  background-color: transparent;
}

button:focus {
  outline: none;
}

* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

/*------------------------------------*\
    $base
\*------------------------------------*/
:root {
  --color-primary: #0027ff;
  --color-primary-dark: #001fd4;
  --color-bg-mobile: #f5f5f5;
  --color-bg-desktop: #ffffff;
  --color-text: #000000;
  --fw-light: 200;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --container-width: 640px;
  --container-x-space: 1.5rem;
  --section-y-space: 50px;
  --header-height: 60px;
  --content-max-width: 50rem;
  --line-height-base-en: 1.5;
  --line-height-base-zh: 1.5;
  --line-height-base-ja: 1.5;
  --line-height-title-en: 1;
  --line-height-title-zh: 1.1;
  --line-height-title-ja: 1.1;
  --font-size-default-mobile-en: 16px;
  --font-size-default-desktop-en: 20px;
  --font-size-default-mobile-zh: 16px;
  --font-size-default-desktop-zh: 20px;
  --font-size-default-mobile-ja: 16px;
  --font-size-default-desktop-ja: 20px;
}

html {
  scroll-behavior: smooth;
}

html[lang="en"]{
  font-size: var(--font-size-default-mobile-en);
}

html[lang="zh-Hant"]{
  font-size: var(--font-size-default-mobile-zh);
}

html[lang="ja"]{
  font-size: var(--font-size-default-mobile-ja);
}

body {
  margin: 0;
  font-family: var(--font-family);
  font-weight: var(--fw-regular);
  background-color: var(--color-bg-mobile);
  color: var(--color-text);
  
}

.lang-en {
  --font-family: "Oswald", sans-serif;
  --font-family-page-text: "Helvetica", "Arial", sans-serif;
  line-height: var(--line-height-base-en);
}

.lang-zh {
  --font-family: "Oswald", "Noto Sans TC", sans-serif;
  --font-family-page-text: "Helvetica", "Arial", "Noto Sans TC", sans-serif;
  line-height: var(--line-height-base-zh);
}

.lang-ja {
  --font-family: "Oswald", "Noto Sans JP", sans-serif;
  --font-family-page-text: "Helvetica", "Arial", "Noto Sans JP", sans-serif;
  line-height: var(--line-height-base-ja);
}

.lang-en h1,
.lang-en h2{
  line-height: var(--line-height-title-en);
}

.lang-zh h1,
.lang-zh h2{
  line-height: var(--line-height-title-zh);
}

.lang-ja h1,
.lang-ja h2{
  line-height: var(--line-height-title-ja);
}

.fw-light {
  font-weight: var(--fw-light);
}

.fw-regular {
  font-weight: var(--fw-regular);
}

.fw-medium {
  font-weight: var(--fw-medium);
}

.fw-semibold {
  font-weight: var(--fw-semibold);
}

.fw-bold {
  font-weight: var(--fw-bold);
}

.desktop-only {
  display: none
}

.mobile-only {
  display: block
}

.u-break-desktop {
  display: inline-block;
}

.u-break-mobile {
  display: block !important;
}

.u-break {
  display: block !important;
}

main {
  width: 100%;
  overflow: hidden;
}

.container {
  margin: 0 auto;
  max-width: var(--container-width);
}

.btn {
  padding: 0.5em 2em;
  color: #ffffff;
  cursor: pointer;
}

.btn--primary {
  background-color: var(--color-primary);
}

@media (hover: hover) {
  .btn {
    transition: 0.3s;
  }

  .btn--primary:hover {
    background-color: #000000;
  }
}

@media (min-width: 768px) {
  :root {
    --container-width: calc(768px - var(--container-x-space) * 2);
  }
}

@media (min-width: 1024px) {
  :root {
    --container-width: calc(1024px - var(--container-x-space) * 2);
    --section-y-space: 100px;
  }

  html[lang="en"]{
    font-size: var(--font-size-default-desktop-en);
  }

  html[lang="zh-Hant"]{
    font-size: var(--font-size-default-desktop-zh);
  }

  html[lang="ja"]{
    font-size: var(--font-size-default-desktop-ja);
  }

  body {
    background-color: var(--color-bg-desktop);
  }

  .desktop-only {
    display: block;
  }

  .mobile-only {
    display: none;
  }

  .u-break-desktop {
    display: block !important;
  }

  .u-break-mobile {
    display: inline-block !important;
  }
}

@media (min-width: 1280px) {
  :root {
    --container-width: calc(1280px - var(--container-x-space) * 2);
  }
}


/*------------------------------------*\
    $header
\*------------------------------------*/
.header {
  position: fixed;
  width: 100vw;
  height: var(--header-height);
  background-color: #000000;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-text);
  opacity: 0;
  transition: 0.3s;
}

.header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 1rem;
  width: 100%;
}

.header__logo>a {
  display: inline-block;
  width: 100%;
  height: 100%;
}

.header__logo {
  width: 65%;
  max-width: 300px;
  display: flex;
  align-items: center;
  aspect-ratio: 200/25;
  background-color: #ffffff;
  -webkit-mask-size: 100%;
  mask-size: 100%;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: center;
  mask-repeat: no-repeat;
  -webkit-mask-image: url('../../assets/images/common/logo-txt.svg');
  mask-image: url('../../assets/images/common/logo-txt.svg');
}

.desktop-menu__item {
  color: var(--color-primary);
  line-height: 1.2;
  font-size: 1rem;
  font-weight: var(--fw-semibold);
}

.desktop-menu__item--has-submenu {
  display: inline-flex;
  align-items: flex-end;
  gap: 6px;
}

.desktop-menu__item-arrow {
  width: 0;
  height: 0;
  margin-bottom: 2px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 12px solid currentColor;
  transition: transform 0.25s ease;
}

.desktop-menu__item--has-submenu.is-active .desktop-menu__item-arrow {
  transform: rotate(180deg);
}

.submenu-is-open .header {
  box-shadow: none;
}

.submenu-is-open .header::after {
  opacity: 1;
}

@media (hover: hover) {
  .desktop-menu__item {
    transition: 0.3s;
  }

  .desktop-menu__item:hover {
    color: var(--color-text);
  }
}

/* dsk language switcher */
.desktop-menu__lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
}

.desktop-menu__lang-trigger {
  width: 56px;
  height: 56px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.desktop-menu__lang-icon {
  display: block;
  width: 30px;
  height: 30px;
  background-color: var(--color-primary);
  -webkit-mask-size: 90%;
  mask-size: 90%;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: center;
  mask-repeat: no-repeat;
  -webkit-mask-image: url('../../assets/images/common/icon-internet.png');
  mask-image: url('../../assets/images/common/icon-internet.png');
}

/* dsk language menu dropdown */
.desktop-menu__lang-menu {
  position: absolute;
  top: var(--header-height);
  right: 0;
  min-width: 124px;
  padding: 8px 0;
  background: var(--color-primary);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  z-index: 20;
}

.desktop-menu__lang-option {
  display: block;
  padding: 0.5em 1em;
  color: #fff;
  text-decoration: none;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0.7;
  font-size: 0.84rem;
}

.desktop-menu__lang-option.is-active {
  font-weight: var(--fw-bold);
  opacity: 1;
}

/* desktop submenu */
.desktop-submenu {
  position: fixed;
  width: 100vw;
  left: 0;
  top: 0;
  z-index: 88;
  /* display: none; */
  background: var(--color-bg-desktop);
  padding: var(--header-height) 0 0 50px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  overflow-y: scroll;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-12px);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease,
    visibility 0.28s ease;
}

.desktop-submenu.is-open {
  /* display: block; */
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.desktop-submenu__inner {
  width: var(--container-width);
  margin: 30px auto;
  display: grid;
  grid-template-columns: 40% 1fr;
  column-gap: 40px;
  align-items: start;
}

.desktop-submenu__title {
  font-size: 3rem;
  line-height: 0.95;
  font-weight: var(--fw-bold);
}

.desktop-submenu__list {
  display: flex;
  flex-direction: column;
}

.desktop-submenu__item {
  display: flex;
  align-items: center;
  column-gap: 1.5rem;
  padding: 1.5rem 0;
  color: #000;
  text-decoration: none;
}

.desktop-submenu__item:nth-child(1) {
  padding-top: 0;
}

.desktop-submenu__item+.desktop-submenu__item {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.desktop-submenu__thumb {
  display: block;
  width: 100%;
  max-width: 200px;
  aspect-ratio: 1.55 / 1;
  overflow: hidden;
  background: #ddd;
}

.desktop-submenu__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.desktop-submenu__label {
  display: inline-block;
  font-size: 2rem;
  line-height: 1;
  font-weight: var(--fw-bold);
  color: var(--color-text);
}

.desktop-submenu__label {
  position: relative;
  z-index: 0;
}

.desktop-submenu__label::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.4em;
  height: 0.22em;
  background: var(--color-primary);
  z-index: -1;
  opacity: 0;
  transition: all 0.3s ease;
  transform: scaleX(0);
  transform-origin: 0 0;
}

.desktop-submenu__item.is-active .desktop-submenu__label::after {
  opacity: 1;
  transform: scaleX(1);
}

@media (max-width: 1023px) {
  .desktop-submenu {
    display: none !important;
  }
}

@media (hover: hover) {
  .desktop-submenu__item:hover .desktop-submenu__label::after {
    opacity: 1;
    transform: scaleX(1);
  }
}


/* mobile menu */
.menu-switcher {
  border: 0;
  background: transparent;
  color: #1437ff;
  font: inherit;
  cursor: pointer;
  padding: 0;
  position: relative;
}

.menu-switcher__label {
  display: none;
  font-size: 1.4rem;
  font-weight: var(--fw-medium);
  line-height: 0.9;
}

.menu-switcher__label--menu {
  display: inline;
}

.menu-switcher.is-open .menu-switcher__label--menu {
  display: none;
}

.menu-switcher.is-open .menu-switcher__label--close {
  display: inline;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  background: #ffffff;
  z-index: 88;
  padding: calc(var(--header-height) + 2rem) 2rem 3rem 2rem;
  overflow-y: scroll;
  opacity: 0;
  max-height: 0;
  visibility: hidden;
  transform: translateY(-12px);
  pointer-events: none;
  transition:
    max-height 0.35s ease,
    opacity 0.28s ease,
    transform 0.28s ease,
    visibility 0.28s ease;
}

.mobile-menu.is-open {
  max-height: 1000px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-menu__link,
.mobile-menu__toggle {
  display: block;
  padding: 1em 0;
  color: var(--color-text);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: var(--fw-semibold);
  line-height: 1.1;
}

.mobile-menu__item+.mobile-menu__item {
  border-top: 1px solid var(--color-primary);
}

.mobile-menu__group--has-submenu {
  position: relative;
}

.mobile-menu__toggle {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 10px;
  cursor: pointer;
}

.mobile-menu__toggle-text {
  display: inline-block;
}

.mobile-menu__toggle-arrow {
  width: 0;
  height: 0;
  margin-bottom: 6px;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 12px solid var(--color-primary);
  transition: transform 0.25s ease;
}

.mobile-menu__group.is-open .mobile-menu__toggle-arrow {
  transform: rotate(180deg);
}

.mobile-submenu {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity 0.24s ease,
    transform 0.24s ease,
    visibility 0.24s ease;
}

.mobile-menu__group--has-submenu.is-open .mobile-submenu {
  max-height: 1000px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-submenu__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0 1rem;
  color: #000;
  text-decoration: none;
  position: relative;
}

.mobile-submenu__item+.mobile-submenu__item {
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  padding-top: 20px;
}

.mobile-submenu__thumb {
  display: block;
  width: 60%;
  max-width: 120px;
  aspect-ratio: 1.55 / 1;
  overflow: hidden;
  background: #ddd;
}

.mobile-submenu__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-submenu__label {
  position: relative;
  z-index: 0;
  display: inline-block;
  font-size: 1.8rem;
  font-weight: var(--fw-bold);
  line-height: 1;
}

.mobile-submenu__label::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.4em;
  height: 0.22em;
  background: var(--color-primary);
  z-index: -1;
  opacity: 0;
  transition: all 0.3s ease;
  transform: scaleX(0);
  transform-origin: 0 0;
}

.mobile-submenu__item.is-active .mobile-submenu__label::after {
  opacity: 1;
  transform: scaleX(1);
}



/* mobile lang */
.mobile-menu__lang-switcher {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.mobile-menu__lang-trigger {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1em;
  min-width: 200px;
  padding: 0.6em 2em;
  border: 0;
  border-radius: 30px;
  background: #000;
  color: #fff;
  font: inherit;
  font-size: 1.2rem;
  font-weight: var(--fw-bold);
  cursor: pointer;
}

.mobile-menu__lang-trigger:focus {
  outline: none;
}

.mobile-menu__lang-trigger-icon {
  display: block;
  width: 2rem;
  height: 2rem;
  aspect-ratio: 1 / 1;
  background-color: #ffffff;
  -webkit-mask-size: 100%;
  mask-size: 100%;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: center;
  mask-repeat: no-repeat;
  -webkit-mask-image: url(../../assets/images/common/icon-internet.png);
  mask-image: url(../../assets/images/common/icon-internet.png);
}

.mobile-menu__lang-current {
  line-height: 1;
}

.mobile-menu__lang-dropdown {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 1;
  width: 100%;
  max-width: 200px;
  padding: 1em 1em 5em 1em;
  background: var(--color-primary);
  border-radius: 30px;
  text-align: center;
  display: none;
}

.mobile-menu__lang-switcher.is-open .mobile-menu__lang-dropdown {
  display: block;
}

.mobile-menu__lang-option {
  display: block;
  width: 100%;
  padding: 12px 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 1.2rem;
  line-height: 1.1;
  cursor: pointer;
}

.mobile-menu__lang-option+.mobile-menu__lang-option {
  margin-top: 1rem;
}

.mobile-menu__lang-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.mobile-menu__lang-close-icon {
  display: block;
  width: 0;
  height: 0;
  margin: 0 auto;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 12px solid #fff;
}

.mobile-menu__lang-switcher.is-open .mobile-menu__lang-dropdown {
  display: block;
}



@media (hover: hover) {
  .desktop-menu__lang-option:hover {
    opacity: 1;
  }

  .desktop-menu__lang-switcher:hover .desktop-menu__lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

@media (min-width: 1024px) {
  .header {
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }

  .header__logo {
    width: 25%;
    background-color: #000000;
  }

  .desktop-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
  }

  .desktop-menu__item {
    font-size: 0.84rem;
  }
}

@media (min-width: 1280px) {
  .desktop-menu {
    gap: 5rem;
  }
}

/*------------------------------------*\
    $loading
\*------------------------------------*/
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  z-index: 1000;
  overflow: hidden;
  background-color: var(--color-bg-desktop);
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading__logo {
  position: relative;
  width: 80%;
  margin: 0 auto;
  transform: translateY(var(--header-height)/2);
}

.loading__logo svg {
  width: 100%;
}

@media (min-width: 1024px) {
  .loading__logo {
    width: 33%;
  }
}

/*------------------------------------*\
    $footer
\*------------------------------------*/
.footer {
  padding: 1rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  justify-items: center;
  gap: 1rem;
  background-color: #ffffff;
}

.footer__link {
  font-size: 1.5rem;
  color: var(--color-primary);
}

.copyright {
  font-size: clamp(0.6rem, 1vw, 0.7rem);
  font-weight: var(--fw-light);
  text-align: center;
}

@media (min-width: 1024px) {
  .footer {
    background-color: #f4f4f4;
  }

  .copyright {
    font-size: 0.85rem;
  }
}

@media (hover: hover) {
  .footer__link {
    transition: 0.3s;
  }

  .footer__link:hover {
    color: var(--color-text);
  }
}

/*------------------------------------*\
    $section
\*------------------------------------*/
.section {
  /*padding: var(--section-y-space) 0;*/
  scroll-margin-top: var(--header-height);
}

.title {
  font-size: clamp(3.2rem, 17vw, 8rem);
}


@media (min-width: 375px) and (max-width: 414px) {
.section {
  padding: var(--section-y-space) 0;
  }
}
@media (min-width: 1024px) {
  .title {
    font-size: clamp(5rem, 7.5vw, 7rem);
  }

}


/*------------------------------------*\
    $animation
\*------------------------------------*/
[data-reveal] {
  opacity: 0;
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform: translateZ(0);

}

span[data-reveal] {
  display: inline-block;
}

html.is-js [data-reveal] {
  opacity: 0;
}

/* body {
  overflow: hidden;
}

.is-complete {
  overflow-y: auto;
  overflow-x: clip;
}

.is-complete .loading {
  display: none;
} */