/* 新闻页面专用样式 */

/* 分页样式修复 */
.l-pagination {
  text-align: center;
  margin: 40px 0;
}

.l-pagination .pagination {
  display: inline-block;
  padding: 0;
  margin: 0;
  list-style: none;
}

.l-pagination .pagination li {
  display: inline-block;
  margin: 0 2px;
}

.l-pagination .pagination li a,
.l-pagination .pagination li span {
  display: inline-block;
  padding: 8px 15px;
  min-width: 40px;
  text-align: center;
  background: #fff;
  border: 1px solid #ddd;
  color: #333;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 1.4rem;
}

.l-pagination .pagination li a:hover {
  background: #E55A00;
  border-color: #E55A00;
  color: #fff;
}

.l-pagination .pagination li.active span {
  background: #E55A00;
  border-color: #E55A00;
  color: #fff;
}

.l-pagination .pagination li.disabled span {
  color: #999;
  cursor: not-allowed;
  opacity: 0.5;
}

/* 第一页和最后一页的特殊样式 */
.l-pagination .pagination li:first-child a,
.l-pagination .pagination li:first-child span {
  border-radius: 4px 0 0 4px;
}

.l-pagination .pagination li:last-child a,
.l-pagination .pagination li:last-child span {
  border-radius: 0 4px 4px 0;
}

/* 响应式分页 */
@media (max-width: 768px) {
  .l-pagination .pagination li {
    margin: 2px 1px;
  }

  .l-pagination .pagination li a,
  .l-pagination .pagination li span {
    padding: 6px 12px;
    min-width: 35px;
    font-size: 1.2rem;
  }
}

/* ===== ニュース一覧 サムネイル付きカード (B4) ===== */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list__item { border-bottom: 1px solid #ececea; }
.news-list__item:first-child { border-top: 1px solid #ececea; }
.news-list__link.-with-thumb {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 18px 8px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}
.news-list__link.-with-thumb:hover { background: #fafafa; }
.news-list__thumb {
  flex: 0 0 200px;
  width: 200px;
  aspect-ratio: 1200 / 630;
  border-radius: 6px;
  overflow: hidden;
  background: #0c1424;
}
.news-list__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-list__main { flex: 1 1 auto; min-width: 0; }
.news-list__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.news-list__date {
  font-size: 1.3rem;
  color: #8a8f98;
  font-variant-numeric: tabular-nums;
}
.news-list__category {
  font-size: 1.2rem;
  color: #E85D20;
  border: 1px solid #E85D20;
  border-radius: 3px;
  padding: 1px 8px;
  line-height: 1.6;
}
.news-list__title {
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.55;
  color: #1A2744;
  margin: 0;
  overflow-wrap: break-word;
}
.news-list__link.-with-thumb:hover .news-list__title { color: #E85D20; }

@media (max-width: 768px) {
  .news-list__link.-with-thumb { gap: 14px; padding: 14px 4px; align-items: flex-start; }
  .news-list__thumb { flex: 0 0 110px; width: 110px; }
  .news-list__title { font-size: 1.5rem; }
}

/* ===== ニュース詳細 ヒーロー画像 (B4) ===== */
.news-hero {
  margin: 0 0 28px;
  border-radius: 8px;
  overflow: hidden;
  background: #0c1424;
}
.news-hero img { width: 100%; max-height: 380px; object-fit: cover; display: block; }
@media (max-width: 768px) {
  .news-hero img { max-height: 240px; }
}

/* ニュース詳細ページ - 統一スタイル */

/* 本文のフォント・行間を統一 */
.news-detail-body {
  font-size: 1.6rem;
  line-height: 1.8;
  color: #333;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
}

.news-detail-body p {
  margin-bottom: 1.2em;
}

.news-detail-body a { color: #E85D20; }
.news-detail-body h1,
.news-detail-body h2,
.news-detail-body h3,
.news-detail-body h4 { color: #1A2744; }

/* 本文の見出し（metoh移行記事のセクション見出し） */
.news-detail-body h3 {
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.5;
  margin: 1.8em 0 0.6em;
  padding-left: 12px;
  border-left: 4px solid #E85D20;
}
.news-detail-body h3:first-child { margin-top: 0; }

/* 本文リスト */
.news-detail-body ul { margin: 0 0 1.2em 1.4em; list-style: disc; }
.news-detail-body ol { margin: 0 0 1.2em 1.6em; list-style: decimal; }
.news-detail-body li { margin-bottom: 0.4em; }

/* 本文中の画像（レスポンシブ） */
.news-detail-body img { max-width: 100%; height: auto; }
.news-detail-body figure.news-figure {
  margin: 24px auto;
  text-align: center;
}
.news-detail-body figure.news-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  display: inline-block;
  box-shadow: 0 2px 10px rgba(12, 20, 36, 0.08);
}
.news-detail-body figure.news-figure figcaption {
  font-size: 1.3rem;
  color: #666;
  margin-top: 8px;
  line-height: 1.5;
}

/* 本文中の表（株主構成など） */
.news-detail-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 1.45rem;
  line-height: 1.6;
}
.news-detail-body th,
.news-detail-body td {
  border: 1px solid #e0e3e8;
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}
.news-detail-body thead th {
  background: #1A2744;
  color: #fff;
  font-weight: 600;
}
.news-detail-body tbody tr:nth-child(even) { background: #f7f8fa; }
@media (max-width: 768px) {
  .news-detail-body table { font-size: 1.3rem; display: block; overflow-x: auto; }
  .news-detail-body th, .news-detail-body td { padding: 6px 8px; }
}

/* 関連ニュース セクション */
.news-related-section {
  border-top: 1px solid #e5e5e5;
  padding-top: 40px;
  margin-top: 20px;
}

/* 関連ニュースカードの間隔調整 */
.news-related-section .l-grid {
  row-gap: 8px !important;
}

.news-related-section .l-grid__item.-col6.u-mb-m {
  margin-bottom: 8px !important;
}

/* 関連ニュースカードのホバー効果 */
.news-related-section .c-card {
  display: block;
  text-decoration: none;
  color: #333;
  transition: opacity 0.2s ease;
}

.news-related-section .c-card:hover {
  opacity: 0.7;
}

/* カードタイトルのフォント統一 */
.news-related-section .c-card__title {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.6;
}

/* カード日付のフォント統一 */
.news-related-section .c-card__header time {
  font-size: 1.4rem;
  color: #666;
  line-height: 1.4;
}