@charset "utf-8";

/*==========================
Works header
==========================*/
.works-header {
  background: linear-gradient(270deg, #EDF6FD 3.5%, #DCDDE3 100%);
  height: 475px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 110px;
  position: relative;
}

.works-title {
  font-family: Montserrat, sans-serif;
  line-height: 0.8;
  font-size: 17rem;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.works-subtitle {
  font-size: 4.8rem;
  font-weight: 700;
  color: #515459;
  margin-top: 10px;
  position: absolute;
}

/* タブレット以下 */
@media (max-width: 768px) {
  .works-header {
    height: 350px;
    padding-top: 80px;
  }
  .works-title {
    font-size: 8rem;
  }
  .works-subtitle {
    font-size: 2.4rem;
  }
}

/* スマホ以下 */
@media (max-width: 425px) {
  .works-header {
    height: 300px;
  }
  .works-title {
    font-size: 6rem;
  }
  .works-subtitle {
    font-size: 2rem;
  }
}

/*==========================
Main contents
==========================*/

/* プロジェクトグリッド */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin: 85px auto;
  max-width: 1200px; /* セクションの中央配置と制限 */
  padding: 0 20px;
}

.project-item {
  background-color: #fff;
  width: 100%;
  padding: 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
  transform: translateY(-10px); /* 10px上に移動 */
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.3); /* 影を強調 */
}

.project-item img {
  width: 100%;
  height: 216px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-item:hover img {
  transform: scale(1.05);
}

.project-date {
  font-size: 14px;
  color: #666;
  margin: 10px 0 5px;
}

.project-title {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.project-item:hover .project-title {
  color: #A18759; /* ゴールドカラー */
}

.project-item:hover .project-date {
  color: #666666;
}

/* タブレット以下 */
@media (max-width: 768px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }
}

/* スマホ以下 */
@media (max-width: 425px) {
  .project-grid {
    grid-template-columns: 1fr;
    max-width: 313px;
    margin: 0 auto;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}