/* =============================================
   Interview Detail（仲間を知る 詳細）
   ============================================= */

/* =============================================
   ページ背景ラッパー（sub-mv なし専用）
   ============================================= */
.p-interview-detail__bg {
  background: #F9F9F9;
    padding-bottom: 100px;
}

/* =============================================
   ヒーロー
   ============================================= */
.p-interview-detail__hero {
  padding-block-start: clamp(3rem, 6vw, 5rem);
}

.p-interview-detail__hero-inner {
  max-width: 1327px;
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 43fr 57fr;
  align-items: center;
  gap: 5rem;
}

/* =============================================
   hero 左：テキスト
   ============================================= */
.p-interview-detail__hero-en {
  font-family: "Quicksand", sans-serif;
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 700;
  color: var(--font-color);
  -webkit-text-stroke: 0.3px var(--font-color);
  line-height: 1.1;
  margin-block: 0 0.5rem;
}

/* ドット + 仲間を知る 横並び */
.p-interview-detail__hero-tagline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-block: 0 4rem;
}

.p-interview-detail__hero-tagline .c-ttl__dots {
  /* 丸間隔は共通 .c-ttl__dots(0.7rem) を継承。ここは位置のみ */
  display: flex;
  flex-shrink: 0;
}

.p-interview-detail__hero-tagline-ja {
  font-size: 0.875rem;
  color: var(--font-color);
}

/* キャッチコピー（42px相当） */
.p-interview-detail__hero-catch {
  font-size: clamp(1.75rem, 2.625vw, 2.625rem);
  font-weight: 700;
  color: var(--font-color);
  line-height: 1.5;
  margin-block: 0 1.5rem; /* 40px */
}

/* 役職・入社年月 */
.p-interview-detail__hero-role {
  font-size: 1rem;
  color: var(--font-color-02);
  margin-block: 0 0.5rem; /* 40px */
}

/* 氏名（26px相当） */
.p-interview-detail__hero-name {
  font-size: 1.625rem;
  font-weight: 700;
  margin-block: 0;
}

/* =============================================
   hero 右：写真エリア
   ============================================= */
.p-interview-detail__hero-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* モーフィング */
@keyframes id-morph-circle {
  0%   { border-radius: 60% 40% 55% 45% / 45% 55% 45% 55%; }
  25%  { border-radius: 50% 50% 42% 58% / 58% 42% 58% 42%; }
  50%  { border-radius: 45% 55% 48% 52% / 52% 48% 52% 48%; }
  75%  { border-radius: 55% 45% 60% 40% / 40% 60% 40% 60%; }
  100% { border-radius: 60% 40% 55% 45% / 45% 55% 45% 55%; }
}

/* ドットふわふわ */
@keyframes id-float-a {
  0%, 100% { transform: translateY(0)     rotate(0deg); }
  50%       { transform: translateY(-12px) rotate(4deg); }
}
@keyframes id-float-b {
  0%, 100% { transform: translateY(0)    rotate(0deg); }
  50%       { transform: translateY(-8px) rotate(-3deg); }
}
@keyframes id-float-c {
  0%, 100% { transform: translateY(0)    rotate(0deg); }
  50%       { transform: translateY(10px) rotate(2deg); }
}

.p-interview-detail__hero-photo {
  width: 100%;
  aspect-ratio: 1;
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 60% 40% 55% 45% / 45% 55% 45% 55%;
  animation: id-morph-circle 8s ease-in-out infinite;
}

.p-interview-detail__hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.p-interview-detail__hero-dot {
  position: absolute;
  display: block;
  z-index: 2;
  height: auto;
  aspect-ratio: 1 / 1;
}

.p-interview-detail__hero-dot.--d1 {
  width: 17%;
  top: -5%;
  left: calc(50% - 8.5%);
  animation: id-float-a 5s ease-in-out infinite;
}

.p-interview-detail__hero-dot.--d2 {
  width: 13%;
  bottom: 20%;
  left: 0;
  animation: id-float-b 6.5s ease-in-out infinite;
}

.p-interview-detail__hero-dot.--d3 {
  width: 20%;
  bottom: 5%;
  right: 3%;
  animation: id-float-c 7s ease-in-out infinite;
}

/* =============================================
   ストーリーセクション
   hero 下 170px → 白背景ボックス → 130px → 幅100%画像
   ============================================= */
.p-interview-detail__story {
  padding-block: 10.625rem 8.125rem; /* 170px / 130px（1rem = 16px 基準） */
}

.p-interview-detail__story-box {
  background: #fff;
  border-radius: 10px;
  padding: 2.5rem; /* 40px */
  max-width: 1020px;
  margin-inline: auto;
}

.p-interview-detail__story-inner {
  display: flex;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: flex-start;
}

/* 左：画像 */
.p-interview-detail__story-image {
  flex: 0 0 42%;
  max-width: 430px;
}

.p-interview-detail__story-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* 右：テキスト */
.p-interview-detail__story-text {
  flex: 1;
  max-width: 550px;
}

/* 見出し（左ボーダー付き） */
.p-interview-detail__story-heading {
  font-size: 1.15rem; 
  font-weight: 700;
  color: #1c336f;
  border-left: 2px solid #1c336f;
  padding-left: 26px;
  padding-block: 20px;
  line-height: 1.7;
  margin-block: 1.55rem 1.75rem;
}

/* 本文 */
.p-interview-detail__story-body {
  font-size: 1rem;
  color: var(--font-color-03);
  line-height: 2;
}

.p-interview-detail__story-body p + p {
  margin-block-start: 1.25rem;
}

/* =============================================
   幅100%画像
   ============================================= */
.p-interview-detail__wide-image {
  width: 100%;
  height: 690px;
  overflow: hidden;
  border-radius: 30px;
}

.p-interview-detail__wide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* =============================================
   仕事内容セクション
   ============================================= */
.p-interview-detail__works {
  max-width: 1282px;
  width: 94%;
  margin-inline: auto;
  padding-block-start: 10rem;
  padding-block-end: 5rem;
}

.p-interview-detail__works-set + .p-interview-detail__works-set {
  margin-block-start: 5rem;
}

/* PC sticky 画像：重ね表示 + フェード切り替え */
.p-interview-detail__works-pc-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.p-interview-detail__works-pc-img.is-active {
  opacity: 1;
  visibility: visible;
}

/* SP インライン画像 */
.p-interview-detail__works-img-sp img {
  width: 100%;
  height: auto;
  display: block;
  margin-block-start: 2rem;
  border-radius: 20px;
}

.p-interview-detail__work-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--font-color);
  line-height: 1.5;
  margin-block: 0 1.875rem;
}

.p-interview-detail__work-body {
  font-size: 1rem;
  color: var(--font-color-03);
  line-height: 2;
}

.p-interview-detail__work-body p + p {
  margin-block-start: 1.25rem;
}

.p-interview-detail__work-block.--second {
  margin-block-start: 5.625rem;
}

/* =============================================
   SP
   ============================================= */
/* =============================================
   PC のみ微調整
   ============================================= */

@media (min-width: 769px) {

  /* ① hero セクション上に 50px 追加 */
  .p-interview-detail__hero {
    padding-block-start: calc(clamp(3rem, 6vw, 5rem) + 3.125rem);
  }

  /* ② hero 左コンテンツ上に 50px 追加 */
  .p-interview-detail__hero-left {
    padding-block-start: 3.125rem;
  }

  /* works: PC 2カラムレイアウト + sticky 右 */
  .p-interview-detail__works {
    display: flex;
    gap: 5%;
    align-items: flex-start;
  }

  .p-interview-detail__works-left {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .p-interview-detail__works-right {
    flex: 0 0 45%;
    max-width: 45%;
    position: sticky;
    top: calc(var(--header-h, 5rem) + 2rem + 100px);
    height: fit-content;
    /* 画像重ね枠 */
    aspect-ratio: 640 / 800;
    overflow: hidden;
    border-radius: 20px;
  }

  /* SP インライン画像: PC では非表示 */
  .p-interview-detail__works-img-sp {
    display: none;
  }
}

@media (max-width: 768px) {

  /* hero */
  .p-interview-detail__hero-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .p-interview-detail__hero-en {
    font-size: 2.5rem;
  }

  .p-interview-detail__hero-tagline {
    margin-block-end: 2.5rem;
  }

  .p-interview-detail__hero-catch {
    font-size: 1.625rem;
    margin-block-end: 1.75rem;
  }

  .p-interview-detail__hero-role {
    margin-block-end: 1.5rem;
  }

  /* SP：右カラム（写真）は左テキストの後に縦並び → 先に右が上に来ないよう order 設定 */
  .p-interview-detail__hero-left  { order: 1; }
  .p-interview-detail__hero-right { order: 2; margin-block-start: 2.5rem; }

  .p-interview-detail__hero-media {
    width: 100%;
  }

  /* story */
  .p-interview-detail__story {
    padding-block: 3.5rem 3rem;
  }

  .p-interview-detail__story-box {
    padding: 1.25rem; /* 20px */
  }

  .p-interview-detail__story-inner {
    flex-direction: column;
    gap: 2rem;
  }

  .p-interview-detail__story-image {
    flex: none;
    max-width: 100%;
    width: 100%;
  }

  .p-interview-detail__story-text {
    max-width: 100%;
  }

  /* 幅100%画像 */
  .p-interview-detail__wide-image {
    height: 240px;
    border-radius: 16px;
  }

  /* 仕事内容セクション */
  .p-interview-detail__works {
    padding-block-start: 3.5rem;
    padding-block-end: 2.5rem;
  }

  /* PC sticky 画像エリア: SP では非表示 */
  .p-interview-detail__works-right {
    display: none;
  }

  .p-interview-detail__works-set + .p-interview-detail__works-set {
    margin-block-start: 3rem;
  }

  .p-interview-detail__work-block.--second {
    margin-block-start: 3rem;
  }
}
