/**
 * スタッフ紹介ページ（納品データ・990px固定・ピクセル一致）
 * body.page-staff 時のみ適用
 */

.page-staff {
  --staff-w: 990px;
  --staff-bar-bg: #1d2198;
  --staff-blob-l: linear-gradient(90deg, #9adcf0 0%, #b1a6f3 100%);
  --staff-blob-r: linear-gradient(90deg, #97d8ef 0%, #b3aaf4 100%);
}

/* 縦書き・1文字縦並びの防止（横書きを明示） */
.page-staff,
.page-staff .p-staff-wrap,
.page-staff .p-staff-main,
.page-staff .p-staff-rep__text,
.page-staff .p-staff-card__text {
  writing-mode: horizontal-tb;
}

/* メイン・テキストブロックの幅つぶれ防止 */
.page-staff .p-staff-rep__text {
  min-width: 0;
  max-width: 100%;
}
.page-staff .p-staff-card__text {
  min-width: 0;
  max-width: 100%;
}

/* サイドバー非表示・スクロールバーなし（l-main をスクロールさせない） */
.page-staff .l-sidebar {
  display: none !important;
}

.page-staff .l-outer {
  min-block-size: auto;
  overflow: visible;
}

.page-staff .l-container {
  overflow: visible;
}

.page-staff .l-contents {
  inline-size: var(--staff-w);
  max-inline-size: var(--staff-w);
  width: var(--staff-w);
  max-width: var(--staff-w);
  overflow: visible;
}

.page-staff .l-main {
  overflow: visible;
  flex: 1 1 auto;
  min-inline-size: 0;
  min-width: min(100%, var(--staff-w));
}

.page-staff .p-page {
  padding: 0;
  max-width: none;
}

.p-page-staff {
  overflow: visible;
}

/* ラッパー：990px中央 */
.page-staff .p-staff-wrap {
  width: var(--staff-w);
  max-width: 100%;
  margin: 0 auto;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: #222;
  line-height: 1.85;
  box-sizing: border-box;
}

/* ========== Hero（990×340） ========== */
.page-staff .p-staff-hero {
  position: relative;
  width: var(--staff-w);
  height: 340px;
  overflow: hidden;
  background: #ddd;
  box-sizing: border-box;
}

.page-staff .p-staff-hero__bg {
  display: block;
  width: var(--staff-w);
  height: 340px;
  object-fit: cover;
  object-position: center;
}

.page-staff .p-staff-hero__bg--ph {
  position: absolute;
  inset: 0;
  background: #ddd;
}

/* タイトルパネル（左・半透明黒） */
.page-staff .p-staff-hero-panel {
  position: absolute;
  left: 0;
  top: 126px;
  width: 308px;
  height: 117px;
  background: rgba(0, 0, 0, 0.58);
  display: flex;
  align-items: center;
  padding: 0 24px;
  box-sizing: border-box;
}

.page-staff .p-staff-hero-panel__left {
  width: 200px;
}

.page-staff .p-staff-hero-panel__en {
  margin: 0;
  color: #fff;
  font-size: 28px;
  line-height: 1.12;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.page-staff .p-staff-hero-panel__divider {
  width: 1px;
  height: 92px;
  background: rgba(255, 255, 255, 0.8);
  margin: 0 20px 0 8px;
  flex-shrink: 0;
}

.page-staff .p-staff-hero-panel__right {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}

/* ========== Main（幅100%・990pxいっぱい） ========== */
.page-staff .p-staff-main {
  position: relative;
  padding-bottom: 0;
  width: 100%;
}

/* セクションタイトルバー（幅100%） */
.page-staff .p-staff-section__title {
  width: 100%;
  padding: 12px 24px;
  margin-left: 0;
  background: var(--staff-bar-bg);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 23px;
  position: relative;
  box-sizing: border-box;
}

.page-staff .p-staff-section__title::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 9px;
  width: 2px;
  height: 29px;
  background: #fff;
}

/* ========== 代表メッセージ ========== */
.page-staff .p-staff-section--ceo {
  padding-top: 60px;
}

.page-staff .p-staff-section__body {
  position: relative;
  margin-top: 16px;
  width: 100%;
}

.page-staff .p-staff-rep {
  position: relative;
  width: 100%;
  margin-left: 0;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: flex-start;
}

/* 代表写真＋左ブロブ（写真は元画像のアスペクト比のまま・上下を切らない） */
.page-staff .p-staff-rep__lead {
  width: 390px;
  max-width: 100%;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.page-staff .p-staff-rep__photo {
  width: 100%;
  margin: 0;
  background: #ececec;
}

.page-staff .p-staff-rep__photo img {
  display: block;
  width: 100%;
  height: auto;
}

/* 代表メッセージ：右カラム本文の背後にグラデーション */
.page-staff .p-staff-rep__text {
  flex: 1;
  min-width: 0;
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: #222;
  letter-spacing: 0.1px;
  line-height: 1.75;
}

.page-staff .p-staff-rep__text-body {
  position: relative;
  z-index: 1;
}

.page-staff .p-staff-blob--left {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(282px, 88%);
  height: 210px;
  background: var(--staff-blob-l);
  border-radius: 58% 42% 52% 48% / 47% 58% 42% 53%;
  pointer-events: none;
  z-index: 0;
  transform: translate(0, 12%);
}

.page-staff .p-staff-rep__text-body p {
  margin: 0 0 8px 0;
}

.page-staff .p-staff-rep__text-body p:last-child {
  margin-bottom: 0;
}

/* ========== スタッフ紹介 ========== */
.page-staff .p-staff-section--staff {
  margin-top: 54px;
  padding-bottom: 46px;
  min-height: 530px;
}

.page-staff .p-staff-staff-grid {
  width: 100%;
  margin-left: 0;
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 20px;
  position: relative;
  z-index: 2;
}

.page-staff .p-staff-card {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0 12px;
}

/* 3列時：中央カードのみ左右に区切り線 */
.page-staff .p-staff-staff-grid .p-staff-card:nth-child(2) {
  border-left: 1px solid #ccc;
  border-right: 1px solid #ccc;
}

.page-staff .p-staff-card__photo {
  width: 100%;
  height: 400px;
  background: #efefef;
  margin-bottom: 0;
  overflow: hidden;
}

.page-staff .p-staff-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-staff .p-staff-card__text {
  margin-top: 0;
  padding-top: 13px;
  border-top: 1px solid #ccc;
  font-size: 15px;
  line-height: 1.85;
  color: #222;
}

.page-staff .p-staff-card__text p {
  margin: 0 0 6px 0;
}

.page-staff .p-staff-card__text p:last-child {
  margin-bottom: 0;
}

.page-staff .p-staff-blob--right {
  position: absolute;
  right: -34px;
  bottom: -26px;
  width: 485px;
  height: 250px;
  background: var(--staff-blob-r);
  border-radius: 57% 43% 58% 42% / 52% 44% 56% 48%;
  z-index: 1;
  pointer-events: none;
}

/* ========== フッター（スタッフ紹介時のみ・990px） ========== */
.page-staff .l-footer {
  background: #fff !important;
  padding: 0;
}

.page-staff .l-footer .l-inner {
  padding: 0;
  max-width: none;
}

.page-staff .l-footer .p-footer-banner,
.page-staff .l-footer .p-footer-main {
  display: none !important;
}

.page-staff .p-footer-copyright {
  width: var(--staff-w) !important;
  max-width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
  background: var(--staff-bar-bg) !important;
  color: #fff;
  padding: 14px 20px;
  text-align: center;
  box-sizing: border-box;
}

.page-staff .p-footer-copyright p {
  margin: 0;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.2px;
}

/* ========== レスポンシブ（標準） ========== */
/* タブレット・狭い画面（990px以下） */
@media (max-width: 990px) {
  .page-staff .l-contents {
    width: 100%;
    max-width: 100%;
    inline-size: 100%;
    max-inline-size: 100%;
  }

  .page-staff .p-staff-wrap {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
  }

  .page-staff .p-staff-hero {
    max-width: none;
    height: 280px;
    margin-left: -20px;
    margin-right: -20px;
    width: calc(100% + 40px);
    box-sizing: content-box;
  }

  .page-staff .p-staff-hero__bg,
  .page-staff .p-staff-hero__bg--ph {
    width: 100%;
    height: 280px;
  }

  .page-staff .p-staff-hero-panel {
    top: 50%;
    transform: translateY(-50%);
    width: min(308px, 85%);
  }

  .page-staff .p-staff-section__title {
    width: 100%;
    margin-left: -20px;
    margin-right: -20px;
    width: calc(100% + 40px);
    box-sizing: content-box;
  }

  .page-staff .p-staff-rep {
    padding: 0;
  }

  /* 768px〜990px は3列のまま（狭いのでギャップのみ調整可）。1列は 767px 以下で適用 */
  .page-staff .p-staff-staff-grid {
    padding: 0;
    column-gap: 12px;
  }

  .page-staff .p-staff-card__photo {
    height: auto;
    aspect-ratio: 235 / 185;
  }

  .page-staff .p-footer-copyright {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
  }
}

/* スマートフォン（767px以下） */
@media (max-width: 767px) {
  .page-staff .p-staff-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* スタッフ紹介を縦1列に */
  .page-staff .p-staff-staff-grid {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }

  .page-staff .p-staff-staff-grid .p-staff-card:nth-child(2) {
    border-left: none;
    border-right: none;
  }

  .page-staff .p-staff-hero {
    height: 220px;
    margin-left: -16px;
    margin-right: -16px;
    width: calc(100% + 32px);
  }

  .page-staff .p-staff-hero__bg,
  .page-staff .p-staff-hero__bg--ph {
    height: 220px;
  }

  .page-staff .p-staff-hero-panel {
    width: min(280px, 90%);
    padding: 0 16px;
  }

  .page-staff .p-staff-hero-panel__en {
    font-size: 22px;
  }

  .page-staff .p-staff-hero-panel__right {
    font-size: 15px;
  }

  .page-staff .p-staff-section__title {
    margin-left: -16px;
    margin-right: -16px;
    width: calc(100% + 32px);
    padding: 10px 16px;
    font-size: 16px;
  }

  .page-staff .p-staff-section__title::before {
    height: 24px;
    top: 50%;
    transform: translateY(-50%);
  }

  .page-staff .p-staff-section--ceo {
    padding-top: 40px;
  }

  .page-staff .p-staff-section__body {
    min-height: 0;
  }

  /* 代表メッセージ：スマホでは写真→テキストの縦積み */
  .page-staff .p-staff-rep {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .page-staff .p-staff-rep__lead {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
  }

  .page-staff .p-staff-rep__text {
    flex: none;
    width: 100%;
  }

  .page-staff .p-staff-blob--left {
    width: min(200px, 70%);
    height: 150px;
    transform: translate(0, 8%);
  }

  .page-staff .p-staff-blob--right {
    width: 200px;
    height: 120px;
    right: -20px;
    bottom: -20px;
  }

  .page-staff .p-staff-rep__text,
  .page-staff .p-staff-card__text {
    font-size: 15px;
  }

  .page-staff .p-staff-section--staff {
    margin-top: 40px;
    padding-bottom: 32px;
    min-height: 0;
  }

  .page-staff .p-footer-copyright {
    padding: 12px 16px;
  }

  .page-staff .p-footer-copyright p {
    font-size: 11px;
  }
}
