/* =========================================================
   ヒーロー V5「シェイプ」(data-hero-mode="shape")
   黄色の地に、目玉のリング・長い影を落とす球・斜めに切り込む緑の面を置いた図形のヒーロー。
   2026-12-03 Fuji 指示 (参考写真の配色と図形の雰囲気を CSS だけで描き起こした。写真そのものは使っていない)。
   ⚠ 規則はすべて html[data-hero-mode="shape"] 配下。他の 4 バージョンには一切当たらない。
   ⚠ 画像も JS も使わない。動きは has-motion (reduced-motion でない) のときだけ。
   ========================================================= */

.hero-shape{display:none}

html[data-hero-mode="shape"] .hero{background:linear-gradient(118deg,#fff3a6 0%,#ffe04a 34%,#ffc61a 68%,#f5a300 100%)}
/* 以前・現行の視覚層 (スライドショー・オーブ等) は出さない */
html[data-hero-mode="shape"] .hero-legacy{display:none!important}
html[data-hero-mode="shape"] .hero-shape{display:block;position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden}

/* ---- 球と、その長い影 ---- */
.hs-ball{position:absolute;width:var(--s);height:var(--s)}
.hs-ball::before{content:'';position:absolute;left:50%;top:50%;width:100%;height:var(--len,420%);transform-origin:50% 0;transform:translateX(-50%) rotate(var(--rot,58deg));background:linear-gradient(to bottom,rgba(30,20,0,.82) 0%,rgba(30,20,0,.5) 45%,rgba(30,20,0,0) 100%)}
.hs-ball::after{content:'';position:absolute;inset:0;border-radius:50%;
  background:radial-gradient(circle at 68% 30%,#fffbd0 0%,#ffe94a 18%,#ffc400 42%,#8a5a00 76%,#2a1a00 100%);
  box-shadow:0 0 0 1px rgba(255,236,120,.6),0 0 26px rgba(255,214,0,.55)}
.hs-ball-1{--s:clamp(54px,6vw,96px);--len:300%;right:30%;top:11%}
.hs-ball-2{--s:clamp(70px,8vw,120px);--len:340%;right:36%;top:63%}
.hs-ball-3{--s:clamp(40px,4vw,64px);--len:400%;right:4%;top:24%}

/* ---- 目玉のリング ---- */
.hs-eye{position:absolute;right:4vw;top:52%;width:clamp(280px,35vw,520px);aspect-ratio:1;margin-top:calc(clamp(280px,35vw,520px) / -2 - 3vh);border-radius:50%;
  background:radial-gradient(circle at 34% 30%,#fff07a 0%,#ffcf1a 45%,#ff9f00 100%);
  box-shadow:inset -18px -22px 40px rgba(200,90,0,.35),26px 38px 70px rgba(90,45,0,.35)}
/* 縞と緑がかった差し色 (参考写真の放射状の縞) */
.hs-eye::before{content:'';position:absolute;inset:0;border-radius:50%;
  background:repeating-conic-gradient(from 0deg,rgba(255,120,0,.28) 0deg 1.6deg,rgba(255,255,255,0) 1.6deg 3.4deg),
             conic-gradient(from 200deg,rgba(150,225,60,0) 0deg,rgba(150,225,60,.55) 70deg,rgba(150,225,60,0) 150deg)}
.hs-pupil{position:absolute;left:30%;top:30%;width:40%;height:40%;border-radius:50%;background:radial-gradient(circle at 40% 40%,#2b2418,#0c0a06 70%);box-shadow:inset 0 0 0 3px rgba(0,0,0,.25)}
.hs-glint{position:absolute;right:14%;top:14%;width:20%;height:15%;border-radius:50%;transform:rotate(30deg);background:radial-gradient(ellipse at 40% 40%,#ffffff,#c9fbe6 60%,#7fe6c0)}

/* ---- 斜めに切り込む緑の面 (目玉の下半分を隠す) ---- */
.hs-plane{position:absolute;right:0;bottom:0;width:56%;height:64%;clip-path:polygon(100% 0,100% 100%,0 100%);
  background:linear-gradient(140deg,#4ff0b4 0%,#00c99f 45%,#11a866 100%)}
.hs-plane::after{content:'';position:absolute;inset:0;background:linear-gradient(140deg,rgba(255,255,255,.22),rgba(255,255,255,0) 40%)}

/* ---- 文字 (黄色の地で読めるよう濃い色に) ---- */
/* コピーと図形の間に余白を確保 */
html[data-hero-mode="shape"] .hero-content{width:52%;max-width:720px}
html[data-hero-mode="shape"] .hero h1{font-size:clamp(2rem,4vw,3.75rem);line-height:1.4;margin-bottom:24px;color:#1a1405}
html[data-hero-mode="shape"] .hero-cta-group{flex-wrap:wrap;gap:14px}
html[data-hero-mode="shape"] .hero-cta{padding:18px 28px;font-size:15px}
html[data-hero-mode="shape"] .hero h1 span.accent-text,
html[data-hero-mode="shape"] .hero h1 span.accent-text .char{color:#0a6b4c;-webkit-text-fill-color:#0a6b4c;background:none}
html[data-hero-mode="shape"] .hero-desc{color:#4a3a06}
html[data-hero-mode="shape"] .hero-cta-primary{background:#1a1405;color:#ffe04a;box-shadow:0 12px 34px rgba(60,40,0,.3)}
html[data-hero-mode="shape"] .hero-cta-primary:hover{box-shadow:0 22px 50px rgba(60,40,0,.4)}
html[data-hero-mode="shape"] .hero-cta-secondary{background:rgba(255,255,255,.4);color:#1a1405;border-color:#1a1405}
html[data-hero-mode="shape"] .scroll-indicator{color:#1a1405}
/* ロゴ: 黄色の地では明るい緑だと沈むので、スクロール前 (地が透けている間) だけ濃い緑に */
html[data-hero-mode="shape"] nav:not(.scrolled) .nav-logo{color:#0a6b4c}

/* ---- スマホ: 文字は上、図形は下にまとめる ---- */
@media(max-width:900px){
  html[data-hero-mode="shape"] .hero{min-height:max(760px,100svh);align-items:flex-start;padding:120px 20px 220px}
  html[data-hero-mode="shape"] .hero-content{width:100%;max-width:600px}
  html[data-hero-mode="shape"] .hero-cta-group{max-width:360px}
  .hs-eye{width:min(66vw,420px);right:-4vw;top:auto;bottom:17%;margin-top:0}
  .hs-plane{width:100%;height:38%}
  .hs-ball-1{right:68%;top:auto;bottom:32%}
  .hs-ball-2,.hs-ball-3{display:none}
  html[data-hero-mode="shape"] .hero h1{font-size:clamp(1.35rem,6.8vw,2.6rem);text-shadow:0 1px 0 rgba(255,240,170,.6)}
}
/* タブレット: 左下が空くので 2 つ目の球を戻す */
@media(min-width:601px) and (max-width:900px){
  .hs-ball-2{display:block;right:auto;left:7%;top:auto;bottom:50%}
}

/* ---- 動き (reduced-motion では付かない has-motion 配下だけ) ---- */
/* 登場の 2 つは読み込み画面が閉じてから (body.loading が外れてから) 始める。
   ⚠ 読み込み中に走らせると読み込み画面の裏で終わり、見る人には登場が見えない (2026-12-04 確認) */
html.has-motion body:not(.loading) .hs-plane{animation:hsPlaneIn 1.3s cubic-bezier(.16,1,.3,1) .2s both}
html.has-motion body:not(.loading) .hs-eye{animation:hsEyeIn 1.2s cubic-bezier(.16,1,.3,1) both}
html.has-motion .hs-eye::before{animation:hsSpin 90s linear infinite}
html.has-motion .hs-pupil{animation:hsLook 9s ease-in-out 1.4s infinite}
html.has-motion .hs-ball{animation:hsFloat 7s ease-in-out infinite}
html.has-motion .hs-ball-2{animation-duration:9s;animation-delay:-3s}
html.has-motion .hs-ball-3{animation-duration:8s;animation-delay:-5s}
@keyframes hsPlaneIn{from{clip-path:polygon(100% 100%,100% 100%,100% 100%)}to{clip-path:polygon(100% 0,100% 100%,0 100%)}}
@keyframes hsEyeIn{from{opacity:0;transform:scale(.82)}to{opacity:1;transform:none}}
@keyframes hsSpin{to{transform:rotate(360deg)}}
@keyframes hsLook{0%,18%,100%{transform:translate(0,0)}26%,44%{transform:translate(-8%,4%)}52%,70%{transform:translate(6%,-4%)}78%,90%{transform:translate(2%,6%)}}
@keyframes hsFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
