/* ==========================================================================
   MV (ENVIRONMENT)
   ========================================================================== */

.env-mv {
  position: relative;
  height: 1040px;
  overflow: hidden;
  z-index: 2;
}

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

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

.env-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);
}

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

.env-mv__photo {
  position: absolute;
  top: 480px;
  left: 0;
  width: 1210px;
  height: 560px;
  border-top-right-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
  overflow: hidden;
  z-index: 1;
}

.env-mv__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.env-mv__blob--1 {
  /* 240x196 orange at top left=720 top=-20 */
  top: -20px;
  left: 720px;
  width: 240px;
  height: 196px;
  z-index: 0;
}

.env-mv__blob--2 {
  /* 80x65 red rotated, left=980 top=330 */
  top: 330px;
  left: 980px;
  width: 80px;
  height: 65px;
  transform: rotate(180deg);
  z-index: 0;
}

/* ==========================================================================
   Advantage
   ========================================================================== */

.advantage {
  position: relative;
  padding: 120px 0 0;
  z-index: 1;
}

.advantage__title {
  position: relative;
  padding-left: 120px;
  margin-bottom: 30px;
  z-index: 2;
}

.advantage__lead {
  position: relative;
  padding-left: 120px;
  font-weight: 500;
  font-size: 20px;
  line-height: 36px;
  letter-spacing: 0.4px;
  color: var(--color-black);
  margin-bottom: 100px;
  z-index: 2;
}

.advantage__blob--1 {
  /* Small gray blob below lead */
  top: 230px;
  left: 680px;
  width: 160px;
  height: 131px;
  transform: scaleX(-1);
  z-index: 0;
}

.advantage__blob--2 {
  /* Big green blob top-right of section */
  top: -50px;
  left: 1050px;
  width: 400px;
  height: 327px;
  z-index: 2;
}

/* ==========================================================================
   Adv Item (3 cards)
   ========================================================================== */

.adv-item {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(60px, 8vw, 100px) clamp(32px, 8vw, 120px);
  border-top-left-radius: var(--radius-xl);
  overflow: hidden;
  z-index: 1;
}

.adv-item--beige {
  background-color: var(--color-beige);
  padding-top: 70px;
  padding-bottom: 70px;
}

.adv-item--white {
  background-color: var(--color-white);
  padding-top: 80px;
  padding-bottom: 80px;
}

.adv-item__img {
  /* 画像は幅40%・正方形 */
  flex: 0 0 40%;
  width: 40%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.adv-item__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.adv-item__content {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
}

.adv-item__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}

.adv-item__icon {
  width: 80px;
  height: 80px;
}

.adv-item__title {
  font-weight: 700;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.4;
  letter-spacing: 1.44px;
  color: var(--color-black);
}

.adv-item__body {
  width: 100%;
}

.adv-item__body p {
  font-weight: 400;
  font-size: clamp(14px, 1.25vw, 16px);
  line-height: 1.875;
  letter-spacing: 0.32px;
  color: var(--color-black);
  margin: 0;
}

.adv-item__body p:last-child {
  margin-bottom: 0;
}

.adv-item__list {
  list-style: disc;
  padding-left: 24px;
  margin: 0;
  width: 100%;
}

.adv-item__list li {
  font-weight: 400;
  font-size: clamp(14px, 1.25vw, 16px);
  line-height: 1.875;
  letter-spacing: 0.32px;
  color: var(--color-black);
}

.adv-item__list li + li {
  margin-top: 5px;
}

/* ==========================================================================
   Benefit (福利厚生)
   ========================================================================== */

.benefit {
  position: relative;
  padding: 120px var(--section-padding-x) 120px;
  text-align: center;
  z-index: 1;
}

.benefit__title {
  font-weight: 700;
  font-size: 36px;
  line-height: 1.4;
  letter-spacing: 1.44px;
  color: var(--color-black);
  margin-bottom: 60px;
}

.benefit__list {
  display: flex;
  gap: 8px;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefit__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 180px;
}

.benefit__icon {
  width: 80px;
  height: 80px;
}

.benefit__text {
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.32px;
  color: var(--color-black);
  text-align: center;
}

/* ==========================================================================
   Evaluation
   ========================================================================== */

.evaluation {
  position: relative;
  background-color: var(--color-gray-200);
  padding: 120px 0 150px;
  overflow: hidden;
}

.evaluation__title {
  margin-bottom: 80px;
}

.eval-wide {
  position: relative;
  display: flex;
  align-items: center;
  gap: 60px;
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 60px;
  max-width: 1120px;
  margin: 0 auto 50px;
}

.eval-wide__txt {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.eval-wide__title {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: 0.48px;
  color: var(--color-black);
}

.eval-wide__body {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.eval-wide__body p {
  font-weight: 400;
  font-size: 16px;
  line-height: 30px;
  letter-spacing: 0.32px;
  color: var(--color-black);
  margin: 0;
}

.eval-wide__figures {
  display: flex;
  gap: 40px;
  flex: 0 0 460px;
  align-items: flex-end;
  justify-content: center;
}

.eval-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 200px;
  text-align: center;
}

.eval-figure__img {
  width: auto;
  max-width: 100%;
  height: 160px;
  object-fit: contain;
}

.eval-figure__label {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.4px;
  color: var(--color-black);
}

.eval-figure__desc {
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.28px;
  color: var(--color-black);
}

.eval-cards {
  display: flex;
  gap: 40px;
  justify-content: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--section-padding-x);
}

.eval-card {
  flex: 0 0 540px;
  width: 540px;
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 60px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.eval-card__title {
  font-weight: 700;
  font-size: 24px;
  line-height: 36px;
  letter-spacing: 0.48px;
  color: var(--color-black);
}

.eval-card__body {
  font-weight: 400;
  font-size: 16px;
  line-height: 30px;
  letter-spacing: 0.32px;
  color: var(--color-black);
}

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

@media (max-width: 1023px) {
  /* MV */
  .env-mv {
    height: auto;
    min-height: 700px;
    padding-bottom: 40px;
  }

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

  .env-mv__title {
    position: relative;
    top: auto;
    left: auto;
    padding: 140px 32px 32px;
  }

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

  .env-mv__photo {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: 320px;
    border-radius: 0;
  }

  /* Advantage */
  .advantage {
    padding: 80px 0 0;
  }

  .advantage__title,
  .advantage__lead {
    padding-left: 32px;
    padding-right: 32px;
  }

  /* Adv Item Cards は 768px まで横並び維持（縦積みは max-width:768px で実施） */

  /* Benefit */
  .benefit {
    padding: 80px 32px;
  }

  .benefit__title {
    font-size: 28px;
  }

  .benefit__list {
    flex-wrap: wrap;
    gap: 20px 8px;
    justify-content: center;
  }

  .benefit__item {
    width: calc(50% - 8px);
    max-width: 180px;
  }

  /* Evaluation */
  .evaluation {
    padding: 80px 0 100px;
  }

  .eval-wide {
    flex-direction: column;
    gap: 32px;
    padding: 40px 32px;
    margin: 0 32px 32px;
    max-width: 100%;
  }

  .eval-wide__figures {
    flex: 0 0 auto;
  }

  .eval-cards {
    flex-direction: column;
    gap: 24px;
    padding: 0 32px;
    max-width: 100%;
  }

  .eval-card {
    flex: 0 0 auto;
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    padding: 40px 32px;
  }
}

/* ==========================================================================
   Responsive: 横並び→縦積み切替（768px以下）
   画像＋文章のセクションは 768px 以下で画像上・文章下の縦積みにする
   ========================================================================== */

@media (max-width: 768px) {
  .adv-item {
    flex-direction: column;
  }
  .adv-item__img,
  .adv-item__content {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
  }
}

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

@media (max-width: 767px) {
  /* ===== MV (Figma 100:825) ===== */
  .env-mv {
    min-height: auto;
    padding-bottom: 0;
  }

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

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

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

  .env-mv__title {
    padding: 126px 20px 60px;
    gap: 10px;
  }

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

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

  .env-mv__photo {
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .env-mv__blob--1 {
    /* orange ellipse: Figma SP 値（120x98） + 既存ユーザー回転を維持 */
    top: 70px;
    left: 150px;
    width: 120px;
    height: 98px;
    transform: rotate(230deg);
  }

  .env-mv__blob--2 {
    /* red ellipse: top:169 / right:20、既存ユーザー回転を維持 */
    top: 169px;
    left: auto;
    right: 20px;
    width: 60px;
    height: 49px;
    transform: rotate(195deg);
    z-index: 2;
  }

  /* ===== Advantage ===== */
  .advantage {
    padding: 64px 0 0;
  }

  .advantage__title {
    align-items: center;
    text-align: center;
    padding: 0 20px;
    margin-bottom: 16px;
  }

  .advantage__lead {
    padding: 0 20px;
    margin-bottom: 48px;
    font-weight: 400;
    font-size: 14px;
    line-height: 26px;
    text-align: center;
  }

  /* SP: Figma SP 値に合わせて配置 */
  .advantage__blob--2 {
    /* 緑: 右上から半分はみ出し (200x164 / left:280 → 390-280-200=-90) */
    top: -80px;
    left: auto;
    right: -90px;
    width: 200px;
    height: 164px;
    z-index: 2;
  }

  .advantage__blob--1 {
    /* グレー: ADVANTAGES タイトル下の左寄り (80x65 / top:160 / left:-10) + 右に30度回転 */
    top: 160px;
    left: -10px;
    width: 80px;
    height: 65px;
    transform: rotate(30deg);
    z-index: 0;
  }

  /* Adv item: SPも背景色は維持（beige / white 交互）、縦積み・中央寄せ */
  .adv-item {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 40px 20px;
    border-radius: 0;
  }

  /* 魅力2（白）を魅力1 の下に 30px 重ねて表示 */
  .adv-item--white {
    margin-top: -30px;
    position: relative;
    z-index: 1;
  }

  /* 魅力3（最後の beige）を魅力2 の下に 30px 重ねて表示 */
  .adv-item--beige:last-of-type {
    margin-top: -30px;
    position: relative;
    z-index: 2;
  }

  /* beige 項目（魅力1, 魅力3）と魅力2（white）の下余白を 100px に */
  .adv-item--beige,
  .adv-item--white {
    padding-bottom: 100px;
  }

  /* 全ての魅力項目の左上を 60px 角丸 */
  .adv-item {
    border-top-left-radius: 60px;
  }

  .adv-item__img {
    flex: 0 0 auto;
    width: 100%;
    max-width: 350px;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-md);
    margin: 0 auto;
  }

  .adv-item__content {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    gap: 20px;
    align-items: center;
  }

  .adv-item__head {
    align-items: center;
    gap: 16px;
  }

  .adv-item__icon {
    width: 60px;
    height: 60px;
  }

  .adv-item__title {
    font-size: 22px;
    letter-spacing: 0.88px;
    text-align: center;
  }

  .adv-item__body,
  .adv-item__list {
    width: 100%;
  }

  .adv-item__body p,
  .adv-item__list li {
    font-size: 14px;
    line-height: 26px;
  }

  .adv-item__body p {
    margin-bottom: 0;
  }

  .adv-item__list {
    padding-left: 21px;
  }

  /* Benefit: SPは3カラム */
  .benefit {
    padding: 56px 20px 64px;
  }

  .benefit__title {
    font-size: 20px;
    line-height: 1.5;
    letter-spacing: 0.8px;
    margin-bottom: 32px;
  }

  .benefit__list {
    flex-wrap: wrap;
    gap: 24px 0;
  }

  .benefit__item {
    width: 33.333%;
    max-width: none;
    gap: 12px;
  }

  .benefit__icon {
    width: 60px;
    height: 60px;
  }

  .benefit__text {
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 0;
  }

  /* ===== Evaluation ===== */
  .evaluation {
    padding: 56px 0 64px;
    margin-bottom: 80px;
  }

  .evaluation__title {
    margin-bottom: 40px;
  }

  .eval-wide {
    flex-direction: column;
    gap: 28px;
    margin: 0 20px 20px;
    padding: 32px 20px;
  }

  .eval-wide__title {
    font-size: 18px;
    line-height: 1.5;
    text-align: center;
  }

  .eval-wide__body {
    gap: 20px;
  }

  .eval-wide__body p {
    font-size: 14px;
    line-height: 26px;
  }

  .eval-wide__figures {
    flex: 0 0 auto;
    width: 100%;
    gap: 20px;
    flex-wrap: nowrap;
  }

  .eval-figure {
    width: 50%;
    gap: 10px;
  }

  .eval-figure__img {
    height: 140px;
  }

  .eval-figure__label {
    font-size: 16px;
  }

  .eval-figure__desc {
    font-size: 13px;
    line-height: 22px;
  }

  .eval-cards {
    flex-direction: column;
    gap: 20px;
    padding: 0 20px;
  }

  .eval-card {
    width: 100%;
    max-width: none;
    padding: 32px 20px;
  }

  .eval-card__title {
    font-size: 18px;
    line-height: 1.6;
    text-align: center;
  }

  .eval-card__body {
    font-size: 14px;
    line-height: 26px;
  }
}

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

/* advantage タイトル・リード: フェードイン */
.advantage__title,
.advantage__lead {
  opacity: 0;
  transition: opacity 0.9s ease;
}
.advantage.is-revealed .advantage__title {
  opacity: 1;
  transition-delay: 0.1s;
}
.advantage.is-revealed .advantage__lead {
  opacity: 1;
  transition-delay: 0.3s;
}

/* adv-item: beige=右から / white=左から スライドイン */
.adv-item {
  opacity: 0;
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.adv-item--beige {
  transform: translateX(90px);
}
.adv-item--white {
  transform: translateX(-90px);
}
.adv-item.is-revealed {
  opacity: 1;
  transform: none;
}

/* 福利厚生: 見出し→アイコンを左から順にフェードイン */
.benefit__title {
  opacity: 0;
  transition: opacity 0.9s ease;
}
.benefit.is-revealed .benefit__title {
  opacity: 1;
}
.benefit__item {
  opacity: 0;
  transition: opacity 0.7s ease;
}
.benefit.is-revealed .benefit__item {
  opacity: 1;
}
.benefit.is-revealed .benefit__item:nth-child(1) { transition-delay: 0.15s; }
.benefit.is-revealed .benefit__item:nth-child(2) { transition-delay: 0.3s; }
.benefit.is-revealed .benefit__item:nth-child(3) { transition-delay: 0.45s; }
.benefit.is-revealed .benefit__item:nth-child(4) { transition-delay: 0.6s; }
.benefit.is-revealed .benefit__item:nth-child(5) { transition-delay: 0.75s; }
.benefit.is-revealed .benefit__item:nth-child(6) { transition-delay: 0.9s; }

/* 公平な評価制度: 全てフェードイン */
.evaluation__title,
.eval-wide,
.eval-card {
  opacity: 0;
  transition: opacity 0.9s ease;
}
.evaluation.is-revealed .evaluation__title {
  opacity: 1;
  transition-delay: 0.1s;
}
.eval-wide.is-revealed {
  opacity: 1;
}
.eval-card.is-revealed {
  opacity: 1;
}
