/**
 * news.css — お知らせ一覧
 */

:root {
  /* 選択中のジャンル・カテゴリに付ける本のアイコン */
  --icon-book: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='5 8 38 33'%3E%3Cpath d='M24 13c-4-3-10-4-17-3v26c7-1 13 0 17 3 4-3 10-4 17-3V10c-7-1-13 0-17 3zM24 13v26' fill='none' stroke='%23000' stroke-width='2.6' stroke-linejoin='round'/%3E%3C/svg%3E");
}
/* ===== サイドバー（絞り込み） ===== */
.side-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: start;
}
.side {
  position: sticky;
  top: 105px;
}
.side-ttl {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--text);
  margin-bottom: 4px;
}
.side ul {
  list-style: none;
}
.side .side-link {
  width: 100%;
  display: flex;
  align-items: center;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border-l);
  padding: 15px 4px;
  font: inherit;
  font-size: 15px;
  color: var(--text-light);
  text-align: left;
  cursor: pointer;
  transition: color 0.25s;
}
.side .side-link .label {
  margin-right: auto;
}
.side .side-link .n {
  font-size: 13px;
  color: var(--muted);
}
.side .side-link:hover {
  color: var(--accent);
}
.side .side-link[aria-current="page"] {
  color: var(--accent);
  font-weight: 500;
}
/* 選択中の目印：開いた本のアイコン（CSSのmaskで色はアクセントに追従） */
.side select {
  display: none;
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 13px 44px 13px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  -webkit-appearance: none;
  appearance: none;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ff8053' stroke-width='1.5'/%3E%3C/svg%3E")
    no-repeat right 16px center;
}
.side .side-link[aria-current="page"]::before {
  content: "";
  width: 17px;
  height: 15px;
  margin-right: 9px;
  flex-shrink: 0;
  background: var(--accent);
  -webkit-mask: var(--icon-book) no-repeat center/contain;
  mask: var(--icon-book) no-repeat center/contain;
}
/* ページ送り */
.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 72px;
}
@media (max-width: 760px) {
  .pager {
    margin-top: 52px;
    gap: 6px;
  }
}
.nw {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 40px 104px;
}
.ncat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  height: 24px;
  font-size: 12px;
  letter-spacing: 0.06em;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 2px;
  padding: 0 8px;
  flex-shrink: 0;
}
.ncat.c-new {
  background: var(--accent);
  color: #fff;
}
.ncat.c-ev {
  border-color: #5bb5a0;
  color: #4a9d8a;
}
@media (max-width: 1100px) {
  .side-layout {
    grid-template-columns: 180px 1fr;
    gap: 36px;
  }
}
@media (max-width: 760px) {
  .nw {
    padding: 24px 20px 80px;
  }
  .side-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .side {
    position: static;
  }
  .side ul,
  .side-ttl {
    display: none;
  }
  .side select {
    display: block;
  }
}

.nlist {
  list-style: none;
  border-top: 1px solid var(--text);
}
.nlist li {
  border-bottom: 1px solid var(--border-l);
}
.nlist li[hidden] {
  display: none;
}
.nlist a {
  display: grid;
  grid-template-columns: 110px auto 1fr;
  align-items: baseline;
  column-gap: 24px;
  padding: 26px 8px;
  transition:
    color 0.25s,
    background 0.25s;
}
.nlist a:hover {
  color: var(--accent);
  background: var(--bg-warm);
}
.nlist time {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.nlist .ncat {
  align-self: center;
}
.nlist .nt {
  font-size: 16px;
  line-height: 1.8;
}
.pager {
  margin-top: 64px;
}
@media (max-width: 760px) {
  .nlist a {
    grid-template-columns: auto 1fr;
    row-gap: 8px;
    column-gap: 14px;
    padding: 20px 4px;
  }
  .nlist .nt {
    grid-column: 1 / -1;
  }
  .nlist .ncat {
    justify-self: start;
  }
}
