/* =============================================
   NEWS LIST SECTION
============================================= */
.news-list-section {
  padding: 100px 0 150px;
  position: relative;
  overflow: hidden;
}

.news-list-header {
  margin-bottom: 52px;
  position: relative;
}

.news-watermark {
  position: absolute;
  top: -100px;
  left: -180px;
  width: 525px;
  height: 526px;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

.news-watermark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-list-heading {
  font-size: clamp(60px, 9.2vw, 120px);
  line-height: 0.8;
}

/* Filter tabs */
.news-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 14px;
  border-radius: 50px;
  font-family: var(--font-body-ja);
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition);
  background: #fff;
  color: #000;
  border: 1px solid #ddd;
  line-height: 1;
}

.filter-btn.is-active {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
}

.filter-btn:hover:not(.is-active) {
  background: #f0f0f0;
}

/* News list */
.news-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #eee;
  margin-bottom: 0;
}

.news-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
  transition: opacity var(--transition);
  color: inherit;
}

.news-item:hover { opacity: 0.7; }

.news-item-date {
  flex-shrink: 0;
  background: #333;
  color: #fff;
  font-family: var(--font-display);
  font-size: 12px;
  padding: 4px 12px;
  white-space: nowrap;
}

.news-item-tag {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  padding: 3px 10px;
  font-family: var(--font-body-ja);
  font-size: 12px;
  color: #fff;
  min-width: 72px;
  white-space: nowrap;
}

.news-item-tag--news   { background: #09b9ee; }
.news-item-tag--column { background: #6c3691; }

.news-item-title {
  font-family: var(--font-body-ja);
  font-size: 14px;
  color: #000;
  line-height: 1.7;
  flex: 1;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 60px;
}

.page-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: #999;
  border: none;
  transition: background var(--transition);
  flex-shrink: 0;
}

.page-btn.is-active,
.page-btn--arrow { background: #222; }
.page-btn:hover  { background: #222; }


/* =============================================
   NEWS DETAIL SECTION
============================================= */
.news-detail-section {
  padding: 100px 0 150px;
}

.news-detail-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.news-detail-thumb {
  width: 100%;
  height: 500px;
  background: #d9d9d9;
  overflow: hidden;
  margin-bottom: 32px;
}

.news-detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-detail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.news-detail-date {
  background: #eee;
  padding: 2px 10px;
  font-family: var(--font-display);
  font-size: 12px;
  color: #666;
}

.news-detail-title {
  font-family: var(--font-body-ja);
  font-size: 20px;
  font-weight: 700;
  color: #000;
  line-height: 1.7;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid #eee;
}

/* Article body */
.article-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 80px;
}

.article-body h2 {
  background: var(--grad);
  padding: 6px 16px;
  font-family: var(--font-body-ja);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 1.8;
  margin-top: 8px;
}

.article-body h3 {
  position: relative;
  padding-left: 16px;
  font-family: var(--font-body-ja);
  font-size: 18px;
  font-weight: 700;
  color: #000;
  line-height: 1.7;
  margin-top: 8px;
}

.article-body h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 4px;
  background: var(--grad);
  border-radius: 2px;
}

.article-body h4 {
  font-family: var(--font-body-ja);
  font-size: 16px;
  font-weight: 700;
  color: #000;
  line-height: 1.7;
  margin-top: 4px;
}

/* h2/h3/h4 が先頭要素の場合はmargin-top不要 */
.article-body > h2:first-child,
.article-body > h3:first-child,
.article-body > h4:first-child { margin-top: 0; }

.article-body p {
  font-family: var(--font-body-ja);
  font-size: 14px;
  color: #000;
  line-height: 1.9;
  margin-bottom: 24px;
}

.article-body p:last-child { margin-bottom: 0; }

.article-body img {
  width: 100%;
  height: auto;
  display: block;
}

/* Prev/Next navigation */
.post-nav {
  display: flex;
  gap: 24px;
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid #eee;
}

.post-nav-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border: 1px solid #ccc;
  transition: border-color var(--transition);
  color: inherit;
}

.post-nav-card:hover { border-color: #888; }

.post-nav-card--prev { flex-direction: row; }
.post-nav-card--next { flex-direction: row-reverse; }

.post-nav-arrow {
  flex-shrink: 0;
  width: 20px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #333;
}

.post-nav-card--next .post-nav-arrow { transform: scaleX(-1); }

.post-nav-body { flex: 1; min-width: 0; }

.post-nav-label {
  font-family: var(--font-body-ja);
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
}

.post-nav-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.post-nav-title {
  font-family: var(--font-body-ja);
  font-size: 14px;
  font-weight: 500;
  color: #000;
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}


/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1024px) {
  .news-detail-thumb { height: 400px; }
}

@media (max-width: 768px) {
  .news-list-section,
  .news-detail-section { padding: 60px 0 80px; }
  .news-list-heading { font-size: 50px; }

  .news-item {
    flex-wrap: wrap;
    gap: 6px 8px;
    align-items: flex-start;
  }

  .news-item-date,
  .news-item-tag { flex-shrink: 0; }

  .news-item-title { flex: none; width: 100%; }

  .news-detail-thumb { height: 220px; }
  .news-detail-title { font-size: 18px; }

  .article-body { gap: 12px; }
  .article-body p { margin-bottom: 16px; }
  .article-body h2,
  .article-body h3 { margin-top: 4px; }

  .post-nav { flex-direction: column; }
}
