/* ==========================================================
   SHIZGAS TIMES 一覧ページ専用スタイル
   ========================================================== */

/* ---- フィルターバー ----------------------------------------- */
.sgt-filterbar {
  padding: 18px 0 18px;
  border-bottom: 1px solid #e7e7e7;
  margin-bottom: 30px;
}

.sgt-filter-title {
  margin: 0 0 10px;
  line-height: 1.4;
  font-weight: 700;
  color: #1f2328;
}

/* 年 チップ行 */
.sgt-years {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

/* タグ チップ行 */
.sgt-tags-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sgt-filter-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.sgt-filter-btn {
  border: 1px solid #cfd6df;
  background: #fff;
  color: #374151;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.sgt-filter-btn:hover {
  background: #f8fafc;
  border-color: #b8c4d4;
}

.sgt-filter-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.sgt-filter-btn--run {
  background: #0d5fa8;
  color: #fff;
  border-color: #0d5fa8;
}

.sgt-filter-btn--run:hover {
  background: #0a4f8c;
  border-color: #0a4f8c;
}

/* チップ共通 */
.sgt-chip {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #3f3f3f;
  background: #fff;
  border: 1px solid #d4d8dd;
  border-radius: 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
}
.sgt-chip:hover {
  background: #f2f6fb;
  border-color: #b8c6d9;
}
.sgt-chip.active {
  background: #0d5fa8;
  border-color: #0d5fa8;
  color: #fff;
}
.sgt-chip.active:hover {
  background: #0a4f8c;
  border-color: #0a4f8c;
}

/* ---- カード一覧グリッド ------------------------------------- */
.sgt-topicsList {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 18px;
  list-style: none;
  margin: 0 0 56px;
  padding: 0;
}
@media screen and (max-width: 1200px) {
  .sgt-topicsList {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.sgt-more-area {
  display: flex;
  justify-content: center;
  margin: 8px 0 56px;
}

.sgt-more-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0d5fa8;
  background: #fff;
  color: #0d5fa8;
  border-radius: 999px;
  width: min(100%, 420px);
  padding: 14px 58px 14px 36px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.sgt-more-btn::after {
  content: "▼";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.72rem;
  color: currentColor;
  pointer-events: none;
}

.sgt-more-btn:hover {
  background: #0d5fa8;
  color: #fff;
}
@media screen and (max-width: 768px) {
  .sgt-topicsList {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .sgt-more-btn {
    width: min(100%, 340px);
    padding: 12px 46px 12px 24px;
    font-size: 0.9375rem;
  }

  .sgt-more-btn::after {
    right: 18px;
  }
}

/* ---- カード -------------------------------------------------- */
.sgt-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #dfe4ea;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.sgt-card:hover {
  box-shadow: 0 6px 18px rgba(15, 34, 58, 0.12);
  border-color: #c5d2e1;
}

/* ---- サムネイル -------------------------------------------- */
.sgt-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f2f4f6;
}
.sgt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.sgt-card:hover .sgt-thumb img {
  transform: scale(1.04);
}
.sgt-thumb--placeholder {
  width: 100%;
  height: 100%;
  background: #e8e8e8;
}

/* ---- カード内メタ情報 --------------------------------------- */
.sgt-meta {
  padding: 13px 13px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.sgt-meta .sgt-title {
  font-size: 0.93rem;
  font-weight: 700;
  color: #1f2328;
  line-height: 1.45;
  /* 最大2行クランプ */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.sgt-meta .sgt-date {
  font-size: 0.78rem;
  color: #6b7280;
  margin: 0;
}
.sgt-meta .sgt-tags {
  margin-top: auto;
  padding-top: 2px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sgt-meta .sgt-tags .sgt-tag {
  display: inline-block;
  font-size: 0.72rem;
  padding: 2px 9px;
  background: #f4f7fa;
  border: 1px solid #e2e8ef;
  color: #4b5563;
}