/* =========================================================
   お知らせ（news.php）専用スタイル
   共通は style.css を継承（.page-hero / .about-block / .container / .sec-label 等）
   ========================================================= */

.news-wrap { padding-bottom: 20px; }

/* ----- カテゴリタブ ----- */
.news-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 44px;
}
.news-tab {
  display: inline-flex;
  align-items: center;
  padding: 7px 22px 8px;
  background: var(--c-white);
  border: 1px solid var(--c-blue);
  border-radius: 20px;
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--c-blue);
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
  white-space: nowrap;
}
.news-tab:hover { background: rgba(19,86,156,0.08); }
.news-tab.is-active { background: var(--c-blue); color: var(--c-white); border-color: var(--c-blue); }
.news-tab:focus-visible { outline: 2px solid var(--c-sky); outline-offset: 2px; }
/* 「すべて」タブだけネイビー。すべて以外は業務実績の青で統一 */
.news-tab[data-cat="all"] { border-color: var(--c-navy); color: var(--c-navy); }
.news-tab[data-cat="all"]:hover { background: rgba(0,41,84,0.08); }
.news-tab[data-cat="all"].is-active { background: var(--c-navy); color: var(--c-white); border-color: var(--c-navy); }

/* ----- 一覧 ----- */
.news-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1000px;
  border-top: 1px solid #E5E8EC;
}
.news-item { border-bottom: 1px solid #E5E8EC; }

.news-head {
  display: grid;
  grid-template-columns: 110px 140px 1fr 24px;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 24px 8px;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-jp);
  transition: background 0.2s;
}
.news-head:hover { background: #F7F9FB; }
.news-head:focus-visible { outline: 2px solid var(--c-sky); outline-offset: -2px; }

.news-date {
  font-family: var(--font-en);
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--c-sub);
  font-variant-numeric: tabular-nums;
}
.news-cat-badge {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  padding: 3px 14px 4px;
  border-radius: 13px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--c-white);
  white-space: nowrap;
}
/* 絞り込み時（すべて以外）は業務実績の青で統一 */
.news-cat-badge { background: var(--c-blue); }
/* 「すべて」表示のときだけ、ネイビーと青を記事ごとに交互に表示 */
.news-item.alt .news-cat-badge { background: var(--c-navy); }

.news-title {
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--c-black);
}
.news-arrow {
  justify-self: center;
  width: 10px; height: 10px;
  border-right: 2px solid var(--c-navy);
  border-bottom: 2px solid var(--c-navy);
  transform: rotate(45deg);
  transition: transform 0.3s;
}
.news-item.is-open .news-arrow { transform: rotate(-135deg); }

/* ----- 本文（アコーディオン展開：grid 0fr→1fr のスムーズ開閉） ----- */
.news-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.news-item.is-open .news-body { grid-template-rows: 1fr; }
.news-body-inner { overflow: hidden; }
.news-body-pad {
  padding: 4px 8px 32px;
  font-family: var(--font-noto);
  font-size: 15px;
  line-height: 1.9;
  color: #333;
}
.news-img {
  display: block;
  max-width: 420px;
  max-height: 300px;
  width: auto;
  height: auto;
  border-radius: 6px;
  margin-bottom: 18px;
}
.news-content > *:first-child { margin-top: 0; }
.news-content p { margin: 0 0 1em; }
.news-content a { color: var(--c-blue); text-decoration: underline; }
.news-content img { max-width: 100%; height: auto; border-radius: 6px; }

.news-ext {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 11px 26px;
  background: var(--c-navy);
  border-radius: 26px;
  font-family: var(--font-jp);
  font-size: 14px;
  font-weight: 500;
  color: var(--c-white);
  text-decoration: none;
  transition: background 0.25s;
}
.news-ext:hover { background: var(--c-blue); }
.news-ext::after { content: "↗"; font-size: 13px; }

/* ----- 空表示・もっと見る ----- */
.news-empty {
  text-align: center;
  padding: 60px 0;
  color: var(--c-sub);
  font-family: var(--font-jp);
  font-size: 15px;
}
.news-more-wrap { text-align: center; margin-top: 44px; }
.news-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 40px;
  background: var(--c-white);
  border: 1px solid var(--c-navy);
  border-radius: 28px;
  font-family: var(--font-jp);
  font-size: 14px;
  font-weight: 500;
  color: var(--c-navy);
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.news-more:hover { background: var(--c-navy); color: var(--c-white); }
.news-more::after { content: "＋"; font-size: 14px; }

/* ----- レスポンシブ ----- */
@media (max-width: 768px) {
  .news-head {
    grid-template-columns: auto 1fr 20px;
    grid-template-areas:
      "date cat arrow"
      "title title title";
    gap: 8px 14px;
    padding: 20px 4px;
  }
  .news-date { grid-area: date; }
  .news-cat-badge { grid-area: cat; }
  .news-arrow { grid-area: arrow; }
  .news-title { grid-area: title; font-size: 15px; }
}
@media (max-width: 420px) {
  .news-tab { padding: 6px 16px; font-size: 12px; }
}
