@charset "UTF-8";
/* ==========================================================================
   ALPHAZ — RECRUIT（page-recruit.php）
   --------------------------------------------------------------------------
   RECRUIT（page-recruit.php）        Figma: PC 175:9938（1440）/ SP 209:995（375）
   学生の方（page-recruit-student.php）Figma: PC 177:589（SP デザインなし）
   ヒーローは下層共通の .page-hero（common.css / 動きは motion.css）。

   01. Entry（社会人 / 学生 の入口カード）
   02. Entry motion（JS は assets/js/motion.js）
   03. Student（学生の方: 01〜03 のセクション）
   04. Student contact（04 CONTACT）
   05. Student motion
   ========================================================================== */

.recruit {
  --pad: max(20px, calc(108 * var(--s)));
  overflow-x: clip;
}

/* ==========================================================================
   01. Entry
   --------------------------------------------------------------------------
   カード = 写真（.recruit-entry__media）＋ 黒の半透明 ＋ 文字（.recruit-entry__body）
   募集していないカード（.is-closed）は Figma どおり写真を 10% まで薄めてグレーに
   ========================================================================== */
.recruit-entry {
  background: var(--c-white);
}

.recruit-entry__inner {
  max-width: calc(1440 * var(--s));
  margin: 0 auto;
  padding: calc(100 * var(--s)) var(--pad);
}

.recruit-entry__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.recruit-entry__item {
  position: relative;
  min-width: 0;
  /* 演出の黄色い帯・走査線をカードの枠で切る */
  overflow: hidden;
}

.recruit-entry__card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: max(180px, calc(290 * var(--s)));
  overflow: hidden;
  color: var(--c-white);
  isolation: isolate;
}

/* 写真 */
.recruit-entry__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.recruit-entry__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 黒の半透明（学生 40% / 社会人 20%） */
.recruit-entry__card::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.4);
  transition: background-color 0.5s ease;
  content: "";
}

.recruit-entry__item.is-closed .recruit-entry__card {
  background: var(--c-white);
}

.recruit-entry__item.is-closed .recruit-entry__img {
  opacity: 0.1;
}

.recruit-entry__item.is-closed .recruit-entry__card::after {
  background: rgba(0, 0, 0, 0.2);
}

/* 文字 */
.recruit-entry__body {
  display: flex;
  flex-direction: column;
  gap: calc(30 * var(--s));
  align-items: center;
  padding: 0 20px;
  text-align: center;
}

.recruit-entry__item.is-closed .recruit-entry__body {
  gap: calc(18 * var(--s));
}

.recruit-entry__title {
  font-size: max(20px, calc(30 * var(--s)));
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.recruit-entry__note,
.recruit-entry__more {
  font-size: max(13px, calc(16 * var(--s)));
  font-weight: 700;
  line-height: 1.875;
  font-feature-settings: "palt" 1;
  white-space: nowrap;
}

.recruit-entry__more {
  position: relative;
  display: inline-flex;
  gap: max(12px, calc(18 * var(--s)));
  align-items: center;
}

/* ホバーで伸びる黄色い下線 */
.recruit-entry__more::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.45s cubic-bezier(0.76, 0, 0.24, 1);
  content: "";
}

.recruit-entry__more .icon {
  flex-shrink: 0;
  width: max(14px, calc(16 * var(--s)));
  height: max(14px, calc(16 * var(--s)));
  color: var(--c-accent);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

a.recruit-entry__card:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: -3px;
}

/* ホバー（リンクのカードだけ）: 写真が寄る・少し明るく・下線が伸びて矢印が右へ */
@media (hover: hover) and (pointer: fine) {
  a.recruit-entry__card:hover .recruit-entry__media {
    transform: scale(1.06);
  }

  a.recruit-entry__card:hover::after {
    background-color: rgba(0, 0, 0, 0.25);
  }

  a.recruit-entry__card:hover .recruit-entry__more::after {
    transform: scaleX(1);
    transform-origin: left center;
  }

  a.recruit-entry__card:hover .recruit-entry__more .icon {
    transform: translateX(6px);
  }
}

/* SP: Figma 209:995 */
@media (max-width: 767px) {
  .recruit {
    --pad: 20px;
  }

  .recruit-entry__inner {
    padding: 48px var(--pad);
  }

  .recruit-entry__list {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .recruit-entry__card {
    height: 218px;
  }

  .recruit-entry__body,
  .recruit-entry__item.is-closed .recruit-entry__body {
    gap: 18px;
  }

  .recruit-entry__title {
    font-size: 30px;
  }

  .recruit-entry__note,
  .recruit-entry__more {
    font-size: 16px;
  }

  /* 矢印は Figma で文字との間 8px・10px 角（SVG の余白ぶん gap を詰める） */
  .recruit-entry__more {
    gap: 4px;
  }

  .recruit-entry__more .icon {
    width: 17px;
    height: 17px;
  }
}

/* ==========================================================================
   02. Entry motion
   --------------------------------------------------------------------------
   画面に入ったら最後まで一気に再生（スクロール量には連動しない・上に戻っても巻き戻らない）
   2枚目は 0.18s 遅れて同じ流れ。
     0.00s  黄色い帯が斜めに左から覆い、右へ抜ける（帯が覆った瞬間にカードが現れる）
     0.40s  写真: モノクロ＆寄りの状態から、色が戻りながら引いていく
     0.45s  縦の走査線がカードの上を左→右
     0.55s  見出し: 1文字ずつせり上がる
     0.95s  下の一文（募集状況 / 採用情報はこちらから）: 下からふわっと、矢印は左から
   ========================================================================== */
.recruit-entry__item {
  --d: calc(var(--i, 0) * 0.18s);
}

/* 黄色い帯（斜めの分だけ左右へ広げる） */
.recruit-entry__item::before {
  position: absolute;
  inset: 0 -15%;
  z-index: 2;
  background: var(--c-accent);
  opacity: 0;
  pointer-events: none;
  content: "";
}

.motion-ok .recruit-entry__item.is-inview::before {
  animation: m-sweep 0.9s cubic-bezier(0.76, 0, 0.24, 1) var(--d) both;
}

/* 縦の走査線 */
.recruit-entry__item::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(255, 242, 0, 0.9) 30%, #fff 50%, rgba(255, 242, 0, 0.9) 70%, transparent);
  box-shadow: 0 0 18px rgba(255, 242, 0, 0.7);
  opacity: 0;
  pointer-events: none;
  content: "";
}

.motion-ok .recruit-entry__item.is-inview::after {
  animation: recruit-scan 1s ease-in-out calc(0.45s + var(--d)) both;
}

@keyframes recruit-scan {
  0% {
    left: 0;
    opacity: 0;
  }

  15% {
    opacity: 0.9;
  }

  85% {
    opacity: 0.6;
  }

  100% {
    left: 100%;
    opacity: 0;
  }
}

/* カード本体（帯が覆いきった瞬間に出す） */
.motion-ok .recruit-entry__item[data-inview] .recruit-entry__card {
  opacity: 0;
}

.motion-ok .recruit-entry__item.is-inview .recruit-entry__card {
  animation: recruit-appear 0.01s linear calc(0.4s + var(--d)) both;
}

@keyframes recruit-appear {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* 写真 */
.motion-ok .recruit-entry__item[data-inview] .recruit-entry__img {
  filter: grayscale(1) contrast(1.3);
  transform: scale(1.25);
}

.motion-ok .recruit-entry__item.is-inview .recruit-entry__img {
  filter: none;
  transform: none;
  transition:
    filter 1.4s ease calc(0.6s + var(--d)),
    transform 1.8s cubic-bezier(0.16, 1, 0.3, 1) calc(0.4s + var(--d));
}

/* 見出し（1文字ずつ） */
.recruit-entry__title {
  /* せり上がる文字のマスク */
  clip-path: inset(-30% -5% -10% -5%);
}

.motion-ok .recruit-entry__item[data-inview] .recruit-entry__title .m-letter {
  transform: translateY(110%);
}

.motion-ok .recruit-entry__item.is-inview .recruit-entry__title .m-letter {
  transform: none;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) calc(0.55s + var(--d) + var(--i) * 0.035s);
}

/* 下の一文 */
.motion-ok .recruit-entry__item[data-inview] :is(.recruit-entry__note, .recruit-entry__more-text) {
  opacity: 0;
  transform: translateY(12px);
}

.motion-ok .recruit-entry__item.is-inview :is(.recruit-entry__note, .recruit-entry__more-text) {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.6s ease calc(0.95s + var(--d)),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) calc(0.95s + var(--d));
}

/* 矢印（表示が済んだら transition をホバー用に戻す） */
.motion-ok .recruit-entry__item[data-inview]:not(.is-inview) .recruit-entry__more .icon {
  opacity: 0;
  transform: translateX(-16px);
}

.motion-ok .recruit-entry__item.is-inview .recruit-entry__more .icon {
  animation: recruit-arrow-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) calc(1.1s + var(--d)) backwards;
}

@keyframes recruit-arrow-in {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   03. Student
   --------------------------------------------------------------------------
   セクション = 見出し（上に線・左に英字・右に番号）→ 本文（左に見出し・右に文章）→ 写真
   色: --light 白 / --accent 黄 / --dark 黒
   写真は Figma どおり mix-blend-mode: luminosity（明るさだけ写真、色は背景）。
   → 白・黒の上ではモノクロ、黄の上では黄色っぽくなる。
     枠（.student-sec__photo）に背景と同じ色を敷いているのは、演出で枠が独立した層になっても
     同じ見た目になるようにするため。
   日本語の見出し・本文は Figma で上下の余白を切り詰めている（文字の上端・下端で組む）ので、
   同じ位置になるよう負の margin で詰める。
   ========================================================================== */
.student-sec {
  --sec-bg: var(--c-white);
  --sec-fg: var(--c-black);
  --sec-line: #bfbfbf;
  /* 写真の演出の帯の色 */
  --sec-band: var(--c-accent);
  background: var(--sec-bg);
  color: var(--sec-fg);
}

.student-sec--accent {
  --sec-bg: var(--c-accent);
  --sec-band: var(--c-black);
}

.student-sec--dark {
  --sec-bg: var(--c-black);
  --sec-fg: var(--c-white);
}

.student-sec__inner {
  max-width: calc(1440 * var(--s));
  margin: 0 auto;
  padding: calc(100 * var(--s)) var(--pad);
}

/* 見出し */
.student-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(24 * var(--s));
  height: calc(73 * var(--s));
}

/* 上の線（伸びる演出のため疑似要素で引く） */
.student-head::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--sec-line);
  transform-origin: left center;
  content: "";
}

.student-head__title {
  position: relative;
  top: 0.052em;
  font-family: var(--font-en);
  font-size: max(13px, calc(50 * var(--s)));
  line-height: 0.7;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.student-sec--light .student-head__title {
  color: #050505;
}

.student-head__num {
  font-family: var(--font-en);
  font-size: max(13px, calc(20 * var(--s)));
  line-height: 0.9;
  letter-spacing: 0.135em;
}

/* 本文（Figma: 見出しと文章は上揃え。その1行が高さ 243 の枠の中で上下中央） */
.student-sec__body {
  display: flex;
  flex-wrap: wrap;
  gap: calc(40 * var(--s));
  align-content: center;
  align-items: flex-start;
  justify-content: space-between;
  min-height: calc(243 * var(--s));
  margin-top: calc(70 * var(--s));
}

.student-sec__heading {
  /* 上下の余白を切り詰め（Noto Sans JP の行の高さ 1.448 → 英字の上端〜下端） */
  margin: -0.427em 0 -0.288em;
  font-size: max(24px, calc(50 * var(--s)));
  font-weight: 800;
  line-height: 1.448;
  white-space: nowrap;
}

.student-sec__text {
  flex-shrink: 0;
  /* 見出し 4：本文 6（Figma は本文の幅 515。原稿が長いので左へ広げた。2026-10-29 ジョニー指示） */
  width: calc((100% - 40 * var(--s)) * 0.6);
  margin: -0.604em 0 -0.464em;
  /* Figma は 25px。原稿が長く入りきらないので小さくしている（2026-10-29 ジョニー了承） */
  font-size: max(14px, calc(20 * var(--s)));
  font-weight: 700;
  line-height: 1.8;
  font-feature-settings: "palt" 1;
}

/* 段落の間（原稿の空行） */
.student-sec__text > p + p {
  margin-top: 0.9em;
}

/* 区切りのいい位置での改行（page-recruit-student.php の [pc]）。
   1行 34 文字で組んでいるので、収まる 1024px 以上だけ効かせる。それより狭い画面は自動の折り返し */
@media (max-width: 1023px) {
  .student-sec__br {
    display: none;
  }
}

/* 写真 */
.student-sec__photo {
  position: relative;
  height: calc(350 * var(--s));
  margin-top: calc(70 * var(--s));
  overflow: hidden;
  background: var(--sec-bg);
}

.student-sec__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Figma の切り抜き位置に合わせる（縦の位置） */
  object-position: 50% 38%;
  mix-blend-mode: luminosity;
}

.student-sec--accent .student-sec__img {
  object-position: 50% 25%;
}

.student-sec--dark .student-sec__img {
  object-position: 50% 5%;
  /* Figma ではこの写真だけ少し寄っている（演出の transform とは別に scale で） */
  scale: 1.15;
}

@media (max-width: 767px) {
  .student-sec__inner {
    padding: 64px var(--pad);
  }

  .student-head {
    height: auto;
    padding-top: 20px;
  }

  /* 一番長い「WHY WE HIRE LONG-TERM INTERNS」が 1行に収まる大きさ（375px で 26px、320px でも番号がはみ出さない） */
  .student-head__title {
    top: 0;
    font-size: min(26px, 6.9vw);
    line-height: 1.2;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .student-head__num {
    font-size: 16px;
    line-height: 1.2;
  }

  .student-sec__body {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    min-height: 0;
    margin-top: 32px;
  }

  .student-sec__heading {
    margin: 0;
    font-size: 28px;
    line-height: 1.45;
  }

  .student-sec__text {
    width: auto;
    margin: 0;
    font-size: 16px;
    line-height: 1.9;
  }

  .student-sec__photo {
    height: 200px;
    margin-top: 32px;
  }
}

/* ==========================================================================
   04. Student contact
   --------------------------------------------------------------------------
   Figma: 黄色いマーカーの「お問い合わせ」（左）と黒いボタン（右）。下揃え
   ========================================================================== */
.student-contact__body {
  display: flex;
  gap: calc(40 * var(--s));
  align-items: center;
  justify-content: space-between;
  margin-top: calc(164.5 * var(--s));
}

.student-contact__heading {
  display: flex;
  font-size: max(24px, calc(50 * var(--s)));
  font-weight: 800;
}

/*
 * マーカー（黄色の帯。伸びる演出のため疑似要素で敷く）
 * Figma: 文字の上端〜下端（37px）＋上下 6px = 高さ 49px。
 * 行の高さを 0.74em（= 37px）に詰め、ベースラインが Figma と揃うよう上下の余白を配分。
 */
.student-contact__marker {
  position: relative;
  display: inline-block;
  padding: 0.054em 0 0.186em;
  line-height: 0.74;
  isolation: isolate;
}

.student-contact__marker::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--c-accent);
  transform-origin: left center;
  content: "";
}

@media (max-width: 767px) {
  .student-contact__body {
    flex-direction: column;
    gap: 32px;
    align-items: stretch;
    margin-top: 40px;
  }

  .student-contact__heading {
    font-size: 28px;
  }

  .student-contact__marker {
    padding: 0.054em 0.08em 0.186em;
  }
}

/* ==========================================================================
   05. Student motion
   --------------------------------------------------------------------------
   画面に入ったら最後まで一気に再生（上に戻っても巻き戻らない）
     見出し: 線が左から伸びる → 英字が1文字ずつせり上がる → 番号がぼかしから
     本文  : 日本語の見出しが1文字ずつせり上がる → 文章が下からふわっと
     写真  : 帯（白・黒の上は黄色、黄の上は黒）が斜めに覆って抜ける → 写真が引きながら現れる
     CONTACT: 黄色いマーカーが左から引かれる → 文字がせり上がる → ボタン
   ========================================================================== */

/* ---- 見出し ------------------------------------------------------------- */
.motion-ok .student-head::before {
  transform: scaleX(0);
}

.motion-ok .student-head.is-inview::before {
  transform: none;
  transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1);
}

/* せり上がる文字のマスク */
.student-head__title {
  clip-path: inset(-30% -5% -8% -5%);
}


.motion-ok .student-head:not(.is-inview) .m-letter {
  transform: translateY(150%);
}

.motion-ok .student-head.is-inview .m-letter {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) calc(0.15s + var(--i) * 0.03s);
}

.motion-ok .student-head:not(.is-inview) .student-head__num {
  opacity: 0;
  filter: blur(4px);
  transform: translateX(12px);
}

.motion-ok .student-head.is-inview .student-head__num {
  transition:
    opacity 0.7s ease 0.5s,
    filter 0.7s ease 0.5s,
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
}

/* ---- 本文 --------------------------------------------------------------- */
/* 複数行なので行ごとのマスクは使わず、下からふわっと＋ぼかしから */
.motion-ok .student-sec__body:not(.is-inview) .student-sec__heading .m-letter {
  opacity: 0;
  filter: blur(6px);
  transform: translateY(40%);
}

.motion-ok .student-sec__body.is-inview .student-sec__heading .m-letter {
  transition:
    opacity 0.5s ease calc(var(--i) * 0.04s),
    filter 0.6s ease calc(var(--i) * 0.04s),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--i) * 0.04s);
}

.motion-ok .student-sec__body:not(.is-inview) .student-sec__text {
  opacity: 0;
  transform: translateY(calc(24 * var(--s)));
}

.motion-ok .student-sec__body.is-inview .student-sec__text {
  transition:
    opacity 0.9s ease 0.35s,
    transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.35s;
}

/* ---- 写真 --------------------------------------------------------------- */
.student-sec__photo::after {
  position: absolute;
  inset: 0 -10%;
  z-index: 1;
  background: var(--sec-band);
  opacity: 0;
  pointer-events: none;
  content: "";
}

.motion-ok .student-sec__photo.is-inview::after {
  animation: m-sweep 1.1s cubic-bezier(0.76, 0, 0.24, 1) both;
}

.motion-ok .student-sec__photo:not(.is-inview) .student-sec__img {
  opacity: 0;
  transform: scale(1.25);
}

.motion-ok .student-sec__photo.is-inview .student-sec__img {
  animation: recruit-appear 0.01s linear 0.5s both;
  transition: transform 2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
}

/* ---- CONTACT ------------------------------------------------------------ */
.motion-ok .student-contact__body:not(.is-inview) .student-contact__marker::before {
  transform: scaleX(0);
}

.motion-ok .student-contact__body.is-inview .student-contact__marker::before {
  transition: transform 0.7s cubic-bezier(0.76, 0, 0.24, 1);
}

.motion-ok .student-contact__body:not(.is-inview) .student-contact__marker .m-letter {
  opacity: 0;
  transform: translateY(60%);
}

.motion-ok .student-contact__body.is-inview .student-contact__marker .m-letter {
  transition:
    opacity 0.4s ease calc(0.35s + var(--i) * 0.05s),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) calc(0.35s + var(--i) * 0.05s);
}

.motion-ok .student-contact__body:not(.is-inview) .c-btn {
  opacity: 0;
  transform: translateY(calc(16 * var(--s)));
}

.motion-ok .student-contact__body.is-inview .c-btn {
  transition:
    opacity 0.7s ease 0.6s,
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.6s,
    background-color var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out);
}
