/* ==========================================================
   archive.css
   一覧ページ共通スタイル
   （お知らせ一覧・サービス一覧・ページネーション）
   読み込み順: variables.css → base.css → archive.css
   ========================================================== */


/* ----------------------------------------------------------
   1. 共通バッジ（カテゴリ・サービス区分など）
   ---------------------------------------------------------- */
.archive-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 10px;
  border-radius: 100px;
  background: #dbeafe;
  color: #1d4ed8;
  margin-bottom: 6px;
}


/* ----------------------------------------------------------
   2. 共通矢印
   ---------------------------------------------------------- */
.archive-arrow {
  font-size: 0.9rem;
  color: #999;
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}


/* ----------------------------------------------------------
   3. 「データなし」メッセージ
   ---------------------------------------------------------- */
.archive-empty {
  padding: 40px 0;
  text-align: center;
  font-size: 0.9rem;
  color: #999;
}


/* ----------------------------------------------------------
   4. お知らせ一覧（news-list）
   ---------------------------------------------------------- */
.news-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 0 auto;
}

.news-list__item {
  border-bottom: 1px solid var(--border);
}

.news-list__item:first-child {
  border-top: 1px solid var(--border);
}

.news-list__link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 4px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s ease;
}

.news-list__link:hover {
  background-color: var(--red-pale);
}

.news-list__link:hover .archive-arrow {
  transform: translateX(4px);
  color: #d32f2f;
}

.news-list__date {
  font-size: 0.8rem;
  color: #999;
  white-space: nowrap;
  min-width: 90px;
}

.news-list__title {
  flex: 1;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
}

/* ── お知らせ詳細ページ（単独ページ）の旧スタイルも統合 ── */
.list-group-item a {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 22px 48px;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: background 0.2s;
}

.list-group-item a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.3s ease;
}

.list-group-item a:hover {
  background: var(--red-pale);
  color: inherit;
}

.list-group-item a:hover::after { width: 100%; }

.news_date {
  font-family: 'Libre Baskerville', serif;
  font-size: 0.72rem;
  color: var(--red);
  letter-spacing: 0.08em;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 90px;
}

.news_badge {
  font-size: 0.58rem !important;
  letter-spacing: 0.15em !important;
  background-color: var(--red) !important;
  color: var(--white) !important;
  padding: 3px 8px !important;
  border-radius: 0 !important;
  flex-shrink: 0;
  align-self: center;
  font-weight: 400 !important;
}

.news_title {
  font-size: 0.84rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1.7;
  letter-spacing: 0.04em;
  flex: 1;
}

.news_arrow {
  font-size: 0.7rem;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.2s, color 0.2s;
}

.list-group-item a:hover .news_arrow {
  transform: translateX(4px);
  color: var(--red);
}


/* ----------------------------------------------------------
   5. サービス一覧（service-list）
   ---------------------------------------------------------- */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

.service-list__item {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.15s ease;
}

.service-list__item:first-child {
  border-top: 1px solid var(--border);
}

.service-list__item:hover {
  background-color: var(--red-pale);
}

.service-list__item:hover .archive-arrow {
  transform: translateX(4px);
  color: #d32f2f;
}

.service-list__img {
  width: 120px;
  height: 90px;
  flex-shrink: 0;
  overflow: hidden;
}

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

.service-list__body {
  flex: 1;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.service-list__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.4;
}

.service-list__desc {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.service-list__arrow-wrap {
  display: flex;
  align-items: center;
  padding: 0 20px;
}

/* ── TOPページサービスセクションの旧スタイルも統合 ── */
.svc_row {
  border: 1px solid var(--border);
}

.svc_content h3 {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  line-height: 1.5;
}

.svc_content p {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.8rem;
  line-height: 2.05;
  color: var(--muted);
  font-weight: 300;
}


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

.archive-pagination .nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.archive-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 0.85rem;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 2px;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.archive-pagination .page-numbers:hover {
  background-color: var(--text);
  color: #fff;
  border-color: var(--text);
}

.archive-pagination .page-numbers.current {
  background-color: #d32f2f;
  color: #fff;
  border-color: #d32f2f;
  font-weight: 700;
}

.archive-pagination .page-numbers.dots {
  border: none;
  background: none;
  cursor: default;
}


/* ----------------------------------------------------------
   7. レスポンシブ
   ---------------------------------------------------------- */
@media (max-width: 767px) {
  /* お知らせ：日付を上・タイトルを下に */
  .news-list__link {
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 4px;
  }

  .news-list__date {
    min-width: auto;
    order: 1;
  }

  .archive-badge{
    order: 2;
  }

  .news-list__title {
    width: 100%;
    order: 3;
    flex-basis: 100%;
  }

  .archive-arrow {
    order: 4;
    margin-left: auto;
  }

  /* サービス一覧：画像非表示 */
  .service-list__img {
    display: none;
  }

  .service-list__body {
    padding: 16px;
  }
}
