@charset "UTF-8";
/****************************************
 *Members Page — チームスプリント
 ****************************************/

/* ===== Hero ===== */
.team-hero {
  padding: clamp(40px, 8vw, 96px) 0 0;
}

h2.team-hero__lead.jp {
  color: var(--blue);
  font-weight: 800 !important;
  font-size: clamp(22px, 3.2vw, 48px);
  line-height: 1.7;
  letter-spacing: .04em;
  margin-bottom: clamp(8px, 1.6vw, 12px);
  margin-bottom: 40px;
}

.team-contents {
  width: calc(100% - 60px);
  max-width: 1200px;
  margin: 0 auto;
}

.steam-section__txt {
  font-size: 1.6rem;
  margin: 40px auto;
  line-height: 1.9;
  letter-spacing: .03em;
}


.team-hero .section-label::before {
  content: "●";
  margin-right: 6px;
  font-size: .7em;
}

.team-hero__title.en {
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 800;
  color: var(--blue);
  font-size: clamp(44px, 8vw, 140px);
  line-height: 1.05;
  letter-spacing: .02em;
  margin: .2em 0 .3em;
}

.team-hero__lead.jp {
  color: var(--blue);
  font-weight: 800;
  font-size: clamp(22px, 3.2vw, 32px);
  line-height: 1.6;
  letter-spacing: .04em;
}

.team-hero__desc {
  margin-top: .6em;
  color: #333;
  line-height: 1.9;
  max-width: 56ch;
}

/* ===== Grid ===== */
.team-grid {
  padding: clamp(32px, 6vw, 80px) 0 clamp(40px, 8vw, 120px);
}

.team-grid__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 32px);
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 1000px) {
  .team-grid__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .team-grid__list {
    grid-template-columns: 1fr;
  }
}


/* ===== Card ===== */
.member-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .08);
  border: 1px solid rgba(0, 0, 0, .06);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto 1fr;
  transition: transform .25s ease, box-shadow .25s ease;
}

.member-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .12);
}

/* キャッチ */
.member-card__catch {
  order: 0;
  color: var(--blue);
  font-weight: 800;
  font-size: clamp(16px, 2.1vw, 20px);
  line-height: 1.6;
  letter-spacing: .03em;
  padding: 16px 18px 0;
}

/* ===== 画像（SVGマスク × グラデーション） ===== */
/* 画像枠：中央寄せ＆幅制限、縦長比率を個別調整可 */
.member-card__img.logo-mask {
  display: block;
  width: clamp(220px, 80%, 380px);
  margin: 12px auto 0;
  position: relative;
  aspect-ratio: var(--mask-aspect, 5 / 6);
  /* ← 個別上書き可 */
  overflow: hidden;

  /* マスク（Safari安定のため長いプロパティに分解） */
  -webkit-mask-image: var(--mask-url, url("/img/logo.svg"));
  mask-image: var(--mask-url, url("/img/logo.svg"));
  -webkit-mask-position: 50% var(--mask-pos-y, 0%);
  mask-position: 50% var(--mask-pos-y, 0%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: auto 100%;
  /* 高さにフィット＝下余白が出ない */
  mask-size: auto 100%;
}

/* グラデは枠全面に描画してスライド */
.member-card__img.logo-mask::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      var(--red, #d82a2a),
      var(--blue, #135ba4),
      var(--red, #d82a2a));
  background-size: 200% 100%;
  animation: grad-slide var(--grad-duration, 8s) linear infinite;
}

@keyframes grad-slide {
  from {
    background-position: 0% 0;
  }

  to {
    background-position: 200% 0;
  }
}

/* マスク対応ブラウザ：フォールバック画像は消す */
@supports ((-webkit-mask-image: url("")) or (mask-image: url(""))) {
  .member-card__img.logo-mask>img {
    display: none !important;
  }
}

/* 非対応ブラウザのフォールバック（静的表示） */
.member-card__img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* aspect-ratio 非対応（古いSafari等） */
@supports not (aspect-ratio: 1 / 1) {
  .member-card__img.logo-mask {
    height: 320px;
  }
}

/* ===== 本文 ===== */
.member-card__body {
  order: 2;
  padding: 12px 18px 18px;
}

.member-card__name {
  font-weight: 800;
  color: var(--blue);
  font-size: clamp(18px, 2.4vw, 20px);
  margin: 16px 0 24px;
}

/* バッジ */
.member-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 12px;
  border-radius: 999px;
  background: #334155;
  /* ← 余分な ; を削除 */
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
}

.badge--accent {
  background: var(--red);
}

/* スペック（ドットリーダー風） */
.member-spec {
  display: grid;
  gap: 16px;
  margin: 6px 0 10px;
}

.member-spec>div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  column-gap: 10px;
  font-size: 14px;
  letter-spacing: .02em;
}

.member-spec dt {
  color: #475569;
  position: relative;
}


.member-spec dd {
  color: #0f172a;
  font-weight: 700;
}

/* コメント（統合してここでまとめて指定） */
.member-card__note {
  padding: 16px 18px 0;
  font-size: 14px;
  color: #444;
  line-height: 1.8;
}

/* ===== Reveal（既存 scroll.js と連携） ===== */
:root {
  --rv-dur: .7s;
  --rv-ease: cubic-bezier(.2, .6, .2, 1);
}

.js .reveal {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition: opacity var(--rv-dur) var(--rv-ease),
    transform var(--rv-dur) var(--rv-ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* モーション配慮 */
@media (prefers-reduced-motion: reduce) {
  .member-card__img.logo-mask::before {
    animation: none;
  }

  .js .reveal,
  .js .reveal.is-visible {
    transition: none;
  }
}