/* ============================================================
   reji-top.css — サロレジトップ専用モーション
   方向: 「静謐な精密」×「計器盤」
   - compositor-only (transform / opacity / clip-path)
   - prefers-reduced-motion: reduce では全モーション停止で完全成立
   - ヒーローは JS 無しでも CSS アニメーションだけで表示される
   ============================================================ */

/* ------------------------------------------------------------
   モーション非依存の土台（reduce でも適用される安全な装飾）
   ------------------------------------------------------------ */
.rj-link-vis { position: relative; }
.rj-link-fx {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 3;
}
.rj-dot {
  position: absolute; left: 0; top: 0;
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--terra);
  box-shadow: 0 0 0 3px rgba(71, 121, 141, .16), 0 0 16px rgba(71, 121, 141, .55);
  opacity: 0;
  will-change: transform, opacity;
}
.rj-pay-btn {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.rj-pay-btn:focus-visible { outline: 2px solid var(--terra-deep); outline-offset: 3px; }
.rj-sync-grid > div { position: relative; }
.rj-day-grid > div { position: relative; }

/* ホバー時の面の変化（transform を伴わない分は reduce でも許容） */
.rj-grid > a {
  transition:
    transform .35s var(--ease-out),
    box-shadow .35s var(--ease-out),
    border-color .35s var(--ease-out) !important;
}
.rj-grid > a:hover {
  box-shadow: var(--shadow-card);
  border-color: var(--blue) !important;
}

/* ------------------------------------------------------------
   ここから下はモーション許可時のみ
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {

  /* ================= keyframes ================= */
  @keyframes rjFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes rjWipe {
    from { clip-path: inset(0 100% 0 0); transform: translateX(-12px); }
    to   { clip-path: inset(0 0 0 0);    transform: none; }
  }
  @keyframes rjDash {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
  }
  @keyframes rjPill {
    from { opacity: 0; transform: translateY(10px) scale(.94); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes rjRise {
    from { opacity: 0; transform: translateY(26px) scale(.985); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes rjBar {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
  }
  @keyframes rjSheen {
    0%, 55%   { transform: translateX(-120%); }
    90%, 100% { transform: translateX(170%); }
  }
  @keyframes rjPulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: .3; }
  }
  @keyframes rjHit {
    0%   { transform: scale(1); }
    35%  { transform: scale(1.03); }
    100% { transform: scale(1); }
  }
  @keyframes rjFlash {
    0%   { opacity: 0; }
    25%  { opacity: 1; }
    100% { opacity: 0; }
  }
  @keyframes rjGlow {
    0%, 100% { opacity: .25; }
    50%      { opacity: .6; }
  }
  @keyframes rjBtnCue {
    0%, 100% { box-shadow: 0 0 0 0 rgba(71, 121, 141, 0); }
    50%      { box-shadow: 0 0 0 7px rgba(71, 121, 141, .15); }
  }

  /* ================= 1. HERO（JS不要のCSS入場） ================= */
  /* 基底の .rv 待ち（JS）を解除し、CSSアニメーションで入場させる */
  .rj-hero .rv { opacity: 1; transform: none; transition: none; }

  .rj-hero .wrap > .rv:first-child { animation: rjFadeUp .7s var(--ease-out) .05s both; }

  .rj-hero .sec-eyebrow { animation: rjFadeUp .8s var(--ease-out) .15s both; }
  .rj-hero .sec-eyebrow::before {
    content: "";
    display: inline-block;
    width: 1.6em; height: 1px;
    background: currentColor;
    margin-right: .55em;
    vertical-align: .28em;
    transform-origin: left center;
    animation: rjDash 1s var(--ease-out) .35s both;
  }
  .rj-hero .sec-title { animation: rjWipe 1.15s var(--ease-out) .3s both; }
  .rj-hero .sec-lead  { animation: rjFadeUp .9s var(--ease-out) .95s both; }

  .rj-pills span { animation: rjPill .55s var(--ease-out) both; }
  .rj-pills span:nth-child(1) { animation-delay: .55s; }
  .rj-pills span:nth-child(2) { animation-delay: .61s; }
  .rj-pills span:nth-child(3) { animation-delay: .67s; }
  .rj-pills span:nth-child(4) { animation-delay: .73s; }
  .rj-pills span:nth-child(5) { animation-delay: .79s; }
  .rj-pills span:nth-child(6) { animation-delay: .85s; }
  .rj-pills span:nth-child(7) { animation-delay: .91s; }
  .rj-pills span:nth-child(8) { animation-delay: .97s; }

  /* ---- ガントUIモック =「生きた画面」 ----
     視界に入った瞬間（.is-in = nav.jsのIO）に計器が起動する。
     JS無しでは静的に全表示（アニメは掛からない）。 */
  .rj-hero-mock.is-in { animation: rjRise .9s var(--ease-out) .1s both; }
  .rj-hero-mock .ui-mock { will-change: transform; }

  .rj-hero-mock.is-in .m-time span { animation: rjFadeUp .6s var(--ease-out) both; }
  .rj-hero-mock.is-in .m-time span:nth-child(1) { animation-delay: .5s; }
  .rj-hero-mock.is-in .m-time span:nth-child(2) { animation-delay: .55s; }
  .rj-hero-mock.is-in .m-time span:nth-child(3) { animation-delay: .6s; }
  .rj-hero-mock.is-in .m-time span:nth-child(4) { animation-delay: .65s; }
  .rj-hero-mock.is-in .m-time span:nth-child(5) { animation-delay: .7s; }

  /* 予約バーが左から描画される */
  .rj-hero-mock .m-blk { transform-origin: left center; overflow: hidden; }
  .rj-hero-mock.is-in .m-blk { animation: rjBar .9s var(--ease-out) both; }
  .rj-hero-mock.is-in .m-row:nth-child(2) .m-blk:nth-child(1) { animation-delay: .65s; }
  .rj-hero-mock.is-in .m-row:nth-child(2) .m-blk:nth-child(2) { animation-delay: .8s; }
  .rj-hero-mock.is-in .m-row:nth-child(2) .m-blk:nth-child(3) { animation-delay: .95s; }
  .rj-hero-mock.is-in .m-row:nth-child(3) .m-blk:nth-child(1) { animation-delay: .75s; }
  .rj-hero-mock.is-in .m-row:nth-child(3) .m-blk:nth-child(2) { animation-delay: .9s; }
  .rj-hero-mock.is-in .m-row:nth-child(3) .m-blk:nth-child(3) { animation-delay: 1.05s; }
  .rj-hero-mock.is-in .m-row:nth-child(4) .m-blk:nth-child(1) { animation-delay: .85s; }
  .rj-hero-mock.is-in .m-row:nth-child(4) .m-blk:nth-child(2) { animation-delay: 1.0s; }

  /* 進行中ブロックに時折シーン光が走る（計器盤の稼働感） */
  .rj-hero-mock .m-blk.b-active::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, .4) 50%, transparent 80%);
    transform: translateX(-120%);
    animation: rjSheen 4.5s ease-in-out 2.6s infinite;
  }

  /* 現在時刻ラインの鼓動 */
  .rj-hero-mock .m-nowline { animation: rjPulse 2.6s ease-in-out 2.2s infinite; }

  .rj-hero-mock.is-in .m-kpi { animation: rjFadeUp .7s var(--ease-out) both; }
  .rj-hero-mock.is-in .m-kpi:nth-child(1) { animation-delay: 1.0s; }
  .rj-hero-mock.is-in .m-kpi:nth-child(2) { animation-delay: 1.09s; }
  .rj-hero-mock.is-in .m-kpi:nth-child(3) { animation-delay: 1.18s; }
  .rj-hero-mock.is-in .m-kpi:nth-child(4) { animation-delay: 1.27s; }

  /* ================= 2. セクション見出しの段差リビール ================= */
  .sec:not(.rj-hero) .sec-head.rv { transform: none; }
  .sec:not(.rj-hero) .sec-head.rv .sec-eyebrow,
  .sec:not(.rj-hero) .sec-head.rv .sec-title,
  .sec:not(.rj-hero) .sec-head.rv .sec-lead {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  }
  .sec:not(.rj-hero) .sec-head.rv .sec-title { transition-delay: .12s; }
  .sec:not(.rj-hero) .sec-head.rv .sec-lead  { transition-delay: .24s; }
  .sec:not(.rj-hero) .sec-head.rv.is-in .sec-eyebrow,
  .sec:not(.rj-hero) .sec-head.rv.is-in .sec-title,
  .sec:not(.rj-hero) .sec-head.rv.is-in .sec-lead {
    opacity: 1;
    transform: none;
  }
  .sec:not(.rj-hero) .sec-head.rv .sec-eyebrow::before {
    content: "";
    display: inline-block;
    width: 1.6em; height: 1px;
    background: currentColor;
    margin-right: .55em;
    vertical-align: .28em;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .9s var(--ease-out) .2s;
  }
  .sec:not(.rj-hero) .sec-head.rv.is-in .sec-eyebrow::before { transform: scaleX(1); }

  /* ================= 3. 機能一覧グリッドの段差入場 ================= */
  .rj-grid.rv { transform: none; }
  .rj-grid.rv > * {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .65s var(--ease-out), transform .65s var(--ease-out);
  }
  .rj-grid.rv.is-in > * { opacity: 1; transform: none; }
  .rj-grid.rv > *:nth-child(1)  { transition-delay: 0s; }
  .rj-grid.rv > *:nth-child(2)  { transition-delay: .05s; }
  .rj-grid.rv > *:nth-child(3)  { transition-delay: .1s; }
  .rj-grid.rv > *:nth-child(4)  { transition-delay: .15s; }
  .rj-grid.rv > *:nth-child(5)  { transition-delay: .2s; }
  .rj-grid.rv > *:nth-child(6)  { transition-delay: .25s; }
  .rj-grid.rv > *:nth-child(7)  { transition-delay: .3s; }
  .rj-grid.rv > *:nth-child(8)  { transition-delay: .35s; }
  .rj-grid.rv > *:nth-child(9)  { transition-delay: .4s; }
  .rj-grid.rv > *:nth-child(10) { transition-delay: .45s; }
  .rj-grid.rv > *:nth-child(11) { transition-delay: .5s; }
  .rj-grid.rv > *:nth-child(12) { transition-delay: .55s; }
  .rj-grid > a:hover { transform: translateY(-4px); }

  /* ================= 4. 連携 =「会計1回→4連動」の実演 ================= */
  .rj-pay { transform-origin: 50% 80%; }
  .rv.is-in .rj-pay { animation: rjRise .9s var(--ease-out) .1s both; }

  .rj-pay-btn { transition: transform .25s var(--ease-bounce); }
  .rj-pay-btn.is-press { transform: scale(.955); }
  /* 待機中はボタンが静かに呼吸して「押せる」ことを示す */
  .rj-link-vis.is-armed .rj-pay-btn { animation: rjBtnCue 2.8s ease-in-out 1.4s infinite; }
  .rj-link-vis.is-playing .rj-pay-btn { animation: none; }

  .rj-link-arrow { transition: transform .4s var(--ease-out); }
  .rj-link-arrow.is-firing { transform: scale(1.08); }

  /* JSが有効化(is-armed)した時だけ、カードは「点灯待ち」の淡い状態になる */
  .rj-link-vis.is-armed .rj-sync-grid > div {
    opacity: .38;
    transform: translateY(10px);
    transition:
      opacity .55s var(--ease-out),
      transform .55s var(--ease-out),
      box-shadow .55s var(--ease-out);
  }
  .rj-link-vis.is-armed .rj-sync-grid > div.is-hit {
    opacity: 1;
    transform: none;
    box-shadow: 0 10px 30px -12px rgba(71, 121, 141, .45);
    animation: rjHit .5s var(--ease-out);
  }
  .rj-sync-grid > div::after {
    content: "";
    position: absolute; left: 0; right: 0; top: -3px; height: 3px;
    border-radius: 12px 12px 0 0;
    background: var(--blue);
    opacity: 0;
  }
  .rj-link-vis.is-armed .rj-sync-grid > div.is-hit::after { animation: rjFlash 1.2s ease-out both; }

  /* ================= 5. 1日の流れ = 時系列の点灯パス ================= */
  .rj-day.rv { transform: none; }
  .rj-day .rj-day-grid > div {
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
  }
  .rj-day.rv.is-in .rj-day-grid > div { opacity: 1; transform: none; }
  .rj-day .rj-day-grid > div:nth-child(1) { transition-delay: 0s; }
  .rj-day .rj-day-grid > div:nth-child(2) { transition-delay: .08s; }
  .rj-day .rj-day-grid > div:nth-child(3) { transition-delay: .16s; }
  .rj-day .rj-day-grid > div:nth-child(4) { transition-delay: .24s; }
  .rj-day .rj-day-grid > div:nth-child(5) { transition-delay: .32s; }
  .rj-day .rj-day-grid > div:nth-child(6) { transition-delay: .4s; }

  /* JSトリガー(is-play)で 前夜→朝→…→翌朝 の順に光が通る */
  .rj-day-grid > div::after {
    content: "";
    position: absolute; inset: 0;
    border-radius: 10px;
    box-shadow: inset 0 0 0 1.5px var(--terra), 0 6px 18px -8px rgba(71, 121, 141, .4);
    opacity: 0;
    pointer-events: none;
  }
  .rj-day.is-play .rj-day-grid > div:nth-child(1)::after { animation: rjFlash 1s var(--ease-out) .5s both; }
  .rj-day.is-play .rj-day-grid > div:nth-child(2)::after { animation: rjFlash 1s var(--ease-out) .82s both; }
  .rj-day.is-play .rj-day-grid > div:nth-child(3)::after { animation: rjFlash 1s var(--ease-out) 1.14s both; }
  .rj-day.is-play .rj-day-grid > div:nth-child(4)::after { animation: rjFlash 1s var(--ease-out) 1.46s both; }
  .rj-day.is-play .rj-day-grid > div:nth-child(5)::after { animation: rjFlash 1s var(--ease-out) 1.78s both; }
  .rj-day.is-play .rj-day-grid > div:nth-child(6)::after { animation: rjFlash 1s var(--ease-out) 2.1s both; }

  /* 結論の一文は筆が通るように */
  .rj-day.rv.is-in .rj-day-punch { animation: rjWipe 1s var(--ease-out) 1.9s both; }

  /* ================= 6. 料金ピル・活用シーン・B/A・導入の流れ ================= */
  .rj-price-pills.rv { transform: none; }
  .rj-price-pills.rv > span {
    opacity: 0;
    transform: translateY(10px) scale(.96);
    transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
  }
  .rj-price-pills.rv.is-in > span { opacity: 1; transform: none; }
  .rj-price-pills.rv > span:nth-child(1) { transition-delay: 0s; }
  .rj-price-pills.rv > span:nth-child(2) { transition-delay: .06s; }
  .rj-price-pills.rv > span:nth-child(3) { transition-delay: .12s; }
  .rj-price-pills.rv > span:nth-child(4) { transition-delay: .18s; }
  .rj-price-pills.rv > span:nth-child(5) { transition-delay: .24s; }
  .rj-price-pills.rv > span:nth-child(6) { transition-delay: .3s; }
  .rj-price-pills.rv > span:nth-child(7) { transition-delay: .36s; }

  .rj-scenes.rv { transform: none; }
  .rj-scenes.rv > div {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  }
  .rj-scenes.rv.is-in > div { opacity: 1; transform: none; }
  .rj-scenes.rv > div:nth-child(2) { transition-delay: .12s; }
  .rj-scenes.rv > div:nth-child(3) { transition-delay: .24s; }

  /* BEFORE列が先に、AFTER列が後に。左右から静かに寄る */
  .rj-ba.rv { transform: none; }
  .rj-ba.rv > div > div {
    opacity: 0;
    transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  }
  .rj-ba.rv > div:nth-child(1) > div { transform: translateX(-14px); }
  .rj-ba.rv > div:nth-child(2) > div { transform: translateX(14px); }
  .rj-ba.rv.is-in > div > div { opacity: 1; transform: none; }
  .rj-ba.rv > div:nth-child(1) > div:nth-child(1) { transition-delay: .05s; }
  .rj-ba.rv > div:nth-child(1) > div:nth-child(2) { transition-delay: .18s; }
  .rj-ba.rv > div:nth-child(2) > div:nth-child(1) { transition-delay: .45s; }
  .rj-ba.rv > div:nth-child(2) > div:nth-child(2) { transition-delay: .58s; }

  .rv .flow-steps-vis .flow-step {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .65s var(--ease-out), transform .65s var(--ease-out);
  }
  .rv.is-in .flow-steps-vis .flow-step { opacity: 1; transform: none; }
  .rv .flow-steps-vis .flow-step:nth-child(2) { transition-delay: .14s; }
  .rv .flow-steps-vis .flow-step:nth-child(3) { transition-delay: .28s; }
  .rv .flow-steps-vis .flow-step:nth-child(4) { transition-delay: .42s; }

  .rv .three-point-banner .tp-item {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
  }
  .rv.is-in .three-point-banner .tp-item { opacity: 1; transform: none; }
  .rv .three-point-banner .tp-item:nth-child(2) { transition-delay: .1s; }
  .rv .three-point-banner .tp-item:nth-child(3) { transition-delay: .2s; }

  /* ================= 7. 最終CTA = 静かな灯り ================= */
  .rj-cta { overflow: hidden; }
  .rj-cta::before {
    content: "";
    position: absolute; inset: -25%;
    background: radial-gradient(ellipse at 50% 18%, rgba(176, 208, 223, .18), transparent 55%);
    opacity: .3;
    animation: rjGlow 8s ease-in-out infinite;
    pointer-events: none;
  }
  .rj-cta .wrap { position: relative; z-index: 1; }
}

/* ================= WAVE2 (2026-07-07 Fable司令塔) =================
   FVを「絵」にする: 2カラム化・精密グリッド背景・紙のグレイン・タイポ拡大。
   連携セクション: スクロール到達で会計→4連動が実際に発火する(.rj-fire)。 */

/* --- ヒーロー背景: 計器盤グリッド + 淡い光 + グレイン --- */
.rj-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 560px at 84% 8%, rgba(176, 208, 223, .30), transparent 62%),
    linear-gradient(rgba(71, 121, 141, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(71, 121, 141, .055) 1px, transparent 1px),
    var(--cream, #f5f7f6);
  background-size: auto, 72px 72px, 72px 72px, auto;
}
.rj-hero::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.rj-hero .wrap { position: relative; z-index: 1; }

/* --- 2カラムの絵 (デスクトップ) --- */
@media (min-width: 1080px) {
  .rj-hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 3.5rem; align-items: center; }
  .rj-hero .sec-title { font-size: clamp(3rem, 1.3rem + 3.4vw, 4.4rem); line-height: 1.18; }
  .rj-hero .sec-head { margin-bottom: 0; }
  .rj-hero-mock { margin-top: 0 !important; }
  .rj-hero-mock .ui-mock {
    max-width: none !important;
    transform: perspective(1200px) rotateY(-4deg) rotateX(1.4deg);
    box-shadow: 0 44px 90px -34px rgba(31, 51, 60, .38), 0 12px 28px -12px rgba(31, 51, 60, .16);
    border-radius: 14px;
    background: #fff;
  }
}
.rj-hero .k-val, .rj-pay-amount, .m-kpi .k-val { font-variant-numeric: tabular-nums; }
/* 実スクショが届くまでのプレースホルダはヒーローでは出さない（モックが本体） */
.rj-hero-mock .img-slot-placeholder { display: none; }

/* --- 連携: 発火シーケンス (.rj-fire が点火スイッチ) --- */
.rj-link .rj-pay-btn { transition: transform .18s var(--ease-out, ease-out); }
.rj-link.rj-fire .rj-pay-btn { animation: rjPress .55s var(--ease-out, ease-out) .15s both; }
@keyframes rjPress {
  0% { transform: none; }
  35% { transform: scale(.955); }
  70% { transform: scale(1.015); }
  100% { transform: none; }
}
.rj-link .rj-link-arrow { opacity: 0; transform: translateY(-8px); transition: opacity .45s var(--ease-out, ease-out) .5s, transform .45s var(--ease-out, ease-out) .5s; }
.rj-link.rj-fire .rj-link-arrow { opacity: 1; transform: none; }
.rj-link .rj-sync-grid > div {
  opacity: .22;
  transform: translateY(12px);
  transition: opacity .55s var(--ease-out, ease-out), transform .55s var(--ease-out, ease-out), box-shadow .55s var(--ease-out, ease-out);
}
.rj-link.rj-fire .rj-sync-grid > div { opacity: 1; transform: none; box-shadow: 0 12px 28px -16px rgba(71, 121, 141, .4); }
.rj-link.rj-fire .rj-sync-grid > div:nth-child(1) { transition-delay: .75s; }
.rj-link.rj-fire .rj-sync-grid > div:nth-child(2) { transition-delay: 1.05s; }
.rj-link.rj-fire .rj-sync-grid > div:nth-child(3) { transition-delay: 1.35s; }
.rj-link.rj-fire .rj-sync-grid > div:nth-child(4) { transition-delay: 1.65s; }

@media (prefers-reduced-motion: reduce) {
  .rj-hero-mock .ui-mock { transform: none !important; }
  .rj-link .rj-sync-grid > div { opacity: 1; transform: none; transition: none; }
  .rj-link .rj-link-arrow { opacity: 1; transform: none; transition: none; }
  .rj-link.rj-fire .rj-pay-btn { animation: none; }
}

/* ================= WAVE3 (2026-07-07 Fable) — 「途中」を「完成」へ =================
   絵文字・素のパネル・ブログ風の帯を全廃し、設計済みコンポーネントに置換。 */

/* --- ステータスチップ（旧✅バッジ）: 呼吸するドット --- */
.rj-status {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: var(--text-xs); font-weight: 700; letter-spacing: .14em;
  color: var(--terra);
  border: 1px solid rgba(71, 121, 141, .30);
  border-radius: 999px;
  padding: .5em 1.05em .5em .9em;
  background: rgba(255, 255, 255, .65);
}
.rj-status::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--terra);
  animation: rjPulseDot 2.8s ease-out infinite;
}
@keyframes rjPulseDot {
  0% { box-shadow: 0 0 0 0 rgba(71, 121, 141, .35); }
  70% { box-shadow: 0 0 0 9px rgba(71, 121, 141, 0); }
  100% { box-shadow: 0 0 0 0 rgba(71, 121, 141, 0); }
}

/* --- チェックマーク（旧✅）: 細線SVG --- */
.rj-check {
  display: inline-block; width: 20px; height: 20px; margin-bottom: .55rem;
  background: var(--terra);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3.5 10.8l4.2 4.2L16.5 5' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3.5 10.8l4.2 4.2L16.5 5' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .3s var(--ease-out, ease-out);
}

/* --- 準備中チップ（旧🟡） --- */
.rj-soon {
  display: inline-block; margin-bottom: .55rem;
  font-size: .66rem; font-weight: 700; letter-spacing: .16em;
  color: var(--ink-3);
  border: 1px solid rgba(31, 51, 60, .18);
  border-radius: 999px;
  padding: .4em .95em;
}

/* --- カード共通: 枠線をやめ、光と紙の層で --- */
.rj-card {
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 1.6rem 1.5rem;
  box-shadow: 0 0 0 1px rgba(31, 51, 60, .07), 0 1px 2px rgba(31, 51, 60, .05);
  transition: transform .35s var(--ease-out, ease-out), box-shadow .35s var(--ease-out, ease-out);
}
.rj-card-link { display: block; text-decoration: none; }
.rj-card-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(71, 121, 141, .24), 0 20px 40px -20px rgba(31, 51, 60, .30);
}
.rj-card-link:hover .rj-check { transform: scale(1.12); }
/* 機能グリッドだけ精密ナンバリング */
.rj-grid { counter-reset: rjcard; }
.rj-grid .rj-card { counter-increment: rjcard; }
.rj-grid .rj-card::after {
  content: counter(rjcard, decimal-leading-zero);
  position: absolute; top: 1.15rem; right: 1.25rem;
  font-size: .64rem; letter-spacing: .16em;
  color: rgba(71, 121, 141, .45);
  font-variant-numeric: tabular-nums;
}

/* --- ヒーローの機能ピル / 料金の内訳ピル --- */
.rj-pill {
  font-size: var(--text-sm); font-weight: 600; color: var(--ink-1);
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(71, 121, 141, .22);
  border-radius: 999px;
  padding: .42rem .95rem;
}
.rj-inc {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: var(--text-sm); font-weight: 600; color: var(--ink-1);
  background: #fff; border-radius: 999px;
  padding: .42rem 1rem;
  box-shadow: 0 0 0 1px rgba(31, 51, 60, .08);
}
.rj-inc::before {
  content: ""; width: 12px; height: 12px; flex-shrink: 0;
  background: var(--terra);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3.5 10.8l4.2 4.2L16.5 5' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3.5 10.8l4.2 4.2L16.5 5' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* --- 1日の流れステップ: パネル→精密な段 --- */
.rj-step {
  padding: .95rem .95rem 1rem;
  border-top: 2px solid rgba(71, 121, 141, .55);
  background: linear-gradient(180deg, rgba(176, 208, 223, .16), rgba(176, 208, 223, 0) 70%);
}

/* --- 4連動カード --- */
.rj-sync-card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem 1.2rem 1.35rem;
  border-top: 2px solid var(--terra);
  box-shadow: 0 0 0 1px rgba(31, 51, 60, .07), 0 16px 32px -24px rgba(31, 51, 60, .38);
}

/* --- ビーム（旧「↓〜↓」テキスト矢印） --- */
.rj-beam { text-align: center; margin: 1.35rem 0 1.1rem; }
.rj-beam::before {
  content: ""; display: block; width: 1px; height: 36px; margin: 0 auto .65rem;
  background: linear-gradient(180deg, var(--terra), rgba(71, 121, 141, 0));
  transform-origin: top;
}
.rj-fire .rj-beam::before { animation: rjBeamGrow .7s var(--ease-out, ease-out) .35s both; }
@keyframes rjBeamGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.rj-beam span { font-size: var(--text-xs); font-weight: 700; letter-spacing: .24em; color: var(--terra); }

/* --- 「要点」帯: ブログ風コールアウト→仕様ストリップ --- */
.rj-hero .summary-box {
  background: transparent;
  border: 0; border-radius: 0;
  border-top: 1px solid rgba(31, 51, 60, .14);
  border-bottom: 1px solid rgba(31, 51, 60, .14);
  padding: 1.35rem 0 1.2rem;
  margin-top: 2.5rem;
}
.rj-hero .summary-box-title {
  font-size: .64rem; font-weight: 700; letter-spacing: .26em;
  color: var(--ink-3);
  margin-bottom: .9rem;
}
.rj-hero .summary-box ol {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.1rem;
  counter-reset: rjsum;
}
@media (min-width: 900px) { .rj-hero .summary-box ol { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.rj-hero .summary-box li { counter-increment: rjsum; font-size: var(--text-xs); color: var(--ink-2); line-height: 1.85; }
.rj-hero .summary-box li::before {
  content: counter(rjsum, decimal-leading-zero);
  display: block;
  font-size: .64rem; letter-spacing: .18em;
  color: rgba(71, 121, 141, .6);
  font-variant-numeric: tabular-nums;
  margin-bottom: .35rem;
}

/* --- 3ポイント帯: 装飾記号なしのヘアライン仕立て --- */
.three-point-banner {
  border-top: 1px solid rgba(31, 51, 60, .14);
  border-bottom: 1px solid rgba(31, 51, 60, .14);
  background: transparent;
}

/* --- タイポ光学設計 (2026-07-08): B1明朝×palt詰め・ヒーロー800 --- */
.sec-title { font-feature-settings: "palt"; letter-spacing: .025em; }
.rj-hero .sec-title { font-weight: 800; letter-spacing: .03em; }

/* --- リッチ化追補: 菱形マーク入りチップ・紙の層カード --- */
.rj-pill {
  display: inline-flex; align-items: center; gap: .55em;
  background: linear-gradient(180deg, #fff, #f4f8f9);
  border: 1px solid rgba(71, 121, 141, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 1px 2px rgba(31, 51, 60, .06);
}
.rj-pill::before {
  content: ""; width: 5px; height: 5px; flex-shrink: 0;
  background: var(--terra); transform: rotate(45deg); opacity: .7;
}
.rj-inc {
  background: linear-gradient(180deg, #fff, #f4f8f9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 0 0 1px rgba(31, 51, 60, .08);
}
.rj-card {
  background: linear-gradient(180deg, #fff, #fbfdfd);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 0 0 1px rgba(31, 51, 60, .07), 0 12px 30px -26px rgba(31, 51, 60, .35);
}
.rj-card-link:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 0 0 1px rgba(71, 121, 141, .26), 0 22px 44px -22px rgba(31, 51, 60, .32);
}
.rj-sync-card {
  background: linear-gradient(180deg, #fff, #fbfdfd);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 0 0 1px rgba(31, 51, 60, .07), 0 16px 32px -24px rgba(31, 51, 60, .38);
}

@media (prefers-reduced-motion: reduce) {
  .rj-status::before { animation: none; }
  .rj-fire .rj-beam::before { animation: none; }
  .rj-card, .rj-card-link:hover { transform: none; }
}
