/* ベース */
body {
  margin: 0;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  background: #111;
  color: #eee;
  letter-spacing: .03em;
}

/* リンク */
a {
  color: inherit;
  text-decoration: none;
}

/* ヘッダー */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 12px 20px;
  background: #111;
  border-bottom: 1px solid #222;
  z-index: 10;
}

.logo {
  font-size: 18px;
  font-weight: 700;
}

/* メイン */
.main {
  padding: 80px 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.tools-intro {
  text-align: center;
  margin: 0 0 32px;
}

.tools-heading {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 4px;
}

.tools-subheading {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
}

/* カードグリッド */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

/* カード */
.tool-card {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #222;
  transition: transform .2s ease, box-shadow .2s ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.tool-title {
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 700;
}

.tool-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #bbb;
}

/* アイコン共通枠 */
.tool-icon {
  width: 56px;
  height: 56px;
  margin: 0 0 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f4f4f4;
}

/* 実アイコン */
.tool-icon img {
  max-width: 80%;
  max-height: 80%;
  display: block;
}

/* アイコン未設定のときのプレースホルダー */
.tool-icon--empty {
  border: 1px solid #ddd;
  background-color: #8f8f8f;
}

/* フッター */
.footer {
  padding: 20px;
  text-align: center;
  color: #666;
  font-size: 12px;
  border-top: 1px solid #222;
}

/* スマホ用（幅が狭い時は最小幅を160pxに） */
@media screen and (max-width: 480px) {
  .tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}