@charset "utf-8";

/* ============================================
   一覧ページ用スタイル (News List)
   ============================================ */
.news-list-wrap {
  margin: 0 0 80px;
  padding: 0;
  border-top: 1px solid #d1d7e0;
}

.news-item {
  border-bottom: 1px solid #d1d7e0;
}

.news-date {
  margin-right: 10px;
  color: var(--color-accent);
}

.cate {
  margin-right: 40px;
  padding: 0 6px;
  background: #f3f3f3;
  font-size: var(--fs14);
}

.news-link {
  display: flex;
  align-items: baseline;
  padding: 20px 0;
  transition: opacity 0.3s;
}
.news-link:hover {
  opacity: 0.7;
}

.news-title {
  flex: 1;
  font-weight: bold;
}

@media screen and (max-width: 768px) {
  .l-page-header {
    margin-bottom: 0;
  }
  .news-link {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .news-list-wrap .news-meta {
    min-width: auto;
    margin-bottom: 8px;
  }
  .news-title {
    flex: auto;
    margin-top: 8px;
  }
}

/* ページネーション */
.pagination {
  margin-bottom: 40px;
  text-align: center;
}
.pagination a,
.pagination span {
  display: inline-block;
  margin: 0 2px;
  padding: 10px 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-decoration: none;
  color: var(--color-accent);
}
.pagination .current {
  border-color: var(--color-accent);
  background-color: var(--color-accent);
  color: #fff;
}

/* ============================================
   詳細ページ用スタイル (News Detail)
   ============================================ */

.article-header_detail {
  display: flex;
}
.article-body {
  margin-bottom: 80px;
}

.article-title {
  margin-bottom: 30px;
  padding-bottom: 8px;
  border-bottom: 1px solid #d1d7e0;
  font-size: var(--fs32);
  font-weight: bold;
}

.article-btn {
  display: flex;
  justify-content: center;
}

/* 本文内の見出し */
.article-body h2 {
  margin-top: 50px;
  margin-bottom: 30px;
  padding: 0 0 10px 20px;
  border-bottom: 2px solid var(--color-accent);
  border-left: 15px solid var(--color-accent);
  font-size: var(--fs28);
  font-weight: bold;
  color: var(--color-accent);
}
.article-body h3 {
  margin-top: 40px;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--color-accent);
  font-size: var(--fs24);
  font-weight: bold;
  color: var(--color-accent);
}
.article-body h4 {
  margin-top: 40px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-accent);
  font-size: var(--fs22);
  font-weight: bold;
}
.article-body h5 {
  margin-top: 30px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  font-size: var(--fs20);
  font-weight: bold;
  color: var(--color-accent);
}
.article-body h6 {
  margin-top: 30px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  font-size: var(--fs18);
  font-weight: bold;
}

/* 本文内のリスト */
.article-body ul,
.article-body ol {
  margin-bottom: 30px;
  padding: 20px 20px 20px 40px;
  padding-left: 20px;
  background: #f8f8f8; /* 背景をつけて少し目立たせる */
}
.article-body ul {
  list-style: disc;
}
.article-body ol {
  list-style: decimal;
}

/* 本文内の画像 */
.article-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .article-title {
    font-size: 20px;
  }
  .article-body {
    font-size: 15px;
  }
  .article-body h2 {
    margin-top: 30px;
    font-size: 18px;
  }
  .article-body h3 {
    margin-top: 30px;
    font-size: 16px;
  }
}
