/* === Home 區塊樣式 === */
#home {
  position: relative;
  height: 100vh;
  max-height: 1024px;
  background-color: black;
  background-image: url("../images/home-bg.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.home-container {
  height: 100%;
}

.title-container {
  display: inline-flex;
  width: 100%;
  align-items: center;
  position: sticky; /* 滾動時保持在頂部 */
  top: 5px;
  z-index: 10;
  padding: 5px 0;
  opacity: 1; /* 默認完全可見 */
  transition: opacity 0.5s ease; /* 平滑淡入淡出效果 */
}

.home-title {
  display: inline-block;
}

.side-title {
  text-align: justify;
  transform: rotate(90deg); /* 旋轉 90 度 */
  height: min-content;
  letter-spacing: 0.2px;
  line-height: 1.3em;
}

/* === Home 按鈕樣式 === */
.home-buttons {
  position: absolute;
  display: flex;
  flex-direction: column;
  opacity: 1;
  transition: opacity 0.5s ease;
}
.smallNo{
  font-size: 14px;
}
.home-buttons a {
  letter-spacing: 1px;
  background-color: transparent;
  color: #ffffff;
  width: 200px;
  text-decoration: none;
  font-size: 24px;
  font-weight: 600;
}

.home-buttons a:hover {
  color: #333333;
  font-weight: 800;
}

/* === 手機：小螢幕（<= 480px） === */
@media (max-width: 480px) {
  .title-container {
    margin-left: 10px;
  }

  .home-title {
    font-weight: 600;
    font-size: 65px;
  }

  .side-title {
    font-size: 5px;
    margin-top: -25px;
    margin-left: -9px;
    line-height: 1.3em;
  }

 
  .home-buttons {
    font-size: 20px;
    bottom: 20px;
    left: 20px;
  }

  .home-buttons a {
    width: 200px;
    font-size: 24px;
  }
}


/* === 手機：小螢幕（<= 480px） === */
@media (min-width: 481px) and (max-width: 575px) {
  .title-container {
    margin-left: 10px;
  }

  .home-title {
    font-weight: 600;
    font-size: 70px;
  }

  .side-title {
    font-size: 5px;
    margin-top: -35px;
    /* margin-left: -9px; */
    line-height: 1.3em;
  }

 
  .home-buttons {
    bottom: 20px;
    left: 40px;
  }

  .home-buttons a {
    width: 200px;
    font-size: 24px;
  }
}

/* === 手機：中小螢幕（481px - 767px） === */
@media (min-width: 576px) and (max-width: 767px) {
  .home-title {
    font-weight: 600;
    font-size: 90px;
  }

  .side-title {
    font-size: 7px;
    margin-top: -35px;
    /* margin-left: -8px; */
  }

  .home-buttons {
    bottom: 20px;
    left: 40px;
  }

  .home-buttons a {
    width: 200px;
    font-size: 24px;
  }
}

/* === 小平板：稍大螢幕（768px - 1024px） === */
@media (min-width: 768px) and (max-width: 1024px) {
  .home-title {
    font-weight: 600;
    font-size: 120px;
  }

  .side-title {
    font-size: 8px;
    margin-top: -60px;
  }

  .home-buttons {
    bottom: 40px;
    left: 60px;
  }

  .home-buttons a {
    width: 200px;
    font-size: 24px;
  }
}

/* === 桌面：一般大小（1025px - 1366px） === */
@media (min-width: 1025px) and (max-width: 1366px) {
  .home-title {
    font-weight: 600;
    font-size: 160px;
  }

  .side-title {
    font-size: 10px;
    margin-top: -80px;
  }

  .home-buttons {
    bottom: 40px;
    left: 60px;
  }

  .home-buttons a {
    width: 200px;
    font-size: 24px;
  }
}

/* === 桌面：超大螢幕（>= 1367px） === */
@media (min-width: 1367px) {
  .home-title {
    font-weight: 600;
    font-size: 160px;
  }

  .side-title {
    font-size: 10px;
    margin-top: -80px;
  }

  .home-buttons {
    bottom: 50px;
    left: 80px;
  }

  .home-buttons a {
    width: 200px;
    font-size: 24px;
  }
}
