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

body {
  min-height: 100vh;
  font-family: "Montserrat", "NotoSansTC", sans-serif;
  /* 首選字體為 Noto Sans SC，如果不支援，則使用 Roboto，最後使用 sans-serif 作為回退字體 */
}
.bg {
  background-image: url(../images/main-background.jpg?t=1750320371477);
  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?t=1712056999406);
		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;
}

@media screen and (min-width: 960px) {
  /* 捲動條的樣式 */
  ::-webkit-scrollbar {
    width: 12px; /* 調整捲動條的寬度 */
  }

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

  /* 捲動條上的捲動滑塊樣式 */
  ::-webkit-scrollbar-thumb {
    background-color: #ba0c2f; /* 捲動滑塊的背景顏色 */
    border-radius: 10em; /* 捲動滑塊的圓角 */
  }
}

/* 回到最上層按鈕 */
.arrow i:hover {
  background-color: rgba(186, 12, 47, 0.95);
}
.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(0, 0, 0, 0.8);
  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%;
    display: none;
  }
  .arrow i {
    font-size: 6vw;
    border-radius: 1vw;
  }
  /*
	body {
		background-image: url(../images/main-background-mo.jpg?t=1750320371477);
		background-size: 100%;
		background-repeat: repeat-y;
		background-attachment: scroll;
	}
*/
}
