/* =============================================================
   news.css — お知らせ（TOP のお知らせ欄 / 一覧 /news/ / 記事 /news/yyyy/mm/id/）
============================================================= */

/* ── 行リスト（_news_list.html。TOP と一覧で共通） ─────── */
.news-list { margin: 0 0 60px; border-top: 1px solid #e6e6e6; }
.news-list li { border-bottom: 1px solid #e6e6e6; }
.news-row {
  display: flex;
  align-items: center;
  gap: 8px 20px;
  padding: 22px 20px;
  color: inherit;
  text-decoration: none;
  transition: background-color .15s;
}
.news-row:hover { background-color: #f7f7f8; color: inherit; }
.news-row:hover .news-title { }
.news-date { flex: 0 0 auto; font-size: 14px; color: #888; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.news-cat {
  flex: 0 0 auto;
  display: inline-block;
  min-width: 96px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eef0f3;
  color: #555;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}
.news-cat.is-important { background: #fdf1e3; color: #e60033; }
.news-arrow { flex: 0 0 auto; color: #bbb; font-size: 14px; }

/* ── TOP のお知らせ欄（index.html） ────────────────── */
section.topnews .container { max-width: 960px; }
section.topnews .topnews-eyebrow { margin: 0 0 8px; text-align: center; font-size: 14px; font-weight: 900; letter-spacing: .14em; color: #017aff; }
section.topnews h2.topnews-title { margin: 0 0 40px; text-align: center; font-size: 52px; font-weight: 900; line-height: 1.35; }
section.topnews .topnews-more { margin: 0; text-align: center; }
section.topnews .topnews-more .btn { padding: 10px 32px; }

/* ── 一覧 /news/ ─────────────────────────────────── */
section.news-index .container { max-width: 960px; padding-top: 0; }
.news-empty { padding: 40px 0; text-align: center; color: #666; }
.news-pager { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 40px; font-size: 14px; }
.news-pager a { color: #333; text-decoration: none; }
.news-pager a:hover { text-decoration: underline; }
.news-pager-num { color: #888; }

/* ── 記事 /news/yyyy/mm/id/ ──────────────────────── */
section.news-article .container { max-width: 800px; }
.news-preview { margin: 0 0 24px; padding: 10px 16px; border-radius: 8px; background: #fff4d6; color: #7a5a00; font-size: 14px; font-weight: 700; text-align: center; }
.news-head { margin-bottom: 45px; padding-bottom: 15px; border-bottom: 1px solid #e6e6e6; }
.news-meta { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.news-h1 { margin: 0; font-size: 30px; font-weight: 900; line-height: 1.5; }

/* 本文（microCMS のリッチエディタの HTML） */
.news-body { font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.news-body > :first-child { margin-top: 0; }
.news-body p { margin: 0 0 1.4em; }
.news-body h2 { position: relative; margin: 2.4em 0 1.0em; padding-left: 18px;  font-size: 21px; font-weight: 800; line-height: 1; }
.news-body h2::before {
  content: "";
  position: absolute;
  left: 0;
  width: 6px;
  height: 96%;
  background-color: #017aff;
  top: 60%;
  transform: translateY(-50%);
  border-radius: 2px;
}
.news-body h3 { margin: 1.8em 0 .6em; font-size: 18px; font-weight: 800; line-height: 1.5; }
.news-body h4 { margin: 1.6em 0 .5em; font-size: 16px; font-weight: 800; }
.news-body ul, .news-body ol { margin: 0 0 1.4em; padding-left: 1.5em; }
.news-body li { }
.news-body a { color: #017aff; text-decoration: underline; }
.news-body strong { font-weight: 800; }
.news-body img { max-width: 100%; height: auto; border-radius: 8px; }
.news-body figure { margin: 0 0 1.4em; }
.news-body blockquote { margin: 0 0 1.4em; padding: 12px 18px; border-left: 4px solid #ddd; background: #f7f7f8; color: #555; }
/*
.news-body table { width: 100%; margin: 0 0 1.4em; border-collapse: collapse; font-size: 15px; }
.news-body th, .news-body td { padding: 10px 0px; border-bottom: 1px solid #ddd; text-align: left; vertical-align: top; }
.news-body th { background: #f7f7f8; font-weight: 700; }
.news-body hr { margin: 2em 0; border: 0; border-top: 1px solid #e6e6e6; opacity: 1; }
*/

/* 前後の記事・一覧へ戻る */
.news-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.news-nav a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid #e6e6e6; border-radius: 12px; color: inherit; text-decoration: none; }
.news-nav a:hover { border-color: #017aff; }
.news-nav-older { grid-column: 2; text-align: right; }
.news-nav-label { font-size: 12px; color: #888; }
.news-nav-title { font-size: 14px; font-weight: 700; line-height: 1.5; }
.news-back { margin: 80px 0 0; text-align: center; }
.news-back .btn { padding: 10px 32px; }

/* ── スマホ ─────────────────────────────────────── */
@media screen and (max-width: 767px) {
  .news-row { flex-wrap: wrap; padding: 16px 4px; gap: 6px 10px; }
  .news-cat { min-width: 0; }
  .news-title { flex-basis: 100%; order: 3; font-size: 14px; }
  .news-arrow { display: none; }
  section.topnews h2.topnews-title { margin-bottom: 28px; }
  section.news-article .container { padding-top: 20px; }
  .news-h1 { font-size: 26px; }
  .news-body { font-size: 14px; }
  .news-body h2 { font-size: 18px!important; }
  .news-body h3 { font-size: 16px; }
  .news-nav { grid-template-columns: 1fr; }
  .news-nav-older { grid-column: auto; text-align: left; }
}
