#kv {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}
#kv .textBox {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 10px;
}

#kv .textBox .title {
  font-size: 22px;
  line-height: 125%;
  letter-spacing: 12px;
  color: #FFFFFF;
}

#kv .textBox .title_e {
  font-size: 14px;
  line-height: 125%;
  text-align: center;
  letter-spacing: 8px;
  color: #FFFFFF;
}
#kv img {
  width: 100%;
  min-width: 1920px;
}

@media (max-width:768px) {
  #kv img {
    min-width: 1700px;
  }
}

#works .box {
  max-width: 1258px;
}

#works .lineBtnContainer {
  margin-bottom: 40px;
}

#works .lineBtnContainer .lineBtnBox {
  width: 100%;
  border-bottom: 1px solid var(--Default);
}

#works .lineBtnContainer .lineBtnBox .btn {
  position: relative;
  bottom: -1px;
  display: inline-block;
  padding: 13px 32px;
  cursor: pointer;
  font-weight: normal;
  color: #000;
  font-size: 16px;
  line-height: 23px;
  cursor: pointer;

}

#works .lineBtnContainer .lineBtnBox .btn.active {
  border-radius: 0px 0px 0 0;
  border: 1px solid var(--Default);
  border-bottom: 1px solid #fff;
  color: var(--Default);
}

#works .btnBox {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

#works .btnBox .btn {
  /* padding: 13px 32px;
  border-radius: 10px;
  background-color: var(--Default);
  font-weight: 700;
  line-height: 23px;
  cursor: pointer;
  color: #FFFFFF;
  border: 1px solid var(--Default); */

  display: inline-block;
  margin: 5px 10px 5px 0px;
  padding: 10px;
  border: 1px solid var(--Default);
  cursor: pointer;
}



#works .btnBox .btn:hover {
  background-color: #fff;
  color: var(--Default);
}

#works .btnBox .btn.active {
  background: var(--Default);
  color: #fff;
}

#works .companyBox {
  max-width: 1257px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

#works .companyBox .card {
  width: calc(50% - 8px);
  position: relative;
  overflow: hidden;
}

.card_cover{
  position: absolute;
  width: 100%;
  height: 100%;
  top:100%;
  left: 0px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  -moz-transition: ease-in-out 0.3s;
	-o-transition: ease-in-out 0.3s;
	-webkit-transition: ease-in-out 0.3s;
	transition: ease-in-out 0.3s;
}
.card_cover span{
  position: relative;
  z-index: 1;
}

.card_cover:after{
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top:0px;
  left: 0px;
  background-color: #000;
  opacity: .7;
  z-index: 0;
}

#works .companyBox .card:hover .card_cover{
  top:0%;
}


#works .companyBox .long img {
  width: 100%; /* 設定寬度自動填滿 */
  height: auto; /* 保持比例縮放 */
  aspect-ratio: 620 / 302; /* 長方形比例 */
  object-fit: cover; /* 確保圖片完整顯示 */
  display: block;
}

#works .companyBox .square {
  display: flex;
  gap: 16px;
  width: calc(((50% - 8px) / 2) - 8px) ;
}
#works .companyBox .square a {
  width: 100%;
  display: block;
}
#works .companyBox .square img {
  width: 100%; /* 設定寬度自動填滿 */
  height: auto; /* 保持比例縮放 */
  aspect-ratio: 1 / 1; /* 正方形比例 */
  object-fit: cover; /* 確保圖片完整顯示 */
  display: block;
}

@media (max-width:480px) {
  #works .companyBox .card {
    width: 100%;
  }
}

#works .moreBtn {
  padding-top: 100px;
}

#works .moreBtn .btn {
  width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

#works .moreBtn .text {
  font-size: 18px;
  line-height: 160%;
  color: #000000;
  margin-bottom: 10px;
  text-align: center;
}

#works .moreBtn img {
  width: 24px;
}

#works .moreBtn .btn:hover img {
  animation: imgMoveDown 1.3s infinite ease-in-out;
}

@keyframes imgMoveDown {
  0% {
    transform: translateY(0);
  }

  80% {
    transform: translateY(3px);
  }

  100% {
    transform: translateY(0);
  }
}


@media (max-width:480px) {
  #works .lineBtnContainer {
    margin-bottom: 30px;
  }
  #works .btnBox {
    gap: 15px;
    margin-bottom: 60px;
  }
  #works .btnBox .btn {
    padding: 6px 16px;
  }
  #works .moreBtn {
    padding-top: 60px;
  }
  #works .lineBtnContainer .lineBtnBox .btn {
    padding: 6px 16px;
  }
}