/* ============================================================
   sec4.css — 指示書「会社の特徴」
     タイトル：せっかく転職するなら「自分らしく働ける環境」も大切！
     文章    ：当社は代表の代替わりを機に、働き方がアップデート！
               代表への意見の通りやすさはもちろん、
               「定年まで働くのが当たり前」
               「仕事のためにプライベートを犠牲にする」
               そんな昔ながらの考えから、「社員が無理なく働ける会社」へ。
     参考P   ：「社員が無理なく働ける会社」の文字色を動くグラデーションに
   カンプ支給なし → FV・前セクションのトンマナに合わせる。
   下地は前セクションと同じ空（assets/site/sec3/bg.webp）を流用。
   ============================================================ */

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

.pSec4 {
  --fvu: min(1vw, calc(var(--app-h, 100dvh) * 0.004621));
  position: relative;
  width: 100%;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: hidden;
  /* 🔴 2026-09-11 ユーザー指示「背景はシンプルに。ただし寂しくならないよう
     イラストを入れる」→ 写真をやめて淡いグラデーション＋雲＋街のシルエット。 */
  background: linear-gradient(180deg, #bfe8ff 0%, #dff2ff 46%, #f2fbff 100%);
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  color: #14274b;
}

/* 🔴 2026-09-11 支給の背景イラスト（淡い空・クレーン・街・雲・円・ドット）を使う。
   自作の装飾（道具のクリップアート／光の玉／光の帯）は全部やめた。 */
.pSec4__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  will-change: transform;
}

/* 🔴 ヘッダーの下から始まる内側ボックス（前セクションと同じ作法）。
   これが無いとラベルがヘッダーに潜る（実測で2回発生）。 */
.pSec4__inner {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--swipe-top, 60px);
  bottom: 0;
}

/* ---- 見出し -------------------------------------------------- */
.pSec4__title {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 8.6%;
  z-index: 4;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.14em;
}
.pSec4__title_lead {
  position: relative;
  padding: 0 0.35em 0.1em;
  font-size: calc(var(--fvu) * 4.2);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #14538c;
}
.pSec4__title_lead::after {
  content: "";
  position: absolute;
  left: 0.15em;
  right: 0.15em;
  bottom: -0.04em;
  height: 0.16em;
  border-radius: 999px;
  background: #ffe14d;
}
.pSec4__title_main {
  width: fit-content;
  padding: 0.1em 0.34em 0.16em;
  font-size: calc(var(--fvu) * 6.4);
  font-weight: 900;
  line-height: 1.16;
  color: #ffffff;
  background: #00a0e9;
  box-shadow: 0 3px 14px rgba(0, 87, 145, 0.26);
}
.pSec4__title_main .--y {
  color: #ffe14d;
}

/* ---- リード文 ------------------------------------------------ */
.pSec4__lead {
  position: absolute;
  left: 6.5%;
  right: 6.5%;
  top: calc(21.5% + 10px);
  z-index: 4;
  margin: 0;
  font-size: calc(var(--fvu) * 3.1);
  font-weight: 700;
  line-height: 1.62;
  color: #1d3663;
}
.pSec4__lead .--strong {
  /* 淡い背景では黄色が飛ぶので濃い青にし、黄色はマーカーで効かせる */
  color: #007cb5;
  font-size: 112%;
  background: linear-gradient(transparent 62%, rgba(255, 213, 74, 0.85) 62%);
}

/* ---- 昔ながらの考え（2枚のカード）---------------------------- */
.pSec4__oldLabel {
  position: absolute;
  left: 50%;
  top: 35.5%;
  z-index: 5;
  transform: translateX(-50%);
  padding: 0.4em 1.4em 0.46em;
  border-radius: 999px;
  background: #3c4a63;
  font-size: calc(var(--fvu) * 3.7);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.05em;
  color: #ffffff;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(15, 45, 90, 0.22);
}
.pSec4__old {
  position: absolute;
  left: 5.5%;
  right: 5.5%;
  top: 38.2%;
  z-index: 4;
  margin: 0;
  /* 上のピルと1行目が詰まらないよう上を厚く */
  padding: calc(var(--fvu) * 4.6) calc(var(--fvu) * 2.4) calc(var(--fvu) * 2.4);
  list-style: none;
  border-radius: calc(var(--fvu) * 4);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 20px rgba(15, 55, 100, 0.16);
}
.pSec4__old_item {
  position: relative;
  padding: 0.42em 0 0.42em 1.5em;
  font-size: calc(var(--fvu) * 3.05);
  font-weight: 700;
  line-height: 1.5;
  color: #7b8aa3;                 /* 昔の考え＝くすませる */
}
.pSec4__old_item + .pSec4__old_item {
  border-top: 1px dotted #c9d5e4;
}
.pSec4__old_item::before {
  content: "";
  position: absolute;
  left: 0.15em;
  top: 50%;
  width: 0.9em;
  height: 0.9em;
  margin-top: -0.45em;
  border-radius: 50%;
  background: #c9d5e4;
}
/* 打ち消し線（もう過去のもの、という意味を持たせる） */
.pSec4__old_item span {
  position: relative;
}
.pSec4__old_item span::after {
  content: "";
  position: absolute;
  left: -0.1em;
  right: -0.1em;
  top: 52%;
  height: 2px;
  background: #ff7a7a;
  transform: scaleX(var(--strike, 0));
  transform-origin: 0 50%;
}

/* ---- 矢印 ---------------------------------------------------- */
.pSec4__arrow {
  position: absolute;
  left: 50%;
  top: 55.5%;
  z-index: 5;
  width: calc(var(--fvu) * 9);
  height: calc(var(--fvu) * 9);
  transform: translateX(-50%);
  will-change: transform;
}
.pSec4__arrow::before {
  content: "";
  position: absolute;
  left: 30%;
  top: 0;
  width: 40%;
  height: 55%;
  background: linear-gradient(180deg, #33b7f0, #00a0e9);
}
.pSec4__arrow::after {
  content: "";
  position: absolute;
  left: 0;
  top: 45%;
  width: 100%;
  height: 55%;
  background: linear-gradient(180deg, #1aabec, #0089c7);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.pSec4__because {
  position: absolute;
  left: 16%;
  top: 56.6%;
  z-index: 5;
  margin: 0;
  font-size: calc(var(--fvu) * 3.4);
  font-weight: 700;
  color: #143a63;
  transform: rotate(-4deg);
}
.pSec4__because::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.2em;
  height: 0.16em;
  border-radius: 999px;
  background: #ffe14d;
}

/* ---- いまの松本工業（結び）------------------------------------ */
.pSec4__newLabel {
  position: absolute;
  left: 50%;
  top: 62.5%;
  z-index: 5;
  transform: translateX(-50%);
  padding: 0.4em 1.4em 0.46em;
  border-radius: 999px;
  background: #00a0e9;
  font-size: calc(var(--fvu) * 3.7);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.05em;
  color: #ffffff;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(15, 45, 90, 0.22);
}
.pSec4__new {
  position: absolute;
  left: 5.5%;
  right: 5.5%;
  top: 65.2%;
  z-index: 4;
  margin: 0;
  padding: calc(var(--fvu) * 4.2) calc(var(--fvu) * 2.6) calc(var(--fvu) * 2.8);
  border-radius: calc(var(--fvu) * 4);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 20px rgba(15, 55, 100, 0.16);
  text-align: center;
}
.pSec4__new_text {
  margin: 0;
  font-size: calc(var(--fvu) * 3.1);
  font-weight: 700;
  line-height: 1.6;
  color: #1d3663;
}
/* 🔴 指示書「『社員が無理なく働ける会社』ここの文字色を
   動くグラデーションのような色合いに」 */
.pSec4__grad {
  display: inline-block;
  margin-top: 0.32em;
  font-size: calc(var(--fvu) * 4.4);
  font-weight: 900;
  line-height: 1.35;
  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: sec4Grad 6s linear infinite;
}
@keyframes sec4Grad {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}
.pSec4__new_to {
  display: block;
  margin-top: 0.2em;
  font-size: calc(var(--fvu) * 3.1);
  font-weight: 700;
  color: #1d3663;
}

.pSec4__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.4);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 1px 6px rgba(20, 60, 110, 0.85), 0 0 18px rgba(20, 60, 110, 0.6);
}

@media (max-height: 700px) {
  .pSec4__old {
    padding: calc(var(--fvu) * 1.9) calc(var(--fvu) * 2.2);
  }
  .pSec4__old_item {
    padding: 0.3em 0 0.3em 1.5em;
    font-size: calc(var(--fvu) * 2.8);
  }
}

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

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


/* ---- 手書き「つくるのは、人の未来だ。」（配置イメージに合わせて追加）---- */
.pSec4__hand {
  position: absolute;
  top: 5.5%;
  right: 4%;
  z-index: 5;
  margin: 0;
  font-size: calc(var(--fvu) * 3.6);
  font-weight: 700;
  line-height: 1.5;
  text-align: right;
  white-space: nowrap;
  color: #00a0e9;
  transform: rotate(-4deg);
}
.pSec4__hand::after {
  content: "";
  position: absolute;
  left: 6%;
  right: 0;
  bottom: -0.18em;
  height: 0.16em;
  border-radius: 999px;
  background: #ffe14d;
}

/* ---- いまの松本工業カードの3項目（配置イメージに合わせて追加）---- */
.pSec4__points {
  margin: calc(var(--fvu) * 2.2) 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.pSec4__points_item {
  display: flex;
  align-items: flex-start;
  gap: 0.6em;
  padding: 0.46em 0;
  font-size: calc(var(--fvu) * 2.85);
  font-weight: 700;
  line-height: 1.45;
  color: #1d3663;
}
.pSec4__points_item + .pSec4__points_item {
  border-top: 1px dotted #c9d5e4;
}
.pSec4__tick {
  position: relative;
  flex: 0 0 auto;
  width: 1.35em;
  height: 1.35em;
  margin-top: 0.02em;
  border-radius: 50%;
  background: #00a0e9;
}
.pSec4__tick::after {
  content: "";
  position: absolute;
  left: 0.46em;
  top: 0.3em;
  width: 0.34em;
  height: 0.62em;
  border-right: 2.2px solid #fff;
  border-bottom: 2.2px solid #fff;
  transform: rotate(42deg);
}

@media (max-height: 700px) {
  .pSec4__points_item {
    padding: 0.3em 0;
    font-size: calc(var(--fvu) * 2.6);
  }
}


/* 「社員が無理なく働ける会社」は1行で見せる（2026-09-11 指摘） */
.pSec4__grad {
  white-space: nowrap;
}
.pSec4__new_to {
  display: inline;
  margin-top: 0;
}


/* 淡い背景になったのでラベルも濃色に */
.pSec4__label {
  color: #14538c;
  text-shadow: none;
}
.pSec4__label .pSecLabel__num {
  color: #00a0e9;
}
.pSec4__title_lead::after,
.pSec4__hand::after {
  background: #ffd54a;
}

/* ============================================================
   テキストのマスク式リビール（FVの .pFv__copy_line と同じ手法）
   2026-09-11 ユーザー指示「ふわふわさせるだけでなく、文字をフェードイン
   してくるように工夫して」→ opacity+y の単純フェードをやめ、
   親をoverflow:hiddenにして中の行を下から迫り上げる形にする。
   ============================================================ */
.pSec4__mask {
  display: block;
  overflow: hidden;
}
.pSec4__reveal {
  display: block;
  will-change: transform;
}

/* 🔴 SP（実機スマホ）の縦積みレイアウトは sec7.css 末尾に置いている。
   sec7.css 側に `#sec4 .pSec4__lead{top:…}` 等のID指定の後乗せ調整があり、
   ここ（sec4.css）に書くと詳細度で負けて効かないため。 */
