.hero { position: relative; padding: 148px 0 100px; background: linear-gradient(180deg, var(--panel) 0%, var(--panel) 62%, var(--bg) 100%); overflow: hidden; }
.hero::before { content: ""; position: absolute; top: -18%; right: -10%; width: 62vw; max-width: 900px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgb(131 197 190 / .32), rgb(131 197 190 / 0)); }
.hero__inner { position: relative; display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding: 0 40px; }

.hero__copy { width: 50%; }
.hero__tag { display: inline-block; padding: 5px 18px; border-radius: 999px; background: var(--surface); color: var(--accent); font-size: 14px; font-weight: 700; letter-spacing: .14em; line-height: 1.8; }
.hero__title { margin-top: 26px; font-size: clamp(34px, 3.9vw, 52px); font-weight: 700; letter-spacing: .06em; line-height: 1.55; }
.hero__text { margin-top: 26px; font-size: 17px; line-height: 2; color: var(--ink-sub); }
.hero__btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.hero__visual { position: relative; width: 42%; max-width: 440px; margin-right: 2%; }
.hero__main { position: relative; aspect-ratio: 4 / 5.2; border-radius: 999px 999px 24px 24px; overflow: hidden; }
.hero__main img { object-position: 50% 30%; }
.hero__sub { position: absolute; left: -22%; bottom: 8%; width: 52%; aspect-ratio: 4 / 3; border: 6px solid var(--surface); border-radius: 20px; overflow: hidden; box-shadow: 0 16px 40px rgb(0 109 119 / .16); }
.hero__badge { position: absolute; top: 4%; right: -9%; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 132px; height: 132px; border-radius: 50%; background: var(--accent); color: var(--on-dark); font-size: 12px; font-weight: 700; letter-spacing: .06em; line-height: 1.4; text-align: center; }
.hero__badge b { font-family: var(--en); font-size: 30px; letter-spacing: .02em; line-height: 1.2; }

/* 開いたときの動き */
.js .hero__copy > * { opacity: 0; transform: translateY(24px); }
.js .hero__main { clip-path: inset(100% 0 0 0 round 999px 999px 24px 24px); }
.js .hero__main img { transform: scale(1.18); }
.js .hero__sub { opacity: 0; transform: translateY(30px); }
.js .hero__badge { opacity: 0; transform: scale(.6) rotate(-14deg); }
.is-ready .hero__copy > * { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }
.is-ready .hero__copy > :nth-child(2) { transition-delay: .12s; }
.is-ready .hero__copy > :nth-child(3) { transition-delay: .24s; }
.is-ready .hero__copy > :nth-child(4) { transition-delay: .36s; }
.is-ready .hero__main { clip-path: inset(0 0 0 0 round 999px 999px 24px 24px); transition: clip-path 1.3s var(--ease) .1s; }
.is-ready .hero__main img { transform: none; transition: transform 2.2s var(--ease) .1s; }
.is-ready .hero__sub { opacity: 1; transform: none; transition: opacity .9s var(--ease) .7s, transform .9s var(--ease) .7s; }
.is-ready .hero__badge { opacity: 1; transform: none; transition: opacity .6s var(--ease) 1s, transform .8s cubic-bezier(.34, 1.56, .64, 1) 1s; }
.is-capture .hero * { transition: none !important; }

@media (max-width: 1040px) {
  .hero { padding-top: 120px; }
  .hero__inner { padding: 0 24px; }
  .hero__copy { width: 52%; }
  .hero__btns { flex-direction: column; align-items: flex-start; }
  .hero__visual { width: 38%; margin-right: 5%; }
  .hero__badge { width: 112px; height: 112px; font-size: 11px; right: -12%; }
  .hero__badge b { font-size: 25px; }
}

@media (max-width: 767px) {
  .hero { padding: 104px 0 64px; }
  .hero::before { top: 22%; right: -40%; width: 130vw; }
  .hero__inner { display: block; }
  .hero__copy { width: auto; }
  .hero__tag { font-size: 13px; }
  .hero__title { margin-top: 18px; font-size: clamp(27px, 7.6vw, 34px); }
  .hero__text { margin-top: 16px; font-size: 16px; }
  .hero__btns { display: none; }
  .hero__visual { width: 74%; max-width: 340px; margin: 40px 6% 0 auto; }
  .hero__main { aspect-ratio: 4 / 4.9; }
  .hero__sub { left: -30%; bottom: 7%; width: 56%; border-width: 5px; border-radius: 16px; }
  .hero__badge { top: 5%; right: -8%; width: 104px; height: 104px; font-size: 10.5px; }
  .hero__badge b { font-size: 24px; }
}
