/* ============================================================
   会社概要（company.html）のページ専用 CSS。e.css の後に読む
   2026-10-27 イラスト第1弾（corp 班）: 顔（.ph.e-ph2）の右の「公式シンボルを中心にした年表の札」を絵に替えた
   - 絵（2026-10-27 第3弾で構図から描き直し）: 受付カウンターの前に正面向きのペンギンが立ち、胸の前で両翼で握った
         懐中電灯で、カウンターの上の名刺立ての名刺を照らす（すぐ下の「代表メッセージ」の名刺の区画へつながる）。
         前の版（曲がった道・札の付いた柱3本・道を照らす後ろ姿）はトップの hero とほぼ同じ絵に見えたので差し替えた。
         正本 = masters/company-fv.png（前の版は masters/old/company-fv-1027b-v4.png）
         大きさは前と同じ 1760x1328（WebP 1120x845・640x483）なので、HTML の width/height とこの CSS の決まりはそのまま
     10/27h: 光と名刺だけ描き直し（名刺の右と下に細い厚み・光の中の台・光は名刺立てと天板の上だけ。前の版は
         masters/old/company-fv-1027h-before.png、台本は masters/src-corp/1027h/）。大きさは同じなので HTML と CSS の決まりはそのまま
     10/27h r2: 名刺と名刺立てだけ描き直し（厚みと台形の台がノートパソコンに見えたので、名刺の下 1/4 の前に低い名刺立てを重ね、
         後ろに2枚を少し傾けて覗かせた束にした。前の版は masters/old/company-fv-1027h-r1.png、台本は 1027h/company-fv-1027h-r2.py）
   - 年表（2020.09 創業・2022.07 Uberall 正規取扱パートナー・2025.03.10 法人化）は HTML のまま、
     絵の下に3つの点を結ぶ1本の線で並べる
   ============================================================ */

/* 横向きの開いた折りたたみ（673〜999px の横長）も2列にして、絵を1画面目に入れる（トップの顔と同じ考え方） */
@media (min-width: 673px) and (max-width: 999px) and (orientation: landscape){
  .ph.e-ph2 .ph-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
  .ph.e-ph2 .ph-title { font-size: clamp(28px, 3.6vw, 34px); }
  .ph.e-ph2 .e-ph2-vis { justify-self: end; }
}

/* 年表の並べ方は画面幅ではなく、この区画の幅で決める（2列の顔では区画が 357〜560px と幅ごとに大きく違う） */
.e-ph2-vis.il-fv { display: grid; gap: 20px; align-content: start; container-type: inline-size; }
.il-fv-pic { margin: 0; }
.il-fv-pic img { display: block; width: 100%; height: auto; border-radius: 28px; }

/* 年表: 点を1本の線で結ぶ。点は各項目の左上 */
.il-hist { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 22px 4px 0; }
.il-hist::before { content: ''; position: absolute; left: 10px; right: 10px; top: 5px; height: 2px; border-radius: 2px; background: rgba(67,100,238,.28); }
.il-hist-c { position: relative; display: grid; align-content: start; gap: 4px; min-width: 0; }
.il-hist-c::before { content: ''; position: absolute; left: 0; top: -22px; width: 12px; height: 12px; box-sizing: border-box; border-radius: 50%; background: #fff; border: 3px solid #2A6FF5; }
.il-hist-c em { font-style: normal; font-family: var(--font-en); font-size: 13px; font-weight: 800; color: var(--e-ink); letter-spacing: .04em; }
.il-hist-c b { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 14px; font-weight: 900; line-height: 1.5; color: var(--e-fg); overflow-wrap: anywhere; }
.il-hist-c b img { height: 16px; width: auto; display: block; }

@media (max-width: 479px){
  .il-fv-pic img { border-radius: 22px; }
}
/* 区画が 460px 未満: 3列だと「正規取扱パート／ナー」と割れるので、縦の線に3つを縦に並べる（年・できごとを1行に） */
@container (max-width: 459px){
  .il-hist { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 0 0 0 26px; }
  .il-hist::before { left: 5px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; }
  .il-hist-c { grid-template-columns: 5.6em minmax(0, 1fr); column-gap: 10px; align-items: baseline; }
  .il-hist-c::before { left: -26px; top: 4px; }
  .il-hist-c em { font-size: 12.5px; }
  .il-hist-c b { font-size: 13.5px; }
  .il-hist-c b img { height: 14px; }
}

/* 代表の写真と名刺（2026-11-03 写真をいただいた）: 写真の下側に名刺を重ねる。名刺の見た目（白地・PCで少し傾ける）は e.css の 16-7 のまま */
.msg-visual { display: grid; min-width: 0; container-type: inline-size; }
.msg-photo { margin: 0; width: 82%; max-width: 400px; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; background: #C9CBD1; box-shadow: 0 30px 60px -36px rgba(31,61,170,.5); }
.msg-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* 名刺を重ねる量は列の幅に合わせる（どの幅でも写真の約30%。-170px 固定だと 968px で顎のすぐ下まで覆っていた） */
.msg-visual .e-bcard { position: relative; z-index: 1; justify-self: end; width: 90%; margin-top: -30cqw; }
/* 2026-11-04 本文が長くなり、追従（sticky）させると右下の丸ボタンの下に本文が居座る（1280x800・968x1080）ので、追従をやめて写真の高さの中央に置く */
@media (min-width: 901px) { .msg-body { align-self: center; } }
@media (max-width: 900px) {
  .msg-photo { width: min(80%, 400px); }
  .msg-visual .e-bcard { width: min(92%, 520px); margin-top: -64px; }
}
/* 673〜900px（折りたたみを開いた幅）は、写真と名刺を横に並べて名刺を写真に少し重ねる（縦に積むと写真の右が大きく空いた） */
@media (min-width: 673px) and (max-width: 900px) {
  .msg-visual { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: end; }
  .msg-photo { width: 100%; }
  .msg-visual .e-bcard { justify-self: stretch; width: auto; max-width: none; margin: 0 0 32px -56px; }
}
/* 名刺の「WIX 認定パートナー」: wix.svg は正方形の枠の中で字が小さい（16px で字が約6px）。形と色は変えず、枠を大きくして字を約12px にする */
.e-bcard-pt img[src$="/wix.svg"] { height: 30px; margin-block: -7px; }

/* ---- 2026-11-29 名刺の Wix の札は、Wix パートナーの公式バッジ（レジェンド・日本語版。形は変えず大きさだけ） ---- */
.e-bcard-pt li.is-legend { padding-block: 6px; padding-left: 8px; }
.e-bcard-pt li.is-legend img { width: 44px; height: 44px; }
/* 374px 以下は1行に入らない（344 で25px・360 で10px はみ出した）。バッジの横で「パートナー／（レジェンドレベル）」と括弧の前で折る（括弧の中は e-nw で折らない） */
@media (max-width: 374px) { .e-bcard-pt li.is-legend { white-space: normal; line-height: 1.45; } }
