@charset "UTF-8";
@font-face {
  font-family: "Noto Sans TC";
  src: url("fonts/NotoSansTC-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900; /* 一次引入所有字重 */
  font-style: normal;
}

@font-face {
  font-family: "Hachi Maru Pop";
  src: url("./fonts/HachiMaruPop-Regular.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
}

@font-face {
  font-family: "RocknRoll One";
  src: url("./fonts/RocknRollOne-Regular.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}
html,
body {
  width: 100%;
  height: 100%;
  font-family: "RocknRoll One", sans-serif;
  scroll-behavior: smooth !important;
  /* overflow-x: hidden; */
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul,
ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  all: unset;
  outline: none;
  box-shadow: none;
}
.preloader {
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}
.load {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  z-index: 9999;
}
.load hr {
  border: 0;
  margin: 0;
  width: 40%;
  height: 40%;
  position: absolute;
  border-radius: 50%;
  animation: spin 2s ease infinite;
}
.load :first-child {
  background: #f39800;
  animation-delay: -1.5s;
}
.load :nth-child(2) {
  background: #f39800;
  animation-delay: -1s;
}
.load :nth-child(3) {
  background: #f39800;
  animation-delay: -0.5s;
}
.load :last-child {
  background: #f39800;
}
@keyframes spin {
  0%,
  100% {
    transform: translate(0);
  }
  25% {
    transform: translate(160%);
  }
  50% {
    transform: translate(160%, 160%);
  }
  75% {
    transform: translate(0, 160%);
  }
}
.main {
  display: flex;
  flex-direction: column;
}
.main,
.navbar,
.footer {
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0s linear 0.5s;
}
.loaded.main,
.loaded.navbar,
.loaded.footer {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease-in-out;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 90px;
  padding: 0 2rem;
  color: #fff;
  white-space: nowrap;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: #f39800;
  opacity: 0.9;

  font-size: 1.5rem;
  font-weight: 600;
}
.navbar-container {
  display: flex;
  align-items: center;
}
.navbar-logo {
  width: 15rem;
  height: auto;
}
.navbar-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.navbar-links {
  display: flex;
  gap: 1rem;
  letter-spacing: 0.1rem;
}
.navbar-links li {
  list-style: none;
}
.navbar-links li a {
  text-decoration: none;
  color: #fff;
  transition: color 0.35s;
  padding: 0.5rem 0.7rem;
  position: relative;
  text-transform: uppercase;
  transition: all 0.5s;
}
.navbar-links li a:hover {
  background-color: #fff;
  color: #f39800;
}
.navbar-links li a:before {
  content: "";
  position: absolute;
  bottom: 12px;
  left: 12px;
  width: 12px;
  height: 12px;
  border: 3px solid #fff;
  border-width: 0 0 3px 3px;
  opacity: 0;
  transition: all 0.3s;
}
.navbar-links li a:hover:before {
  opacity: 1;
  bottom: -7px;
  left: -7px;
}
.navbar-links li a:after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 12px;
  height: 12px;
  border: 3px solid #fff;
  border-width: 3px 3px 0 0;
  opacity: 0;
  transition: all 0.3s;
}
.navbar-links li a:hover:after {
  opacity: 1;
  top: -7px;
  right: -7px;
}
.navbar .hamburger-menu {
  display: none;
}
.navbar .close-menu {
  display: none;
}
.navbar-auth-slide {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 1rem;
  padding-left: 2rem;
  width: 100%;
}
.navbar-auth-slide-box {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.navbar-auth-slide .language-dropdown {
  position: relative;
}
.navbar-auth-slide .language-dropdown .dropdown-toggle {
  display: none;
  position: relative;
  padding-right: 1.5rem;
  background-color: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
}
.navbar-auth-slide .language-dropdown .dropdown-toggle::after {
  content: "▼";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.6rem;
  color: inherit;
}
.navbar-auth-slide .language-dropdown .dropdown-menu {
  position: absolute;
  top: 250%;
  right: -30%;
  text-align: left;
  background-color: #fff;
  border: 1px solid #000;
  border-radius: 5px;
  list-style: none;
  padding: 0.5rem 0;
  display: none;
  z-index: 30;
}
.navbar-auth-slide .language-dropdown .dropdown-menu li {
  padding: 0.5rem 1rem;
}
.navbar-auth-slide .language-dropdown .dropdown-menu li:hover {
  background-color: #f0f0f0;
  transition: 0.35s;
}
.navbar-auth-slide .language-dropdown .dropdown-menu li a {
  text-decoration: none;
  color: #000;
  display: block;
  white-space: nowrap;
}
.navbar-auth-slide .language-dropdown.open .dropdown-menu {
  display: block;
}
@media (max-width: 1024px) {
  .navbar {
    padding: 0.5rem 1rem;
  }
  .navbar-links {
    flex-direction: column;
    align-items: start;
    width: 100%;
    border-bottom: 1px solid #fff;
    padding-bottom: 1.5rem;
    margin-bottom: 1rem;
  }
  .navbar .navbar-auth {
    display: none;
  }
  .navbar .hamburger-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: 0 0;
    border: none;
  }
  .navbar .hamburger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: 0.3s;
  }
  .navbar .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10;
    opacity: 0;
    transition: opacity 0.35s ease-in-out;
    display: none;
  }
  .navbar .menu-overlay.visible {
    display: block;
  }
  .navbar .menu-overlay.open {
    opacity: 1;
    display: block;
  }
  .navbar .navbar-auth-slide {
    position: fixed;
    top: 0;
    right: -300px;
    width: 250px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: start;
    padding: 2rem;
    gap: 1rem;
    transition: right 0.35s ease-in-out;
    z-index: 20;
    background-color: #f39800;
  }
  .navbar .navbar-auth-slide-box {
    flex-direction: column;
  }
  .navbar .navbar-auth-slide.open {
    right: 0;
  }
  .navbar .navbar-auth-slide .close-menu {
    display: flex;
    align-self: flex-end;
    background: 0 0;
    border: none;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
  }
}
.footer {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  background-color: #f39800;
  position: relative;
  color: #fff;
}

.footer .footer-bg2 {
  position: absolute;
  width: 200px;
  right: 0;
  bottom: 0;

  @media (max-width: 640px) {
    opacity: 0.3;
  }
}

.footer .footer-bg2 img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.footer .footer-info {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  width: 100%;
}
.footer .footer-info .footer-logo {
  margin-bottom: 1rem;
  position: relative;
  padding-top: 30px;

  @media (max-width: 640px) {
    padding: 0;
  }
}
.footer .footer-info .footer-logo .logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: 700px;
}
.footer .footer-info .footer-logo .up {
  width: 150px;
  position: absolute;
  left: 10px;
  top: -25px;

  @media (max-width: 768px) {
    display: none;
  }
}
.footer .footer-info .footer-address {
  display: flex;
  justify-content: center;
  align-items: center;
  align-items: flex-start;
  flex-direction: column;
  font-style: normal;
  letter-spacing: 0.1rem;
  white-space: normal;
  font-size: 1rem;
  padding: 0 5%;
  width: 700px;

  @media (max-width: 640px) {
    width: 340px;
  }
}
.footer .footer-address .footer-address__content {
  align-self: center;
}
.footer .footer-info .footer-address h2 {
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 1rem;
  font-size: 28px;
}
.footer .footer-info .footer-address p {
  display: block;
  width: 100%;
  font-size: 1.2rem;

  @media (max-width: 1024px) {
    font-size: 0.8rem;
  }
}

@media (max-width: 1024px) {
  .footer {
    padding: 1rem 2rem;
  }

  .footer .footer-info .footer-logo {
    min-width: none;
  }
}
@media (max-width: 768px) {
  .footer {
    flex-direction: column;
    padding: 2rem 2.5rem;
  }
  .footer .footer-info {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
@media (max-width: 640px) {
  .footer {
    padding: 2rem 1rem;
  }
  .footer .footer-info {
    flex-direction: column;
    width: 100%;
    padding: 0;
  }
  .footer .footer-info .footer-logo {
    width: 15rem;
  }
  .footer .footer-info .footer-address p {
    margin: 0;
  }
}
.cover {
  display: flex;
  justify-content: center;
  align-items: start;
  justify-content: space-between;
  width: 100%;
  height: 100vh;
  background-color: #fffcf5;
  background-position: 50%;
  background-repeat: no-repeat;
  color: #fff;
  padding-top: 90px;
  padding-bottom: 5%;
  line-break: strict;
  word-break: break-word;
  white-space: nowrap;
}

.cover .cover-bg-left {
  width: 40%;
  height: 100%;
  display: flex;
  flex-direction: column;
  max-width: 600px;

  @media (max-width: 1024px) {
    display: none;
  }
}

.cover .cover-bg-left .cube {
  width: 90%;
  height: auto;
  object-fit: cover;
  margin-top: auto;
  max-width: 600px;
}

.cover .cover-bg-right {
  width: 55%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  @media (max-width: 1024px) {
    justify-content: center;
    gap: 2rem;
    width: 90%;
  }

  @media (max-width: 640px) {
    gap: 0.5rem;
  }
}

.cover .cover-bg-right .cube {
  width: 65%;
  height: auto;
  object-fit: cover;
  margin-left: auto;

  @media (max-width: 1024px) {
    margin: 0 auto;
  }

  @media (min-width: 1024px) {
    width: 500px;
    margin-bottom: 2rem;
  }
}

.cover .cover-image-container {
  max-width: 100%;
  border-radius: 20px 0 0 20px;
  background-color: #f39800;

  @media (max-width: 1024px) {
    border-radius: 20px;
  }
}
.cover .cover-image-container img {
  width: 80%;
  height: auto;
  object-fit: cover;
  margin: 0 auto;
}
.cover .cover-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.cover .cover-content .cover-title {
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: 0.5rem;
  color: #f39800;
}

.cover .cover-content .cover-title br {
  display: none;

  @media (max-width: 430px) {
    display: block;
  }
}

.cover .cover-content .cover-title span {
  @media (max-width: 430px) {
    display: none;
  }
}
/* .cover .cover-content .cover-description {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.5rem;
  color: #0f3b72;
  margin-top: 2rem;
  display: inline-block;
  text-align: center;
} */
.cover .cover-btn-container {
  display: flex;
  width: 100%;
  justify-content: space-between;
  padding: 0 1rem;
  gap: 2rem;
  margin-top: 0.5rem;
  align-self: center;
}
@media (max-width: 1024px) {
  .cover {
    padding: 0;
    justify-content: center;
  }
  .cover .cover-content {
    margin-bottom: 2rem;
  }
}
@media (max-width: 640px) {
  .cover .cover-image-container {
    width: 100%;
    padding: 1rem;
  }
  .cover .cover-content {
    width: 100%;
  }
  .cover .cover-content .cover-title {
    width: 100%;
    font-size: 2.5rem;
    letter-spacing: 0.75rem;
    text-align: center;
    scale: 0.85;
    white-space: normal;
  }
  /* .cover .cover-content .cover-description {
    width: 90%;
    font-size: 1.8rem;
    letter-spacing: 0.1rem;
  } */
  .cover .cover-btn-container {
    flex-direction: column;
    text-align: center;
  }
}

.cover-btn {
  display: inline-block;
  text-decoration: none;
  text-align: center;
  background-image: url(assets/images/btn-cover.png);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: 0.1rem;
  padding: 2rem 3rem;
  width: 280px;
  min-width: 40%;
  cursor: pointer;
  transition: all 0.35s ease;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
  align-self: center;

  @media (max-width: 640px) {
    font-size: 1.2rem;
    width: 200px;
  }
}
.cover-btn:hover {
  filter: drop-shadow(0 15px 6px rgba(0, 0, 0, 0.7));
}

.about {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100%;
  background-color: #fffcf5;
  position: relative;
  padding: 90px 0;

  @media (max-width: 1024px) {
    flex-direction: column;
  }
  @media (max-width: 430px) {
    padding: 10px 0;
    padding-top: 30px;
  }
}

.about .about-bg1 {
  position: absolute;
  top: 90px;
  right: 0;
  width: 300px;
  height: auto;
  @media (max-width: 1024px) {
    top: 0;
  }
  @media (max-width: 430px) {
    width: 100px;
  }
}

.about .about-bg1 img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.about .about-bg2 {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 200px;
  height: auto;

  @media (max-width: 1024px) {
    width: 100px;
  }

  @media (max-width: 430px) {
    width: 75px;
  }
}

.about .about-bg2 img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.about .about-images {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 50%;

  @media (max-width: 1024px) {
    flex-direction: row;
    width: 100%;
    padding: 0 2rem;
  }

  @media (max-width: 640px) {
    flex-direction: column;
  }
}

.about .about-images .about-image {
  width: 100%;
  display: flex;
}

.about .about-images .about-image img {
  width: 65%;
  height: auto;
  object-fit: contain;

  @media (max-width: 1024px) {
    width: 100%;
  }
}

.about .about-images :nth-child(2) img {
  margin-left: auto;
  width: 60%;
  @media (max-width: 1024px) {
    width: 100%;
    margin: 0;
  }
}

.about .about-content {
  width: 50%;
  position: relative;
  padding-top: 50px;

  @media (max-width: 1024px) {
    width: 100%;
  }
}

.about .about-content1 {
  width: 300px;
  display: flex;
  position: absolute;
  top: 1px;
  left: -30px;
  z-index: 10;

  @media (max-width: 1024px) {
    display: none;
  }
}

.about .about-content1 img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.about .about-content2 {
  width: 700px;
  display: flex;
  position: relative;

  @media (max-width: 1024px) {
    margin: 0 auto;
  }
  @media (max-width: 640px) {
    width: 100%;
  }
}

.about .about-content2 img {
  width: 100%;
  height: auto;
  object-fit: contain;

  @media (max-width: 640px) {
    display: none;
  }
}

.about .about-content2 p {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -40%);
  width: 450px;
  color: #fff;
  line-height: 1.8rem;
  letter-spacing: 0.1rem;

  @media (max-width: 640px) {
    width: 90%;
    height: auto;
    color: #f39800;
    position: relative;
    transform: none;
    left: auto;
    top: auto;
    margin: 0 auto;
    margin-bottom: 120px;
  }
}

.service {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  color: #fff;
}

.service .service-item-container {
  background-image: url(assets/images/service-bg.png);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: left center;
  max-width: 50%;
  min-width: 700px;
  height: calc(100vh - 90px);
  margin-top: auto;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;

  @media (max-width: 767px) {
    min-width: 0;
    max-width: none;
    width: 100%;
    padding-right: 30px;
    background-image: url(assets/images/service-bg-s2.png);
  }

  @media (max-width: 430px) {
    background-image: url(assets/images/service-bg-s1.png);
  }
}

.service .service-item-container .service-item {
  height: 10.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-left: 2rem;
  position: relative;

  @media (min-width: 1000px) {
    pointer-events: none;
  }

  @media (max-width: 767px) {
    height: 9rem;
  }
}

.service-item:nth-child(1) {
  transform: translateY(80px);
}
.service-item:nth-child(2) {
  transform: translateY(20px);
  @media (max-width: 430px) {
    transform: translateY(45px);
  }
}
.service-item:nth-child(3) {
  transform: translateY(0);
}
.service-item:nth-child(4) {
  transform: translateY(-20px);
  @media (max-width: 430px) {
    transform: translateY(-45px);
  }
}
.service-item:nth-child(5) {
  transform: translateY(-80px);
}

/* .service-item.item1::after {
  content: "専門スタッフが迅速に対応し、プレイヤーの疑問や問題を解決。快適なゲーム体験と高い満足度をサポートします。";
  color: #8dc63f;
  position: absolute;
  left: 102%;
  top: 50%;
  transform: translateY(-56%);
  font-size: 14px;
  line-height: 1.5;
  z-index: 1;
  padding: 10px;
  border-radius: 5px;
  width: 500px;
} */

.service .service-item-container .service-item img {
  object-fit: contain;
  height: 100%;
  width: auto;
}

.service .service-item-container .service-item .service-title {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;

  font-size: 2.5rem;

  @media (max-width: 767px) {
    font-size: 0.85rem;
  }

  @media (max-width: 430px) {
    font-size: 0.7rem;
    white-space: nowrap;
    margin-right: 0.2rem;
  }
}

.service .service-texts {
  max-width: 50%;
  height: calc(100vh - 90px);
  margin-top: auto;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;

  @media (max-width: 1000px) {
    display: none;
  }
}

.service .service-text {
  height: 10.5rem;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 1rem;
}

.service-text:nth-child(1) {
  transform: translateY(80px);
  color: #8dc63f;
}
.service-text:nth-child(2) {
  transform: translateY(32px);
  color: #ffcd40;
  @media (max-width: 430px) {
    transform: translateY(45px);
  }
}
.service-text:nth-child(3) {
  transform: translateY(6px);
  color: #3ac2d8;
}
.service-text:nth-child(4) {
  transform: translateY(-20px);
  color: #d33d81;
  @media (max-width: 430px) {
    transform: translateY(-45px);
  }
}
.service-text:nth-child(5) {
  transform: translateY(-62px);
  color: #713fd1;
}

.works {
  min-height: 100vh;
  min-width: 100%;
  padding: 2rem 8rem;
  padding-top: 10rem;
  /* background-image: url(assets/images/background/works-ex.png); */
  background-size: cover;
  background-position: 50%;
  background-repeat: no-repeat;

  /* 暫時隱藏 */
  display: none;
}

.works .works-title {
  display: inline-block;
  color: #f39800;
  font-style: italic;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.5rem;
  margin-left: 5rem;
  position: relative;
}
.works .works-title::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 0.9rem;
  aspect-ratio: 1/1;
  background-color: #fff;
  border-radius: 50%;
  border: 0.45rem solid #f39800;
  margin-right: 1rem;
}
.works .works-slider {
  max-width: 1000px;
  height: auto;
  margin: 0 auto;
  padding: 3rem 0;
  position: relative;
}
.works .works-slider .swiper {
  width: 100%;
  padding-bottom: 4rem;
}
.works .works-slider .swiper-wrapper {
  display: flex;
  align-items: center;
}
.works .works-slider .swiper-slide {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.works .works-slider .works-image {
  width: 85%;
  height: 100%;
  object-fit: cover;
  border-radius: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.works .works-slider .swiper-button-next,
.works .works-slider .swiper-button-prev {
  top: 50%;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.35s ease;
}
.works .works-slider .swiper-button-next:hover,
.works .works-slider .swiper-button-prev:hover {
  transform: scale(1.1);
}
.works .works-slider .swiper-button-next {
  right: -8px;
  color: #f39800;
}
.works .works-slider .swiper-button-prev {
  left: -8px;
  color: #f39800;
}
.works .works-slider .swiper-pagination {
  bottom: 10px !important;
}
.works .works-slider .swiper-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background-color: #adacac;
  transition: 0.3s ease;
  opacity: 1;
}
.works .works-slider .swiper-pagination .swiper-pagination-bullet-active {
  background-color: #f39800;
}

@media (max-width: 1024px) {
  .works {
    padding: 2rem;
    padding-top: 8rem;
  }
  .works .works-header {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .works .works-header .works-title {
    margin: 4rem auto;
    transform: scale(1.5);
  }
  .works .works-header .works-title::before {
    display: none;
  }
  .works .works-slider {
    max-width: 900px;
  }
}
@media (max-width: 768px) {
  .works .works-slider .swiper-button-next,
  .works .works-slider .swiper-button-prev {
    display: none;
  }
}
@media (max-width: 640px) {
  .works {
    padding: 8rem 0;
  }
  .works .works-header .works-title {
    transform: scale(1);
  }
  .works .works-slider {
    width: 100%;
    display: block;
  }
}

.go-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 10px 15px;
  background-color: #99620395;
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 24px;
  cursor: pointer;
  transition: 0.35s ease-in-out;
  opacity: 0;
  transform: scale(0);
  z-index: 1000;
  visibility: hidden;
}
.go-top-btn:hover {
  background-color: #99620350;
}
.go-top-btn:focus {
  transform: scale(1.2);
}
.go-top-btn.show {
  opacity: 1;
  transform: scale(1);
  visibility: visible !important;
}

/* Lightbox */

.custom-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px); */
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  opacity: 0;
  transition: all 0.4s ease;
}

.custom-lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  animation: lightboxSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-close {
  position: absolute;
  top: -60px;
  right: 0;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1000000;
  font-family: Arial, sans-serif;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.lightbox-close:focus {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

/* ===== 文字內容樣式 ===== */
.lightbox-text {
  padding: 40px;
  font-size: 22px;
  line-height: 1.8;
  letter-spacing: 0.1rem;
  text-align: center;
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  font-feature-settings: "palt" 1; /* 日文標點優化 */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.lightbox-text::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 100%
  );
  pointer-events: none;
}

/* 各項目專用樣式 */
.lightbox-text.text1 {
  /* background: linear-gradient(135deg, #3d4a3d 0%, #8dc63f 100%); */
  background-color: #8dc63f;
}

.lightbox-text.text1::after {
  content: "🎧";
  position: absolute;
  top: 0px;
  right: 0px;
  font-size: 40px;
  opacity: 0.3;
}

.lightbox-text.text2 {
  /* background: linear-gradient(135deg, #5a4a42 0%, #f39800 100%); */
  background-color: #ffcd40;
    /* color: #4a4a4a; */
}

.lightbox-text.text2::after {
  content: "⚙️";
  position: absolute;
  top: 0px;
  right: 0px;
  font-size: 40px;
  opacity: 0.3;
}

.lightbox-text.text3 {
  /* background: linear-gradient(135deg, #34495e 0%, #3ac2d8 100%); */
  background-color: #3ac2d8;

}

.lightbox-text.text3::after {
  content: "🎮";
  position: absolute;
  top: 0px;
  right: 0px;
  font-size: 40px;
  opacity: 0.3;
}

.lightbox-text.text4 {
  /* background: linear-gradient(135deg, #4a4a4a 0%, #d33d81 100%); */
  background-color: #d33d81;
}

.lightbox-text.text4::after {
  content: "📈";
  position: absolute;
  top: 0px;
  right: 0px;
  font-size: 40px;
  opacity: 0.3;
}

.lightbox-text.text5 {
  /* background: linear-gradient(135deg, #2c2c54 0%, #713fd1 100%); */
  background-color: #713fd1;
}

.lightbox-text.text5::after {
  content: "🎨";
  position: absolute;
  top: 0px;
  right: 0px;
  font-size: 40px;
  opacity: 0.3;
}

/* ===== 響應式設計 ===== */

/* 桌面版 (1200px+) */
@media (min-width: 1200px) {
  .lightbox-text {
    padding: 50px;
    font-size: 20px;
    line-height: 2;
    max-width: 700px;
  }

  .lightbox-close {
    top: -80px;
    width: 60px;
    height: 60px;
    font-size: 28px;
  }
}

/* 筆電版 (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
  .lightbox-text {
    padding: 35px;
    font-size: 18px;
    line-height: 1.8;
    max-width: 600px;
  }

  .lightbox-close {
    top: -70px;
    width: 45px;
    height: 45px;
    font-size: 22px;
  }
}

/* 平板版 (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
  .lightbox-content {
    max-width: 95%;
    margin: 20px;
  }

  .lightbox-text {
    padding: 30px;
    font-size: 16px;
    line-height: 1.7;
  }

  .lightbox-close {
    top: -60px;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

/* 手機版 (≤ 480px) */
@media (max-width: 480px) {
  .lightbox-content {
    max-width: 98%;
    margin: 10px;
  }

  .lightbox-text {
    padding: 25px 20px;
    font-size: 15px;
    line-height: 1.6;
  }

  .lightbox-text::after {
    top: -10px !important;
    right: 15px !important;
    font-size: 30px !important;
  }

  .lightbox-close {
    top: -50px;
    right: 10px;
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
}

/* 超小螢幕 (≤ 320px) */
@media (max-width: 320px) {
  .lightbox-text {
    padding: 20px 15px;
    font-size: 14px;
    line-height: 1.5;
  }

  .lightbox-text::after {
    display: none;
  }

  .lightbox-close {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
}

/* ===== 動畫效果 ===== */
@keyframes lightboxSlideIn {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(30px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes lightboxSlideOut {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  100% {
    opacity: 0;
    transform: scale(0.8) translateY(-30px);
  }
}

.custom-lightbox.closing .lightbox-content {
  animation: lightboxSlideOut 0.3s ease-in forwards;
}

/* ===== 防止背景滾動  ===== */
body.lightbox-open {
  overflow: hidden;
}

/* ===== 可訪問性 ===== */
.custom-lightbox {
  touch-action: none;
}

.lightbox-text {
  touch-action: pan-y;
}

.lightbox-close {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* 高對比度模式支援 */
@media (prefers-contrast: high) {
  .lightbox-text {
    border: 2px solid white;
  }

  .lightbox-close {
    border-width: 3px;
    background: rgba(0, 0, 0, 0.8);
  }
}

/* 減少動畫偏好支援 */
@media (prefers-reduced-motion: reduce) {
  .lightbox-content {
    animation: none;
  }

  .custom-lightbox,
  .lightbox-close {
    transition: none;
  }
}

/* 列印時隱藏 */
@media print {
  .custom-lightbox {
    display: none !important;
  }
}
