/**
 * Hero — 濃いブルー背景 × 3行タイピング + イラスト
 */

.hero{padding-top:0;background:#05101f;}
.hero-bg{display:none;}

.hero--typing,
.hero--laptop{
  position:relative;overflow:hidden;min-height:100svh;
  display:flex;flex-direction:column;justify-content:center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%,rgba(37,99,235,.3),transparent 70%),
    radial-gradient(circle at 15% 85%,rgba(29,78,216,.18),transparent 50%),
    linear-gradient(180deg,#040d1a 0%,#0a1a33 50%,#0c1f3d 100%);
}

.hero-typing{
  flex:1;display:flex;align-items:center;justify-content:center;
  padding:clamp(88px,12vh,120px) clamp(20px,5vw,48px) clamp(32px,6vh,64px);
}

/* PC — 左テキスト / 右イラスト */
.hero-typing__inner{
  display:grid;grid-template-columns:0.92fr 1.08fr;
  gap:clamp(16px,3vw,40px);
  width:min(1200px,96vw);
  align-items:center;
}

.hero-typing__panel{
  text-align:left;
  min-width:0;
  grid-column:1;
  grid-row:1;
}

.hero-typing__copy{width:100%;min-width:0;}

.hero-typing__intro{display:none;}

.hero-typing__tag{
  display:inline-flex;align-items:center;gap:8px;
  margin:0 0 14px;
  font-size:clamp(11px,1.3vw,13px);font-weight:600;letter-spacing:.1em;
  color:#93c5fd;text-transform:uppercase;
  opacity:0;transform:translateY(8px);
  transition:opacity .5s ease,transform .5s ease;
}
.hero-typing__tag::before{
  content:"";width:7px;height:7px;border-radius:50%;background:#60a5fa;
  box-shadow:0 0 8px rgba(96,165,250,.8);
}
.hero--typing.is-title-done .hero-typing__tag,
.hero--laptop.is-title-done .hero-typing__tag{
  opacity:1;transform:none;
}

.hero-typing__title{
  font-family:var(--ff-ja);font-weight:700;line-height:1.35;
  font-size:clamp(32px,4.2vw,56px);
  color:#f8fafc;margin:0;
  min-height:4.05em;
  text-align:left;
}

.hero-typing__line-wrap{
  display:block;min-height:1.35em;
}
.hero-typing__line{display:inline;}

.hero-typing__visual{
  grid-column:2;grid-row:1;
  opacity:0;visibility:hidden;
  transform:translateX(20px) scale(.94);
  transition:opacity .9s ease,transform .9s cubic-bezier(.22,1,.36,1),visibility .9s ease;
  margin-right:clamp(-12px,-1.5vw,-4px);
  pointer-events:none;
}
.hero--typing.is-typing-done .hero-typing__visual,
.hero--laptop.is-typing-done .hero-typing__visual{
  opacity:1;visibility:visible;
  transform:scale(1.06);
  pointer-events:auto;
}
.hero-typing__visual img{
  display:block;width:100%;height:auto;max-width:none;
  filter:drop-shadow(0 24px 56px rgba(0,0,0,.4));
}

.hero-typing__lead{
  font-size:clamp(14px,1.55vw,17px);line-height:1.85;color:#b8c5d6;
  margin:18px 0 0;max-width:36em;
  min-height:5.5em;
  opacity:0;
  transition:opacity .4s ease;
  text-align:left;
}

.hero--typing.is-title-done .hero-typing__lead,
.hero--laptop.is-title-done .hero-typing__lead{
  opacity:1;
}

.hero-typing__cursor{
  display:inline-block;width:4px;height:1.1em;
  background:#60a5fa;margin-left:3px;vertical-align:text-bottom;
  box-shadow:0 0 12px rgba(96,165,250,.9);
  animation:hero-cursor-blink .6s step-end infinite;
}
.hero-typing__cursor--sub{
  width:3px;height:1em;background:#7dd3fc;
}
.hero-typing__cursor.is-hidden{display:none;}

@keyframes hero-cursor-blink{
  0%,100%{opacity:1}
  50%{opacity:0}
}

.hero-typing__scroll-wrap{
  text-align:center;padding-bottom:clamp(28px,4vw,40px);
  opacity:0;transform:translateY(12px);
  transition:opacity .7s ease,transform .7s ease;
  pointer-events:none;
}
.hero--typing.is-scroll-visible .hero-typing__scroll-wrap,
.hero--laptop.is-scroll-visible .hero-typing__scroll-wrap{
  opacity:1;transform:none;pointer-events:auto;
}

.hero-typing__scroll{
  display:inline-flex;flex-direction:column;align-items:center;gap:12px;
  padding:8px 16px 4px;
  font-family:var(--ff-en,Inter,sans-serif);font-size:11px;font-weight:600;
  letter-spacing:.28em;color:rgba(147,197,253,.85);
  text-decoration:none;
  transition:color .25s ease;
}
.hero-typing__scroll:hover{color:#fff;}

.hero-typing__scroll-label{display:block;line-height:1;}

.hero-typing__scroll-line{
  display:block;width:1px;height:56px;
  background:rgba(147,197,253,.25);
  position:relative;overflow:hidden;
}
.hero-typing__scroll-line::after{
  content:"";position:absolute;left:0;top:-100%;width:100%;height:100%;
  background:linear-gradient(180deg,transparent,#60a5fa,#93c5fd);
  animation:hero-typing-scroll-line 2s cubic-bezier(.4,0,.2,1) infinite;
}
.hero-typing__scroll.is-hidden{opacity:0;pointer-events:none;}

@keyframes hero-typing-scroll-line{
  0%{top:-100%;}
  55%,100%{top:100%;}
}

@media(prefers-reduced-motion:reduce){
  .hero-typing__scroll-line::after{
    animation:none;top:50%;height:10px;margin-top:-5px;background:#60a5fa;
  }
}

/* スマホ — 大見出し → 画像 → 小さいテキスト */
@media(max-width:900px){
  .hero--typing,.hero--laptop{
    min-height:auto;
    justify-content:flex-start;
  }
  .hero-typing{
    padding:clamp(58px,14vw,68px) clamp(14px,3.5vw,20px) clamp(16px,4vw,24px);
  }
  .hero-typing__inner{
    display:flex;flex-direction:column;align-items:center;
    gap:clamp(10px,3vw,14px);
    width:100%;
    text-align:center;
  }
  .hero-typing__panel{
    display:contents;
    text-align:center;
  }
  .hero-typing__copy{order:1;width:100%;}
  .hero-typing__visual{
    order:2;
    grid-column:auto;grid-row:auto;
    width:100%;max-width:min(340px,82vw);
    margin-right:0;
    transform:none;
  }
  .hero--typing.is-typing-done .hero-typing__visual,
  .hero--laptop.is-typing-done .hero-typing__visual{
    transform:none;
  }
  .hero-typing__visual img{
    filter:drop-shadow(0 16px 40px rgba(0,0,0,.35));
  }
  .hero-typing__tag{order:1;justify-content:center;margin:0 0 8px;}
  .hero-typing__title{
    font-size:clamp(20px,5.8vw,28px);
    line-height:1.4;
    min-height:2.8em;
    text-align:center;
  }
  .hero-typing__line-wrap{min-height:1.2em;}
  .hero-typing__lead{
    order:3;
    font-size:13px;
    line-height:1.75;
    min-height:auto;
    margin:0;
    padding:0 2px;
    text-align:center;
    max-width:100%;
  }
  .hero-typing__intro{display:none;}
  .hero-typing__scroll-wrap{
    padding-bottom:calc(12px + env(safe-area-inset-bottom));
  }
}
