@charset "UTF-8";
/*
 * archive.css
 * アーカイブページ（カテゴリー・タグ・タクソノミー・著者・日付・投稿一覧）専用スタイル
 * functions.php にて is_archive() || is_home() の条件で読み込まれる
 */

/* ========================================
   アーカイブページタイトル
======================================== */

.c-pageTitle {
  border-left: 4px solid var(--color-blue);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.4;
  padding-left: 1.4rem;
}

.c-pageTitle__inner {
  display: block;
  padding-top: 0;
}

/* アーカイブ種別ラベル（archive / category など） */
.c-pageTitle__subTitle {
  color: var(--color-blue);
  font-size: 1.1rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-left: 0;
  opacity: 1;
  text-transform: uppercase;
}

/* ========================================
   タームヘッダー（カテゴリー・タグ説明欄）
======================================== */

/* SWELL デフォルトの border ボックスをリセットして カード型に */
.p-termHead {
  background: rgba(41, 128, 185, 0.03);
  border: none;
  border-radius: 1.2rem;
  margin-bottom: 3.2rem;
  margin-top: 2.4rem;
  overflow: hidden;
  padding: 2rem 2.4rem;
}

.p-termHead__thumbWrap {
  border-radius: 0.8rem;
  margin-bottom: 1.6rem;
  overflow: hidden;
  width: 100%;
}

.p-termHead__thumbImg {
  border-radius: 0.8rem;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.p-termHead__desc {
  color: var(--color-text-light, #666);
  font-size: 1.5rem;
  line-height: 1.85;
  padding: 0;
}

/* ========================================
   投稿リスト — カードスタイル
======================================== */

.p-postList__item {
  border-radius: 0.8rem;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.p-postList__item:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-0.2rem);
}

.p-postList__title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.55;
}

.p-postList__excerpt {
  color: var(--color-text-light, #666);
  font-size: 1.4rem;
  line-height: 1.75;
}

/* サムネイルホバー拡大 */
.p-postList__item:hover .c-postThumb__img {
  transform: scale(1.05);
}

/* ========================================
   ページネーション
======================================== */

.c-pagination .page-numbers {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(26, 26, 26, 0.12);
  border-radius: 0.6rem;
  color: var(--color-text, #1a1a1a);
  display: inline-flex;
  font-size: 1.4rem;
  font-weight: 700;
  justify-content: center;
  min-height: 4rem;
  min-width: 4rem;
  padding: 0 0.8rem;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.c-pagination .page-numbers:hover {
  background: rgba(41, 128, 185, 0.06);
  border-color: var(--color-blue, #2980B9);
  color: var(--color-blue, #2980B9);
}

.c-pagination .page-numbers.current {
  background: var(--color-blue, #2980B9);
  border-color: var(--color-blue, #2980B9);
  color: #fff;
}

.c-pagination__dot {
  color: rgba(26, 26, 26, 0.35);
  font-size: 1.4rem;
}

/* ========================================
   レスポンシブ — 600px 以上
======================================== */

@media (min-width: 600px) {
  .c-pageTitle {
    font-size: 2.4rem;
  }

  /* タームヘッダーを横並びに */
  .p-termHead {
    align-items: flex-start;
    display: flex;
    gap: 2.4rem;
  }

  .p-termHead__thumbWrap {
    flex-shrink: 0;
    margin-bottom: 0;
    max-height: 20rem;
    overflow: hidden;
    width: 28rem;
  }
}

/* ========================================
   レスポンシブ — 768px 以上
======================================== */

@media (min-width: 768px) {
  .p-postList__title {
    font-size: 1.7rem;
  }
}
