/* ============================================================
   コラム一覧ページ list.css（整形済み）
   - カードUI
   - グリッドレイアウト
   - ページャー
============================================================ */


/* -----------------------------------------
   ★ カード全体
----------------------------------------- */
.column-item {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%; /* カード高さ安定 */
}

.column-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* カード全体をクリック可能に */
.column-item a {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}


/* -----------------------------------------
   ★ サムネイル画像
----------------------------------------- */
.column-item .thumb {
  aspect-ratio: 16 / 9; /* 画像比率固定 */
  overflow: hidden;
}

.column-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* トリミングして美しく表示 */
  display: block;
}


/* -----------------------------------------
   ★ テキスト部分
----------------------------------------- */
.column-item .text {
  padding: 12px 14px;
}


/* タイトル */
.column-item h2 {
  font-size: 16px;
  margin: 0 0 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* 2行制限 */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 説明文 */
.column-item .desc {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* 2行制限 */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 日付 */
.column-item .date {
  font-size: 12px;
  color: #777;
}


/* -----------------------------------------
   ★ グリッドレイアウト
----------------------------------------- */
.column-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* タブレット：2列 */
@media (max-width: 1024px) {
  .column-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* スマホ：1列 */
@media (max-width: 420px) {
  .column-list {
    grid-template-columns: repeat(1, 1fr);
  }
}


/* -----------------------------------------
   ★ ページャー
----------------------------------------- */
.pagination {
  text-align: center;
  margin: 30px 0;
}

.pagination span {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 4px;
  border-radius: 6px;
  background: #f2f2f2;
  cursor: pointer;
  font-size: 14px;
}

.pagination .active {
  background: #333;
  color: #fff;
}

.pagination .page-btn {
  background: #ddd;
}
