/* ============================================================
   トップ（index.html）だけの絵の置き方。e.css の後に読む
   2026-10-27 画風C「道を照らす物語」（ペンギンの案内役が懐中電灯で道を照らす）の第1弾。
   絵の決まり: BIBLE.md
   FV は見本で決めた置き方（phase1/mock-fv-snippet.html）をそのまま基本にし、
   キャッチは今の12字のまま（文字の大きさは e.css の 100cqi / 12.3 のまま。絵の列の幅で決まる）
   ============================================================ */

/* ---------- FV: 公式シンボルの円盤・光の帯・輪・ダミーのカード3枚を外し、hero の絵にする ---------- */
.e-fv-mark.e-fv-mark--ill { --mk: auto; aspect-ratio: auto; display: block; position: static; }
.e-fv-mark--ill::before { content: none; }
.e-fv-ill { display: block; max-width: none; object-fit: cover; }
html.e-motion .e-fv-ill { animation: e-fv-up 1s var(--e-ease) .2s both; }

/* 2列（横長の画面）: 絵はパネルの右下に貼り付け、右端と下端をパネルの縁で切る。下は 30px はみ出させてペンギンの足先を切る。
   文字の列は、絵と同じ幅の空き（.e-fv-mark--ill）の左だけを使うので、どの幅でも文字が絵にかからない */
@media (min-width: 1105px), (min-width: 673px) and (orientation: landscape) {
  /* 幅はパネルの幅（＝画面幅−24px）の 47%。% で書くと親の箱が基準になるので vw で書く。
     10/27 反証: 見本の 54% だとキャッチが 1280x800 で 37px まで縮んだ（円盤の時は約62px）。47% に絞って文字の列を広げ、約44px に戻す */
  .e-fv-panel { --pic-w: clamp(360px, calc((100vw - 24px) * .47), 760px); --pic-ar: 1.2; }
  .e-fv-in { position: static; }
  .e-fv-mark.e-fv-mark--ill { width: calc(var(--pic-w) - 24px); height: 1px; align-self: center; }
  .e-fv-ill { position: absolute; z-index: 1; right: 0; bottom: -30px; width: var(--pic-w); height: auto; aspect-ratio: var(--pic-ar);
    object-position: 42% 0; border-radius: 40px 0 0 0; }
}
/* 673〜1104px の横長（Pixel Fold 横・Z Fold 横）: 文字の列が細い。キャッチが12字あるので、見本の 57% から 50% に絞り、
   中の列の左右の余白も 48px→32px に詰めて文字の列を広げる（841px でキャッチ 20px → 28px）。絵は少し縦長に寄せて右上の空きを減らす */
@media (min-width: 673px) and (max-width: 1104px) and (orientation: landscape) {
  .e-fv-panel { --pic-w: calc((100vw - 24px) * .5); --pic-ar: 1.08; }
  .e-fv-in { width: calc(100% - 64px); gap: 24px; }
  /* 絵が元より縦長（1.08）なので左右が切れる。42% だと左を元絵で約136px切り、ペンギンの頭の左端（x=125）が絵の左端の直線で平らになった。
     28% にして左の切れを約95pxに減らし、頭の左に余裕を残す（右の店は窓の途中で切れるが扉は残る） */
  .e-fv-ill { object-position: 28% 0; }
}
/* PC（1105px 以上）: 2026-10-30 キャッチを大きくし、FV の見た目に変化をつけた。
   キャッチの大きさを、絵の左の細い列ではなく FV の中の幅いっぱい（最大1440px）から決める（各行12字まで1行・最大112px。1440x900 で約40px→約106px）。
   絵は右下に貼る置き方のまま。大きさは「キャッチの下端からパネルの下端までの空き」から決め、キャッチの2行目の右側が絵の上の空（絵の高さの上2割）にだけかかるようにする */
@media (min-width: 1105px) {
  .e-fv-panel {
    --fv-h: clamp(560px, calc(100svh - 56px), clamp(880px, 50vw, 960px));  /* 1920px 以上の広い画面だけ、高さの上限を 880→960px に */
    --fv-pt: clamp(108px, 14svh, 160px);                 /* ヘッダーの下の余白 */
    --fv-in: min(calc(100vw - 120px), clamp(1200px, 92vw, 1600px));  /* FV の中の幅（下の .e-fv-in と同じ式を vw で） */
    --cf: min(116px, calc(var(--fv-in) / 12.8));         /* キャッチの文字の大きさ（下の .e-catch と同じ値） */
    --cb: calc(var(--fv-pt) + 46px + 2.32 * var(--cf)); /* パネルの上端からキャッチの下端まで（検索語の札と間を含む） */
    /* 絵の高さ ≦ 空き ÷ 0.82（上の 18% だけキャッチの下に入る）、幅 ＝ 高さ × 1.2。2行目が12字でも絵の親子の頭にかからない深さ */
    --pic-w: min(calc((100vw - 24px) * .52), 960px, calc((var(--fv-h) + 30px - var(--cb)) / .82 * 1.2));
    min-height: var(--fv-h);
    align-items: start;
    padding-top: var(--fv-pt);
  }
  .e-fv-in { width: min(calc(100% - 96px), clamp(1200px, 92vw, 1600px)); grid-template-columns: minmax(0, 1fr); }
  .e-fv-mark.e-fv-mark--ill { display: contents; }
  .e-catch { font-size: min(116px, calc(100cqi / 12.8)); line-height: 1.16; }
  /* 検索語の5つを札にする（文字の「・」は読み上げとサイト内検索のために残し、見た目だけ隠す） */
  .e-kw::before { display: none; }
  .e-kw-row { display: flex; flex-wrap: wrap; gap: 8px; }
  .e-kw-s { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .e-kw-i { display: inline-flex; align-items: center; min-height: 34px; padding: 0 16px; border-radius: 999px; background: rgba(255,255,255,.78);
    border: 1px solid rgba(42,111,245,.2); font-size: 14px; letter-spacing: .06em; color: var(--e-ink); box-shadow: 0 6px 16px -12px rgba(30,60,140,.5); }
  .e-fv-sub { font-size: 17px; }
}
/* 1列（スマホ・縦長の折りたたみ・iPad 縦）: 絵は CTA の下に全幅で。パネルの下端まで下ろし、下の角丸で切る */
@media (max-width: 672px), (max-width: 1104px) and (orientation: portrait) {
  .e-fv-panel { min-height: 0; padding-bottom: 0; align-items: start; }
  .e-fv-in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  /* パネルの左右の端まで広げる（中の列の余白は幅によって 24〜48px と違うので、100% と画面幅の差から求める）。673px 以上はパネルの外に 12px の余白がある */
  .e-fv-mark.e-fv-mark--ill { order: 3; justify-self: stretch; width: calc(100vw - 24px); margin: 0 calc((100% - (100vw - 24px)) / 2); }
  .e-fv-ill { width: 100%; height: auto; aspect-ratio: 1.325; border-radius: 28px 28px 0 0; }
}
@media (max-width: 672px) {
  .e-fv-mark.e-fv-mark--ill { width: 100vw; margin: 0 calc((100% - 100vw) / 2); }
}

/* ---------- サービス（円弧のカルーセル）: 2026-10-30 ホームページ制作の3つの作り方を 01〜03 に。
   01 Figmaデザイン×AI構築 の「おすすめ」は e.css の .svc-rec（地はグラデーション）。02 AIサイト制作「予算を抑えたい方へ」・
   03 ノーコード制作「自社で運用したい方へ」は、同じ大きさ・同じ置き場所（番号の右）の札で、地を淡い水色にしておすすめと見分ける。
   狭いカードでは番号の下の行へ折り返す（.svcs .svc-num は flex-wrap・gap 10px） ---------- */
.svc-for { display: inline-block; padding: 2px 9px; border: 1px solid rgba(42,111,245,.24); border-radius: 999px; background: var(--e-sky); color: var(--e-ink);
  font-family: var(--font-jp); font-size: 11px; font-weight: 700; letter-spacing: .08em; line-height: 1.5; }

/* ---------- 強み: 3項目それぞれの見出しの下に小さな絵（構図は 見下ろしの引き／机の高さの寄り／真横の2人 で変える）。
   絵は緑の地で描いて切り抜いたもの。床（机）が絵の下端と左右の端まで続くので、窓の縁で切る。
   窓の地はこのページの挿絵の窓で1色（#DAE7FC。制作の流れの窓も同じ）。AIR #E4EEFC だと淡い氷色の物（シャツ・お腹・地図の紙）が地に沈む。
   1ページの中で同じ大きさの絵を並べないよう、01 は引きなので横長 16:9、02 は寄りなので小さめ、03 は 4:3 で幅いっぱい ---------- */
.str-ill { margin: 22px 0 0; width: 100%; max-width: 400px; aspect-ratio: 800 / 604; border-radius: 20px; overflow: clip; background: #DAE7FC; }
.str-ill--wide { aspect-ratio: 16 / 9; }
.str-ill--sm { width: 80%; max-width: 300px; }
.str-ill img { display: block; width: 100%; height: auto; }
@media (max-width: 1000px) { .str-ill { margin-top: 18px; } }

/* ---------- AI の図: 中央のぼかしの球（AI ORCHESTRATION）を spot-ai の絵に。公式ロゴの札は残し、上に部類ごとに並べる。
   絵は札の下に全幅で置き、下端と左右をパネルの縁で切る（絵の机と椅子が縁で切れる） ---------- */
.feat-visual.e-ai-map .e-ai-stage { --ai-pad: clamp(14px, 4cqi, 26px); aspect-ratio: auto; display: grid; grid-template-columns: minmax(0, 1fr);
  align-items: start; gap: 14px 10px; padding: clamp(18px, 5cqi, 30px) var(--ai-pad) 0; }
.feat-visual.e-ai-map .e-ai-g { position: static; width: auto; justify-items: center; }
.feat-visual.e-ai-map .e-ai-g ul { justify-content: center; }
/* 2026-11-07 対話型とエージェントの2段（自律型の札はエージェントにまとめた）。どちらも全幅 */
.feat-visual.e-ai-map .e-ai-g--chat, .feat-visual.e-ai-map .e-ai-g--agent { grid-column: 1 / -1; }
/* HTML では絵が先にあるので、order で札の後ろ（パネルの下端）へ回す */
.feat-visual.e-ai-map .e-ai-core--ill { order: 3; position: relative; inset: auto; grid-column: 1 / -1; display: block; aspect-ratio: auto; margin: 2px calc(var(--ai-pad) * -1) 0; }
.e-ai-ill { display: block; width: 100%; height: auto; margin-bottom: -1px; }
/* 図の幅が狭いとき（スマホ）: 段の間を少し空ける */
@container e-ai (max-width: 469px) {
  .feat-visual.e-ai-map .e-ai-stage { gap: 14px; }
}

/* ---------- 制作の流れ: 5つの工程カードの真上に踏み石の帯 ---------- */
.e-flow { position: relative; z-index: 0; margin-top: clamp(28px, 4vw, 48px); pointer-events: none; }
.e-flow img { display: block; max-width: none; height: auto; }
/* 1200px 以上（カードが横に5枚）: 帯の画像は、元の絵 2048px の左右に地面を 1200px ずつ延ばしたもの（4448px）。
   元の絵の部分を容器の 108.42% の幅で、-3.02% ずらして置く＝踏み石 10.9/30.1/49.1/69.4/86.9% が、カードの中心 8.8/29.4/50/70.6/91.2% に乗る。
   帯は区画の左右の端まで出て、区画（.proc の overflow:clip）の縁で切れる */
@media (min-width: 1200px) {
  .e-flow img { width: 235.48%; margin-left: -66.55%; }
  .e-flow + .proc-list { position: relative; z-index: 1; margin-top: -3.28%; }
}
/* 1199px 以下（カードが縦に並ぶ）: 踏み石とカードの位置が合わなくなるので帯は出さない。
   後ろ3つの踏み石とペンギン・旗だけを切り出した小さな絵を、角丸の窓に入れてカードの上に置く（地面を窓の下端で切る）。
   窓の地は強みの窓と同じ #DAE7FC（このページの挿絵の窓は1色） */
@media (max-width: 1199px) {
  .e-flow { width: min(100%, 560px); border-radius: 22px; overflow: clip; background: #DAE7FC; padding-top: 14px; }
  .e-flow img { width: 100%; margin-bottom: -1px; }
  .e-flow + .proc-list { margin-top: 24px; }
}

/* ---------- 制作実績（#works）の3D（.w3）は、/works の頭と共通にするため assets/pages/works3d.css へ移した（2026-11-24。中身はそのまま）。
   index.html は home.css の後に works3d.css を読む ---------- */

/* ---- 2026-11-29 Wix パートナーの公式バッジ（レジェンド・日本語版）。代表「レジェンドのアイコンをちゃんと入れて」。
   Wix のワークスペースから取った ja-JP_legend_large.png を形・色・文字を変えずに置き、大きさだけ決める ---- */
.e-about-plogo.is-legend { height: 72px; }
.e-about-plogo.is-legend img { width: 72px; height: 72px; }
