/* =========================================================
   J4C お知らせ（news.html／news-◯◯.html）専用スタイル
   ※ページ見出し・パンくずは common.css の「下層ページ共通」
   ========================================================= */

.nw {
  max-width: 980px;
  margin: 0 auto;
  padding: 10px 40px 110px;
}
.nw-intro { font-size: 15px; color: var(--c-sub); letter-spacing: 0.05em; }

/* ---------- お知らせの行（トップページと同じ見た目） ---------- */
.news-list { margin: 0; padding: 0; list-style: none; }
.news-list li { border-bottom: 1px solid var(--c-line); }
.news-item {
  display: grid;
  grid-template-columns: 100px 82px 1fr 20px;
  align-items: center;
  gap: 24px;
  padding: 20px 6px;
  font-size: 15px;
  transition: background-color .25s;
}
a.news-item:hover { background: #fffaf3; }
a.news-item:hover .news-title { color: var(--c-orange); }
.news-item time,
.nw-meta time {
  font-family: var(--f-en);
  font-size: 14px;
  color: var(--c-muted);
  letter-spacing: 0.04em;
}
.news-tag {
  display: inline-block;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 0;
  border-radius: 4px;
  letter-spacing: 0.08em;
}
.tag-info { background: #fdf0c4; color: #a8822a; }
.tag-service { background: #e6f3d6; color: #4f8a1c; }
.tag-recruit { background: #fbd8d8; color: #c0474a; }
.news-title { letter-spacing: 0.05em; line-height: 1.7; transition: color .25s; }
.news-arrow { width: 16px; height: 12px; color: var(--c-text); }

/* =========================================================
   一覧ページ
   ========================================================= */
.nw-filter {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.nw-filter-btn {
  padding: 9px 22px;
  border: 1.5px solid #e4ded3;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: all .2s;
}
.nw-filter-btn:hover { border-color: #ffb25c; }
.nw-filter-btn.is-active {
  border-color: #ff8a00;
  background: linear-gradient(135deg, #ffa51f, #ff7a00);
  color: #fff;
}
.nw-list { margin-top: 24px; border-top: 1px solid var(--c-line); }
.nw-item[hidden] { display: none; }
.nw-empty { margin-top: 30px; text-align: center; color: var(--c-sub); }

/* =========================================================
   詳細ページ
   ========================================================= */
.nw-article { max-width: 860px; }
.nw-article-head {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--c-line);
}
.nw-meta { display: flex; align-items: center; gap: 16px; }
.nw-meta .news-tag { min-width: 82px; }
.nw-article-title {
  margin-top: 14px;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.06em;
}
.nw-body {
  padding-top: 30px;
  font-size: 16px;
  line-height: 2.05;
  letter-spacing: 0.04em;
  color: #333;
}
.nw-body p + p { margin-top: 1.2em; }
.nw-box {
  margin: 1.6em 0;
  padding: 22px 26px;
  border-radius: 12px;
  background: #fffaf3;
  border: 1px solid #f3e6d4;
  display: grid;
  grid-template-columns: 7em 1fr;
  gap: 8px 20px;
  font-size: 15px;
}
.nw-box dt { font-weight: 700; color: #c65f08; }
.nw-box dd { margin: 0; }
.nw-links {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.nw-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 24px 10px 16px;
  border: 1.5px solid #ffb25c;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: transform .25s var(--ease), box-shadow .25s;
}
.nw-link:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(255, 140, 30, .16); }
.nw-link-arrow { position: relative; width: 14px; height: 10px; }
.nw-link-arrow::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 14px; height: 1.6px;
  background: #ff7a00;
}
.nw-link-arrow::after {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  width: 7px; height: 7px;
  border-top: 1.6px solid #ff7a00;
  border-right: 1.6px solid #ff7a00;
  transform: translateY(-50%) rotate(45deg);
}

/* 前後のお知らせ・一覧へ戻る */
.nw-pager {
  margin-top: 60px;
  padding-top: 26px;
  border-top: 1px solid var(--c-line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
}
.nw-pager-prev,
.nw-pager-next {
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-text);
}
.nw-pager-next { text-align: right; }
.nw-pager-prev span,
.nw-pager-next span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--c-orange);
}
.nw-pager-prev span::before { content: "‹ "; }
.nw-pager-next span::after { content: " ›"; }
a.nw-pager-prev:hover,
a.nw-pager-next:hover { color: var(--c-orange); }
.nw-pager-list {
  padding: 12px 30px;
  border-radius: 999px;
  background: var(--c-black);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

/* =========================================================
   レスポンシブ
   ========================================================= */
@media (max-width: 960px) {
  .nw { padding: 0 22px 80px; }
  .news-item { grid-template-columns: auto 1fr 16px; gap: 6px 14px; padding: 16px 2px; }
  .news-item time { grid-column: 1; }
  .news-item .news-tag { grid-column: 2; justify-self: start; padding: 2px 10px; }
  .news-item .news-title { grid-column: 1 / 3; grid-row: 2; }
  .news-item .news-arrow { grid-column: 3; grid-row: 1 / 3; }
  .nw-body { font-size: 15px; }
  .nw-box { grid-template-columns: 1fr; gap: 2px; padding: 18px; }
  .nw-box dd { margin-bottom: 10px; }
  .nw-links { flex-direction: column; }
  .nw-link { justify-content: center; }
  .nw-pager { grid-template-columns: 1fr 1fr; }
  .nw-pager-list { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
}
