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

html {
  -webkit-text-size-adjust: 100%;
  font-size: 87.5%;
  scroll-behavior: smooth;
}

@media (max-width: 768px) {
  html {
    font-size: 79.8%;
  }
}

body {
  margin: 0;
  background: #fff;
  color: #232323;
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 1rem;
  line-height: 1.8em;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.astro-header,
.astro-footer,
.site-main,
.page-content {
  position: relative;
}

.astro-header {
  z-index: 20;
}

.site-main {
  min-height: 40vh;
}

.menu-toggle {
  cursor: pointer;
}

.e-loop-item h3.heading {
  line-height: 1.3em;
}

.content-body {
  min-width: 0;
  width: 100%;
}

.turnstile-field {
  height: 1px;
}

.turnstile-field .cf-turnstile {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-message {
  margin: 8px 0 0;
  color: #0061b0;
  font-size: 13px;
}

.form-message[data-status='error'] {
  color: #b00020;
}

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

@media (max-width: 1024px) {
  .astro-header.is-open .nav-menu--dropdown {
    display: block !important;
  }

  .nav-menu--dropdown .sub-menu {
    display: none;
  }

  .nav-menu--dropdown .menu-item-has-children > a[aria-expanded='true'] + .sub-menu {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
