/* グリッド：SP 1列 → タブレット 2列 → PC 3列 */
.gz-tool-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .gz-tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gz-tool-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* カード全体のスタイル */
a.gz-tool-card {
  display: block;
  padding: 1.2rem;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #fff;
  text-decoration: none;   /* 下線なし */
  color: inherit;          /* 通常テキスト色に合わせる */
  cursor: pointer;
}

/* 下線を完全に消す（base.css の a:hover を上書き） */
a.gz-tool-card:hover,
a.gz-tool-card:focus,
a.gz-tool-card h2,
a.gz-tool-card p {
  text-decoration: none;
}

/* 画像・テキスト */
a.gz-tool-card img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.8rem;
}

a.gz-tool-card h2 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

a.gz-tool-card p {
  font-size: 0.9rem;
  color: #6b7280;
}

a.gz-tool-card {
  transition: transform .15s ease, box-shadow .15s ease;
}

a.gz-tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
