/* ============================================================
   sec6.css — 指示書「会社の強み」（表示ラベルは 05 / STRENGTH）
   2026-09-12 ユーザーがカンプ（941x1672）と背景画像(白/薄水色版)を支給。
   「次のセクションはこれ通りに」の指示で全面新規実装。

   指示書原文（行7-9・全て「会社の強み」セクション、タブで切替）:
     タブ1 歴史×新しい働き方（参考にしたいポイント: 白背景に青文字）
       タイトル：資格取得も、キャリアアップも、会社が応援！
       文章：未経験から成長したい人も、これまでの経験を活かしたい人も。
             それぞれのスタートに合わせて、しっかりサポート！
             資格取得費用の負担はもちろん、実際の現場で経験を積みながら
             学べるので、「座学＋実践」で、着実にスキルアップできます！
     タブ2 安定×自由
       タイトル：安定して働ける！
       文章：当社は公共工事が中心。仕事量が安定しているから、
             「この先も安心して働ける」環境です！
             ※公共工事とは、国や自治体から直接発注される工事のこと。
             そして安定しているからこそ、休みの日を不安がらずに
             自由に遊ぶことができます！
     タブ3 稼ぎ×休み
       タイトル：自分のペースだから、成長につながる！
       文章：最初は「できない」ことも、少しづつ「できる」に変わっていく。
             自分のペースで、着実に成長できます。
             だからこそ、いつの間にか稼げているんです！
             長く働くからこそ、将来の自分が楽しみになります！

   🔴 カンプの3ステップ図解(座学→現場→資格取得)と足場写真はタブ1専用の
   支給要素。行8・9のC列（デザイン参考画像）は空欄だったので、
   タブ2・3は見出し+本文のみ（推測で図解を増やさない・rule1）。
   写真はユーザー判断で「写真なしで進める」に決定（支給素材なし・
   他セクションが全部イラスト調で写真だけ浮くため）。
   ============================================================ */

/* 🔴 2026-09-13 実害「稼ぎ×休みのイラストが配置領域に収まっていない」の
   原因判明。swipe.css側の共通ルール（全<section>に一律
   padding-top:var(--swipe-top)=60pxを付与）に対し、このセクションだけは
   .pSec6__inner が自前でtop:var(--swipe-top)のオフセットを持つため、
   二重にヘッダー分の余白が乗らないよう #strength だけpadding-top:0で
   打ち消していた。#strength2/#strength3（06/07タブを個別セクション化した
   ときに追加）がこのセレクタに含まれておらず、60px分のpadding-topが
   二重に残ったまま＝セクション全体が1画面より60px高くなっていた
   （実測: #strength=844px(正常) に対し #strength2/#strength3=904px）。
   これによりパネル下部（情景イラスト等）が可視ビューポート外へ
   はみ出し、実機で「下に収まらない／切れる」ように見えていた。 */
html.swipe-b .lMain > section#strength,
html.swipe-b .lMain > section#strength2,
html.swipe-b .lMain > section#strength3 {
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  height: auto;
}

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

.pSec6__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  will-change: transform;
}

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

/* ---- 背景の大きな連番（05/06/07の3枚セット内での通し番号01/02/03）---
   🔴 2026-09-13 ユーザー指示「5.6.7のスライドは背景に薄く、大きく
   01.02.03をいれる」「ギリギリ改行しないフォントサイズまであげ、
   もうちょっと上に配置」。2桁数字なのでスペースが無く通常は改行しない
   （nowrapで念のため保険）。本文より奥・背景画像より手前のz-indexに置く。 */
.pSec6__bgnum {
  position: absolute;
  left: 0;
  right: 0;
  top: 4%;
  z-index: 1;
  margin: 0;
  text-align: center;
  white-space: nowrap;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: calc(var(--fvu) * 62);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #0058b8;
  opacity: 0.09;
}

.pSec6__label {
  left: 6%;
  top: 2.6%;
  color: #14538c;
  text-shadow: none;
}
.pSec6__label .pSecLabel__num {
  color: #00a0e9;
}

/* ---- 見出し「会社の強み」--------------------------------------- */
.pSec6__heading {
  position: absolute;
  left: 6%;
  top: 7.2%;
  z-index: 4;
  margin: 0;
  font-size: calc(var(--fvu) * 5.6);
  font-weight: 900;
  color: #00a0e9;
}
.pSec6__heading::after {
  content: "";
  display: block;
  width: 2.6em;
  height: 0.1em;
  margin-top: 0.1em;
  border-radius: 999px;
  background: #ffe14d;
}

/* ---- 右上の手書き風タグ ----------------------------------------- */
.pSec6__corner {
  position: absolute;
  right: 5%;
  top: 4%;
  z-index: 3;
  margin: 0;
  text-align: right;
  font-family: "FvScript", "Segoe Script", cursive;
  font-size: calc(var(--fvu) * 2.7);
  font-weight: 600;
  line-height: 1.3;
  color: rgba(20, 90, 160, 0.45);
}

/* ---- パネル本体 --------------------------------------------------
   🔴 2026-09-13 ユーザー指示でタブ切替(01/02/03)を廃止。
   「働きやすさ」「収入と安定」は今後それぞれ別ページとして作るため、
   このセクションは「歴史×新しい働き方」1本の固定表示に変更。
   旧タブ(top:15%)+進捗表示が占めていた分、panelsを繰り上げて
   下の余白を埋める。 */
.pSec6__panels {
  /* 🔴 2026-09-13 「働きやすさ」系(#sec6-2〜)は3ステップ図解が無く
     文章だけなので、上詰めのままだと下側が大きく空く（実測: 内容559px
     に対し枠841pxで約280px余る）。中央寄せにして上下の空きを均等に
     散らす。歴史×新しい働き方(steps有り)側は元々ほぼ埋まっているので
     見た目への影響は軽微。 */
  /* 🔴 2026-09-13 ユーザー指示「もうちょっと上に配置」。中央寄せ(center)は
     維持したまま、上端を15%→10%に詰めて帯全体を持ち上げ、中央位置を
     押し上げる。 */
  /* 🔴 2026-09-13 実機Safariで.pSec6__scene(img)が右側に余白を残して
     縮んで見える実害が続いた。left/rightだけの暗黙幅指定だと、
     さらに下の子孫(.pSec6__panel→.pSec6__scene)へのwidth:100%の
     解決がSafariで不安定になる可能性を疑い、widthを明示して
     万一の解決違いを断つ（Chromeでは元々left/rightのみで正しく
     88%になっていたため、この変更でChrome側の見た目は変わらない）。 */
  position: absolute;
  left: 6%;
  right: 6%;
  width: 88%;
  top: 10%;
  bottom: 8%;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}
#sec6-3 .pSec6__panels {
  overflow: visible;
}
.pSec6__panel {
  display: none;
}
.pSec6__panel.is-active {
  /* 🔴 2026-09-13 実害: panels側のtopを15%→10%に変えたら
     .pSec6__hand（position:absolute）が「.pSec6__panels」基準のまま
     ずれて、タグと再び重なった（flex中央寄せで.pSec6__panelの実位置は
     動くのに、.pSec6__handは動かない祖先を見ていたため）。
     .pSec6__panel自体をposition:relativeにして、hand/tagの位置関係が
     panelsのtop値を変えても常に一定になるようにする。 */
  position: relative;
  display: block;
  flex: 0 0 auto;
  /* 🔴 2026-09-13 実害（実機iPhone Safariのみ再現・ヘッドレスChromeでは
     再現しなかった）: .pSec6__panelsはdisplay:flex(column)。flexアイテム
     の既定min-widthは"auto"で、Safariはこれを中の<img>(.pSec6__scene)の
     実寸まで広げて解釈するため、パネルごと右にはみ出して画像が
     ビューポート端で切れて見えた。min-width:0でこの既定を殺す
     （Chrome/Firefoxはそもそも起きないが安全のため全ブラウザに適用）。 */
  min-width: 0;
  /* 🔴 2026-09-13 min-width:0だけでは実機で直りきらず、今度は逆に
     イラスト右側に空白が残る実害が続いた（align-items:stretchの
     暗黙の幅決定に頼っていたのが原因と判断）。stretchの挙動待ちにせず
     幅を明示指定して確実に親(.pSec6__panels)いっぱいまで広げる。 */
  width: 100%;
  box-sizing: border-box;
}

/* 🔴 2026-09-13 ユーザー支給のカンプ2枚（完成image + 下書きimage、941x1672）
   から実測してピル→四角い枠＋角の斜線アクセントに差し替え。
   支給画像から実測した値（推測禁止・rule準拠）:
     枠線色 rgb(0,84,186)≈#0054ba（文字色と実測でほぼ同一 → 既存トークン#0058b8を採用）
     ×の色  rgb(97,199,251)≈#61c7fb（枠線より明るい水色。既存トークンでは無いため実測値をそのまま採用）
     角の斜線: 箱の左上/右下に、箱の外へ少しはみ出す向きの「/」ストローク
       （実測bbox: 左上49x39px・右下53x43px、箱の縦横比670x161pxに対し
       長さ比は箱の高さの約39%・角度は水平から約38-40°） */
.pSec6__tag {
  /* 🔴 2026-09-13 ユーザー指示: 「歴史×新しい働き方」「安定×自由」
     どちらのボックスも中央揃えに。display:tableでコンテンツ幅のまま
     margin:autoで中央寄せ（見出し/リード文などの他要素は左揃えのまま維持）。 */
  position: relative;
  display: table;
  margin: 0 auto 1.4em;
  padding: 0.25em 0.9em;
  border: 3px solid #0058b8;
  background: #ffffff;
  color: #0058b8;
  /* 🔴 2026-09-13 ユーザー指示「ギリギリ改行しないフォントサイズまで」。
     最長テキスト「歴史×新しい働き方」でSP390/428どちらもfvu*8.1までは
     1行、8.2から2行に折り返すことを実測で確認して8.1に設定。 */
  font-size: calc(var(--fvu) * 8.1);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.4;
}
.pSec6__tag span {
  color: #61c7fb;
  padding: 0 0.05em;
}
.pSec6__tag::before,
.pSec6__tag::after {
  content: "";
  position: absolute;
  width: 0.5em;
  height: 3px;
  background: #0058b8;
  transform: rotate(-40deg);
}
.pSec6__tag::before {
  top: -0.22em;
  left: -0.18em;
}
.pSec6__tag::after {
  bottom: -0.22em;
  right: -0.18em;
}

/* 🔴 FvScript(Caveat)はラテン文字専用フォント。日本語を流すとダクテン欠落や
   誤字化けを起こす（実測: 「学びが、」→「字ひか、」）。他セクションの
   .pSec3__hand と同じく、日本語の手書き風は書体でなく傾き+色で表現する。 */
.pSec6__hand {
  position: absolute;
  right: 0;
  /* 🔴 2026-09-13 タグ(.pSec6__tag)を最大化(fvu*6.8)した際にここが
     タグの右肩と衝突していた（実測: tagRect y181-233 / handRect y176-213で重複）。
     タグの実測高さ(fvu*11.9+border6px)より下まで逃がす。 */
  top: calc(var(--fvu) * 30);
  z-index: 1;
  margin: 0;
  text-align: right;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: calc(var(--fvu) * 2.8);
  font-weight: 700;
  line-height: 1.4;
  color: #0058b8;
  transform: rotate(-2deg);
  transform-origin: right top;
}
.pSec6__hand::after {
  content: "";
  display: block;
  margin: 0.1em 0 0 auto;
  width: 80%;
  height: 0.1em;
  border-radius: 999px;
  background: #0058b8;
  opacity: 0.7;
}
/* 🔴 2026-09-13 「稼ぎ×休み」の支給カンプ実測: 手書きキャプションが
   panel1と違い右上固定ではなく、リード文の下・イラストの左上に通常の
   文章として置かれている（絶対配置ではなく通常フロー）。
   同じ.pSec6__handの色/書体はそのまま、配置だけ上書きする。 */
.pSec6__hand.--inline {
  /* display:tableでコンテンツ幅に収める（block+80%だとPC1440で
     枠幅いっぱいまで下線が伸びて実測でおかしくなった） */
  position: static;
  display: table;
  text-align: left;
  margin: 0 0 0.6em;
  transform: rotate(-1deg);
  transform-origin: left top;
}
.pSec6__hand.--inline::after {
  margin: 0.1em auto 0 0;
}

/* ---- 情景イラスト（稼ぎ×休み専用。全幅・下部配置）--------------- */
.pSec6__scene {
  /* 🔴 2026-09-13 一度fvu*84で幅上限を付けたら、SP390より横幅が広い
     実機（ユーザー実測・iPhone、幅約428px相当）で画像だけ小さいまま
     右側に空白が残り「イラストが消えた」ように見える実害が出た。
     スマホは支給カンプ通り全幅（cap無し）に戻し、PC(min-width:768px)
     だけ別途キャップする。 */
  display: block;
  width: 106.8182%;
  max-width: none;
  height: auto;
  margin: 0.5em 0 0;
}
@media (min-width: 768px) {
  .pSec6__scene {
    /* 🔴 2026-09-13 PC1440でwidth:100%のままだとパネル幅(約1267px)まで
       拡大され、縦にも比例して伸びてpanels枠を283pxオーバーした（実測）。
       PCだけ幅上限を付けて縮小する。 */
    max-width: calc(var(--fvu) * 84);
  }
}

.pSec6__title {
  position: relative;
  margin: 0.3em 0 0.9em;
  max-width: 100%;
  font-size: calc(var(--fvu) * 5.5);
  font-weight: 900;
  line-height: 1.6;
  color: #0058b8;
}
/* 🔴 2026-09-13 max-width:62%が全パネル共通だった影響で、hand caption(右上の
   手書きキャプション)が無いパネル3「自分のペースだから、成長につながる！」が
   SP390で「自分のペースだか / ら、」と単語途中で折れた（実測で発見）。
   62%制限はhand captionと衝突を避けるためのpanel1専用の措置だったので
   専用クラスへ切り出し、他パネルは折り返しをbrタグだけに任せる。 */
.pSec6__title.--narrow {
  max-width: 62%;
}
.pSec6__title .--y {
  position: relative;
  display: inline-block;
}
.pSec6__title .--y::after {
  content: "";
  position: absolute;
  left: 0.02em;
  right: 0.02em;
  bottom: 0.05em;
  height: 0.14em;
  border-radius: 999px;
  background: #ffe14d;
  z-index: -1;
}

.pSec6__lead {
  margin: 0 0 1.3em;
  max-width: 90%;
  font-size: calc(var(--fvu) * 2.9);
  font-weight: 700;
  line-height: 1.8;
  color: #204a75;
}
.pSec6__lead:last-of-type {
  margin-bottom: 2em;
}

/* ---- 3ステップ図解（タブ1専用）------------------------------------
   🔴 2026-09-12 ユーザー指摘「イラストが全然違う／似せるでなく限りなく
   コピーにしろ」。自作の線画SVGアイコンをやめ、支給カンプ画像から
   番号+ラベル+円+イラストを1枚ごと直接切り出したPNGをそのまま使う
   （assets/site/sec6/steps/step{1,2,3}.webp）。数字・ラベルも画像に
   焼き込み済みなので.pSec6__step_num/labelは廃止。 */
/* 🔴 2026-09-13 「安定×自由と同じ大きさに」→横スクロール化→
   「あほなん？一見で全部映るように」で撤回（3回目の指摘）。
   3枚同時表示が絶対条件なので、サイズは"同じ大きさ"より
   "1画面に3枚収まる"を優先する。
   🔴続けて「イラスト小さい、余白切ってからやれ」の指摘。画像ファイル
   自体は実測(白判定97%超のピクセルで走査)で既に余白が少なかったため、
   削れる"余白"はレイアウト側（パネルの左右6%インセット）と判断。
   このステップ行だけ.pSec6__panelsの左右6%インセットを突き破って
   全幅ブレイクアウトさせ、浮いた分をアイコンサイズに回す。
   （6%インセット＝自分の88%幅の中で6/88=6.818%が両側の食い込み量。
   width:100%*100/88、margin:-100%*6/88で計算） */
.pSec6__steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--fvu) * 0.8);
  margin-top: 2.2em;
  width: 113.6364%;
  margin-left: -6.8182%;
  margin-right: -6.8182%;
}
.pSec6__step_img {
  flex: 0 0 auto;
  width: calc(var(--fvu) * 35);
  height: auto;
  display: block;
}
.pSec6__step_arrow {
  flex: 0 0 auto;
  width: calc(var(--fvu) * 2.4);
  height: calc(var(--fvu) * 2.4);
  color: #0058b8;
  opacity: 0.6;
}

/* 3ステップは必ずセクション内に収める。左右へ広げる旧指定を無効化する。 */
#strength .pSec6__steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.6vw minmax(0, 1fr) 2.6vw minmax(0, 1fr);
  align-items: center;
  width: 100%;
  margin-right: 0;
  margin-left: 0;
  gap: 0;
}
#strength .pSec6__step_img {
  width: 100%;
  min-width: 0;
}
#strength .pSec6__step_arrow {
  width: 2.6vw;
  height: 2.6vw;
  justify-self: center;
}
#strength .pSec6__panels {
  overflow: hidden;
}

/* ---- 下部 People Build Tomorrow ---------------------------------- */
.pSec6__pbt {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.5%;
  z-index: 3;
  margin: 0;
  text-align: center;
  font-family: "FvScript", "Segoe Script", cursive;
  font-size: calc(var(--fvu) * 3.2);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #6ba9db;
}
.pSec6__pbt::before,
.pSec6__pbt::after {
  content: "";
  display: inline-block;
  width: 2em;
  height: 1px;
  margin: 0 0.6em;
  vertical-align: middle;
  background: #a9cdec;
}

/* ---- 補足の注釈ボックス（※公共工事とは...）------------------------
   支給カンプ実測: 背景 rgb(233,246,254)≈#e9f6fe（角丸の淡い水色ボックス） */
.pSec6__note {
  margin: 0 0 1.3em;
  padding: 0.7em 1em;
  max-width: 90%;
  border-radius: 0.6em;
  background: #e9f6fe;
  font-size: calc(var(--fvu) * 2.3);
  font-weight: 700;
  line-height: 1.6;
  color: #204a75;
}

/* ---- 下部の2アイコン対比（安定した仕事量 × 休日も自由に）-----------
   支給カンプ実測: ピル背景 rgb(227,243,254)≈#e3f3fe・文字色は枠と同じ#0058b8 */
.pSec6__pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--fvu) * 1.4);
  margin-top: 1.6em;
}
.pSec6__pair_item {
  flex: 1 1 0;
  max-width: calc(var(--fvu) * 40);
  text-align: center;
}
.pSec6__pair_label {
  display: inline-block;
  margin: 0 0 0.5em;
  padding: 0.5em 0.6em;
  border-radius: 999px;
  background: #e3f3fe;
  color: #0058b8;
  font-size: calc(var(--fvu) * 1.7);
  font-weight: 800;
  line-height: 1.3;
}
.pSec6__pair_img {
  display: block;
  width: 100%;
  height: auto;
}
#strength2 .pSec6__pair_item:last-child .pSec6__pair_img {
  width: 94%;
  margin-right: auto;
  margin-left: auto;
}
.pSec6__pair_x {
  flex: 0 0 auto;
  align-self: center;
  margin-top: 1.6em;
  font-size: calc(var(--fvu) * 3.2);
  font-weight: 700;
  color: #61c7fb;
}

@media (max-height: 700px) {
  .pSec6__tag {
    font-size: calc(var(--fvu) * 5.8);
  }
  .pSec6__title {
    font-size: calc(var(--fvu) * 4.7);
  }
  .pSec6__lead {
    font-size: calc(var(--fvu) * 2.5);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pSec6__bg {
    animation: none !important;
  }
}
