@charset "UTF-8";
/* CSS Document */
/* ものの数え方 キッズ図鑑 CSS */
/* シリーズ内リンク（4ボタン）*/
/* 2026/03/04 */

.series-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 20px 0;
}

.series-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;   /* ← 縦縮小 */
  text-decoration: none;
  border-radius: 10px;
  font-weight: bold;
  line-height: 1.3;     /* ← 行間少し締め */
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.series-btn span {
  display: block;
}

/* カラー */
.series-btn.blue {
  background: #e3f2fd;
  border: 2px solid #2196F3;
  color: #1976D2;
}

.series-btn.green {
  background: #e8f5e9;
  border: 2px solid #4caf50;
  color: #2e7d32;
}

.series-btn.orange {
  background: #fff3e0;
  border: 2px solid #ff9800;
  color: #e65100;
}

.series-btn.purple {
  background: #f3e5f5;
  border: 2px solid #9c27b0;
  color: #6a1b9a;
}

/* ホバー */
.series-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

/* タブレット */
@media (max-width: 750px) {
  .series-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* モバイル */
@media (max-width: 600px) {
  .series-links {
    grid-template-columns: 1fr;
  }

  .series-btn {
    padding: 9px 12px;   /* さらに微調整 */
    font-size: 0.9rem;
  }
}

/* ===============================
   現在ページ 強調表示
================================= */
/* blue 現在 */
.series-btn.blue.current {
  background: #2196F3;
  color: #fff!important;
}

/* green 現在 */
.series-btn.green.current {
  background: #4caf50;
  color: #fff!important;
}

/* orange 現在 */
.series-btn.orange.current {
  background: #ff9800;
  color: #fff!important;
}

/* purple 現在 */
.series-btn.purple.current {
  background: #9c27b0;
  color: #fff!important;
}