/* =====================================================================
   受託者向けLP A案ブラッシュアップ（A-1 / A-2 共通）2026-10-24
   - FV: 「何のサービスか」を2秒で伝える。左にカテゴリ・見出し・根拠、右に依頼掲示板の場面
   - 作り込みの体験: 場所名の札・奥行き（視差）・スクロールでの登場・光の粒
   ===================================================================== */

/* ---------- FV ---------- */
.hero { position: relative; min-height: min(100svh, 980px); padding: 112px 0 0; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: -40px; z-index: -3; translate: calc(var(--mx, 0) * -10px) calc(var(--my, 0) * -8px); }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(14,16,21,.96) 0%, rgba(14,16,21,.86) 34%, rgba(14,16,21,.35) 64%, rgba(14,16,21,.55) 100%),
    linear-gradient(180deg, rgba(14,16,21,.2) 60%, var(--bg) 98%);
}
/* 光の粒 */
.hero-dust { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background-image:
    radial-gradient(2px 2px at 12% 30%, #ffd37e, transparent 60%), radial-gradient(1.5px 1.5px at 72% 18%, #ffe6b0, transparent 60%),
    radial-gradient(2px 2px at 58% 64%, #ffd37e, transparent 60%), radial-gradient(1.5px 1.5px at 86% 52%, #fff2d0, transparent 60%),
    radial-gradient(1.5px 1.5px at 34% 78%, #ffd37e, transparent 60%), radial-gradient(2px 2px at 92% 82%, #ffe6b0, transparent 60%);
  animation: dust 14s linear infinite alternate; }
@keyframes dust { to { transform: translateY(-36px); opacity: .9; } }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(20px, 3vw, 48px); align-items: center; }
.hero-cat { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: clamp(13px, 1.2vw, 15px); font-weight: 700; color: var(--gold-2); letter-spacing: .06em; }
.hero-cat::before { content: ""; width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); }
.hero h1 { font-family: var(--serif); font-weight: 900; font-size: clamp(30px, 3.4vw, 52px); line-height: 1.4; margin: 0; letter-spacing: .02em; text-wrap: balance; text-shadow: 0 3px 0 rgba(0,0,0,.5); }
.hero h1 em { font-style: normal; color: var(--gold-2); background: linear-gradient(transparent 72%, rgba(221,147,0,.45) 72%); }
.hero-lead { margin: 20px 0 26px; font-size: clamp(15px, 1.4vw, 17px); color: var(--ink-2); max-width: 32em; }
.hero-lead b { color: var(--ink); }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; max-width: 560px; }
.hero-facts li { border: 1px solid var(--gold-line); background: rgba(10,12,16,.6); border-radius: 10px; padding: 10px 12px; font-size: 12px; line-height: 1.55; color: var(--ink-2); }
.hero-facts b { display: block; font-family: var(--num); font-size: clamp(18px, 1.8vw, 24px); color: var(--gold-2); line-height: 1.25; }
.hero-facts b small { font-family: var(--sans); font-size: .55em; margin-left: 2px; }
.hero-movie { display: inline-block; margin-top: 18px; }

/* 右: 掲示板の場面 */
.hero-stage { position: relative; aspect-ratio: 1 / .86; }
.hero-stage > * { translate: calc(var(--mx, 0) * var(--d, 0) * 1px) calc(var(--my, 0) * var(--d, 0) * 1px); }
.hs-board { position: absolute; left: 6%; top: 10%; width: 88%; z-index: 1; transform: rotate(1.5deg); --d: 6; }
.hs-board::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,16,21,.15), rgba(14,16,21,.55)); }
.hs-chara { position: absolute; z-index: 2; right: -9%; bottom: 0; width: 40%; height: auto; --d: 12;
  filter: drop-shadow(0 18px 24px rgba(0,0,0,.65)); -webkit-mask-image: linear-gradient(180deg,#000 80%,transparent); mask-image: linear-gradient(180deg,#000 80%,transparent); pointer-events: none; }
.hs-card { position: absolute; z-index: 4; left: 18%; top: 22%; width: 36%; transform: rotate(-4deg); --d: 18; }
.hs-sub { position: absolute; z-index: 3; left: -4%; bottom: 2%; width: 46%; transform: rotate(-2deg); --d: 14; }
.hs-tag { position: absolute; z-index: 5; --d: 22;
  background: var(--gold); color: #1a1206; font-weight: 900; font-size: clamp(12px, 1.05vw, 14px); line-height: 1.45;
  padding: 8px 12px; border-radius: 6px; box-shadow: 0 8px 20px rgba(0,0,0,.55); white-space: nowrap; }
.hs-tag small { display: block; font-weight: 700; font-size: .82em; opacity: .8; }
.hs-tag.paper { background: var(--paper); color: var(--paper-ink); }
.hs-tag.t1 { left: 50%; top: 8%; transform: rotate(3deg); }
.hs-tag.t2 { left: 44%; bottom: 14%; transform: rotate(-2deg); }
/* ランク→案件をつなぐ札（A-1） */
.hs-rank { position: absolute; z-index: 5; left: -2%; top: 4%; --d: 24; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px;
  background: linear-gradient(180deg, #2b2418, #14110b); border: 1px solid var(--gold); border-radius: 10px; padding: 8px 14px 8px 8px; box-shadow: 0 10px 26px rgba(0,0,0,.6); transform: rotate(-3deg); }
.hs-rank b { width: 46px; height: 46px; display: grid; place-items: center; font-family: var(--num); font-size: 30px; color: #1a1206; background: radial-gradient(circle at 40% 35%, #ffe3a3, var(--gold)); border-radius: 8px; }
.hs-rank span { font-size: 12px; line-height: 1.45; color: var(--ink-2); }
.hs-rank span strong { display: block; color: var(--gold-2); font-size: 14px; }
.hs-line { position: absolute; z-index: 4; left: 7%; top: 15%; width: 22%; height: 18%; pointer-events: none; --d: 21; }
.hs-line path { stroke: var(--gold); stroke-width: 2.5; fill: none; stroke-dasharray: 6 6; animation: march 1.2s linear infinite; }
@keyframes march { to { stroke-dashoffset: -24; } }
.hero-place { position: absolute; right: clamp(16px, 3vw, 40px); top: 84px; z-index: 2; margin: 0; font-size: 12px; letter-spacing: .12em; color: #f3e6c6; text-shadow: 0 1px 8px #000; }
.hero .reel { margin: 56px -6vw 0; opacity: .85; }

/* 登場演出（初回表示） */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes pop { from { opacity: 0; scale: .92; } }
.hero-copy > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; } .hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; } .hero-copy > :nth-child(5) { animation-delay: .32s; } .hero-copy > :nth-child(6) { animation-delay: .4s; }
.hero-stage > * { animation: pop .9s cubic-bezier(.2,.7,.2,1) both; }
.hero-stage > :nth-child(2) { animation-delay: .15s; } .hero-stage > :nth-child(3) { animation-delay: .3s; }
.hero-stage > :nth-child(4) { animation-delay: .45s; } .hero-stage > :nth-child(5) { animation-delay: .6s; }
.hero-stage > :nth-child(6) { animation-delay: .75s; } .hero-stage > :nth-child(7) { animation-delay: .9s; }

/* ---------- 場所の札（各帯の冒頭に、いまどこにいるかを示す） ---------- */
.place-tag { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--gold-2); }
.place-tag::before { content: "✦"; color: var(--gold); }
.place-tag::after { content: ""; width: 40px; height: 1px; background: var(--gold-line); }
.band.paper .place-tag { color: var(--red); }
.band.paper .place-tag::before { color: var(--red); }

/* ---------- スクロールで登場（JSが有効なときだけ隠す） ---------- */
.js .rv { opacity: 0; translate: 0 28px; transition: opacity .8s ease, translate .8s cubic-bezier(.2,.7,.2,1); }
.js .rv.in { opacity: 1; translate: 0 0; }

/* ---------- ヘッダーの依頼者向け導線 ---------- */
.hd-nav .client { color: var(--gold-2); }

/* ---------- レスポンシブ ---------- */
@media (max-width: 900px) {
  .hero { padding-top: 92px; }
  .hero::before { background: linear-gradient(180deg, rgba(14,16,21,.92) 0%, rgba(14,16,21,.8) 48%, rgba(14,16,21,.5) 70%, var(--bg) 100%); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { margin: 18px 6% 0 4%; }
}
@media (max-width: 640px) {
  .hero-facts { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .hero-facts li { padding: 8px; font-size: 11px; }
  .hero-stage { margin: 10px 2% 0 0; aspect-ratio: 1 / .92; }
  .hs-card { width: 42%; left: 14%; }
  .hs-sub { width: 52%; }
  .hs-chara { width: 44%; right: -6%; }
  .hs-tag { font-size: 11px; padding: 6px 9px; }
  .hs-rank { padding: 6px 10px 6px 6px; gap: 8px; }
  .hs-rank b { width: 36px; height: 36px; font-size: 22px; }
  .hs-rank span { font-size: 10px; } .hs-rank span strong { font-size: 12px; }
  .hero-place { display: none; }
  .hero .reel { margin-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-dust, .hs-line path { animation: none; }
  .hero-copy > *, .hero-stage > * { animation: none; }
  .js .rv { opacity: 1; translate: none; transition: none; }
}
