.page-hero {
  padding: 42px 0 24px;
  background:
    linear-gradient(180deg, rgba(255, 250, 244, 0.68), rgba(240, 231, 219, 0.28));
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 1.05fr);
  gap: 36px;
  align-items: center;
}

.work-hero-image {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(138, 106, 61, 0.10);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
}

.work-hero-image img {
  width: 100%;
  height: 100%;
  max-height: 760px;
  object-fit: contain;
  object-position: center center;
}

.work-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.work-tag {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(239, 232, 220, 0.8);
  color: var(--accent-dark);
  font-size: 12px;
}

.page-title {
  margin: 0 0 14px;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.16;
  letter-spacing: 0.05em;
}

.page-lead {
  margin: 0;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.9;
  color: rgba(44, 36, 28, 0.78);
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 22px;
}

.mini-link {
  position: relative;
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 14px;
}

.work-profile-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  align-items: start;
}

.work-profile-main,
.work-profile-side {
  min-width: 0;
}

.info-box {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(138, 106, 61, 0.12);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow-soft);
}

.info-box dl {
  margin: 0;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 10px 16px;
  font-size: 14px;
}

.info-box dt {
  color: var(--muted);
}

.info-box dd {
  margin: 0;
  color: #3d3026;
}

.work-note {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.bio-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.bio-list li {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(138, 106, 61, 0.10);
}

.bio-list li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.bio-year {
  display: inline-block;
  min-width: 72px;
  color: var(--accent-dark);
  font-weight: 600;
}

.related-works-section {
  margin-top: 0;
}

.related-works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.related-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.related-links a {
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(252, 250, 246, 0.92);
  border: 1px solid rgba(138, 106, 61, 0.14);
  color: #40342a;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-links a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

@media (max-width: 1024px) {
  .page-hero-grid,
  .work-profile-grid,
  .related-works-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .work-hero-image {
    min-height: 520px;
  }

  .work-hero-image img {
    max-height: 620px;
  }
}

@media (max-width: 900px) {
  .page-hero {
    padding: 24px 0 18px;
  }

  .page-hero-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
  }

  .work-hero-image {
    order: 1;
    min-height: auto;
    padding: 18px;
  }

  .work-hero-image img {
    max-height: 62vh;
  }

  .work-hero-copy {
    order: 2;
  }

  .page-title {
    font-size: clamp(34px, 7vw, 48px);
    line-height: 1.2;
    margin: 0 0 12px;
  }

  .page-lead {
    font-size: 14px;
    line-height: 1.8;
  }

  .mini-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 18px;
  }

  .mini-link {
    display: block;
    width: 100%;
    padding: 10px 0;
  }

  .work-profile-grid {
    grid-template-columns: 1fr;
  }

  .related-works-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 20px 0 16px;
  }

  .work-hero-image {
    padding: 16px;
    border-radius: 22px;
  }

  .work-hero-image img {
    max-height: 58vh;
  }

  .page-title {
    font-size: clamp(30px, 8vw, 42px);
    line-height: 1.18;
  }

  .page-lead {
    font-size: 14px;
    line-height: 1.8;
  }

  .info-box {
    padding: 22px 18px;
  }

  .info-box dl {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .related-works-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-hero {
    padding: 18px 0 14px;
  }

  .breadcrumbs {
    margin-bottom: 10px;
    font-size: 12px;
  }

  .work-hero-image {
    padding: 14px;
    border-radius: 20px;
  }

  .work-hero-image img {
    max-height: 56vh;
  }

  .eyebrow {
    margin-bottom: 10px;
    font-size: 11px;
    letter-spacing: 0.16em;
  }

  .work-tag {
    margin-bottom: 12px;
  }

  .page-title {
    font-size: clamp(28px, 9vw, 40px);
    line-height: 1.18;
  }

  .mini-links {
    gap: 8px;
  }

  .mini-link {
    font-size: 14px;
  }

  .section h2,
  .page-title {
    white-space: normal;
  }
}
.work-hero-image {
  cursor: zoom-in;
}

.work-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 16, 12, 0.88);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.work-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.work-lightbox-inner {
  position: relative;
  width: min(92vw, 1200px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.work-lightbox-close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.work-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.work-lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.work-lightbox-stage img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;

  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  background: #fff;
}

.work-lightbox-caption {
  margin-top: 12px;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .work-lightbox {
    padding: 12px;
  }

  .work-lightbox-close {
    top: -6px;
    right: -2px;
    width: 38px;
    height: 38px;
    font-size: 22px;
  }

  .work-lightbox-stage img {
    max-height: 78vh;
  }
}

/* 作品拡大表示：横型作品の表示枠を画像比率に合わせる調整 */
.work-lightbox {
  --work-lightbox-ratio: 1.5;
}

.work-lightbox.is-landscape .work-lightbox-inner {
  width: min(98vw, 1840px);
  max-height: 94vh;
}

.work-lightbox.is-landscape .work-lightbox-stage {
  width: min(96vw, calc(82vh * var(--work-lightbox-ratio)), 1800px);
  aspect-ratio: var(--work-lightbox-ratio);
  max-height: 82vh;
}

.work-lightbox.is-landscape .work-lightbox-stage img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  background: transparent;
}

.work-lightbox.is-portrait .work-lightbox-inner,
.work-lightbox.is-square .work-lightbox-inner {
  width: min(92vw, 1200px);
}

@media (max-width: 640px) {
  .work-lightbox.is-landscape .work-lightbox-stage {
    width: min(96vw, calc(74vh * var(--work-lightbox-ratio)));
    max-height: 74vh;
  }
}
