@font-face {
  font-family: "Noto Sans TC Local";
  src: url("../assets/font/NotoSansTC-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;


}

:root {
  --color-primary: #00a19b;
  --color-primary-dark: #333333;
  --color-text: #333333;
  --color-muted: #5f6f68;
  --color-surface: #ffffff;
  --color-section: #f5f8f6;
  --color-border: #d9e4df;
  --color-focus: #f5b942;
  --font-hero: "Noto Sans TC Local", "Microsoft JhengHei", "PingFang TC", Arial, sans-serif;
  --content-width: 1120px;
  --header-height: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: var(--header-height);
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-hero);
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: 1.5px;
  background: var(--color-surface);
}

body.is-nav-open,
body.is-video-open {
  overflow: hidden;
}

main {
  flex: 1 0 auto;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 4px;
}

.sr-only,
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip: rect(0, 0, 0, 0);
}

.section-anchor {
  height: 1px;
  scroll-margin-top: var(--header-height);
}

h1.seo-h1 {
  height: 0;
  width: 0;
  padding: 0;
  margin: 0;
  transform: scale(0);
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 8px 12px;
  color: #ffffff;
  background: var(--color-primary-dark);
  border-radius: 4px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 100%;
  height: auto;
  background-color: #ffffff;
  box-shadow: 3px 3px 10px #d6edeb;
  transition: top 0.3s ease, transform 0.24s ease;
}

.site-header.is-hidden {
  top: calc(var(--header-height) * -1);
}

.header-inner,
.section-inner,
.footer-inner {
  width: min(100% - 40px, var(--content-width));
  margin: 0 auto;
}

.site-header .container,
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 1200px);
  height: 44px;
  margin: 12px auto;
  padding: 0 30px;
}

.clearfix::after {
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
  content: ".";
}

.head_logo,
.site-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  width: 100%;
  max-width: 316px;
  height: 100%;
  margin: 0;
  color: var(--color-primary);
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
}

.site-logo-link,
.esunlogo {
  display: inline-flex;
  align-items: center;
  width: 100%;
  max-width: 150px;
}

.site-logo-link:hover {
  text-decoration: none;
}

.site-logo-esun {
  width: 100%;
  height: auto;
}

.site-logo-divider,
.logo_line {
  display: inline-block;
  width: 1px;
  height: 24px;
  margin: 0 13px;
  background: #cccccc;
}

.site-logo-gepay {
  display: inline-block;
  width: 100%;
  max-width: 88px;
  height: auto;
  position: relative;
  top: 3px;
}

.site-nav,
.main-nav {
  margin-left: auto;
}

.nav-list,
.anchor {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-list li,
.anchor li {
  margin: 0 10px;
  position: relative;
  font-size: 14px;
}

.nav-list a {
  position: relative;
  overflow: hidden;
  color: #272727;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  line-height: 1.3;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.nav-list li:hover a,
.nav-list a:not(.nav-cta):hover,
.nav-list a:not(.nav-cta)[aria-current="page"],
.nav-list a:not(.nav-cta).is-active {
  color: #009e96;
  font-weight: 700;
  text-decoration: none;
}

.nav-list a:not(.nav-cta)::after {
  display: none;
}

.nav-cta,
.btn_join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 122px;
  min-height: 36px;
  padding: 8px 24px;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1.5px;
  background: #009d95;
  border-radius: 4px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover,
.btn_join:hover {
  color: #ffffff;
  background: #257f7a;
  text-decoration: none;
}

.nav-cta::after {
  display: none;
}

.nav-toggle,
#toggle {
  display: none;
  padding: 0;
  cursor: pointer;
  background: transparent;
  border: 0;
}

.nav-backdrop {
  display: none;
}

/* 回到頂端 */
.gotop-button {
  position: fixed;
  right: 29px;
  bottom: 150px;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 0;
  cursor: pointer;
  background: transparent;
  border: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.gotop-button.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.gotop-button[hidden] {
  display: none;
}

.gotop-button img {
  width: 100%;
  height: auto;
}



@media (max-width: 1024px) {
  #header.on {
    top: 0 !important;
  }

  .site-header {
    height: auto;
    padding-bottom: 5px;
  }

  .site-header .container,
  .header-inner {
    position: relative;
    width: min(100%, 1200px);
    padding: 0 14px;
  }

  .head_logo,
  .site-logo {
    max-width: 293px;
  }

  .nav-toggle,
  #toggle {
    position: absolute;
    top: 50%;
    right: 15px;
    display: block;
    width: 28px;
    height: 30px;
    margin: 0;
    transform: translateY(-50%);
    transition: all 0.5s ease;
  }

  #toggle span {
    position: relative;
    display: block;
  }

  #toggle.on span {
    background-color: transparent;
  }

  #toggle.on span::before {
    transform: rotate(45deg) translate(5px, 5px);
  }

  #toggle.on span::after {
    transform: rotate(-45deg) translate(7px, -8px);
  }

  #toggle span,
  #toggle span::before,
  #toggle span::after {
    width: 100%;
    height: 5px;
    background-color: #ddddde;
    transition: all 0.3s;
    backface-visibility: hidden;
    border-radius: 2px;
  }

  #toggle span::before,
  #toggle span::after {
    position: absolute;
    left: 0;
    content: "";
  }

  #toggle span::before {
    top: -9px;
  }

  #toggle span::after {
    top: 9px;
  }

  .main-nav,
  .site-nav {
    position: absolute;
    top: 56px;
    left: 0;
    z-index: 0;
    width: 100%;
    height: 100vh;
    margin-left: 0;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.98);
    opacity: 0;
    transform: scale(0);
    transform-origin: top center;
    transition: all 0.5s ease;
    pointer-events: none;
  }

  .main-nav.on,
  .site-nav.on {
    z-index: 10;
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }

  .main-nav ul.anchor,
  .nav-list {
    display: block;
    padding: 0;
    margin-top: 3vh;
  }

  .main-nav ul.anchor li,
  .nav-list li {
    margin: 7px;
    padding: 7px;
    text-align: center;
  }

  .main-nav ul.anchor li a,
  .nav-list a {
    display: block;
    min-height: auto;
    padding: 0;
    font-size: 16px;
  }

  .main-nav ul.anchor li a:hover,
  .nav-list a:hover {
    padding-left: 10px;
  }

  .main-nav ul.anchor .btn_join,
  .nav-cta {
    width: 100%;
    max-width: 155px;
    margin: 0 auto;
    font-size: 20px;
  }

  .site-footer .footer-slogan {
    text-align: center;
  }
}
@media (max-width: 768px) {

  .gotop-button {
    width: 40px;
    height: 40px;
    right:16px;
    bottom: 60px;
  }

  .site-footer {
    padding: 0;
  }

  .footer-warning-inner {
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: center;
  }
  .site-footer .footer-slogan {
    font-size: 24px;
  }
  .footer-info-inner {
    gap: 4px 8px;
    font-size: 13px;
  }

  .footer-slogan {
    font-size: 28px;
    white-space: normal;
  }

  .footer-notice {
    font-size: 16px;
  }
}

@media (max-width: 430px) {
  :root {
    --header-height: 60px;
  }

  .site-header .container,
  .header-inner {
    height: 40px;
    margin: 10px auto;
    padding: 0 14px;
  }

  .site-header {
    padding-bottom: 0;
  }

  .header-inner,
  .section-inner,
  .footer-inner {
    width: min(100% - 32px, var(--content-width));
  }

  .site-logo {
    gap: 0;
    max-width: 220px;
  }

  .site-logo-link,
  .esunlogo {
    max-width: 124px;
  }

  .site-logo-esun {
    width: 124px;
  }

  .site-logo-divider {
    height: 20px;
    margin: 0 8px;
  }

  .site-logo-gepay {
    width: 70px;
  }
  .site-footer p, .site-footer a {
    font-size:13px;
  }
}
