@charset "UTF-8";
/* =========================================================================
   お知らせページ固有スタイル（news.html）
   デザイン: SRS-お知らせ.dc.html
   ========================================================================= */

/* ページヘッダーの背景写真（お知らせ） */
.page-hero__media {
  background: url('../images/hero-news.jpg') center / cover no-repeat;
}

.news-sec { padding: 110px var(--pad-x) 130px; background: var(--c-white); }
.news-sec__in { max-width: 1000px; margin: 0 auto; }

/* -------------------------------------------------------------------------
   カテゴリ絞り込みタブ
   ------------------------------------------------------------------------- */
.news-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.news-tab {
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--c-border);
  border-radius: 0;
  background: var(--c-white);
  color: var(--c-text);
  font-family: var(--ff-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
/* 選択中 */
.news-tab[aria-pressed="true"] {
  border-color: var(--c-green);
  background: var(--c-green);
  color: var(--c-white);
}
.news-tab[aria-pressed="false"]:hover {
  border-color: var(--c-green);
  color: var(--c-green);
}

/* -------------------------------------------------------------------------
   記事一覧
   ------------------------------------------------------------------------- */
.news-list {
  display: flex;
  flex-direction: column;
  margin-top: 48px;
  border-top: 1px solid var(--c-border);
}

.news-row {
  display: grid;
  grid-template-columns: 128px 130px 96px 1fr 32px;
  gap: 24px;
  align-items: center;
  padding: 24px 8px;
  border-bottom: 1px solid var(--c-border);
  color: var(--c-text);
  transition: background .2s ease;
}
.news-row:hover { background: var(--c-gray); color: var(--c-text); }
.news-row[hidden] { display: none; }

/* 記事のサムネイル。写真が無い記事は <span> ごと省いてよいように、
   幅は grid 側で固定し、中の画像だけを cover で敷いている。 */
.news-row__thumb {
  width: 128px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--c-ph);
}
.news-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.news-row:hover .news-row__thumb img { transform: scale(1.05); }

.news-row__date {
  font-family: var(--ff-cond);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--c-text-sub);
}
.news-row__cat {
  justify-self: start;
  padding: 5px 12px;
  background: var(--c-surface);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--c-green);
}
.news-row__ttl {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.8;
}
.news-row__arrow {
  justify-self: end;
  color: var(--c-green);
}

/* 絞り込み結果が0件のとき */
.news-empty {
  padding: 40px 8px;
  border-bottom: 1px solid var(--c-border);
  font-size: 16px;
  letter-spacing: .04em;
  color: var(--c-text-sub);
}
.news-empty[hidden] { display: none; }

/* -------------------------------------------------------------------------
   狭い画面での調整
   固定4列は入らないので、日付・カテゴリ・矢印を1段目、タイトルを2段目に回す
   ------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .news-sec { padding: 80px var(--pad-x) 96px; }
  .news-list { margin-top: 32px; }

  /* サムネイルを左に置き、右側で 日付＋カテゴリ／タイトル の2段に積む */
  .news-row {
    grid-template-columns: 88px auto 1fr auto;
    gap: 10px 12px;
    padding: 20px 4px;
    align-items: start;
  }
  .news-row__thumb { grid-area: 1 / 1 / 3 / 2; width: 88px; }
  .news-row__date  { grid-area: 1 / 2; align-self: center; }
  .news-row__cat   { grid-area: 1 / 3; align-self: center; }
  .news-row__arrow { grid-area: 1 / 4; align-self: center; }
  .news-row__ttl   { grid-area: 2 / 2 / 3 / 5; font-size: 16px; }
}

@media (max-width: 480px) {
  .news-tab { flex: 1 1 auto; padding: 0 14px; }
}

/* -------------------------------------------------------------------------
   記事詳細（news-renewal.html など）
   一覧と同じトーンで、本文の行長を 40em 前後に抑えて読みやすくする。
   ------------------------------------------------------------------------- */
.article { padding: 88px var(--pad-x) 120px; background: var(--c-white); }
.article__in { max-width: 800px; margin: 0 auto; }

.article__meta {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}
.article__date {
  font-family: var(--ff-cond);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--c-text-sub);
}
.article__cat {
  padding: 5px 12px;
  background: var(--c-surface);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--c-green);
}
.article__ttl {
  margin: 20px 0 0;
  font-size: clamp(1.5rem, 3.2vw, 2.125rem);
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.7;
}

/* ロゴなど「余白ごと見せたい画像」を想定して contain で敷く */
.article__figure {
  margin: 40px 0 0;
  padding: 40px 32px;
  background: var(--c-gray);
  border: 1px solid var(--c-border);
}
.article__figure img {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  margin: 0 auto;
}

/* 写真は逆に、余白を作らず大きく見せたい */
.article__figure--photo { padding: 0; background: none; border: 0; }
.article__figure--photo img { max-height: 460px; object-fit: cover; }

.article__body { margin-top: 48px; }
.article__body p {
  margin: 0 0 1.9em;
  font-size: 16px;
  letter-spacing: .04em;
  line-height: 2.05;
}
.article__body p:last-child { margin-bottom: 0; }

/* 管理画面の本文で「## 見出し」「- 箇条書き」「[表示文字](URL)」を使ったときの見た目 */
.article__h2 {
  margin: 3em 0 1.2em;
  padding-left: 16px;
  border-left: 3px solid var(--c-green);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1.6;
}
.article__h2:first-child { margin-top: 0; }

.article__list {
  margin: 0 0 1.9em;
  padding-left: 1.4em;
  font-size: 16px;
  letter-spacing: .04em;
  line-height: 2.05;
}
.article__list li { margin-bottom: .4em; }
.article__list li::marker { color: var(--c-green); }

.article__body a {
  color: var(--c-green);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article__body a:hover { text-decoration-thickness: 2px; }
.article__body strong { font-weight: 700; }

.article__back { margin: 64px 0 0; padding-top: 32px; border-top: 1px solid var(--c-border); }
.article__back a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--c-green);
}

/* 一覧のサムネイルにロゴを入れる場合。写真と違い余白ごと見せたいので
   白地＋contain にする（cover だとロゴが切れてしまう）。 */
.news-row__thumb--logo { background: var(--c-white); border: 1px solid var(--c-border); }
.news-row__thumb--logo img { object-fit: contain; padding: 8px; }

@media (max-width: 767px) {
  .article { padding: 56px var(--pad-x) 88px; }
  .article__figure { margin-top: 32px; padding: 28px 20px; }
  .article__figure img { max-height: 120px; }
  .article__figure--photo { padding: 0; }
  .article__figure--photo img { max-height: 240px; }
  .article__body { margin-top: 36px; }
  .article__back { margin-top: 48px; }
}
