.home-container {
  padding: clamp(1rem, 3vw, 2rem);
  max-width: 1000px;
  margin: auto;
  margin-top: 90px;
}

.home-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 2rem;
  color: #005577;
}

.home-intro {
  text-align: center;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin-bottom: 2rem;
  color: #555;
}

.category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: stretch; /* ✅ 追加 */
}

.category-card {
  flex: none; /* ✅ 修正 */
  width: 100%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  background-color: white;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.category-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.category-info {
  padding: 1rem;
  color: #333;
}

.category-info h2 {
  margin-bottom: 0.5rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #005577;
}

.button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* スマホ対応で折り返し */
}

.button {
  padding: 16px 24px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  color: #ffffff;
  border-radius: 12px;
  background-color: rgba(0, 128, 128, 0.8);
  border: 2px solid rgba(0, 200, 200, 0.6);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  
  transition: background 0.3s ease, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 160px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.button:hover {
  background-color: rgba(0, 150, 150, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.button:active {
  transform: scale(0.98);
}


/* ✅ モバイル対応を最適化 */
@media (max-width: 768px) {
  
.category-info p{
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.category-info h2 {
  font-size: 1.3rem;
}

  .category-grid {
      flex-direction: column;
      align-items: center;
  }

  .category-card {
      width: 100%;
      max-width: 90%; /* ✅ 調整 */
  }

}