/* ── Portfolios Page (事例紹介) ── */
.sjp-port-page { font-family: var(--sjp-font-jp, sans-serif); }

/* ── Shared section header ── */
.sjp-port-eyebrow { color: #2563EB; font-size: 15px; font-weight: 600; letter-spacing: 2px; text-align: center; margin: 0; text-transform: uppercase; }
.sjp-port-hd__title { font-size: 40px; font-weight: 700; color: #0F172A; text-align: center; margin: 0; line-height: 1.3; }
.sjp-port-hd-line { width: 60px; height: 3px; background: linear-gradient(90deg, #1E40AF, #93C5FD); border-radius: 2px; }
.sjp-port-sec-desc { font-size: 18px; color: #64748B; line-height: 1.7; text-align: center; max-width: 700px; margin: 0; }
.sjp-port-list__hd { display: flex; flex-direction: column; align-items: center; gap: 12px; }

/* ── Hero ── */
.sjp-port-hero {
  background: linear-gradient(135deg, #0B1D4F 0%, #1E40AF 60%, #2563EB 100%);
  min-height: 300px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 110px 80px 70px;
}
.sjp-port-hero__orb { position: absolute; border-radius: 50%; pointer-events: none; }
.sjp-port-hero__orb--1 { width: 400px; height: 400px; right: -120px; top: -120px; background: rgba(59,130,246,.3); opacity: .3; }
.sjp-port-hero__orb--2 { width: 250px; height: 250px; left: -80px; bottom: -60px; background: rgba(30,64,175,.4); opacity: .25; }
.sjp-port-hero__orb--3 { width: 300px; height: 300px; left: 40%; top: -50px; background: rgba(96,165,250,.22); opacity: .2; }
.sjp-port-hero__inner { position: relative; display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 1280px; margin: 0 auto; }
.sjp-port-bc { display: flex; align-items: center; gap: 8px; }
.sjp-port-bc__link { color: #93C5FD; font-size: 15px; text-decoration: none; }
.sjp-port-bc__link:hover { text-decoration: underline; }
.sjp-port-bc__sep { color: #64748B; }
.sjp-port-bc__cur { color: #CBD5E1; font-size: 15px; }
.sjp-port-hero__title { font-size: 44px; font-weight: 700; color: #fff; margin: 0; line-height: 1.3; }
.sjp-port-hero__desc { font-size: 18px; color: #CBD5E1; margin: 0; line-height: 1.6; max-width: 760px; }
.sjp-port-hero__btns { display: flex; gap: 12px; padding-top: 8px; }
.sjp-port-hero__btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: #1E40AF;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(255,255,255,.18);
  transition: transform .2s ease, box-shadow .2s ease;
}
.sjp-port-hero__btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(255,255,255,.28); }

/* ── Stats Section (white w/ subtle radials) ── */
.sjp-port-stats {
  position: relative;
  padding: 80px;
  background:
    radial-gradient(50% 80% at 10% 20%, rgba(219,234,254,.5) 0%, rgba(219,234,254,0) 70%),
    radial-gradient(40% 60% at 90% 80%, rgba(239,246,255,.6) 0%, rgba(239,246,255,0) 70%),
    #fff;
}
.sjp-port-stats__inner { display: flex; flex-direction: column; align-items: center; gap: 48px; max-width: 1280px; margin: 0 auto; }
.sjp-port-stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; width: 100%; }

.sjp-port-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px 28px;
  min-height: 200px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(226,232,240,.6);
  box-shadow: 0 8px 24px rgba(30,64,175,.07), 0 2px 4px rgba(30,64,175,.03);
  transition: transform .25s ease, box-shadow .25s ease;
}
.sjp-port-stat-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(30,64,175,.12); }

.sjp-port-stat-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(37,99,235,.3);
}
.sjp-port-stat-card__num {
  font-family: var(--sjp-font-jp), "Noto Sans JP", sans-serif;
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #1E40AF, #3B82F6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #1E40AF;
}
.sjp-port-stat-card__label { font-size: 15px; font-weight: 500; color: #475569; }

/* ── Filter / List Section (gray bg) ── */
.sjp-port-list { background: #F8FAFC; padding: 64px 80px 80px; }
.sjp-port-list__inner { display: flex; flex-direction: column; align-items: center; gap: 40px; max-width: 1280px; margin: 0 auto; }

.sjp-port-search-form { width: 100%; }
.sjp-port-search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 56px;
  padding: 0 20px;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(15,23,42,.04);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.sjp-port-search:focus-within { border-color: #BFDBFE; box-shadow: 0 4px 20px rgba(30,64,175,.12); }
.sjp-port-search__icon { color: #94A3B8; flex-shrink: 0; }
.sjp-port-search__input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  color: #0F172A;
}
.sjp-port-search__input::placeholder { color: #94A3B8; }

.sjp-port-tabs { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; justify-content: center; }
.sjp-port-tab {
  display: inline-block;
  text-decoration: none;
  padding: 8px 20px;
  border-radius: 24px;
  border: 1px solid #E2E8F0;
  background: #fff;
  color: #475569;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s ease;
}
.sjp-port-tab:hover { border-color: #BFDBFE; color: #1E40AF; }
.sjp-port-tab.is-active {
  background: linear-gradient(90deg, #1E40AF, #3B82F6);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(30,64,175,.25);
}

.sjp-port-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
}
.sjp-port-card.is-hidden { display: none; }

.sjp-port-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(226,232,240,.8);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(15,23,42,.06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.sjp-port-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(30,64,175,.12); border-color: #BFDBFE; }

.sjp-port-card__img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
  flex-shrink: 0;
}
.sjp-port-card__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.sjp-port-card:hover .sjp-port-card__img { transform: scale(1.04); }

.sjp-port-card__body { display: flex; flex-direction: column; gap: 14px; padding: 24px 28px; flex: 1; }
.sjp-port-card__tag {
  align-self: flex-start;
  display: inline-block;
  background: #EFF6FF;
  color: #1E40AF;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
}
.sjp-port-card__title { font-size: 20px; font-weight: 700; color: #0F172A; margin: 0; line-height: 1.4; }
.sjp-port-card__desc { font-size: 15px; color: #64748B; line-height: 1.7; margin: 0; flex: 1; }
.sjp-port-card__link {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #3B82F6;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: gap .2s ease, color .2s ease;
}
.sjp-port-card__link:hover { color: #1E40AF; gap: 10px; }

.sjp-port-empty { font-size: 16px; color: #64748B; margin: 0; }

/* ── Pagination ── */
.sjp-port-pagination { display: inline-flex; align-items: center; gap: 4px; padding-top: 24px; }
.sjp-port-pagination__btn {
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  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-port-pagination__btn:hover:not(:disabled):not(.is-active) { border-color: #BFDBFE; color: #1E40AF; }
.sjp-port-pagination__btn:disabled { opacity: .4; cursor: not-allowed; }
.sjp-port-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-port-pagination__btn--nav { color: #64748B; }
.sjp-port-pagination__dots { color: #94A3B8; padding: 0 4px; font-weight: 500; }

/* ── CTA ── */
.sjp-port-cta { position: relative; overflow: hidden; min-height: 320px; display: flex; align-items: center; padding: 80px; }
.sjp-port-cta__bg { position: absolute; inset: 0; background: linear-gradient(135deg, #0B1D4F 0%, #1E40AF 50%, #2563EB 100%); }
.sjp-port-cta__orb { position: absolute; border-radius: 50%; pointer-events: none; }
.sjp-port-cta__orb--1 { width: 300px; height: 300px; right: -60px; top: -80px; background: rgba(59,130,246,.3); opacity: .3; }
.sjp-port-cta__orb--2 { width: 250px; height: 250px; left: -50px; bottom: -60px; background: rgba(30,64,175,.44); opacity: .3; }
.sjp-port-cta__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; max-width: 1280px; margin: 0 auto; }
.sjp-port-cta__label { color: #93C5FD; font-size: 15px; font-weight: 600; letter-spacing: 2px; margin: 0; text-transform: uppercase; }
.sjp-port-cta__title { font-size: 36px; font-weight: 700; color: #fff; text-align: center; margin: 0; line-height: 1.3; }
.sjp-port-cta__desc { font-size: 18px; color: #CBD5E1; text-align: center; margin: 0; line-height: 1.7; }
.sjp-port-cta__btns { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; padding-top: 12px; }
.sjp-port-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  border-radius: 8px;
  font-size: 18px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.sjp-port-cta__btn:hover { transform: translateY(-2px); }
.sjp-port-cta__btn--solid {
  background: #fff;
  color: #1E40AF;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(255,255,255,.25);
}
.sjp-port-cta__btn--solid:hover { box-shadow: 0 8px 28px rgba(255,255,255,.4); }
.sjp-port-cta__btn--outline {
  background: transparent;
  color: #fff;
  font-weight: 500;
  border: 2px solid rgba(255,255,255,.8);
}
.sjp-port-cta__btn--outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .sjp-port-hero,
  .sjp-port-stats,
  .sjp-port-list,
  .sjp-port-cta { padding-left: 40px; padding-right: 40px; }

  .sjp-port-stats__grid { grid-template-columns: repeat(2, 1fr); }
  .sjp-port-grid { grid-template-columns: repeat(2, 1fr); }
  .sjp-port-hd__title { font-size: 32px; }
  .sjp-port-hero__title { font-size: 36px; }
}

@media (max-width: 768px) {
  .sjp-port-hero,
  .sjp-port-stats,
  .sjp-port-list,
  .sjp-port-cta { padding-left: 20px; padding-right: 20px; }

  .sjp-port-stats,
  .sjp-port-list { padding-top: 60px; padding-bottom: 60px; }

  .sjp-port-stats__grid { grid-template-columns: 1fr; }
  .sjp-port-grid { grid-template-columns: 1fr; }
  .sjp-port-card__img-wrap { height: 200px; }

  .sjp-port-hd__title { font-size: 26px; }
  .sjp-port-hero__title { font-size: 28px; }
  .sjp-port-hero__desc { font-size: 16px; }
  .sjp-port-stat-card__num { font-size: 42px; }
  .sjp-port-cta__title { font-size: 24px; }
  .sjp-port-cta__btns { flex-direction: column; align-items: stretch; width: 100%; }
  .sjp-port-cta__btn { justify-content: center; }
}
