/* =====================================================
   FabLab Oita — news.css
   お知らせ一覧 / 記事詳細 共通スタイル
===================================================== */

/* =====================
   PAGE HEADER (一覧)
===================== */
.page-header {
  padding: 4rem 3rem 3rem;
  border-bottom: 1px solid var(--border);
  max-width: 900px;
  margin: 0 auto;
}
.page-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--lighter);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.page-title {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 1rem;
}
.page-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.9;
  font-weight: 300;
}

/* =====================
   NEWS LIST（noteカードと同スタイル）
===================== */
.news-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 3rem 6rem;
}
.news-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 2rem; position: relative; }
.news-list::after { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 0.5px; background: #e8e8e8; }
.news-item {
  display: grid;
  grid-template-columns: 100px 160px 1fr auto;
  align-items: center;
  padding: 1.1rem 0;
  border-bottom: 1px solid #e8e8e8;
  gap: 1.5rem;
  text-decoration: none;
  transition: opacity 0.2s;
}
.news-item:hover .news-title,
.news-item:hover .news-date,
.news-item:hover .news-arrow { color: #000; }
.news-date {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--lighter);
}
.news-thumb {
  width: 160px;
  height: 108px;
  background: var(--border);
  overflow: hidden;
  flex-shrink: 0;
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-title { font-size: 0.82rem; color: var(--muted); }
.news-arrow {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--lighter);
}
.news-empty { font-size: 0.82rem; color: var(--lighter); padding: 1rem 0; }

/* =====================
   ARTICLE（記事詳細）
===================== */
.article-hero {
  width: 100%;
  aspect-ratio: 1920 / 860;
  overflow: hidden;
  background: var(--bg-dark);
}
.article-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 3rem 2rem;
}
.article-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--lighter);
  margin-bottom: 0.8rem;
}
.article-title {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 2rem;
}
.article-body {
  font-size: 0.9rem;
  color: #333;
  line-height: 2;
  font-weight: 300;
}
.article-body p + p { margin-top: 1.4em; }
.article-body img { max-width: 100%; display: block; margin: 1.5em 0; }

/* =====================
   ARTICLE PAGER（前後記事ナビ）
===================== */
.article-pager {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 3rem 5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--border);
}
.pager-link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}
.pager-link:hover { color: var(--text); }
.pager-link.prev { text-align: left; }
.pager-link.next { text-align: right; }
.pager-link.is-disabled {
  color: var(--border);
  pointer-events: none;
}
.pager-back {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--lighter);
  text-decoration: none;
  text-align: center;
  text-transform: uppercase;
}
.pager-back:hover { color: var(--text); }

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 768px) {
  .page-header, .news-wrap, .article-wrap, .article-pager {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .news-list { grid-template-columns: 1fr; }
  .news-list::after { display: none; }
  .news-item { grid-template-columns: 80px 1fr auto; }
  .news-thumb { display: none; }
}
