/* 役員紹介：3 人の紹介（LEADERSHIP）と、線が 1 点に合流する縦の年表（HISTORY）。Figma 案I' */
.of-sec { position: relative; z-index: 2; padding: 88px var(--gutter) 100px; }
.of-sec + .of-sec { padding-top: 20px; }
.page-head + .of-sec { padding-top: 0; }   /* 見出しの下の 140px は page-head が持つ */   /* セクションの間はほかのページと同じ 120px（前の段の下 100px ＋ 20px） */
.of-in { max-width: 1200px; margin: 0 auto; }

/* ---- OFFICERS：見出しと 3 人のカードは about の「WUUZYの経営を担うメンバー」と同じ。カードの動きは member-card.css・members-flip.js ---- */
.of-lab { font: 600 10.5px/1 var(--latin); letter-spacing: .14em; color: var(--wuuzy-blue); }
.of-h2 { margin-top: 14px; font-size: clamp(24px, 2.4vw, 34px); font-weight: 700; line-height: 1.5; letter-spacing: .06em; }
.of-lead { margin-top: 24px; word-break: normal; font-size: 16px; font-weight: 500; line-height: 2.1; color: var(--ink-soft); }
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 48px 0 0; padding: 0; list-style: none; }
.people .mem .flip { aspect-ratio: 357 / 300; }
.people .mem .front { background: linear-gradient(135deg, #E9ECEF, #D5DBE1); }
.people .tg { margin-top: 18px; font-size: 12px; font-weight: 700; color: var(--wuuzy-blue); }
.people .nm { display: flex; align-items: baseline; gap: 12px; margin-top: 12px; font-size: 22px; font-weight: 700; letter-spacing: .06em; }
.people .nm small { font-size: 13px; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; }
.people .bio { margin-top: 14px; font-size: 14px; font-weight: 500; line-height: 2; color: var(--ink-soft); word-break: normal; text-wrap: wrap; }

/* ---- HISTORY ---- */
.ev-box { --rail: 190px; position: relative; margin-top: 46px; }
.ev-rails { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.ev-line { fill: none; stroke: #D3D9DE; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }

.ev-faces { position: absolute; z-index: 1; left: 0; top: 0; display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ev-who { display: grid; justify-items: center; gap: 6px; font-size: 14px; font-weight: 700; line-height: 20px; color: var(--ink-soft); }
.ev-face { display: block; width: 48px; height: 48px; border-radius: 50%; border: 3px solid var(--ring); object-fit: cover; background: #fff; filter: grayscale(1); transition: transform .7s cubic-bezier(.19,1,.22,1), filter .3s ease, opacity .3s ease; }   /* ふだんはグレー、話の人だけカラー（.on）。位置は history.js がスクロールに合わせて動かす */
.ev-face.on { filter: none; }
.ev-face { opacity: 1; }
.ev-face.off { opacity: 0; }
/* WUUZY 設立からは 3 人の写真の代わりに、線の上を立体の W が進む（位置は history.js、立体は history-w.js） */
.ev-w { position: absolute; z-index: 2; width: 60px; height: 60px; opacity: 0; pointer-events: none; transition: transform .7s cubic-bezier(.19,1,.22,1), opacity .3s ease; }
.ev-w.on { opacity: 1; }
.ev-w img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ev-w.is-3d img { visibility: hidden; }
.ev-w canvas { position: absolute; left: 50%; top: 50%; width: 150%; height: 150%; transform: translate(-50%, -50%) scale(var(--w-scale, 1)); }

.ev-list { position: relative; margin: 0; padding: 82px 0 0; list-style: none; }

.ev { position: relative; padding-left: var(--rail); }
.ev-btn { display: grid; grid-template-columns: 110px 1fr; align-items: center; width: 100%; min-height: 64px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: default; }
.ev-era { font-size: 12px; font-weight: 700; color: var(--ink-mute); transition: color .3s; }
.ev-era.num { font-family: var(--latin); font-size: 11px; }
.ev.on .ev-era { color: var(--wuuzy-blue); }   /* 年は開いている行（ホバー・スクロールで選ばれた行）だけ青 */
.ev-t { font-size: clamp(18px, 1.53vw, 22px); font-weight: 700; line-height: 1.4; }
/* タイトルは 1 文を 1 行で見せる。乗せると、ヘッダーのメニューと同じように文字が 1 文字ずつ回って青くなる */
.ev-t { justify-self: start; }
.ev-btn { cursor: pointer; }
.t-ev { position: relative; display: block; overflow: hidden; white-space: nowrap; }
.ev-t:has(.ev-cam) { display: inline-flex; align-items: center; gap: 10px; }
.ev-cam { flex: none; width: 32px; height: 32px; color: inherit; transition: color .3s; }   /* 吹き出しに写真がある行の印。色はタイトルの文字と同じ（開いた行は青） */
.ev.on .ev-cam { color: var(--wuuzy-blue); }
.ev-cam { position: relative; }
.ev-cam svg { display: block; width: 100%; height: 100%; fill: currentColor; }
/* 幼少期の行だけ、カメラを「TAP!」の印にする（上に光の点・下に TAP!。押すと吹き出しの写真がいまの2人に切り替わる。2026-11-20） */
.ev-t:has(.ev-cam-tap) { cursor: pointer; }   /* 写真を切り替える行は、タイトルの文字も押せる（PC の .ev-t { cursor: default } より後ろで勝つよう、下の @media にも置く） */
.ev-cam.ev-cam-tap { width: auto; height: auto; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; color: var(--wuuzy-blue); cursor: pointer; }
.ev-cam-tap svg { width: 42px; height: 44px; overflow: visible; }
.ev-cam-tap .cam-rays path { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.ev-cam-tap .cam-rays { transform-box: view-box; transform-origin: 12px 9.5px; animation: ray-hop 1.4s ease-in-out infinite; }   /* 5本の光の点は一緒に上へ跳ねる。跳ねたときが今の大きさで、ふだんは少し小さい */
.cam-tap-tx { font: 800 16px/1 var(--latin); letter-spacing: .08em; color: var(--wuuzy-blue); }
@keyframes ray-hop { 0%, 60%, 100% { transform: translateY(0) scale(.72); } 25% { transform: translateY(-2.4px) scale(1); } }
@media (prefers-reduced-motion: reduce) { .ev-cam-tap .cam-rays { animation: none; } }
/* 写真の切り替え（幼少期 → いまの2人）。押すとカメラの絞りのような羽根が閉じて開き、そのあいだに入れ替わる（photo-snap.js） */
.c-snap { position: relative; display: block; width: 100%; margin-top: 14px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: none; cursor: pointer; }
.c-snap .c-photo { margin-top: 0; border-radius: 0; }
.c-snap .c-now { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: center 0%; opacity: 0; }
.c-snap.is-now .c-now { opacity: 1; }
.c-iris { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; visibility: hidden; }
.c-snap.snapping .c-iris { visibility: visible; }
.c-iris path { fill: #3b4652; stroke: #1f272f; stroke-width: 1.5; stroke-linejoin: round; }   /* 絞りの羽根。縁を一段濃くして重なりを見せる */
.ev-t .r { display: block; }
.ev-t .r2 { position: absolute; left: 0; top: 100%; color: var(--wuuzy-blue); }
.ev-t .ch { display: inline-block; min-width: .2em; transition: transform .5s cubic-bezier(.19,1,.22,1); transition-delay: calc(var(--i) * 18ms); }
.ev.on .ev-t .ch { transform: translateY(-100%); }

.ev-card { display: none; position: absolute; z-index: 5; box-sizing: border-box; padding: 28px 32px; border-radius: 24px; background: #fff; box-shadow: 0 12px 32px rgba(38,51,61,.16); }
.ev.on .ev-card { display: block; }
.ev-card::before { content: ""; position: absolute; left: -18px; top: var(--cy, 48px); width: 18px; height: 32px; background: #fff; clip-path: polygon(100% 0, 0 50%, 100% 100%); }
.ev-card.scrolls { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.ev-card.scrolls::before { display: none; }
.ev-card.tap-below::before { left: var(--cx, 40px); top: -14px; width: 32px; height: 14px; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.ev-card.tap-above::before { left: var(--cx, 40px); top: auto; bottom: -14px; width: 32px; height: 14px; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.c-era { font-size: 16px; font-weight: 700; color: var(--ink-mute); text-align: center; }
.c-rule { width: 24px; height: 3px; margin: 12px auto 0; background: #D3D9DE; }
.c-logo { display: block; width: 136px; height: auto; margin: 22px auto 8px; }   /* WUUZY 設立からは顔写真の代わりにテキストロゴ */
.c-photo { display: block; width: 100%; height: auto; margin-top: 14px; border-radius: 12px; }
/* PC は吹き出しを横に広げるので、写真が縦に伸びて吹き出しが高くならないように抑える */
@media (hover: hover) and (min-width: 821px) { .c-photo { max-height: 200px; object-fit: cover; object-position: center 22%; } .c-photo[src*="childhood"] { object-position: center 62%; } .c-photo[src*="team-all"] { object-position: center 55%; } .c-photos img { max-height: 150px; object-fit: cover; } }
/* 高さの低い PC の画面でも、吹き出しが画面に収まるよう写真を低くする（PC の吹き出しの中はスクロールできないため） */
@media (hover: hover) and (min-width: 821px) and (max-height: 680px) { .c-photo { height: 140px; object-fit: cover; object-position: center 22%; } .c-photo[src*="childhood"] { object-position: center 62%; } .c-photo[src*="team-all"] { object-position: center 55%; } }
@media (hover: hover) and (min-width: 821px) and (max-height: 600px) { .c-photo { display: none; } }
/* 写真の切り替え（幼少期 → いまの2人）。押すとカメラの絞りが閉じて開き、そのあいだに入れ替わる（羽根は photo-snap.js が描く） */
.c-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 14px; }
.c-photos img { display: block; width: 100%; height: auto; border-radius: 8px; }
@media (hover: hover) and (min-width: 821px) and (max-height: 630px) { .c-photos { display: none; } }
.c-who { display: flex; justify-content: center; gap: 28px; margin: 14px 0 0; padding: 0; list-style: none; text-align: center; }
.c-who img { display: block; width: 76px; height: 76px; margin: 0 auto; border-radius: 50%; border: 4px solid var(--ring); object-fit: cover; }
.c-who b { display: block; margin-top: 8px; font-size: 12px; color: var(--wuuzy-blue); }
.c-who small { display: block; margin-top: 2px; font-size: 11px; color: var(--ink-soft); }
.c-ti { margin-top: 18px; font-size: 19px; font-weight: 700; line-height: 1.45; text-align: center; }
.c-tx { margin-top: 8px; font-size: 14px; font-weight: 500; line-height: 1.75; color: var(--ink-soft); }   /* タイトルと本文はひとかたまりに近づけ、顔写真やタグとは離す */
.c-tx .c-ink { font-weight: 700; color: var(--wuuzy-blue); }   /* 本文の中で読ませたい一節だけ青の太字にする */
.c-tx { word-break: normal; }   /* 本文は文節で切らずに行いっぱいまで詰めて折り返す（両端揃えにはしない＝字間を広げない） */
.c-tx b { color: var(--wuuzy-blue); }
.c-seg { display: inline-block; }   /* 読点・句点の位置で折り返すための塊（history.js が作る） */
.c-facts { margin: 18px 0 0; padding: 0; list-style: none; font-size: 13px; font-weight: 500; line-height: 1.7; color: var(--ink-soft); }
.c-facts li { display: flex; gap: 12px; }
.c-facts b { flex: none; width: 3em; font-family: var(--latin); color: var(--wuuzy-blue); }
.c-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 12px; font-weight: 700; color: #3F86C6; }
.c-tags li { padding: 6px 12px; border-radius: 999px; background: #F2F6FA; }

/* スマホの組み方 */
@media (max-width: 820px) {
  .of-sec { padding: 56px var(--gutter) 64px; }
  .of-sec + .of-sec { padding-top: 32px; }
  .people { grid-template-columns: 1fr; gap: 32px; margin-top: 32px; }
  .people .bio { font-size: 13px; }
  .ev-box { --rail: 104px; margin-top: 28px; }
  .ev-line { stroke-width: 3; }
  .ev-faces { left: -4px; gap: 4px; }
  .ev-who { gap: 8px; font-size: 11px; line-height: 16px; }
  .ev-face { width: 32px; height: 32px; border-width: 2px; }
  .ev-w { width: 40px; height: 40px; }
  .ev-list { padding-top: 62px; }
  .ev-btn { grid-template-columns: 1fr; align-content: center; gap: 4px; min-height: 60px; padding: 14px 0; }
  .ev-era, .ev-era.num { font-size: 10px; }
  .ev-t { font-size: 15px; line-height: 22px; }
}
/* PC：スクロールで行が進み、吹き出しは右の列に出る（history.js）。切り替わるときだけ少し動かす */
@media (hover: hover) and (min-width: 1081px) {
  .ev-t { cursor: default; }
  .ev-t:has(.ev-cam-tap) { cursor: pointer; }
  .ev.on .ev-card { animation: ev-card-in .35s cubic-bezier(.19,1,.22,1); }
}
@keyframes ev-card-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ev.on .ev-card { animation: none; } }
/* 1 行に入らない幅と押して開く画面は、タイトルを 1 つの文として折り返す（文字の動きなし） */
@media (max-width: 1080px), (hover: none) {
  .t-ev { display: inline; overflow: visible; white-space: normal; }
  .ev-t .r, .ev-t .ch { display: inline; }
  .ev-t .ch { transition: none; }
  .ev.on .ev-t .ch { transform: none; }
  .ev-t .r2 { display: none; }
  .ev.on .ev-t { color: var(--wuuzy-blue); }
}
/* 押して開く画面（スマホと、ホバーできないタブレット）：history.js の判定とそろえる。行は押し広げず、吹き出しのカードを年表の上に重ねる */
@media (max-width: 820px), (hover: none) {
  .ev-btn { cursor: pointer; }
  .ev-card { padding: 22px 22px 24px; border-radius: 20px; }
  .c-era { font-size: 13px; }
  .c-rule { margin-top: 8px; }
  .c-who { gap: 18px; margin-top: 12px; }
  .c-who img { width: 56px; height: 56px; border-width: 3px; }
  .c-who b { margin-top: 6px; }
  .c-logo { width: 104px; margin: 14px auto 4px; }
  .c-ti { margin-top: 10px; font-size: 16px; }
  .c-tx { margin-top: 10px; font-size: 13px; line-height: 1.75; }
}
@media (max-width: 820px) and (orientation: landscape), (min-width: 600px) and (max-width: 820px) {
  .people { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
  .people .tg { margin-top: 12px; font-size: 11px; }
  .people .nm { flex-wrap: wrap; gap: 2px 8px; margin-top: 6px; font-size: 17px; }
  .people .nm small { font-size: 11px; }
  .people .bio { margin-top: 8px; font-size: 11px; line-height: 1.8; }
}
@media (prefers-reduced-motion: reduce) { .ev-face, .ev-w { transition: none; } .ev-t .ch { transition: none; } .ev.on .ev-t .ch { transform: none; } .ev-t .r2 { display: none; } .ev.on .ev-t { color: var(--wuuzy-blue); } }
/* PC：年表を画面に止め、1 行あたり画面 0.35 枚分のスクロールで進める（history-pace.js） */
.of-in.pace { position: sticky; top: 0; height: 100vh; }
.of-in.pace .pace-track { will-change: transform; }   /* PC で止めているときだけ。スマホで付けると、下に固定する詳細カードが画面に固定されなくなる */
/* スマホ：詳細カードは画面の下に固定し、後ろの年表とは別にスクロールする（history.js が .sheet を付ける）。
   高さは history.js が決める（スマホは端末ごとに同じ高さ、タブレットはカードごとに中身の量に合わせる）。カードの中はスクロールさせず、入りきらないときは「続きを読む」で全文の高さまで広げる。
   条件は history.js の sheet とそろえる（幅 1080px 以下と、指で操作する端末はすべて） */
@media (max-width: 1080px), (hover: none) {
  .ev-card.sheet { position: fixed; z-index: 900; left: 12px; right: 12px; top: auto; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: auto; max-width: 560px; margin: 0 auto; height: var(--sheet-h, 42vh); max-height: none; overflow: hidden; box-shadow: 0 12px 40px rgba(38,51,61,.22); animation: ev-sheet-in .3s cubic-bezier(.19,1,.22,1); }
  .ev-card.sheet.opening { transition: height .4s cubic-bezier(.19,1,.22,1); }
  .ev-card.sheet.clip { overflow-y: auto; overscroll-behavior: contain; }   /* 広げても画面に入りきらないときだけ（小さい画面） */   /* 「続きを読む」で広げるときだけ動かす（スクロールで広がるときは指に合わせる） */
  .ev-card.sheet::before { display: none; }
  .ev-card.sheet .c-ti { white-space: nowrap; }   /* 小タイトルは 1 行（入らないときは history.js が文字を小さくする） */
  /* 年表の下の余白（--sheet-tail は history.js が決める）。最後の行が基準線まで上がり、そこからカードが行と一緒に流れても、次のセクションに重ならない */
  .ev-list { padding-bottom: var(--sheet-tail, calc(var(--sheet-h, 42vh) * .5)); }
}
/* タブレット縦：カードは広めに（高さは history.js が画面の下 1/3 くらいにする） */
@media (min-width: 600px) and (min-height: 501px) {
  .ev-card.sheet { max-width: 720px; padding: 26px 36px 28px; }
  /* 写真は画面の高さの 26% まで（いちばん長いカードに高さを合わせるので、写真の行が背を伸ばしすぎないように）。切り取る位置は PC とそろえる */
  .ev-card.sheet .c-photo { max-height: 26vh; object-fit: cover; object-position: center 22%; }
  .ev-card.sheet .c-photo[src*="childhood"] { object-position: center 62%; }
  .ev-card.sheet .c-photo[src*="team-all"] { object-position: center 55%; }
}
@keyframes ev-sheet-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ev-card.sheet { animation: none; } }
/* カードの中に続きがあるときの手がかり（history.js が .more を付ける）。下端に貼り付け、白くぼかした上に「続きを読む」と下向きの矢印 */
.sheet-more { display: none; position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; height: 88px; padding-bottom: 14px; align-items: flex-end; justify-content: center; background: linear-gradient(rgba(255,255,255,0), #fff 62%); pointer-events: none; }
.ev-card.sheet.more .sheet-more { display: flex; }
.sheet-more button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px 6px 16px; border: 0; border-radius: 999px; background: var(--wuuzy-blue); color: #fff; font: 700 12px/1 var(--ja); letter-spacing: .04em; box-shadow: 0 4px 12px rgba(0,128,200,.28); pointer-events: auto; cursor: pointer; }
.sheet-more svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: sheet-more-bob 1.4s ease-in-out infinite; }
@keyframes sheet-more-bob { 0%, 100% { transform: translateY(-1px); } 50% { transform: translateY(2px); } }
@media (prefers-reduced-motion: reduce) { .sheet-more svg { animation: none; } }
html.ev-sheet-open .fab-contact { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s, visibility 0s .3s; }
/* PC：年表の下の余白を半分くらいに（最後のカードの下から次のブロックまで 292 → 146px。2026-11-17）。
   カードの下の 42px は年表の枠（history-pace.js の fitTail）の中に残すので、カードの下端は次のブロックにかぶらない */
@media (hover: hover) and (min-width: 1081px) {
  .of-sec:has([data-history]) { padding-bottom: 0; }
  .bt { margin-top: 104px; }
}
