@charset "UTF-8";
/* ============================================================
   assets/css/pages/member.css … メンバー紹介（page-member.php） 専用
   ・functions.php で、このページのときだけ style.css のあとに読み込む
   ・中身は以前の style.css の該当の章をそのまま移したもの（使っていない指定は削除）。章の番号は style.css のときのまま
   ============================================================ */

/* ============================================================
   22. メンバー紹介
     一覧 /member/          … 写真・所属・名前
     個別 /member/スラッグ/ … 写真・所属・名前・自己紹介文
   ============================================================ */
  /* ---------- 一覧 ---------- */
  .mbl{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:56px 32px; }
  .entry .mbl-card{ display:block; color:inherit; text-decoration:none; }
  .mbl-photo{ position:relative; aspect-ratio:4/5; background:var(--ice); overflow:hidden; }
  /* マウスを乗せると、写真のうしろに淡い青の面が少しずれて現れる（ずらす量10px＜カードの間32pxなので隣と重ならない） */
  .mbl-photo-wrap{ position:relative; }
  .mbl-photo-wrap::before{ content:""; position:absolute; inset:0; z-index:0; background:#d6e4f5; transform:translate(0,0); transition:transform .45s cubic-bezier(.2,.8,.2,1); }
  .mbl-photo-wrap .mbl-photo{ z-index:1; transition:transform .45s cubic-bezier(.2,.8,.2,1); }
  .mbl-card:is(:hover,:focus-visible) .mbl-photo-wrap::before{ transform:translate(10px,10px); }
  .mbl-card:is(:hover,:focus-visible) .mbl-photo-wrap .mbl-photo{ transform:translate(-4px,-4px); }
  @media (hover:none){ .mbl-photo-wrap::before{ display:none; } .mbl-card .mbl-photo-wrap .mbl-photo{ transform:none !important; } }
  @media (prefers-reduced-motion:reduce){ .mbl-photo-wrap::before, .mbl-photo-wrap .mbl-photo{ transition:none; } }
  /* カードの出方：画面に入ると下からふわっと（JSが動くときだけ .is-anim が付く） */
  .mbl.is-anim .mbl-card{ opacity:0; transform:translateY(22px); }
  .mbl.is-anim .mbl-card.is-in{ animation:mblIn .7s cubic-bezier(.2,.8,.2,1) forwards; }
  @keyframes mblIn{ to{ opacity:1; transform:none; } }
  .entry .mbl-photo img{ width:100%; height:100%; object-fit:cover; margin:0; }
  /* ---------- 肩書き：「 / 」「・」の区切りごとのまとまり（.rl）で改行する ---------- */
  .mbl-role .rl, .mbd-role .rl{ display:inline-block; max-width:100%; word-break:auto-phrase; overflow-wrap:anywhere; }   /* まとまりの途中では改行しない（長すぎるときは言葉の区切りで、それでも収まらなければ途中で） */
  .entry .mbl-role{ flex-wrap:wrap; column-gap:.3em; align-content:flex-start; }   /* カードの肩書きは横並び（flex）なので、まとまりごとに折り返す */
  /* 肩書きの補足（role_sub）：オレンジの肩書きの下に、同じオレンジで小さく */
  .entry .mbl-role .rl-sub{ flex-basis:100%; min-width:0; margin-top:2px; font-size:11px; font-weight:700; line-height:1.6; letter-spacing:.02em; color:var(--orange-ink); word-break:auto-phrase; overflow-wrap:anywhere; }   /* 上の肩書きと同じオレンジ・同じ太さ（文字は小さめ） */
  /* 個別ページ：肩書きが複数ある人（roles）は1行ずつ。左に細い線を付けてまとまりに見せる */
  .mbd-roles{ list-style:none; margin:0; padding:2px 0 2px 14px; border-left:2px solid var(--orange); display:grid; gap:4px; }
  .mbd-roles li{ margin:0; padding:0; font-size:14px; font-weight:700; line-height:1.6; color:var(--orange-ink); letter-spacing:.04em; }
  .mbd-roles li::before{ content:none; }

  /* ---------- 一覧：分野で絞り込むボタン・カードの分野 ---------- */
  .entry .mbl-filter{ display:flex; flex-wrap:wrap; gap:8px; margin:0 0 40px; }
  .entry .mbl-filter button{ font:inherit; font-size:13px; font-weight:700; line-height:1.4; letter-spacing:.04em; padding:9px 18px;
    border:1px solid var(--line); border-radius:999px; background:#fff; color:var(--ink); cursor:pointer; transition:background-color .2s, border-color .2s, color .2s; }
  .entry .mbl-filter button:hover{ border-color:var(--blue); color:var(--blue); }
  .entry .mbl-filter button.is-on{ background:var(--blue); border-color:var(--blue); color:#fff; }
  .entry .mbl-filter button:focus-visible{ outline:2px solid var(--blue); outline-offset:3px; }
  .entry .mbl-count{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }  /* 読み上げ用（画面には出さない） */
  .entry .mbl-field{ margin:8px 0 0; display:flex; flex-wrap:wrap; gap:2px 14px; font-size:11px; font-weight:700; line-height:1.6; color:var(--blue); }
  .entry .mbl-field span::before{ content:""; display:inline-block; width:8px; height:8px; margin-right:6px; border-radius:50%; background:var(--orange); vertical-align:1px; }   /* 分野ごとにオレンジの点 */
  .entry .mbl-card[hidden]{ display:none; }   /* 絞り込みで隠したカード */
  @media(max-width:760px){
    .entry .mbl-filter{ margin-bottom:28px; gap:6px; }
    .entry .mbl-filter button{ padding:8px 14px; font-size:12px; }
  }

  /* ---------- 一覧の集合写真（本文と同じ幅） ---------- */
  .mbl-group{ position:relative; margin-top:44px; }
  .mbl-group__band{ max-width:1240px; margin:0 auto; padding:0 6%; box-sizing:content-box; }   /* 横幅・左右の余白はタイトル・一覧と同じ */
  .mbl-group__inner{ position:relative; }
  .mbl-group__img{ position:relative; z-index:1; display:block; width:100%; height:auto; aspect-ratio:2560/1070; object-fit:cover; object-position:50% 20%; background:#e8eceb; }   /* 写真は頭の上に余白・膝の上までに切り抜き済み（2560×1070）。写真そのままの比率で表示（20% は古い写真が残っていたときに同じ範囲を見せるため） */
  /* 集合写真の下から一覧を始める */
  .mbl-group + .entry{ box-sizing:content-box; max-width:1240px; padding:56px 6% 110px; }
  @media(max-width:760px){
    .mbl-group{ margin-top:32px; }
    .mbl-group + .entry{ padding:40px 6% 88px; }
  }

  /* マウスを乗せたときの動き
     ・2枚目の写真がある人（.has-swap）はふわっと切り替え、ない人は写真が少しだけ寄る（写真の上の装飾はなし） */
  .entry .mbl-photo img.is-main{ transition:transform .8s ease; }
  .entry .mbl-photo img.is-hover{ position:absolute; inset:0; opacity:0; transition:opacity .5s ease; }
  .entry .mbl-photo img.is-hover:not([src]){ visibility:hidden; }  /* 読み込む前は何も出さない */
  .mbl-card.has-swap:is(:hover,:focus-visible) .mbl-photo img.is-hover{ opacity:1; }
  .mbl-card.is-photo:not(.has-swap):is(:hover,:focus-visible) .mbl-photo img.is-main{ transform:scale(1.04); }
  @media (hover:none){ .entry .mbl-photo img.is-hover{ display:none; } }  /* スマホなど：1枚目だけ */
  @media (prefers-reduced-motion:reduce){ .entry .mbl-photo img.is-main, .entry .mbl-photo img.is-hover{ transition:none; } }
  .mbl-initial, .mbd-initial{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
    font-weight:700; color:var(--frame); line-height:1; }
  .mbl-initial{ font-size:64px; }
  .entry .mbl-role{ margin:16px 0 0; min-height:3.4em; display:flex; align-items:flex-start;
    font-size:12.5px; font-weight:700; line-height:1.7; color:var(--orange-ink); letter-spacing:.04em; }
  .entry .mbl-name{ margin:4px 0 0; display:flex; align-items:center; justify-content:space-between; gap:12px;
    font-size:19px; font-weight:700; color:#3A3D42; line-height:1.5; letter-spacing:.08em; transition:color .2s; }
  .mbl-name .go{ font-size:14px; color:var(--blue); transition:transform .25s; }
  .mbl-card:hover .mbl-name{ color:var(--blue); }
  .mbl-card:hover .mbl-name .go{ transform:translateX(4px); }
  .mbl-card:focus-visible{ outline-offset:6px; }
  /* 所属の行数が違っても、同じ段の所属・名前の位置をそろえる */
  @supports (grid-template-rows: subgrid){
    .entry .mbl-card{ display:grid; grid-row:span 4; grid-template-rows:subgrid; row-gap:0; }   /* 写真・肩書・名前・分野の4段（横の行で高さをそろえる） */
    .entry .mbl-role{ min-height:0; align-self:start; }
    .entry .mbl-name{ align-self:start; }
    .entry .mbl-field{ align-self:start; }
  }
  @media(max-width:700px){
    .mbl{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:40px 16px; }
    .mbl-initial{ font-size:44px; }
    .entry .mbl-name{ font-size:16px; }
  }

  /* ---------- 個別 ---------- */
  .mbd{ padding:150px 6% 120px; }
  .mbd-inner{ max-width:1240px; margin:0 auto; }
  .mbd-grid{ position:relative; z-index:1; display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:72px; align-items:start; }
  /* 案C：写真のうしろに淡い青の面を少しずらして重ねる（写真ごとスクロールに付いてくる） */
  .mbd-ph{ position:sticky; top:120px; margin:0 24px 24px 0; }
  .mbd-ph::before{ content:""; position:absolute; inset:0; transform:translate(24px,24px); background:#d6e4f5; }
  .mbd-photo{ position:relative; aspect-ratio:4/5; background:var(--ice); overflow:hidden; }
  .mbd-body{ padding-top:48px; }
  /* 背景の大きな輪：トップページのファーストビューと同じ（太い淡い輪が、ページの上・右・下の壁にぶつかって切れて見える）
 */
  .mbd{ position:relative; overflow:hidden; }
  .mbd-inner{ position:relative; z-index:1; }
  .mbd .pg-crumb{ position:relative; z-index:2; }   /* パンくずは輪より前に */

  /* 名前の下の分野タグ */
  .mbd-fields{ display:flex; flex-wrap:wrap; gap:6px; margin-top:18px; }
  .mbd-fields span{ font-size:12px; font-weight:700; line-height:1.5; letter-spacing:.04em; padding:4px 12px; border-radius:999px; background:#fff; border:1px solid #a8caef; color:var(--blue); }
  .mbd-fields span::before{ content:""; display:inline-block; width:7px; height:7px; margin-right:6px; border-radius:50%; background:var(--orange); vertical-align:1px; }
  .mbd-photo img{ width:100%; height:100%; object-fit:cover; display:block; }
  /* 個別ページ：写真にマウスを乗せると2枚目（photo_hover）にふわっと切り替える */
  .mbd-photo img.is-hover{ position:absolute; inset:0; opacity:0; transition:opacity .5s ease; }
  .mbd-photo.has-swap:hover img.is-hover{ opacity:1; }
  @media (hover:none){ .mbd-photo img.is-hover{ display:none; } }   /* スマホなど：1枚目だけ（2枚目は読み込まない） */
  @media (prefers-reduced-motion:reduce){ .mbd-photo img.is-hover{ transition:none; } }
  .mbd-initial{ font-size:120px; }
  .mbd-role{ font-size:14px; font-weight:700; line-height:1.8; color:var(--orange-ink); letter-spacing:.04em; }
  .mbd-name{ margin-top:8px; font-size:clamp(30px,3.6vw,46px); font-weight:700; color:#3A3D42;
    line-height:1.4; letter-spacing:.1em; }
  .mbd-text{ margin-top:48px; padding-top:40px; border-top:1px solid var(--line); }   /* ローマ字を名前の下の小さな文字にしたので、間を少し詰めた（以前は80px） */
  .mbd-text p{ max-width:36em; font-size:16px; line-height:2.15; color:var(--ink); }
  .mbd-text p + p{ margin-top:1.2em; }
  .mbd-sec{ margin-top:56px; }
  .mbd-sec h2{ margin-bottom:12px; font-size:15px; font-weight:700; color:var(--navy); letter-spacing:.08em; line-height:1.6; }
  .mbd-career div{ display:grid; grid-template-columns:120px minmax(0,1fr); gap:20px; padding:10px 0; }
  .mbd-career dt{ font-size:13px; line-height:1.9; color:var(--sub); letter-spacing:.04em; }
  .mbd-career dd{ font-size:15px; line-height:1.9; color:var(--ink); }
  .mbd-quals{ display:flex; flex-wrap:wrap; gap:8px; }
  .mbd-quals li{ font-size:13px; line-height:1.7; color:var(--ink); border:1px solid var(--frame); padding:5px 14px; }
  /* 個別ページの下：前後のメンバー（写真付きの小さなカード） */
  .mbd-nav{ margin-top:96px; }
  .mbd-pn{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
  .mbd-pn__card{ display:flex; align-items:center; gap:16px; padding:14px; border:1px solid var(--line); border-radius:12px; background:#fff;
    color:inherit; text-decoration:none; transition:border-color .25s, transform .25s, box-shadow .25s; }
  .mbd-pn__card:hover{ border-color:#a8caef; transform:translateY(-3px); box-shadow:0 10px 24px -14px rgba(0,56,133,.35); }
  .mbd-pn__card.is-next{ flex-direction:row-reverse; text-align:right; }
  .mbd-pn__ph{ position:relative; flex:none; width:84px; aspect-ratio:4/5; border-radius:8px; overflow:hidden; background:var(--ice); }
  .mbd-pn__ph img{ width:100%; height:100%; object-fit:cover; display:block; }
  .mbd-pn__ini{ position:absolute; inset:0; display:grid; place-items:center; font-size:28px; font-weight:700; color:#c3d4ea; }
  .mbd-pn__tx{ display:flex; flex-direction:column; min-width:0; }
  .mbd-pn__tx small{ font-size:11px; color:var(--sub); letter-spacing:.04em; }
  .mbd-pn__tx b{ font-size:17px; font-weight:700; letter-spacing:.06em; color:#3A3D42; line-height:1.5; transition:color .2s; }
  .mbd-pn__card:hover .mbd-pn__tx b{ color:var(--blue); }
  .mbd-pn__tx > span{ font-size:11px; font-weight:700; line-height:1.6; color:var(--orange-ink); word-break:auto-phrase; overflow-wrap:anywhere; }
  .mbd-nav__back{ display:inline-flex; margin-top:28px; }
  @media(max-width:760px){
    .mbd-pn{ grid-template-columns:1fr; }
    .mbd-pn__card.is-next{ flex-direction:row; text-align:left; }   /* スマホは縦に並ぶので、どちらも左そろえ */
    .mbd-pn__ph{ width:68px; }
  }
  @media(max-width:860px){
    .mbd{ padding:130px 6% 96px; }
    .mbd-grid{ grid-template-columns:1fr; gap:40px; }
    .mbd-ph{ position:relative; top:auto; max-width:320px; margin:0 16px 16px 0; }   /* スマホ・タブレット：写真は付いてこない */
    .mbd-ph::before{ transform:translate(16px,16px); }
    .mbd-body{ padding-top:8px; }
    .mbd-initial{ font-size:88px; }
    .mbd-career div{ grid-template-columns:96px minmax(0,1fr); gap:14px; }
  }
/* ============================================================
   メンバー紹介の個別ページ：紺の帯（肩書き・名前・分野の後ろ）と、開いたときの動き
   （以前は style.css「44. 共通の締め」の後半にあったもの。メンバー紹介のページだけで使うのでここに移した）
   ============================================================ */
  /* ---------- 紺の帯（肩書き・名前・分野の後ろ）。写真は帯からはみ出して重なる ----------
     .mbd-head の後ろに、画面の幅いっぱいの紺の帯を敷く（上はページの上まで、下は分野のタグの44px下まで） */
  .mbd-head{ position:relative; }
  .mbd-head::before{ content:""; position:absolute; z-index:-2; left:-100vw; right:-100vw; top:-800px; bottom:-44px; background:#003885; pointer-events:none; }
  .mbd-head::after{ content:""; position:absolute; z-index:-1; right:-300px; top:-360px; width:560px; aspect-ratio:1; border-radius:50%; box-shadow:inset 0 0 0 44px rgba(255,255,255,.05); pointer-events:none; }   /* 帯の右上に輪（代表紹介の経歴の帯と同じ） */
  .mbd .pg-crumb{ color:rgba(255,255,255,.75); }
  .mbd .pg-crumb a{ color:#fff; }
  .mbd-head .mbd-role, .mbd-head .mbd-roles li{ color:#ffb066; }
  .mbd-head .mbd-name{ color:#fff; }
  .mbd-head .nm-en{ color:#9dc0ee; }
  .mbd-head .mbd-fields span{ background:transparent; border-color:rgba(255,255,255,.45); color:#fff; }
  .mbd-ph .mbd-photo{ box-shadow:0 30px 60px rgba(0,20,60,.22); }   /* 写真は帯の上に浮かせる */
  .mbd-text{ margin-top:88px; padding-top:32px; }   /* 帯の下から本文 */
  .mbd-text p:first-child::first-letter{ float:left; margin:.06em .14em 0 0; font-size:3.2em; font-weight:900; line-height:1; color:#003885; }   /* 自己紹介文の最初の1文字を大きく太い青に */
  @media(max-width:760px){
    .mbd-head::before{ bottom:-32px; }
    .mbd-text{ margin-top:64px; }
  }
  /* ---------- 個別ページを開いたときの動き（動きを減らす設定の端末では動かさない） ----------
     紺の帯が上から下りる → 写真が下から現れ、うしろの薄い青の面がずれて出る → 肩書き・名前・ローマ字・分野が順にふわっと
     → 自己紹介文 → 前後のメンバー */
  @media (prefers-reduced-motion:no-preference){
    .mbd-head::before{ animation:mbdBand 1s cubic-bezier(.7,0,.2,1) both; }
    .mbd-head::after{ animation:mbdRing 1.6s .5s cubic-bezier(.2,.7,.2,1) both; }
    .mbd .pg-crumb{ animation:mbdUp .7s .3s cubic-bezier(.2,.7,.2,1) both; }
    .mbd-photo{ animation:mbdPhoto 1.1s .35s cubic-bezier(.7,0,.2,1) both; }
    .mbd-photo img.is-main{ animation:mbdZoom 1.8s .35s cubic-bezier(.2,.7,.2,1) both; }
    .mbd-ph::before{ animation:mbdShift .9s 1s cubic-bezier(.2,.7,.2,1) both; }
    .mbd-head .mbd-role, .mbd-head .mbd-roles{ animation:mbdUp .8s .55s cubic-bezier(.2,.7,.2,1) both; }
    .mbd-head .mbd-name .nm{ display:inline-block; animation:mbdUp .9s .7s cubic-bezier(.2,.7,.2,1) both; }
    .mbd-head .nm-en{ animation-delay:1.05s; }
    .mbd-head .mbd-fields{ animation:mbdUp .8s 1.15s cubic-bezier(.2,.7,.2,1) both; }
    .mbd-text{ animation:mbdUp .9s 1.3s cubic-bezier(.2,.7,.2,1) both; }
    .mbd-sec, .mbd-nav{ animation:mbdUp .9s 1.5s cubic-bezier(.2,.7,.2,1) both; }
  }
  @keyframes mbdBand{ from{ clip-path:inset(0 0 100% 0); } to{ clip-path:inset(0 0 0 0); } }
  @keyframes mbdRing{ from{ opacity:0; transform:rotate(-30deg) scale(.85); } to{ opacity:1; transform:none; } }
  @keyframes mbdPhoto{ from{ clip-path:inset(100% 0 0 0); } to{ clip-path:inset(0 0 0 0); } }
  @keyframes mbdZoom{ from{ transform:scale(1.08); } to{ transform:none; } }
  @keyframes mbdShift{ from{ opacity:0; transform:translate(0,0); } to{ opacity:1; transform:translate(24px,24px); } }
  @keyframes mbdUp{ from{ opacity:0; transform:translateY(18px); } to{ opacity:1; transform:none; } }
  @media (prefers-reduced-motion:no-preference) and (max-width:760px){
    @keyframes mbdShift{ from{ opacity:0; transform:translate(0,0); } to{ opacity:1; transform:translate(16px,16px); } }
  }

/* ============================================================
   メンバー紹介の一覧：最後の「ほか数名」（横長の紺のカード）
   page-member.php の一覧（.mbl）のすぐ下。人のシルエットを重ねて、最後にオレンジの「…」
   ============================================================ */
  .mbl-more{ position:relative; overflow:hidden; display:flex; align-items:center; gap:40px; margin-top:clamp(56px,7vw,80px); padding:40px clamp(28px,5vw,64px); background:linear-gradient(120deg,#0b3f8f,#003885 50%,#00265e); color:#fff; }
  .mbl-more::before{ content:""; position:absolute; right:-120px; top:-180px; width:420px; aspect-ratio:1; border-radius:50%; box-shadow:inset 0 0 0 36px rgba(255,255,255,.06); pointer-events:none; }   /* 右上に輪 */
  .mbl-more__av{ position:relative; display:flex; flex:none; }
  .mbl-more__av i{ display:flex; align-items:flex-end; justify-content:center; width:64px; height:64px; margin-left:-16px; border-radius:50%; overflow:hidden; background:#2c5aa0; box-shadow:0 0 0 3px #003885; font-style:normal; }
  .mbl-more__av i:first-child{ margin-left:0; }
  .mbl-more__av svg{ width:80%; fill:rgba(255,255,255,.55); }
  .mbl-more__av i.is-dots{ align-items:center; background:#ff7f00; font-size:1.4rem; font-weight:700; color:#fff; }
  .mbl-more__tx{ position:relative; }
  .mbl-more__en{ display:block; font-family:"Jost",sans-serif; font-size:.78rem; font-weight:500; letter-spacing:.26em; text-transform:uppercase; color:#9dc0ee; }
  .entry .mbl-more__ttl{ margin:6px 0 0; font-size:1.35rem; font-weight:900; line-height:1.6; letter-spacing:.04em; color:#fff; }
  .entry .mbl-more__txt{ margin:6px 0 0; font-size:.92rem; line-height:1.9; color:rgba(255,255,255,.8); }
  @media(max-width:760px){
    .mbl-more{ flex-direction:column; align-items:flex-start; gap:20px; padding:32px 24px; }
    .mbl-more__av i{ width:52px; height:52px; margin-left:-12px; }
    .entry .mbl-more__ttl{ font-size:1.15rem; }
  }