/* ============================================================
   912design Cappuccino Restomod Project
   news.css - NEWS一覧ページ専用スタイル
   ============================================================ */

.news-page {
  background-color: #d5d5d3; /* fixed背景の最上部1px隙間対策（テクスチャ平均色） */
  background-image: url('../images/top/story-texture.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--color-black);
  padding-top: 70px; /* 固定ヘッダー分 */
}

/* ============================================================
   ページヘッダー
   ============================================================ */
.news-page__head {
  position: relative;
  max-width: var(--container-pc);
  margin: 0 auto;
  padding: 56px 103px 0;
  overflow: hidden;
}

.news-page__heading {
  font-family: var(--font-display);
  font-weight: 400; /* Bebas Neueは400のみ。h1既定の擬似ボールドを解除して他ページと統一 */
  font-size: 94px;
  color: var(--color-main);
  line-height: 1.1;
  letter-spacing: var(--ls-display);
}

.news-page__sub {
  font-family: var(--font-ja);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-black);
  margin-top: 4px;
}

/* ============================================================
   記事一覧
   ============================================================ */
.news-page__list {
  max-width: var(--container-pc);
  margin: 0 auto;
  padding: 48px 103px 90px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 30px;
}

.news-page__item a {
  display: block;
  transition: transform 0.3s ease;
}

.news-page__item a:hover,
.news-page__item a:focus-visible {
  transform: translateY(-3px);
}

/* カードはトップページの .news__item- と同じ見た目 */
.news-page__item .news__item-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 256 / 140;
  background-color: var(--color-white);
  border-radius: 10px 0 10px 10px;
  overflow: hidden;
  margin-bottom: 12px;
}

.news-page__item .news__item-tag {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 71px;
  height: 27px;
  font-family: var(--font-ja);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.12px;
  color: var(--color-white);
  background-color: var(--color-main);
  padding: 0 10px;
}

.news-page__item .news__item-date {
  font-family: var(--font-display);
  font-size: var(--fs-small);
  color: var(--color-black);
  letter-spacing: var(--ls-display);
  display: block;
}

.news-page__item .news__item-title {
  font-family: var(--font-ja);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-black);
  line-height: 1.6;
}

/* ============================================================
   ページネーション（静的フェーズはダミー）
   ============================================================ */
.news-page__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding-bottom: 100px;
}

.news-page__page-btn {
  width: 34px;
  height: 34px;
}

.news-page__page-btn img {
  width: 100%;
  height: 100%;
  /* 白い矢印SVGを暗色に反転（明るい背景で見えるように） */
  filter: brightness(0) saturate(100%) invert(12%);
}

.news-page__page-btn--prev img {
  transform: scaleX(-1);
}

/* ============================================================
   NEWS 記事ページ（single）
   ============================================================ */
.news-single {
  background-color: #d5d5d3; /* fixed背景の最上部1px隙間対策（テクスチャ平均色） */
  background-image: url('../images/top/story-texture.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--color-black);
  padding-top: 70px; /* 固定ヘッダー分 */
}

.news-article {
  max-width: var(--container-pc);
  margin: 0 auto;
  padding: 64px 103px 100px;
}

.news-article__heading {
  font-family: var(--font-display);
  font-size: 94px;
  line-height: 1.1;
  letter-spacing: var(--ls-display);
  color: var(--color-main);
}

/* 本文カラム（サムネイルもこの幅に揃える） */
.news-article__inner {
  max-width: 800px;
  margin: 45px auto 0;
}

.news-article__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #d9d9d9;
  border-radius: 4px;
  overflow: hidden;
}

.news-article__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 日付（左）とカテゴリ（右） */
.news-article__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-top: 20px;
}

.news-article__date {
  font-family: var(--font-display);
  font-size: var(--fs-body);
  color: var(--color-black);
  letter-spacing: var(--ls-display);
}

.news-article__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 71px;
  height: 27px;
  padding: 0 10px;
  font-family: var(--font-ja);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.12px;
  color: var(--color-white);
  background-color: var(--color-main);
}

.news-article__title {
  font-family: var(--font-ja);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-black);
  line-height: 1.6;
  margin-top: 6px;
}

.news-article__body {
  font-family: var(--font-ja);
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--color-black);
  line-height: 35px;
  margin-top: 40px;
}

/* 本文の段落・ブロック間に余白（共通リセットで margin:0 になっているため） */
.news-article__body > * + * {
  margin-top: 1.4em;
}

/* 空行用の空段落も1行分の高さを保つ */
.news-article__body p:empty {
  min-height: 1em;
}

/* 箇条書き（リセットで消えたマーカーを復活） */
.news-article__body ul,
.news-article__body ol {
  padding-left: 1.5em;
}

.news-article__body ul {
  list-style: disc;
}

.news-article__body ol {
  list-style: decimal;
}

.news-article__body li + li {
  margin-top: 0.3em;
}

.news-article__body a {
  color: var(--color-main);
  text-decoration: underline;
}

/* 一覧へ戻る */
.news-article__back {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 56px;
  font-family: var(--font-ja);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-black);
  transition: opacity var(--transition);
}

.news-article__back::before {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 11px 7px 0;
  border-color: transparent var(--color-black) transparent transparent;
}

.news-article__back:hover {
  opacity: 0.6;
}


/* ============================================================
   SP対応
   ============================================================ */
@media (max-width: 768px) {

  .news-page{
     background-size: contain;
    background-repeat: repeat;  
  }
  .news-page__head {
    padding: 40px 24px 0;
  }

  .news-page__heading {
    font-size: 64px;
  }

  .news-page__list {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 32px 24px 56px;
  }

  .news-page__pagination {
    padding-bottom: 120px; /* 固定CTA分 */
  }

  /* --- NEWS 記事ページ --- */

.news-single{
    background-size: contain;
    background-repeat: repeat;  
}

  .news-article {
    padding: 40px 24px 120px; /* 下は固定CTA分 */
  }

  .news-article__heading {
    font-size: 64px;
  }

  .news-article__inner {
    margin-top: 28px;
  }

  .news-article__title {
    font-size: 22px;
  }

  .news-article__body {
    margin-top: 28px;
  }

  .news-article__back {
    font-size: 17px;
    margin-top: 40px;
  }
}
