/* ============================================================
   利益構造DX — Hero variants (A: dashboard / B: photo / C: kinetic)
   Switch via <html data-hero="a|b|c">
   ============================================================ */
.hero{ display:none; }
[data-hero="a"] .hero--a,
[data-hero="b"] .hero--b,
[data-hero="c"] .hero--c{ display:block; }

.hero{ position:relative; isolation:isolate; overflow:hidden; }
.hero-inner{ position:relative; z-index:2; }

/* shared dark-hero text */
.hero .h-xl{ color:#fff; }
.hero .lead{ color:oklch(1 0 0 / .82); }
.hero__cta{ display:flex; flex-wrap:wrap; gap:14px; margin-top:36px; }
.hero__note{ margin-top:22px; display:flex; align-items:center; gap:10px; font-size:13.5px; color:oklch(1 0 0 / .62); }
.hero__note .dot{ width:8px; height:8px; border-radius:50%; background:var(--acc-bright); box-shadow:0 0 0 4px oklch(0.82 0.17 142 / .25); animation:pulse 2.4s var(--ease) infinite; }
@keyframes pulse{ 0%,100%{ box-shadow:0 0 0 3px oklch(0.82 0.17 142 / .28);} 50%{ box-shadow:0 0 0 8px oklch(0.82 0.17 142 / 0);} }

/* hero entrance is driven by the Web Animations API in app.js.
   Resting state = the visible end-state, so a paused/stuck clock never hides content. */

.hero__tag{
  display:inline-flex; align-items:center; gap:9px; margin-bottom:22px; white-space:nowrap;
  padding:7px 14px 7px 8px; border-radius:999px; font-size:13px; font-weight:600;
  background:oklch(1 0 0 / .08); border:1px solid oklch(1 0 0 / .16); color:#fff;
  backdrop-filter:blur(6px);
}
.hero__tag b{ background:var(--acc-bright); color:var(--acc-darker); padding:2px 8px; border-radius:999px; font-family:var(--font-display); font-size:11px; letter-spacing:.04em; }

/* ============ HERO A — dashboard live ============ */
.hero--a{
  background:
    radial-gradient(1100px 700px at 78% 8%, oklch(0.42 0.10 var(--acc-h) / .8), transparent 60%),
    radial-gradient(900px 600px at 8% 92%, oklch(0.40 0.09 calc(var(--acc-h) + 12) / .55), transparent 55%),
    linear-gradient(165deg, var(--acc-darker), oklch(0.18 0.03 162));
  color:#fff;
}
.hero--a .grid-bg{
  position:absolute; inset:0; z-index:1; pointer-events:none;
  background-image:linear-gradient(oklch(1 0 0 / .05) 1px, transparent 1px), linear-gradient(90deg, oklch(1 0 0 / .05) 1px, transparent 1px);
  background-size:46px 46px;
  mask-image:radial-gradient(120% 90% at 70% 30%, #000 30%, transparent 80%);
  -webkit-mask-image:radial-gradient(120% 90% at 70% 30%, #000 30%, transparent 80%);
}
.hero--a .glow{ position:absolute; width:380px; height:380px; border-radius:50%; filter:blur(80px); z-index:0; opacity:.45; }
.hero--a .glow.g1{ top:-120px; right:-140px; background:var(--acc); }
.hero--a .glow.g2{ bottom:-180px; left:-120px; background:oklch(0.55 0.13 calc(var(--acc-h)+18)); }
.hero-a-grid{
  display:grid; grid-template-columns:minmax(0,1fr) minmax(340px,440px); align-items:center; gap:48px;
  min-height:100svh; padding-block:120px 70px;
}
.hero-a-copy, .hero-a-visual{ min-width:0; }
.hero-a-grid .h-xl{ font-size:clamp(24px,3vw,37px); }
.hero-a-copy .lead{ max-width:440px; margin-top:22px; }

/* dashboard mock */
.dash{ position:relative; }
.dash__main{
  position:relative; z-index:2; border-radius:20px; padding:22px 22px 18px;
  background:linear-gradient(170deg, oklch(0.30 0.05 var(--acc-h) / .92), oklch(0.22 0.04 var(--acc-h) / .92));
  border:1px solid oklch(1 0 0 / .16);
  box-shadow:0 40px 90px oklch(0.1 0.03 162 / .5), 0 1px 0 oklch(1 0 0 / .2) inset;
}
.dash__bar{ display:flex; align-items:center; gap:8px; margin-bottom:18px; }
.dash__dots{ display:flex; gap:6px; }
.dash__dots i{ width:10px; height:10px; border-radius:50%; background:oklch(1 0 0 / .25); }
.dash__title{ margin-left:6px; font-family:var(--font-display); font-size:12.5px; letter-spacing:.04em; color:oklch(1 0 0 / .72); }
.dash__live{ margin-left:auto; display:flex; align-items:center; gap:6px; font-size:11px; font-family:var(--font-display); letter-spacing:.1em; color:var(--acc-bright); }
.dash__live i{ width:7px; height:7px; border-radius:50%; background:var(--acc-bright); animation:pulse 2s infinite; }
.dash__chart{ position:relative; height:188px; border-radius:14px; background:oklch(0.16 0.03 162 / .5); border:1px solid oklch(1 0 0 / .08); overflow:hidden; padding:12px; }
.dash__chart .yl{ position:absolute; left:0; right:0; height:1px; background:oklch(1 0 0 / .06); }
.dash__chart svg{ position:relative; z-index:2; width:100%; height:100%; overflow:visible; }
.dash__chartlabel{ position:absolute; top:12px; left:14px; font-size:11px; color:oklch(1 0 0 / .55); }
.dash__chartlabel b{ display:block; font-family:var(--font-display); font-size:21px; color:#fff; font-weight:600; }
.spark-line{ fill:none; stroke:var(--acc-bright); stroke-width:3; stroke-linecap:round; stroke-linejoin:round;
  filter:drop-shadow(0 4px 10px oklch(0.82 0.17 142 / .4)); }
.spark-area{ fill:url(#sparkfill); opacity:1; }
.spark-dot{ fill:#fff; stroke:var(--acc-bright); stroke-width:3; opacity:1; }
@keyframes fadeIn{ to{ opacity:1; } }
.dash__kpis{ display:grid; grid-template-columns:1fr 1fr 1fr; gap:10px; margin-top:14px; }
.dash__kpi{ background:oklch(1 0 0 / .06); border:1px solid oklch(1 0 0 / .1); border-radius:12px; padding:12px 13px; }
.dash__kpi .k{ font-size:10.5px; color:oklch(1 0 0 / .6); letter-spacing:.04em; }
.dash__kpi .v{ font-family:var(--font-display); font-weight:700; font-size:23px; color:#fff; line-height:1.1; margin-top:4px; display:flex; align-items:baseline; gap:3px; }
.dash__kpi .v small{ font-size:12px; color:var(--acc-bright); font-weight:600; }
.dash__kpi .up{ color:var(--acc-bright); }

/* floating chips */
.chip-float{
  position:absolute; z-index:3; display:flex; align-items:center; gap:11px; white-space:nowrap;
  padding:11px 15px; border-radius:14px; background:oklch(0.99 0.005 150 / .96);
  color:var(--ink); box-shadow:var(--shadow-lg); border:1px solid oklch(1 0 0 / .6);
  animation:bob 5s ease-in-out infinite;
}
.chip-float .ic{ width:34px; height:34px; border-radius:10px; display:grid; place-items:center; background:var(--acc-tint); color:var(--acc-deep); flex:none; }
.chip-float .ic svg{ width:18px; height:18px; }
.chip-float > span:not(.ic){ display:flex; flex-direction:column; min-width:0; }
.chip-float .t{ font-size:11px; color:var(--ink-faint); line-height:1.2; }
.chip-float .n{ font-family:var(--font-display); font-weight:700; font-size:17px; line-height:1.1; }
.chip-float.c1{ top:-5%; right:-5%; animation-delay:.2s; }
.chip-float.c2{ bottom:-13%; left:2%; animation-delay:1.2s; }
@keyframes bob{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-12px); } }
@media (prefers-reduced-motion: reduce){ .chip-float{ animation:none; } .dash__live i,.hero__note .dot{ animation:none; } }

/* ============ HERO B — photo overlay ============ */
.hero--b{ background:var(--acc-darker); color:#fff; }
.hero-b-stage{ position:relative; min-height:100svh; display:grid; }
.hero--b .photo{ position:absolute; inset:0; z-index:0; }
.hero--b .photo .ph{ width:100%; height:100%; border-radius:0; place-items:end; padding:26px;
  background:repeating-linear-gradient(135deg, oklch(0.34 0.04 162) 0 16px, oklch(0.31 0.035 162) 16px 32px); }
.hero--b .photo .ph__lbl{ background:oklch(0.2 0.03 162 / .7); color:oklch(1 0 0 / .82); }
.hero--b .scrim{ position:absolute; inset:0; z-index:1;
  background:
   linear-gradient(95deg, oklch(0.18 0.03 162 / .94) 0%, oklch(0.20 0.04 162 / .8) 38%, oklch(0.25 0.05 162 / .35) 70%, transparent 100%),
   linear-gradient(0deg, oklch(0.16 0.03 162 / .75), transparent 45%); }
.hero-b-grid{ position:relative; z-index:2; display:flex; flex-direction:column; justify-content:center; min-height:100svh; padding-block:120px 80px; }
.hero-b-copy{ max-width:660px; }
.hero--b .h-xl{ font-size:clamp(38px,5.6vw,68px); }
.hero-b-copy .lead{ max-width:480px; }
.hero-b-chips{ display:flex; flex-wrap:wrap; gap:14px; margin-top:40px; }
.stat-chip{
  display:flex; align-items:center; gap:13px; padding:14px 20px 14px 14px; border-radius:16px;
  background:oklch(1 0 0 / .1); border:1px solid oklch(1 0 0 / .2); backdrop-filter:blur(10px);
}
.stat-chip .ic{ width:42px; height:42px; border-radius:11px; display:grid; place-items:center; background:var(--acc-bright); color:var(--acc-darker); flex:none; }
.stat-chip .ic svg{ width:22px; height:22px; }
.stat-chip > span:not(.ic){ display:flex; flex-direction:column; min-width:0; }
.stat-chip .v, .stat-chip .l{ white-space:nowrap; }
.stat-chip .v{ font-family:var(--font-display); font-weight:700; font-size:26px; line-height:1; color:#fff; }
.stat-chip .l{ font-size:12px; color:oklch(1 0 0 / .72); margin-top:3px; }
.scroll-cue{ position:absolute; left:50%; bottom:26px; transform:translateX(-50%); z-index:3; display:flex; flex-direction:column; align-items:center; gap:8px; color:oklch(1 0 0 / .6); font-size:11px; letter-spacing:.18em; font-family:var(--font-display); }
.scroll-cue .mouse{ width:24px; height:38px; border:2px solid oklch(1 0 0 / .4); border-radius:14px; position:relative; }
.scroll-cue .mouse::after{ content:""; position:absolute; left:50%; top:7px; width:4px; height:7px; border-radius:3px; background:#fff; transform:translateX(-50%); animation:scrolly 1.8s var(--ease) infinite; }
@keyframes scrolly{ 0%{ opacity:0; transform:translate(-50%,0);} 30%{opacity:1;} 70%{opacity:1;} 100%{ opacity:0; transform:translate(-50%,12px);} }

/* ============ HERO C — kinetic type ============ */
.hero--c{ background:
   radial-gradient(900px 520px at 88% -6%, var(--acc-tint), transparent 60%),
   radial-gradient(700px 500px at -6% 108%, var(--acc-tint-2), transparent 55%),
   var(--bg);
  color:var(--ink); overflow:hidden; }
.hero--c .h-xl{ color:var(--ink); }
.hero--c .lead{ color:var(--ink-soft); }
.hero-c-grid{ min-height:100svh; display:grid; grid-template-columns:minmax(0,1.3fr) minmax(300px,420px); align-items:center; gap:40px; padding-block:130px 80px; }
.hero-c-copy .hero__tag{ background:var(--card); border:1px solid var(--line); color:var(--ink); box-shadow:var(--shadow-sm); }
.hero-c-copy .hero__tag b{ color:#fff; background:var(--acc); }
.hero-c-display{ font-size:clamp(42px,7.2vw,92px); line-height:1.04; font-weight:700; letter-spacing:-.02em; margin:0; }
.hero-c-display .row{ display:block; overflow:hidden; }
.hero-c-display .row > span{ display:inline-block; }
@keyframes rise{ to{ opacity:1; transform:none; } }
.hl{ position:relative; color:var(--acc-deep); white-space:nowrap; }
.hl::after{ content:""; position:absolute; left:-.04em; right:-.04em; bottom:.08em; height:.42em; background:var(--acc-bright); opacity:.45; z-index:-1; border-radius:4px; transform:scaleX(1); transform-origin:left; }
@keyframes sweep{ to{ transform:scaleX(1); } }
.hero--c .lead{ max-width:520px; margin-top:26px; }
@media (prefers-reduced-motion: reduce){
  .scroll-cue .mouse::after{ animation:none; }
}

/* hero C visual — rising bars panel */
.hero-c-visual{ position:relative; }
.bars-card{
  background:var(--card); border:1px solid var(--line); border-radius:22px; padding:24px;
  box-shadow:var(--shadow-lg);
}
.bars-card__head{ display:flex; align-items:baseline; justify-content:space-between; margin-bottom:4px; }
.bars-card__head .lbl{ font-size:12px; color:var(--ink-faint); letter-spacing:.04em; }
.bars-card__head .big{ font-family:var(--font-display); font-weight:700; font-size:34px; color:var(--acc-deep); line-height:1; white-space:nowrap; }
.bars-card__head .big small{ font-size:14px; }
.bars-wrap{ display:flex; align-items:flex-end; gap:12px; height:180px; margin-top:18px; padding-top:8px; border-bottom:1px solid var(--line); }
.bar{ flex:1; border-radius:8px 8px 0 0; background:linear-gradient(180deg, var(--acc), var(--acc-deep)); height:0; position:relative; min-width:0; }
.bar.muted{ background:var(--line); }
.bar span{ position:absolute; top:-22px; left:50%; transform:translateX(-50%); font-family:var(--font-display); font-size:12px; font-weight:600; color:var(--ink-soft); white-space:nowrap; }
.bars-x{ display:flex; gap:12px; margin-top:10px; }
.bars-x span{ flex:1; text-align:center; font-size:11px; color:var(--ink-faint); }
.bars-tag{ position:absolute; bottom:26px; left:-16px; white-space:nowrap; background:var(--acc-darker); color:#fff; padding:10px 15px; border-radius:14px; box-shadow:var(--shadow-lg); display:flex; align-items:center; gap:9px; animation:bob 5s ease-in-out infinite; }
.bars-tag .n{ font-family:var(--font-display); font-weight:700; font-size:18px; color:var(--acc-bright); }
.bars-tag .t{ font-size:10.5px; color:oklch(1 0 0 / .7); line-height:1.2; }

/* responsive heroes */
@media (max-width: 940px){
  .hero-a-grid{ grid-template-columns:1fr; gap:46px; min-height:auto; padding-block:120px 60px; }
  .dash{ max-width:520px; }
  .hero-c-grid{ grid-template-columns:1fr; gap:40px; min-height:auto; padding-block:120px 64px; }
  .hero-c-visual{ max-width:460px; }
  .chip-float.c2{ left:0; }
  .chip-float.c1{ right:0; }
}
@media (max-width: 560px){
  .dash__kpis{ grid-template-columns:1fr 1fr; }
  .dash__kpi:last-child{ display:none; }
  .chip-float{ display:none; }
  .hero-b-chips .stat-chip{ padding:11px 15px 11px 11px; }
  /* バッジがはみ出さないよう、スマホでは折り返す */
  .hero__tag{ white-space:normal; align-items:flex-start; border-radius:16px; font-size:12px; line-height:1.55; padding:8px 13px; }
  .hero__tag b{ flex-shrink:0; }
}
