/* メンバー紹介ページ（templates/members.html）のスタイル。管理画面のメンバーの編集画面の「公開サイトでの見え方」もこのファイルを読む（2026-11-24 にページの <style> から切り出した） */
/* メンバー一覧：ふだんはモノクロの真面目な顔。カーソルを乗せると、カードが手前に浮いて 1 回転し（裏は WUUZY ブルーに白い WUUZY のロゴ）、
   表に戻ったときにはカラーの笑顔になっている（members-flip.js が動かす） */
.mem-list { position: relative; z-index: 2; padding: 0 var(--gutter); max-width: 1400px; margin: 0 auto; }
.mem-list h2 { margin-top: 10px; font-size: clamp(24px, 2.4vw, 34px); font-weight: 700; letter-spacing: .06em; line-height: 1.5; }
.mem-list h2 .ph { display: inline-block; }   /* 1 行に入らないときは「WUUZYを支える」「メンバー」で区切る */
/* 部署で絞り込む：お知らせのカテゴリと同じ立体のボタン（選んだものは青） */
.depts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; list-style: none; }
.depts button { padding: 13px 24px; border: 0; border-radius: 999px; color: #3F86C6; font: 700 13px/1 var(--ja); letter-spacing: .06em; cursor: pointer; background: #F7F9FB;
  box-shadow: inset 0 2px 1px rgba(255,255,255,1), inset 0 -2px 2px rgba(38,51,61,.12), inset 2px 0 2px rgba(38,51,61,.04);
  transition: transform .3s cubic-bezier(.2,.7,.1,1), box-shadow .3s, background .25s, color .25s; }
.depts button:hover { transform: scale(var(--hv-scale)); }
.depts button[aria-pressed="true"] { color: #fff; background: #0080C8; box-shadow: inset 0 2px 1px rgba(183,209,234,.95), inset 0 -2px 2px rgba(40,90,150,.45), inset 2px 0 2px rgba(40,90,150,.18); }
/* SP の部署の絞り込み：ボタンの代わりに出すプルダウン（白い立体の丸い枠に、右端の青い丸の下向き矢印） */
.depts-sel { display: none; position: relative; z-index: 5; margin-top: 24px; }
.depts-sel-btn { position: relative; display: flex; align-items: center; width: 100%; height: 52px; padding: 0 64px 0 20px; border: 0; border-radius: 999px; color: var(--ink, #26333D); font: 700 14px/1 var(--ja); letter-spacing: .04em; text-align: left; cursor: pointer;
  background: #F7F9FB; box-shadow: inset 0 2px 1px #fff, inset 0 -2px 2px rgba(38,51,61,.12), 0 4px 12px rgba(26,51,77,.08); }
.depts-sel-btn:focus-visible { outline: 2px solid var(--wuuzy-blue, #0080C8); outline-offset: 3px; }
.depts-sel-btn::after { content: ""; position: absolute; right: 10px; top: 10px; width: 32px; height: 32px; border-radius: 50%;
  background: #0080C8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.5L6 6l4.5-4.5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px 8px no-repeat; }
.depts-sel-btn[aria-expanded="true"]::after { transform: rotate(180deg); }
/* 一覧はボタンの真下にそのまま出す（動きを付けない） */
.depts-sel-list { position: absolute; left: 0; right: 0; top: calc(100% + 8px); max-height: 60vh; overflow-y: auto; padding: 8px 0; list-style: none; border-radius: 16px; background: #fff; box-shadow: 0 12px 28px rgba(26,51,77,.18); }
.depts-sel-list[hidden] { display: none; }
.depts-sel-list li { padding: 12px 20px; font-size: 14px; font-weight: 700; letter-spacing: .04em; color: var(--ink, #26333D); cursor: pointer; }
.depts-sel-list li[aria-selected="true"] { color: #0080C8; background: #E6F1FA; }
.depts-sel-list li:focus { outline: none; background: #EEF3F8; }
.depts-sel-list li:focus-visible { outline: 2px solid var(--wuuzy-blue, #0080C8); outline-offset: -2px; }
@media (max-width: 820px) { .depts { display: none; } .depts-sel { display: block; } }
/* SP のカード（2 列）：Figma の SP と同じ並び（写真 → 10px → タグ・氏名・役職 → 10px → ボタン）。タグは写真の左端にそろえ、氏名は 1 行、ボタンはカード幅。
   下の基本の指定（.mem .who・.mem .acts）より後に読まれても負けないよう、.mem-grid から書く */
@media (max-width: 820px) {
  .mem-grid .mem .who { margin-top: 10px; padding: 0 34px 0 0; }
  .mem-grid .mem h3 { font-size: 17px; white-space: nowrap; }
  .mem-grid .mem .tag { max-width: 100%; padding: 5px 8px; font-size: 10px; letter-spacing: 0; }
  .mem-grid .mem .who:not(:has(.note-btn)) { padding-right: 0; }   /* note のボタンが無いカードは右の空きを取らず、タグを 1 行に収める */   /* 長い部署名（コンサルティングセールス）も note のボタンが無ければ 1 行に収まる大きさ */
  .mem-grid .mem .who:has(.note-btn) .tag { width: min-content; max-width: 100%; white-space: normal; word-break: keep-all; }   /* 2 行にしたときは長いほうの行の幅に詰める */
  .mem-grid .mem .note-btn { top: 6px; right: 2px; width: 28px; height: 28px; }
  .mem-grid .mem .note-btn svg { width: 11px; height: 11px; }
  .mem-grid .mem .acts { margin-top: auto; padding: 10px 0 0; }
  .mem-grid .mem .acts .btn { width: 100%; padding: 6px 6px 6px 14px; gap: 6px; font-size: 11.5px; letter-spacing: 0; }
  .mem-grid .mem .acts .btn .arw { width: 30px; height: 30px; font-size: 12px; }
}
.mem-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 56px 24px; margin-top: 40px; list-style: none; }
/* カードを縦に並べ、「この人に話を聞きたい」を一番下にそろえる（役職・note の有無で高さが違っても、ボタンの高さがそろう） */
.mem { display: flex; flex-direction: column; }
.mem[hidden] { display: none; }
/* ページ送り：お知らせと同じ白い立体の丸（いまのページは青） */
.pager { display: flex; justify-content: center; gap: 10px; margin-top: 56px; list-style: none; }
.pager a, .pager span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #3F86C6; font-family: var(--latin); font-size: 13px; font-weight: 700; background: #F7F9FB; box-shadow: inset 0 2px 1px rgba(255,255,255,1), inset 0 -2px 2px rgba(38,51,61,.12), inset 2px 0 2px rgba(38,51,61,.04); transition: transform .3s cubic-bezier(.2,.7,.1,1); }
.pager a:hover { transform: scale(var(--hv-scale-round)); }
.pager [aria-current="page"] { color: #fff; background: #0080C8; box-shadow: inset 0 2px 1px rgba(183,209,234,.95), inset 0 -2px 2px rgba(40,90,150,.45), inset 2px 0 2px rgba(40,90,150,.18); }
/* ページの頭：職種別の人数。白いカード（他の下層ページのカードと同じ角丸・影）を 4 列に並べ、大きな青い数字で見せる（スマホは2列） */
.dept-count { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 96px; list-style: none; }
.dept-count li { display: flex; flex-direction: column; min-width: 0; padding: 28px 28px 30px; border-radius: 16px; background: #fff; box-shadow: 0 10px 32px rgba(38,51,61,.05); }
.dept-count .en { min-height: 1.4em; font-family: var(--latin); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; color: var(--wuuzy-blue, #0080C8); }
.dept-count .d { margin-top: 8px; font-size: 14px; font-weight: 700; letter-spacing: .04em; color: var(--ink); }
.dept-count .n { margin-top: auto; padding-top: 20px; font-family: var(--latin); font-size: 72px; font-weight: 800; line-height: .95; color: var(--wuuzy-blue, #0080C8); }
.dept-count .n small { margin-left: 4px; font-family: var(--ja); font-size: 20px; font-weight: 700; color: var(--ink); }
@media (max-width: 820px) {
  .dept-count { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 64px; }
  .dept-count li { padding: 18px 16px 20px; border-radius: 12px; }
  .dept-count .d { font-size: 12.5px; }
  .dept-count .n { padding-top: 14px; font-size: 48px; }
  .dept-count .n small { font-size: 16px; }
}

/* 部署のタグ：お知らせのカテゴリと同じ白い立体の小さな印 */
/* この人に話を聞きたい：お問い合わせを、この人を担当者に入れた状態で開く（白い立体のボタン） */
/* ボタンの並び：「この人に話を聞きたい」と、note を書いている人には note へのボタン */
.mem .acts { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 21px 10px 0; }
/* 部署のタグ・名前・役職のまとまり。note の丸ボタンはこの右上に置く */
.mem .who { position: relative; padding: 0 62px 0 10px; }   /* 写真より 10px 内側に入れる（右は note の丸ボタンの分を足す） */
/* note の丸ボタン：白い立体に黒い note のロゴ（n）。名前の右上に置き、乗せると少しふくらむ */
.mem .note-btn { position: absolute; top: 12px; right: 10px; display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: #F7F9FB; box-shadow: inset 0 2px 1px rgba(255,255,255,1), inset 0 -2px 2px rgba(38,51,61,.12), inset 2px 0 2px rgba(38,51,61,.04); transition: transform .3s cubic-bezier(.2,.7,.1,1); }
.mem .note-btn svg { width: 16px; height: 16px; fill: #000; }
.mem .note-btn:hover { transform: scale(var(--hv-scale-round)); }
.mem .note-btn:focus-visible { outline: 2px solid var(--wuuzy-blue); outline-offset: 3px; }
.mem .ask { flex: none; padding: 6px 6px 6px 18px; font-size: 12.5px; gap: 10px; letter-spacing: .03em; white-space: nowrap; }
.mem .ask .arw { width: 30px; height: 30px; font-size: 12px; }
@media (min-width: 560px) and (max-width: 820px) { .dept-count { grid-template-columns: repeat(3, minmax(0, 1fr)); } }   /* SP と PC の間は、入るので 3 列 */
@media (max-width: 960px) { .mem-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 16px; } }
/* iPhone Duo を開いた横向きの幅（700px 以上）は 3 列 */
@media (min-width: 700px) and (max-width: 960px) { .mem-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* 幅 375〜389px はカードが細く「この人に話を聞きたい →」が収まらないので詰める */
@media (min-width: 375px) and (max-width: 389px) {
  .mem-grid .mem .acts .btn { padding: 5px 5px 5px 10px; gap: 4px; font-size: 10.5px; }
  .mem-grid .mem .acts .btn .arw { width: 24px; height: 24px; font-size: 11px; }
}
/* 幅 375px 未満はカードを 1 列に積む。カードが広いので、note のボタンがあってもタグは 1 行にする */
@media (max-width: 374px) {
  .mem-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .mem-grid .mem .who:has(.note-btn) .tag { width: auto; white-space: nowrap; }
}
