/* =========================================================================
   style.css — リクルートX トップLP（ファーストビュー）
   依存: /css/tokens.css（先に読み込む）
   レイアウト/ヒーロー/サービスカード/スマホモックアップ合成 + レスポンシブ
   ブレークポイント（DEVICE-RULES §3）: SP ≤768 / TAB 769–1024 / PC ≥1025
   ========================================================================= */

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--rx-font-body);
  font-size: var(--rx-fs-body);
  color: var(--rx-text);
  background: var(--rx-bg);
  line-height: 1.8;
  -webkit-tap-highlight-color: transparent;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

/* スクロール起点（DEVICE-RULES §13・スティッキーヘッダー導入時の余白） */
h1, h2, h3, h4, [id]:not(html, body) { scroll-margin-top: calc(72px + 16px); }
@media (max-width: 768px) {
  h1, h2, h3, h4, [id]:not(html, body) { scroll-margin-top: calc(60px + 16px); }
}

/* ---------------------------------------------------- container（DESIGN.md §コンテナ幅） */
.rx-container {
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
}
@media (min-width: 1440px) { .rx-container { max-width: 1340px; } }
@media (min-width: 1920px) { .rx-container { max-width: 1560px; } }

/* ---------------------------------------------------------------- button（DESIGN.md） */
.rx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  border: 0;
  border-radius: var(--rx-radius-pill);
  padding: clamp(.85rem, .7rem + .6vw, 1.05rem) clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  min-height: 48px;                       /* タップ44px超（§12） */
  font-family: var(--rx-font-head);
  font-weight: 700;
  font-size: var(--rx-fs-body);
  line-height: 1.3;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
}
.rx-btn:hover     { transform: translateY(-2px); }
.rx-btn:active    { transform: translateY(0); }
.rx-btn__lead     { flex-shrink: 0; width: 1.25em; height: 1.25em; }
.rx-btn__chevron  { flex-shrink: 0; width: .85em; height: .85em; opacity: .9; }

.rx-btn--primary {
  background: var(--rx-grad);
  color: #fff;
  box-shadow: 0 10px 24px rgba(var(--rx-accent-rgb), .35);
}
.rx-btn--primary:hover { box-shadow: 0 14px 30px rgba(var(--rx-accent-rgb), .45); }

.rx-btn--ghost {
  background: #fff;
  color: var(--rx-text);
  border: 1px solid var(--rx-border);
  box-shadow: var(--rx-shadow);
}

/* =========================================================================
   HERO
   ========================================================================= */
.rx-hero {
  position: relative;
  overflow: hidden;                       /* 装飾線のはみ出し防止 */
  padding: clamp(32px, 6vw, 96px) 0 clamp(48px, 8vw, 120px);
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(var(--rx-accent-rgb), .06), transparent 60%),
    var(--rx-bg);
}

.rx-hero__inner {
  display: grid;
  grid-template-columns: 1fr;             /* SP/TAB: 1カラム縦積み（添付1→添付2） */
  gap: clamp(32px, 6vw, 56px);
  align-items: center;
}
/* PC: 2カラム（左コピー / 右ビジュアル = 添付3） */
@media (min-width: 1025px) {
  .rx-hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(32px, 4vw, 72px);
  }
}

/* ---------------------------------------------------------- hero copy（添付1） */
.rx-hero__copy { min-width: 0; }

.rx-hero__eyebrow {
  font-family: var(--rx-font-head);
  font-weight: 700;
  font-size: var(--rx-fs-body);
  color: var(--rx-text-muted);
  margin-bottom: clamp(12px, 2vw, 20px);
  letter-spacing: .02em;
}
.rx-hero__eyebrow .rx-c-pink   { color: var(--rx-accent); }
.rx-hero__eyebrow .rx-c-purple { color: #a32bbf; }
.rx-hero__eyebrow .rx-c-blue   { color: var(--rx-accent-2); }

.rx-hero__title {
  font-family: var(--rx-font-head);
  font-weight: 900;
  font-size: clamp(1.375rem, .9rem + 2.6vw, 2.75rem); /* 「求人広告に頼らない採用へ。」が1行に収まるよう縮小（320px〜PC） */
  line-height: 1.28;
  letter-spacing: .01em;
  word-break: keep-all;                   /* 日本語は句読点でのみ折り返す・語の途中で割らない（§16） */
}
.rx-hero__title-main { color: var(--rx-text); display: block; white-space: nowrap; } /* 主見出しは常に1行 */
.rx-hero__title-lead { display: block; margin-top: .15em; }

/* 多色見出し（DESIGN.md: SNS=ピンク / 知って=ブルー / 好きになって=ピンク / 応募される=濃紺） */
.rx-hero__title-lead .rx-w-sns   { color: var(--rx-accent); }
.rx-hero__title-lead .rx-w-know  { color: var(--rx-accent-2); }
.rx-hero__title-lead .rx-w-like  { color: var(--rx-accent); }
.rx-hero__title-lead .rx-w-apply { color: var(--rx-text); }

.rx-hero__lead {
  margin-top: clamp(16px, 2.5vw, 24px);
  max-width: 38em;                         /* 長文可読性（§9） */
  font-size: var(--rx-fs-lead);
  color: var(--rx-text-muted);
  line-height: 1.85;
  word-break: keep-all;                    /* 日本語は文節で折り返す（途中で割らない・§16） */
  overflow-wrap: anywhere;                 /* 収まらない時の保険（横はみ出し防止・§8） */
}

/* 指定の改行は、1行目が収まるPC幅でだけ有効化。狭い画面は自然折り返し */
.rx-br-pc { display: none; }
@media (min-width: 1025px) {
  .rx-br-pc { display: inline; }
}

.rx-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 1.5vw, 16px);
  margin-top: clamp(24px, 3.5vw, 36px);
}
.rx-hero__cta .rx-btn { flex: 0 1 auto; }
@media (max-width: 420px) {
  .rx-hero__cta .rx-btn { flex: 1 1 100%; } /* 極小幅は縦積みフル幅 */
}

/* ------------------------------------------------- feature cards（3サービス） */
.rx-feature-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.5vw, 16px);
  margin-top: clamp(28px, 4vw, 44px);
}
.rx-feature-card {
  min-width: 0;
  padding: clamp(12px, 1.8vw, 18px);
  background: var(--rx-bg-light);
  border: 1px solid var(--rx-border);
  border-radius: var(--rx-radius);
}
.rx-feature-card__head {
  display: flex;
  align-items: center;
  gap: .5em;
  margin-bottom: .5em;
}
.rx-feature-card__icon {
  flex-shrink: 0;
  width: clamp(20px, 2.4vw, 26px);
  height: clamp(20px, 2.4vw, 26px);
}
.rx-feature-card__title {
  font-family: var(--rx-font-head);
  font-weight: 700;
  font-size: clamp(.9rem, .82rem + .35vw, 1.0625rem);
  line-height: 1.3;
}
.rx-feature-card__desc {
  font-size: var(--rx-fs-small);
  color: var(--rx-text-muted);
  line-height: 1.65;
}
/* アイコンの色分け */
.rx-feature-card--sns   .rx-feature-card__icon { color: var(--rx-accent); }
.rx-feature-card--cont  .rx-feature-card__icon { color: var(--rx-accent-2); }
.rx-feature-card--meta  .rx-feature-card__icon { color: #f59e0b; }

/* 極小幅では3列維持が窮屈 → 1列に */
@media (max-width: 420px) {
  .rx-feature-cards { grid-template-columns: 1fr; }
}

/* =========================================================================
   スマホモックアップ合成（添付2 / 添付3右側）
   グループ親に aspect-ratio をロックし、内部は cqw 基準で配置 → 単位でスケール（§10）
   ========================================================================= */
.rx-hero__visual { min-width: 0; }

/* ヒーローのキービジュアル（手＋スマホ＋グラデ）— PC右カラム / SP中央 */
.rx-hero__media {
  display: block;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}
.rx-hero__media img {
  display: block;
  width: 100%;
  height: auto;            /* width/heightは縦横比保持用（DEVICE-RULES §1）。実描画はheight:auto */
}

.rx-mock {
  position: relative;
  container-type: inline-size;            /* cqw を有効化 */
  width: min(100%, 560px);
  margin: 0 auto;
  aspect-ratio: 1 / 1.04;                 /* グループの高さを固定 */
}

/* ---- 装飾コネクター線（PC のみ・装飾） ---- */
.rx-mock__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-base);
  pointer-events: none;
}

/* ---- 中央スマホ（CSS立体化：金属ベゼル＋チルト＋ガラス映り込み） ---- */
.rx-mock__phone {
  position: absolute;
  top: 3%;
  left: 50%;
  width: 40cqw;
  /* チタン調の金属フレーム */
  background: linear-gradient(145deg, #3a3f4d 0%, #15181f 30%, #0c0e14 55%, #20242e 80%, #4a4f5e 100%);
  border-radius: 13cqw / 6cqw;
  padding: 1.4cqw;
  /* 立体チルト（--ry/--rx は JS のポインタ視差で上書き。未設定時は静的な傾き） */
  transform: translateX(-50%) perspective(1100px)
             rotateY(var(--ry, -7deg)) rotateX(var(--rx, 2deg));
  transform-origin: 50% 50%;
  transition: transform .25s ease;
  /* 多層シャドウ＋フレーム縁のハイライト */
  box-shadow:
    0 2cqw 3cqw rgba(28, 40, 74, .10),
    0 10cqw 18cqw rgba(28, 40, 74, .24),
    inset 0 0 0 .3cqw rgba(255, 255, 255, .12);
  z-index: var(--z-elevated);
}
/* 側面ボタン（音量＝左 / 電源＝右） */
.rx-mock__phone::before,
.rx-mock__phone::after {
  content: "";
  position: absolute;
  width: .9cqw;
  border-radius: 999px;
}
.rx-mock__phone::before { left: -.5cqw;  top: 24%; height: 11cqw; background: linear-gradient(90deg, #0c0e14, #3a3f4d); }
.rx-mock__phone::after  { right: -.5cqw; top: 30%; height: 8cqw;  background: linear-gradient(270deg, #0c0e14, #3a3f4d); }

.rx-mock__screen {
  background: #fff;
  border-radius: 10.5cqw / 5cqw;
  overflow: hidden;
  aspect-ratio: 1 / 2.02;
  display: flex;
  flex-direction: column;
}

/* Dynamic Island 風ノッチ */
.rx-mock__island {
  position: absolute;
  top: 3.4cqw;
  left: 50%;
  transform: translateX(-50%);
  width: 12cqw;
  height: 3cqw;
  border-radius: 999px;
  background: #05060a;
  z-index: 2;
}

/* ガラスの映り込み（斜めの光） */
.rx-mock__glare {
  position: absolute;
  inset: 1.4cqw;                          /* 画面領域（フレーム内側）に重ねる */
  border-radius: 10.5cqw / 5cqw;
  background: linear-gradient(135deg,
              rgba(255, 255, 255, .30) 0%,
              rgba(255, 255, 255, .06) 18%,
              rgba(255, 255, 255, 0)  40%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 3;
}
.rx-mock__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.4cqw 2.6cqw 1.6cqw;
  font-family: var(--rx-font-head);
  font-weight: 700;
  font-size: 3cqw;
}
.rx-mock__topbar svg { width: 3.4cqw; height: 3.4cqw; color: var(--rx-text); }

.rx-mock__feed {
  flex: 1;
  overflow: hidden;
  padding: 0 2.2cqw;
  display: flex;
  flex-direction: column;
  gap: 1.8cqw;
}
.rx-feed-item {
  display: grid;
  grid-template-columns: 1fr 9cqw;
  gap: 1.6cqw;
  align-items: center;
  padding: 1.6cqw;
  border-radius: 2.4cqw;
  background: var(--rx-bg-light);
}
.rx-feed-item__body { min-width: 0; }
.rx-feed-item__title {
  font-family: var(--rx-font-head);
  font-weight: 700;
  font-size: 2.7cqw;
  line-height: 1.3;
}
.rx-feed-item__sub {
  font-size: 2.1cqw;
  color: var(--rx-text-muted);
  margin-top: .4cqw;
}
.rx-feed-item__meta {
  display: flex;
  gap: 2.4cqw;
  margin-top: 1cqw;
  font-size: 2.1cqw;
  color: var(--rx-text-muted);
}
.rx-feed-item__meta span { display: inline-flex; align-items: center; gap: .6cqw; }
.rx-feed-item__meta svg { width: 2.6cqw; height: 2.6cqw; }
.rx-feed-item__meta .rx-i-like { color: var(--rx-accent-2); }
.rx-feed-item__thumb {
  width: 9cqw;
  height: 9cqw;
  border-radius: 1.8cqw;
  object-fit: cover;
  background: #e9edf5;
}

.rx-mock__nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 2.2cqw 0;
  border-top: .3cqw solid var(--rx-border);
}
.rx-mock__nav svg { width: 3.6cqw; height: 3.6cqw; color: var(--rx-text-muted); }
.rx-mock__nav svg.is-active { color: var(--rx-text); }

/* ---- 浮遊カード共通 ---- */
.rx-mock__card {
  position: absolute;
  margin: 0;
  background: var(--rx-card-bg);
  border: 1px solid var(--rx-border);
  border-radius: 3cqw;
  box-shadow: 0 3cqw 9cqw rgba(28, 40, 74, .12);
  padding: 2.6cqw;
  z-index: var(--z-elevated);
}
.rx-mock__card-label {
  font-family: var(--rx-font-head);
  font-weight: 700;
  font-size: 2.7cqw;
  line-height: 1.3;
}
.rx-mock__card-row {
  display: flex;
  align-items: center;
  gap: 1.6cqw;
}
.rx-mock__card-text { font-size: 2.2cqw; color: var(--rx-text-muted); line-height: 1.5; }

/* 候補者プロフィール（左上） */
.rx-mock__card--profile { top: 12%; left: 0; width: 30cqw; }
.rx-mock__card--profile .rx-mock__card-row { margin-top: 1.6cqw; }
.rx-mock__card--profile img {
  width: 8cqw; height: 8cqw; border-radius: 50%; object-fit: cover; background: #e9edf5;
}
.rx-mock__card--profile .rx-mock__name { font-weight: 700; font-size: 2.5cqw; color: var(--rx-text); }
.rx-mock__card--profile ul { margin: 1.6cqw 0; display: grid; gap: .8cqw; }
.rx-mock__card--profile li { font-size: 2.1cqw; color: var(--rx-text-muted); padding-left: 2.4cqw; position: relative; }
.rx-mock__card--profile li::before {
  content: ""; position: absolute; left: 0; top: .7em;
  width: 1.2cqw; height: 1.2cqw; border-radius: 50%; background: var(--rx-accent);
}
.rx-mock__empathy {
  display: flex; align-items: center; gap: 1.2cqw;
  border-top: .3cqw solid var(--rx-border); padding-top: 1.6cqw;
  font-size: 2.2cqw;
}
.rx-mock__empathy svg { width: 3cqw; height: 3cqw; color: var(--rx-accent); }
.rx-mock__empathy b { color: var(--rx-accent); font-size: 3cqw; }

/* Meta広告ターゲティング（右上） */
.rx-mock__card--targeting { top: 7%; right: 0; width: 31cqw; }
.rx-mock__card--targeting .rx-mock__card-label { text-align: center; }
.rx-mock__ring {
  width: 14cqw; height: 14cqw; margin: 2cqw auto;
  border-radius: 50%;
  background: conic-gradient(from 200deg, var(--rx-accent-2), var(--rx-accent), #a32bbf 75%, var(--rx-border) 75%);
  display: grid; place-items: center;
}
.rx-mock__ring::after {
  content: ""; width: 9cqw; height: 9cqw; border-radius: 50%; background: #fff;
  display: grid; place-items: center;
}
.rx-mock__card--targeting dl { display: grid; grid-template-columns: auto 1fr; gap: 1cqw 1.4cqw; margin: 0; font-size: 2.1cqw; }
.rx-mock__card--targeting dt { color: var(--rx-text-muted); }
.rx-mock__card--targeting dd { margin: 0; color: var(--rx-text); font-weight: 500; }

/* フォロー・LINE（左下） */
.rx-mock__card--line { top: 55%; left: 0; width: 30cqw; }
.rx-mock__card--line .rx-mock__line-head { display: flex; align-items: center; gap: 1.2cqw; }
.rx-mock__card--line .rx-i-line { width: 4cqw; height: 4cqw; color: #06c755; flex-shrink: 0; }
.rx-mock__card--line ul { display: grid; gap: 1cqw; margin: 1.6cqw 0; }
.rx-mock__card--line li { font-size: 2.1cqw; color: var(--rx-text-muted); }
.rx-mock__avatars { display: flex; align-items: center; }
.rx-mock__avatars img {
  width: 4cqw; height: 4cqw; border-radius: 50%; object-fit: cover;
  border: .4cqw solid #fff; margin-left: -1.2cqw; background: #e9edf5;
}
.rx-mock__avatars img:first-child { margin-left: 0; }
.rx-mock__avatars span { font-size: 2cqw; color: var(--rx-text-muted); margin-left: 1.4cqw; }

/* 応募してみる（右・中下） */
.rx-mock__card--apply { top: 50%; right: 0; width: 29cqw; text-align: center; }
.rx-mock__card--apply .rx-mock__send {
  width: 6cqw; height: 6cqw; margin: 0 auto 1.4cqw; border-radius: 50%;
  background: var(--rx-grad); display: grid; place-items: center;
}
.rx-mock__card--apply .rx-mock__send svg { width: 3cqw; height: 3cqw; color: #fff; }
.rx-mock__card--apply .rx-mock__card-text { margin: 1cqw 0 1.8cqw; }
.rx-mock__pill {
  display: inline-flex; align-items: center; gap: .8cqw;
  background: var(--rx-grad); color: #fff;
  font-family: var(--rx-font-head); font-weight: 700; font-size: 2.3cqw;
  padding: 1.4cqw 2.6cqw; border-radius: var(--rx-radius-pill);
}
.rx-mock__pill svg { width: 2.4cqw; height: 2.4cqw; }

/* オフィス3D図（右下） */
.rx-mock__card--office { bottom: 0; right: 2%; width: 32cqw; padding: 0; overflow: hidden; }
.rx-mock__card--office img { width: 100%; height: 22cqw; object-fit: cover; background: #e9edf5; }

/* =========================================================================
   レスポンシブ調整
   ========================================================================= */
/* PC: ビジュアルをやや拡大（添付3） */
@media (min-width: 1025px) {
  .rx-mock { width: min(100%, 620px); }
}

/* SP（≤768）: 合成はそのまま縮小。装飾線は省略。
   ※ 中央スマホ 40cqw ＋ 左右カード 30cqw は横幅でちょうどタイル状に収まり、
     横方向の重なりが出ないため、PC と同じ配置のまま縮小して使う（§10）。 */
@media (max-width: 768px) {
  .rx-mock { width: min(100%, 460px); aspect-ratio: 1 / 1.06; }
  .rx-mock__lines { display: none; }
}

/* 極小（≤480）: クラスタが密集しすぎないよう、右下のオフィス図のみ省略して整理。
   ターゲティングカードが縦に伸びるので応募カードを下げて重なりを回避。 */
@media (max-width: 480px) {
  .rx-mock { aspect-ratio: 1 / 1.08; }
  .rx-mock__card--office { display: none; }
  .rx-mock__card--apply { top: 62%; }
}

/* =========================================================================
   入場アニメ（JS が .is-in を付与 / prefers-reduced-motion で無効）
   ========================================================================= */
@media (prefers-reduced-motion: no-preference) {
  .rx-anim {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .6s ease, transform .6s ease;
  }
  .rx-anim.is-in {
    opacity: 1;
    transform: none;
  }
}

/* =====================================================================
   ヒーロー オーバーレイ（暫定）
   - 画像 .rx-hero__bg を全幅で敷き、.rx-hero__copy を左上に絶対配置
   - 既存の grid レイアウト（.rx-hero__inner）を解除する形で上書き
   ===================================================================== */
.rx-hero {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: none;
  overflow: hidden;
  min-height: auto;
}

.rx-hero__bg {
  display: block;
  width: 100%;
  height: auto;
}

.rx-hero__copy {
  position: absolute;
  top: clamp(80px, 12svh, 140px);    /* ナビ余白＋画面の高さに比例（縦横比追従） */
  left: clamp(16px, 5vw, 64px);
  z-index: 2;
  max-width: min(70%, 480px);
  padding: 0;
}

.rx-hero__copy .rx-hero__eyebrow {
  margin: 0 0 clamp(10px, 1.8vw, 18px);
}

/* 3行の見出しは詰めて小さめに（ピンク帯の上に乗る前提） */
.rx-hero__title {
  margin: 0;
  font-size: clamp(1.5rem, 1.05rem + 1.8vw, 2.5rem);
  line-height: 1.5;
  letter-spacing: .01em;
  word-break: keep-all;
}
.rx-hero__title br { display: inline; }

/* ヒーロー内のテキストは「ピンクの帯の上」前提で全て白＋微シャドウで読みやすく */
.rx-hero__copy,
.rx-hero__copy .rx-hero__eyebrow,
.rx-hero__copy .rx-hero__eyebrow .rx-c-pink,
.rx-hero__copy .rx-hero__eyebrow .rx-c-purple,
.rx-hero__copy .rx-hero__title,
.rx-hero__copy .rx-hero__title .rx-w-sns,
.rx-hero__copy .rx-hero__title .rx-w-know,
.rx-hero__copy .rx-hero__title .rx-w-like,
.rx-hero__copy .rx-hero__title .rx-w-apply {
  color: #fff;
}
.rx-hero__copy .rx-hero__eyebrow,
.rx-hero__copy .rx-hero__title {
  text-shadow: 0 1px 6px rgba(0, 0, 0, .22);
}

/* ヒーロー文字を細めの編集者トーンに（Shippori Mincho 500 / Inter+Zen Kaku Gothic Antique 500） */
.rx-hero__copy .rx-hero__eyebrow {
  font-family: 'Inter', 'Zen Kaku Gothic Antique', 'Hiragino Sans', 'Yu Gothic', Meiryo, sans-serif;
  font-weight: 500;
  letter-spacing: .08em;
}
.rx-hero__copy .rx-hero__title {
  font-family: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', 'Noto Serif JP', serif;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.6;
}

/* ヒーロー文字色: 確定= ダーク #0a0a0c（白背景優位のため影は撤去） */
.rx-hero__copy,
.rx-hero__copy .rx-hero__eyebrow,
.rx-hero__copy .rx-hero__eyebrow .rx-c-pink,
.rx-hero__copy .rx-hero__eyebrow .rx-c-purple,
.rx-hero__copy .rx-hero__title,
.rx-hero__copy .rx-hero__title .rx-w-sns,
.rx-hero__copy .rx-hero__title .rx-w-know,
.rx-hero__copy .rx-hero__title .rx-w-like,
.rx-hero__copy .rx-hero__title .rx-w-apply {
  color: #0a0a0c;
}
.rx-hero__copy .rx-hero__eyebrow,
.rx-hero__copy .rx-hero__title {
  text-shadow: none;
}

/* ヒーロー見出しサイズ: 画面の縦横比に追従（vw=横 + svh=縦 のミックス）
   heroは100svhのsticky枠なので、画像(object-fit: cover)と同じく
   横長の低い画面では小さく・縦に余裕がある画面では大きくなる */
.rx-hero__copy .rx-hero__title {
  font-size: clamp(1.625rem, 1.2vw + 3.2svh + .4rem, 3.25rem);
  line-height: 1.55;
}
.rx-hero__copy .rx-hero__eyebrow {
  font-size: clamp(.875rem, .4vw + 1.2svh + .3rem, 1.1875rem);
}
/* SP: 縦長端末でsvh成分が効きすぎないよう見出しの上限だけ抑える */
@media (max-width: 768px) {
  .rx-hero__copy .rx-hero__title { font-size: clamp(1.625rem, 1.2vw + 3.2svh + .4rem, 2.125rem); }
}

/* =====================================================================
   ヘッダーナビゲーション（zetta-joule参考: sticky・透明→白・SPハンバーガー）
   ===================================================================== */
.rx-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-header, 1000);
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease;
}
.rx-nav.is-scrolled {
  background: rgba(255, 255, 255, .94);
  border-bottom-color: var(--rx-border, #e7e7eb);
}
.rx-nav__inner {
  /* 全幅: ロゴは常に画面左端・メニューは右端（ワイド画面で中央に寄らない） */
  width: 100%;
  padding: clamp(12px, 1.4vw, 18px) clamp(16px, 4vw, 40px);
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
  min-height: 64px;
}
.rx-nav__brand {
  font-family: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  font-weight: 600;
  font-size: clamp(1.0625rem, .95rem + .4vw, 1.375rem);
  color: var(--rx-text, #0a0a0c);
  letter-spacing: .04em;
  flex-shrink: 0;
  text-decoration: none;
}
.rx-nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.5vw, 36px);
  margin-left: auto;
}
.rx-nav__link {
  font-family: 'Zen Kaku Gothic Antique', 'Hiragino Sans', sans-serif;
  font-weight: 500;
  font-size: .9375rem;
  color: var(--rx-text, #0a0a0c);
  letter-spacing: .04em;
  position: relative;
  padding: .5em 0;
  text-decoration: none;
  transition: color .2s ease;
}
.rx-nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.rx-nav__link:hover::after,
.rx-nav__link:focus-visible::after { transform: scaleX(1); }

/* 現在ページ: ピンクで「現在地」を示す（全ページ共通のナビ仕様） */
.rx-nav__link[aria-current="page"] { color: var(--rx-accent, #ec2d87); }

/* 準備中の項目（料金プラン・お役立ち情報・コラム）: href無しのプレースホルダー。
   薄く表示し、下線アニメ・ポインタを無効化して「まだ遷移しない」ことを示す */
.rx-nav__link[aria-disabled="true"] { opacity: .5; cursor: default; }
.rx-nav__link[aria-disabled="true"]::after { content: none; }
@media (max-width: 768px) {
  /* SP全画面メニューでも準備中項目は薄く */
  .rx-nav__menu .rx-nav__link[aria-disabled="true"] { opacity: .45; }
}

/* お問い合わせCTA: contentsx.jp と同じテキストロールアップ
   hover/focusで「お問い合わせ→」が上へ抜け、「Contact→」が下からロールイン
   二層は grid 重ね置き（同セル）+ overflow: hidden でクリップ */
.rx-nav__cta {
  display: inline-grid;
  font-family: 'Inter', 'Zen Kaku Gothic Antique', sans-serif;
  font-weight: 600;
  font-size: .9375rem;
  color: #0a0a0c;                              /* 黒文字 */
  background: #fce7f3;                          /* 淡いピンク */
  padding: .7em 1.4em;
  border: 1px solid rgba(236, 45, 135, .18);
  border-radius: 14px;                          /* 角丸長方形（pillではない） */
  letter-spacing: .04em;
  text-decoration: none;
  min-height: 40px;
  overflow: hidden;
  transition: background-color .3s ease, transform .25s ease, box-shadow .3s ease;
  flex-shrink: 0;
}
.rx-nav__cta:hover {
  background: #fbd3e1;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(236, 38, 141, .14);
}
.rx-nav__cta-text,
.rx-nav__cta-alt {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}
.rx-nav__cta-alt  { transform: translateY(180%); }   /* paddingぶんも含め完全に隠す */
.rx-nav__cta:hover .rx-nav__cta-text,
.rx-nav__cta:focus-visible .rx-nav__cta-text { transform: translateY(-180%); }
.rx-nav__cta:hover .rx-nav__cta-alt,
.rx-nav__cta:focus-visible .rx-nav__cta-alt  { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .rx-nav__cta-text, .rx-nav__cta-alt { transition: none; }
}

/* ハンバーガー（SPのみ） */
.rx-nav__hamburger {
  display: none;
  background: transparent;
  border: 0;
  padding: 10px;
  cursor: pointer;
  margin-left: 6px;
}
.rx-nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--rx-text, #0a0a0c);
  margin: 5px 0;
  transition: transform .3s ease, opacity .25s ease;
}
.rx-nav__hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.rx-nav__hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.rx-nav__hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .rx-nav__menu {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100svh;
    background: #fff;
    flex-direction: column;
    justify-content: center;
    padding: 80px 32px 40px;
    gap: 28px;
    margin-left: 0;
    transform: translateY(-100%);
    transition: transform .35s cubic-bezier(.22,.61,.36,1);
    z-index: -1;
  }
  .rx-nav__menu.is-open { transform: translateY(0); }
  .rx-nav__link { font-size: 1.25rem; }
  .rx-nav__hamburger { display: block; }
  /* SPはメニューがオフキャンバスのため、CTA+ハンバーガーを右詰めにする */
  .rx-nav__cta { padding: .55em 1em; font-size: .875rem; margin-left: auto; }
}

/* =====================================================================
   お問い合わせ section + フォーム（DESIGN.md トークン: 明朝見出し+ゴシック本文）
   ===================================================================== */
.rx-contact {
  background: #fafafa;
  padding: clamp(80px, 12vw, 200px) 0;
}
.rx-contact__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}
.rx-contact__eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: .875rem;
  letter-spacing: .14em;
  color: var(--rx-text-muted, #6e7280);
  text-transform: uppercase;
  margin: 0 0 clamp(12px, 1.8vw, 20px);
  text-align: center;
}
.rx-contact__heading {
  font-family: 'Shippori Mincho', 'Hiragino Mincho ProN', serif;
  font-weight: 500;
  font-size: clamp(1.875rem, 1.4rem + 1.8vw, 3rem);
  line-height: 1.3;
  letter-spacing: .02em;
  color: #0a0a0c;
  text-align: center;
  margin: 0 0 clamp(16px, 2.5vw, 24px);
}
.rx-contact__lead {
  font-family: 'Zen Kaku Gothic Antique', sans-serif;
  font-weight: 400;
  font-size: clamp(1rem, .95rem + .25vw, 1.0625rem);
  line-height: 1.85;
  color: var(--rx-text-muted, #6e7280);
  text-align: center;
  margin: 0 0 clamp(40px, 6vw, 64px);
}

/* フォーム */
.rx-form {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.5vw, 28px);
}
.rx-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 24px);
}
@media (max-width: 640px) {
  .rx-form__row { grid-template-columns: 1fr; }
}
.rx-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: 'Zen Kaku Gothic Antique', sans-serif;
}
.rx-form__label {
  font-size: .875rem;
  font-weight: 500;
  color: #0a0a0c;
  letter-spacing: .02em;
}
.rx-form__label em {
  font-style: normal;
  font-size: .75rem;
  font-weight: 500;
  color: #ec2d87;
  margin-left: 6px;
  letter-spacing: .04em;
}
.rx-form__field input,
.rx-form__field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1.0625rem;
  color: #0a0a0c;
  background: #fff;
  border: 1px solid #e7e7eb;
  border-radius: 12px;
  padding: 14px 16px;
  line-height: 1.6;
  transition: border-color .2s ease, box-shadow .2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.rx-form__field textarea {
  resize: vertical;
  min-height: 140px;
}
.rx-form__field input:focus,
.rx-form__field textarea:focus {
  outline: none;
  border-color: #ec2d87;
  box-shadow: 0 0 0 3px rgba(236, 45, 135, .12);
}
.rx-form__field input:invalid:not(:placeholder-shown),
.rx-form__field textarea:invalid:not(:placeholder-shown) {
  border-color: #d61f76;
}

/* 送信ボタン（角丸長方形・淡いピンク・黒文字） */
.rx-form__submit {
  margin-top: clamp(8px, 1.5vw, 16px);
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: 'Inter', 'Zen Kaku Gothic Antique', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #0a0a0c;
  background: #fce7f3;
  border: 1px solid rgba(236, 45, 135, .22);
  border-radius: 14px;
  padding: 16px 40px;
  letter-spacing: .04em;
  cursor: pointer;
  min-height: 56px;
  min-width: 220px;
  justify-content: center;
  transition: background-color .2s ease, transform .15s ease, box-shadow .2s ease, opacity .2s ease;
}
.rx-form__submit:hover {
  background: #fbd3e1;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(236, 38, 141, .14);
}
.rx-form__submit:disabled,
.rx-form__submit.is-sending {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}
.rx-form__submit-arrow { width: 1.1em; height: 1.1em; flex-shrink: 0; }

/* 送信完了表示 */
.rx-form__thanks {
  text-align: center;
  padding: clamp(40px, 6vw, 64px) 0;
}
.rx-form__thanks-h {
  font-family: 'Shippori Mincho', serif;
  font-weight: 500;
  font-size: clamp(1.25rem, 1.1rem + .8vw, 1.5rem);
  color: #0a0a0c;
  margin: 0 0 12px;
  letter-spacing: .02em;
}
.rx-form__thanks-s {
  font-family: 'Zen Kaku Gothic Antique', sans-serif;
  font-size: 1rem;
  color: #6e7280;
  margin: 0;
}

/* ヒーロー見出し（3行）に白アウトライン: 中=黒(現状) / 外枠=白
   paint-order: stroke fill → 白ストロークを先に塗ってから黒で塗りつぶす（外側にだけ白が残る） */
.rx-hero__copy .rx-hero__title,
.rx-hero__copy .rx-hero__title .rx-w-sns,
.rx-hero__copy .rx-hero__title .rx-w-know,
.rx-hero__copy .rx-hero__title .rx-w-like,
.rx-hero__copy .rx-hero__title .rx-w-apply {
  -webkit-text-stroke: 2px #fff;
  paint-order: stroke fill;
}

/* ヒーロー: タイトル下の階段状リード（空白と改行をそのまま反映） */
.rx-hero__copy .rx-hero__staircase {
  margin: clamp(16px, 2.5vw, 28px) 0 0;
  font-family: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  font-weight: 400;
  font-size: clamp(.875rem, .82rem + .32vw, 1.0625rem);
  line-height: 2;
  letter-spacing: .04em;
  color: #0a0a0c;
  white-space: pre-line;                 /* 改行を保持・全角空白(　)はそのまま描画 */
}

/* =====================================================================
   ABOUT セクション「リクルートXとは」 PC=左画像/右テキスト・SP=縦積み
   ===================================================================== */
.rx-about {
  padding: clamp(80px, 12vw, 200px) 0;
  background: #fff;
  /* カーテンリビール: heroの最後の100svhに重なり、固定された背景の上を
     下からスライドして覆う。背景は必ず不透明にしておくこと */
  position: relative;
  z-index: 2;
  margin-top: -100svh;
  box-shadow: 0 -28px 60px rgba(10, 10, 12, .10);
}
.rx-about__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (min-width: 769px) {
  .rx-about__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}
.rx-about__media {
  margin: 0 auto;
  max-width: 480px;
  width: 100%;
}
.rx-about__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, .10);
}
.rx-about__copy { min-width: 0; }
.rx-about__eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: .875rem;
  letter-spacing: .14em;
  color: #6e7280;
  text-transform: uppercase;
  margin: 0 0 clamp(12px, 1.8vw, 20px);
}
.rx-about__heading {
  font-family: 'Shippori Mincho', 'Hiragino Mincho ProN', serif;
  font-weight: 500;
  font-size: clamp(1.875rem, 1.4rem + 1.8vw, 3rem);
  line-height: 1.3;
  letter-spacing: .02em;
  color: #0a0a0c;
  margin: 0 0 clamp(20px, 3vw, 32px);
}
.rx-about__lead {
  font-family: 'Zen Kaku Gothic Antique', 'Hiragino Sans', sans-serif;
  font-weight: 400;
  font-size: clamp(1rem, .95rem + .3vw, 1.125rem);
  line-height: 1.95;
  color: #0a0a0c;
  word-break: keep-all;
  overflow-wrap: anywhere;
  margin: 0;
}

/* ABOUT本文の3キーワード強調: 太字＋ピンクのマーカー風ハイライト
   linear-gradient で下半分にピンク帯。box-decoration-break: clone で折り返し時もキレイ */
.rx-about__keyword {
  font-weight: 700;
  color: #0a0a0c;
  background: linear-gradient(transparent 62%, rgba(236, 45, 135, .22) 38%);
  padding: 0 .12em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* =====================================================================
   PROBLEM「こんなお悩み、ありませんか？」 共感ブロック・3カラム
   ===================================================================== */
.rx-problem {
  padding: clamp(80px, 12vw, 200px) 0;
  background: #fafafa;
}
.rx-problem__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  text-align: center;
}
.rx-problem__eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: .875rem;
  letter-spacing: .14em;
  color: #6e7280;
  text-transform: uppercase;
  margin: 0 0 clamp(12px, 1.8vw, 20px);
}
.rx-problem__heading {
  font-family: 'Shippori Mincho', 'Hiragino Mincho ProN', serif;
  font-weight: 500;
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 3rem);
  line-height: 1.4;
  letter-spacing: .02em;
  color: #0a0a0c;
  margin: 0 0 clamp(40px, 6vw, 64px);
  word-break: keep-all;
}

/* カード */
/* 「現場の声」引用スタイル: カード枠なし・大きな明朝の引用符＋セリフ＋出典 */
.rx-problem__voices {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 5vw, 32px);
  max-width: 1120px;
  margin: 0 auto clamp(48px, 7vw, 72px);
  text-align: left;
}
@media (min-width: 769px) {
  .rx-problem__voices { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 64px); }
}
.rx-problem__voice { min-width: 0; }
.rx-problem__quote {
  position: relative;
  margin: 0 0 clamp(18px, 2.4vw, 26px);
  padding-top: clamp(40px, 5vw, 56px);       /* 引用符ぶんの空間 */
}
.rx-problem__quote::before {
  content: "\201C";                            /* “ 大きな明朝の引用符 */
  position: absolute;
  top: 0;
  left: -.06em;
  font-family: 'Shippori Mincho', 'Hiragino Mincho ProN', serif;
  font-weight: 600;
  font-size: clamp(3.5rem, 2.6rem + 3vw, 5.5rem);
  line-height: 1;
  color: #ec2d87;
  opacity: .9;
}
.rx-problem__quote p {
  font-family: 'Shippori Mincho', 'Hiragino Mincho ProN', serif;
  font-weight: 500;
  font-size: clamp(1.1875rem, 1.05rem + .5vw, 1.375rem);
  line-height: 2;
  letter-spacing: .03em;
  color: #0a0a0c;
  margin: 0;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.rx-problem__attr {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Zen Kaku Gothic Antique', 'Hiragino Sans', sans-serif;
  font-weight: 400;
  font-size: .875rem;
  letter-spacing: .06em;
  color: #6e7280;
  margin: 0;
}
.rx-problem__attr::before {
  content: "";
  flex-shrink: 0;
  width: 28px;
  height: 1px;
  background: #ec2d87;
}

/* カード下のブリッジ文（Service へつなぐ） */
.rx-problem__bridge {
  font-family: 'Shippori Mincho', 'Hiragino Mincho ProN', serif;
  font-weight: 500;
  font-size: clamp(1.0625rem, 1rem + .4vw, 1.375rem);
  color: #0a0a0c;
  margin: 0;
  letter-spacing: .04em;
}
.rx-problem__bridge strong {
  background: linear-gradient(transparent 62%, rgba(236, 45, 135, .22) 38%);
  font-weight: 600;
  padding: 0 .15em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.rx-problem__arrow {
  display: inline-block;
  margin-top: 16px;
  font-size: 1.5rem;
  color: #ec2d87;
  animation: rx-bob 1.8s ease-in-out infinite;
}
@keyframes rx-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
@media (prefers-reduced-motion: reduce) {
  .rx-problem__arrow { animation: none; }
}

/* About: 2段落目（サービスの役割説明）はmutedで第1段落と差別化 */
.rx-about__lead--secondary {
  margin-top: clamp(16px, 2vw, 24px);
  color: #5c6b85;
}

/* 階段リード: hero右側に配置（PC=絶対配置で画像右上 / SP=画像下に通常フロー） */
.rx-hero__staircase {
  /* SP既定: 画像下に普通に配置 */
  position: static;
  margin: clamp(24px, 4vw, 40px) clamp(16px, 4vw, 32px);
  font-family: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  font-weight: 400;
  font-size: clamp(.875rem, .82rem + .32vw, 1.0625rem);
  line-height: 2;
  letter-spacing: .04em;
  color: #0a0a0c;
  white-space: pre-line;
}
@media (min-width: 769px) {
  .rx-hero__staircase {
    position: absolute;
    top: clamp(80px, 10vw, 140px);
    right: clamp(20px, 5vw, 64px);
    left: auto;
    z-index: 2;
    margin: 0;
    max-width: min(48%, 440px);
  }
}

/* 階段リード: もっと大きく＋右下配置（PCのみ） */
.rx-hero__staircase {
  font-size: clamp(1.0625rem, .9rem + 1.1vw, 1.875rem); /* 17→30px */
}
@media (min-width: 769px) {
  .rx-hero__staircase {
    top: auto;                                           /* 上配置を解除 */
    bottom: clamp(24px, 4vw, 56px);                      /* 右下に配置 */
    right: clamp(20px, 5vw, 72px);
    max-width: min(58%, 620px);                           /* 文字が大きい分、横幅を広げる */
  }
}

/* =====================================================================
   ヒーロー文字スワップ: h1 ⇄ 階段リード（JSのscrubが毎フレーム直接制御）
   ===================================================================== */
.rx-hero__title-stack {
  position: relative;
}
.rx-hero__title-swap {
  position: absolute;
  inset: 0;
  margin: 0;
  font-family: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  font-weight: 500;
  font-size: clamp(1.0625rem, .9rem + .9vw, 1.625rem);
  line-height: 1.9;
  letter-spacing: .04em;
  color: #0a0a0c;
  white-space: pre-line;
  opacity: 0;
  pointer-events: none;
}

/* =====================================================================
   HERO: sticky pin + scrub
   - 外枠 .rx-hero は背を高くしてスクロール距離を確保（250svh）
   - 中身 .rx-hero__sticky は 100svh で sticky → 画面に貼り付く
   - JS が scroll progress 0→1 を計算し、テキストをcrossfade
   ===================================================================== */
.rx-hero {
  position: relative;
  /* 350svh = sticky 100svh + 文字スワップ150svh + カーテンリビール100svh
     最後の100svhはheroが貼り付いたまま、Aboutが下から覆いかぶさる */
  height: 350svh;
  overflow: visible;
}
.rx-hero__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  width: 100%;
  overflow: hidden;
}
.rx-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* JSがopacity/transformを毎フレーム上書きするため transition は切る */
.rx-hero__title-stack .rx-hero__title,
.rx-hero__title-stack .rx-hero__title-swap {
  transition: none;
  will-change: opacity, transform;
}

/* モーション抑制: scrub・カーテンリビールを無効化（h1のみ静的に表示） */
@media (prefers-reduced-motion: reduce) {
  .rx-hero { height: auto; }
  .rx-hero__sticky { position: static; height: auto; }
  .rx-hero__bg { position: static; height: auto; object-fit: contain; }
  .rx-hero__title-swap { display: none; }
  .rx-about { margin-top: 0; box-shadow: none; }
}

/* 階段リード: 全角空白(　)を維持＋最終行が折り返さないよう枠を拡張
   - white-space: pre → 改行も空白もすべて保持・自動折り返ししない
   - width: max-content → 内容に合わせて自動。親の max-width に縛られない
   - PC: hero画像の右に広く取れる
   - 極小幅(480px以下)では pre-wrap で折り返しを許容（横はみ出し防止） */
.rx-hero__title-swap {
  inset: auto;
  top: 0;
  left: 0;
  width: max-content;
  max-width: calc(100vw - 40px);
  white-space: pre;
  font-size: clamp(1rem, .6vw + 1.7svh + .35rem, 1.75rem);  /* 16→28px・縦横比に追従 */
  line-height: 1.95;
}
@media (max-width: 480px) {
  .rx-hero__title-swap {
    white-space: pre-wrap;
    max-width: 100%;
    width: auto;
    inset: 0;
    font-size: clamp(.9375rem, .85rem + .5vw, 1.125rem);
  }
}

/* 階段リード(swap)にも白アウトライン: h1 と同じ paint-order: stroke fill 方式 */
.rx-hero__copy .rx-hero__title-swap {
  -webkit-text-stroke: 2px #fff;
  paint-order: stroke fill;
}

/* swap各行: 親はwhitespace解除、子(line)が個別にwhitespace pre保持＆カスケードアニメ */
.rx-hero__title-swap { white-space: normal; }
.rx-hero__title-swap-line {
  display: block;
  white-space: pre;                  /* 全角空白を維持 */
  opacity: 0;
  transform: translate(-10px, -16px); /* 左上から流れ落ちる初期位置 */
  transition: none;
  will-change: opacity, transform;
}

/* =====================================================================
   SERVICE: 3ステップの縦フロー
   PC = 左右ジグザグ（01:左画像 / 02:右画像 / 03:左画像）
   SP = 縦積み（画像→テキスト）
   ===================================================================== */
.rx-service {
  padding: clamp(80px, 12vw, 200px) 0;
  background: #fff;
}
.rx-service__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  text-align: center;
}
.rx-service__eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: .875rem;
  letter-spacing: .14em;
  color: #6e7280;
  text-transform: uppercase;
  margin: 0 0 clamp(12px, 1.8vw, 20px);
}
.rx-service__heading {
  font-family: 'Shippori Mincho', 'Hiragino Mincho ProN', serif;
  font-weight: 500;
  font-size: clamp(1.875rem, 1.4rem + 1.8vw, 3rem);
  line-height: 1.35;
  letter-spacing: .02em;
  color: #0a0a0c;
  margin: 0 0 clamp(20px, 3vw, 28px);
  word-break: keep-all;
}
.rx-service__lead {
  font-family: 'Zen Kaku Gothic Antique', sans-serif;
  font-weight: 400;
  font-size: clamp(1rem, .95rem + .3vw, 1.125rem);
  line-height: 1.9;
  color: #6e7280;
  max-width: 720px;
  margin: 0 auto clamp(56px, 8vw, 96px);
  word-break: keep-all;
}

/* 3ステップ縦並び */
.rx-service__steps {
  display: flex;
  flex-direction: column;
  gap: clamp(64px, 10vw, 128px);
  margin: 0 0 clamp(56px, 8vw, 96px);
  padding: 0;
  list-style: none;
  position: relative;
  text-align: left;
}
/* ステップ間の点線縦コネクタ（PCのみ・装飾） */
@media (min-width: 1025px) {
  .rx-service__steps::before {
    content: "";
    position: absolute;
    top: 18%;
    bottom: 18%;
    left: 50%;
    width: 1px;
    background-image: linear-gradient(to bottom, #ec2d87 0, #ec2d87 4px, transparent 4px, transparent 12px);
    background-size: 1px 12px;
    background-repeat: repeat-y;
    opacity: .35;
    pointer-events: none;
  }
}

/* 1ステップ: 2カラム（画像 + コピー） */
.rx-service__step {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
@media (min-width: 769px) {
  .rx-service__step { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .rx-service__step--reverse .rx-service__media { order: 2; }
}

/* 画像 */
.rx-service__media {
  margin: 0;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(15, 23, 42, .10);
}
.rx-service__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* コピー側 */
.rx-service__copy { min-width: 0; position: relative; }
.rx-service__num {
  display: block;
  font-family: 'Shippori Mincho', 'Hiragino Mincho ProN', serif;
  font-weight: 600;
  font-size: clamp(3rem, 2rem + 4vw, 5.5rem);
  line-height: 1;
  letter-spacing: -.02em;
  color: #ec2d87;
  opacity: .85;
  margin: 0 0 8px;
}
.rx-service__label {
  font-family: 'Inter', 'Zen Kaku Gothic Antique', sans-serif;
  font-weight: 500;
  font-size: .8125rem;
  letter-spacing: .18em;
  color: #6e7280;
  text-transform: uppercase;
  margin: 0 0 clamp(12px, 1.6vw, 18px);
}
.rx-service__title {
  font-family: 'Shippori Mincho', 'Hiragino Mincho ProN', serif;
  font-weight: 500;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  line-height: 1.35;
  letter-spacing: .02em;
  color: #0a0a0c;
  margin: 0 0 clamp(16px, 2vw, 24px);
}
.rx-service__desc {
  font-family: 'Zen Kaku Gothic Antique', sans-serif;
  font-weight: 400;
  font-size: clamp(1rem, .95rem + .25vw, 1.0625rem);
  line-height: 1.9;
  color: #0a0a0c;
  margin: 0 0 clamp(20px, 2.5vw, 28px);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.rx-service__list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: 'Zen Kaku Gothic Antique', sans-serif;
  font-size: .9375rem;
  color: #6e7280;
}
.rx-service__list li {
  position: relative;
  padding-left: 1.5em;
  margin: 0 0 .55em;
  line-height: 1.7;
}
.rx-service__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .68em;
  width: 12px; height: 1px;
  background: #ec2d87;
}

/* セクション末尾の橋渡し文 */
.rx-service__bridge {
  font-family: 'Shippori Mincho', 'Hiragino Mincho ProN', serif;
  font-weight: 500;
  font-size: clamp(1.0625rem, 1rem + .4vw, 1.375rem);
  color: #0a0a0c;
  letter-spacing: .04em;
  text-align: center;
  margin: 0;
  word-break: keep-all;
}
.rx-service__bridge strong {
  background: linear-gradient(transparent 62%, rgba(236, 45, 135, .22) 38%);
  font-weight: 600;
  padding: 0 .15em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* =====================================================================
   フォームのセキュリティ補助
   - honeypot: botだけが埋める不可視フィールド（display:noneは回避されやすいためoffscreen）
   - エラー表示: JSが textContent で文言を入れる
   ===================================================================== */
.rx-form__hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.rx-form__error {
  margin: 0 0 16px;
  font-family: 'Zen Kaku Gothic Antique', sans-serif;
  font-size: .9375rem;
  line-height: 1.7;
  color: #d3265c;
}

/* =====================================================================
   SERVICE PLUS: 求人広告 運用代行
   STEPと同じジグザグ帯（.rx-service__step を継承・カード枠なし）
   左 = PLUS + コピー / 右 = 運用フロー3手順 + 対応媒体
   ===================================================================== */
.rx-service__plusband {
  margin: clamp(64px, 10vw, 128px) auto 0;
  text-align: left;
}
/* 「PLUS」は数字より横長なので一回り小さく */
.rx-service__plusband .rx-service__num {
  font-size: clamp(2.5rem, 1.8rem + 2.6vw, 4rem);
  letter-spacing: .06em;
}
.rx-service__plusband .rx-service__desc strong {
  background: linear-gradient(transparent 62%, rgba(236, 45, 135, .22) 38%);
  font-weight: 600;
  padding: 0 .15em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* 右パネル: 罫線だけの編集者的フロー（箱・背景なし） */
.rx-service__plusflow { min-width: 0; }
.rx-service__plusflow-heading {
  font-family: 'Inter', 'Zen Kaku Gothic Antique', sans-serif;
  font-weight: 500;
  font-size: .8125rem;
  letter-spacing: .18em;
  color: #6e7280;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.rx-service__plusflow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rx-service__plusflow-steps li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: clamp(16px, 2vw, 22px) 0;
  border-bottom: 1px solid #e7e7eb;
  font-family: 'Zen Kaku Gothic Antique', sans-serif;
  font-size: clamp(1rem, .95rem + .25vw, 1.0625rem);
  line-height: 1.7;
  color: #0a0a0c;
  word-break: keep-all;
}
.rx-service__plusflow-num {
  flex-shrink: 0;
  font-family: 'Shippori Mincho', 'Hiragino Mincho ProN', serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: #ec2d87;
  letter-spacing: .02em;
}
.rx-service__plusflow-media {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: clamp(18px, 2.2vw, 24px) 0 0;
  font-family: 'Zen Kaku Gothic Antique', sans-serif;
  font-size: .9375rem;
  color: #0a0a0c;
}
.rx-service__plusflow-media span {
  flex-shrink: 0;
  font-size: .8125rem;
  letter-spacing: .1em;
  color: #6e7280;
}

/* =====================================================================
   共通フッター（全ページ複製・同一マークアップ / 濃紺地 + グラデの上線）
   ナビ＝ヘッダー同期（準備中項目は aria-disabled で薄表示）。会社情報＋著作権。
   ===================================================================== */
.rx-footer {
  position: relative;
  background: var(--rx-text);
  color: #fff;
  margin-top: clamp(64px, 10vw, 120px);
}
.rx-footer::before {                      /* ブランドグラデの細いアクセント上線 */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--rx-grad);
}
.rx-footer__inner {
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 64px) clamp(16px, 3vw, 32px) clamp(28px, 4vw, 40px);
}
@media (min-width: 1440px) { .rx-footer__inner { max-width: 1340px; } }
@media (min-width: 1920px) { .rx-footer__inner { max-width: 1560px; } }

.rx-footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: clamp(28px, 5vw, 48px);
}

/* --- ブランド（ロゴは明朝・ナビと同書体） --- */
.rx-footer__brand { min-width: 0; max-width: 30em; }
.rx-footer__logo { display: inline-block; text-decoration: none; }
.rx-footer__logo-name {
  font-family: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  font-weight: 600;
  font-size: clamp(1.125rem, 1rem + .5vw, 1.5rem);
  color: #fff;
  letter-spacing: .04em;
}
.rx-footer__tagline {
  margin-top: .75em;
  font-size: var(--rx-fs-small);
  line-height: 1.7;
  color: rgba(255, 255, 255, .7);
}

/* --- ナビ（Zen Kaku・ヘッダーと同期） --- */
.rx-footer__links {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: clamp(10px, 1.4vw, 14px) clamp(28px, 4vw, 48px);
}
.rx-footer__link {
  font-family: 'Zen Kaku Gothic Antique', 'Hiragino Sans', sans-serif;
  font-weight: 500;
  font-size: .9375rem;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .82);
  transition: color .2s ease;
}
.rx-footer__link:hover,
.rx-footer__link:focus-visible { color: #fff; }
/* 準備中（料金プラン・お役立ち情報・コラム）: href無し・非遷移（ナビと同方針） */
.rx-footer__link[aria-disabled="true"] {
  opacity: .4;
  cursor: default;
  pointer-events: none;
}

/* --- 下段（会社情報・著作権） --- */
.rx-footer__bottom {
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: clamp(20px, 3vw, 28px);
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px 24px;
}
.rx-footer__company-service {
  font-family: var(--rx-font-head);
  font-weight: 700;
  font-size: var(--rx-fs-small);
  color: rgba(255, 255, 255, .85);
}
.rx-footer__company-name {
  margin-top: .35em;
  font-size: var(--rx-fs-small);
  color: rgba(255, 255, 255, .6);
}
.rx-footer__copyright small {
  font-size: .8125rem;
  color: rgba(255, 255, 255, .5);
  letter-spacing: .03em;
}

/* SP: 縦積み */
@media (max-width: 640px) {
  .rx-footer__top    { flex-direction: column; gap: 28px; }
  .rx-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* =====================================================================
   フローティングお問い合わせボタン（全ページ共通・お問い合わせページを除く）
   - 画面左下に固定。少しスクロールしたら表示し、以後ずっと追従
   - JS（main.js）が <body> 直下に動的挿入。お問い合わせページ(#rx-contact-form)では挿入しない
   - z-index は階層変数（DEVICE-RULES §11）。FAB 層
   ===================================================================== */
.rx-fab {
  position: fixed;
  left: clamp(16px, 2vw, 28px);
  bottom: max(clamp(16px, 2.4vw, 28px), env(safe-area-inset-bottom, 0px));
  z-index: var(--z-fab);
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: clamp(.72rem, .62rem + .3vw, .95rem) clamp(1.1rem, .9rem + .7vw, 1.6rem);
  border-radius: var(--rx-radius-pill);
  background: var(--rx-grad);
  color: #fff;
  font-family: var(--rx-font-head);
  font-weight: 700;
  font-size: clamp(.875rem, .84rem + .2vw, 1rem);
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(var(--rx-accent-rgb), .4);
  /* 初期は隠す → is-visible で表示 */
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .32s ease, transform .32s ease, box-shadow .2s ease, visibility .32s;
}
.rx-fab.is-visible { opacity: 1; visibility: visible; transform: none; }
.rx-fab:hover  { transform: translateY(-3px); box-shadow: 0 14px 38px rgba(var(--rx-accent-rgb), .52); }
.rx-fab:active { transform: translateY(-1px); }
.rx-fab:focus-visible { outline: 3px solid rgba(var(--rx-accent-rgb), .45); outline-offset: 3px; }
.rx-fab__icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

@media (max-width: 640px) {
  .rx-fab { font-size: .875rem; padding: .72rem 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .rx-fab { transition: opacity .2s ease, visibility .2s; transform: none; }
  .rx-fab.is-visible { transform: none; }
  .rx-fab:hover, .rx-fab:active { transform: none; }
}
@media print { .rx-fab { display: none !important; } }
