/* =============================================
   Interview（仲間を知る）
   ============================================= */

.p-interview {
  /* ページ先頭の開始間隔は共通CSS（customize.css の .p-page-bg padding-block-start /
     --page-content-gap）で一元管理。ここでの重複指定は撤去済み。 */
}

/* section padding で上間隔を制御するためリセット */
.p-interview .c-page-content {
  margin-top: 90px;
}

/* =============================================
   グリッド親コンテナ
   ============================================= */
.p-interview__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 2.25rem; /* 1.5rem × 1.5 */
  row-gap: 3rem;       /* 1.5rem × 2 */
}

/* ul 自体はレイアウトに参加させず、li をグリッドアイテムとして直接参加させる */
.p-interview__list {
  display: contents;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* =============================================
   スタッフカード（img01〜07）
   ============================================= */
.p-interview__item {
  /* グリッドアイテム */
}

.p-interview__link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 0.625rem;
  overflow: hidden;
}

@media (hover: hover) and (pointer: fine) {
  .p-interview__link:hover .p-interview__pic img {
    transform: scale(1.04);
  }
}

/* 画像コンテナ */
.p-interview__pic {
  margin: 0;
  border-radius: 0.625rem;
  overflow: hidden;
  position: relative;
}

.p-interview__pic img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 400 / 650;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* PC のみ：スタッフ画像の縦横比を 10:14.7 に変更（横幅は width:100% のまま不変）。
   object-fit:cover は既存のまま維持のため、比率変更後も画像は歪まずトリミング表示される。
   SP（≤768px）は base の 400/650 のまま不変。 */
@media (min-width: 769px) {
  .p-interview__pic img {
    aspect-ratio: 10 / 14.7;
  }
}

/* 画像下部のテキストオーバーレイ */
.p-interview__body {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  padding: 1.5rem 1.25rem 1.25rem;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .55) 100%);
  color: #fff;
}

.p-interview__catch {
  font-size: 1.125rem;
  letter-spacing: .05em;
  line-height: 1.75;
  margin-block: 0 .75em;
  font-weight: 700;
  color: #fff;
}

.p-interview__role {
  font-size: var(--fs-14, 0.875rem);
  letter-spacing: .05em;
  color: rgba(255, 255, 255, .8);
  margin-block: 0 .25em;
}

.p-interview__name {
  font-size: 1.55rem;
  letter-spacing: .05em;
  font-weight: 600;
  color: #fff;
  margin-block: 0;
}

/* =============================================
   装飾画像ブロック（img08 / 2カラム分）
   ============================================= */
.p-interview__feature {
  grid-column: span 2;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* aspect-ratio なし：グリッド行高（img07 の高さ）に自然にストレッチ */
}

/* いびつ円モーフィング */
@keyframes iv-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 iv-float-a {
  0%, 100% { transform: translateY(0)     rotate(0deg); }
  50%       { transform: translateY(-12px) rotate(4deg); }
}
@keyframes iv-float-b {
  0%, 100% { transform: translateY(0)    rotate(0deg); }
  50%       { transform: translateY(-8px) rotate(-3deg); }
}
@keyframes iv-float-c {
  0%, 100% { transform: translateY(0)    rotate(0deg); }
  50%       { transform: translateY(10px) rotate(2deg); }
}

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

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

/* ドット画像（position: absolute で親 .p-interview__feature 基準） */
.p-interview__feature-dot {
  position: absolute;
  display: block;
  z-index: 2;
  height: auto;       /* width のみ CSS で指定し、縦横比は HTML 属性から維持 */
  aspect-ratio: 1 / 1; /* 正円を強制 */
}

.p-interview__feature-dot.--d1 {
  width: 9%;
  top: 6%;
  left: calc(50% - 20.5%);
  animation: iv-float-a 5s ease-in-out infinite;
}

.p-interview__feature-dot.--d2 {
  width: 9%;
  bottom: 20%;
  left: 7%;
  animation: iv-float-b 6.5s ease-in-out infinite;
}

.p-interview__feature-dot.--d3 {
  width: 16%;
  bottom: 9%;
  right: 15%;
  animation: iv-float-c 7s ease-in-out infinite;
}

/* =============================================
   SP
   ============================================= */
@media (max-width: 768px) {
    
    .p-interview .c-page-content {
      margin-top: 40px;
    }
  .p-interview__grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1rem;   /* 横：現状維持 */
    row-gap: 1.5rem;    /* 縦：1rem × 1.5 */
  }

  /* SP：feature は縦横比を正方形で固定（単独行のため高さ基準が必要） */
  .p-interview__feature {
    grid-column: span 2;
    aspect-ratio: 1;
  }

  .p-interview__feature-photo {
    width: 75%;
  }
.p-interview__feature-dot.--d1 {
  width: 17%;
  top: 4%;
  left: calc(50% - 23.5%);
  animation: iv-float-a 5s ease-in-out infinite;
}

.p-interview__feature-dot.--d2 {
  width: 13%;
  bottom: 20%;
  left: 2%;
  animation: iv-float-b 6.5s ease-in-out infinite;
}

.p-interview__feature-dot.--d3 {
  width: 20%;
  bottom: 15%;
  right: 5%;
  animation: iv-float-c 7s ease-in-out infinite;
}

  /* SP：テキストオーバーレイの余白を縮小 */
  .p-interview__body {
    padding: 1rem 0.75rem 0.75rem;
  }

  /* SP：名前以外の文字を小さく（顔への被りを軽減） */
  .p-interview__catch {
    font-size: 0.5rem; 
    margin-block-end: 0.5em;
  }

  .p-interview__role {
    font-size: 0.4rem; /* 11px */
  }

  .p-interview__name {
    font-size: var(--fs-18, 1.125rem);
  }
}
