/* ============================================================
   flow.css — 採用・会社系ページの背景（夜の地ににじむ色の光）
   ・背景は黒のまま。その奥で、深い赤・ワイン・墨の光が3つにじむ
   ・区画（data-tone）ごとに色味と光の位置が決まっていて、スクロールに合わせて
     次の区画の色・位置へゆっくり移る（js/flow.js）
   ・背景を見せたい区画は地を透明にする（各ページの CSS）。写真・動画・ベルベットの区画はそのまま上に重なる
   ・明るい企業らしさは背景ではなく、区画の中の枠に入れた写真で出す
   ・動きを減らす設定・JS なしでは、最初の区画の色と位置で止まる
   使い方: main の先頭に {{ c.flow() }}（partials/common.html）を置き、区画に data-tone を付ける
          data-tone は wine（ワイン）／crimson（深い赤）／sumi（墨）／garnet（柘榴）
   文字の読みやすさ: 光のいちばん明るい所でも、補助の文字（--text-3）が 4.5:1 以上になる明るさに抑えている
   ============================================================ */
.flow { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--night);
  /* 色は「R G B」。初期値は wine（js/flow.js の TONES と同じ値） */
  --fa: 118 22 50; --fb: 72 18 36; --fc: 40 22 30; }
.flow i { position: absolute; left: 0; top: 0; width: 120vmax; height: 120vmax; margin: -60vmax 0 0 -60vmax; border-radius: 50%; will-change: transform; }
.flow i:nth-child(1) { background: radial-gradient(closest-side, rgb(var(--fa) / .5), rgb(var(--fa) / .26) 46%, rgb(var(--fa) / 0)); transform: translate3d(16vw, 18vh, 0); }
.flow i:nth-child(2) { background: radial-gradient(closest-side, rgb(var(--fb) / .5), rgb(var(--fb) / .26) 46%, rgb(var(--fb) / 0)); transform: translate3d(84vw, 72vh, 0); }
.flow i:nth-child(3) { background: radial-gradient(closest-side, rgb(var(--fc) / .5), rgb(var(--fc) / .26) 46%, rgb(var(--fc) / 0)); transform: translate3d(46vw, 112vh, 0); }
/* 粒子を薄く重ねて、のっぺりした面にしない */
.flow::after { content: ""; position: absolute; inset: 0; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- 区画の中に入れる明るい写真（枠） ----------
   写真は明るいまま、区画の地（暗い）の上に枠で置く。写真の注記は付けない（2026-09-30 ユーザー指示） */
.fphoto { margin: 0; }
.fphoto-in { overflow: hidden; border-radius: var(--r-s); background: var(--night-3); box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.fphoto-in img { width: 100%; height: 100%; object-fit: cover; }
.fphoto figcaption { margin-top: 10px; font-size: 12px; letter-spacing: .04em; color: var(--text-3); text-align: right; }

/* ---------- 背景の素材を持たないページの頭 ----------
   page.css の「下の面へなじませる」覆い（夜の色へ溶かす）は、背景の光を切ってしまうので外す */
.flow ~ .ph:not(:has(> .ph-bg))::after { content: none; }

/* ---------- 夜の色へ溶かした区画（ベルベットのページの頭・応募窓口）との境目 ----------
   となりの区画の端を夜の色から始めて、背景の光との段差を見せない。
   flow-seam-top＝上の区画が夜の色で終わるとき／flow-seam-bottom＝下の区画が夜の色で始まるとき */
.flow-seam-top, .flow-seam-bottom { position: relative; }
.flow-seam-top::before, .flow-seam-bottom::after { content: ""; position: absolute; left: 0; right: 0; z-index: -1; height: clamp(120px, 24vh, 240px); pointer-events: none; }
.flow-seam-top::before { top: 0; background: linear-gradient(var(--night), rgba(13, 10, 11, 0)); }
.flow-seam-bottom::after { bottom: 0; background: linear-gradient(rgba(13, 10, 11, 0), var(--night)); }
