.site-header .current { border-bottom-color: var(--green); }

.detail-hero {
  width: min(1180px, calc(100% - 3rem));
  min-height: 500px;
  margin: clamp(2rem, 5vw, 4.5rem) auto 0;
  display: grid;
  grid-template-columns: minmax(330px, .9fr) minmax(0, 1.1fr);
  background: var(--paper);
}

.detail-copy {
  align-self: center;
  padding: clamp(3rem, 5vw, 5rem);
}

.detail-copy h1 {
  margin: 1rem 0 1.5rem;
  font-size: clamp(2.7rem, 4.8vw, 5rem);
  line-height: 1.22;
  letter-spacing: .01em;
}

.detail-copy h1 .title-part {
  display: block;
  white-space: nowrap;
}

.detail-copy h1 .title-part--primary-compact {
  font-size: clamp(2.4rem, 4vw, 3.7rem);
}

.detail-copy h1 .title-part--secondary {
  margin-top: .08em;
  font-size: clamp(2.2rem, 3.6vw, 3.8rem);
  line-height: 1.2;
}

.detail-copy h1 .title-part--compact {
  font-size: clamp(1.55rem, 2.2vw, 2.05rem);
  letter-spacing: 0;
}

.detail-copy h1 .title-part:only-child {
  white-space: normal;
}

.detail-copy > p:last-child {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.05rem;
}

.detail-meta {
  display: flex;
  gap: .8rem;
  color: var(--green-dark);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.detail-meta span + span::before {
  content: "・";
  margin-right: .8rem;
}

.detail-cover {
  min-height: 500px;
  margin: 0;
  overflow: hidden;
  background: #e8edeb;
}

.detail-cover img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
}

.photo-section {
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
  padding: clamp(5rem, 8vw, 7.5rem) 0;
}

.photo-section > header {
  margin-bottom: 2.25rem;
}

.photo-section h2 { margin-bottom: 0; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 3.5vw, 3.5rem) clamp(1rem, 2vw, 1.75rem);
}

.photo-grid figure {
  min-width: 0;
  margin: 0;
}

.photo-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #eef1ef;
  -webkit-user-drag: none;
  user-select: none;
}

.photo-grid figcaption {
  min-height: 3.2rem;
  padding: .8rem .1rem 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.6;
}

.case-back {
  padding: 0 1.25rem 7rem;
  text-align: center;
}

.case-back a {
  padding-bottom: .25rem;
  border-bottom: 1px solid currentColor;
  font-weight: 700;
}

.not-found {
  min-height: 60vh;
  padding: 8rem 1.25rem;
  text-align: center;
}

.preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.3rem clamp(1.25rem, 7vw, 8rem);
  background: #102b34;
  color: rgba(255,255,255,.72);
}

.preview-footer img {
  width: 250px;
  height: 58px;
  object-fit: contain;
  object-position: left;
  background: transparent;
  filter: brightness(0) invert(1);
  opacity: .86;
}

.preview-footer p { margin: 0; font-size: .78rem; }

@media (max-width: 900px) {
  .detail-hero {
    width: min(720px, calc(100% - 2.5rem));
    grid-template-columns: 1fr;
  }
  .detail-cover { min-height: auto; order: -1; }
  .detail-cover img { min-height: auto; aspect-ratio: 4 / 3; }
  .photo-section { width: min(720px, calc(100% - 2.5rem)); }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
  .detail-hero,
  .photo-section { width: calc(100% - 2rem); }
  .detail-copy { padding: 3rem 1.25rem 3.5rem; }
  .detail-copy h1 { font-size: clamp(2.45rem, 12vw, 3.4rem); }
  .detail-copy h1 .title-part--primary-compact {
    font-size: clamp(2.15rem, 10vw, 3rem);
  }
  .detail-copy h1 .title-part--secondary {
    font-size: clamp(2rem, 9.5vw, 2.75rem);
  }
  .detail-copy h1 .title-part--compact {
    font-size: clamp(1.45rem, 6.8vw, 1.9rem);
  }
  .photo-section { padding-top: 4rem; }
  .photo-grid { grid-template-columns: 1fr; }
  .preview-footer { display: grid; }
}
