/* メンバーのカード（メンバー紹介とトップのメンバーの段で共通）：写真のカード（乗せると回る。members-flip.js）と、部署のタグ・名前・役職 */
.mem .flip { position: relative; display: block; aspect-ratio: 310 / 380; perspective: 1100px; border-radius: 20px; }   /* 乗せると回るだけで押せないので、カーソルは指の形にしない（2026-11-17） */
.mem .flip:focus-visible { outline: 2px solid var(--wuuzy-blue); outline-offset: 4px; }
/* カードは右下のお問い合わせボタン・トップの W と同じ「つやのある青い立体」の調子にする。WebGL は使わず CSS だけで、
   ①縁の厚み（青い薄板を数枚重ねて、回ったときに側面が見える）②表裏の面取りの光（内側の白いハイライトと下の影）
   ③回っている間だけ面を横切る光の筋、で立体に見せる。動かすのは transform と opacity だけなので重くならない */
.mem { --t: 10px; }   /* カードの厚み */
.mem .flip-in { position: absolute; inset: 0; transform-style: preserve-3d; }
.mem.on .flip-in { will-change: transform; }
.mem .slab { position: absolute; inset: 0; border-radius: 20px; background: #0062A0; }
.mem .face { position: absolute; inset: 0; overflow: hidden; border-radius: 20px; -webkit-backface-visibility: hidden; backface-visibility: hidden; transform: translateZ(calc(var(--t) / 2)); }
.mem .back { transform: rotateY(180deg) translateZ(calc(var(--t) / 2)); display: grid; place-items: center;
  background: radial-gradient(120% 90% at 22% 12%, #3FA8E8 0%, #0080C8 48%, #006AAE 100%); }
/* 面取りの光：上と左の縁に白いハイライト、下の縁に影（お知らせのカテゴリのボタン・右下のボタンと同じ考え方） */
/* ふだんは平らな写真のまま。乗せたとき（.on）だけ面取りの光とつやを出す */
.mem .face::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  box-shadow: inset 0 3px 2px rgba(255,255,255,.55), inset 3px 0 3px rgba(255,255,255,.22), inset 0 -4px 5px rgba(0,40,80,.28), inset -2px 0 3px rgba(0,40,80,.12);
  background: linear-gradient(140deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 28%); }
.mem.on .face::after { opacity: 1; }
.mem .back::after { box-shadow: inset 0 3px 2px rgba(183,224,250,.95), inset 3px 0 3px rgba(183,224,250,.45), inset 0 -4px 5px rgba(0,40,90,.45), inset -2px 0 3px rgba(0,40,90,.25); background: none; }
.mem .face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mem .face .color { opacity: 0; }
/* 写真が無いメンバー：FV の地と同じ薄いグレーに、FV の文字の壁と同じ濃さのグレーで WUUZY のロゴを置く */
.mem .no-photo { display: grid; place-items: center; background: #ECEEF0; }
.mem .no-photo-logo { width: 58%; aspect-ratio: 423 / 92; background: #D4D7DA;
  -webkit-mask: url("/assets/logos/wuuzy-text.png") center / contain no-repeat; mask: url("/assets/logos/wuuzy-text.png") center / contain no-repeat; }
.mem .back img { position: static; width: 58%; height: auto; object-fit: contain; filter: brightness(0) invert(1) drop-shadow(0 2px 3px rgba(0,50,100,.35)); }
/* 回っている間だけ横切る光の筋 */
.mem .shine { position: absolute; inset: -10% -60%; pointer-events: none; opacity: 0; background: linear-gradient(105deg, rgba(255,255,255,0) 44%, rgba(255,255,255,.32) 50%, rgba(255,255,255,0) 56%); }
/* 浮いたときの影は、カードの外の別の層にして動かす（影そのものを描き直さない） */
.mem .drop { position: absolute; left: 8%; right: 8%; bottom: -6%; height: 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(38,51,61,.28), rgba(38,51,61,0)); opacity: 0; transform: scale(.8); pointer-events: none; }
.mem .meta { margin-top: 12px; }   /* Figma「ブラッシュアップ」：部署のタグ → 名前（大きく）→ 役職 → ボタン2つ */
.mem .tag { display: inline-block; padding: 6px 13px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: #3F86C6; white-space: nowrap; background: rgba(63,134,198,.1); }   /* 押せないので立体にしない */
/* 部署のタグは 1 行に収める。note のボタンがあるカードだけ、語の切れ目（<wbr>）で 2 行に折り返す */
.mem .who:has(.note-btn) .tag { white-space: normal; word-break: keep-all; }
.mem h3 { margin-top: 3px; font-size: 24px; font-weight: 700; line-height: 1.3; letter-spacing: .04em; }   /* タグと名前の間は 3px、名前と役職の間は 2px */
.mem .role { margin-top: 2px; font-size: 12px; font-weight: 700; line-height: 1.4; color: var(--ink-soft); letter-spacing: .06em; }
.mem .nm { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; }   /* イニシャルと役職を 1 行に並べる（2026-11-20） */
.mem .nm .role { margin-top: 0; }
