/* =========================================================
   yagish 求人応募管理 LP メインビジュアル
   ・クラスはすべて yh- 接頭辞（既存CSSと衝突しないように）
   ・色は下の変数を管理画面の配色に合わせて差し替え可
   ========================================================= */
.yh-hero{
  /* イラストの配色から抽出 */
  --yh-primary:#23801F;     /* ボタン（葉の緑を文字が読める濃さに調整） */
  --yh-primary-deep:#224A3A;/* 見出し文字・ボタンの影（ヤギの線の色） */
  --yh-ink:#2A3A33;         /* 本文 */
  --yh-base:#F7FBF8;        /* 背景のベース */
  --yh-blob-a:#DDF3DC;      /* 大きな面（ミント） */
  --yh-blob-b:#F6F6CF;      /* 大きな面（吹き出しの黄色） */
  --yh-blob-c:#E3F0F7;      /* 大きな面（机の水色） */
  --yh-line:#5FB35A;        /* 波線の束 */
  --yh-dot:#A9D8A6;         /* ドット */
  --yh-accent:#F2D45C;      /* キラキラ・プラス記号（イラストの星と同じ黄色） */

  position:relative; overflow:hidden; isolation:isolate;
  background:var(--yh-base); color:var(--yh-ink);
  font-family:"Noto Sans JP","Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic",Meiryo,sans-serif;
  padding:48px 20px 0;
}
.yh-hero *{box-sizing:border-box}

/* ---------- 背景オブジェクト ---------- */
.yh-bg{position:absolute; inset:0; z-index:-1; pointer-events:none}
.yh-bg > *{position:absolute; display:block}
.yh-bg svg{overflow:visible}

.yh-blob-tl{left:-14%; top:-38%; width:34%; min-width:300px; animation:yh-drift-a 18s ease-in-out infinite alternate}
.yh-blob-br{right:-8%; bottom:-34%; width:46%; min-width:320px; animation:yh-drift-b 22s ease-in-out infinite alternate}
.yh-blob-mid{right:18%; top:-30%; width:42%; min-width:300px; opacity:.9; animation:yh-drift-b 26s ease-in-out infinite alternate-reverse}

.yh-waves-2{right:-6%; bottom:-14%; width:62%; animation:yh-sway 17s ease-in-out infinite alternate-reverse}
.yh-waves-2 path{fill:none; stroke:var(--yh-line); stroke-width:.7; vector-effect:non-scaling-stroke}
.yh-waves-2 path{stroke-opacity:.2}
/* 線の端を自然に消す */
.yh-waves-2{
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 18%,#000 62%,transparent 96%);
          mask-image:linear-gradient(90deg,transparent 0,#000 18%,#000 62%,transparent 96%)}

.yh-dots-col{left:2%; bottom:10%; width:30px; height:120px;
  background-image:radial-gradient(var(--yh-accent) 3px, transparent 3.5px); background-size:15px 15px}

.yh-plus{width:18px; height:18px; animation:yh-twinkle 5s ease-in-out infinite}
.yh-plus::before,.yh-plus::after{content:""; position:absolute; left:50%; top:50%; background:currentColor; border-radius:2px; transform:translate(-50%,-50%)}
.yh-plus::before{width:100%; height:4px} .yh-plus::after{width:4px; height:100%}
.yh-plus.p1{left:3%; top:24%; color:var(--yh-accent)}
.yh-plus.p2{left:47%; top:16%; color:var(--yh-accent); animation-delay:-1.5s; width:14px; height:14px}
.yh-plus.p3{right:5%; top:70%; color:#fff; animation-delay:-3s}
.yh-plus.p4{left:52%; top:84%; color:var(--yh-dot); animation-delay:-2s; width:14px; height:14px}

.yh-bubble{border-radius:50%; background:#fff; animation:yh-bob 7s ease-in-out infinite}
.yh-bubble.b1{right:3%; top:8%; width:56px; height:56px}
.yh-bubble.b2{left:46%; top:9%; width:16px; height:16px; animation-delay:-2s}
.yh-bubble.b3{left:2%; bottom:30%; width:24px; height:24px; background:var(--yh-blob-a); animation-delay:-4s}

/* ---------- レイアウト ---------- */
.yh-inner{
  max-width:1120px; margin:0 auto;
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:40px; align-items:end;
}
.yh-copy{align-self:center; padding-bottom:48px}

/* ---------- コピー ---------- */
.yh-lead{
  margin:0 0 10px; font-weight:700; font-size:clamp(18px,1.7vw,22px);
  letter-spacing:.04em; color:var(--yh-primary);
}
.yh-title{
  margin:0 0 16px; font-weight:900; font-size:clamp(30px,3.4vw,46px);
  line-height:1.28; letter-spacing:.02em; color:var(--yh-primary-deep);
}
.yh-title span{display:inline-block}
.yh-hero .yh-title{text-align:left}
.yh-sub{margin:0 0 18px; font-size:16px; line-height:1.8; max-width:30em}
.yh-points{list-style:none; margin:0 0 26px; padding:0; display:flex; flex-wrap:wrap; gap:10px 20px}
.yh-points li{display:flex; align-items:center; gap:6px; font-weight:700; font-size:14px; white-space:nowrap}
.yh-points svg{flex:none}
.yh-cta{display:inline-flex; flex-direction:column; align-items:center; gap:14px}
.yh-btn{
  display:inline-flex; align-items:center; gap:10px;
  background:var(--yh-primary); color:#fff; text-decoration:none;
  font-weight:700; font-size:18px; padding:18px 34px; border-radius:999px;
  box-shadow:0 6px 0 var(--yh-primary-deep);
  transition:transform .12s, box-shadow .12s;
}
.yh-btn:hover{transform:translateY(2px); box-shadow:0 4px 0 var(--yh-primary-deep)}
.yh-btn:active{transform:translateY(6px); box-shadow:0 0 0 var(--yh-primary-deep)}
.yh-btn small{font-size:12px; font-weight:700; background:#fff; color:var(--yh-primary); padding:3px 8px; border-radius:999px}
.yh-login{margin:0; font-size:14px; font-weight:400; color:var(--yh-ink)}
.yh-login a{color:var(--yh-primary-deep); font-weight:700; text-decoration:underline; text-underline-offset:3px; text-decoration-thickness:1.5px}
.yh-login a:hover{text-decoration-thickness:2.5px}
.yh-btn:focus-visible,.yh-login a:focus-visible{outline:3px solid var(--yh-primary-deep); outline-offset:4px}

/* ---------- イラスト ---------- */
.yh-visual{position:relative; width:100%; max-width:540px; justify-self:end}
.yh-illust-img{display:block; width:100%; height:auto; aspect-ratio:6/5}
/* イラストに重ねるキラキラ（イラスト内の星と同じ形・色） */
.yh-spark{position:absolute; width:4.5%; aspect-ratio:1; color:var(--yh-accent); animation:yh-spark 3.2s ease-in-out infinite}
.yh-spark svg{display:block; width:100%; height:100%}
.yh-spark.k1{left:93%; top:40%; width:3%; animation-delay:-.8s}
.yh-spark.k2{left:6%;  top:44%; width:3.2%; animation-delay:-1.9s}
.yh-spark.k3{left:47%; top:-1%; width:3.6%; animation-delay:-2.6s}
.yh-spark.k4{left:80%; top:14%; width:2.6%; animation-delay:-1.2s}

/* ---------- 読み込み時の登場（1回だけ） ---------- */
.yh-copy > *{animation:yh-in .7s cubic-bezier(.2,.7,.2,1) both}
.yh-copy > :nth-child(2){animation-delay:.08s}
.yh-copy > :nth-child(3){animation-delay:.16s}
.yh-copy > :nth-child(4){animation-delay:.24s}
.yh-copy > :nth-child(5){animation-delay:.32s}
.yh-visual{animation:yh-in-v .9s cubic-bezier(.2,.7,.2,1) .2s both; transform-origin:50% 100%}

/* ---------- keyframes ---------- */
@keyframes yh-in{from{opacity:0; transform:translateY(14px)} to{opacity:1; transform:none}}
@keyframes yh-in-v{from{opacity:0; transform:translateY(24px)} to{opacity:1; transform:none}}
@keyframes yh-drift-a{from{transform:translate(0,0) rotate(0)} to{transform:translate(3%,4%) rotate(6deg)}}
@keyframes yh-drift-b{from{transform:translate(0,0) rotate(0)} to{transform:translate(-3%,-3%) rotate(-5deg)}}
@keyframes yh-sway{from{transform:translate(0,0) rotate(0)} to{transform:translate(2%,1.5%) rotate(-2deg)}}
@keyframes yh-spark{0%,100%{transform:scale(.3) rotate(0); opacity:0} 45%,55%{transform:scale(1) rotate(20deg); opacity:1}}
@keyframes yh-bob{0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)}}
@keyframes yh-twinkle{0%,100%{transform:rotate(0) scale(1); opacity:1} 50%{transform:rotate(90deg) scale(.7); opacity:.6}}

/* ---------- レスポンシブ ---------- */
@media (max-width:1439px){ .yh-dots-col,.yh-plus.p1,.yh-bubble.b3{display:none} }

/* 中間幅（1024〜1239px）：2カラムのまま、コピーを少し詰める */
@media (max-width:1239px) and (min-width:1024px){
  .yh-inner{gap:24px}
  .yh-sub{font-size:15px}
}

/* 1023px以下：1カラムにして中央揃え（イラストは下に大きく） */
@media (max-width:1023px){
  .yh-hero{padding:40px 20px 0}
  .yh-inner{grid-template-columns:1fr; gap:24px; justify-items:center; text-align:center}
  .yh-copy{padding-bottom:0; max-width:640px; display:flex; flex-direction:column; align-items:center}
  .yh-hero .yh-title{text-align:center}
  .yh-sub{margin-left:auto; margin-right:auto}
  .yh-points{justify-content:center}
  .yh-visual{max-width:480px; margin:0 auto; justify-self:center}
  .yh-bubble.b2{display:none}
  .yh-waves-2{width:120%}
  .yh-plus.p2,.yh-blob-mid{display:none}
  .yh-plus.p1{left:auto; right:6%; top:2%}
  .yh-bubble.b3{display:none}
}

/* スマホ：ボタンを横幅いっぱいに */
@media (max-width:600px){
  .yh-hero{padding:36px 18px 0}
  .yh-cta{display:flex; width:100%}
  .yh-bubble.b1{display:none}
  .yh-btn{width:100%; justify-content:center; white-space:nowrap; font-size:16px; padding:16px 20px}
}

/* とても狭い画面では「1分」バッジを隠してボタン文字の折り返しを防ぐ */
@media (max-width:340px){
  .yh-btn small{display:none}
}

/* ---------- スクロール表示（LP全体） ---------- */
.yh-js .yh-reveal{
  opacity:0;
  transform:translateY(28px);
  transition:opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
  transition-delay:var(--yh-delay,0s);
}
.yh-js .yh-reveal.is-in{opacity:1; transform:none}

/* 動きを減らす設定の環境では静止表示 */
@media (prefers-reduced-motion:reduce){
  .yh-hero *,.yh-hero *::before,.yh-hero *::after{animation:none !important; transition:none !important}
  .yh-js .yh-reveal{opacity:1; transform:none; transition:none}
}
