/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Feb 07 2026 | 03:00:17 */
/* 基本リセット */
:root{
  --hil-text:#1c1c1c;
  --hil-muted:#666;
  --hil-line:#e8e8e8;
  --hil-bg:#ffffff;
  --hil-soft:#f7f7f7;
  --hil-accent:#1f5f52;
  --hil-radius:18px;
  --hil-shadow: 0 12px 30px rgba(0,0,0,.08);
  --hil-max: 1040px;
}

/* 1. リスト全体の周りに余白を追加 */
.works-top-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  
  /* --- 追加した余白設定 --- */
  max-width: var(--hil-max); /* ルート変数の最大幅を適用 */
  margin: 0 auto;            /* 中央寄せ */
  padding: 40px 20px;        /* 上下40px、左右20pxの余白 */
  /* ---------------------- */
}

.works-top-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* 高さを揃える */
}

.works-top-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.works-top-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.works-top-body {
  padding: 18px 20px 22px; /* カード内のテキスト周りの余白 */
}

.works-top-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--hil-text);
}

.works-top-body p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--hil-muted);
  margin-bottom: 0; /* 下の余白は .works-top-body の padding で制御 */
}

/* スマホ */
@media screen and (max-width: 768px) {
  .works-top-list {
    grid-template-columns: 1fr;
    padding: 30px 15px; /* スマホ時は少し余白を狭める */
  }

  .works-top-image img {
    height: 200px;
  }
}