/* =============================================
   SINGLE PAGES & GALLERY — the-moving-hero（白背景版）
   ============================================= */

.page-main, .single-work, .single-talent { padding-top: 0; background: var(--white); }

.section-wrap          { padding: 120px 64px; }
.section-wrap.bg-dark  { background: var(--offwhite); position: relative; }
.section-wrap.bg-dark::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--line);
}

/* ── PAGE HERO ── */
.page-hero {
  height: 40vh; min-height: 300px; position: relative;
  display: flex; align-items: flex-end; overflow: hidden;
  background: var(--white);
}
.page-hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 60% 50%, rgba(192,20,28,0.05) 0%, transparent 70%), var(--white);
}
.page-hero-content { position: relative; z-index: 2; padding: 0 64px 52px; }
.page-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 600; line-height: 1; color: var(--black);
}
.page-content { max-width: 800px; }
.page-content p  { font-family: 'Noto Serif JP', serif; font-size: 0.85rem; letter-spacing: 0.08em; line-height: 2.6; color: var(--gray-text); margin-bottom: 1.6em; font-weight: 300; }
.page-content h2 { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 600; margin: 2.4em 0 1em; color: var(--black); }
.page-content h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 600; margin: 2em 0 0.8em; color: var(--red); }
.page-content a  { color: var(--red); text-decoration: underline; text-underline-offset: 4px; }
.page-content ul, .page-content ol { padding-left: 1.4em; margin-bottom: 1.6em; }
.page-content li { font-family: 'Noto Serif JP', serif; font-size: 0.82rem; letter-spacing: 0.06em; line-height: 2.2; color: var(--gray-text); font-weight: 300; }
.page-content img { width: 100%; height: auto; object-fit: cover; }

/* ── BACK LINK ── */
.sw-back, .st-back {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.58rem; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--gray-text); text-decoration: none; margin-bottom: 28px;
  transition: color 0.3s;
}
.sw-back:hover, .st-back:hover { color: var(--red); }
.sw-back-arr { width: 28px; height: 1px; background: currentColor; position: relative; display: inline-block; }
.sw-back-arr::before { content: ''; position: absolute; left: 0; top: -3px; border: 4px solid transparent; border-right: 6px solid currentColor; }

/* ── SINGLE WORK ── */
.sw-hero { position: relative; height: 70vh; min-height: 500px; display: flex; align-items: flex-end; overflow: hidden; background: var(--dark3); }
.sw-hero-img { position: absolute; inset: 0; }
.sw-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.sw-hero-no-img { background: linear-gradient(135deg, #f4dada, #fbeaea); }
.sw-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.15) 60%, transparent 100%); }
.sw-hero-content { position: relative; z-index: 2; padding: 0 64px 64px; max-width: 900px; }
.sw-cat  { font-size: 0.52rem; letter-spacing: 0.5em; text-transform: uppercase; color: #ff8a8e; margin-bottom: 14px; }
.sw-title { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 5vw, 4rem); font-weight: 600; line-height: 1.1; color: var(--white); }

.sw-body { background: var(--white); }
.sw-content { max-width: 800px; }
.sw-content p  { font-family: 'Noto Serif JP', serif; font-size: 0.85rem; letter-spacing: 0.08em; line-height: 2.6; color: var(--gray-text); margin-bottom: 1.6em; font-weight: 300; }
.sw-content h2 { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 600; margin: 2.4em 0 1em; color: var(--black); }
.sw-content img { width: 100%; height: auto; margin: 2em 0; }

.sw-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-top: 60px; }
.sw-related-card { text-decoration: none; display: block; position: relative; overflow: hidden; }
.sw-related-img  { aspect-ratio: 4/3; position: relative; overflow: hidden; background: var(--dark3); }
.sw-related-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.sw-related-card:hover .sw-related-img img { transform: scale(1.05); }
.sw-related-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #f4dada, #fbeaea); }
.sw-related-ov { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 60%); }
.sw-related-info { padding: 18px 20px 22px; background: var(--offwhite); border: 1px solid var(--line); border-top: none; transition: background 0.3s; }
.sw-related-card:hover .sw-related-info { background: var(--white); }
.sw-related-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 600; margin-top: 6px; color: var(--black); }

/* ── SINGLE TALENT ── */
.st-hero { position: relative; height: 80vh; min-height: 600px; display: flex; align-items: flex-end; overflow: hidden; background: var(--dark3); }
.st-img-wrap { position: absolute; inset: 0; }
.st-img-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.st-img-placeholder { width: 100%; height: 100%; background: var(--dark3); display: flex; align-items: center; justify-content: center; font-size: 8rem; color: rgba(192,20,28,0.15); }
.st-img-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0.05) 100%); }
.st-hero-content { position: relative; z-index: 2; padding: 0 64px 64px; }
.st-role { font-size: 0.52rem; letter-spacing: 0.5em; text-transform: uppercase; color: #ff8a8e; margin-bottom: 14px; }
.st-name { font-family: 'Playfair Display', serif; font-size: clamp(2.4rem, 6vw, 5.5rem); font-weight: 600; line-height: 1; color: var(--white); }

.st-body { background: var(--white); }
.st-content { max-width: 800px; }
.st-content p { font-family: 'Noto Serif JP', serif; font-size: 0.85rem; letter-spacing: 0.08em; line-height: 2.6; color: var(--gray-text); margin-bottom: 1.6em; font-weight: 300; }
.st-content h2 { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 600; margin: 2.4em 0 1em; color: var(--black); }
.st-content img { max-width: 100%; height: auto; }

/* ── TALENT GALLERY ── */
.st-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-top: 60px; }
.st-gallery-item { position: relative; display: block; overflow: hidden; aspect-ratio: 1/1; cursor: pointer; background: var(--dark3); }
.st-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.st-gallery-item:hover img { transform: scale(1.06); }
.st-gallery-ov { position: absolute; inset: 0; background: rgba(192,20,28,0); transition: background 0.3s; }
.st-gallery-item:hover .st-gallery-ov { background: rgba(192,20,28,0.1); }

/* Lightbox */
.tmh-lightbox {
  position: fixed; inset: 0; z-index: 9990;
  background: rgba(10,10,10,0.95);
  display: none; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
}
.tmh-lightbox.active { display: flex; }
.tmh-lightbox-img { max-width: 90vw; max-height: 88vh; object-fit: contain; }
.tmh-lightbox-close {
  position: absolute; top: 24px; right: 32px;
  font-size: 2rem; color: rgba(255,255,255,0.7); cursor: pointer;
  background: none; border: none; line-height: 1; transition: color 0.2s;
}
.tmh-lightbox-close:hover { color: var(--red-light); }
.tmh-lightbox-prev, .tmh-lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: rgba(255,255,255,0.7);
  font-size: 2.5rem; cursor: pointer; padding: 16px; transition: color 0.2s; line-height: 1;
}
.tmh-lightbox-prev { left: 16px; }
.tmh-lightbox-next { right: 16px; }
.tmh-lightbox-prev:hover, .tmh-lightbox-next:hover { color: var(--red-light); }
.tmh-lightbox-counter { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); font-size: 0.6rem; letter-spacing: 0.3em; color: rgba(255,255,255,0.6); }

/* ── 404 ── */
.page-404 { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--white); }
.err-wrap { text-align: center; padding: 40px; }
.err-num { font-family: 'Playfair Display', serif; font-size: 14rem; font-weight: 700; color: rgba(192,20,28,0.1); line-height: 1; margin-bottom: -40px; }
.err-title { font-family: 'Playfair Display', serif; font-size: clamp(2rem,5vw,4rem); font-weight: 600; margin: 24px 0 20px; color: var(--black); }
.err-title em { font-style: italic; color: var(--red); }
.err-desc { font-family: 'Noto Serif JP', serif; font-size: 0.8rem; letter-spacing: 0.1em; line-height: 2; color: var(--gray-text); margin-bottom: 40px; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .section-wrap { padding: 80px 24px; }
  .page-hero-content { padding: 0 24px 40px; }
  .sw-hero-content { padding: 0 24px 40px; }
  .st-hero-content { padding: 0 24px 40px; }
  .sw-related-grid { grid-template-columns: 1fr; }
  .st-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .err-num { font-size: 8rem; }
}
