/* =====================================================
   一覧ページ用 スタッフ グリッド
===================================================== */

.staff-list {
  display: grid;
  gap: 32px;
}

/* サムネイル */
.staff-thumb img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  margin-bottom: 12px;
  border-radius: 12px;
}

/* 名前 */
.staff-name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

/* 役職 */
.staff-position {
  margin: 4px 0 8px;
  font-size: 14px;
  color: #666;
  text-align: center;
}

/* コメント（吹き出しフレーム） */
.staff-comment {
  margin-top: 10px;
  padding: 14px 16px;
  background: #f3fbff;
  border: 1px solid #d6ebf5;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: #333;
  position: relative;
}

/* 吹き出しの尻尾 */
.staff-comment::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 30px;
  border-width: 0 10px 10px;
  border-style: solid;
  border-color: transparent transparent #d6ebf5;
}

.staff-comment::after {
  content: "";
  position: absolute;
  top: -8px;
  left: 30px;
  border-width: 0 10px 10px;
  border-style: solid;
  border-color: transparent transparent #f3fbff;
}


/* =====================================================
   固定ページ用 スタッフ カラムグリッド
   ショートコード: [staff_columns]
===================================================== */

.staff-columns {
  display: grid;
  gap: 32px;
  margin: 48px 0;
}

.staff-column-item {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  text-align: center;
}

.staff-column-thumb img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 12px;
}

.staff-column-name {
  margin: 10px 0 4px;
  font-size: 16px;
  font-weight: 700;
}

.staff-column-position {
  margin: 0 0 8px;
  font-size: 13px;
  color: #666;
}

.staff-column-comment {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #d6ebf5;
  background: #f3fbff;
  font-size: 13px;
  line-height: 1.7;
}


/* =====================================================
   スタッフ カルーセル
===================================================== */

/* WRAPPER */
.staff-carousel-wrapper {
  position: relative;
  max-width: 1100px;
  margin: 30px auto;
}

/* VIEWPORT */
.staff-carousel-viewport {
  overflow: hidden;
  width: 100%;
}

/* INNER SCROLLER */
.staff-carousel-inner {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 20px;
}

/* scrollbar非表示 */
.staff-carousel-inner::-webkit-scrollbar {
  display: none;
}

/* SLIDE */
.staff-slide {
  flex: 0 0 300px;
  scroll-snap-align: start;
}

/* SLIDE FRAME */
.staff-slide-inner {
  height: 100%;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  padding: 16px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
}

/* ARROWS */
.staff-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f86e00;
  color: #fff;
  font-size: 22px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.staff-arrow.prev {
  left: -12px;
}

.staff-arrow.next {
  right: -12px;
}


/* =====================================================
   スタッフページ ビジュアル
===================================================== */

/* 上部ビジュアル */
.staff-top-visual {
  margin: 24px 0 40px;
}

.staff-top-visual img {
  width: 100%;
  height: auto;
  display: block;
}


/* =====================================================
   下部 画像＋テキストエリア
===================================================== */

.staff-bottom-visual {
  position: relative;
  background-image: url("https://megabox-nasu.com/wp-content/uploads/2025/12/staff-thought-scaled.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  margin-top: 30px;
  display: flex;
  align-items: center;
}

.staff-bottom-overlay {
  background: rgba(0,0,0,0.35);
  width: 100%;
  display: flex;
  align-items: center;
}

.staff-bottom-text {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  color: #fff;
}

.staff-bottom-copy {
  margin: 0;
  line-height: 1.6;
}

/* carousel wrapper 微調整 */
.staff-carousel-wrapper {
  max-width: 1100px;        /* コンテンツ幅制限 */
  margin: 30px auto 30px;  /* 中央寄せ */
  padding: 0 24px;         /* スマホ左右余白 */
}

.staff-carousel {
  justify-content: center; /* カード全体を中央寄せ */
}


/* =====================================================
   レスポンシブ制御
===================================================== */

/* PC表示（3カラム） */
@media (min-width: 768px) {

  .staff-list,
  .staff-columns {
    grid-template-columns: repeat(3, 1fr);
  }

  .staff-bottom-visual {
    min-height: 420px;
  }

  .staff-bottom-copy {
    font-size: 18px;
  }
}

/* スマホ表示（2カラム） */
@media (max-width: 767px) {

  .staff-list,
  .staff-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .staff-comment {
    font-size: 13px;
    padding: 10px;
  }

  .staff-bottom-visual {
    min-height: 500px;
  }

  .staff-bottom-copy {
    font-size: 15px;
    padding: 30px 20px;
  }

  .staff-arrow.prev {
    left: 4px;
  }

  .staff-arrow.next {
    right: 4px;
  }

}