/* ============================================
   Interview Page — "働く人を知る"
   ============================================ */

/* ── Hero (Full-Width Photo) ── */
.iv-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.iv-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.iv-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: ivKenBurns 20s ease-in-out infinite alternate;
}

@keyframes ivKenBurns {
  0%   { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.iv-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.35) 0%,
    rgba(15, 23, 42, 0.2) 50%,
    rgba(15, 23, 42, 0.1) 100%
  );
  z-index: -1;
}

.iv-hero__inner {
  position: relative;
  z-index: 1;
  padding-top: 120px;
  padding-bottom: 80px;
}

.iv-hero__label {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: ivFadeIn 0.7s 0.3s ease forwards;
}

.iv-hero__heading {
  font-size: 3.2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(30px);
  animation: ivFadeIn 0.8s 0.5s ease forwards;
}

.iv-hero__sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 2;
  opacity: 0;
  transform: translateY(20px);
  animation: ivFadeIn 0.8s 0.7s ease forwards;
}

@keyframes ivFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll hint */
.iv-hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.iv-hero__scroll span {
  font-family: 'Outfit', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.55);
}

.iv-hero__scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
}

.iv-hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #93c5fd;
  animation: ivScrollLine 2s infinite;
}

@keyframes ivScrollLine {
  0%   { top: -100%; }
  100% { top: 100%; }
}

/* ── Lead Message ── */
.iv-lead {
  text-align: center;
  padding-bottom: 40px;
}

.iv-lead__text {
  font-size: 1.05rem;
  color: #334155;
  line-height: 2.2;
  max-width: 640px;
  margin: 0 auto;
}

/* ── Members Section ── */
.iv-members__header {
  text-align: center;
  margin-bottom: 60px;
}

.iv-label {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #1a3a5c;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.iv-heading {
  font-size: 2rem;
  font-weight: 800;
  color: #111;
}

/* ── Film Strip ── */
.iv-film {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  position: relative;
  overflow: hidden;
}

.iv-film__frames {
  display: flex;
  gap: 6px;
  transition: gap 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Each frame — photo with overlay info */
.iv-film__frame {
  flex: 1;
  min-width: 0;
  position: relative;
  height: 60vh;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              max-width 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.iv-film__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(20%);
  transition: filter 0.5s ease, transform 0.6s ease;
}

.iv-film__frame:hover img {
  filter: grayscale(0%);
  transform: scale(1.06);
}

/* Gradient overlay */
.iv-film__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 20, 40, 0.75) 0%, rgba(10, 20, 40, 0.15) 45%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 20px;
  transition: background 0.4s ease;
}

.iv-film__frame:hover .iv-film__overlay {
  background: linear-gradient(to top, rgba(10, 20, 40, 0.85) 0%, rgba(10, 20, 40, 0.3) 50%, rgba(10, 20, 40, 0.1) 100%);
}

/* Number */
.iv-film__num {
  position: absolute;
  top: 16px;
  left: 18px;
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.12);
  line-height: 1;
}

/* Bottom info — always visible */
.iv-film__bottom {
  position: relative;
  z-index: 2;
}

.iv-film__dept {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 600;
  color: #fff;
  background: rgba(37, 99, 235, 0.5);
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.iv-film__name {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  margin: 0;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.02em;
}

.iv-film__role {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2px;
}

/* Detail — revealed on hover */
.iv-film__detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease, margin-top 0.4s ease;
  margin-top: 0;
  position: relative;
  z-index: 2;
}

.iv-film__frame:hover .iv-film__detail {
  max-height: 120px;
  opacity: 1;
  margin-top: 14px;
}

.iv-film__quote {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  margin: 0 0 10px 0;
  font-style: normal;
}

.iv-film__link {
  font-size: 0.72rem;
  font-weight: 600;
  color: #93c5fd;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: color 0.3s ease;
}

.iv-film__link:hover {
  color: #fff;
}

/* ── Expanded State ── */
.iv-film.is-expanded .iv-film__frames {
  gap: 0;
}

/* Hidden frames shrink to 0 */
.iv-film__frame.is-hidden {
  flex: 0 0 0%;
  min-width: 0;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              max-width 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active frame takes left 40% */
.iv-film__frame.is-active {
  flex: 0 0 40%;
  max-width: 40%;
  transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              max-width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.iv-film__frame.is-active img {
  filter: grayscale(0%);
}

.iv-film__frame.is-active .iv-film__detail {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}

/* ── Interview Detail Panel ── */
.iv-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: #fff;
  overflow-y: auto;
  opacity: 0;
  transform: translateX(30px);
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1), transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

.iv-panel.is-open {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.iv-panel__close {
  position: sticky;
  top: 0;
  right: 0;
  z-index: 11;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  text-align: right;
  transition: color 0.3s ease;
}

.iv-panel__close:hover {
  color: #111;
}

.iv-panel__inner {
  padding: 24px 36px 32px;
}

.iv-panel__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.iv-panel__dept {
  font-size: 0.72rem;
  font-weight: 600;
  color: #1a3a5c;
  background: rgba(37, 99, 235, 0.08);
  padding: 4px 14px;
  border-radius: 100px;
}

.iv-panel__year {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: #94a3b8;
}

.iv-panel__name {
  font-size: 1.6rem;
  font-weight: 900;
  color: #111;
  margin: 0 0 2px;
  font-family: 'Outfit', sans-serif;
}

.iv-panel__role {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.iv-panel__qa {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.iv-panel__q {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1a3a5c;
  margin-bottom: 6px;
  line-height: 1.5;
}

.iv-panel__q span {
  display: inline-block;
  color: #1a3a5c;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  margin-right: 8px;
}

.iv-panel__a {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.85;
  margin-bottom: 18px;
  padding-left: 20px;
  border-left: 2px solid rgba(37, 99, 235, 0.15);
}

.iv-panel__a:last-child {
  margin-bottom: 0;
}

/* ── Page Nav Cards ── */
.iv-nav-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.iv-nav-card {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  aspect-ratio: 4 / 3;
}

.iv-nav-card__img {
  width: 100%;
  height: 100%;
}

.iv-nav-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.iv-nav-card:hover .iv-nav-card__img img {
  transform: scale(1.06);
}

.iv-nav-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.1) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.iv-nav-card__label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.iv-nav-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

/* ── CTA ── */
.cta-section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.cta-section__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0f172a 0%, #1a365d 50%, #1e40af 100%);
  background-size: 200% 200%;
  animation: ivCtaGradient 8s ease-in-out infinite alternate;
  z-index: -1;
}

.cta-section__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
}

@keyframes ivCtaGradient {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.cta-section__content {
  text-align: center;
  color: #fff;
}

.cta-section__title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.6;
}

.cta-section__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Fade-in Animation ── */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Utilities ── */
.hide-sp { display: inline; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .iv-hero {
    min-height: 50vh;
  }

  .iv-hero__heading {
    font-size: 2.4rem;
  }

  .iv-film__frames {
    flex-wrap: wrap;
    gap: 4px;
  }

  .iv-film__frame {
    flex: 1 1 calc(50% - 4px);
    min-width: calc(50% - 4px);
    height: 36vh;
  }

  .iv-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    z-index: 100;
  }

  .iv-nav-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .iv-nav-card {
    aspect-ratio: 16 / 9;
  }

  .iv-hero__scroll {
    display: none;
  }

  .hide-sp { display: none; }
}

@media (max-width: 480px) {
  .iv-hero__heading {
    font-size: 2rem;
  }

  .iv-heading {
    font-size: 1.6rem;
  }

  .iv-film__frame {
    flex: 1 1 100%;
    min-width: 100%;
    height: 28vh;
  }

  .cta-section__title {
    font-size: 1.6rem;
  }
}
