/* ------------------------
   TOPICS 一覧ページ
------------------------ */
.topics-archive {
  max-width: 960px;
  margin: 0 auto;
  padding: 60px 20px;
  font-family: "Noto Sans JP", sans-serif;
}

.topics-title {
  font-size: 2.2rem;
  text-align: center;
  font-weight: 700;
  position: relative;
  margin-bottom: 50px;
}

.topics-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #0078d4;
  margin: 12px auto 0;
  border-radius: 3px;
}

/* カード風リスト */
.topics-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.topics-list li {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  margin-bottom: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.topics-list li:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.topics-list a {
  display: flex;
  align-items: center;
  padding: 18px 20px;
  text-decoration: none;
  color: #333;
  gap: 20px;
}

.topics-date {
  background: #0078d4;
  color: #fff;
  font-size: 0.85rem;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.topics-name {
  font-size: 1.05rem;
  font-weight: 600;
  flex: 1;
}

/* ページネーション */
.pagination {
  margin-top: 35px;
  text-align: center;
}

.pagination a, .pagination span {
  display: inline-block;
  margin: 0 5px;
  padding: 8px 14px;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  border-radius: 6px;
  transition: all 0.2s;
}

.pagination a:hover {
  background: #0078d4;
  color: #fff;
  border-color: #0078d4;
}

.pagination .current {
  background: #0078d4;
  color: #fff;
  border-color: #0078d4;
}

/* ------------------------
   TOPICS 詳細ページ
------------------------ */
.single-topics {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 20px;
}

.single-topics-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 12px;
}

.single-topics-meta {
  color: #888;
  margin-bottom: 25px;
}

.single-topics-content {
  line-height: 1.8;
  font-size: 1rem;
}

.single-topics-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.back-to-topics {
  margin-top: 40px;
}

.back-to-topics a {
  display: inline-block;
  padding: 8px 14px;
  background: #f5f5f5;
  border-radius: 6px;
  text-decoration: none;
  color: #0078d4;
  transition: all 0.2s;
}

.back-to-topics a:hover {
  background: #0078d4;
  color: #fff;
}

/* ------------------------
   スマホ対応
------------------------ */
@media screen and (max-width: 768px) {
  .topics-list a {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .topics-date {
    border-radius: 4px;
  }

  .topics-name {
    font-size: 1rem;
  }
}
