/* Portfolio detail hero: page-specific styles kept separate from the purchased theme. */
.portfolio-detail-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 8%, rgba(235, 103, 83, 0.1), transparent 24rem),
    linear-gradient(180deg, #fafbfc 0%, #f7f7f7 100%);
}

.portfolio-detail-heading {
  position: relative;
}

.portfolio-breadcrumb {
  margin-bottom: 24px;
}

.portfolio-breadcrumb ol {
  display: inline-flex;
  max-width: 100%;
  margin: 0;
  padding: 7px 11px;
  align-items: center;
  gap: 8px;
  list-style: none;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 5px 18px rgba(24, 31, 50, 0.04);
  backdrop-filter: blur(8px);
}

.portfolio-breadcrumb li {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.4;
}

.portfolio-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #5f6672;
  transition: color 0.2s ease;
}

.portfolio-breadcrumb a:hover,
.portfolio-breadcrumb a:focus-visible {
  color: #eb6753;
}

.portfolio-breadcrumb__separator {
  color: #c2c7cf !important;
  font-size: 9px !important;
}

.portfolio-breadcrumb__current {
  overflow: hidden;
  color: #181f32 !important;
  font-weight: 600;
}

.portfolio-breadcrumb__current span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-detail-heading .sp-lg-title {
  max-width: 1040px;
  margin-bottom: 0;
  color: #181f32;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.3;
  letter-spacing: -0.035em;
  word-break: keep-all;
}

.portfolio-summary {
  display: flex;
  width: 100%;
  align-items: flex-start;
  gap: 16px;
}

.portfolio-summary__mark {
  display: flex;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #fff0ed;
}

.portfolio-summary__mark span {
  position: relative;
  width: 13px;
  height: 13px;
  border: 2px solid #eb6753;
  border-radius: 50%;
}

.portfolio-summary__mark span::after {
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 6px;
  height: 2px;
  content: "";
  border-radius: 2px;
  background: #eb6753;
  transform: rotate(45deg);
}

.portfolio-summary__content {
  min-width: 0;
}

.portfolio-summary__label {
  display: block;
  margin: 0 0 8px;
  color: #181f32;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.portfolio-summary__text {
  margin: 0;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.portfolio-case-regions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.portfolio-case-region { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fafbfc; color: #4b5563; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.portfolio-case-region:hover { border-color: #9ca3af; color: #181f32; }
.portfolio-case-region--town { background: #fff0ed; border-color: #f3c2b8; color: #b94735; }
.portfolio-case-region--town:hover { background: #ffe5df; border-color: #eb6753; color: #b94735; }
.portfolio-case-region:focus-visible { outline: 2px solid #b94735; outline-offset: 3px; }
.portfolio-case-regions__note { margin: 12px 0 0; color: #717171; font-size: 12px; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; }

.portfolio-detail-meta {
  gap: 8px;
  margin-top: 18px;
  margin-bottom: 15px;
}

.portfolio-detail-meta__item {
  display: inline-flex;
  padding: 8px 13px;
  align-items: center;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.35;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
}

.portfolio-detail-meta__item i {
  color: #eb6753;
}

@media (max-width: 575.98px) {
  .portfolio-detail-hero {
    padding-top: 38px !important;
  }

  .portfolio-breadcrumb {
    margin-bottom: 18px;
  }

  .portfolio-breadcrumb ol {
    display: flex;
    width: 100%;
  }

  .portfolio-breadcrumb__current {
    flex: 1;
  }

  .portfolio-detail-heading .sp-lg-title {
    font-size: 28px;
    line-height: 1.38;
  }

  .portfolio-summary {
    gap: 12px;
  }

  .portfolio-summary__mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .portfolio-summary__text {
    font-size: 15px;
    line-height: 1.75;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-breadcrumb a {
    transition: none;
  }
}
