/* ==========================================================================
   MV (REQUIREMENTS)
   ========================================================================== */

.req-mv {
  position: relative;
  height: 425px;
  border-bottom: 1px solid var(--color-gray-100);
  overflow: hidden;
}

.req-mv__logo {
  position: absolute;
  top: 50px;
  left: 50px;
  z-index: 3;
}

.req-mv__title {
  position: absolute;
  top: 180px;
  left: 120px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 2;
}

.req-mv__title-en {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 64px;
  letter-spacing: 2.56px;
  line-height: 1;
  color: var(--color-black);
}

.req-mv__title-jp {
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.8px;
  color: var(--color-black);
}

/* Blobs */
.req-mv__blob--1 {
  /* small green 80x65 */
  top: 360px;
  left: 560px;
  width: 80px;
  height: 65px;
  z-index: 0;
}

.req-mv__blob--2 {
  /* orange 240x196, rotated -scaleY rotate-180 */
  top: 280px;
  left: 1180px;
  width: 240px;
  height: 196px;
  transform: scaleX(-1);
  z-index: 0;
}

.req-mv__blob--3 {
  /* gray 160x131 */
  top: 0;
  left: 720px;
  width: 160px;
  height: 131px;
  z-index: 0;
}

/* ==========================================================================
   Lead
   ========================================================================== */

.req-lead {
  padding: 80px var(--section-padding-x) 100px;
  font-weight: 500;
  font-size: 20px;
  line-height: 36px;
  letter-spacing: 0.4px;
  color: var(--color-black);
}

.req-lead p {
  margin: 0 0 36px;
}

.req-lead p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Recruit Section
   ========================================================================== */

.recruit-page {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: clamp(24px, 3vw, 60px);
  padding: 0 0 0 clamp(32px, 5vw, 80px);
}

.recruit-anchor {
  position: sticky;
  top: 80px;
  /* 左1/4・右3/4の比率 */
  flex: 0 0 25%;
  width: 25%;
  display: flex;
  flex-direction: column;
}

.recruit-anchor__link {
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: 14px;
  line-height: 40px;
  letter-spacing: 0.28px;
  color: var(--color-black);
  opacity: 0.4;
  transition: opacity 0.2s ease;
}

.recruit-anchor__link:hover {
  opacity: 0.7;
}

.recruit-anchor__link.is-active {
  font-weight: 700;
  color: var(--color-red);
  opacity: 1;
}

.recruit-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 60px;
  padding-right: 0;
}

.job-card {
  background-color: var(--color-gray-200);
  border-top-left-radius: var(--radius-md);
  border-bottom-left-radius: var(--radius-md);
  padding: 60px 80px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.job-card__title {
  font-weight: 700;
  font-size: 36px;
  line-height: 1.4;
  letter-spacing: 0.72px;
  color: var(--color-black);
}

.job-table {
  border-top: 1px solid var(--color-gray-300);
}

.job-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 30px 0;
  border-bottom: 1px solid var(--color-gray-300);
  font-size: 16px;
  line-height: 30px;
  letter-spacing: 0.32px;
}

.job-row dt {
  flex: 0 0 160px;
  width: 160px;
  font-weight: 700;
  color: var(--color-black);
}

.job-row dd {
  flex: 0 0 560px;
  width: 560px;
  font-weight: 400;
  color: var(--color-black);
}

.job-list {
  list-style: disc;
  padding-left: 24px;
  margin: 0;
}

.job-list li {
  font-weight: 400;
  line-height: 30px;
}

.job-note {
  font-size: 12px;
  line-height: 20px;
  letter-spacing: 0.24px;
  margin-top: 10px;
}

.job-sublabel {
  margin-top: 15px;
  margin-bottom: 5px;
  font-weight: 700;
  font-size: 16px;
  line-height: 30px;
  letter-spacing: 0.32px;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq {
  border-top: 1px solid var(--color-gray-300);
  padding: 120px var(--section-padding-x) 120px;
}

.faq__title {
  margin-bottom: 60px;
}

.faq__list {
  max-width: 960px;
  margin: 0 auto;
  border-top: 1px solid var(--color-gray-300);
  list-style: none;
  padding: 0;
}

.faq-item {
  padding: 40px 0;
  border-bottom: 1px solid var(--color-gray-300);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item__q,
.faq-item__a {
  display: flex;
  gap: 20px;
  align-items: center;
}

.faq-item__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 20px;
  color: var(--color-white);
}

.faq-item__badge--q {
  background-color: var(--color-orange);
}

.faq-item__badge--a {
  background-color: var(--color-green);
}

.faq-item__text {
  flex: 1;
  font-size: 16px;
  line-height: 30px;
  letter-spacing: 0.32px;
  color: var(--color-black);
}

.faq-item__text--q {
  font-weight: 700;
}

/* ==========================================================================
   Responsive: Tablet (max 1023px)
   ========================================================================== */

@media (max-width: 1023px) {
  .req-mv {
    height: auto;
    min-height: 360px;
    padding: 120px 32px 60px;
  }

  .req-mv__logo {
    top: 24px;
    left: 24px;
  }

  .req-mv__title {
    position: relative;
    top: auto;
    left: auto;
  }

  .req-mv__title-en {
    font-size: 48px;
    letter-spacing: 1.5px;
  }

  .req-lead {
    padding: 48px 32px;
    font-size: 16px;
    line-height: 28px;
  }

  /* Recruit */
  .recruit-page {
    flex-direction: column;
    gap: 32px;
    padding: 0 32px;
  }

  .recruit-anchor {
    position: relative;
    top: auto;
    flex: 0 0 auto;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .recruit-anchor__link {
    line-height: 1.5;
    padding: 8px 0;
  }

  .recruit-content {
    width: 100%;
  }

  .job-card {
    padding: 40px 32px;
    border-radius: 20px;
  }

  .job-card__title {
    font-size: 28px;
  }

  .job-row {
    flex-direction: column;
    gap: 8px;
    padding: 24px 0;
  }

  .job-row dt {
    flex: 0 0 auto;
    width: 100%;
  }

  .job-row dd {
    flex: 0 0 auto;
    width: 100%;
  }

  /* FAQ */
  .faq {
    padding: 80px 32px;
  }

  .faq__list {
    max-width: 100%;
  }
}

/* ==========================================================================
   Responsive: Mobile (max 767px)
   ========================================================================== */

@media (max-width: 767px) {
  /* MV (Figma 100:969) */
  .req-mv {
    min-height: 280px;
    padding: 130px 20px 32px;
    overflow: visible;
  }

  .req-mv__logo {
    top: 14px;
    left: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .req-mv__logo .site-logo__img {
    width: 180px;
    height: auto;
  }

  .req-mv__logo .site-logo__sub {
    font-size: 11px;
  }

  .req-mv__title {
    gap: 10px;
  }

  .req-mv__title-en {
    font-size: 36px;
    letter-spacing: 1.5px;
  }

  .req-mv__title-jp {
    font-size: 16px;
  }

  /* MV blobs: Figma SP配置（楕円） */
  /* 白(blob--1) と 緑(blob--3) の位置を入れ替え */
  .req-mv__blob--1 {
    /* 白: 旧 blob--3 の位置 + 40px右 + 15px下 */
    top: auto;
    bottom: -11px;
    left: 88px;
    right: auto;
    width: 68px;
    height: 56px;
  }

  .req-mv__blob--2 {
    top: auto;
    bottom: -16px;
    left: auto;
    right: -36px;
    width: 150px;
    height: 123px;
  }

  .req-mv__blob--3 {
    /* 緑: 旧 blob--1 の位置 */
    top: 30px;
    left: auto;
    right: 64px;
    bottom: auto;
    width: 92px;
    height: 75px;
  }

  /* Lead */
  .req-lead {
    padding: 32px 20px;
    font-size: 15px;
    line-height: 28px;
  }

  .req-lead p {
    margin-bottom: 24px;
  }

  /* Recruit: SPはアンカー/ドット非表示、カードは全幅 */
  .recruit-page {
    padding: 0;
    gap: 0;
  }

  .recruit-anchor {
    display: none;
  }

  .recruit-content {
    gap: 20px;
  }

  .job-card {
    padding: 40px 20px;
    border-radius: var(--radius-md);
    gap: 0;
  }

  .job-card__title {
    font-size: 24px;
    line-height: 40px;
    letter-spacing: 0.48px;
    text-align: center;
    font-feature-settings: "palt";
  }

  .job-table {
    margin-top: 30px;
  }

  .job-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 30px 0;
  }

  .job-row:last-child {
    border-bottom: none;
  }

  .job-row dt,
  .job-row dd {
    width: 100%;
  }

  .job-row dt {
    font-size: 16px;
    line-height: 30px;
    font-weight: 700;
  }

  .job-row dd {
    font-size: 14px;
    line-height: 26px;
  }

  .job-list {
    padding-left: 21px;
  }

  .job-list li {
    font-size: 14px;
    line-height: 26px;
  }

  .job-note {
    font-size: 12px;
    line-height: 20px;
  }

  .job-sublabel {
    font-size: 14px;
    line-height: 26px;
  }

  /* FAQ (Figma 101:1264) */
  .faq {
    padding: 60px 20px;
  }

  .faq__title {
    margin-bottom: 40px;
  }

  .faq-item {
    padding: 30px 0;
    gap: 16px;
  }

  .faq-item__q,
  .faq-item__a {
    gap: 15px;
    align-items: flex-start;
  }

  .faq-item__badge {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .faq-item__text {
    font-size: 14px;
    line-height: 26px;
  }
}

/* =========================================================
   スクロール表示アニメーション（IntersectionObserver で .is-revealed 付与）
   ========================================================= */

/* req-lead: フェードイン */
.req-lead p {
  opacity: 0;
  transition: opacity 0.9s ease;
}
.req-lead.is-revealed p {
  opacity: 1;
}
.req-lead.is-revealed p:nth-child(1) { transition-delay: 0.1s; }
.req-lead.is-revealed p:nth-child(2) { transition-delay: 0.4s; }

/* recruit-anchor: 右からフェードイン（行ごとに0.5秒差） */
.recruit-anchor__link {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.recruit-anchor.is-revealed .recruit-anchor__link {
  opacity: 1;
  transform: none;
}
.recruit-anchor.is-revealed .recruit-anchor__link:nth-child(1) { transition-delay: 0.1s; }
.recruit-anchor.is-revealed .recruit-anchor__link:nth-child(2) { transition-delay: 0.4s; }
.recruit-anchor.is-revealed .recruit-anchor__link:nth-child(3) { transition-delay: 0.7s; }
.recruit-anchor.is-revealed .recruit-anchor__link:nth-child(4) { transition-delay: 1s; }

/* job-card: 右からフェードイン（タイトル→行ごとに0.3秒差）。カード単位で発火 */
.job-card__title,
.job-row {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.job-card.is-revealed .job-card__title {
  opacity: 1;
  transform: none;
  transition-delay: 0.1s;
}
.job-card.is-revealed .job-row {
  opacity: 1;
  transform: none;
}
.job-card.is-revealed .job-row:nth-child(1) { transition-delay: 0.3s; }
.job-card.is-revealed .job-row:nth-child(2) { transition-delay: 0.6s; }
.job-card.is-revealed .job-row:nth-child(3) { transition-delay: 0.9s; }
.job-card.is-revealed .job-row:nth-child(4) { transition-delay: 1.2s; }
.job-card.is-revealed .job-row:nth-child(5) { transition-delay: 1.5s; }
.job-card.is-revealed .job-row:nth-child(6) { transition-delay: 1.8s; }
.job-card.is-revealed .job-row:nth-child(7) { transition-delay: 2.1s; }
.job-card.is-revealed .job-row:nth-child(8) { transition-delay: 2.4s; }
.job-card.is-revealed .job-row:nth-child(9) { transition-delay: 2.7s; }
.job-card.is-revealed .job-row:nth-child(10) { transition-delay: 3s; }
