#training {
  padding: 80px 20px;
  background: linear-gradient(to bottom, #ffffff 0%, #fffef5 100%);
}

#training > .container {
  max-width: 1200px;
  margin: 0 auto;
}

#training > .container > h2 {
  text-align: center;
  font-size: 2.5em;
  color: #ff4040;
  margin-bottom: 20px;
  font-weight: bold;
}

.training-intro {
  text-align: center;
  font-size: 1.2em;
  color: #666;
  margin-bottom: 60px;
  line-height: 1.8;
}

.training-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.training-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.training-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.training-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background-color: #f0f0f0;
}

.training-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.training-card:hover .training-image img {
  transform: scale(1.1);
}

.training-card > h3 {
  font-size: 1.6em;
  color: #ff4040;
  margin: 25px 20px 15px;
  font-weight: bold;
}

.training-card > p {
  font-size: 1em;
  color: #555;
  line-height: 1.8;
  margin: 0 20px 25px;
}

/* タブレット */
@media screen and (max-width: 1024px) {
  .training-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* スマートフォン */
@media screen and (max-width: 768px) {
  #training {
    padding: 60px 20px;
  }

  #training > .container > h2 {
    font-size: 2em;
  }

  .training-intro {
    font-size: 1em;
    margin-bottom: 40px;
  }

  .training-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .training-image {
    height: 200px;
  }

  .training-card > h3 {
    font-size: 1.4em;
  }
}

@media screen and (max-width: 500px) {
  #training > .container > h2 {
    font-size: 1.8em;
  }

  .training-card > h3 {
    font-size: 1.3em;
  }

  .training-card > p {
    font-size: 0.95em;
  }
}
