/* 2階層目：お知らせ一覧（デモ。style.css の上に重ねる）
   現行サイト https://marugotohotel-omeline.com/news/ と同じ構成：左にカテゴリー・アーカイブ、右に記事の一覧とページ送り */

.nl {
  display: grid; grid-template-columns: 180px 1fr; gap: 56px;
  padding: calc(var(--hu) * 131 + 60px) var(--side) 140px;
  color: var(--green);
}

/* 左：見出し・カテゴリー・アーカイブ */
.nl__side { align-self: start; position: sticky; top: calc(var(--hu) * 130 + 30px); }
.nl__heading { margin: 0; font-family: "Noto Serif", "Noto Serif JP", serif; font-size: 30px; font-weight: 500; letter-spacing: 0.02em; }
.nl__group { margin-top: 32px; }
.nl__group h2 { margin: 0 0 10px; font-family: "Noto Serif", "Noto Serif JP", serif; font-size: 20px; font-weight: 500; letter-spacing: 0.02em; }
.nl__cats li + li { margin-top: 6px; }
.nl__cats button, .nl__lines a {
  display: flex; align-items: center; gap: 12px; padding: 2px 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 14px; letter-spacing: 0.06em; color: var(--green); text-decoration: none;
}
/* 丸い矢印（現行サイトと同じ形） */
.nl__cats button::before, .nl__lines a::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  background: var(--gray) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 4.5 10 8l-3.5 3.5' fill='none' stroke='%23fff' stroke-width='1.2'/%3E%3C/svg%3E") center / 100% no-repeat;
  opacity: 0.7; transition: opacity 0.3s;
}
.nl__cats button.is-current::before, .nl__cats button:hover::before,
.nl__lines a.is-current::before, .nl__lines a:hover::before { opacity: 1; background-color: var(--fill); }
.nl__archive {
  padding: 6px 8px; border: 0.5px solid rgba(32, 74, 66, 0.4); border-radius: 3px; background: #fff;
  font: inherit; font-size: 13px; color: var(--green);
}

/* 右：記事の一覧（行の見た目は style.css の「お知らせの行」を TOP と共通で使う） */
.nl__sub { margin: 6px 0 0; font-size: 13px; letter-spacing: 0.1em; }

/* ページ送り */
.nl__pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 48px; }
.nl__page {
  min-width: 34px; height: 34px; padding: 0 10px; border: 0.5px solid rgba(32, 74, 66, 0.4); border-radius: 3px;
  background: #fff; cursor: pointer; font: inherit; font-size: 13px; color: var(--green);
}
.nl__page.is-current { background: var(--fill); border-color: var(--fill); color: var(--white); cursor: default; }
.nl__page--step { border: 0; background: none; }
.nl__dots { padding: 0 4px; color: var(--gray); }

@media (max-width: 799px) {
  /* 現行サイトのモバイル版と同じ並び：見出し（News ── 線路 ── ●）→ 記事の一覧 → ページ送り → Category・Archive */
  .nl { display: flex; flex-direction: column; gap: 0; padding: 104px 20px 100px; }
  .nl__side { display: contents; position: static; }
  .nl__heading { order: 0; display: flex; align-items: center; gap: 14px; font-size: 22px; }
  .nl__heading::after {
    content: ""; flex: 1; height: 2.344px; background: rgba(112, 126, 115, 0.8);
    -webkit-mask: url(../img/rail.svg) repeat-x left center / auto 100%;
            mask: url(../img/rail.svg) repeat-x left center / auto 100%;
  }
  .nl__heading::before {
    content: ""; order: 2; width: 12px; height: 12px; border-radius: 50%; background: var(--fill);
    box-shadow: 0 0 0 4px rgba(32, 74, 66, 0.2); margin: 0 4px 0 -18px;
  }
  .nl__main { order: 1; }
  .nl__sub { margin-top: 4px; font-size: 11px; }
  .nl__list { margin-top: 12px; }
  .nl__pager { gap: 8px; margin-top: 32px; }
  .nl__page { min-width: 26px; height: 26px; padding: 0; border-radius: 50%; font-size: 11px; }
  .nl__page--step { border-radius: 0; padding: 0 4px; }
  .nl__group { order: 2; margin-top: 40px; }
  .nl__group + .nl__group { margin-top: 24px; }
  .nl__group h2 { font-size: 18px; }
  .nl__cats li + li { margin-top: 6px; }
}
