/* ==========================================================================
   お知らせ一覧／個別記事 ページ固有スタイル
   共通パーツは style.css・about.css を再利用。カード基本スタイル（.news-card 等）は style.css。
   ========================================================================== */

.news-index,
.news-article {
  padding: 40px 0 var(--section-gap-sp);
}

@media (min-width: 900px) {
  .news-index { padding: 56px 0 var(--section-gap-pc); }
  .news-article { padding: 24px 0 var(--section-gap-pc); }
}

/* --- サンプル表示の注意 -------------------------------------------- */
.news-sample-notice {
  margin: 28px 0 32px;
  padding: 14px 18px;
  border: 2px dashed var(--color-accent-gold-dark);
  border-radius: var(--radius-m);
  background-color: #fff;
  color: var(--color-text-main);
  font-size: 0.95rem;
  line-height: 1.8;
}

.news-sample-notice p + p {
  margin-top: 4px;
  color: var(--color-text-sub);
  font-size: 0.88rem;
}

/* --- 一覧 --------------------------------------------------------- */
.news-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 600px) {
  .news-list { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (min-width: 1024px) {
  .news-list { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}

.news-card__article {
  position: relative;
  display: flex;
  flex-direction: column;
}

.news-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.news-card__sample {
  margin-bottom: 10px;
}

.news-card__category {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid var(--color-green-deep);
  border-radius: 999px;
  color: var(--color-green-deep);
  font-weight: 700;
}

.news-card__title a {
  color: inherit;
}

/* タイトルのリンクを伸ばしてカード全体をクリック可能にする（リンクは1つだけ） */
.news-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.news-card__link:focus-visible {
  outline: none;
}

.news-card:focus-within .news-card__article {
  outline: 3px solid var(--color-accent-gold-dark);
  outline-offset: 2px;
}

.news-card__excerpt {
  flex: 1;
  line-height: 1.8;
}

.news-card__more {
  margin-top: 14px;
}

/* --- 個別記事 ------------------------------------------------------ */
.news-article__header,
.news-article__body,
.news-article__footer {
  max-width: 800px;
}

.news-article__header {
  padding-bottom: 8px;
}

/* カテゴリー＋日付（1行）／サンプルバッジ（次の行）の2段構成。
   フォントの切り替えで折り返し位置が変わらないよう、flex-wrapではなくgridで固定する */
.news-article__meta {
  display: grid;
  grid-template-columns: max-content max-content;
  justify-content: start;
  align-items: center;
  gap: 8px 14px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: var(--color-text-sub);
}

.news-article__meta .badge {
  grid-column: 1 / -1;
  justify-self: start;
}

.news-article__category {
  padding: 2px 12px;
  border: 1px solid var(--color-green-deep);
  border-radius: 999px;
  color: var(--color-green-deep);
  font-weight: 700;
}

.news-article__title {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem);
  color: var(--color-green-deep);
  margin-bottom: 14px;
  text-wrap: balance;
}

.news-article__excerpt {
  line-height: 1.9;
  color: var(--color-text-sub);
}

.news-article__image {
  max-width: 800px;
  margin-top: 24px;
  margin-bottom: 32px;
}

.news-article__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-m);
}

.news-article__body h2 {
  margin: 40px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--color-green-soft);
  font-size: 1.35rem;
  color: var(--color-green-deep);
}

.news-article__body h2:first-child {
  margin-top: 0;
}

.news-article__body p {
  line-height: 2;
}

.news-article__body p + p {
  margin-top: 1em;
}

/* --- 開催概要（情報ボックス） ------------------------------------- */
.event-details__note {
  margin-bottom: 12px;
  font-size: 0.88rem;
  color: var(--color-text-sub);
}

.event-details {
  margin: 0 0 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  background-color: #fff;
}

.event-details__item {
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border);
}

.event-details__item:last-child {
  border-bottom: 0;
}

.event-details__label {
  font-weight: 700;
  color: var(--color-green-deep);
}

.event-details__value {
  margin: 2px 0 0;
  color: var(--color-text-sub);
}

@media (min-width: 640px) {
  .event-details__item {
    display: grid;
    grid-template-columns: 10em 1fr;
    gap: 16px;
  }
  .event-details__value {
    margin: 0;
  }
}

/* --- 記事末尾 ------------------------------------------------------ */
.news-article__footer {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
}

.news-article__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.news-ext {
  margin-left: 8px;
}

@media (max-width: 599px) {
  .news-article__links {
    flex-direction: column;
  }
  .news-article__links .btn {
    width: 100%;
  }
}
