.works-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 30px;
}

.works-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.works-card:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.img-wrap {
  position: relative;
  overflow: hidden;
}

.img-wrap img {
  width: 100%;
  display: block;
  transition: transform 0.4s;
}

.works-card:hover .img-wrap img {
  transform: scale(1.1);
}

/* 光沢エフェクト */
.img-wrap::before {
  content: "";
  position: absolute;
  top: -100%;
  left: -250%;
  width: 150%;
  height: 300%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg) translateX(0);
  transition: transform 1.75s;
  pointer-events: none;
}

.works-card:hover .img-wrap::before {
  transform: translateX(300%) rotate(25deg);
}


/* 下部ぼかし */
.img-wrap::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1.7));
  pointer-events: none;
}

/* 説明部分 */
.works-info {
  border: solid 1px white;
  padding: 20px;
  margin-top: 0px;
  position: relative;
  z-index: 1;
}

.works-info p {
  margin: 4px 0;
  font-size: 0.9rem;
  line-height: 0.1;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
  .works-container {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .works-container {
    grid-template-columns: 1fr;
  }
}
