/* news/index.html — NEWS 一覧（仮実装。works/index.html の構成に準拠） */

.news-page {
  padding-bottom: 100px;
}

.news-page-container {
  padding-inline: var(--sp-section-x);
}

/* --- head: NEWS 見出し + リード文（works-head と同一パターン） --- */

.news-page-head {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding-top: calc(var(--h-header) + 50px);
}

.news-page-head__col {
  flex: 1 1 0;
  min-width: 0;
}

.news-page-head__title {
  color: var(--c-accent);
  font-family: var(--font-serif);
  font-size: var(--fs-36);
  font-weight: 500;
  line-height: 52.2px;
  letter-spacing: 1.8px;
  font-feature-settings: "palt";
}

.news-page-head__lead {
  color: var(--c-ink);
  font-family: var(--font-sans);
  font-size: var(--fs-16);
  font-weight: 400;
  line-height: 23.2px;
  letter-spacing: 1.6px;
}

/* --- list: カードグリッド --- */

.news-page-list {
  margin-top: 90px;
}

.news-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 30px;
  row-gap: 50px;
}

.news-page-card {
  display: block;
  min-width: 0;
  color: inherit;
}

.news-page-card__image {
  width: 100%;
  aspect-ratio: 339.667 / 254.75;
  overflow: hidden;
  background: var(--c-bg-alt);
}

.news-page-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-page-card__body {
  padding-top: 20px;
}

.news-page-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* お知らせ（カテゴリ）を左、日付をそのすぐ右（間隔10px） */
.news-page-card__category {
  order: -1;
}

.news-page-card__date {
  color: var(--c-line);
  font-family: var(--font-grotesk);
  font-size: var(--fs-12);
  font-weight: 400;
  line-height: 17.4px;
  letter-spacing: 1.2px;
}

.news-page-card__category {
  color: var(--c-accent-deep);
  font-family: var(--font-grotesk);
  font-size: var(--fs-10);
  font-weight: 400;
  letter-spacing: 1.2px;
  padding: 3px 8px;
  border: 1px solid var(--c-accent-deep);
}

.news-page-card__title {
  margin-top: 12px;
  color: var(--c-ink);
  font-family: var(--font-serif);
  font-size: var(--fs-20);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.04em;
  font-feature-settings: "palt";
}

.news-page-card__excerpt {
  margin-top: 10px;
  color: var(--c-slate);
  font-family: var(--font-sans);
  font-size: var(--fs-14);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.04em;
}

@media (max-width: 1024px) {
  /* 005追補: 余白統一（モバイル30px・タブレット50px） */
  .news-page-container {
    padding-inline: 50px;
  }

  .news-page-head {
    flex-direction: column;
    gap: 16px;
  }

  .news-page-head__title {
    color: var(--c-accent);
  }

  .news-page-list {
    margin-top: 48px;
  }

  .news-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 40px;
  }
}

@media (max-width: 560px) {
  .news-page {
    padding-bottom: 64px;
  }

  /* 005追補: 余白統一（モバイル30px） */
  .news-page-container {
    padding-inline: 30px;
  }

  .news-page-head {
    padding-top: calc(var(--h-header) + 32px);
  }

  /* 005追補: Figma Mobile 実測 fs24/34.8 */
  .news-page-head__title {
    font-size: 24px;
    line-height: 34.8px;
    letter-spacing: 2.4px;
  }

  .news-page-list {
    margin-top: 40px;
  }

  .news-page-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 40px;
  }
}

/* --- footer: このページは responsive.css を読まないため、1024px 以下で
   site-footer の絶対配置の子要素がはみ出す。responsive.css の .site-footer
   系ルールに準拠したレイアウトをここで用意する（005追補） --- */

@media (max-width: 1024px) {
  .site-footer {
    width: 100%;
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
    gap: 40px;
    height: auto;
    min-height: 0;
    padding: 72px clamp(24px, 6vw, 64px) 70px;
  }

  .site-footer__inner {
    display: contents;
  }

  .site-footer__past,
  .site-footer__credit,
  .site-footer__brand,
  .site-footer__brand p,
  .site-footer__brand img,
  .site-footer__logo-line1,
  .site-footer__logo-line2,
  .site-footer__logo-line3 {
    position: static;
    inset: auto;
    left: auto;
    top: auto;
    transform: none;
  }

  .site-footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .site-footer__brand img {
    width: min(300px, 80vw);
    height: auto;
  }

  .site-footer__logo-line2 {
    margin-top: -30px;
  }

  .site-footer__logo-line3 {
    margin-top: 10px;
  }

  .site-footer__brand p {
    position: absolute;
    bottom: 20px;
    left: 50%;
    width: max-content;
    margin: 0;
    transform: translateX(-50%);
    text-align: center;
  }

  .site-footer__past,
  .site-footer__credit {
    width: auto;
    color: #fff;
    white-space: normal;
  }

  .site-footer__past {
    grid-column: 1;
    grid-row: 2;
  }

  .site-footer__credit {
    grid-column: 2;
    grid-row: 2;
    text-align: right;
  }
}

@media (max-width: 700px) {
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer__past,
  .site-footer__credit {
    grid-column: 1;
    text-align: left;
  }

  .site-footer__credit {
    grid-row: 3;
  }
}
