/* COACH AI コーチのカード — 一覧 /coachai/coach/（横長 .ckh）とトップ /coachai/ の INSTRUCTOR（縦型 .ckv）
   2026-11-15 司令 10:28「カードの横と縦幅揃えたい。ごくシンプルなシャドウと白いカード、四角い画像で。TOPは縦型カード」
   型 = 慶應義塾 教員一覧 https://www.keio.ac.jp/ja/flet/faculty/ のカード（1280px / 390px で getComputedStyle 実測・
   /home/ubuntu/work/coach_cards/keio_meas.json）:
     カード      白・角丸2px・影 8px 8px 8px / 4px 4px 8px / 0 0 4px（rgba(0,64,223,.02/.03/.04)）・カード全体がリンク
                 ホバーで影が消えて面が #f0f0f7・名前に下線・矢印の後ろに丸（.3s）
     横長(PC≥961) 余白 16px 20px・写真 176px 正方形・写真と文の間 32px・行の間 20px・名前/肩書きの間 4px
                 左に写真、右に「名前・肩書き」と「紹介文＋右下の矢印 20px」
     横長(SP)     余白 20px 16px・写真 90px・写真の右に名前/肩書き・紹介文は下に全幅・行の間 16px
     一覧の幅     PC 840px・カードの間 12px（SP 4px）・SP の左右 24px
   文字の大きさ・太さ・行間・字間は /assets/coachai/type.css の型（名前 = h4・肩書き = タグ・紹介文 = 小さい本文）。
   高さをそろえる: 名前1行・肩書き2行・紹介文3行で打ち切る（紹介文は慶應と同じく文字数で切って「・・・」、
   はみ出し分は行数で切る）。カードの中身は tools/coachai_coach_pages.py が書く。 */

/* ---- 一覧ページの区画（地は慶應の薄い灰色 #F7F8FC・type.css の背景の型と同じ。司令 11/15 10:40「この一覧の背景も白くして欲しい」） */
.ccs{background:#F7F8FC;margin:32px 0 0;padding:40px 24px 48px}
.ckl{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;max-width:840px;margin:0 auto;padding:0;list-style:none}
.ckl>li{margin:0;padding:0}

/* ---- 共通: 白いカード・影・ホバー */
.ckh,.ckv{position:relative;isolation:isolate;display:grid;box-sizing:border-box;height:100%;background:#fff;border-radius:2px;
  box-shadow:8px 8px 8px 0 rgba(0,64,223,.02),4px 4px 8px 0 rgba(0,64,223,.03),0 0 4px 0 rgba(0,64,223,.04);
  color:#242424;text-decoration:none;overflow:hidden}
.ckh::before,.ckv::before{content:"";position:absolute;inset:0;z-index:0;background:#f0f0f7;opacity:0;pointer-events:none;transition:opacity .3s ease}
.ckh>*,.ckv>*{position:relative;z-index:1}
.ckh__ph,.ckv__ph{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;border-radius:1px;background:#f7f8fc}
.ckh__name,.ckv__name{margin:0;color:#242424;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;
  text-decoration:underline;text-decoration-color:transparent;text-decoration-thickness:4%;text-underline-offset:24%;transition:text-decoration-color .3s ease}
.ckh__aff,.ckv__aff{margin:0;color:#555;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;
  height:calc(var(--fs-tag,12px) * var(--lh-tag,1.5) * 2)}
.ckh__ic,.ckv__ic{position:relative;display:flex;flex:none;width:20px;height:20px;color:#242424}
.ckh__ic svg,.ckv__ic svg{display:block;width:20px;height:20px}
.ckh__ic::before,.ckv__ic::before{content:"";position:absolute;z-index:-1;top:50%;left:50%;width:24px;height:24px;border-radius:50%;
  background:#ffd9cb;opacity:0;transform:translate(-50%,-50%);transition:opacity .3s ease}
@media (hover:hover){
  .ckh:hover,.ckv:hover{box-shadow:none}
  .ckh:hover::before,.ckv:hover::before,.ckh:hover .ckh__ic::before,.ckv:hover .ckv__ic::before{opacity:1}
  .ckh:hover .ckh__name,.ckv:hover .ckv__name{text-decoration-color:currentColor}
}
.ckh:focus-visible,.ckv:focus-visible{outline:2px solid #242424;outline-offset:2px}

/* ---- 横長カード（一覧） */
.ckh{grid-template:"photo main" auto "footer footer" 1fr / 90px minmax(0,1fr);gap:16px 20px;padding:20px 16px}
.ckh__ph{grid-area:photo;width:90px}
.ckh__main{grid-area:main;display:flex;flex-direction:column;gap:4px;min-width:0}
.ckh__ft{grid-area:footer;display:flex;justify-content:space-between;gap:12px;min-width:0}
.ckh__txt{margin:0;color:#333;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;
  height:calc(var(--fs-small,14px) * var(--lh-small,1.8) * 3)}
.ckh__ic{align-self:flex-end;margin-left:auto}
.ckh__pc{display:none}
@media (min-width:961px){
  .ckl{gap:12px}
  .ckh{grid-template:"photo main" auto "photo footer" 1fr / 176px minmax(0,1fr);gap:20px 32px;padding:16px 20px}
  .ckh__ph{width:176px}
  .ckh__main{padding-top:2px}
  .ckh__ft{padding-bottom:2px}
  .ckh__pc{display:inline}
  .ckh__sp{display:none}
}
@media (min-width:1024px){
  .ccs{padding:64px 32px 72px}
}

/* ---- 縦型カード（トップ /coachai/ の INSTRUCTOR） */
.ckv-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;box-sizing:border-box;width:100%;max-width:888px;margin:0 auto;padding:0 24px;list-style:none}
.ckv-list>li{margin:0;padding:0;min-width:0}
.ckv{grid-template-rows:auto auto 1fr;gap:16px;padding:16px}
.ckv__main{display:flex;flex-direction:column;gap:4px;min-width:0}
.ckv__ic{justify-self:end;align-self:end}
#instructor-1 .llmo-cmore-wrap{max-width:888px;padding:0 24px}
@media (min-width:768px){
  .ckv-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
  .ckv{gap:20px;padding:16px 20px}
}
