/* ============================================================
   sec5.css — 指示書「会社の想い」（表示ラベルは 04 / VISION）
     🔴 内部ファイル名は sec5 だが、表示上の連番は「04」。
        sec3.css=表示02(WHY) / sec4.css=表示03(CULTURE) と
        ファイル番号と表示番号がズレているので混同しないこと。

   2026-09-12 ユーザーがカンプ（941x1672・自分の実装を土台にした確定デザイン）と
   背景画像を支給。「これで作って／背景画像は2枚目」の指示どおり全面作り直し。
   カンプから実測した値:
     - 背景: 支給画像そのまま（assets/site/sec5/bg.webp）。オーバーレイ加工は不要
     - タイトル: 白箱+青文字(#00a0e9)。「にゅーバランス」の下だけ黄アンダーライン
     - サブコピー: 手書き風の白イタリック「New Balance for a Better Future」＋黄下線
     - 3つの丸: 全部同径・横一列（PC/SPとも）。左=歴史×新しい働き方(紺地・時計アイコン)、
       中=安定×自由(白地・紺文字・人物アイコン＋黄光線・前面に少し大きく)、
       右=稼ぎ×休み(紺地・コインアイコン)。丸の間に点2つの区切り
     - 丸の下にシェブロン(∨∨)、結び「その両立が実現可能！」（実現可能！だけ黄+下線）
   ============================================================ */

html.swipe-b .lMain > section#vision {
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  height: auto;
}

.pSec5 {
  --fvu: min(1vw, calc(var(--app-h, 100dvh) * 0.004621));
  position: relative;
  width: 100%;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: hidden;
  background: #0090f0;
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  color: #ffffff;
}

/* ---- 背景（支給画像そのまま）------------------------------------ */
.pSec5__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  will-change: transform;
}

.pSec5__inner {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--swipe-top, 60px);
  bottom: 0;
}

.pSec5__label {
  left: 6%;
  top: 2.2%;
}

/* ---- 見出し〜結び --------------------------------------------------
   🔴 2026-09-12 ユーザー指摘「空白のスペースが多すぎる／精度低い」。
   margin指定の積み上げで感覚的に調整していたのが誤りだった。
   カンプ画像(941x1672)をPythonで直接ピクセル解析し、ヘッダー下の
   実表示域(y=220〜1420, 高さ1200基準)に対する各要素のtop%を実測して
   そのまま絶対配置に置き換える（測ってから作る＝rule8）。 */
.pSec5__content {
  position: absolute;
  inset: 0;
  z-index: 4;
}

/* ---- 見出し（白箱+青文字）-------------------------------------- */
.pSec5__title {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 10.8%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.14em;
}
.pSec5__title_main {
  width: fit-content;
  padding: 0.12em 0.32em 0.18em;
  border-radius: calc(var(--fvu) * 0.6);
  /* 🔴 ユーザー指摘: メインキャッチは他ページ(sec3=8.0/sec4=6.4)と統一感を
     揃えること。直前パネルのCULTURE(sec4)と同じ6.4fvuに合わせる。 */
  font-size: calc(var(--fvu) * 6.4);
  font-weight: 900;
  line-height: 1.22;
  color: #00a0e9;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 40, 90, 0.22);
}
/* 🔴 ユーザー指摘「にゅーバランスの文字はグラデーション」
   → sec4(CULTURE) .pSec4__grad と同じグラデーションを流用（統一） */
.pSec5__title_main .--y {
  position: relative;
  display: inline-block;
  background: linear-gradient(100deg,
      #00a0e9 0%, #3fc3f5 18%, #7be0c6 34%, #ffd84d 50%,
      #7be0c6 66%, #3fc3f5 82%, #00a0e9 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: sec5Grad 6s linear infinite;
}
@keyframes sec5Grad {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}
.pSec5__title_main .--y::after {
  content: "";
  position: absolute;
  left: 0.02em;
  right: 0.02em;
  bottom: 0.02em;
  height: 0.16em;
  border-radius: 999px;
  background: #ffe14d;
  z-index: -1;
}

/* ---- サブコピー（手書き風の英字）--------------------------------- */
.pSec5__sub {
  position: absolute;
  right: 6%;
  top: 32.5%;
  z-index: 3;
  margin: 0;
  max-width: 46%;
  text-align: right;
  font-family: "FvScript", "Segoe Script", cursive;
  font-size: calc(var(--fvu) * 3.4);
  font-weight: 600;
  line-height: 1.35;
  color: #ffffff;
  text-shadow: 0 1px 6px rgba(10, 55, 100, 0.35);
}
.pSec5__sub::after {
  content: "";
  display: block;
  margin: 0.15em 0 0 auto;
  width: 70%;
  height: 0.14em;
  border-radius: 999px;
  background: #ffe14d;
  transform: rotate(-2deg);
}

/* ---- リード文 ------------------------------------------------ */
.pSec5__lead {
  position: absolute;
  left: 6%;
  /* 🔴 ユーザーが赤丸で指摘：タイトル直後の空白が広すぎた。
     メインキャッチを6.4fvuに縮めた際、lead位置を旧タイトル高さのまま
     固定していたのが原因。実測ギャップ(カンプ4.75%)に合わせて詰める。 */
  top: 26.5%;
  max-width: 54%;
  margin: 0;
  /* 🔴 ユーザー指摘: サブキャッチ(リード文)も他ページと統一。
     直前パネルCULTURE(sec4)のlead=3.1fvuに合わせる。 */
  font-size: calc(var(--fvu) * 3.1);
  font-weight: 700;
  line-height: 1.7;
  color: #ffffff;
  text-shadow: 0 1px 6px rgba(10, 55, 100, 0.28);
}

/* ---- 3つの丸（自前のCSS円+アイコンに戻す）--------------------------
   🔴 一度「円は新背景画像に焼き込み済み」として自作円を消したが、
   941x1672の画像をobject-fit:coverでSP390(390x844)に敷くと、
   画像アスペクト比の違いから左右が約55px（原寸換算）クロップされ、
   端に寄っていた側面円が画面外に切れる実害が発生（実測で確認）。
   円はDOM側で描く方式に戻し、画像は都市+道路の帯だけ別途使う。
   縦位置(top%)はコンテンツ高さ基準なのでクロップの影響を受けず、
   新カンプの実測値(33.5%〜)をそのまま使える。 */
/* ---- 3つの丸を三角形配置に変更（上1つ・下2つ）----------------------
   🔴 ユーザー指示: 横一列をやめて三角形配置にし、空いた縦のスペースを
   埋めるサイズまで拡大。丸の中のアイコンも目一杯まで大きくする。
   絶対配置に切り替え（flexの横並びをやめる）。 */
.pSec5__pills {
  position: absolute;
  left: 0;
  right: 0;
  top: 35%;
  height: calc(var(--fvu) * 73);
  z-index: 4;
}
.pSec5__pill {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.2em;
  border-radius: 50%;
  background: #0156bf;
  color: #ffffff;
  text-align: center;
  box-shadow: 0 6px 18px rgba(2, 13, 90, 0.35);
  will-change: transform;
  /* 下2つの既定値。上(--main)で上書き */
  width: calc(var(--fvu) * 38);
  height: calc(var(--fvu) * 38);
  top: calc(var(--fvu) * 35);
}
#sec5-pill-1 {
  left: calc(50% - (var(--fvu) * 39));
}
#sec5-pill-3 {
  left: calc(50% + (var(--fvu) * 1));
}
.pSec5__pill.--main {
  z-index: 2;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: calc(var(--fvu) * 44);
  height: calc(var(--fvu) * 44);
  background: #ffffff;
  color: #0c2a86;
  box-shadow: 0 10px 26px rgba(2, 13, 90, 0.3);
}
.pSec5__pill_icon {
  /* 🔴 ユーザー指示「アイコンをギリギリまで大きく」→ 円の直径の65%まで拡大 */
  width: 65%;
  height: 65%;
  margin-bottom: 0.1em;
}
.pSec5__pill_label {
  margin: 0;
  font-size: calc(var(--fvu) * 2.3);
  font-weight: 800;
  line-height: 1.25;
}
.pSec5__x {
  margin: 0 0.1em;
  color: inherit;
  opacity: 0.85;
  font-weight: 900;
}
.pSec5__pill_label::after {
  content: "";
  display: block;
  width: 1.6em;
  height: 0.1em;
  margin: 0.16em auto 0;
  border-radius: 999px;
  background: #ffe14d;
}
/* 丸同士のつながりの点は三角配置では意匠が合わないため非表示 */
.pSec5__dots {
  display: none;
}

/* ---- シェブロン（下向き）----------------------------------------- */
.pSec5__chevron {
  position: absolute;
  left: 50%;
  top: 73.5%;
  transform: translateX(-50%);
  width: calc(var(--fvu) * 7.5);
  height: calc(var(--fvu) * 7.5);
  margin: 0;
  color: #ffffff;
  opacity: 0.9;
}

/* ---- 結び「その両立が実現可能！」---------------------------------
   🔴 カンプ実測: 下線は「実現可能！」部分だけでなく行全体の下に
   1本通っている。個別下線ではなく行全体の::afterに変更。 */
.pSec5__closing {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 78.5%;
  margin: 0;
  padding-bottom: 0.3em;
  text-align: center;
  font-size: calc(var(--fvu) * 8.5);
  font-weight: 900;
  letter-spacing: 0.03em;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(10, 50, 95, 0.35);
}
.pSec5__closing .--y {
  color: #ffe14d;
}
.pSec5__closing::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 82%;
  transform: translateX(-50%);
  height: 0.09em;
  border-radius: 999px;
  background: #ffe14d;
}

/* ---- People Build Tomorrow ------------------------------------ */
.pSec5__pbt {
  position: absolute;
  left: 0;
  right: 0;
  top: 92.5%;
  z-index: 4;
  margin: 0;
  text-align: center;
  font-family: "FvScript", "Segoe Script", cursive;
  font-size: calc(var(--fvu) * 4.0);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 1px 6px rgba(20, 60, 110, 0.5), 0 0 18px rgba(20, 60, 110, 0.35);
}

/* ---- マスク式リビール（既存セクションと同じ手法）--------------- */
.pSec5__mask {
  display: block;
  overflow: hidden;
}
.pSec5__reveal {
  display: block;
  will-change: transform;
}

@media (max-height: 700px) {
  .pSec5__pill_label {
    font-size: calc(var(--fvu) * 2.1);
  }
  .pSec5__closing {
    font-size: calc(var(--fvu) * 4.0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pSec5__bg,
  .pSec5__title_main .--y {
    animation: none !important;
  }
}
