.contract-section {
  padding: 2rem;
  padding-bottom: 3rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid #ccc;
  margin-bottom: 2rem;
}

.contract-section h2 {
  margin-top: 0;
}

/* ==================================
  display: grid が
  同じ行にある子要素（＝.service-item）を
  行の中でいちばん背の高いものに揃える
  という動きを自動でやってくれてる
    ↓　↓　↓
   ================================== */

.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-item {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.service-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 12px;
}

.service-item h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  border-left: 4px solid #228b22;
  padding-left: 8px;
}




/* =========================
   スマホ表示用
   ========================= */

@media (max-width: 768px) {

  .contract-section {
    padding: 1rem;
    padding-bottom: 2rem;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .service-item {
    border: none;
    box-shadow: none;
    padding: 0;
  }


}