/* SAEBA EDITION v1.3.0 — list presentation only.
   All visual rules stay inside the existing NDS list output. */
.nds-post-list {
  --nds-saeba-red: var(--saeba26-red, #e1002e);
  --nds-saeba-ink: var(--saeba26-ink, #231815);
  --nds-saeba-paper: #fff;
  --nds-saeba-line: #dedbd7;
  --nds-saeba-muted: #706963;
  --nds-saeba-gutter: clamp(22px, 5vw, 68px);
  box-sizing: border-box;
  width: 100%;
  max-width: calc(1180px + var(--nds-saeba-gutter) + var(--nds-saeba-gutter));
  min-width: 0;
  margin: 0 auto;
  padding: 0 var(--nds-saeba-gutter);
  color: var(--nds-saeba-ink);
  background: transparent;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  line-height: 1.75;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}
.nds-post-list *,
.nds-post-list *::before,
.nds-post-list *::after { box-sizing: border-box; }

/* Independent editorial rows, without an extra INFORMATION heading. */
.nds-post-list .nds-post-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
  min-width: 0;
  margin: 0;
  padding: clamp(22px, 2.4vw, 32px) clamp(14px, 1.7vw, 24px);
  border: 0;
  border-bottom: 1px solid var(--nds-saeba-line);
  background: transparent;
  transition: background-color .3s ease, padding .3s ease;
}
.nds-post-list .nds-post-item:first-child {
  border-top: 2px solid var(--nds-saeba-ink);
}
.nds-post-list .nds-post-category {
  display: inline-block;
  flex: 0 0 142px;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid var(--nds-saeba-ink);
  border-radius: 0;
  background: var(--nds-saeba-paper);
  color: var(--nds-saeba-ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  letter-spacing: .04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}
.nds-post-list .nds-post-date {
  display: block;
  flex: 0 0 110px;
  color: var(--nds-saeba-muted);
  font: 600 13px/1.5 'Jost', 'Noto Sans JP', sans-serif;
  letter-spacing: .12em;
  white-space: nowrap;
  transition: color .3s ease;
}
.nds-post-list .nds-post-title {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 5px 0;
  color: var(--nds-saeba-ink);
  font-size: clamp(15px, 1.4vw, 19px);
  font-weight: 800;
  line-height: 1.65;
  letter-spacing: -.015em;
  text-decoration: none;
  overflow-wrap: anywhere;
  white-space: normal;
  transition: color .3s ease;
}
/* Expand the title's clickable area to the whole row, without altering markup. */
.nds-post-list .nds-post-title::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
.nds-post-list .nds-post-item::after {
  content: '↗';
  display: flex;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  color: var(--nds-saeba-red);
  font: 500 24px/1 'Jost', sans-serif;
  transition: transform .3s ease, color .3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .nds-post-list .nds-post-item:hover {
    background: var(--nds-saeba-ink);
  }
  .nds-post-list .nds-post-item:hover .nds-post-title,
  .nds-post-list .nds-post-item:hover .nds-post-date { color: #fff; }
  .nds-post-list .nds-post-item:hover .nds-post-category {
    background: var(--nds-saeba-red);
    border-color: var(--nds-saeba-red);
    color: #fff;
  }
  .nds-post-list .nds-post-item:hover::after {
    color: #fff;
    transform: translate(4px, -4px);
  }
}
.nds-post-list .nds-post-item:focus-within {
  outline: 2px solid var(--nds-saeba-red);
  outline-offset: -2px;
  background: var(--nds-saeba-ink);
}
.nds-post-list .nds-post-item:focus-within .nds-post-title,
.nds-post-list .nds-post-item:focus-within .nds-post-date { color: #fff; }
.nds-post-list .nds-post-item:focus-within .nds-post-category {
  color: #fff;
  border-color: var(--nds-saeba-red);
  background: var(--nds-saeba-red);
}
.nds-post-list .nds-post-title:focus-visible {
  outline: 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.nds-post-empty {
  box-sizing: border-box;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 36px clamp(22px, 5vw, 68px);
  border-top: 2px solid var(--saeba26-ink, #231815);
  border-bottom: 1px solid #dedbd7;
  color: #706963;
  font: 500 14px/1.8 'Noto Sans JP', sans-serif;
}
@media (max-width: 880px) {
  .nds-post-list .nds-post-item { gap: 18px; }
  .nds-post-list .nds-post-category { flex-basis: 115px; }
  .nds-post-list .nds-post-date { flex-basis: 90px; font-size: 12px; }
}
@media (max-width: 650px) {
  .nds-post-list { padding-bottom: 0; }
  .nds-post-list .nds-post-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 11px 16px;
    padding: 20px 4px 21px;
  }
  .nds-post-list .nds-post-category {
    grid-column: 1;
    grid-row: 1;
    width: fit-content;
    max-width: 100%;
    min-width: 112px;
    padding: 6px 12px;
    font-size: 10px;
  }
  .nds-post-list .nds-post-date {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    font-size: 11px;
  }
  .nds-post-list .nds-post-title {
    grid-column: 1;
    grid-row: 2;
    min-height: 38px;
    padding: 2px 0;
    font-size: clamp(14px, 3.8vw, 17px);
    line-height: 1.75;
  }
  .nds-post-list .nds-post-item::after {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    font-size: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nds-post-list *, .nds-post-list *::before,
  .nds-post-list *::after { transition: none !important; }
}
