/* =========================================================
   INTERVIEW NETWORK BACKGROUND
========================================================= */

:root {
  /* network bg vertical fine-tune (down-base) */
  --network-offset: -120px; /* +で上、-で下 */
  --interview-network-bg: url("assets/network_bg.webp");
}

/* セクション本体 */
.interview {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: transparent;
  isolation: isolate;
  padding-top: 145px;
  padding-bottom: 590px;
  z-index: 2;
}

/* 🔹 常に存在（1人目から表示） */
.interview::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  background-image: var(--interview-network-bg);
  background-repeat: no-repeat;
  background-size: 100vw auto;

  /* 下端基準 */
  background-position: center bottom;
  transform-origin: center bottom;
  /* pxで上下調整 */
  transform: translateY(var(--network-offset));
}

/* 読みやすさ用オーバーレイ */
.interview::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(242, 242, 242, 0.35);
}

/* 中身 */
.interview > * {
  position: relative;
  z-index: 2;
}

/* 🔹 pin中だけ画面固定（SPでは固定しない） */
@media (min-width: 768px) and (min-height: 1095px) {
  .interview.is-pinbg::before {
    position: fixed;
    left: 0;
    top: 300px;
    width: 100vw;
    height: 100vh;
    background-size: 100vw auto;
    background-position: center calc(100% + var(--network-offset));
    transform: translateZ(0);
  }
}
/* =========================================================
   INTERVIEW CONTENT
========================================================= */

.interview > :last-child {
  margin-bottom: 0 !important;
}

.interview__pinwrap {
  position: relative;
  width: 100%;
}

.interview__head {
  width: min(var(--container), calc(100% - 64px));
  margin: 0 auto;
}

.interview__title {
  font-weight: 300;
  margin: 0 0 100px;
  text-align: center;
  font-size: clamp(34px, 3.0vw, 38px);
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.interview__frame {
  width: min(1100px, calc(100% - 64px));
  height: clamp(520px, 62vh, 700px);
  margin: 0 auto clamp(40px, 6vw, 72px);
  position: relative;
  /* perspective: 1200px; */
  transform: translateZ(0);
}

.interview__stack {
  position: relative;
  width: 100%;
  height: 100%;
}

/* =========================================================
   INTERVIEW CARD
========================================================= */

.iv-card {
  font-family: "Noto Sans JP", sans-serif;
  position: absolute;
  inset: 0;
  width: 960px;
  height: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  will-change: opacity;
}

.iv-card__top {
  display: grid;
  grid-template-columns: 480px 480px;
  width: 960px;
  height: 400px;
}

.iv-card__hero {
  width: 480px;
  background: #ff6a01;
  color: #fff;
  padding: 36px 35px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.iv-card__badge {
  font-family: "Noto Sans JP", sans-serif;

  align-self: flex-start;
  padding: 8px 15px;
  margin-bottom: 15px;

  font-size: 17px;
  letter-spacing: 0.05em;
  color: #f07a00;
  background: #fff;
  border-radius: 999px;

  font-weight: 200;
}
.iv-card__badge-num {
  font-weight: 500; /* 数字だけ太く */
}
.iv-card__headline {
  margin: 0 0 18px;
  font-size: 22px;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.iv-card__meta {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
}

.iv-card__meta strong {
  font-size: 20px;
  font-weight: 400;
}

.iv-card__photo {
  width: 480px;
  height: 400px;
  overflow: hidden;
  background: #eee;
}

.iv-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.iv-card__bottom {
  width: 960px;
  height: 415px;
  padding: 37px 60px;
  background: #fff;
}

.iv-card__desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: #333333;
  font-weight: 400;
}

.iv-card__desc p {
  margin: 0;
}

.iv-card__desc p + p {
  margin-top: 0.5em;
}

@media (max-width: 1024px) {
  .iv-card {
    transform: scale(0.9);
    transform-origin: top center;
  }
}

@media (max-width: 768px) {
  .iv-card {
    height: auto;
  }

  .iv-card__top {
    grid-template-columns: 1fr;
    width: 100%;
    height: auto;
  }

  .iv-card__hero,
  .iv-card__photo {
    width: 100%;
    height: 300px;
  }

  .iv-card__bottom {
    width: 100%;
    height: auto;
  }
}

/* =========================================================
   INTERVIEW (SP Tuning)
========================================================= */
@media (max-width: 767px) {
  :root {
    --network-offset-sp: -280px; /* SPは背景を少し上げる */
    --interview-network-bg: url("assets-sp/network_bg_sp.webp");
  }

  .interview {
    padding-top: 65px;
    padding-bottom: 360px;
  }

  /* network bg: SPは少し大きめに見せてズレを吸収 */
  .interview::before {
    background-size: 120vw auto;
    transform: translateY(var(--network-offset-sp));
  }

  .interview__head {
    width: min(var(--container), calc(100% - 32px));
  }

  .interview__title {
    font-size: clamp(20px, 5.6vw, 26px);
    margin: 0 0 56px;
    line-height: 1.25;
  }

  .interview__frame {
    width: calc(100% - 32px);
    height: auto; /* SPは高さ固定しない */
    margin: 0 auto 40px;
    perspective: none; /* SPは酔いやすいのでOFF */
  }

  .interview__stack {
    height: auto;
  }

  .iv-card__top {
    width: 100%;
    height: auto;
    grid-template-columns: 1fr;
  }

  .iv-card__hero {
    width: 100%;
    height: auto;
    padding: 22px 18px;
  }

  .iv-card__badge {
    font-size: 13px;
    padding: 6px 12px;
    margin-bottom: 12px;
  }

  .iv-card__headline {
    font-size: 18px;
    line-height: 1.55;
    margin: 0 0 12px;
  }

  .iv-card__meta {
    font-size: 13px;
    line-height: 1.7;
  }

  .iv-card__meta strong {
    font-size: 18px;
  }

  .iv-card__photo {
    width: 100%;
    height: 240px;
  }

  .iv-card__bottom {
    width: 100%;
    height: auto;
    padding: 20px 18px;
  }

  .iv-card__desc {
    font-size: 14px;
    line-height: 1.8;
  }

  /* =========================================================
     SP：読みやすい縦並び優先
  ========================================================= */

  .interview.is-pinbg::before {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0;

    /* SPはピン固定をしない（挙動崩れ防止） */
    background-size: 140vw auto;
    background-position: center bottom;
    transform-origin: center bottom;
    transform: translateY(var(--network-offset-sp));
  }

  .interview__frame {
    margin: 0 auto 56px;
  }

  .interview__stack {
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: center;
  }

  .iv-card {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: 520px;
    height: auto;
    margin: 0 auto;

    transform: none;
    transform-style: flat;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
  }
}

/* =========================================================
   INTERVIEW (No-PIN / Low-height PC)
   - JSが .is-nopin を付けたら縦並びに切替（低いノート等の救済）
========================================================= */
@media (min-width: 768px) and (max-height: 1094px) {
  .interview.is-nopin {
    padding-bottom: 320px;
  }

  .interview.is-nopin .interview__frame {
    height: auto;
    perspective: none;
    margin: 0 auto 56px;
  }

  .interview.is-nopin .interview__stack {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
  }

  .interview.is-nopin .iv-card {
    position: relative;
    inset: auto;
    width: min(960px, 100%);
    height: auto;
    margin: 0 auto;
    transform: none;
    transform-style: flat;
  }
}
