/*
 * NEWS/記事ページ専用スタイル
 * style-page-news.css
 *
 * 対象ページ:
 * - page-news.php（NEWS一覧）
 * - single.php（記事詳細）
 */

/* =============================================
   個別記事ページ
   ============================================= */
.page-single {
  padding: 30px 20px;
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .page-single {
    padding: 40px 40px;
  }
}

.single-article {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.article-thumbnail {
  margin: -40px -40px 30px -40px;
  border-radius: var(--radius-card) 12px 0 0;
  overflow: hidden;
}

.article-thumbnail img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.article-thumbnail-default {
  background: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-thumbnail-default img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center 60%;
}

.article-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-beige);
}

.article-date {
  display: block;
  font-size: 14px;
  color: var(--color-gray-soft);
  margin-bottom: 10px;
}

.article-title {
  font-size: 24px;
  color: var(--color-brown);
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
}

.article-content {
  font-size: 16px;
  line-height: 2;
}

.article-content p {
  margin-bottom: 1.5em;
}

.article-content ul,
.article-content ol {
  margin: 1.5em 0 1.5em 1.5em;
  padding-left: 1em;
  list-style-position: outside;
}

.article-content li {
  margin-bottom: 0.5em;
}

.article-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--color-beige);
  font-size: 14px;
  color: #666;
}

.article-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 0;
  padding: 0 0 20px 0;
}

.article-nav a {
  color: var(--color-brown);
  text-decoration: none;
  font-size: 14px;
}

.article-nav a:hover {
  text-decoration: underline;
}

.back-to-list {
  text-align: center;
  margin-top: 40px;
}

/* 上部配置の一覧に戻るリンク */
.back-to-list-top {
  text-align: right;
  margin: 0 0 10px 0;
}

.back-to-list-top .btn-back {
  display: inline;
  padding: 0;
  background: none;
  color: var(--color-brown);
  font-size: 13px;
}

.back-to-list-top .btn-back:hover {
  text-decoration: underline;
}

.btn-back {
  display: inline-block;
  padding: 12px 30px;
  background: var(--color-brown);
  color: var(--color-white);
  text-decoration: none;
  border-radius: 30px;
  font-size: 14px;
  transition: opacity 0.3s ease;
}

.btn-back:hover {
  opacity: 0.8;
}

/* =============================================
   NEWS一覧ページ
   ============================================= */
.page-news {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

@media (min-width: 768px) {
  .page-news {
    padding: 0 40px 100px;
  }
}

.news-archive {
  margin-top: 40px;
}

.news-list-full {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-article {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 30px;
  box-shadow: var(--shadow-card);
}

.news-article .news-date {
  display: block;
  font-size: 14px;
  color: var(--color-gray-soft);
  margin-bottom: 8px;
}

.news-article .news-title {
  font-size: 18px;
  margin: 0 0 15px 0;
  font-weight: 500;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-beige);
}

.news-article .news-title a {
  color: var(--color-brown);
  text-decoration: none;
}

.news-article .news-title a:hover {
  text-decoration: underline;
}

/* 本文エリア（サムネイル+excerpt） */
.news-body.has-thumbnail {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.news-article .news-thumbnail {
  flex: 0 0 120px;
  display: block;
}

.news-article .news-thumbnail img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
}

.news-body .news-excerpt {
  flex: 1;
}

.news-excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
}

.news-excerpt p {
  margin: 0;
}

.news-excerpt ul,
.news-excerpt ol {
  margin: 0.5em 0 0.5em 1.5em;
  padding-left: 1em;
}

.news-excerpt li {
  margin-bottom: 0.3em;
}

.news-pagination {
  margin-top: 40px;
  text-align: center;
}

.news-pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.news-pagination a,
.news-pagination span {
  display: inline-block;
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 14px;
  text-decoration: none;
}

.news-pagination a {
  background: var(--color-white);
  color: var(--color-brown);
  border: 1px solid var(--color-beige);
}

.news-pagination a:hover {
  background: var(--color-beige);
}

.news-pagination .current {
  background: var(--color-brown);
  color: var(--color-white);
}

.no-news {
  text-align: center;
  color: var(--color-gray-soft);
  padding: 60px 0;
}

/* =============================================
   レスポンシブ（スマホ対応）
   ============================================= */
@media (max-width: 768px) {
  /* NEWS一覧 スマホ対応 */
  .news-body.has-thumbnail {
    flex-direction: column;
    gap: 15px;
  }

  .news-article .news-thumbnail {
    flex: none;
    width: 100%;
  }

  .news-article .news-thumbnail img {
    width: 100%;
    height: 150px;
  }
}
