/* NEWS behavior adapted from Seiken; Lady Duke colors. */
.news-list {
  list-style: none;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  border-top: 1px solid var(--line);
}

.news-list li {
  border-bottom: 1px solid var(--line);
}

/* 5件目以降の表示はmain.jsのhidden属性で管理 */
.news-list a {
  position: relative;
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 22px 20px 22px 10px;
  overflow: hidden;
  transition:
    padding 0.35s ease,
    color 0.35s ease,
    background-color 0.35s ease;
}

.news-list a:link,
.news-list a:visited {
  color: var(--text);
}

.news-list a:hover,
.news-list a:focus-visible {
  padding-right: 10px;
  padding-left: 20px;
  color: var(--silver);
  background-color: rgba(22, 74, 112, 0.22);
}

.news-list time {
  min-width: 140px;
  flex-shrink: 0;
  font-family: Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: 17px;
  letter-spacing: 0.03em;
  color: var(--silver);
}

.news-list span {
  flex: 1;
  line-height: 1.7;
  color: inherit;
}

.news-list a,
.news-list a:hover,
.news-list a:focus-visible,
.news-list a time,
.news-list a span {
  text-decoration: none !important;
}

@media (min-width: 961px) {
  .news-list time {
    transform: translateX(0.5em);
  }
}

/* SP */
@media (max-width: 960px) {
  .news-list a {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 16px 10px;
  }

  .news-list a:hover,
  .news-list a:focus-visible {
    padding-left: 16px;
    padding-right: 4px;
  }

  .news-list time {
    min-width: auto;
    font-size: 14px;
  }

  .news-list span {
    font-size: 15px;
  }
}

/* =========================
MORE（5件以上で自動表示）
========================= */
.news-more {
  max-width: 900px;
  margin-inline: auto;
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.news-more button {
  background: none;
  border: none;
  color: var(--silver);
  font-size: 14px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: color 0.3s ease;
}

.news-more button:hover {
  color: var(--text);
}
