/* ============================================================
   news.css — お知らせ一覧 / お知らせ詳細 ページ固有スタイル
   移植元: docs/design/mocks/news-list-v1.html / news-detail-v1.html
   共通分（リセット / .wrap / .pill-btn / .arw / .reveal / .wavy-link /
   ヘッダー / .git / .pager / フッター）は common.css 済みのため含めない
   ============================================================ */

/* 幅（一覧=940 / 詳細=820。モックの .wrap--narrow をセクション単位でスコープ） */
.newsbody .wrap--narrow { max-width: 940px; }
.artbody .wrap--narrow { max-width: 820px; }

/* カテゴリチップ
   バリアントはターム slug に対応（chip--{slug}）。
   運用で slug を ops / maint / media に合わせると配色が付く。
   未定義 slug は既定（ミント＝モックの「新着企業」配色）にフォールバック */
.chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  border-radius: 5px;
  padding: 3px 10px;
  background: var(--mint);
  color: var(--blue-dark);
  white-space: nowrap;
}
.chip--ops { background: var(--mist); color: var(--ink-soft); }
.chip--maint { background: rgba(255, 255, 255, 0.92); color: #0C0E13; }
.chip--media { background: var(--accent-dim); color: var(--accent-strong); }

/* ============ パンくず（pagehead / arthead 共通） ============ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 11px;
  flex-wrap: wrap;
}
/* タップ領域を 44px 以上にする（元は 24×22px）。左右 5px は gap の代わり（2026-08-10） */
.breadcrumb a { padding: 11px 5px; transition: opacity 0.2s ease; }
.breadcrumb a:hover { opacity: 0.6; }
.breadcrumb .sep { padding: 0 5px; opacity: 0.5; }

/* ============ ページヘッド（一覧） ============ */
.pagehead {
  position: relative;
  background: var(--grad);
  padding: 148px 0 132px;
  overflow: hidden;
}
.pagehead::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 5px 5px;
  opacity: 0.24;
  pointer-events: none;
}
.pagehead__inner { position: relative; }
.pagehead__title {
  font-family: var(--font-en);
  font-size: clamp(44px, 6vw, 84px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: #fff;
}
.pagehead__sub { margin-top: 18px; color: #fff; font-size: 15px; font-weight: 900; }

/* ============ 一覧本体 ============ */
.newsbody {
  position: relative;
  background: var(--paper);
  border-radius: 44px 44px 0 0;
  margin-top: -56px;
  z-index: 2;
  padding: 84px 0 110px;
}

.cat-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 30px; }
.cat-pill {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  border-radius: 50px;
  padding: 8px 20px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.cat-pill:hover { border-color: var(--blue); color: var(--blue-dark); }
.cat-pill.on { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); }
.cat-count { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }
.cat-count b { font-family: var(--font-en); font-size: 16px; color: var(--blue-dark); margin: 0 3px; }

/* お知らせ行リスト */
.n-list { border-top: 1px solid var(--line); }
.n-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 8px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s ease;
}
.n-row:hover { background: var(--mint-soft); }
.n-row__date { font-family: var(--font-en); font-size: 13px; font-weight: 500; color: var(--ink-soft); flex: none; width: 96px; }
.n-row__chip { flex: none; width: 96px; text-align: center; }
.n-row__title { font-size: 15px; font-weight: 700; line-height: 1.7; flex: 1; transition: color 0.2s ease; }
.n-row:hover .n-row__title { color: var(--blue-dark); }
.n-row__arw {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.n-row:hover .n-row__arw { background: var(--accent-fill); color: #fff; }

/* 0件フォールバック */
.n-empty { padding: 40px 8px; font-size: 14px; font-weight: 700; color: var(--ink-soft); border-bottom: 1px solid var(--line); }

/* ============ 記事ヘッド（詳細） ============ */
.arthead {
  position: relative;
  background: var(--grad);
  padding: 140px 0 120px;
  overflow: hidden;
}
.arthead::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 5px 5px;
  opacity: 0.24;
  pointer-events: none;
}
.arthead__inner { position: relative; max-width: 860px; }
.arthead .breadcrumb { margin-bottom: 24px; }
.arthead__meta { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.arthead__chip {
  background: rgba(255, 255, 255, 0.92);
  color: #0C0E13;
  font-size: 12px;
  font-weight: 700;
  border-radius: 50px;
  padding: 5px 16px;
}
.arthead__date { font-family: var(--font-en); font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, 0.9); }
.arthead__title {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 900;
  line-height: 1.6;
  color: #fff;
}

/* ============ 詳細本文 ============ */
.artbody {
  position: relative;
  background: var(--paper);
  border-radius: 44px 44px 0 0;
  margin-top: -56px;
  z-index: 2;
  padding: 90px 0 110px;
}
.article p { font-size: 15px; font-weight: 500; line-height: 2.2; margin-bottom: 24px; }
.article p strong { font-weight: 900; }
.article h2 {
  position: relative;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.7;
  margin: 48px 0 22px;
  padding-bottom: 14px;
}
.article h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 2px;
  background: var(--accent);
}

/* 公開企業カード */
.newcomp {
  display: flex;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 20px 16px 16px;
  margin-bottom: 14px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.newcomp:hover { box-shadow: 0 16px 32px -18px rgba(12, 35, 54, 0.28); transform: translateY(-2px); }
.newcomp__thumb {
  position: relative;
  flex: none;
  width: 132px;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: var(--teal-deep);
}
.newcomp__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.newcomp__thumb::after { content: ""; position: absolute; inset: 0; background: rgba(12, 35, 54, 0.18); }
.newcomp__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  z-index: 2;
}
.newcomp__play::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 9px;
  border-color: transparent transparent transparent var(--blue-dark);
  transform: translateX(1.5px);
}
.newcomp__name { display: block; font-size: 15.5px; font-weight: 900; margin-bottom: 2px; }
.newcomp__tags { font-size: 12px; color: var(--ink-soft); font-weight: 500; }
.newcomp__arw {
  margin-left: auto;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.newcomp:hover .newcomp__arw { background: var(--accent-fill); color: #fff; }

.article .note { font-size: 12.5px; color: var(--ink-soft); }

/* 前後ナビ */
.prevnext {
  display: flex;
  align-items: stretch;
  gap: 14px;
  margin-top: 60px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.prevnext a,
.prevnext .prevnext__blank {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  transition: background-color 0.2s ease;
}
.prevnext a:hover { background: var(--mint-soft); }
.prevnext .prevnext__blank { opacity: 0.55; }
.prevnext .dir { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; color: var(--blue-dark); margin-bottom: 6px; }
.prevnext .ttl { font-size: 13px; font-weight: 700; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prevnext .next { text-align: right; }
.prevnext .next .dir { justify-content: flex-end; }
.prevnext__back { display: flex; align-items: center; justify-content: center; margin-top: 26px; }

/* ============ レスポンシブ ============ */
@media (max-width: 700px) {
  .pagehead { padding: 120px 0 110px; }
  .n-row { flex-wrap: wrap; gap: 10px; padding: 18px 4px; }
  .n-row__date, .n-row__chip { width: auto; }
  .n-row__title { flex-basis: 100%; }
  .n-row__arw { display: none; }
  .cat-count { display: none; }
  .arthead { padding: 120px 0 100px; }
  .newcomp { flex-wrap: wrap; }
  .newcomp__thumb { width: 100%; }
  .prevnext { flex-direction: column; }
}
