/* ============================
   index-staff.css - LUCEY themed staff carousel (最終版)
   名前・フリガナ・肩書きは黒でシンプルに。
   LUCEY STAFF 見出しのみ派手な登場アニメ。
   ============================ */

/* 共通変数が vars.css にある前提 */
:root{
  --lucey-ink: #0f0f10;
  --lucey-accent: #00eaff;
  --lucey-accent-2: #7be3ff;
  --lucey-radius: 8px;
  --lucey-ease: cubic-bezier(.16,.84,.44,1);
}

/* container */
.lucey-staff-carousel {
  position: relative;
  width: 100%;
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Inter", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* viewport (visible area) */
.lucey-staff-viewport {
  position: relative;
  overflow: hidden;
  width: calc(100% - 120px);
  background: linear-gradient(180deg, rgba(0,0,0,0.02), transparent 40%);
  padding: 10px;
  border-radius: var(--lucey-radius);
  box-shadow: 0 6px 30px rgba(8,8,10,0.12), inset 0 1px 0 rgba(255,255,255,0.02);
}

/* nav buttons */
.staff-carousel-btn {
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(0,0,0,0.06);
  color: var(--lucey-ink);
  border-radius: 10px;
  cursor: pointer;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease, background .18s ease;
}
.staff-carousel-btn:hover { transform: translateY(-3px); background: rgba(0,0,0,0.09); }

/* track */
.lucey-staff-track {
  display: flex;
  gap: 14px;
  transition: transform 700ms var(--lucey-ease);
  will-change: transform;
  align-items: stretch;
  padding-bottom: 4px;
}

/* card base */
.lucey-staff-card {
  flex: 0 0 calc((100% - (14px * 4)) / 5);
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.03);
  backdrop-filter: blur(6px) saturate(120%);
  transition: transform .28s var(--lucey-ease), box-shadow .28s var(--lucey-ease);
  min-width: 0;
  overflow: hidden;
}

/* image */
.lucey-staff-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(2,6,10,0.18);
  border: 1px solid rgba(0,0,0,0.06);
}

/* ----------------------------
   テキスト（**ここを黒でシンプルに**）
   ---------------------------- */
.lucey-staff-card .name {
  font-size: 15px;
  font-weight: 700;
  color: #0b0b0b; /* 黒 */
  text-shadow: none;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lucey-staff-card .kana {
  font-size: 11px;
  color: #0b0b0b; /* 黒 */
  opacity: .85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lucey-staff-card .title {
  font-size: 11px;
  color: #0b0b0b; /* 黒 */
  opacity: .9;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* hover */
.lucey-staff-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 18px 40px rgba(2,6,10,0.28);
}

/* Staff More card (left fixed) - シンプル黒寄せ */
.lucey-staff-card.staff-more {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff; /* シンプルに白背景で黒文字 */
  color: #0b0b0b;
  min-width: 0;
  border: 1px solid rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
}
.lucey-staff-card.staff-more .more-inner { text-align: center; padding: 6px 8px; }
.lucey-staff-card.staff-more .more-title {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .06em;
  color: #0b0b0b; /* 黒 */
  text-shadow: none;
}
.lucey-staff-card.staff-more .more-sub { font-size: 12px; opacity: .85; margin-top: 6px; color: #0b0b0b; }

/* Staff More のサイバー光スイープは控えめに（残すか消すか選べます） */
.lucey-staff-card.staff-more::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,234,255,0.12), transparent);
  transform: skewX(-20deg);
  animation: luceySweep 6s ease-in-out infinite;
  pointer-events: none;
  opacity: 0.6;
}
@keyframes luceySweep {
  0%   { left: -120%; opacity: 0; }
  40%  { left: 120%; opacity: .6; }
  100% { left: 120%; opacity: 0; }
}

/* subtle cyber accent line on top of viewport (控えめ) */
.lucey-staff-viewport::before {
  content: "";
  position: absolute;
  left: 12px;
  bottom: 8px;
  width: calc(100% - 24px);
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0,234,255,0.12), transparent);
  filter: blur(6px);
  pointer-events: none;
  opacity: .6;
}

/* when carousel hovered, reduce transition to feel responsive */
.lucey-staff-carousel:hover .lucey-staff-track { transition-duration: 120ms; }

/* responsive: reduce visible count */
@media (max-width: 1200px) {
  .lucey-staff-card { flex: 0 0 calc((100% - (12px * 3)) / 4); }
  .lucey-staff-viewport { width: calc(100% - 96px); }
}
@media (max-width: 900px) {
  .lucey-staff-card { flex: 0 0 calc((100% - (10px * 2)) / 3); }
  .lucey-staff-viewport { width: calc(100% - 80px); }
}
@media (max-width: 600px) {
  .lucey-staff-card { flex: 0 0 calc((100% - (8px * 1)) / 2); }
  .lucey-staff-viewport { width: calc(100% - 64px); }
}
@media (max-width: 420px) {
  .lucey-staff-card { flex: 0 0 100%; }
  .lucey-staff-viewport { width: calc(100% - 56px); }
}

/* ============================
   LUCEY STAFF 見出し（中央＋派手な登場アニメ）
   最終的な色は黒で落ち着く（表示後は黒）
   ============================ */
.lucey-staff-heading {
  text-align: center;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: .14em;
  color: #0b0b0b; /* 最終色は黒 */
  margin: 64px 0 28px;
  position: relative;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  z-index: 2;
  overflow: visible;
  transform-origin: center;
  /* 登場アニメ（拡大＋光） */
  animation: luceyEntrance 1.2s cubic-bezier(.2,.9,.2,1) 0.06s both;
}

/* 見出し下の光ライン（登場時のみ派手に） */
.lucey-staff-heading::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%) scaleX(0.3);
  width: 260px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--lucey-accent), transparent);
  filter: blur(6px);
  opacity: 0;
  animation: luceyUnderline 1.6s cubic-bezier(.2,.9,.2,1) 0.12s both;
}

/* 大きな光のフラッシュ（見出し背後） */
.lucey-staff-heading::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  width: 520px;
  height: 140px;
  background: radial-gradient(circle at 50% 40%, rgba(0,234,255,0.14), transparent 40%);
  filter: blur(28px);
  opacity: 0;
  z-index: -1;
  pointer-events: none;
  animation: luceyGlow 1.4s cubic-bezier(.2,.9,.2,1) 0.06s both;
}

/* アニメ定義 */
@keyframes luceyEntrance {
  0%   { opacity: 0; transform: translateY(22px) scale(0.84) rotate(-1deg); filter: blur(6px); }
  60%  { opacity: 1; transform: translateY(-8px) scale(1.08) rotate(0deg); filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); filter: none; }
}

@keyframes luceyUnderline {
  0%   { opacity: 0; transform: translateX(-50%) scaleX(0.2); }
  40%  { opacity: 1; transform: translateX(-50%) scaleX(1.05); }
  100% { opacity: 0.9; transform: translateX(-50%) scaleX(1); }
}

@keyframes luceyGlow {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
  50%  { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
}

/* アニメ終了後は余計な光を消してシンプルに見せるための保険 */
.lucey-staff-heading.no-anim,
.lucey-staff-heading[aria-hidden="true"] {
  animation: none !important;
  opacity: 1;
}

/* Accessibility: ensure focus styles for buttons */
.staff-carousel-btn:focus {
  outline: 2px solid var(--lucey-accent);
  outline-offset: 2px;
  box-shadow: 0 6px 18px rgba(0,234,255,0.06);
}

/* Small utility: ensure long names wrap gracefully on very narrow cards */
.lucey-staff-card .name,
.lucey-staff-card .kana,
.lucey-staff-card .title {
  word-break: break-word;
}

/* End of file */
