@charset "UTF-8";

/* ===============================
    ✅ 首圖 HERO：等比例縮放、不裁切
   =============================== */

.hero-slider-1 {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.hero-slider-1 .flex-viewport,
.hero-slider-1 .slides,
.hero-slider-1 .js-fullscreen-height {
  height: 100% !important;
}

.hero-slider-1 ul.slides > li {
  height: 100% !important;
}

.hero-slider-1 .slide-bg-image {
  height: 100% !important;
  width: 100% !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
}

/* 將原本的藍色系背景改為黑色系 */
.hero-slider-1 ul.slides > li.dark-color { background-color: #1a1a1a; } /* 深灰色/接近黑 */
.hero-slider-1 ul.slides > li.light-color { background-color: #000000; } /* 純黑色 */

@media (max-width: 767px) {
  .hero-slider-1 { 
    aspect-ratio: 5 / 4;
  }
  .hero-slider-1 .slide-bg-image {
    background-size: contain !important;
  }
}

/* ===============================
    ✅ 修改後的 home-about (Logo 填滿設定)
   =============================== */

.home-about {
  width: 300px;
  height: 450px;
  border: 1px solid #333; /* 邊框也調深一點以符合黑底感 */
  border-radius: 5px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 15px;
  box-sizing: border-box;
  position: relative;
  text-align: center;
  background-color: #000; /* 改為黑色背景 */
  overflow: hidden; /* 確保圖片不超出圓角 */
}

/* 關鍵：移除 span 的內距，讓內容可以貼齊邊界 */
.home-about > span {
  border-radius: 5px;
  padding: 0; /* 設為 0 以便 Logo 填滿 */
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* 關鍵：設定圖片與欄位相同寬高 */
.home-about img {
  width: 100%;
  height: 100%;
  /* cover 會填滿並裁切 */
  object-fit: cover; 
  display: block;
}

@media screen and (max-width: 768px) {
  .home-about {
    margin: 20px auto;
    width: 80vw;
    height: 120vw;
    max-width: 300px;
    max-height: 450px;
  }
}

/* ===============================
    ✅ 遊戲 iframe 框
   =============================== */

.pipe-game-frame-wrapper {
  position: relative;
  width: 100%;
  max-width: 860px;
  aspect-ratio: 860 / 620;
  margin: 0 auto;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5); /* 增加陰影強度 */
  background: #000;
}

.pipe-game-frame-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

@media (max-width: 767px) {
  .pipe-game-frame-wrapper {
    max-width: 100%;
    width: 100vw;
    aspect-ratio: 9 / 16;
  }
}

.msgZone {display:none}