/* ============================================================
   お知らせ — News List
   ============================================================ */

/* ── カテゴリタブ ── */
.news-filter {
  background: var(--paper-warm);
  padding: 0 var(--pad-x);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 72px;
  z-index: 30;
}
.news-filter__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.news-filter__inner::-webkit-scrollbar { display: none; }

.filter-btn {
  flex-shrink: 0;
  padding: 20px 28px;
  font-family: var(--jp-display);
  font-size: 13.5px;
  letter-spacing: .12em;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  transition: color .3s ease, border-color .3s ease, font-weight .1s;
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  text-decoration: none;
  display: block;
}
.filter-btn:hover {
  color: var(--ink);
}
.filter-btn.is-active {
  color: var(--ink);
  font-weight: 700;
  border-bottom-color: var(--accent);
}

/* ── 記事一覧 ── */
.news-list-section {
  background: var(--paper);
}
.news-list-section__inner {
  max-width: 1180px;
  margin: 0 auto;
}

.news-list {
  list-style: none;
  margin-top: 16px;
}
.news-item {
  border-bottom: 1px solid var(--line);
  transition: background .25s ease;
}
.news-item:first-child {
  border-top: 1px solid var(--line);
}
.news-item:hover {
  background: var(--paper-warm);
  margin: 0 calc(-1 * var(--pad-x));
}
.news-item__row {
  display: grid;
  grid-template-columns: 180px auto 1fr auto;
  align-items: baseline;
  gap: 0 32px;
  padding: 30px 0;
  text-decoration: none;
  color: inherit;
  width: 100%;
}
.news-item:hover .news-item__row {
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.news-item__date {
  font-family: var(--en-display);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .08em;
  color: var(--ink-soft);
  white-space: nowrap;
  padding-top: 2px;
}
.news-item__badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--jp-display);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--ink-soft);
  white-space: nowrap;
  flex-shrink: 0;
}
.news-item__badge--store   { border-color: rgba(185,89,66,.4); color: var(--accent-deep); }
.news-item__badge--product { border-color: rgba(90,82,73,.35); color: var(--ink-soft); }
.news-item__badge--media   { border-color: rgba(42,37,31,.3); color: var(--ink-2); }
.news-item__badge--recruit { border-color: rgba(185,89,66,.25); color: var(--accent); }

.news-item__title {
  font-family: var(--jp-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--ink);
  line-height: 1.7;
}
.news-item__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--en-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color .3s ease, gap .3s ease;
  text-transform: uppercase;
}
.news-item__row:hover .news-item__link {
  color: var(--accent-deep);
  gap: 10px;
}

/* ── ページネーション（WP標準に対応） ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 72px;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-family: var(--en-display);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--ink-soft);
  border: 1px solid transparent;
  transition: all .3s ease;
}
.pagination .page-numbers:hover {
  border-color: var(--line);
  color: var(--ink);
}
.pagination .page-numbers.current {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
}
.pagination .prev,
.pagination .next {
  width: auto;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--en-mono);
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--ink-soft);
}
.pagination .prev:hover,
.pagination .next:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ── レスポンシブ ── */
@media (max-width: 960px) {
  .news-item__row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 10px 16px;
  }
  .news-item__date {
    order: 1;
    font-size: 13px;
  }
  .news-item__badge {
    order: 2;
    justify-self: end;
  }
  .news-item__title {
    order: 3;
    grid-column: 1 / -1;
    font-size: 14.5px;
  }
  .news-item__link {
    order: 4;
    grid-column: 1 / -1;
    justify-self: end;
  }
  .news-item:hover {
    margin: 0 -22px;
  }
  .news-item:hover .news-item__row {
    padding-left: 22px;
    padding-right: 22px;
  }
  .filter-btn {
    padding: 18px 20px;
    font-size: 13px;
  }
}
@media (max-width: 560px) {
  .pagination .page-numbers { width: 36px; height: 36px; font-size: 14px; }
  .news-item__date { font-size: 12.5px; }
  .news-item__title { font-size: 14px; }
}
