@charset "utf-8";

/* =========================
   Staff Page
========================= */
.staffPage{
  padding: clamp(60px, 10vw, 90px) 0;
}

.staffPage__inner{
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.staffPage__title{
  margin: 0 0 clamp(18px, 3vw, 28px);
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: .02em;
}

/* grid: PC 3 columns / SP stack */
.staffGrid{
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(50px, 2vw, 22px);
}

/* card base（※囲み線なし） */
.staffCard{
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  width: 100%;
  max-width: 760px;
    margin: 0 auto;
}

/* top row */
.staffCard__top{
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  column-gap: 16px;
      border-bottom: 1px solid var(--accent);
}

/* image circle */
.staffCard__media{
  width: min(140px, 32vw);
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  overflow: hidden;
  background: #f2f2f2;
  margin-bottom: 10px;
}

.staffCard__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* text */
.staffCard__role{
  margin: 0 0 6px;
  font-size: 13px;
  letter-spacing: .02em;
  opacity: .85;
}

.staffCard__name{
  margin: 0;
  letter-spacing: .03em;
  line-height: 1.35;

  /* 名前の下にunderline */
  display: inline-block;
  padding-bottom: 8px;
  /* border-bottom: 1px solid rgba(0,0,0,.22); */
}

.staffCard__roman{
  display: block;
  margin-top: 4px;
  font-size: .78em;
  letter-spacing: .06em;
  opacity: .7;
  font-weight: 500;
  font-size: 16px;
  color: var(--muted);
}

.staffCard__head {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* body（本文は下に） */
.staffCard__body{
  margin-top: 12px;
}

.staffCard__text{
      /* margin: 0 0 10px; */
    line-height: 1.9;
    font-size: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.staffCard__text p {
  margin-bottom: 0;
}

.staffCard__text:last-child{ margin-bottom: 0; }

/* ========== SP：肩書・名前＋写真を水平中央揃え（本文は下） ========== */
/* @media (max-width: 767px){
  .staffCard__top{
    justify-content: center;
  }

  .staffCard__head{
    text-align: center;
  }

  .staffCard__media{
    width: min(110px, 28vw);
  }

  .staffCard__body{
    text-align: left; 
  }
} */

/* ========== PC：画像 → 肩書・名前 → 本文 ========== */
@media (max-width: 767.98px){
    .staffGrid {
        grid-template-columns: 1fr;
    }

    .staffCard {
        max-width: 600px;
    }

  .staffCard__top{
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 10px;
  }

  /* 並び順を変更 */
  .staffCard__media{
    order: 1;   /* 画像が一番上 */
    width: min(280px, 40vw);
  }

  .staffCard__head{
    order: 2;   /* 肩書・名前が次 */
    text-align: center;
  }

  .staffCard__body{
    order: 3;   /* 紹介文が最後 */
    margin-top: 14px;
  }

  .staffCard__body div {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
}