/* archive.css — 記事一覧・カテゴリページ専用（home.php / archive.php のみ読み込み） */

:root {
  --ar-ink: #172421;
  --ar-cream: #fbf6ec;
  --ar-gold: #c5a46a;
  --ar-gold2: #9d7a3f;
  --ar-muted: rgba(23, 36, 33, .68);
  --ar-line: rgba(23, 36, 33, .14);
  --ar-shadow: 0 26px 80px rgba(23, 36, 33, .14);
}

/* ヘッダー */
.archive-page .site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 246, 236, .86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(23, 36, 33, .1);
}

.archive-page .nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.archive-page .nav .brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.archive-page .nav .brand strong {
  font-size: 14px;
  letter-spacing: .08em;
  font-weight: 700;
}

.archive-page .nav .brand span {
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--ar-muted);
}

.archive-page .nav-links {
  display: flex;
  gap: 16px;
  font-size: 12px;
  letter-spacing: .035em;
  color: rgba(23, 36, 33, .74);
  white-space: nowrap;
}

/* ヒーロー */
.archive-hero {
  background:
    radial-gradient(circle at 12% 12%, rgba(197, 164, 106, .24), transparent 32%),
    linear-gradient(135deg, #16251f 0%, #22342f 52%, #101816 100%);
  color: var(--ar-cream);
  padding: 76px 24px 82px;
}

.archive-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.archive-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: .18em;
  color: rgba(251, 246, 236, .72);
  text-transform: uppercase;
  margin-bottom: 26px;
}

.archive-eyebrow::before {
  content: "";
  width: 44px;
  height: 1px;
  background: var(--ar-gold);
}

.archive-title {
  max-width: 860px;
  margin: 0;
  font-size: clamp(42px, 7vw, 90px);
  line-height: 1.02;
  letter-spacing: -.055em;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.archive-lead {
  max-width: 680px;
  margin: 28px 0 0;
  color: rgba(251, 246, 236, .78);
  font-size: 16px;
  line-height: 2;
}

/* メインラップ */
.archive-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 58px 24px 110px;
}

/* カテゴリファインダー */
.finder-board {
  margin-top: -88px;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(251, 246, 236, .28);
  border-radius: 34px;
  background: rgba(251, 246, 236, .94);
  box-shadow: var(--ar-shadow);
  padding: 28px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
}

.finder-label {
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--ar-gold2);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.finder-intro h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.24;
  letter-spacing: -.04em;
}

.finder-intro p {
  margin: 18px 0 0;
  color: var(--ar-muted);
  font-size: 13px;
  line-height: 1.9;
}

.finder-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.finder-card {
  border: 1px solid rgba(23, 36, 33, .12);
  border-radius: 24px;
  padding: 18px 16px;
  background: rgba(255, 255, 255, .36);
  min-height: 168px;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
  color: var(--ar-ink);
}

.finder-card:hover {
  transform: translateY(-3px);
  background: #fffdf8;
}

.finder-card.active {
  background: var(--ar-ink);
  color: var(--ar-cream);
  border-color: var(--ar-ink);
}

.finder-card .cat-code {
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--ar-gold2);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.finder-card.active .cat-code {
  color: var(--ar-gold);
}

.finder-card strong {
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: -.02em;
}

.finder-card p {
  margin: auto 0 0;
  color: var(--ar-muted);
  font-size: 12px;
  line-height: 1.65;
}

.finder-card.active p {
  color: rgba(251, 246, 236, .66);
}

/* PICK UP フィーチャーリスト */
.featured-list {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 22px;
  margin-top: 58px;
}

.featured-main {
  min-height: 430px;
  border-radius: 34px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(23, 36, 33, .34), rgba(197, 164, 106, .14)),
    linear-gradient(135deg, #22342f, #101816);
  background-size: cover;
  background-position: center;
  color: var(--ar-cream);
  display: flex;
  align-items: flex-end;
  padding: 34px;
  box-shadow: var(--ar-shadow);
}

.featured-main.has-thumb {
  position: relative;
}

.featured-main.has-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.featured-main-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(23, 36, 33, .52), rgba(197, 164, 106, .14));
  z-index: 1;
}

.featured-main-content {
  position: relative;
  z-index: 2;
}

.ar-card-label {
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--ar-gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.featured-main h2 {
  display: none;
}

.featured-main p {
  display: none;
}

.featured-side {
  display: grid;
  gap: 18px;
}

.mini-feature {
  border: 1px solid rgba(23, 36, 33, .1);
  border-radius: 28px;
  background: rgba(255, 255, 255, .32);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--ar-ink);
  transition: box-shadow .2s ease;
}

.mini-feature:hover {
  box-shadow: 0 8px 32px rgba(23, 36, 33, .1);
}

.mini-feature h3 {
  margin: 12px 0 0;
  font-size: 23px;
  line-height: 1.45;
  letter-spacing: -.03em;
}

.mini-feature .mini-date {
  font-size: 11px;
  color: var(--ar-muted);
  margin-top: 26px;
}

/* セクションヘッド */
.ar-section-head {
  margin-top: 76px;
  border-top: 1px solid var(--ar-line);
  padding-top: 34px;
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 42px;
  align-items: end;
}

.ar-section-label {
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--ar-gold2);
  text-transform: uppercase;
}

.ar-section-title {
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.16;
  letter-spacing: -.04em;
  font-weight: 800;
}

/* 記事グリッド */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.post-card {
  border: 1px solid rgba(23, 36, 33, .1);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, .3);
  display: flex;
  flex-direction: column;
  color: var(--ar-ink);
  transition: box-shadow .2s ease;
}

.post-card:hover {
  box-shadow: 0 8px 32px rgba(23, 36, 33, .12);
}

.post-thumb {
  height: 174px;
  background:
    linear-gradient(135deg, rgba(23, 36, 33, .22), rgba(197, 164, 106, .16)),
    linear-gradient(135deg, #22342f, #101816);
  background-size: cover;
  background-position: center;
}

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

.post-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-meta {
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--ar-gold2);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.post-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: -.03em;
}

.post-card p {
  margin: 14px 0 0;
  color: var(--ar-muted);
  font-size: 13px;
  line-height: 1.8;
}

.post-date {
  margin-top: auto;
  padding-top: 22px;
  font-size: 11px;
  color: rgba(23, 36, 33, .46);
}

/* ページネーション */
.ar-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 50px;
  list-style: none;
  padding: 0;
}

/* paginate_links() が ul/li を出す場合に備えてリストスタイルを除去 */
.ar-pagination ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 10px;
  align-items: center;
}

.ar-pagination li {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* page-numbers: paginate_links() が出力するクラス */
.ar-pagination .page-numbers,
.ar-pagination a,
.ar-pagination span {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(23, 36, 33, .14);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--ar-ink);
  transition: background .18s ease;
  text-decoration: none;
  background: rgba(255, 255, 255, .35);
}

.ar-pagination .current,
.ar-pagination .page-numbers.current {
  background: var(--ar-ink);
  color: var(--ar-cream);
  border-color: var(--ar-ink);
}

.ar-pagination a:hover,
.ar-pagination .page-numbers:not(.current):hover {
  background: rgba(23, 36, 33, .06);
}

/* フッター */
.archive-page .site-footer {
  background: var(--ar-ink);
  color: var(--ar-cream);
  padding: 74px 24px 34px;
}

.archive-page .footer-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.archive-page .footer-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 8vw, 104px);
  letter-spacing: -.055em;
  line-height: .95;
  font-weight: 500;
  margin: 0 0 28px;
}

.archive-page .footer-line {
  border-top: 1px solid rgba(251, 246, 236, .16);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: rgba(251, 246, 236, .62);
  font-size: 12px;
  letter-spacing: .08em;
}

/* 一覧ページ用モバイル横スクロールナビ */
.archive-mobile-nav {
  display: none;
}

@media (max-width: 900px) {
  .archive-mobile-nav {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(251, 246, 236, 0.96);
    border-bottom: 1px solid rgba(23, 36, 33, .1);
    position: sticky;
    top: 63px;
    z-index: 19;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .archive-mobile-nav::-webkit-scrollbar { display: none; }
  .archive-mobile-nav a {
    white-space: nowrap;
    font-size: 12px;
    padding: 5px 14px;
    border: 1px solid rgba(23, 36, 33, .14);
    border-radius: 99px;
    color: var(--ar-ink);
    flex-shrink: 0;
  }
}

/* レスポンシブ */
@media (max-width: 900px) {
  .archive-page .nav-links {
    display: none;
  }

  .finder-board {
    grid-template-columns: 1fr;
    margin-top: -70px;
  }

  .finder-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-list {
    grid-template-columns: 1fr;
  }

  .featured-main {
    min-height: 340px;
  }

  .ar-section-head {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .post-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .archive-hero {
    padding: 54px 20px 74px;
  }

  .archive-title {
    font-size: clamp(44px, 14vw, 62px);
  }

  .archive-wrap {
    padding: 48px 18px 82px;
  }

  .finder-board {
    padding: 18px;
    border-radius: 28px;
  }

  .finder-grid {
    grid-template-columns: 1fr;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .featured-main {
    min-height: 310px;
    padding: 26px;
    border-radius: 28px;
  }

  .mini-feature {
    border-radius: 24px;
  }

  .archive-page .footer-line {
    flex-direction: column;
  }
}
