/* =========================================================
   KV〜募集要項のセクション
   90年代レトロのポップ。山吹／白／紺の3色だけで組む
   ========================================================= */

/* ---- 共通 ------------------------------------------------ */
.sx { display: flex; flex-direction: column; padding-top: calc(var(--hd-h) + 16px); }
.bg-white  { background: url("../assets/img/noise-light.png"), var(--white); }
.bg-yellow { background: var(--noise), var(--yellow); }
.bg-navy   { background: var(--navy); color: var(--white); }

.sx__in {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(10px, 1.8dvh, 16px);
  padding: 0 24px 58px;
}

/* 見出し：はみ出す袋文字の英字＋番号の札＋白い札の小見出し（参考サイトの作法） */
.sx__head {
  position: relative;
  flex: 0 0 auto;
  height: calc(var(--big-fs) * .74);
  margin: 0 -24px 6px;
  --big-fs: clamp(56px, 18vw, 82px);
}
.big {
  position: absolute;
  left: 14px;
  top: 0;
  font-family: var(--disp);
  font-size: var(--big-fs);
  line-height: .8;
  white-space: nowrap;
  color: var(--yellow);
  -webkit-text-stroke: 1.5px var(--navy);
  paint-order: stroke fill;
  pointer-events: none;
}
.bg-yellow .big { color: var(--white); }
.bg-navy .big { color: var(--navy); -webkit-text-stroke-color: var(--yellow); }
.sx__no {
  position: absolute;
  left: 20px;
  bottom: -10px;
  z-index: 2;
  padding: 5px 9px 3px;
  border: 2px solid var(--navy);
  background: var(--navy);
  color: var(--yellow);
  font-family: var(--round);
  font-size: 14px;
  line-height: 1;
}
.bg-navy .sx__no { border-color: var(--yellow); background: var(--yellow); color: var(--navy); }
.sx__label {
  position: absolute;
  right: 22px;
  bottom: -12px;
  z-index: 2;
  padding: 5px 10px 4px;
  border: 1.5px solid var(--navy);
  background: var(--white);
  color: var(--navy);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .08em;
  line-height: 1.2;
}

.sx__title {
  font-weight: 900;
  font-size: clamp(22px, 6.4vw, 28px);
  line-height: 1.42;
  letter-spacing: .03em;
}
.sx__title--s { font-size: 24px; }
.ln { display: block; overflow: hidden; padding-bottom: .08em; }
.ln > span { display: inline-block; transform: translateY(105%); transition: transform .7s var(--ease-out); }
.sx.is-in .ln > span { transform: none; }
.sx.is-in .ln:nth-child(1) > span { transition-delay: .15s; }
.sx.is-in .ln:nth-child(2) > span { transition-delay: .27s; }
.sx.is-in .ln:nth-child(3) > span { transition-delay: .39s; }

mark {
  color: inherit;
  background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%) no-repeat 0 0 / 0 100%;
  transition: background-size .7s var(--ease-out) 1.1s;
}
.sx.is-in mark { background-size: 100% 100%; }
.bg-yellow mark { background-image: linear-gradient(transparent 58%, var(--white) 58%, var(--white) 92%, transparent 92%); }
.bg-navy mark { background: none; color: var(--yellow); }

.txt {
  font-size: var(--fs, 14.5px);
  line-height: 1.85;
  letter-spacing: .03em;
}
.txt p + p { margin-top: .6em; }
.txt p { opacity: 0; transform: translateY(10px); transition: opacity .6s, transform .6s var(--ease-out); }
.sx.is-in .txt p { opacity: 1; transform: none; }
.sx.is-in .txt p:nth-child(1) { transition-delay: .5s; }
.sx.is-in .txt p:nth-child(2) { transition-delay: .6s; }
.sx.is-in .txt p:nth-child(3) { transition-delay: .7s; }
.sx.is-in .txt p:nth-child(4) { transition-delay: .8s; }
.txt.is-flow br { display: none; }
.txt.is-flow p { text-wrap: pretty; line-break: strict; }

/* ---- 「ペタッ」と貼る動き --------------------------------------- */
.slap { opacity: 0; transform: rotate(var(--r, 0deg)) scale(.4); }
.sx.is-in .slap { animation: slap .55s var(--ease-back) var(--d, .4s) forwards; }
@keyframes slap {
  0%   { opacity: 0; transform: rotate(calc(var(--r, 0deg) - 16deg)) scale(1.7); }
  60%  { opacity: 1; transform: rotate(var(--r, 0deg)) scale(.92); }
  100% { opacity: 1; transform: rotate(var(--r, 0deg)) scale(1); }
}
/* 貼り終わったら、アニメーションを外して傾きだけ残す（文字や輪郭をくっきり描かせる） */
.sx.is-in .is-landed {
  animation: none !important;
  opacity: 1 !important;
  transform: rotate(var(--r, 0deg)) !important;
}

/* 人物ステッカー（白フチと影は画像に焼き込み済み） */
.stk { position: absolute; z-index: 3; width: auto; }

/* ピル型のタグ */
.tag {
  display: inline-block;
  padding: 6px 13px 6px;
  border: 2px solid var(--navy);
  border-radius: 99px;
  background: var(--white);
  color: var(--navy);
  font-weight: 900;
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: .04em;
  white-space: nowrap;
  box-shadow: 3px 3px 0 var(--navy);
}
.tag--navy { background: var(--navy); color: var(--white); }
.bg-navy .tag { box-shadow: 3px 3px 0 var(--yellow); }

/* 斜めに流れる帯 */
.band {
  position: absolute;
  left: -12%;
  right: -12%;
  z-index: 4;
  overflow: hidden;
  border-block: 2px solid var(--navy);
  background: var(--navy);
  color: var(--white);
  transform: rotate(-4deg);
}
.band p { display: flex; width: max-content; animation: marquee 22s linear infinite; }
.band--rev p { animation-direction: reverse; }
.band__set { display: flex; }
.band__set span {
  display: flex;
  align-items: center;
  padding: 7px 0 5px;
  font-family: var(--disp), var(--pop);
  font-size: 17px;
  line-height: 1;
  white-space: nowrap;
}
.band__set span::after {
  content: ">>>";
  margin: 0 16px;
  font-family: var(--round);
  font-size: 13px;
  color: var(--yellow);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* スターバースト（目を疑う数字） */
.burst { position: absolute; display: grid; place-items: center; width: 116px; aspect-ratio: 1; }
.burst__bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.burst__bg path { fill: var(--white); stroke: var(--navy); stroke-width: 3; stroke-linejoin: round; }
.burst > span { position: relative; display: grid; justify-items: center; line-height: 1; color: var(--navy); }
.burst small { font-weight: 900; font-size: 11px; }
.burst b { font-family: var(--round); font-weight: 400; font-size: 36px; margin: 3px 0 0; }

/* 押しボタン */
.cta {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 62px;
  border: 2.5px solid var(--navy);
  border-radius: 99px;
  background: var(--navy);
  color: var(--white);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: .12em;
  box-shadow: 0 5px 0 var(--white), 0 5px 0 2.5px var(--navy);
}
.cta i {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 34px;
  height: 34px;
  margin-top: -17px;
  border-radius: 50%;
  background: var(--yellow);
}
.cta i::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 13px;
  width: 7px;
  height: 7px;
  border-top: 2.5px solid var(--navy);
  border-right: 2.5px solid var(--navy);
  transform: rotate(45deg);
}

/* =========================================================
   KV
   ========================================================= */
.kv__h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.sx--kv .sx__in { justify-content: flex-start; padding-bottom: 92px; gap: 10px; }
.kv__big {
  position: relative;
  left: auto;
  margin: 0 -40px 0 -14px;
  font-size: clamp(62px, 20vw, 92px);
  color: var(--white);
  margin-top: 14px;
  transform: rotate(-5deg);
  transform-origin: 0 100%;
}
.kv__lead {
  align-self: flex-start;
  margin-top: 4px;
  padding: 6px 14px 5px;
  border: 2px solid var(--navy);
  border-radius: 99px;
  background: var(--white);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .06em;
}
.kv__lead b { color: var(--navy); background: linear-gradient(transparent 60%, var(--yellow) 60%); }
.kv__copy { display: grid; justify-items: start; gap: 8px; position: relative; z-index: 4; }
.kv__line {
  display: inline-block;
  padding: .12em .3em .06em;
  border: 2.5px solid var(--navy);
  background: var(--navy);
  color: var(--white);
  font-family: var(--pop);
  font-size: clamp(38px, 12.4vw, 56px);
  line-height: 1.1;
  letter-spacing: .02em;
  box-shadow: 5px 5px 0 var(--white);
}
.kv__line--y { background: var(--white); color: var(--navy); box-shadow: 5px 5px 0 var(--navy); }
.kv__stage { position: relative; flex: 1; min-height: 150px; margin: -60px -24px 0; }
.kv__stk { right: -10px; bottom: -6px; height: min(150%, 470px); }
.kv__burst { right: 44%; top: 26px; width: 104px; z-index: 4; }
.kv__wants {
  position: absolute;
  left: 18px;
  bottom: 14px;
  z-index: 5;
  display: grid;
  justify-items: start;
  gap: 8px;
}
.kv__band { bottom: 46px; transform: rotate(-4deg); }

/* =========================================================
   1P：確認・許可・承認のハンコに「もう、いらない」
   ========================================================= */
.stamps {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 4px 0 66px;
}
.hanko {
  display: grid;
  place-items: center;
  width: 72px;
  aspect-ratio: 1;
  border: 3px solid var(--navy);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px var(--white), inset 0 0 0 4.5px var(--navy);
  font-family: var(--pop);
  font-size: 19px;
  color: var(--navy);
  background: var(--white);
}
.stamps__no {
  position: absolute;
  left: 50%;
  top: 54px;
  margin: 0 0 0 -112px;
  width: 224px;
  padding: 9px 0 7px;
  border: 2.5px solid var(--navy);
  background: var(--yellow);
  color: var(--navy);
  font-family: var(--pop);
  font-size: 23px;
  text-align: center;
  box-shadow: 4px 4px 0 var(--navy);
}

/* =========================================================
   2P：あなたの「こうした方がいい」に、決裁権
   ========================================================= */
.call { position: relative; display: grid; gap: 10px; padding: 4px 118px 4px 0; }
.say {
  position: relative;
  justify-self: start;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--white);
  color: var(--navy);
  font-weight: 900;
  font-size: 13.5px;
  line-height: 1.4;
  white-space: nowrap;
}
.say::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -8px;
  border: 8px solid transparent;
  border-top-color: var(--white);
  border-bottom: 0;
}
.say--r { justify-self: end; margin-right: -24px; }
.say--r::after { left: auto; right: 18px; }
.call__stamp {
  position: absolute;
  right: 0;
  top: 50%;
  margin-top: -54px;
  display: grid;
  place-items: center;
  align-content: center;
  width: 108px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  box-shadow: 0 0 0 4px var(--navy), 0 0 0 7px var(--yellow);
  font-family: var(--pop);
  font-size: 26px;
  line-height: 1.1;
}
.call__stamp small { font-family: var(--ja); font-weight: 900; font-size: 10.5px; letter-spacing: .06em; }

/* =========================================================
   3P：月給55万円
   ========================================================= */
.value { position: relative; display: grid; gap: 12px; padding-right: 30%; }
.value__card {
  position: relative;
  z-index: 4;
  padding: 12px 14px 8px;
  border: 2.5px solid var(--navy);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 5px 5px 0 var(--navy);
}
.value__who { font-weight: 900; font-size: 12px; line-height: 1.5; }
.value__who b { font-family: var(--round); font-weight: 400; font-size: 1.3em; }
.value__num { display: flex; align-items: baseline; gap: 4px; line-height: 1; margin-top: 2px; }
.value__num small { font-weight: 900; font-size: 15px; }
.value__num b {
  font-family: var(--round);
  font-weight: 400;
  font-size: clamp(66px, 21vw, 92px);
  line-height: .9;
  color: var(--yellow);
  -webkit-text-stroke: 2px var(--navy);
  paint-order: stroke fill;
  text-shadow: 4px 4px 0 var(--navy);
}
.value__stk { right: -16px; bottom: -14px; height: calc(100% + 14px); max-height: 300px; z-index: 3; }  /* 上端は .value の上端まで（見出しにかけない） */
.value__tags { position: relative; z-index: 5; display: flex; flex-wrap: wrap; gap: 6px; }

/* =========================================================
   4P：先輩のプロフィールカード
   ========================================================= */
.role { display: grid; grid-template-columns: 38% 1fr; gap: 12px; align-items: center; }
.role__pic {
  position: relative;
  padding: 6px 6px 4px;
  border: 2px solid var(--navy);
  border-radius: 12px;
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--navy);
}
.role__pic img { width: 100%; height: auto; max-height: 24dvh; object-fit: contain; }
.role__pic figcaption { margin-top: 3px; font-size: 9px; font-weight: 700; text-align: right; }
.role__card {
  padding: 20px 16px 18px;
  border: 2px solid var(--navy);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 4px 4px 0 var(--navy);
}
.role__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 6px; font-weight: 900; font-size: 15px; line-height: 1; }
.role__name b { font-family: var(--round); font-weight: 400; font-size: 36px; }
.role__name span {
  padding: 4px 8px 3px;
  border-radius: 99px;
  background: var(--navy);
  color: var(--white);
  font-size: 11px;
}
.role__path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 0;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.role__path li {
  position: relative;
  padding: 4px 7px 3px;
  border: 1.5px solid var(--navy);
  border-radius: 99px;
  font-weight: 900;
  font-size: 10.5px;
  line-height: 1.25;
  text-align: center;
}
/* 矢印は図形で描画し、スマホでも絵文字に置き換わらないようにする。 */
.role__path li + li::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid var(--navy);
}
.role__path li + li { margin-left: 16px; }
.role__path .is-now { background: var(--yellow); padding: 6px 12px; white-space: nowrap; }
.role__why { margin-top: 16px; font-weight: 900; font-size: 12.5px; line-height: 1.75; }
.role__why small {
  display: inline-block;
  margin-bottom: 4px;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--yellow);
  font-size: 10.5px;
}

/* =========================================================
   5P：4つの仕事
   ========================================================= */
.works { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.works li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 12px;
  background: var(--white);
  color: var(--navy);
  font-weight: 900;
  font-size: 12.5px;
  line-height: 1.3;
}
.works svg { flex: 0 0 auto; width: 32px; height: 32px; fill: none; stroke: var(--navy); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.works svg path:first-child { fill: var(--yellow); }
.plus {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px 7px;
  border: 2.5px solid var(--yellow);
  border-radius: 14px;
  background: var(--yellow);
  color: var(--navy);
  box-shadow: 4px 4px 0 var(--white);
}
.plus b { font-family: var(--pop); font-weight: 400; font-size: 24px; line-height: 1; }
.plus i { font-style: normal; font-family: var(--disp); font-size: 22px; line-height: 1; }
.plus span { font-weight: 900; font-size: 12px; line-height: 1.3; }

/* =========================================================
   6P：家族＞仕事
   ========================================================= */
.family { position: relative; flex: 0 0 auto; height: clamp(170px, 29dvh, 240px); }
/* 「家族＞仕事」を1行で、人物の左に寄せる（修正依頼③の2回目：改行なし・少し小さく） */
.family__eq {
  position: absolute;
  left: 0;
  top: 50%;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 2px;
  line-height: 1;
  translate: 0 -50%;
}
.family__eq b {
  padding: 7px 10px 3px;
  border: 3px solid var(--navy);
  background: var(--white);
  font-family: var(--pop);
  font-weight: 400;
  font-size: clamp(44px, 13.4vw, 72px);
  box-shadow: 5px 5px 0 var(--navy);
}
.family__eq span {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: var(--pop);
  font-size: clamp(28px, 8.6vw, 46px);
}
.family__eq i { font-style: normal; font-family: var(--disp); font-size: 1.4em; line-height: .9; }
.family__stk { right: -12px; bottom: -10px; height: 112%; z-index: 3; }

/* =========================================================
   7P：出張・副業の数字
   ========================================================= */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tiles li {
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
  gap: 2px;
  padding: 10px 12px 8px;
  border: 2.5px solid var(--navy);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 4px 4px 0 var(--navy);
  line-height: 1.1;
}
.tiles small { font-weight: 900; font-size: 11.5px; }
.tiles b { font-weight: 900; font-size: 20px; }
.tiles em { font-style: normal; font-family: var(--round); font-size: 28px; margin-right: 2px; }
.tiles .tiles--y { background: var(--yellow); }
.tiles .tiles--n { background: var(--navy); color: var(--white); box-shadow: 4px 4px 0 var(--yellow); }
.tiles .tiles--n em { color: var(--yellow); }

/* =========================================================
   9P：WANTED のポスター
   ========================================================= */
.poster {
  padding: 12px 16px 14px;
  border: 3px solid var(--white);
  outline: 2px solid var(--white);
  outline-offset: 4px;
  background: var(--noise), var(--white);
  color: var(--navy);
  margin: 6px 6px;
}
.poster__h {
  padding-bottom: 6px;
  border-bottom: 2.5px solid var(--navy);
  font-family: var(--disp);
  font-size: clamp(34px, 11vw, 46px);
  line-height: 1;
  text-align: center;
  letter-spacing: .02em;
}
.poster__list { display: grid; gap: 6px; margin-top: 10px; }
.poster__list li {
  position: relative;
  padding-left: 28px;
  font-weight: 900;
  font-size: 14px;
  line-height: 1.5;
}
.poster__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border: 2px solid var(--navy);
  border-radius: 4px;
  background: var(--yellow);
}
.poster__list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 5px;
  width: 10px;
  height: 6px;
  border-left: 3px solid var(--navy);
  border-bottom: 3px solid var(--navy);
  transform: rotate(-45deg);
}
.poster__list b { background: linear-gradient(transparent 60%, var(--yellow) 60%); }

/* =========================================================
   10P：3つの「もっと」→「任される側」
   ========================================================= */
.sx--closing .sx__in { gap: 14px; }
.bands { position: relative; height: 156px; margin: 0 -24px; flex: 0 0 auto; }
.bands .band { left: -14%; right: -14%; }
.bands .band__set span { font-family: var(--pop); font-size: 20px; padding: 8px 0 6px; }
.bands__1 { top: 10px; transform: rotate(-5deg); }
.bands__2 { top: 62px; transform: rotate(-1deg); background: var(--white); color: var(--navy); }
.bands__2 .band__set span::after { color: var(--navy); }
.bands__3 { top: 112px; transform: rotate(3deg); }
.closing { position: relative; flex: 1; min-height: 220px; display: grid; grid-template-rows: auto 1fr; }
.closing__copy {
  position: relative;
  z-index: 4;
  font-family: var(--pop);
  font-weight: 400;
  font-size: clamp(34px, 10.4vw, 46px);
  line-height: 1.25;
  text-shadow: 3px 3px 0 var(--white);
}
.closing__crew { position: relative; margin: 6px -24px -10px; z-index: 3; pointer-events: none; }
.closing__stk { right: -6px; bottom: 0; height: min(165%, 430px); z-index: 3; }
.closing__c1 { left: 4px; bottom: 0; height: min(96%, 270px); z-index: 2; }
.closing__c2 { left: 31%; bottom: 0; height: min(104%, 290px); z-index: 1; }
.closing__burst { left: 47%; bottom: 38%; z-index: 4; width: 92px; }
.burst .burst__ja { font-family: var(--pop); font-size: 20px; margin: 2px 0 1px; }
.sx--closing .cta { flex: 0 0 auto; }

/* =========================================================
   会社概要・募集要項
   ========================================================= */
.tbl { font-size: 14px; line-height: 1.65; }
.tbl__row {
  display: grid;
  grid-template-columns: 6.4em 1fr;
  gap: 12px;
  padding: 1.05em 0;
  border-bottom: 2px solid var(--navy);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s, transform .5s var(--ease-out);
}
.tbl__row:first-child { border-top: 2px solid var(--navy); }
.sx.is-in .tbl__row { opacity: 1; transform: none; }
.sx.is-in .tbl__row:nth-child(1) { transition-delay: .35s; }
.sx.is-in .tbl__row:nth-child(2) { transition-delay: .42s; }
.sx.is-in .tbl__row:nth-child(3) { transition-delay: .49s; }
.sx.is-in .tbl__row:nth-child(4) { transition-delay: .56s; }
.sx.is-in .tbl__row:nth-child(n+5) { transition-delay: .63s; }
.tbl dt {
  align-self: start;
  justify-self: start;
  padding: 3px 9px 2px;
  border-radius: 99px;
  background: var(--navy);
  color: var(--white);
  font-weight: 900;
  font-size: .82em;
  line-height: 1.6;
  white-space: nowrap;
}
.tbl a { text-decoration: underline; text-underline-offset: 3px; }
.tbl dd .chips { margin-top: .5em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li {
  padding: 4px 10px 3px;
  border: 1.5px solid var(--navy);
  border-radius: 99px;
  background: var(--white);
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1.45;
}
.amt { display: flex; align-items: baseline; gap: 4px; font-weight: 900; white-space: nowrap; }
.amt small { font-size: 12px; }
.amt b { font-family: var(--round); font-weight: 400; font-size: 26px; line-height: 1; }

/* 長い画面は外側の .swipe で通常スクロールする。 */
.sx--long {
  padding-top: var(--hd-h);
  height: auto;
  min-height: 100dvh;
  max-height: none;
  overflow: visible;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}
.sx--long .sx__in {
  flex: none;
  justify-content: flex-start;
  padding-top: 26px;
  padding-bottom: 72px;
}
.sx--long .sx__head { margin-bottom: 18px; }
/* 続きがあることを示す、下端の薄いフェード */
.sx--long::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 52px;
  pointer-events: none;
  background: linear-gradient(to top, var(--white), rgba(246, 249, 255, 0));
}

/* =========================================================
   小さい画面（iPhone SE など）
   ========================================================= */
@media (max-height: 700px) {
  .sx { padding-top: calc(var(--hd-h) + 10px); }
  .sx__in { gap: 9px; padding-bottom: 50px; }
  .sx__head { --big-fs: clamp(46px, 15vw, 64px); }
  .sx__title { font-size: clamp(20px, 5.8vw, 24px); }
  .txt { line-height: 1.75; }
  .txt p + p { margin-top: .45em; }
  .hanko { width: 60px; font-size: 16px; }
  .stamps__no { font-size: 19px; width: 196px; margin-left: -98px; }
  .stamps { padding-bottom: 36px; }
  .call__stamp { width: 92px; margin-top: -46px; font-size: 22px; }
  .call { padding-right: 104px; gap: 8px; }
  .say { font-size: 12.5px; padding: 8px 12px; }
  .value__num b { font-size: 60px; }
  .works li { padding: 7px 8px; font-size: 11.5px; }
  .works svg { width: 26px; height: 26px; }
  .plus { padding: 6px 10px 5px; }
  .plus b { font-size: 20px; }
  .tiles li { padding: 7px 10px 6px; }
  .tiles em { font-size: 24px; }
  .tiles b { font-size: 17px; }
  .poster { padding: 8px 12px 10px; }
  .poster__h { font-size: 30px; }
  .poster__list li { font-size: 12.5px; }
  .sx__in { padding-bottom: 58px; }
  .kv__line { font-size: clamp(28px, 9.4vw, 40px); }
  .kv__copy { gap: 6px; }
  .kv__big { font-size: 54px; margin-top: 8px; }
  .kv__lead { font-size: 12.5px; padding: 4px 12px 3px; }
  .kv__stage { margin-top: -24px; }
  .kv__stk { height: min(128%, 380px); }
  .kv__burst { width: 84px; right: auto; left: 46%; top: -6px; }
  .kv__burst b { font-size: 28px; }
  .kv__wants { gap: 6px; bottom: 8px; }
  .kv__wants .tag { font-size: 12px; padding: 5px 11px; }
  .kv__band { bottom: 40px; }
  .value__stk { height: calc(100% + 14px); }
  .stamps__no { top: 44px; }
  .bands { height: 132px; }
  .bands__2 { top: 52px; }
  .bands__3 { top: 94px; }
  .bands .band__set span { font-size: 17px; }
}

/* さらに低い画面（iPhone SE など）：本文と同じ内容の飾りは外して、本文の大きさを守る */
@media (max-height: 600px) {
  .value__tags,
  .role__path,
  .role__why,
  .plus { display: none; }
  .value { padding-right: 34%; }
  .role__pic img { max-height: 17dvh; }
  /* 6P：家族＞仕事は大きさを保ったまま、ブロックを少し低く */
  .family { height: 130px; }
  .family__eq b { font-size: 40px; padding: 5px 8px 2px; }
  .family__eq span { font-size: 25px; }
  /* 10P：帯とコピーを詰めて、人物の段を広げる */
  .bands { height: 106px; }
  .bands__1 { top: 4px; }
  .bands__2 { top: 38px; }
  .bands__3 { top: 72px; }
  .bands .band__set span { font-size: 15px; padding: 6px 0 4px; }
  .closing__copy { font-size: 30px; }
  .closing__burst { display: none; }
  .sx--closing .cta { height: 54px; }
}

/* 会社概要：表の下のテキストスライダー（修正依頼⑤） */
.slider { position: relative; flex: 0 0 auto; height: 100px; margin: 8px -24px 0; }
.slider .band { left: -12%; right: -12%; }
.slider .band__set span { font-family: var(--disp), var(--pop); font-size: 18px; padding: 9px 0 7px; }
.slider__1 { top: 12px; transform: rotate(-4deg); }
.slider__2 { top: 52px; transform: rotate(3deg); background: var(--yellow); color: var(--navy); }
.slider__2 .band__set span::after { color: var(--navy); }
#company .sx__in > :first-child { margin-top: auto; }
#company .sx__in > :last-child { margin-bottom: auto; }

/* COMPANY：見出し・会社情報・帯をまとめて、ヘッダー下の領域で縦中央に配置。 */
#company {
  justify-content: center;
}
#company > .sx__in {
  padding-block: 26px;
}

/* 高さの低いスマホでは、本文の縮小を抑えながらカード内の余裕を確保。 */
@media (max-height: 700px) {
  #p4 .role__card { padding: 16px 14px 14px; }
  #p4 .role__name { row-gap: 4px; }
  #p4 .role__path { row-gap: 6px; margin-top: 12px; }
  #p4 .role__why { margin-top: 12px; line-height: 1.65; }
  #p4 > .sx__in { padding-bottom: 32px; }
}

/* セクションの英語タイトルだけを左方向へゆっくり無限ループ。 */
.sx__head > .title-loop {
  left: 0;
  right: 0;
  overflow: hidden;
  padding-block: 3px 7px;
  margin-top: -3px;
}
.title-loop__track {
  display: flex;
  width: max-content;
  animation: section-title-loop var(--title-duration, 40s) linear infinite;
  will-change: transform;
}
.title-loop__group { display: flex; flex: none; }
.title-loop__word { display: block; flex: none; padding-inline-end: .65em; }
@keyframes section-title-loop {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .title-loop__track { animation: none !important; will-change: auto; }
}

/* RECRUIT：元の傾き・文字の高さを保ったまま、横方向だけ表示を切り抜く。 */
.kv__big.title-loop { clip-path: inset(-.25em 0); }
/* 資格取得支援制度：資格の一覧をまとめた広いチップ（2026-11-24 先方修正） */
.chips li.chips__wide { flex-basis: 100%; border-radius: 12px; padding: 8px 12px 7px; }
.chips__ttl { display: block; font-weight: 900; }
.chips .chips__sub { margin: 3px 0 2px; display: grid; gap: 1px; }
.chips .chips__sub li { padding: 0 0 0 1em; border: 0; border-radius: 0; background: none; font-weight: 700; text-indent: -1em; }
.chips .chips__sub li::before { content: "・"; display: inline-block; width: 1em; text-indent: 0; }
.chips__foot { display: block; font-weight: 900; }
