/* ── Whitepaper Page (ホワイトペーパー) ── */
.sjp-wp-page { font-family: var(--sjp-font-jp, sans-serif); }

/* ── Hero ── */
.sjp-wp-hero {
  background: linear-gradient(135deg, #0B1D4F 0%, #1E40AF 60%, #2563EB 100%);
  min-height: 300px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.sjp-wp-hero__orb { position: absolute; border-radius: 50%; pointer-events: none; }
.sjp-wp-hero__orb--1 { width: 400px; height: 400px; right: -120px; top: -120px; background: rgba(59,130,246,.3); opacity: .3; }
.sjp-wp-hero__orb--2 { width: 250px; height: 250px; left: -80px; bottom: -60px; background: rgba(30,64,175,.4); opacity: .25; }
.sjp-wp-hero__orb--3 { width: 300px; height: 300px; left: 40%; top: -50px; background: rgba(96,165,250,.22); opacity: .2; }
.sjp-wp-hero__inner { position: relative; padding: 110px 80px 70px; display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 1440px; margin: 0 auto; }
.sjp-wp-bc { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sjp-wp-bc__link { color: #93C5FD; font-size: 15px; text-decoration: none; }
.sjp-wp-bc__link:hover { text-decoration: underline; }
.sjp-wp-bc__sep { color: #64748B; flex-shrink: 0; }
.sjp-wp-bc__cur { color: #CBD5E1; font-size: 15px; }
.sjp-wp-hero__title { font-size: 44px; font-weight: 700; color: #fff; margin: 0; line-height: 1.3; }
.sjp-wp-hero__desc { font-size: 18px; color: #CBD5E1; margin: 0; line-height: 1.6; }

/* ── Shared section header ── */
.sjp-wp-eyebrow { color: #3B82F6; font-size: 15px; font-weight: 600; letter-spacing: 2px; text-align: center; margin: 0; text-transform: uppercase; }
.sjp-wp-section-hd__title { font-size: 36px; font-weight: 700; color: #0F172A; text-align: center; margin: 0; line-height: 1.3; }
.sjp-wp-section-hd__line { width: 60px; height: 3px; background: linear-gradient(90deg, #1E40AF, #3B82F6); border-radius: 2px; }
.sjp-wp-section-hd { display: flex; flex-direction: column; align-items: center; gap: 8px; }

/* ── List Section ── */
.sjp-wp-list { background: #F8FAFC; padding: 0 0 80px; }
.sjp-wp-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-wp-content-area {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  width: 100%;
  align-items: start;
}

/* ── Main article area ── */
.sjp-wp-main {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ── Card grid — 2 columns ── */
.sjp-wp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; width: 100%; }
.sjp-wp-card.is-hidden { display: none; }

.sjp-wp-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-wp-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(30,64,175,.10); border-color: #93C5FD; }
.sjp-wp-card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.sjp-wp-card__link .sjp-wp-card__thumbnail {padding: 40px; aspect-ratio: 16 / 9; overflow: hidden;}
.sjp-wp-card__img-wrap { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.sjp-wp-card__img { width: 100%; height: 100%; display: block; transition: transform .4s ease; transform: perspective(1000px) rotateY(30deg); box-shadow: 0 0 15px 0 rgba(0, 0, 0, .3);}
.sjp-wp-card:hover .sjp-wp-card__img { transform: perspective(1000px) rotateY(30deg) scale(1.02); }
.sjp-wp-card__body { display: flex; flex-direction: column; gap: 10px; padding: 18px; flex: 1; }
.sjp-wp-card__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sjp-wp-card__tag { font-size: 11px; font-weight: 600; color: #1E40AF; background: #EFF6FF; padding: 3px 9px; border-radius: 4px; white-space: nowrap; }
.sjp-wp-card__tag--industry { color: #065F46; background: #ECFDF5; }
.sjp-wp-card__date { font-size: 12px; color: #94A3B8; }
.sjp-wp-card__title { font-size: 15px; font-weight: 700; color: #0F172A; margin: 0; line-height: 1.5; }
.sjp-wp-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-wp-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-wp-card:hover .sjp-wp-card__more { gap: 10px; }

.sjp-wp-empty { font-size: 16px; color: #64748B; margin: 0; text-align: center; padding: 40px 0; }

/* ── Pagination ── */
.sjp-wp-pagination { display: inline-flex; align-items: center; gap: 4px; align-self: center; }
.sjp-wp-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;
  text-decoration: none;
}
.sjp-wp-pagination__btn:hover:not(:disabled):not(.is-active) { border-color: #93C5FD; color: #1E40AF; }
.sjp-wp-pagination__btn:disabled { opacity: .4; cursor: not-allowed; }
.sjp-wp-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-wp-pagination__btn--nav { color: #94A3B8; }

/* ── Sidebar ── */
.sjp-wp-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 96px;
}

/* Search bar in sidebar */
.sjp-wp-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-wp-search:focus-within { border-color: #93C5FD; box-shadow: 0 4px 14px rgba(30,64,175,.12); }
.sjp-wp-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-wp-search__input::placeholder { color: #94A3B8; }
.sjp-wp-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-wp-search__btn:hover { filter: brightness(1.08); }

/* Popular articles widget */
.sjp-wp-popular {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(15,23,42,.04);
}
.sjp-wp-popular__title {
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid #EFF6FF;
}
.sjp-wp-popular__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sjp-wp-popular__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.sjp-wp-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-wp-popular__link {
  font-size: 13px;
  color: #334155;
  text-decoration: none;
  line-height: 1.5;
  transition: color .2s ease;
}
.sjp-wp-popular__link:hover { color: #1E40AF; }

/* Category checkbox widget */
.sjp-wp-cat-widget {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(15,23,42,.04);
}
.sjp-wp-cat-widget__title {
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid #EFF6FF;
}
.sjp-wp-cat-widget__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sjp-wp-cat-widget__label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.sjp-wp-cat-widget__check {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: #1E40AF;
  cursor: pointer;
  margin: 0;
}
.sjp-wp-cat-widget__text {
  font-size: 13px;
  color: #475569;
  line-height: 1.4;
  transition: color .15s ease;
}
.sjp-wp-cat-widget__label:hover .sjp-wp-cat-widget__text { color: #1E40AF; font-weight: 700; }
.sjp-wp-cat-widget__item.is-active .sjp-wp-cat-widget__text { color: #1E40AF; font-weight: 700; }

/* ── Responsive ── */
@media (max-width: 1200px) {
  .sjp-wp-content-area { grid-template-columns: 1fr 260px; }
}

@media (max-width: 1024px) {
  .sjp-wp-hero__inner,
  .sjp-wp-list__inner { padding-left: 40px; padding-right: 40px; }
  .sjp-wp-content-area { grid-template-columns: 1fr; }
  .sjp-wp-sidebar { position: static; }
  .sjp-wp-section-hd__title { font-size: 30px; }
  .sjp-wp-hero__title { font-size: 36px; }
}

@media (max-width: 768px) {
  .sjp-wp-hero__inner,
  .sjp-wp-list__inner { padding-left: 20px; padding-right: 20px; padding-top: 48px; }
  .sjp-wp-hero__inner { padding-top: 80px; padding-bottom: 50px; }
  .sjp-wp-list { padding-bottom: 60px; }
  .sjp-wp-grid { grid-template-columns: 1fr; }
  .sjp-wp-card__link .sjp-wp-card__thumbnail {padding: 30px}
  .sjp-wp-section-hd__title { font-size: 26px; }
  .sjp-wp-hero__title { font-size: 28px; }
  .sjp-wp-hero__desc { font-size: 15px; }
  .sjp-wp-search { height: 44px; }
}


/* ═══════════════════════════════════════════════════════════════
   Single Whitepaper (single-whitepaper.php)
   ═══════════════════════════════════════════════════════════════ */

.sjp-wp-single { background: #F8FAFC; }

/* ── Hero ── */
.sjp-wp-single__hero {
  background: #F8FAFC;
  padding: 0 40px;
}
.sjp-wp-single__hero-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 48px 15px;
  display: flex; flex-direction: column; gap: 16px;
}
.sjp-wp-single__hero-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.sjp-wp-single__tag {
  font-size: 12px; font-weight: 400;
  padding: 3px 10px; border-radius: 36px;
  background: #036AE5; color: #fff;
  font-family: var(--sjp-font-jp, 'Noto Sans JP', sans-serif);
  line-height: 16.8px;
}
.sjp-wp-single__tag--ind {
  background: #065F46;
}
.sjp-wp-single__title {
  font-family: var(--sjp-font-jp, 'Noto Sans JP', sans-serif);
  font-size: 32px; font-weight: 700;
  line-height: 44.8px; margin: 0;
  color: #0F172A;
  letter-spacing: -0.0156em;
}
.sjp-wp-single__dl-btn {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 4px; padding: 10px 24px;
  background: linear-gradient(90deg, #1E40AF 0%, #3B82F6 100%);
  color: #fff;
  font-size: 16px; font-weight: 700;
  border-radius: 8px; text-decoration: none;
  transition: all .25s ease;
  width: fit-content;
  line-height: 26px;
}
.sjp-wp-single__dl-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(30,64,175,.3);
}

/* ── Gallery ── */
.sjp-wp-single__gallery {
  padding: 0 40px 48px;
  background: #F8FAFC;
}
.sjp-wp-single__gallery-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 15px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.sjp-wp-single__gallery-item {
  aspect-ratio: 280 / 396;
  border-radius: 0; overflow: hidden;
  position: relative;
  box-shadow: 0 0 20px rgba(0,0,0,.1);
}
.sjp-wp-single__gallery-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.sjp-wp-single__gallery-item--more img {
  filter: blur(1.5px);
}
.sjp-wp-single__gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  cursor: pointer;
}
.sjp-wp-single__gallery-overlay span {
  font-family: var(--sjp-font-jp, 'Noto Sans JP', sans-serif);
  font-size: 16px; font-weight: 400; color: #fff;
  line-height: 28px;
}
.sjp-wp-single__gallery-overlay:hover span{
  text-decoration: underline;
}

/* ── Content title ── */
.sjp-wp-single__content-title {
  font-family: var(--sjp-font-jp, 'Noto Sans JP', sans-serif);
  font-size: 24px; font-weight: 700; color: #0F172A;
  margin: 0 0 24px;
  letter-spacing: -0.0208em;
  line-height: 33.6px;
}

/* ── Details section (content + form) ── */
.sjp-wp-single__details {
  padding: 40px 40px 80px;
  background: #fff;
}
.sjp-wp-single__details-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 15px;
  display: grid;
  grid-template-columns: 704fr 498fr;
  gap: 48px;
  align-items: start;
}
.sjp-wp-single__content { min-width: 0; }
.sjp-wp-single__entry {
  font-family: var(--sjp-font-jp, 'Noto Sans JP', sans-serif);
  font-size: 16px; font-weight: 400; line-height: 28px;
  color: #475569;
}
.sjp-wp-single__entry p { margin: 0 0 16px; }
.sjp-wp-single__entry ul,
.sjp-wp-single__entry ol { margin: 0 0 16px; padding-left: 0; }
.sjp-wp-single__entry li { margin-bottom: 4px; }

/* ── Sidebar Form ── */
.sjp-wp-single__sidebar-form {
  border: 2px solid #E2E8F0;
  border-radius: 0;
  padding: 34px 28px;
}
.sjp-wp-single__sidebar-form-title {
  font-size: 20px; font-weight: 700; color: #0F172A;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
  line-height: 28px;
}
.sjp-wp-single__form {
  display: flex; flex-direction: column; gap: 14px;
}
.sjp-wp-single__form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.sjp-wp-single__form-field {
  display: flex; flex-direction: column; gap: 4px;
}
.sjp-wp-single__form-field--full {
  grid-column: 1 / -1;
}
.sjp-wp-single__form-field label {
  font-size: 14px; font-weight: 400; color: #475569;
  font-family: var(--sjp-font-jp, 'Noto Sans JP', sans-serif);
  line-height: 19.6px;
}
.sjp-wp-single__form-field label .required {
  font-size: 12px; font-weight: 350;
  background: #036AE5; color: #fff;
  padding: 1px 5px; border-radius: 3px;
  margin-left: 4px;
  font-family: var(--sjp-font-jp, 'Noto Sans JP', sans-serif);
  line-height: 22px;
}
.sjp-wp-single__form-field input,
.sjp-wp-single__form-field select,
.sjp-wp-single__form-field textarea {
  font-family: inherit; font-size: 14px;
  padding: 10px 12px;
  border: 1px solid #BDC0CE; border-radius: 8px;
  background: #fff; color: #0F172A;
  transition: border-color .2s ease;
  width: 100%;
  line-height: 19.6px;
}
.sjp-wp-single__form-field input:focus,
.sjp-wp-single__form-field select:focus,
.sjp-wp-single__form-field textarea:focus {
  outline: none; border-color: #93C5FD;
  box-shadow: 0 0 0 3px rgba(59,130,246,.1);
}
.sjp-wp-single__form-field textarea { resize: vertical; }
.sjp-wp-single__form-checkbox {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: #475569; cursor: pointer;
}
.sjp-wp-single__form-checkbox input {
  width: 16px; height: 16px; accent-color: #1E40AF;
}
.sjp-wp-single__form-checkbox a {
  color: #1E40AF; text-decoration: underline;
}
.sjp-wp-single__form-submit {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 24px;
  background: linear-gradient(90deg, #1E40AF, #3B82F6);
  color: #fff; font-size: 14px; font-weight: 700;
  border: none; border-radius: 8px; cursor: pointer;
  transition: all .2s ease;
  align-self: center;
  box-shadow: 0 2px 6px rgba(30,64,175,.2);
  min-width: 130px; height: 45px;
}
.sjp-wp-single__form-submit:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 18px rgba(30,64,175,.3);
  transform: translateY(-1px);
}

/* ── Related "もっと見る" link ── */
.sjp-wp-single .sjp-art-related__hd { position: relative; }
.sjp-wp-single .sjp-art-related__content {
  position: relative;
  width: 100%;
}
.sjp-wp-single .sjp-art-related__more {
  display: inline-block;
  font-family: var(--sjp-font-jp, 'Noto Sans JP', sans-serif);
  font-size: 16px; font-weight: 400; color: #036AE5;
  text-decoration: none;
  line-height: 28px;
  transition: color .2s ease;
  text-align: right;
  margin-bottom: 16px;
  float: right;
}
.sjp-wp-single .sjp-art-related__more:hover { color: #1E40AF; }
.sjp-wp-single .sjp-art-related__grid { clear: both; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .sjp-wp-single__hero { padding: 0 24px; }
  .sjp-wp-single__title { font-size: 24px; line-height: 34px; }
  .sjp-wp-single__details-inner { grid-template-columns: 1fr; }
  .sjp-wp-single__details { padding: 40px 24px 60px; }
  .sjp-wp-single__form-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .sjp-wp-single__hero-inner { align-items: center; text-align: center; }
  .sjp-wp-single__gallery-inner {
    display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch;
    gap: 0; grid-template-columns: none; padding: 0;
  }
  .sjp-wp-single__gallery-item {
    flex-shrink: 0;
    width: 280px; aspect-ratio: 280 / 396;
  }
}
@media (max-width: 560px) {
  .sjp-wp-single__hero { padding: 0 20px; }
  .sjp-wp-single__hero-inner { padding: 32px 0; }
  .sjp-wp-single__title { font-size: 22px; line-height: 30px; }
  .sjp-wp-single__gallery { padding: 0 20px 32px; }
  .sjp-wp-single__details { padding: 32px 20px 48px; }
}
