/* ============================================================
   募集要項 個別ページ — recruit.css
   Figma node 68:588 準拠
   ============================================================ */

/* ============================================================
   ① MV — secondary-mv 共通パターンに統一
   recruit 固有の override のみ記述
   ============================================================ */
.secondary-mv--recruit .secondary-mv__title-logo {
  /* Figma: 135:877 Recruit 1 — w:349 h:77
     ロゴ y:-92, 下端-15 / タイトル y:-55 → overlap=40px */
  max-width: 349px;
  margin-bottom: -40px;
}


/* ============================================================
   ② キャッチコピー + メイン写真
   Figma: 68:592 (catch) + 68:740 (photo mask group)
   ============================================================ */
.recruit-catch {
  padding: 60px 0 0;
  background: var(--color-bg);
}

.recruit-catch__inner {
  /* Figma: catch text left-aligned, photo below */
}

.recruit-catch__copy {
  /* Figma: fs:32 fw:400 lh:52 ls:2.56 #1556a6 */
  font-size: 32px;
  font-weight: 400;
  line-height: 52px;
  letter-spacing: 2.56px;
  color: #1556A6;
  margin-bottom: 40px;
}

.recruit-catch__photo {
  /* Figma: w:1000 h:360 radius:10 mask */
  max-width: 1000px;
  height: auto;
  border-radius: 10px;
  overflow: hidden;
}

.recruit-catch__photo img {
  width: 100%;
  aspect-ratio: 1000 / 360;
  /* Figma: w:1000 h:360 */
  object-fit: cover;
  object-position: center 24%;
  /* Figma: 画像y:280 マスクy:355 → 上端75px切り */
  display: block;
}


/* ============================================================
   ③ 紹介文
   Figma: 68:599 — fs:16 fw:400 lh:25 ls:1.28 #333 w:1000
   ============================================================ */
.recruit-intro {
  padding: 40px 0 0;
  background: var(--color-bg);
}

.recruit-intro__body {
  max-width: var(--content-width);
  /* 1000px */
  margin: 0 auto;
  font-size: 16px;
  font-weight: 400;
  line-height: 25px;
  letter-spacing: 1.28px;
  color: #333333;
}

.recruit-intro__body p {
  margin-bottom: 25px;
}

.recruit-intro__body p:last-child {
  margin-bottom: 0;
}


/* ============================================================
   ④ 先輩の声 + インタビュー動画（統合セクション）
   Figma: 68:590 Rectangle 7 #EEF8FF y:1218 h:1380 radii:0,50,0,50
          背景がvoice heading〜YouTube動画まで全てを包含
   ============================================================ */
.recruit-voice {
  padding: 60px 0;
  background: var(--color-bg);
}

/* Rectangle 7 — #EEF8FF, 1200px, radii: 0 50 0 50 */
.recruit-voice__bg {
  max-width: 1200px;
  margin: 0 auto;
  background: #EEF8FF;
  border-radius: 0 50px 0 50px;
  padding: 60px 0;
}

.recruit-voice__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
  text-align: center;
  /* 全要素中央揃え */
}

/* Figma: 68:745 — fs:32 fw:400 lh:52 ls:2.56 #1556a6 中央揃え
   PC x:10058 w:723 → (1440-723)/2=358.5 = centered */
.recruit-voice__heading {
  font-size: 32px;
  font-weight: 400;
  line-height: 52px;
  letter-spacing: 2.56px;
  color: #1556A6;
  margin-bottom: 30px;
  text-align: center;
}

/* Figma: 70:786 — w:1000 h:360 radius:10 中央 */
.recruit-voice__photo {
  max-width: 1000px;
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto 30px;
}

.recruit-voice__photo img {
  width: 100%;
  aspect-ratio: 1000 / 360;
  /* Figma: w:1000 h:360 */
  object-fit: cover;
  display: block;
}

/* ボタンラッパー: 中央揃え */
.recruit-voice__btn-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

/* Figma: 70:771 Component 4 — w:300 h:50 r:25 bg:#1556a6
   TOPページ top-message__btn と同一スタイル */
.recruit-voice__btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 300px;
  height: 50px;
  padding: 0 24px;
  background: #1556A6;
  border-radius: 25px;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  transition: background 0.3s ease;
}

.recruit-voice__btn:hover {
  background: #333;
  color: #FFFFFF;
}

.recruit-voice__btn-icon {
  display: inline-flex;
  align-items: center;
}

.recruit-voice__btn-icon svg path {
  transition: stroke 0.3s ease;
}

/* --- インタビュー動画（統合セクション内） ---
   Figma: 70:783 icon + 70:782 label + 70:780 video */

/* Figma: 70:782 — fs:24 fw:400 lh:46 ls:0.96 #1556a6 中央 */
.recruit-video__label {
  display: flex;
  align-items: center;
  justify-content: center;
  /* 中央揃え */
  gap: 10px;
  font-size: 24px;
  font-weight: 400;
  line-height: 46px;
  letter-spacing: 0.96px;
  color: #1556A6;
  margin-bottom: 20px;
}

/* Figma: 70:783 icon 1 — w:39 h:20 */
.recruit-video__icon {
  width: 39px;
  height: 20px;
  flex-shrink: 0;
}

/* Figma: 70:780 — w:574 中央 (YouTube 16:9) */
.recruit-video__embed {
  width: 100%;
  max-width: 574px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  margin: 0 auto;
  /* 中央配置 */
}

.recruit-video__embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}


/* ============================================================
   ⑥ 募集要項テーブル
   Figma: 68:655 (heading) + 68:613 (table frame w:750)
   ============================================================ */
.recruit-table {
  padding: 60px 0;
  background: var(--color-bg);
}

.recruit-table__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

/* Figma: 68:655 — fs:32 fw:400 lh:52 ls:2.56 #1556a6 左寄せ */
.recruit-table__heading {
  font-size: 32px;
  font-weight: 400;
  line-height: 52px;
  letter-spacing: 2.56px;
  color: #1556A6;
  max-width: 900px;
  margin: 0 auto 30px;
}

/* Figma: Frame 16 — w:750 layout:VERTICAL (clinic-info__table と同一) */
.recruit-table__table {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-collapse: collapse;
}

.recruit-table__table tr {
  border-bottom: 1px solid #333;
}

/* Figma: th fs:16 fw:700 ls:1.28 / td fs:16 fw:400 ls:1.28 */
.recruit-table__table th,
.recruit-table__table td {
  text-align: left;
  font-size: 16px;
  letter-spacing: 1.28px;
  line-height: 24px;
  color: #333;
}

.recruit-table__table th {
  padding: 10px 20px;
  width: auto;
  font-weight: 700;
  vertical-align: middle;
  white-space: nowrap;
}

.recruit-table__table td {
  padding: 24px 30px;
  font-weight: 400;
}



/* ============================================================
   ⑦ CTAバナー（CSS再現方式）
   Figma: 70:803 Group 37 — w:750 h:243 radius:10
          245:721 gradient: #C6E1EE → #32A9E1
          188:494 IMG_1869 左60%に配置
          70:804 gradient overlay（写真→水色フェード）
   ============================================================ */
/* CTA前の注意文（例：「ただいま新橋院のみ募集しております」） */
.recruit-cta-notice {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--spacing-sm) 20px;
  text-align: center;
}

.recruit-cta-notice__text {
  color: #e67e22;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.6;
}

/* ============================================================
   ⑦ CTA
   ============================================================ */
.recruit-cta {
  padding: 0 0 60px;
  background: var(--color-bg);
}

.recruit-cta__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

/* Figma: w:750 h:243 radius:10 bg:gradient #c6e1ee→#32a9e1 */
.recruit-cta__card {
  display: block;
  position: relative;
  max-width: 750px;
  height: 243px;
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto;
  background: linear-gradient(90deg, #C6E1EE, #32A9E1);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.recruit-cta__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(21, 86, 166, 0.2);
}

/* 背景写真 — 左側に配置、ズーム+左クロップ（カードのoverflow:hiddenで切り取り） */
.recruit-cta__bg {
  position: absolute;
  top: 50%;
  left: -30px;
  width: auto;
  height: 130%;
  transform: translateY(-50%);
  z-index: 0;
  /* 右端を透明フェードアウト（全CTAに共通適用） */
  -webkit-mask-image: linear-gradient(to right, black 40%, transparent 90%);
  mask-image: linear-gradient(to right, black 40%, transparent 90%);
}

/* DA用: 被写体が小さいためズーム強化 + 上にずらす */
.recruit-cta__bg--dental_assistant,
.recruit-cta__bg--mid_careerda {
  height: 170%;
  transform: translateY(-65%);
}

/* 歯学部生用: 左にずらす */
.recruit-cta__bg--dental_student {
  left: -40px;
}

/* グラデーションオーバーレイ — Figma: linear-gradient(90deg, #C6E1EE, #32A9E1) opacity:70% */
.recruit-cta__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #C6E1EE, #32A9E1);
  opacity: 0.7;
  z-index: 1;
}

/* コンテンツ — テキスト右側+矢印 */
.recruit-cta__content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  /* 縦方向中央 */
  justify-content: flex-end;
  height: 100%;
  padding: 30px 80px 30px 40px;
  /* 右にarrow分余白 */
}

.recruit-cta__text {
  text-align: left;
}

/* Figma: 70:806 — fs:16 ls:1.28 #1556a6, 白背景帯
   236:628 Rectangle 79 — w:272 h:27 */
.recruit-cta__label {
  display: table;
  /* ブロック化しつつ幅はコンテンツに合わせる */
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 1.28px;
  line-height: 20px;
  color: #1556A6;
  background: #FFFFFF;
  padding: 3px 6px;
  margin-bottom: 4px;
}

/* Figma: 70:807 — fs:24 ls:0 #1556a6, 白背景帯
   236:629 Rectangle 80 — w:297 h:37 */
.recruit-cta__title {
  display: table;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 28px;
  color: #1556A6;
  background: #FFFFFF;
  padding: 4px 6px;
}

/* Figma: 70:823 Component 3 — w:43 h:43 bg:#fff radius:50
   footer-cta__card-arrow と同一パターン */
.recruit-cta__arrow {
  position: absolute;
  right: 21px;
  bottom: 21px;
  z-index: 2;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.recruit-cta__arrow svg path {
  transition: stroke 0.3s ease;
}

.recruit-cta__card:hover .recruit-cta__arrow {
  background: #1556A6;
}

.recruit-cta__card:hover .recruit-cta__arrow svg path {
  stroke: #fff;
}



/* ============================================================
   SP (max-width: 768px)
   Figma: 68:658 募集要項-SP w:430
   ============================================================ */
@media (max-width: 768px) {

  /* MV — ロゴサイズ調整 */
  .secondary-mv--recruit .secondary-mv__title-logo {
    /* Figma SP: Recruit 2 — w:208 h:46
       ロゴ x_rel=43, inner左余白=22 → left=21px */
    max-width: 208px;
    left: 21px;
    /* 共通24pxを上書き */
  }

  /* ---- コンテナ左右余白 — Figma SP: 左端22px ---- */
  .recruit-catch__inner.inner,
  .recruit-intro__body.inner,
  .recruit-table__inner,
  .recruit-cta__inner {
    padding: 0 22px;
  }

  /* ② キャッチ — Figma SP: fs:25 fw:400 lh:40 ls:2 */
  .recruit-catch {
    padding: 40px 0 0;
  }

  .recruit-catch__copy {
    font-size: clamp(20px, 5.8vw, 25px);
    /* 430px→25px, 345px→20px */
    line-height: 40px;
    letter-spacing: 1px;
    /* SP: 2→1px — 短い幅でも折り返し防止 */
    margin-bottom: 30px;
    /* Figma SP: コピー〜写真間を縮小 */
  }

  /* SP: PC用の素のbrのみ非表示（sp-brクラス付きは残す） */
  .recruit-catch__copy br:not([class]) {
    display: none;
  }

  /* Figma SP: Mask group w:386 h:360 cr:10
     PC aspect-ratio (1000/360 = 2.78:1) をリセット → SP は約1:1 */
  /* SP: 親要素で360pxクリップ、imgは441pxでFigmaのズーム率を再現
     Figma: 元画像を662×441で表示 → 386×360マスク
     CSS cover: 386×441コンテナ → cover scale = 441/1416 → 表示662×441 ≒ Figma同等 */
  /* SP: 縮小方式 — 画面幅に応じて画像もスケール、構図は一定 */
  .recruit-catch__photo {
    height: auto;
    aspect-ratio: 386 / 360;
    /* Figma SP: 386×360 の比率を維持 */
  }

  .recruit-catch__photo img {
    aspect-ratio: auto;
    width: 100%;
    height: 100%;
    object-position: 79% top;
    /* Figma基準: 新卒DR用 */
  }

  /* 第二新卒DR: 左側のDRが見切れないよう左寄りに */
  .recruit-catch__photo--graduated img {
    object-position: 70% top;
  }

  /* DA: 中央表示 */
  .recruit-catch__photo--dental_assistant img,
  .recruit-catch__photo--mid_careerda img {
    object-position: center center;
  }

  /* ③ 紹介文 — Figma SP: fs:14 lh:25 ls:1.12 */
  .recruit-intro__body {
    font-size: 14px;
    line-height: 25px;
    letter-spacing: 1.12px;
  }

  /* ④ 先輩の声 */
  .recruit-voice {
    padding: 40px 0;
  }

  /* Figma SP: Rectangle 7 — w:430 (全幅) h:1278 rcr:[0,50,0,50] */
  .recruit-voice__bg {
    border-radius: 0 50px 0 50px;
    padding: 40px 0;
  }

  /* Figma SP: voice inner — 左右22px */
  .recruit-voice__inner {
    padding: 0 22px;
  }

  /* Figma SP: heading fs:25 lh:40 ls:2, 左揃え */
  .recruit-voice__heading {
    font-size: clamp(20px, 5.8vw, 25px);
    line-height: 40px;
    letter-spacing: 2px;
    text-align: left;
    /* PC: center → SP: left */
  }

  /* Figma SP: Mask group w:386 h:360
     PC aspect-ratio (1000/360) をリセット — SP では高さを自然に追従 */
  .recruit-voice__photo img {
    aspect-ratio: auto;
    /* PC の 1000/360 を解除 */
    height: auto;
  }

  /* ボタン — Figma SP: w:388 h:70 radius:35 */
  .recruit-voice__btn {
    width: 100%;
    max-width: 388px;
    height: 70px;
    border-radius: 35px;
  }

  /* ⑤ インタビュー — Figma SP: label fs:19 lh:36 ls:0.76 */
  .recruit-video__label {
    font-size: clamp(14px, 4.2vw, 19px);
    /* 360px→15.1px, 430px→18px — 360pxで1行に収まる */
    line-height: 36px;
    letter-spacing: 0.76px;
  }

  .recruit-video__icon {
    width: 31px;
    height: 16px;
  }

  .recruit-video__embed {
    max-width: 100%;
  }

  /* ⑥ テーブル — Figma SP: 縦積み */
  .recruit-table {
    padding: 40px 0;
  }

  /* Figma SP: heading "募集要項" fs:25 lh:40 ls:2 */
  .recruit-table__heading {
    font-size: 25px;
    line-height: 40px;
    letter-spacing: 2px;
  }

  /* Figma SP: テーブル行 w:387, th/td ブロック化
     th: fs:14 fw:700 ls:1.12 lh:52 (1行固定, 行高で垂直中央)
     td: fs:14 fw:400 ls:1.12 lh:24 (複数行対応)
     テキスト左端: 15px (Figma: text_x - frame_x = 11672 - 11657) */
  .recruit-table__table th,
  .recruit-table__table td {
    display: block;
    width: 100%;
    font-size: 14px;
    letter-spacing: 1.12px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .recruit-table__table th {
    padding-top: 12px;
    padding-bottom: 0;
    font-size: 14px;
    line-height: 28px;
    /* SPブロック化時は行高を縮小 */
  }

  .recruit-table__table td {
    padding-top: 4px;
    padding-bottom: 16px;
    line-height: 24px;
  }

  /* CTA前の注意文 SP */
  .recruit-cta-notice {
    padding: 0 22px 20px;
  }

  .recruit-cta-notice__text {
    font-size: clamp(14px, 4.4vw, 1.2rem);
    /* 360px→15.8px — 17文字を1行に収める */
  }

  /* ⑦ CTA — Figma SP: Group 37 w:386 h:161 radius:10 */
  .recruit-cta {
    padding: 0 0 40px;
  }

  .recruit-cta__card {
    max-width: 100%;
    height: 161px;
  }

  .recruit-cta__content {
    justify-content: center;
    /* SP: テキスト中央揃え */
    text-align: center;
    padding: 15px 25px;
    /* 左右縮小でDA等の長いテキストも1行に収める */
  }

  /* Figma SP: label fs:14 ls:1.12 */
  .recruit-cta__label {
    font-size: clamp(11px, 3.3vw, 14px);
    /* 360px→11.9px — 「医院見学・面接申し込みフォーム」1行 */
    letter-spacing: 1.12px;
    line-height: 19px;
    margin: 0 auto 4px;
    /* 中央揃え */
  }

  /* Figma SP: title fs:20 ls:0 */
  .recruit-cta__title {
    font-size: clamp(16px, 4.6vw, 20px);
    /* 360px→16.6px — 「歯科医師(Dr.)応募はこちら」1行 */
    line-height: 27px;
    margin: 0 auto;
    /* 中央揃え */
  }

  /* Figma SP: arrow w:30 h:30 */
  .recruit-cta__arrow {
    width: 30px;
    height: 30px;
    right: 12px;
    bottom: 12px;
    /* PC(21px)から9px下げ */
  }
}