/* 事業紹介「風の輪」(2026-11-23 本人決定。見比べページ biz-ref.html の案2・輪C「風の筋」を本体に反映)
   5事業を、少しずつ大きさの違う細い輪4本(途切れた筋が流れ続ける)でつなぎ、中心に縦型ロゴと「事業紹介」。
   区画に近づくと輪の場面まで自動で送り、にじみ→輪→ロゴ→「事業紹介」→事業の順に現れる(理念への動きと同じ、Emil Kowalski の基準)。
   スマホは「今の形」の並び(丸い写真2列の互い違い)+短い説明1行。説明文は本番HPの各事業ページの説明文から */
.bz2 { padding: var(--space-4) 0 var(--space-5); }
.bz2 h2 { font-size: var(--h2); line-height: 1.4; }
/* 見出しはロゴの下に出すので、パソコンでは上の見出しを画面から隠す(読み上げ用には残す) */
.bz2 .bz2-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: 0; }
/* 場面は高さ860pxで組み、画面が低いときは全体を縮小して1画面に収める(最小0.86倍。倍率 --k はJSが入れる) */
.bz2-stage { position: relative; height: calc(860px * var(--k, 1)); }
.bz2-scene { position: absolute; left: 0; top: 0; width: calc(100% / var(--k, 1)); height: 860px; transform: scale(var(--k, 1)); transform-origin: 0 0; }

/* にじみ:輪の後ろに、水色→薄紫の淡いにじみ(理念のにじむ背景と同じ色) */
.bz2-wash { position: absolute; inset: 0; pointer-events: none; }
.bz2-wash i { position: absolute; left: 50%; top: 50%; border-radius: 50%; translate: -50% -50%; filter: blur(40px); }
.bz2-wash i:nth-child(1) { width: 78%; height: 86%; background: radial-gradient(closest-side, rgba(217,239,249,0) 55%, rgba(217,239,249,.9) 80%, rgba(217,239,249,0) 100%); }
.bz2-wash i:nth-child(2) { width: 56%; height: 62%; background: radial-gradient(closest-side, rgba(233,228,249,.7), rgba(233,228,249,0)); }
.bz2-wash i:nth-child(3) { width: 30%; height: 34%; background: radial-gradient(closest-side, rgba(224,240,250,.9), rgba(224,240,250,0)); }

/* 風の筋:細い輪4本。途切れた筋が上側を右から左へ流れ続ける(輪はJSが描く) */
.bz2-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.bz2-ring path { fill: none; stroke-linecap: round; stroke-width: 1.3; stroke-dasharray: 34 6 18 9 22 11; animation: bz-around 38s linear infinite; }
.bz2-ring path:nth-child(1) { stroke: #48a8ab; opacity: .75; }
.bz2-ring path:nth-child(2) { stroke: #7cc3d6; opacity: .7; animation-duration: 52s; stroke-dasharray: 20 8 40 12; }
.bz2-ring path:nth-child(3) { stroke: #b4c8ef; opacity: .8; animation-duration: 30s; stroke-dasharray: 12 10 28 6 16 14; }
.bz2-ring path:nth-child(4) { stroke: #48a8ab; opacity: .35; stroke-width: 3; animation-duration: 64s; stroke-dasharray: 8 22 14 30; }
@keyframes bz-around { to { stroke-dashoffset: -100; } }

/* 中心:縦型ロゴの下に「事業紹介」 */
.bz2-core {
  position: absolute; left: 50%; top: 50%; width: 240px; height: 240px; margin: -120px 0 0 -120px; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 1px #d9eff9, 0 0 0 16px rgba(217,239,249,.4), 0 0 70px 30px rgba(217,239,249,.55);
}
.bz2-core img { width: 116px; height: auto; }
.bz2-core-title { font-size: 22px; font-weight: 700; letter-spacing: .12em; line-height: 1.4; color: var(--kifu-navy); }

/* 事業:位置はJSが楕円の上に置く(写真の中心が輪の上に来る) */
.bz2-node { position: absolute; width: 244px; margin-left: -122px; text-align: center; z-index: 1; }
.bz2-node a { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; }
.bz2-photo { display: block; width: 156px; aspect-ratio: 1 / 1; overflow: hidden; margin-bottom: 6px; box-shadow: 0 0 0 8px #fff; transition: transform 400ms var(--ease-out); }
.bz2-photo img { width: 100%; height: 100%; object-fit: cover; }
.bz2-name { font-size: 18px; font-weight: 700; line-height: 1.5; }
.bz2-desc { display: block; max-width: 230px; font-size: 14px; line-height: 1.8; color: #4a5d75; word-break: auto-phrase; text-wrap: pretty; }
.bz2-name, .bz2-desc { text-shadow: 0 0 4px #fff, 0 0 10px #fff, 0 0 18px #fff; } /* 輪が文字の後ろを通っても読めるよう、文字のまわりだけ白くぼかす */
@media (hover: hover) and (pointer: fine) { .bz2-node a:hover .bz2-photo { transform: scale(1.05); } }

/* 登場(Emil Kowalski の基準。理念の区画の is-blown と同じ値):ease-out、移動12〜16px、ぼかし6px→焦点、80ms刻み、全体約1.4秒 */
.js .bz2-wash { opacity: 0; scale: 1.04; transition: opacity 900ms var(--ease-out), scale 1200ms var(--ease-out); }
.js .bz2-ring { opacity: 0; scale: .98; transition: opacity 800ms var(--ease-out) 150ms, scale 900ms var(--ease-out) 150ms; }
.js .bz2-core { opacity: 0; translate: 0 12px; filter: blur(6px); transition: opacity 700ms var(--ease-out) 250ms, translate 800ms var(--ease-out) 250ms, filter 700ms var(--ease-out) 250ms; }
.js .bz2-core-title { opacity: 0; translate: 0 12px; filter: blur(6px); transition: opacity 700ms var(--ease-out) 350ms, translate 800ms var(--ease-out) 350ms, filter 700ms var(--ease-out) 350ms; }
.js .bz2-node { opacity: 0; translate: 16px 0; filter: blur(6px); transition: opacity 700ms var(--ease-out), translate 800ms var(--ease-out), filter 700ms var(--ease-out); }
.js .bz2-stage.is-in .bz2-wash { opacity: .55; scale: 1; }
.js .bz2-stage.is-in .bz2-ring { opacity: 1; scale: 1; }
.js .bz2-stage.is-in .bz2-core, .js .bz2-stage.is-in .bz2-core-title { opacity: 1; translate: none; filter: none; }
.js .bz2-stage.is-in .bz2-node { opacity: 1; translate: none; filter: none; }
/* 事業は右上から、上側を右から左へ回る順(風の向き) */
.js .bz2-stage.is-in .bz2-n2 { transition-delay: 430ms; }
.js .bz2-stage.is-in .bz2-n1 { transition-delay: 510ms; }
.js .bz2-stage.is-in .bz2-n5 { transition-delay: 590ms; }
.js .bz2-stage.is-in .bz2-n4 { transition-delay: 670ms; }
.js .bz2-stage.is-in .bz2-n3 { transition-delay: 750ms; }
.bz2-wash { opacity: .55; }

/* スマホ・タブレット:輪は出さず、「今の形」の並び(丸い写真2列の互い違い)+短い説明1行 */
.bz2-sp { display: none; }
.bz2-sp-desc { font-size: min(13px, calc((100vw - 60px) / 2 / 11.5)); line-height: 1.8; color: #4a5d75; letter-spacing: 0; white-space: nowrap; margin-top: -4px; } /* 狭い画面では1列の幅に11文字が収まる大きさまで小さくする */
@media (max-width: 900px) {
  .bz2 { padding: var(--space-4) 0; }
  .bz2 .bz2-h { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; margin-bottom: var(--space-4); }
  .bz2 .bz2-stage { display: none; }
  .bz2 .bz2-sp { display: grid; margin-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bz2-ring path { animation: none; }
  .js .bz2-wash, .js .bz2-ring, .js .bz2-core, .js .bz2-core-title, .js .bz2-node { scale: 1; translate: none; filter: none; transition: opacity 300ms ease; transition-delay: 0s; }
}
