/* ═══════════════════════════════════════════════════════════════
   Single Portfolio — single-portfolio.php
   Based on Figma: Wire Frame Web JP / node 4572-4106
   ═══════════════════════════════════════════════════════════════ */

/* ── Hero Section ── */
.sjp-port-hero {
  background: #F8FAFC;
  padding: 120px 80px 48px;
}
.sjp-port-hero__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.sjp-port-hero__info {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sjp-port-hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.sjp-port-hero__visual--mobile {
  display: none;
}
.sjp-port-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.sjp-port-hero__tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 36px;
  background: #036AE5;
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  line-height: 16.8px;
  font-weight: 400;
}
.sjp-port-hero__title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 67px;
  color: #0F172A;
  margin: 0 0 16px;
}
.sjp-port-hero__desc {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  color: #475569;
  margin: 0 0 32px;
  opacity: 0.7;
  order: 3;
}
.sjp-port-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 48px;
  margin-top: auto;
  order: 4;
}
.sjp-port-hero__meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sjp-port-hero__meta-label {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px 3px;
  border-radius: 4px;
  background: #EFF6FF;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 20.4px;
  color: #1E40AF;
}
.sjp-port-hero__meta-value {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 20.4px;
  color: #94A3B8;
}
.sjp-port-hero__img {
  width: 100%;
  height: auto;
  max-height: 410px;
  object-fit: contain;
  border-radius: 8px;
}

/* ── Content Section ── */
.sjp-port-content {
  padding: 80px;
}
.sjp-port-content__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 95px;
}
.sjp-port-content__gallery {
  width: 480px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 50px;
}
.sjp-port-content__gallery img {
  width: 100%;
  height: 311px;
  object-fit: cover;
  display: block;
}
.sjp-port-content__body {
  flex: 1;
  min-width: 0;
  padding-bottom: 50px;
}

/* Article content typography */
.sjp-port-content__body h2 {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 38.4px;
  color: #0F172A;
  margin: 44px 0 16px;
}
.sjp-port-content__body h2:first-child {
  margin-top: 0;
}
.sjp-port-content__body p {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 28px;
  color: #475569;
  margin: 16px 0 0;
}
.sjp-port-content__body strong {
  font-weight: 700;
  color: #0F172A;
}
.sjp-port-content__body ul,
.sjp-port-content__body ol {
  padding-left: 40px;
  margin: 16px 0 0;
}
.sjp-port-content__body li {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 28px;
  color: #475569;
  margin-bottom: 0;
}
.sjp-port-content__body li + li {
  margin-top: 0;
}

/* Share buttons */
.sjp-port-content__share {
  display: flex;
  gap: 12px;
  margin-top: 50px;
  padding-top: 50px;
}
.sjp-port-content__share-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity .2s ease;
}
.sjp-port-content__share-btn:hover {
  opacity: 0.7;
}
.sjp-port-content__share-btn--linkedin {
  background-image: url('../icons/social/linkedIn.png');
}
.sjp-port-content__share-btn--twitter {
  background-image: url('../icons/social/twitter.png');
}
.sjp-port-content__share-btn--facebook {
  background-image: url('../icons/social/facebook.png');
}

/* ── Related Section ── */
.sjp-port-related {
  background: #F8FAFC;
  padding: 80px;
}
.sjp-port-related__inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}
.sjp-port-related__hd {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
}
.sjp-port-related__eyebrow {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 25.5px;
  letter-spacing: 0.1333em;
  text-transform: uppercase;
  color: #3B82F6;
  margin: 0 0 4px;
}
.sjp-port-related__title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 41.6px;
  color: #0F172A;
  margin: 0 0 8px;
}
.sjp-port-related__line {
  display: block;
  width: 60px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #1E40AF, #3B82F6);
}
.sjp-port-related__more-wrap {
  text-align: right;
  margin-bottom: 16px;
}
.sjp-port-related__more {
  display: inline-block;
  text-align: center;
  margin-bottom: 32px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 28px;
  color: #036AE5;
  text-decoration: none;
  transition: opacity .2s ease;
}
.sjp-port-related__more:hover {
  opacity: 0.7;
}
.sjp-port-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.sjp-port-related__card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.sjp-port-related__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(30, 64, 175, 0.10);
  border-color: #93C5FD;
}
.sjp-port-related__card-img {
  width: 100%;
  height: 228px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #F8FAFC;
}
.sjp-port-related__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.sjp-port-related__card:hover .sjp-port-related__card-img img {
  transform: scale(1.04);
}
.sjp-port-related__card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.sjp-port-related__card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sjp-port-related__card-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px 3px;
  border-radius: 4px;
  background: #EFF6FF;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 12px;
  line-height: 20.4px;
  color: #1E40AF;
}
.sjp-port-related__card-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  color: #0F172A;
  margin: 0;
}
.sjp-port-related__card-desc {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 28px;
  color: #5C6B84;
  margin: 0;
}

/* ── Responsive ── */
@media (max-width: 1280px) {
  .sjp-port-hero { padding: 120px 60px 48px; }
  .sjp-port-content { padding: 80px 60px; }
  .sjp-port-related { padding: 80px 60px; }
}

@media (max-width: 1024px) {
  .sjp-port-hero { padding: 100px 40px 40px; }
  .sjp-port-hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .sjp-port-hero__info { order: 1; }
  .sjp-port-hero__visual { order: 2; display: none; }
  .sjp-port-hero__visual--mobile { display: flex; margin: 16px 0; }
  .sjp-port-hero__title { font-size: 28px; line-height: 39.2px; }
  .sjp-port-hero__desc { font-size: 16px; line-height: 26px; }

  .sjp-port-content { padding: 60px 40px; }
  .sjp-port-content__inner { flex-direction: column; gap: 48px; }
  .sjp-port-content__gallery {gap: 30px}
  .sjp-port-hero__meta {order: 4;}
  .sjp-port-content__gallery { width: 100%; }
  .sjp-port-content__gallery img { height: 260px; }
  .sjp-port-content__body h2 { font-size: 28px; line-height: 36px; }

  .sjp-port-related { padding: 60px 40px; }
  .sjp-port-related__grid { grid-template-columns: repeat(2, 1fr); }
  .sjp-port-related__title { font-size: 28px; line-height: 36.4px; }
}

@media (max-width: 768px) {
  /* Hero — single column, centered, image on top */
  .sjp-port-hero { padding: 90px 15px 32px; }
  .sjp-port-hero__inner { grid-template-columns: 1fr; gap: 24px; }
  .sjp-port-hero__info { align-items: center; text-align: center; }
  .sjp-port-hero__tags { justify-content: center; }
  .sjp-port-hero__tag { font-size: 12px; line-height: 16.8px; }
  .sjp-port-hero__title {
    font-size: 24px;
    line-height: 33.6px;
    letter-spacing: -0.02em;
    text-align: center;
  }
  .sjp-port-hero__desc {
    font-size: 16px;
    line-height: 28px;
    text-align: left;
    opacity: 1;
  }
  .sjp-port-hero__meta {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    width: 100%;
  }
  .sjp-port-hero__meta-label { font-size: 16px; line-height: 20.4px; }
  .sjp-port-hero__meta-value { font-size: 16px; line-height: 20.4px; }

  /* Content — single column, gallery hidden (images inline in body on mobile) */
  .sjp-port-content { padding: 0 19px 50px; }
  .sjp-port-content__inner { flex-direction: column; gap: 0; }
  .sjp-port-content__gallery { display: none; }
  .sjp-port-content__body { padding-bottom: 0; }
  .sjp-port-content__body h2 {
    font-size: 32px;
    line-height: 38.4px;
    margin-top: 44px;
  }
  .sjp-port-content__body h2:first-child { margin-top: 50px; }
  .sjp-port-content__body p {
    font-size: 16px;
    line-height: 28px;
  }
  .sjp-port-content__body strong {
    font-size: 16px;
    line-height: 28px;
  }
  .sjp-port-content__body ul,
  .sjp-port-content__body ol {
    padding-left: 40px;
  }
  .sjp-port-content__body li {
    font-size: 16px;
    line-height: 28px;
  }
  .sjp-port-content__body img {
    width: 100%;
    height: 234px;
    object-fit: cover;
    margin: 20px 0;
    border-radius: 0;
  }
  .sjp-port-content__share {
    margin-top: 24px;
    padding-top: 24px;
  }

  /* Related — horizontal slider, single card */
  .sjp-port-related { padding: 35px 0; }
  .sjp-port-related__inner { overflow: hidden; }
  .sjp-port-related__hd { margin-bottom: 24px; }
  .sjp-port-related__more-wrap { text-align: center; }
  .sjp-port-related__eyebrow { font-size: 15px; line-height: 25.5px; }
  .sjp-port-related__title { font-size: 24px; line-height: 31.2px; }
  .sjp-port-related__more {
    font-size: 16px;
    line-height: 28px;
    margin-top: 8px;
    margin-bottom: 0;
  }
  .sjp-port-related__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    padding: 20px 26px;
    scroll-padding-left: 26px;
  }
  .sjp-port-related__grid::-webkit-scrollbar { display: none; }
  .sjp-port-related__card {
    flex: 0 0 336px;
    scroll-snap-align: start;
    margin-right: 16px;
    border-radius: 12px;
  }
  .sjp-port-related__card:last-child { margin-right: 26px; }
  .sjp-port-related__card-img { height: 228px; }
  .sjp-port-related__card-title { font-size: 16px; line-height: 24px; }
  .sjp-port-related__card-desc { font-size: 14px; line-height: 28px; }
  .sjp-port-related__card-tag { font-size: 12px; line-height: 20.4px; }
}

@media (max-width: 480px) {
  .sjp-port-hero { padding: 80px 15px 24px; }
  .sjp-port-hero__title { font-size: 22px; line-height: 30.8px; }
  .sjp-port-hero__desc { font-size: 14px; line-height: 22.4px; }
  .sjp-port-hero__meta-label { font-size: 14px; line-height: 18px; }
  .sjp-port-hero__meta-value { font-size: 14px; line-height: 18px; }
  .sjp-port-hero__tag { font-size: 11px; line-height: 15.4px; }

  .sjp-port-content { padding: 0 16px 40px; }
  .sjp-port-content__body h2 { font-size: 24px; line-height: 32px; }
  .sjp-port-content__body p { font-size: 14px; line-height: 24px; }
  .sjp-port-content__body li { font-size: 14px; line-height: 24px; }
  .sjp-port-content__body strong { font-size: 14px; line-height: 24px; }
  .sjp-port-content__body img { height: 180px; }

  .sjp-port-related { padding: 32px 0; }
  .sjp-port-related__eyebrow { font-size: 13px; line-height: 22px; }
  .sjp-port-related__title { font-size: 20px; line-height: 28px; }
  .sjp-port-related__more { font-size: 14px; line-height: 22px; }
  .sjp-port-related__grid { padding: 16px 15px; scroll-padding-left: 15px; }
  .sjp-port-related__card { flex: 0 0 calc(100vw - 54px); }
  .sjp-port-related__card:last-child { margin-right: 15px; }
  .sjp-port-related__card-title { font-size: 14px; line-height: 20px; }
  .sjp-port-related__card-desc { font-size: 13px; line-height: 22px; }
  .sjp-port-related__card-tag { font-size: 11px; line-height: 18px; }
}
