/* ─────────────────────────────────────────
   work-detail.css — AINAGI Work Detail
   First Character
───────────────────────────────────────── */

/* ─── Nav: animation speed for non-landing page ─── */
.page-work-detail .nav-brand {
  animation-duration: 800ms;
  animation-delay: 200ms;
}

.page-work-detail .nav-links {
  animation-duration: 600ms;
  animation-delay: 400ms;
}

/* Nav color: cream hero background → dark text */
.page-work-detail .nav-links a {
  color: var(--deep);
  text-shadow: none;
  opacity: 0.68;
}

.page-work-detail .nav-links a:hover {
  color: var(--deep);
  opacity: 1;
}

/* ─────────────────────────────────────────
   S1 PROJECT — Hero override
───────────────────────────────────────── */
.page-work-detail .hero {
  background-color: #F0EDE8;
  background-image: url('../images/work/ainagi-hero-office-day.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  align-items: stretch;
}

.page-work-detail .hero::after {
  background: rgba(240, 237, 232, 0.75);
}

/* Left column: text */
.wd-hero-inner {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10vh clamp(60px, 4.5vw, 80px) 10vh 8vw;
  position: relative;
  z-index: 10;
}

.wd-hero-title {
  font-family: var(--font-en);
  font-size: clamp(1.9rem, 3.8vw, 3.4rem);
  font-weight: 300;
  letter-spacing: 0.09em;
  color: var(--deep);
  line-height: 1.3;
  margin: 2rem 0 2.2rem;
}

.wd-hero-body {
  font-family: var(--font-jp);
  font-size: clamp(0.85rem, 1.3vw, 1.0rem);
  font-weight: 300;
  line-height: 2.2;
  letter-spacing: 0.08em;
  color: var(--gray);
  margin-bottom: 2.8rem;
}

.wd-hero-note {
  font-family: var(--font-en);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gray-light);
  display: block;
}

/* Right column: character */
.wd-hero-character {
  width: 30%;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  padding-right: 2vw;
  position: relative;
  z-index: 10;
}

.wd-hero-character-img {
  max-height: 72vh;
  width: auto;
  max-width: 100%;
  aspect-ratio: 567 / 1355;
  display: block;
  margin-bottom: calc(3vh + 70px);
  object-fit: contain;
}

/* ─────────────────────────────────────────
   General Section
───────────────────────────────────────── */
.wd-section {
  padding: 16vh 8vw;
  position: relative;
}

.wd-section-inner {
  max-width: 520px;
}

/* ─── Body text ─── */
.wd-body {
  margin-top: 3rem;
}

.wd-body p {
  font-family: var(--font-jp);
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 2.4;
  letter-spacing: 0.06em;
  color: var(--gray);
  margin-bottom: 2rem;
}

.wd-body p:last-child {
  margin-bottom: 0;
}

/* ─────────────────────────────────────────
   S2 問いのこと。
───────────────────────────────────────── */
.wd-s2 {
  background: var(--white);
}

@media (min-width: 769px) {
  .wd-s2 .wd-section-inner,
  .wd-s3 .wd-section-inner,
  .wd-s5 .wd-section-inner {
    margin-left: 88px;
  }
}

/* ─────────────────────────────────────────
   S3 設計のこと。
───────────────────────────────────────── */
.wd-s3 {
  background: #F0EDE8;
}

.wd-s3 .wd-section-inner {
  max-width: 860px;
}

.wd-s3-layout {
  display: flex;
  align-items: flex-start;
  gap: 6vw;
}

.wd-s3-layout .wd-body {
  flex: 1;
}

.wd-ui-capture {
  flex-shrink: 0;
  margin-top: 3rem;
}

.wd-ui-capture-img {
  width: clamp(130px, 18vw, 240px);
  height: auto;
  display: block;
  opacity: 0.68;
  filter: brightness(0.76) contrast(0.86);
}

/* ─────────────────────────────────────────
   S4 First Character
───────────────────────────────────────── */
.wd-s4 {
  background: var(--white);
  padding: 18vh 8vw 20vh;
}

.wd-s4-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.8rem;
}

.wd-character {
  display: flex;
  justify-content: center;
}

.wd-character-img {
  width: auto;
  height: clamp(560px, 84vh, 800px);
  aspect-ratio: 567 / 1355;
  display: block;
}

.wd-s4-text {
  text-align: center;
  white-space: nowrap;
}

.wd-s4-text p {
  font-family: var(--font-jp);
  font-size: clamp(0.875rem, 1.3vw, 1.0rem);
  font-weight: 300;
  line-height: 2.4;
  letter-spacing: 0.08em;
  color: var(--gray);
  margin-bottom: 1.8rem;
}

.wd-s4-text p:last-child {
  margin-bottom: 0;
}

.wd-s4-text .wd-s4-name {
  font-family: var(--font-jp);
  font-size: clamp(1.0rem, 1.6vw, 1.3rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--deep);
  margin-bottom: 0.6rem;
}

.wd-s4-text .wd-s4-label {
  font-family: var(--font-jp);
  font-size: clamp(0.75rem, 1.0vw, 0.875rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--gray);
}

/* ─────────────────────────────────────────
   S5 見えてきたこと。
───────────────────────────────────────── */
.wd-s5 {
  background: #F0EDE8;
  padding: 18vh 8vw 20vh;
}

/* ─────────────────────────────────────────
   Responsive
───────────────────────────────────────── */
@media (max-width: 768px) {
  .page-work-detail .hero {
    flex-direction: column;
    align-items: stretch;
  }

  .wd-hero-inner {
    padding: 12vh 6vw 4vh;
    flex: none;
  }

  .wd-hero-character {
    width: 65%;
    align-self: center;
    padding-right: 0;
    flex: none;
    align-items: center;
    padding-bottom: 4vh;
  }

  .wd-hero-character-img {
    height: auto;
    width: auto;
    max-width: 65vw;
    max-height: 52vh;
    aspect-ratio: 567 / 1355;
    object-fit: contain;
    margin-bottom: 0;
  }

  .wd-section {
    padding: 12vh 6vw;
  }

  .wd-s3-layout {
    flex-direction: column;
    gap: 3rem;
  }

  .wd-ui-capture {
    margin-top: 0;
  }

  .wd-ui-capture-img {
    width: clamp(80px, 25vw, 130px);
  }

  .wd-s4 {
    padding: 12vh 6vw 14vh;
  }

  .wd-s5 {
    padding: 12vh 6vw 14vh;
  }

  .wd-character-img {
    width: auto;
    height: clamp(280px, 55vh, 440px);
    aspect-ratio: 567 / 1355;
  }

  .wd-s4-text {
    white-space: normal;
    max-width: 280px;
  }
}
