:root {
  --h-news: 431px;
  --news-x: 180px;
  --news-top: 100px;
}

.news {
  height: var(--h-news);
  background: var(--c-bg);
}

.news__inner {
  width: 1079px;
  margin-left: var(--news-x);
  padding-top: var(--news-top);
}

.news .section-title {
  letter-spacing: 3.6px;
}

.news__body {
  position: relative;
  display: grid;
  grid-template-columns: 539.5px 539.5px;
  width: 1079px;
  height: 129px;
  margin-top: 50px;
}

.news-item {
  display: grid;
  grid-template-columns: 78px 411.5px;
  column-gap: 50px;
  align-items: center;
  width: 539.5px;
  height: 43px;
}

.news-item time {
  color: var(--c-line);
  font-family: var(--font-sans);
  font-size: var(--fs-12);
  font-weight: 400;
  line-height: 17.4px;
  letter-spacing: 1.2px;
  text-align: center;
}

.news-item p {
  color: #000;
  font-family: var(--font-sans);
  font-size: var(--fs-16);
  font-weight: 400;
  line-height: 23.2px;
  letter-spacing: 1.6px;
  white-space: nowrap;
}

.news__view {
  position: absolute;
  top: 112px;
  left: 982px;
}

/* ===== Tablet 561–1024（Figma 1:551 NEWS 実測）
       見出し左寄せ・リスト3行（2行目のみ日付先頭・グレー）・VIEW ALL は右で fs21 ===== */
@media (max-width: 1024px) {
  :root {
    --h-news: 431px;
    --news-x: 5%;                  /* 40/800 */
    --news-top: 100px;
  }

  .news__inner {
    width: auto;
    margin-right: var(--news-x);
  }

  .news .section-title {
    color: var(--c-accent);
  }

  .news__body {
    display: block;
    width: auto;
    height: 129px;
    margin-top: 50px;
  }

  /* ref は表示順が DOM 順と異なる（2番目に「閉幕」項目が来る）。
     DOM/desktop grid は変更せず、flex order のみで視覚順を ref に合わせる */
  .news__list {
    display: flex;
    flex-direction: column;
  }

  .news-item:nth-child(2) {
    order: 3;
  }

  .news-item:nth-child(3) {
    order: 2;
  }

  .news-item {
    display: flex;
    column-gap: 10px;
    align-items: baseline;
    width: auto;
    max-width: 480px;
    height: 23px;
    margin-top: 30px;
  }

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

  /* 1・3行目: タイトル → 日付(黒)。視覚2番目(DOM3番目=閉幕項目)のみ 日付(グレー) → タイトル */
  .news-item time {
    order: 2;
    color: #000;
    text-align: left;
  }

  .news-item:nth-child(3) time {
    order: 0;
    color: var(--c-line);
  }

  .news-item p {
    white-space: nowrap;
  }

  .news__view {
    position: absolute;
    top: 99px;
    right: 0;
    left: auto;
    width: 127px;
    height: 30px;
    font-size: var(--fs-21);
    line-height: 30.5px;
    letter-spacing: 0;
  }
}

/* ===== Mobile ≤560（Figma 1:788。見出しは英字 NEWS のまま中央、色 #EE761F） ===== */
@media (max-width: 560px) {
  :root {
    --h-news: auto;
    --news-x: 8%;                  /* 30/375 */
  }

  .news {
    padding-bottom: 100px;
  }

  .news .section-title {
    color: var(--c-accent);
    text-align: center;
  }

  .news__body {
    height: auto;
  }

  .news-item {
    flex-wrap: wrap;
    height: auto;
    min-height: 23px;
  }

  .news-item p {
    white-space: normal;
  }

  .news__view {
    position: static;
    width: 97px;
    height: 17px;
    margin-top: 30px;
    margin-left: auto;
    font-size: var(--fs-12);
    line-height: 17.4px;
    letter-spacing: 1.2px;
  }
}
