* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  font-family: "Roboto", "Noto Sans TC", sans-serif;
}

.bg {
  background-image: url(../images/main-background.jpg);
  background-repeat: repeat-y;
  background-position: center;
  height: 100vh;
  width: 100vw;
  position: fixed;
  z-index: -1; 
  background-size: cover;
  top:0%;
}

@media screen and (max-width: 959px) {
	.bg {
		background-image: url(../images/main-background.jpg);
		background-repeat: repeat-y;
		background-position: center;
		height: 100vh;
		width: 100vw;
		position: fixed;
		z-index: -1;
		background-size: auto;
		 top: 0%; 
	}	
}

@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");
@font-face {
  font-family: "Montserrat", sans-serif;
  unicode-range: U+2E80-9FFF;
}

@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Noto+Sans+TC:wght@100..900&display=swap");
@font-face {
  font-family: "NotoSansTC", sans-serif;
  unicode-range: U+0000-024F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF,
    U+2113, U+2C60-2C7F;
}

/* 回到最上層按鈕 */
.arrow i:hover {
  background-color: rgba(241, 41, 56, 1);
}
.arrow {
  position: fixed;
  right: 5%;
  bottom: 0%;
  z-index: 999;
  transition: transform 0.3s ease;
}
.arrow i {
  font-size: 2.3rem;
  color: #fff;
  background-color: rgba(54, 54, 54, 0.7);
  cursor: pointer;
  float: right;
  padding: 30%;
  border-radius: 5px;
}
@media screen and (max-width: 959px) {
  .arrow {
    right: 3%;
    bottom: 0%;
    max-width: 10%;
    padding: 2%;
  }
  .arrow i {
    font-size: 6vw;
    border-radius: 1vw;
  }
}


@media screen and (min-width: 960px) {
  /* 捲動條的寬度 (整個捲軸的空間) */
  ::-webkit-scrollbar {
    width: 15px;
  }

  /* 捲動條上捲動軌道的樣式 (底色) */
  ::-webkit-scrollbar-track {
    background-color: #fff; /* 捲動軌道的背景顏色 */
  }

  /* 捲動條上的捲動滑塊樣式 */
  ::-webkit-scrollbar-thumb {
    /* * 1. 使用 border-radius 讓滑塊有圓角
     * 2. 使用 border 設定透明邊框。這個邊框的寬度就是你想要的「內縮」空間。
     * 例如：border: 3px solid transparent; 內縮 3px。
     * 3. 關鍵：使用 background-clip: padding-box; 
     * 這會將背景色裁切到 padding box 區域，避免背景色覆蓋到邊框區域。
     */
    background-color: #e60012; /* 捲動滑塊的背景顏色 */
    border-radius: 10em; /* 捲動滑塊的圓角 */
    
    /* === 🌟 模擬內縮的關鍵 CSS 🌟 === */
    border: 3px solid transparent; /* 設置透明邊框，例如內縮 3px */
    background-clip: padding-box; /* 讓背景只在 padding 範圍內顯示 (不包含 border) */
    /* ============================== */
  }
}