/* 一覧ページ（記事一覧・今後イベント一覧など共通） */
.nes-list {
  --nes-accent: #E8650C;
  --nes-accent-dark: #B84E08;
  --nes-accent-deep: #8F3D06;
  --nes-text: #1F1D1A;
  --nes-muted: #615D57;
  --nes-line: #E6E3DE;
  --nes-soft: #F6F5F3;
  max-width: 1200px;
  margin: 0 auto;
  color: var(--nes-text);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 15px;
  line-height: 1.7;
}
.nes-list a { text-decoration: none; }
.nes-list p { margin: 0; }

/* 見出し */
.nes-list-head { padding: 8px 0 0; }
.nes-list-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.nes-list .nes-list-title { margin: 0; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 44px; line-height: 1.2; letter-spacing: .04em; color: var(--nes-accent); }
.nes-list-sub { color: var(--nes-muted); font-size: 14px; }
.nes-list-desc { margin-top: 10px !important; font-size: 14px; color: #4A4640; }

/* 絞り込みボタン */
.nes-list-filter { position: sticky; top: 0; z-index: 5; margin-top: 24px; background: rgba(255, 255, 255, .95); border-bottom: 1px solid var(--nes-line); }
.admin-bar .nes-list-filter { top: 32px; }
@media (max-width: 782px) { .admin-bar .nes-list-filter { top: 0; } }
.nes-list-filter-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 0; }
.nes-list-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; box-sizing: border-box; padding: 0 18px; border-radius: 999px; border: 1px solid #CFCAC3; background: #fff; color: var(--nes-text) !important; font-weight: 700; font-size: 14px; white-space: nowrap; }
.nes-list-chip:hover { border-color: var(--nes-text); }
.nes-list-chip.is-current { background: var(--nes-text); border-color: var(--nes-text); color: #fff !important; }
.nes-list-chip-count { font-family: 'Space Grotesk', sans-serif; font-size: 12px; font-weight: 500; opacity: .8; }
.nes-list-divider { flex: 0 0 1px; align-self: stretch; margin: 6px 6px; background: var(--nes-line); }
@media (max-width: 760px) {
  .nes-list-filter-inner { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-left: 2px; padding-right: 2px; }
}

/* 件数 */
.nes-list-results { padding-top: 24px; scroll-margin-top: 100px; }
.nes-list-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; font-size: 14px; color: #4A4640; }
.nes-list-status strong { color: var(--nes-text); }
.nes-list-order { font-size: 12px; color: var(--nes-muted); }

/* カード */
.nes-list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 32px 24px; }
.nes-list-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; color: var(--nes-text) !important; }
.nes-list-thumb { display: block; aspect-ratio: 768 / 403; border-radius: 12px; overflow: hidden; background: var(--nes-soft); }
.nes-list-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.nes-list-card:hover .nes-list-thumb img { transform: scale(1.03); }
.nes-list-card:hover .nes-list-card-title { color: var(--nes-accent-dark); }
.nes-list-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.nes-list-cat { font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--nes-accent-deep); color: #fff; }
.nes-list-subcat { font-size: 11px; font-weight: 700; padding: 1px 9px; border-radius: 999px; border: 1px solid #E8C3A6; background: #FFF0E3; color: var(--nes-accent-deep); }
.nes-list-date { font-family: 'Space Grotesk', sans-serif; font-size: 12px; color: var(--nes-muted); }
.nes-list-card-title { font-weight: 700; font-size: 16px; line-height: 1.5; }

.nes-list-empty { border: 1px dashed #CFCAC3; border-radius: 16px; padding: 48px 24px; text-align: center; color: var(--nes-muted); font-size: 14px; }

/* ページ送り */
.nes-list-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 40px; }
.nes-list-pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; box-sizing: border-box; padding: 0 6px; border-radius: 999px; border: 1px solid #CFCAC3; color: var(--nes-text) !important; font-family: 'Space Grotesk', sans-serif; font-weight: 700; }
.nes-list-pager .page-numbers.current { background: var(--nes-text); border-color: var(--nes-text); color: #fff !important; }
.nes-list-pager .page-numbers.dots { border: 0; }
.nes-list-pager a.page-numbers:hover { border-color: var(--nes-text); }

/* 下の案内 */
.nes-list-cta { margin: 64px 0 40px; background: var(--nes-soft); border-radius: 16px; padding: 20px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.nes-list-cta-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nes-list-cta-title { font-size: 14px; font-weight: 700; }
.nes-list-cta-text { font-size: 13px; color: #4A4640; }
.nes-list-cta-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; box-sizing: border-box; padding: 0 22px; border-radius: 999px; background: #000; color: #fff !important; font-weight: 700; font-size: 14px; }
.nes-list-x { font-family: 'Space Grotesk', sans-serif; font-weight: 700; }

@media (max-width: 600px) {
  .nes-list .nes-list-title { font-size: 36px; }
  .nes-list-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* サイドバーありの幅でもカードが2列以上で並ぶように */
.nes-list-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (max-width: 600px) { .nes-list-grid { grid-template-columns: 1fr; } }
.nes-list-results.is-loading { opacity: .5; transition: opacity .15s; pointer-events: none; }

/* イベント一覧用 */
.nes-list--event .nes-list-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 28px 18px; }
.nes-list--event .nes-list-thumb { position: relative; aspect-ratio: 764 / 1080; border: 1px solid var(--nes-line); display: flex; align-items: center; justify-content: center; }
.nes-list--event .nes-list-thumb img { object-fit: contain; }
.nes-list--event .nes-list-card:hover .nes-list-thumb img { transform: none; opacity: .92; }
.nes-list-badge { font-size: 11px; font-weight: 700; padding: 1px 9px; border-radius: 999px; border: 1px solid #E8C3A6; background: #FFF0E3; color: var(--nes-accent-deep); }
.nes-list-pr { font-family: 'Space Grotesk', sans-serif; font-size: 11px; font-weight: 700; line-height: 1.6; padding: 0 7px; border-radius: 4px; border: 1px solid #CFCAC3; color: var(--nes-muted); }
.nes-list--event .nes-list-when { font-size: 12px; color: var(--nes-muted); line-height: 1.5; }
.nes-list--event .nes-list-card-title { font-size: 15px; }
.nes-list-chip.is-empty { color: #8A857D !important; }
.nes-list-cta-btn--accent { background: var(--nes-accent-dark); }
@media (max-width: 600px) {
  .nes-list--event .nes-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
}

/* ページ側（ブロックエディタ）で書く見出し：[need_event_list head="0"] と組み合わせて使う */
.nel-page-head { box-sizing: border-box; width: 100% !important; max-width: 1200px !important; margin: 0 auto !important; padding: 8px 0 0; color: #1F1D1A; font-family: 'Zen Kaku Gothic New', sans-serif; }
.nel-page-head .nel-page-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0 !important; padding: 0 !important; }
.nel-page-head > .wp-block-group__inner-container { padding: 0 !important; }
.entry-content .nel-page-head .nel-page-title,
.nel-page-head .nel-page-title { margin: 0 !important; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 44px; line-height: 1.2; letter-spacing: .04em; color: #E8650C; }
.entry-content .nel-page-head .nel-page-sub,
.nel-page-head .nel-page-sub { margin: 0 !important; color: #615D57; font-size: 14px; line-height: 1.7; }
.entry-content .nel-page-head .nel-page-desc,
.nel-page-head .nel-page-desc { margin: 10px 0 0 !important; font-size: 14px; line-height: 1.7; color: #4A4640; }
.nel-page-head + * { margin-top: 0 !important; }
@media (max-width: 760px) {
  .entry-content .nel-page-head .nel-page-title,
  .nel-page-head .nel-page-title { font-size: 36px; }
}
