/* 解決する課題セクション */
.challenges-section {
  background-color: #202020;
  padding: 0;
  height: 900px;
  display: flex;
  justify-content: center;
  position: relative;
}

.challenges-section .container {
  width: 1440px;
  height: 100%;
  padding: 0;
  position: relative;
}

/* タイトル - 画像の上にオーバーレイ */
.challenges-section .section-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 90px;
  width: 610px;
  color: #fff;
  margin: 0;
  z-index: 10;
}

/* 背景画像グリッド */
.challenges-grid {
  display: grid;
  grid-template-columns: repeat(3, 480px);
  gap: 0;
  width: 100%;
  height: 100%;
}

.challenge-card {
  position: relative;
  width: 480px;
  height: 900px;
  overflow: hidden;
}

.challenge-overlay {
  position: relative;
  width: 100%;
  height: 100%;
}

.challenge-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 2つのオーバーレイ */
.challenge-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.challenge-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.challenge-content {
  position: relative;
  z-index: 3;
  padding: 314px 80px 0;
}

/* 課題3は高さが違う */
.challenge-card:nth-child(3) .challenge-content {
  padding: 314px 80px 0;
}

.challenge-title {
  font-family: 'Hiragino Sans', sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.3;
  letter-spacing: 0.05em;
  color: #fff;
  margin: 0;
  max-width: 320px;
}

/* レスポンシブ対応 */
@media (max-width: 1440px) {
  .challenges-section {
    height: auto;
    justify-content: flex-start;
  }

  .challenges-section .container {
    width: 100%;
    padding: 0;
  }

  .challenges-section .section-title {
    position: relative;
    left: 0;
    transform: none;
    top: 0;
    width: 100%;
    padding: 60px 30px 40px;
  }

  .challenges-grid {
    grid-template-columns: 1fr;
  }

  .challenge-card {
    width: 100%;
    height: 600px;
  }

  .challenge-content {
    padding: 200px 40px 0;
  }

  .challenge-card:nth-child(3) .challenge-content {
    padding: 200px 40px 0;
  }

  .challenge-title {
    font-size: 28px;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .challenges-section .section-title {
    font-size: 20px;
    padding: 40px 20px 30px;
  }

  .challenge-card {
    height: 500px;
  }

  .challenge-content {
    padding: 150px 30px 0;
  }

  .challenge-card:nth-child(3) .challenge-content {
    padding: 150px 30px 0;
  }

  .challenge-title {
    font-size: 24px;
  }
}
