/* ==========================================
   archive.css - 記事一覧・カテゴリページ
   渋川エリア 不動産売却ナビ
   ========================================== */

/* ----- コンテナ ----- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- アーカイブヘッダー ----- */
.archive-header {
  background: linear-gradient(135deg, #fff8f0 0%, #f4ece0 100%);
  padding: 48px 0;
  border-bottom: 1px solid #e5ddd0;
  margin-bottom: 0;
}

.archive-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.archive-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #c8102e;
  margin-bottom: 10px;
}

.archive-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: #1a1a1a;
  line-height: 1.3;
  margin-bottom: 12px;
}

.archive-description {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.7;
  max-width: 640px;
}

/* ----- アーカイブページ本体 ----- */
.archive-page {
  padding: 48px 0 72px;
  background: #f4ece0;
}

/* ----- 2カラムレイアウト（メイン＋サイドバー） ----- */
.archive-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  align-items: start;
}

@media (min-width: 1024px) {
  .archive-layout {
    grid-template-columns: 1fr 300px;
  }
}

/* ----- 投稿リスト（横長カード・2枚目デザイン準拠） ----- */
.posts-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.post-list-item {
  display: flex;
  flex-direction: row;
  gap: 0;
  padding: 28px 4px;
  border-bottom: 1px solid #ddd4c4;
  transition: opacity .15s;
}
.post-list-item:first-child { border-top: 1px solid #ddd4c4; }
.post-list-item:hover { opacity: 0.85; }

/* サムネイル */
.post-list-thumbnail {
  flex-shrink: 0;
  width: 140px;
  height: 105px;
  border-radius: 6px;
  overflow: hidden;
  background: #f0ece6;
  margin-right: 20px;
}

.post-list-thumbnail a { display: block; width: 100%; height: 100%; }

.post-list-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.post-list-item:hover .post-list-thumbnail img { transform: scale(1.04); }

/* 記事本文エリア */
.post-list-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* メタ情報 */
.post-list-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.post-list-category {
  display: inline-block !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  background: transparent !important;
  border: 1.5px solid #555 !important;
  padding: 2px 10px !important;
  border-radius: 999px !important;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.post-list-category:hover {
  background: #1a1a1a !important;
  color: #fff !important;
  opacity: 1;
}

.post-list-date {
  font-size: 0.8rem;
  color: #999;
}

/* タイトル */
.post-list-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
  margin: 0;
}

.post-list-title a {
  color: #1a1a1a;
  text-decoration: none;
}
.post-list-title a:hover { color: #c8102e; }

/* 抜粋 */
.post-list-excerpt {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

/* 続きを読む */
.post-list-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #c8102e;
  text-decoration: none;
  margin-top: 4px;
}
.post-list-more:hover { text-decoration: underline; opacity: 1; }

/* モバイル：縦積み */
@media (max-width: 599px) {
  .post-list-item { flex-direction: column; padding: 18px; }
  .post-list-thumbnail { width: 100%; height: 160px; margin-right: 0; margin-bottom: 14px; }
}

/* ----- ページネーション ----- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid #e5ddd0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #444;
  text-decoration: none;
  background: #fff;
  transition: all .2s;
}
.pagination .page-numbers:hover {
  background: #0f1b3d;
  color: #fff;
  border-color: #0f1b3d;
}
.pagination .page-numbers.current {
  background: #0f1b3d;
  color: #fff;
  border-color: #0f1b3d;
}
.pagination .page-numbers.dots {
  border: none;
  background: none;
}

/* ===========================================
   サイドバー
=========================================== */
.archive-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ウィジェット共通 */
.sidebar-widget {
  background: #ffffff !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 12px rgba(15,27,61,0.08) !important;
  padding: 22px !important;
  border: 1px solid #e5ddd0 !important;
}

/* カテゴリページ・会社紹介ページのサイドバーも同様 */
.archive-sidebar .sidebar-widget,
.sidebar .sidebar-widget {
  background: #ffffff !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 12px rgba(15,27,61,0.08) !important;
  padding: 22px !important;
  border: 1px solid #e5ddd0 !important;
}

.sidebar-widget-title,
.sidebar-section__title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.95rem;
  font-weight: 900;
  color: #0f1b3d;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #0f1b3d;
}

.sidebar-section__title a {
  color: #0f1b3d;
  text-decoration: none;
}
.sidebar-section__title a:hover { color: #c8102e; }

/* サムネイル付き記事リスト */
.sidebar-posts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-post {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #f0ece6;
}
.sidebar-post:first-child { padding-top: 0; }
.sidebar-post:last-child { border-bottom: none; padding-bottom: 0; }

.sidebar-post__img {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  display: block;
  background: #f0ece6;
}
.sidebar-post__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-post__body {
  flex: 1;
  min-width: 0;
}

.sidebar-post__title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
  line-height: 1.5;
  margin-bottom: 4px;
}
.sidebar-post__title:hover { color: #c8102e; }

.sidebar-post__date {
  font-size: 0.72rem;
  color: #aaa;
}

/* カテゴリ一覧リンク */
.sidebar-section__more {
  display: block;
  text-align: right;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f1b3d;
  text-decoration: none;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e5ddd0;
}
.sidebar-section__more:hover { color: #c8102e; }

/* サイドバーCTA */
.sidebar-cta {
  background: linear-gradient(135deg, #0f1b3d, #1a2d5a) !important;
  border: none !important;
  text-align: center;
}
.sidebar-cta__label {
  font-size: 0.9rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 14px;
}
.sidebar-cta__btn {
  display: block;
  background: linear-gradient(180deg, #dc2626, #b91c1c);
  color: #fff !important;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 13px 16px;
  border-radius: 6px;
  text-decoration: none !important;
  box-shadow: 0 3px 0 #7a0e16;
  transition: transform .15s;
}
.sidebar-cta__btn:hover { transform: translateY(2px); opacity: 1; }

/* ----- 記事個別ページ（single.css と共有） ----- */
.single-post {
  padding: 48px 0 72px;
  background: #f4ece0;
}

.single-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  align-items: start;
}

@media (min-width: 1024px) {
  .single-layout {
    grid-template-columns: 1fr 300px;
  }
}

/* レスポンシブ */
@media (max-width: 768px) {
  .archive-title { font-size: 1.6rem; }
  .archive-layout { padding: 0 16px; }
  .archive-header-inner { padding: 0 16px; }
  .container { padding: 0 16px; }
  .post-list-thumbnail img { height: 160px; }
}