@charset "utf-8";
/* CSS Document */

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  margin: 0;
  padding: 0;
}

.case-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.case-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-align: center;
}

.case-intro {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  text-align: center;
  color: #555;
}

/* グリッドレイアウト */
.case-grid {
  display: grid;
  gap: 2rem;
  justify-content: center; /* 1件だけのとき中央寄せ */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* カードデザイン */
.case-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  max-width: 600px; /* 1件だけのときに横に広がりすぎない */
}

.case-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.case-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-content {
  padding: 1.25rem;
}

.card-content h2 {
  font-size: 1.3rem;
  margin: 0 0 0.75rem;
  color: #6706CE; /* ブランドカラー */
}

.card-content p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}
