/* fine-tuning.com (技術サイト) トップの FV。
   背景はコーポレートサイト(ft-corp-site)の黒い FV と同じ GhostFibers。
   文字の並びは元の FV と同じ：左の列に「FINE TUNING®で」「+α」「の機能価値を」「サブコピー」を縦に積み、画面の上下中央。
   右下に SCROLL DOWN。大きさ・位置の数字は元の FV(STUDIO)を実測した値(PC は下の min-width:841px で 1.5 倍)。
   文言は CONTENTS.md §2 HERO。STUDIO 側の CSS と当たらないよう、すべて .ftfv の中だけに効かせる。 */
.ftfv{
  --fw:85vw;                 /* サイト共通のコンテンツ幅(左右 7.5vw) */
  --hd:126px;                /* 固定ヘッダーの高さ */
  --e:cubic-bezier(.16,1,.3,1);
  position:relative;flex:none;align-self:stretch;width:100%;
  min-height:100vh;min-height:100svh;
  display:flex;flex-direction:column;justify-content:center;align-items:center;
  padding:var(--hd) 0;margin:0;      /* 上下同じだけ空ける = 中央はずれず、低い画面でもヘッダーに潜らない */
  background:#000;color:#fff;overflow:hidden;overflow:clip;isolation:isolate;
  font-family:var(--s-font-2c9abfde,'Noto Sans JP'),sans-serif;line-height:1.4;
  -webkit-font-smoothing:antialiased;
}
.ftfv,.ftfv *,.ftfv *::before,.ftfv *::after{box-sizing:border-box}
.ftfv :where(p,h1){margin:0;padding:0}
.ftfv h1,.ftfv p{color:#fff}        /* STUDIO 側の h1 の色(#333)に負けないように */

/* 背景 */
.ftfv-canvas,.ftfv-fallback{position:absolute;inset:0;z-index:-1}
.ftfv-canvas canvas{display:block;width:100%;height:100%}
.ftfv-fallback{background:
  radial-gradient(55% 45% at 68% 40%,rgba(139,74,241,.3),transparent 70%),
  radial-gradient(45% 40% at 22% 70%,rgba(110,65,215,.22),transparent 70%),#000}
.ftfv-fallback[hidden]{display:none}
/* 文字の後ろだけ少し沈める(背景の粒が文字と重なっても読めるように)。PC は左側、スマホは下側 */
.ftfv::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,.22) 36%,transparent 58%)}

/* 文字の列(左寄せ・上下中央) */
.ftfv-main{position:relative;width:var(--fw);display:flex;flex-direction:column;align-items:flex-start}
.ftfv-copy{display:flex;flex-direction:column;align-items:flex-start}
.ftfv-l1{display:flex;align-items:center}
.ftfv-brand{font-family:var(--s-font-888fb119,Figtree),sans-serif;font-weight:700;font-size:3.39vw;line-height:1.4;white-space:nowrap}
.ftfv-jp{font-weight:700;font-size:2.71vw;line-height:1.4;white-space:nowrap}
.ftfv-plus{display:flex;align-items:center;
  font-family:var(--s-font-888fb119,Figtree),sans-serif;font-weight:700;font-size:6.77vw;line-height:1.4}
.ftfv-plus span{display:block;white-space:nowrap}
.ftfv-plus img{display:block;flex:none;width:auto;height:125px;max-width:none}
.ftfv-nb{white-space:nowrap}   /* 「＋α」の間で折り返さない */
.ftfv-sub{width:calc(var(--fw)*.32);margin-top:32px;font-size:15.04px;font-weight:500;line-height:2.2;text-align:left;line-break:strict}

/* SCROLL DOWN：右下。文字 + 細い線 + 落ちる点。線と点は文字の大きさ(em)に合わせる＝14px のとき元の FV と同じ
   (間 24px・線 2×68px・点 10px・落ちる距離 60px) */
.ftfv-cue{position:absolute;right:7.5vw;bottom:10vh;bottom:10svh;display:flex;align-items:center;gap:1.714em;
  font-family:var(--s-font-888fb119,Figtree),sans-serif;font-size:14px;font-weight:400;line-height:1.4;
  white-space:nowrap;pointer-events:none}
.ftfv-cue i{position:relative;display:block;flex:none;width:.857em;height:4.857em}
.ftfv-cue i::before{content:"";position:absolute;left:.357em;top:0;width:.143em;height:100%;border-radius:.286em;background:#737373}
.ftfv-cue i::after{content:"";position:absolute;left:.071em;top:0;width:.714em;height:.714em;border-radius:50%;background:#fff;
  opacity:0;animation:ftfv-cue 2s infinite}
@keyframes ftfv-cue{0%{transform:translateY(0);opacity:0}50%{opacity:1}100%{transform:translateY(4.286em);opacity:0}}

/* PC(841px 以上)：文字を元の FV の 1.25 倍に。
   2026-11-16 ユーザー指定「デスクトップで 50% 大きく」で 1.5 倍(versions/v3-pc-150/)→「大きすぎた、いいぐらいに」で 1.25 倍。
   --u は 1440px 幅で 14.4px(=1vw)の物差し。見出しと括弧は「元の FV の 1440px での値 ÷ 14.4 × 1.25」で画面幅に比例。
   ・サブコピーは比例させると広い画面で大きくなりすぎるので 18〜26px に収める(幅は 26.5em＝どの画面でも同じ所で折り返す)
   ・低い画面では文字の塊(約 34u)がヘッダーの間に収まるよう高さで頭打ち。ただし元の大きさ(.8vw)は下回らない
   ・SCROLL DOWN は 14px → 17.5px(線と点も同じ比率) */
@media (min-width:841px){
  .ftfv{--u:max(.8vw,min(1vw,calc((100vh - 2*var(--hd))/36)))}
  .ftfv-brand{font-size:calc(var(--u)*4.2375)}
  .ftfv-jp{font-size:calc(var(--u)*3.3875)}
  .ftfv-plus{font-size:calc(var(--u)*8.4625)}
  .ftfv-plus img{height:calc(var(--u)*10.85)}
  .ftfv-sub{width:26.5em;max-width:100%;margin-top:calc(var(--u)*2.778);font-size:clamp(18px,calc(var(--u)*1.306),26px);
    word-break:keep-all}   /* 文字が大きくなると「によ／り」のように語の途中で切れるので、fv.html の <wbr>(文節の切れ目)でだけ折り返す */
  .ftfv-cue{font-size:17.5px}
  .ftfv::after{background:linear-gradient(to right,rgba(0,0,0,.55),rgba(0,0,0,.25) 42%,transparent 66%)}
}

/* 出現(JS が動いたときだけ隠してから、上から順に出す) */
.ftfv-js .ftfv-copy>*,.ftfv-js .ftfv-sub{opacity:0;transform:translateY(18px);transition:opacity 1s var(--e),transform 1.2s var(--e)}
.ftfv-js .ftfv-copy>:nth-child(1){transition-delay:.15s}
.ftfv-js .ftfv-copy>:nth-child(2){transition-delay:.3s}
.ftfv-js .ftfv-copy>:nth-child(3){transition-delay:.45s}
.ftfv-js .ftfv-sub{transition-delay:.65s}
.ftfv-js .ftfv-cue{opacity:0;transition:opacity 1s var(--e) 1.2s}
.ftfv-js .ftfv.is-ready .ftfv-copy>*,.ftfv-js .ftfv.is-ready .ftfv-sub{opacity:1;transform:none}
.ftfv-js .ftfv.is-ready .ftfv-cue{opacity:1}

/* タブレット縦〜スマホ(サイトの切り替えと同じ 840px 以下)：文字は画面の下側、SCROLL DOWN は線だけ */
@media (max-width:840px){
  /* 背景が画面の下端(iPhone の下のツールバーの裏)まで届くよう、高さは大きい方の画面の高さ(100lvh)。
     文字はツールバーの上に残すため、下の余白に差(100lvh − 100svh)を足す(2026-11-25) */
  .ftfv{--hd:94px;justify-content:flex-end;min-height:100lvh;
    padding-bottom:13.5vh;padding-bottom:13.5svh;padding-bottom:calc(13.5svh + 100lvh - 100svh)}
  .ftfv::after{content:none}   /* 文字の後ろのグラデーションはかけない(背景を画面いっぱいに見せる・2026-11-25 CMO 指定) */
  .ftfv-brand{font-size:7vw}
  .ftfv-jp{font-size:6vw}
  .ftfv-plus{font-size:12vw}
  .ftfv-sub{width:calc(var(--fw)*.8)}
  .ftfv-cue span{display:none}
  .ftfv-cue{bottom:calc(10svh + 100lvh - 100svh)}   /* 高さを 100lvh にした分、SCROLL DOWN もツールバーの上に残す */
}
@media (max-width:540px){
  .ftfv{padding-bottom:11.2vw;padding-bottom:calc(11.2vw + 100lvh - 100svh)}
  .ftfv-copy{gap:8px}
  .ftfv-brand{font-size:9vw}
  .ftfv-jp{font-size:7vw}
  .ftfv-plus{font-size:18vw}
  .ftfv-plus img{height:max(125px,25.2vw)}
  .ftfv-sub{font-size:14px}
  .ftfv-cue{bottom:15vh;bottom:15svh;bottom:calc(15svh + 100lvh - 100svh);scale:.6}
}
@media (prefers-reduced-motion:reduce){
  .ftfv-js .ftfv-copy>*,.ftfv-js .ftfv-sub{opacity:1;transform:none;transition:none}
  .ftfv-js .ftfv-cue{opacity:1;transition:none}
  .ftfv-cue i::after{animation:none;opacity:1}
}
