@charset "utf-8";

/* =========================================================
   スタッフ紹介ページ — company ページのデザイン言語に準拠
   ========================================================= */

/* ── ページ調整（company.css と同パターン） ── */
#staff article.page {
  padding-top: 10.2rem;
}
#staff article.page h1.vertical_head {
  top: 14rem;
}
@media screen and (max-width: 768px) {
  #staff article.page {
    padding-top: 5rem;
  }
  #staff article.page h1.vertical_head {
    top: 10rem;
  }
}

/* ── ページビジュアル ── */
#staff .page_visual .visual {
  display: block;
  margin: 0 auto 0 0;
  width: 155.8rem;
}
@media screen and (max-width: 768px) {
  #staff .page_visual .visual {
    height: 18rem;
    object-fit: cover;
    width: 29.2rem;
  }
}
.staff-visual-placeholder {
  width: 100%;
  height: 56rem;
  background: #d8d4cd;
}
@media screen and (max-width: 768px) {
  .staff-visual-placeholder {
    height: 22rem;
  }
}

/* ── コンテナ ── */
#staff .inner {
  width: 152.2rem;
  margin: 0 auto;
}
@media screen and (max-width: 768px) {
  #staff .inner {
    width: 100%;
    padding: 0 3rem;
    box-sizing: border-box;
  }
}

/* ── リード文（#philosophy 同構造・縦書き見出し） ── */
#staff-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  flex-direction: row-reverse;
  justify-content: space-between;
  margin-top: 10rem;
  padding-right: 33.8rem;
  position: relative;
}
@media screen and (max-width: 768px) {
  #staff-intro {
    margin-top: 8rem;
    padding: 0 3rem;
  }
}
.staff-intro__body {
  width: 84rem;
  padding-left: 20rem;
  padding-top: 6rem;
}
@media screen and (max-width: 768px) {
  .staff-intro__body {
    width: calc(100% - 10rem);
    padding-left: 0;
  }
}



/* ── content_body（company.css 準拠 — staff.css は company.css を読み込まないため転記） ── */
#staff .content_body {
  line-height: 1.9;
  font-size: 2rem;
}
@media screen and (max-width: 768px) {
  #staff .content_body {
    font-size: 1.556rem;
  }
}
#staff .content_body p {
  margin-top: 2rem;
}

/* ── left_line_head（company.css 準拠 — staff.css は company.css を読み込まないため転記） ── */
.common.left_line_head {
  margin-bottom: 8.2rem;
  padding-left: 20rem;
}
@media screen and (max-width: 768px) {
  .common.left_line_head {
    padding-left: 10rem;
    margin-bottom: 5rem;
  }
}
.common.left_line_head .jp {
  position: relative;
}
.common.left_line_head .jp::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -10rem;
  transform: translateY(-50%);
  width: 6rem;
  height: 1px;
  background-color: #333;
}
.common.left_line_head .en {
  margin-top: 2rem;
}

/* ── スタッフ一覧セクション ── */
.staff-members {
  margin-top: 14rem;
  margin-bottom: 18rem;
}
@media screen and (max-width: 768px) {
  .staff-members {
    margin-top: 8rem;
    margin-bottom: 10rem;
  }
}

/* ── カードグリッド ── */
.staff-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6rem 4rem;
  margin-top: 0;
  padding: 0;
  list-style: none;
}
@media screen and (max-width: 1023px) {
  .staff-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 5rem 3rem;
  }
}
@media screen and (max-width: 768px) {
  .staff-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem 2rem;
  }
}

/* ── カード ── */
.staff-card-wrap {
  display: block;
}

.staff-card {
  display: block;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 0;
}

/* 写真 */
.staff-card__photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #e8e4dd;
}
.staff-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* デフォルト: 上部15%（顔エリア中央）— WP管理画面の_staff_photo_focal メタフィールドで個別調整 */
  object-position: var(--photo-fp, center top);
  transition: transform 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
}
.staff-card:hover .staff-card__photo img {
  transform: scale(1.04);
}
.staff-card__photo-placeholder {
  width: 100%;
  height: 100%;
  background: #d8d4cd;
}

/* 本文エリア */
.staff-card__body {
  padding: 2rem 0 0;
}
.staff-card__catch {
  font-size: 1.2rem;
  color: #888;
  letter-spacing: 0.05em;
  margin-bottom: 0.8rem;
  line-height: 1.6;
}
@media screen and (max-width: 768px) {
  .staff-card__catch {
    font-size: 1.1rem;
  }
}

/* 名前（company の .jp フォント） */
.staff-card__name.jp {
  font-family: "Hiragino Mincho ProN", "Times New Roman", "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", serif;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #333;
  margin-top: 0;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}
@media screen and (max-width: 768px) {
  .staff-card__name.jp {
    font-size: 1.6rem;
  }
}

.staff-card__position {
  font-size: 1.2rem;
  color: #888;
  letter-spacing: 0.06em;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}
@media screen and (max-width: 768px) {
  .staff-card__position {
    font-size: 1.1rem;
  }
}

/* btn.detail パターン（common.css 準拠） */
.staff-card__more.btn.detail {
  font-size: 1.4rem;
  margin-top: 0.4rem;
}
@media screen and (max-width: 768px) {
  .staff-card__more.btn.detail {
    font-size: 1.2rem;
  }
}

/* ── モーダル ── */
.staff-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 6rem;
  pointer-events: none;
  box-sizing: border-box;
}
.staff-modal.is-open {
  pointer-events: auto;
}
.staff-modal:not(.is-open) .staff-modal__backdrop,
.staff-modal:not(.is-open) .staff-modal__outer {
  opacity: 0;
  visibility: hidden;
}

.staff-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(30, 25, 20, 0.6);
  transition: opacity 0.3s, visibility 0.3s;
  cursor: pointer;
}

/* outer — navボタンとdialogをflexで横並びにし、overflowクリップを回避 */
.staff-modal__outer {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 118rem;
  max-height: 90vh;
  min-height: 0;
  transition: opacity 0.3s, visibility 0.3s;
}

/* dialog — outerの中でflexで拡縮 */
.staff-modal__dialog {
  flex: 1;
  min-width: 0;
  min-height: 0;
  position: relative;
  background: #fff;
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 8rem 8rem 8rem;
  box-sizing: border-box;
}
@media screen and (max-width: 768px) {
  .staff-modal {
    padding: 2rem;
    align-items: flex-start;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .staff-modal__outer {
    flex-direction: column;
    max-width: 100%;
    max-height: none;
  }
  .staff-modal__dialog {
    max-height: none;
    padding: 6rem 3rem 4rem;
    width: 100%;
    overflow-y: visible;
  }
}

/* 閉じるボタン */
.staff-modal__close {
  position: absolute;
  top: 2.8rem;
  right: 3.2rem;
  width: 3.2rem;
  height: 3.2rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.staff-modal__close span {
  display: block;
  width: 100%;
  height: 1px;
  background: #333;
  position: absolute;
  left: 0;
  top: 50%;
}
.staff-modal__close span:first-child {
  transform: rotate(45deg);
}
.staff-modal__close span:last-child {
  transform: rotate(-45deg);
}

/* 前後ナビ — outerのflex itemとして左右に配置 */
.staff-modal__nav {
  flex-shrink: 0;
  width: 5.7rem;
  height: 6rem;
  background: url(../images/common/arrow_black.svg) center center / 1.8rem 3.2rem #fff no-repeat;
  border: none;
  cursor: pointer;
  font-size: 0;
}
.staff-modal__nav--prev {
  transform: scaleX(-1);
}
@media screen and (max-width: 768px) {
  .staff-modal__nav {
    position: relative;
    width: 50%;
    height: 4.8rem;
    background-size: 1.1rem 2rem;
    background-color: #f5f3f0;
  }
  .staff-modal__nav--prev {
    transform: scaleX(-1);
  }
  .staff-modal__nav--next {
    transform: none;
  }
}

/* モーダル内レイアウト（message_wrap パターン準拠） */
.staff-modal__layout {
  display: flex;
  flex-direction: row-reverse;
  gap: 10rem;
  align-items: flex-start;
}
@media screen and (max-width: 768px) {
  .staff-modal__layout {
    flex-direction: column;
    gap: 3rem;
  }
}

/* 写真 */
.staff-modal__photo {
  width: 100%;
  max-width: 30rem;
  flex-shrink: 0;
}
.staff-modal__photo img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
}
@media screen and (max-width: 768px) {
  .staff-modal__photo {
    max-width: 18rem;
  }
}
.staff-modal__photo-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #d8d4cd;
}

/* 本文 */
.staff-modal__body {
  flex: 1;
  min-width: 0;
}

.staff-modal__furigana {
  font-size: 1.2rem;
  color: #888;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

.staff-modal__name.jp {
  font-family: Hiragino Mincho ProN, Times New Roman, 游明朝, YuMincho, ヒラギノ明朝 ProN W3, serif;
  font-size: 3.2rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #333;
  line-height: 1.4;
  margin: 0 0 0.8rem;
}
@media screen and (max-width: 768px) {
  .staff-modal__name.jp {
    font-size: 2.4rem;
  }
}

.staff-modal__position {
  font-size: 1.4rem;
  color: #888;
  letter-spacing: 0.06em;
  padding-bottom: 3rem;
  border-bottom: 1px solid #d8d4cd;
  margin-bottom: 3rem;
}
@media screen and (max-width: 768px) {
  .staff-modal__position {
    font-size: 1.3rem;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
  }
}

/* meta dl（dlist_outline パターン準拠） */
.staff-modal__meta {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}
.staff-modal__meta-row {
  display: flex;
  gap: 4rem;
  border-bottom: 1px solid #d8d4cd;
}
@media screen and (max-width: 768px) {
  .staff-modal__meta-row {
    flex-direction: column;
    gap: 0.4rem;
  }
}
.staff-modal__meta dt {
  width: 18rem;
  flex-shrink: 0;
  padding: 2.4rem 0;
  font-size: 1.4rem;
  color: #888;
  letter-spacing: 0.06em;
  line-height: 1.7;
}
@media screen and (max-width: 768px) {
  .staff-modal__meta dt {
    width: auto;
    padding: 1.6rem 0 0;
    font-size: 1.2rem;
  }
}
.staff-modal__meta dd {
  padding: 2.4rem 0;
  font-size: 1.6rem;
  line-height: 1.9;
  color: #333;
  margin: 0;
}
@media screen and (max-width: 768px) {
  .staff-modal__meta dd {
    padding: 0.4rem 0 1.6rem;
    font-size: 1.5rem;
  }
}

/* スクロールロック（modal-open時） */
body.staff-modal-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
}