/* ============================
   EMPLOYEE ARCHIVE (先輩社員インタビュー 一覧)
============================ */

/* ============================
   FVエリア
============================ */
.employee-archive__fv {
  height: 348px;
  background-image: url(../../images/employee/employee_fv_bg.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
/* SP: 新入社員の声 FV と同じ 2枚重ね (Mマーク SVG + 水色地+マイクの bg_sp)。数値は Figma (82:3163) 実測 */
@media (max-width: 767px) {
  .employee-archive__fv {
    height: 235px;                        /* Figma: 293 - ヘッダー 58。bg_sp (1534×470) の @2x 高さと一致 */
    background-color: #99CDDB;            /* 保険。通常は bg_sp 画像で覆われる */
    background-image:
      url(../../images/newemployee/newemployee_fv_mark.svg),
      url(../../images/employee/employee_fv_bg_sp.jpg);
    background-repeat: no-repeat, no-repeat;
    /* Mマーク: Figma x-66.8 / y47.6 (FV 上端から -10.4) / 268.6×236.4 → 左端・上端で切れる配置 */
    background-position: -67px -10px, right bottom;
    background-size: 269px 236px, auto 235px;
  }
}

.employee-archive__fv-inner {
  position: relative;
  max-width: 1228px;
  height: 100%;
  margin-inline: auto;
  padding-inline: 30px;
}
@media (max-width: 767px) {
  .employee-archive__fv-inner {
    padding-inline: 30px;
  }
}

.employee-archive__fv-title {
  position: absolute;
  top: 130px;
  left: 30px;
  color: #FFF;
  font-family: var(--font-heading);
  font-size: 65px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
}
@media (max-width: 767px) {
  .employee-archive__fv-title {
    top: 96px;                            /* Figma: y154 - ヘッダー 58 */
    left: 31px;                           /* Figma: x31 */
    font-size: 32px;                      /* Figma: 32px */
  }
}

/* ============================
   共通見出し / パンくずの前後余白
============================ */
.employee-archive .c-breadcrumb {
  padding-top: 26px;
}

.employee-archive .c-page-title {
  margin-top: 160px;
}
@media (max-width: 767px) {
  .employee-archive .c-page-title {
    margin-top: 60px;                     /* 他ページと揃え */
  }
}

/* ============================
   一覧セクション
============================ */
.employee-archive__list-section {
  margin-top: 160px;
}
@media (max-width: 767px) {
  .employee-archive__list-section {
    margin-top: 90px;                     /* PC 160 × 約0.56 */
  }
}

.employee-archive__inner {
  max-width: 1136px;
  margin-inline: auto;
  padding-inline: 30px;
}
@media (max-width: 767px) {
  .employee-archive__inner {
    padding-inline: 30px;                 /* 他ページと揃え */
  }
}

/* ============================
   1件のインタビュー
============================ */
.employee-archive__item {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--color-primary);
  /* フィールド診断の結果画面から #interview-{投稿ID} で飛んでくるので、
     固定ヘッダーに隠れない位置で止める。
     ブラウザがこの位置まで飛んだ「あと」に、スクロール量が 300px を超えて
     ヘッダーが position: fixed になり (assets/js/main.js)、フローから外れる分
     だけコンテンツが上へずれる。そのずれ (= ヘッダー高) も足しておく */
  scroll-margin-top: 158px;               /* ずれ58 + ヘッダー58 + 余白42 */
}
@media (max-width: 767px) {
  .employee-archive__item {
    padding-bottom: 24px;                 /* PC 40 × 0.6 */
    scroll-margin-top: 134px;             /* ずれ54 + ヘッダー54 + 余白26 */
  }
}

.employee-archive__item + .employee-archive__item {
  margin-top: 40px;
}
@media (max-width: 767px) {
  .employee-archive__item + .employee-archive__item {
    margin-top: 40px;                     /* 記事区切りは視認性優先で据え置き */
  }
}

/* --right (偶数件目): タイトル/タグ を右寄せ */
.employee-archive__item--right .employee-archive__title,
.employee-archive__item--right .employee-archive__tags {
  text-align: right;
}

.employee-archive__item--right .employee-archive__tags {
  justify-content: flex-end;
}

/* SPでは左右交互を無効化: すべて左寄せ */
@media (max-width: 767px) {
  .employee-archive__item--right .employee-archive__title,
  .employee-archive__item--right .employee-archive__tags {
    text-align: left;
  }
  .employee-archive__item--right .employee-archive__tags {
    justify-content: flex-start;
  }
}

/* ============================
   見出し行 (Interview#XX + タイトル/タグ を横並び)
============================ */
.employee-archive__heading-row {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}
@media (max-width: 767px) {
  .employee-archive__heading-row {
    flex-direction: column;               /* 縦積み */
    gap: 8px;
  }
}

.employee-archive__item--right .employee-archive__heading-row {
  flex-direction: row-reverse;
}
@media (max-width: 767px) {
  .employee-archive__item--right .employee-archive__heading-row {
    flex-direction: column;               /* --right の反転を無効化 */
  }
}

/* タイトル + タグ のラッパー (残りスペースを埋める) */
.employee-archive__title-block {
  flex: 1;
  min-width: 0;
}

/* ============================
   見出し: Interview + #01 (縦積み)
============================ */
.employee-archive__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
  gap: 7px;
  line-height: 1;
}

.employee-archive__item--right .employee-archive__head {
  align-items: flex-end;
}
@media (max-width: 767px) {
  .employee-archive__item--right .employee-archive__head {
    align-items: flex-start;              /* --right の右寄せを解除 */
  }
}

.employee-archive__label {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}
@media (max-width: 767px) {
  .employee-archive__label {
    font-size: 16px;                      /* PC 22 × 0.73 */
  }
}

.employee-archive__number {
  color: var(--color-primary);
  font-family: "Inter", sans-serif;
  font-size: 60px;
  font-weight: 400;
  line-height: 1;
}
@media (max-width: 767px) {
  .employee-archive__number {
    font-size: 40px;                      /* PC 60 × 0.67 */
  }
}

.employee-archive__hash {
  color: var(--color-primary);
  font-family: "Inter", sans-serif;
  font-size: 19px;
  font-weight: 400;
}
@media (max-width: 767px) {
  .employee-archive__hash {
    font-size: 14px;                      /* PC 19 × 0.74 */
  }
}

/* ============================
   タイトル
============================ */
.employee-archive__title {
  color: var(--color-primary);
  font-size: 26px;
  font-weight: 400;
  line-height: 40px;
  letter-spacing: 3.9px;
}
@media (max-width: 767px) {
  .employee-archive__title {
    font-size: 18px;                      /* PC 26 × 0.69 */
    line-height: 1.5;
    letter-spacing: 0.05em;               /* PC 3.9px(=約0.15em) を圧縮 */
  }
}

/* ============================
   タグ
============================ */
.employee-archive__tags {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
@media (max-width: 767px) {
  .employee-archive__tags {
    flex-wrap: wrap;                      /* 入りきらないタグは次の行へ */
    gap: 8px 16px;                        /* 縦 8 / 横 16 */
  }
}

.employee-archive__item--right .employee-archive__tags {
  justify-content: flex-end;
}

.employee-archive__tag {
  color: #8D8FC5;
  font-family: "Inter", sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}
@media (max-width: 767px) {
  .employee-archive__tag {
    flex-shrink: 0;                       /* タグ自体は縮めない */
    white-space: nowrap;                  /* タグ内での折返しを禁止 */
    font-size: 14px;                      /* PC 22 × 0.64 (下限14px) */
  }
}

.employee-archive__tag-hash {
  font-size: 24px;
  padding-right: 4px;
}
@media (max-width: 767px) {
  .employee-archive__tag-hash {
    font-size: 16px;                      /* PC 24 × 0.67 */
  }
}

/* ============================
   上段: 動画 + 動画横テキスト
============================ */
.employee-archive__row--top {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 30px;
}
@media (max-width: 767px) {
  .employee-archive__row--top {
    flex-direction: column;               /* 縦積み: 動画 → テキスト */
    gap: 20px;
    margin-top: 20px;
  }
}

.employee-archive__item--right .employee-archive__row--top {
  flex-direction: row-reverse;
}
@media (max-width: 767px) {
  .employee-archive__item--right .employee-archive__row--top {
    flex-direction: column;               /* --right の反転を無効化 */
  }
}

/* --- 動画エリア --- */
.employee-archive__video {
  position: relative;
  flex-shrink: 0;
  width: 572px;
  height: 322px;
  cursor: pointer;
  overflow: hidden;
}
@media (max-width: 767px) {
  .employee-archive__video {
    width: 100%;                          /* 親幅に収める */
    height: auto;                         /* PC 322px 固定を解除 */
    aspect-ratio: 16 / 9;                 /* 可変で 16:9 維持 (JS 差替 iframe 対応) */
  }
}

.employee-archive__video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* iframe 差替後 */
.employee-archive__video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- 動画横テキスト --- */
.employee-archive__body-top {
  flex: 1;
  min-width: 0;
  color: var(--color-text);
  font-size: 20px;
  line-height: 35px;
  letter-spacing: 2px;
}
@media (max-width: 767px) {
  .employee-archive__body-top {
    font-size: 14px;                      /* PC 20 × 0.7 (下限14px) */
    line-height: 1.8;
    letter-spacing: 0.02em;               /* PC 2px(=0.1em) を圧縮 */
  }
}

/* p の font-weight リセットを打ち消し */
.employee-archive__body-top p {
  font-weight: 400;
}

.employee-archive__body-top p + p {
  margin-top: 1em;
}

/* ============================
   下段: 2ブロック目テキスト + サブ画像
============================ */
.employee-archive__row--bottom {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 25px;
}
@media (max-width: 767px) {
  .employee-archive__row--bottom {
    /* DOM順は body_bottom → sub_image。SP では画像を先に見せて読みやすくするため反転 */
    flex-direction: column-reverse;       /* 表示順: サブ画像 → テキスト */
    gap: 20px;
    margin-top: 16px;                     /* PC 25 × 0.64 */
  }
}

.employee-archive__item--right .employee-archive__row--bottom {
  flex-direction: row-reverse;
}
@media (max-width: 767px) {
  .employee-archive__item--right .employee-archive__row--bottom {
    flex-direction: column-reverse;       /* --right でも同順序（画像→テキスト） */
  }
}

/* --- 2ブロック目テキスト --- */
.employee-archive__body-bottom {
  flex-shrink: 0;
  min-width: 0;
  width: 572px;
  color: var(--color-text);
  font-size: 20px;
  line-height: 35px;
  letter-spacing: 2px;
}
@media (max-width: 767px) {
  .employee-archive__body-bottom {
    font-size: 14px;
    line-height: 1.8;
    letter-spacing: 0.02em;
    width: 100%;
  }
}

.employee-archive__body-bottom p {
  font-weight: 400;
}

.employee-archive__body-bottom p + p {
  margin-top: 1em;
}

/* --- 子見出し (ACF sub_heading): 2ブロック目テキストの直上・同じ列 (画像と横並び) ---
   デザイン指定なし: 青系太字。サイズ・余白は仮 */
.employee-archive__sub-heading {
  color: var(--color-primary);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.05em;
}
@media (max-width: 767px) {
  .employee-archive__sub-heading {
    font-size: 18px;
  }
}
.employee-archive__sub-heading + .employee-archive__body-bottom-text {
  margin-top: 16px;
}
@media (max-width: 767px) {
  .employee-archive__sub-heading + .employee-archive__body-bottom-text {
    margin-top: 10px;
  }
}

/* --- サブ画像 --- */
.employee-archive__sub-image {
  flex: 1;
  border-radius: 40px;
  overflow: hidden;
}
@media (max-width: 767px) {
  .employee-archive__sub-image {
    width: 100%;                          /* 親幅に */
    border-radius: 20px;                  /* PC 40 × 0.5 */
  }
}

.employee-archive__sub-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 767px) {
  .employee-archive__sub-image img {
    height: auto;                         /* 自然比で親幅に収める */
    object-fit: initial;
  }
}
