/* ── Blog Page (ブログ) ── */
.sjp-news-page { font-family: var(--sjp-font-jp, sans-serif); }

/* ── Shared section header ── */
.sjp-news-eyebrow { color: #3B82F6; font-size: 15px; font-weight: 600; letter-spacing: 2px; text-align: center; margin: 0; text-transform: uppercase; }
.sjp-news-section-hd__title { font-size: 36px; font-weight: 700; color: #0F172A; text-align: center; margin: 0; line-height: 1.3; }
.sjp-news-section-hd__line { width: 60px; height: 3px; background: linear-gradient(90deg, #1E40AF, #3B82F6); border-radius: 2px; }
.sjp-news-section-hd { display: flex; flex-direction: column; align-items: center; gap: 8px; }

/* ── Hero ── */
.sjp-news-hero {
  background: linear-gradient(135deg, #0B1D4F 0%, #1E40AF 60%, #2563EB 100%);
  min-height: 300px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.sjp-news-hero__orb { position: absolute; border-radius: 50%; pointer-events: none; }
.sjp-news-hero__orb--1 { width: 400px; height: 400px; right: -120px; top: -120px; background: rgba(59,130,246,.3); opacity: .3; }
.sjp-news-hero__orb--2 { width: 250px; height: 250px; left: -80px; bottom: -60px; background: rgba(30,64,175,.4); opacity: .25; }
.sjp-news-hero__orb--3 { width: 300px; height: 300px; left: 40%; top: -50px; background: rgba(96,165,250,.22); opacity: .2; }
.sjp-news-hero__inner { position: relative; padding: 110px 80px 70px; display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 1440px; margin: 0 auto; }
.sjp-news-bc { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sjp-news-bc__link { color: #93C5FD; font-size: 15px; text-decoration: none; }
.sjp-news-bc__link:hover { text-decoration: underline; }
.sjp-news-bc__sep { color: #64748B; flex-shrink: 0; }
.sjp-news-bc__cur { color: #CBD5E1; font-size: 15px; }
.sjp-news-hero__title { font-size: 44px; font-weight: 700; color: #fff; margin: 0; line-height: 1.3; }
.sjp-news-hero__desc { font-size: 18px; color: #CBD5E1; margin: 0; line-height: 1.6; max-width: 760px; }

/* ── List Section ── */
.sjp-news-list { background: #F8FAFC; padding: 0 0 80px; }
.sjp-news-list__inner {
  padding: 64px 80px 0;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* ── Two-column content area ── */
.sjp-news-content-area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  width: 100%;
  align-items: start;
}

/* ── Main article area ── */
.sjp-news-main {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ── Card grid — 2 columns ── */
.sjp-news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; width: 100%; }
.sjp-news-card.is-hidden { display: none; }

.sjp-news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(15,23,42,.04);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.sjp-news-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(30,64,175,.10); border-color: #93C5FD; }
.sjp-news-card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.sjp-news-card__img-wrap { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, #EFF6FF, #DBEAFE); flex-shrink: 0; }
.sjp-news-card__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.sjp-news-card:hover .sjp-news-card__img { transform: scale(1.04); }
.sjp-news-card__body { display: flex; flex-direction: column; gap: 10px; padding: 18px; flex: 1; }
.sjp-news-card__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sjp-news-card__tag { font-size: 11px; font-weight: 600; color: #1E40AF; background: #EFF6FF; padding: 3px 9px; border-radius: 4px; white-space: nowrap; }
.sjp-news-card__date { font-size: 12px; color: #94A3B8; }
.sjp-news-card__title { font-size: 15px; font-weight: 700; color: #0F172A; margin: 0; line-height: 1.5; }
.sjp-news-card__desc { font-size: 13px; color: #475569; line-height: 1.65; margin: 0; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sjp-news-card__more { display: inline-flex; align-items: center; gap: 6px; color: #2563EB; font-size: 13px; font-weight: 600; margin-top: 4px; transition: gap .2s ease; }
.sjp-news-card:hover .sjp-news-card__more { gap: 10px; }

.sjp-news-empty { font-size: 16px; color: #64748B; margin: 0; text-align: center; padding: 40px 0; }

/* ── Pagination ── */
.sjp-news-pagination { display: inline-flex; align-items: center; gap: 4px; align-self: center; }
.sjp-news-pagination__btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  background: #fff;
  color: #475569;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
}
.sjp-news-pagination__btn:hover:not(:disabled):not(.is-active) { border-color: #93C5FD; color: #1E40AF; }
.sjp-news-pagination__btn:disabled { opacity: .4; cursor: not-allowed; }
.sjp-news-pagination__btn.is-active {
  background: linear-gradient(90deg, #1E40AF, #3B82F6);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(30,64,175,.25);
}
.sjp-news-pagination__btn--nav { color: #94A3B8; }
.sjp-news-pagination__dots { color: #94A3B8; padding: 0 4px; font-weight: 500; }
.sjp-news-pagination__ellipsis { color: #94A3B8; padding: 0 4px; font-weight: 500; user-select: none; }

/* ── Sidebar ── */
.sjp-news-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 96px;
}

/* Search bar in sidebar */
.sjp-news-search {
  display: flex;
  align-items: stretch;
  height: 44px;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15,23,42,.05);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.sjp-news-search:focus-within { border-color: #93C5FD; box-shadow: 0 4px 14px rgba(30,64,175,.12); }
.sjp-news-search__input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  color: #0F172A;
  padding: 0 12px;
  min-width: 0;
}
.sjp-news-search__input::placeholder { color: #94A3B8; }
.sjp-news-search__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 16px;
  flex-shrink: 0;
  background: linear-gradient(90deg, #1E40AF, #3B82F6);
  color: #fff;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: filter .2s ease;
}
.sjp-news-search__btn:hover { filter: brightness(1.08); }

/* Popular articles widget */
.sjp-news-popular {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(15,23,42,.04);
}
.sjp-news-popular__title {
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid #EFF6FF;
}
.sjp-news-popular__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sjp-news-popular__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.sjp-news-popular__num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1E40AF, #3B82F6);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--sjp-font-latin, 'Inter', sans-serif);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.sjp-news-popular__link {
  font-size: 13px;
  color: #334155;
  text-decoration: none;
  line-height: 1.5;
  transition: color .2s ease;
}
.sjp-news-popular__link:hover { color: #1E40AF; }

/* Category checkbox widget */
.sjp-news-cat-widget {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(15,23,42,.04);
}
.sjp-news-cat-widget__title {
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid #EFF6FF;
}
.sjp-news-cat-widget__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sjp-news-cat-widget__label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.sjp-news-cat-widget__check {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: #1E40AF;
  cursor: pointer;
  margin: 0;
}
.sjp-news-cat-widget__text {
  font-size: 13px;
  color: #475569;
  line-height: 1.4;
  transition: color .15s ease;
}
.sjp-news-cat-widget__label:hover .sjp-news-cat-widget__text { color: #1E40AF; font-weight: 700; }
.sjp-news-cat-widget__item.is-active .sjp-news-cat-widget__text { color: #1E40AF; font-weight: 700; }

/* ── CTA ── */
.sjp-news-cta { position: relative; overflow: hidden; min-height: 320px; display: flex; align-items: center; }
.sjp-news-cta__bg { position: absolute; inset: 0; background: linear-gradient(135deg, #0B1D4F 0%, #1E40AF 50%, #2563EB 100%); }
.sjp-news-cta__orb { position: absolute; border-radius: 50%; pointer-events: none; }
.sjp-news-cta__orb--1 { width: 300px; height: 300px; right: -60px; top: -80px; background: rgba(59,130,246,.3); opacity: .3; }
.sjp-news-cta__orb--2 { width: 250px; height: 250px; left: -50px; bottom: -60px; background: rgba(30,64,175,.44); opacity: .3; }
.sjp-news-cta__inner { position: relative; z-index: 1; padding: 80px; display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; }
.sjp-news-cta__label { color: #93C5FD; font-size: 15px; font-weight: 600; letter-spacing: 2px; margin: 0; text-transform: uppercase; }
.sjp-news-cta__title { font-size: 36px; font-weight: 700; color: #fff; text-align: center; margin: 0; line-height: 1.3; }
.sjp-news-cta__desc { font-size: 18px; color: #CBD5E1; text-align: center; margin: 0; line-height: 1.7; }
.sjp-news-cta__btns { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; padding-top: 12px; }
.sjp-news-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 40px;
  border-radius: 8px;
  font-size: 18px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.sjp-news-cta__btn:hover { transform: translateY(-2px); }
.sjp-news-cta__btn--solid { background: #fff; color: #1E40AF; font-weight: 600; box-shadow: 0 4px 20px rgba(255,255,255,.25); }
.sjp-news-cta__btn--solid:hover { box-shadow: 0 8px 28px rgba(255,255,255,.4); }
.sjp-news-cta__btn--outline { background: transparent; color: #fff; font-weight: 500; border: 2px solid rgba(255,255,255,.8); }
.sjp-news-cta__btn--outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* ── Responsive ── */
@media (max-width: 1200px) {
  .sjp-news-content-area { grid-template-columns: 1fr 260px; }
}

@media (max-width: 1024px) {
  .sjp-news-hero__inner,
  .sjp-news-list__inner,
  .sjp-news-cta__inner { padding-left: 40px; padding-right: 40px; }

  .sjp-news-content-area { grid-template-columns: 1fr; }
  .sjp-news-sidebar { position: static; }
  .sjp-news-cat-widget__item { flex-shrink: 0; }
  .sjp-news-section-hd__title { font-size: 30px; }
  .sjp-news-hero__title { font-size: 36px; }
}

@media (max-width: 768px) {
  .sjp-news-hero__inner,
  .sjp-news-list__inner,
  .sjp-news-cta__inner { padding-left: 20px; padding-right: 20px; }

  .sjp-news-hero__inner { padding-top: 80px; padding-bottom: 50px; }
  .sjp-news-list__inner { padding-top: 48px; }
  .sjp-news-list { padding-bottom: 60px; }

  .sjp-news-grid { grid-template-columns: 1fr; }
  .sjp-news-section-hd__title { font-size: 26px; }
  .sjp-news-hero__title { font-size: 28px; }
  .sjp-news-hero__desc { font-size: 15px; }
  .sjp-news-cta__title { font-size: 24px; }
  .sjp-news-cta__btns { flex-direction: column; align-items: stretch; width: 100%; }
  .sjp-news-cta__btn { justify-content: center; }
  .sjp-news-search { height: 44px; }
}
