/* =============================================
   CHYLIM — ニュース共通スタイル (chylim_news.css)
   一覧・詳細ページで共有
============================================= */

/* ===== PAGE HERO (一覧用) ===== */
.page-hero {
  background: var(--green-dark);
  padding: 100px 24px 56px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(116,198,157,0.04) 0px,
      rgba(116,198,157,0.04) 1px,
      transparent 1px,
      transparent 40px
    );
}
.page-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.page-hero-label {
  font-family: var(--font-sub);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--green-light);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 10px;
}
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 10vw, 96px);
  color: white;
  line-height: 1;
  letter-spacing: 4px;
  margin-bottom: 12px;
}
.page-hero-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
}

/* ===== BREADCRUMB ===== */
.breadcrumb-bar {
  background: var(--gray-light);
  border-bottom: 1px solid #e8e8e8;
  padding: 10px 24px;
  margin-top: 64px;
}
.breadcrumb-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--gray-mid);
}
.breadcrumb-inner a {
  color: var(--green-main);
  text-decoration: none;
}
.breadcrumb-inner a:hover { text-decoration: underline; }
.breadcrumb-sep { color: #ccc; }

/* ===== NEWS LIST ===== */
.news-list-body {
  padding: 56px 24px 80px;
  background: #fafaf8;
  min-height: 60vh;
}
.news-list-inner {
  max-width: 1000px;
  margin: 0 auto;
}

/* フィルター */
.news-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.news-filter-btn {
  padding: 7px 18px;
  border-radius: 99px;
  border: 2px solid #e8e8e8;
  background: white;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--gray-mid);
  cursor: pointer;
  transition: all 0.2s;
}
.news-filter-btn:hover { border-color: var(--green-main); color: var(--green-main); }
.news-filter-btn.active { background: var(--green-dark); border-color: var(--green-dark); color: white; }

/* グリッド */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* カード */
.news-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}
.news-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.news-card-img {
  height: 160px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 12px;
}
.news-card-cat {
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 99px;
}
.news-card-body { padding: 18px 20px 20px; }
.news-card-date {
  display: block;
  font-size: 11px;
  color: var(--gray-mid);
  font-family: var(--font-sub);
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.news-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.6;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-excerpt {
  font-size: 12px;
  color: var(--gray-mid);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}
.news-card-more {
  font-size: 12px;
  font-weight: 700;
  color: var(--green-main);
}
.news-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--gray-mid);
  font-size: 14px;
}

/* ===== ARTICLE DETAIL ===== */
.article-body {
  padding: 48px 24px 80px;
  background: #fafaf8;
}
.article-inner {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}
.article-header { margin-bottom: 28px; }
.article-cat-badge {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 12px;
  border-radius: 99px;
  margin-bottom: 14px;
}
.article-title {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.5;
  margin-bottom: 12px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--gray-mid);
}
.article-eyecatch {
  width: 100%;
  height: 240px;
  border-radius: 14px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.article-eyecatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 本文スタイル */
.article-content {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text);
}
.article-content p { margin-bottom: 20px; }
.article-content h2 {
  font-family: var(--font-sub);
  font-size: 18px;
  font-weight: 700;
  color: var(--green-dark);
  margin: 36px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--green-main);
}
.article-content h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--green-dark);
  margin: 24px 0 10px;
}
.article-content ul, .article-content ol {
  margin: 0 0 20px 20px;
}
.article-content li { margin-bottom: 6px; }
.article-content strong { color: var(--green-dark); }
.article-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 28px;
  font-size: 13px;
}
table { width: 100%; }
tr { border-bottom: 1px solid #efefef; }
tr:first-child { border-top: 1px solid #efefef; }
th {
  min-width: 120px;
  padding: 12px 14px;
  background: var(--gray-light);
  font-weight: 700;
  color: var(--green-dark);
  vertical-align: top;
  white-space: nowrap;
}
td { padding: 12px 14px; }
.article-info-box {
  background: var(--green-pale);
  border-left: 4px solid var(--green-main);
  border-radius: 0 12px 12px 0;
  padding: 18px 20px;
  margin: 28px 0;
}
.article-info-box-title {
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 8px;
  font-size: 14px;
}

/* 前後ナビ */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid #efefef;
}
.article-nav-prev, .article-nav-next {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  background: white;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.2s;
}
.article-nav-prev:hover, .article-nav-next:hover { border-color: var(--green-main); }
.article-nav-next { text-align: right; }
.article-nav-label { font-size: 11px; color: var(--gray-mid); font-weight: 600; letter-spacing: 1px; }
.article-nav-title { font-size: 12px; color: var(--green-dark); font-weight: 700; line-height: 1.5; }

/* サイドバー */
.article-sidebar { position: sticky; top: 80px; }
.article-sidebar-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.article-sidebar-card-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--green-main);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.article-sidebar-cats {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.article-sidebar-cats a {
  display: block;
  padding: 7px 10px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  color: var(--text);
  transition: background 0.15s;
}
.article-sidebar-cats a:hover, .article-sidebar-cats a.active {
  background: var(--green-pale);
  color: var(--green-dark);
  font-weight: 700;
}
.article-sidebar-recent {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.article-sidebar-recent li { border-bottom: 1px solid #f0f0f0; }
.article-sidebar-recent li:last-child { border-bottom: none; }
.article-sidebar-recent a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 4px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.article-sidebar-recent a:hover { opacity: 0.7; }
.article-sidebar-recent-cat {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  background: var(--accent);
  color: white;
  padding: 1px 7px;
  border-radius: 99px;
  width: fit-content;
}
.article-sidebar-recent-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.5;
}
.article-sidebar-recent time {
  font-size: 10px;
  color: var(--gray-mid);
  font-family: var(--font-sub);
}

/* ===== btn-outline-green ===== */
.btn-outline-green {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  border: 2px solid var(--green-main);
  color: var(--green-main);
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-outline-green:hover {
  background: var(--green-main);
  color: white;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .news-grid { grid-template-columns: 1fr 1fr; }
  .article-inner { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}
@media (max-width: 600px) {
  .page-hero { padding: 88px 20px 40px; }
  .news-grid { grid-template-columns: 1fr; }
  .article-nav { grid-template-columns: 1fr; }
  .article-eyecatch { height: 180px; }
}

/* ===== NEWS SIMPLE LIST ===== */
.news-simple-body {
  padding: 56px 24px 80px;
  background: #fafaf8;
  min-height: 70vh;
}
.news-simple-inner {
  max-width: 760px;
  margin: 0 auto;
}
.news-simple-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--green-dark);
}
.news-simple-title-h1 {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--green-dark);
  letter-spacing: 4px;
  line-height: 1;
}
.news-simple-count {
  font-size: 12px;
  color: var(--gray-mid);
  font-family: var(--font-sub);
}
.news-simple-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.news-simple-item {
  border-bottom: 1px solid #e8e8e8;
}
.news-simple-item:first-child { border-top: 1px solid #e8e8e8; }
.news-simple-link {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 14px 8px;
  text-decoration: none;
  transition: background 0.15s;
}
.news-simple-link:hover { background: var(--green-pale); }
.news-simple-date {
  font-family: var(--font-sub);
  font-size: 12px;
  color: var(--gray-mid);
  letter-spacing: 1px;
  white-space: nowrap;
  flex-shrink: 0;
}
.news-simple-title {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  font-weight: 500;
  transition: color 0.15s;
}
.news-simple-link:hover .news-simple-title { color: var(--green-dark); font-weight: 700; }

/* ページネーション */
.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}
.news-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-sub);
  text-decoration: none;
  color: var(--green-dark);
  border: 2px solid #e8e8e8;
  background: white;
  transition: all 0.2s;
}
.news-pagination .page-numbers:hover { border-color: var(--green-main); color: var(--green-main); }
.news-pagination .page-numbers.current {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: white;
  pointer-events: none;
}
.news-pagination .page-numbers.prev,
.news-pagination .page-numbers.next {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: var(--green-dark);
  border: 2px solid #e8e8e8;
  background: white;
  transition: all 0.2s;
}
.news-pagination-prev:hover,
.news-pagination-next:hover { border-color: var(--green-main); color: var(--green-main); }

@media (max-width: 600px) {
  .news-simple-link { gap: 12px; padding: 12px 4px; }
  .news-simple-date { font-size: 11px; }
  .news-simple-title { font-size: 13px; }
}
