:root {
  --next-navy: #050f28;
  --next-ink: #eaf2ff;
  --next-muted: rgba(216, 230, 255, 0.75);
  --next-electric: #3f8cff;
  --next-cyan: #79ccff;
  --next-gold: #ffce5c;
  --next-line: rgba(120, 170, 255, 0.25);
}

html {
  scroll-behavior: smooth;
}

body.is-loading .next-hero,
body.is-loading .next-info-panel {
  opacity: 0;
  visibility: hidden;
}

.next-hero,
.next-info-panel {
  transition: opacity 360ms ease, visibility 360ms ease;
}

.legacy-header,
main > .hero:first-child {
  display: none;
}

.next-hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  isolation: isolate;
  color: var(--next-ink);
  background:
    url("../images/hero/hero-01-jissyu.jpg") center / contain no-repeat,
    var(--next-navy);
}

.next-hero hero-particle-carousel {
  z-index: 0;
}

.next-hero hero-particle-carousel .hpc-frame {
  object-fit: contain;
  object-position: center;
  filter: brightness(0.94) contrast(1.01) saturate(0.97);
  transition:
    opacity 1.2s cubic-bezier(.22, .61, .36, 1),
    filter 0.8s ease;
}

.next-hero::before,
.next-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.next-hero::before {
  background:
    linear-gradient(180deg, rgba(4, 10, 28, 0.68), transparent 20%),
    linear-gradient(90deg, rgba(4, 10, 28, 0.88), rgba(4, 10, 28, 0.25) 55%, transparent 78%),
    linear-gradient(0deg, rgba(4, 10, 28, 0.72), transparent 28%);
}

.next-hero::after {
  background:
    radial-gradient(90% 80% at 90% 18%, rgba(63, 140, 255, 0.16), transparent 58%),
    repeating-linear-gradient(0deg, rgba(120, 170, 255, 0.035) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
}

@media (min-width: 721px) {
  .next-hero::after {
    z-index: 2;
    background:
      linear-gradient(
        180deg,
        rgba(3, 10, 31, 0.17) 0%,
        rgba(3, 10, 31, 0.09) 45%,
        rgba(3, 10, 31, 0.2) 100%
      ),
      rgba(3, 10, 31, 0.055);
    mix-blend-mode: normal;
    transition: opacity 0.8s ease;
  }

  .next-hero.is-settled::after {
    opacity: 1;
  }
}

.next-hero.is-transitioning::before,
.next-hero.is-transitioning::after {
  opacity: 1;
}

.next-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(20px, 4vw, 56px);
  background: linear-gradient(180deg, rgba(5, 15, 40, 0.88), rgba(5, 15, 40, 0.42) 72%, transparent);
}

.next-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  color: var(--next-ink);
  text-decoration: none;
}

@media (min-width: 901px) {
  .next-hero .next-nav {
    display: flex;
  }

  .next-hero .next-header-cta {
    display: inline-flex;
  }
}

@media (max-width: 900px) {
  .next-hero .next-nav,
  .next-hero .next-header-cta {
    display: none;
  }
}

.next-brand strong,
.next-brand small {
  display: block;
}

.next-brand strong {
  font-size: 16px;
}

.next-brand small {
  margin-top: 2px;
  color: var(--next-muted);
  font: 600 10px/1.2 Arial, sans-serif;
  letter-spacing: 0.16em;
}

.next-bolt {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 11px;
  color: #08122e;
  font-size: 22px;
  background: linear-gradient(150deg, var(--next-cyan), var(--next-electric));
  box-shadow: 0 6px 18px rgba(63, 140, 255, 0.45);
}

.next-nav {
  display: flex;
  gap: clamp(15px, 2vw, 28px);
}

.next-nav a {
  color: rgba(232, 240, 255, 0.9);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.next-nav a:hover {
  color: #fff;
}

.next-header-cta {
  padding: 11px 20px;
  border-radius: 999px;
  color: #06122e;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  background: linear-gradient(140deg, #fff, #cfe6ff);
  box-shadow: 0 8px 22px rgba(8, 24, 60, 0.4);
}

.next-info-panel {
  position: relative;
  overflow: hidden;
  color: var(--next-ink);
  background:
    radial-gradient(70% 140% at 10% 25%, rgba(63, 140, 255, 0.18), transparent 70%),
    linear-gradient(135deg, #071630, #050f28 60%, #081d42);
}

.next-info-panel::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.3;
  background:
    linear-gradient(rgba(121, 204, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(121, 204, 255, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
}

.next-info-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(54px, 7vw, 92px) 0 34px;
}

.next-copy {
  position: relative;
  width: min(760px, 100%);
}

.next-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--next-cyan);
  font: 700 12px/1.4 Arial, sans-serif;
  letter-spacing: 0.2em;
}

.next-eyebrow::before {
  width: 26px;
  height: 1px;
  content: "";
  background: var(--next-cyan);
}

.next-logo-card {
  display: inline-block;
  margin-bottom: 20px;
  padding: 8px 13px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 36px rgba(4, 12, 34, 0.5);
}

.next-logo-card img {
  display: block;
  width: auto;
  height: 50px;
}

.next-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(40px, 6.5vw, 82px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-shadow: 0 10px 40px rgba(2, 8, 24, 0.7);
}

.next-copy h1 span {
  color: transparent;
  background: linear-gradient(120deg, var(--next-cyan), #fff 60%, var(--next-gold));
  background-clip: text;
  -webkit-background-clip: text;
}

.next-lead {
  max-width: 32em;
  margin: 24px 0 0;
  color: var(--next-muted);
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.85;
}

.next-actions {
  display: grid;
  grid-template-columns: max-content minmax(290px, 1fr) max-content;
  align-items: center;
  gap: 16px;
  width: min(100%, 760px);
  margin-top: 30px;
}

.hero-ai-image-note--top {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 8px 24px 10px;
  color: rgba(235, 245, 255, 0.58);
  font-size: 0.74rem;
  line-height: 1.6;
  text-align: center;
  background: #050a1f;
}

.next-primary {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 14px 27px;
  border-radius: 999px;
  color: #06122e;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  background: linear-gradient(135deg, var(--next-cyan), var(--next-electric));
  box-shadow: 0 12px 30px rgba(63, 140, 255, 0.5);
}

.next-video-link {
  position: relative;
  display: grid;
  min-height: 104px;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  overflow: hidden;
  padding: 12px 20px 12px 14px;
  border: 1px solid rgba(121, 204, 255, 0.8);
  border-radius: 18px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(115deg, rgba(5, 13, 36, 0.97), rgba(7, 29, 65, 0.9));
  box-shadow: 0 14px 34px rgba(3, 12, 31, 0.48), inset 0 0 28px rgba(63, 140, 255, 0.09);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.next-video-link::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 35%, rgba(136, 222, 255, 0.1) 50%, transparent 65%);
  content: "";
  opacity: 0.55;
  pointer-events: none;
  transform: translateX(-70%);
  transition: transform 0.55s ease;
}

.next-video-link:hover::after {
  transform: translateX(70%);
}

.denken-badge-mark {
  position: relative;
  z-index: 1;
  display: flex;
  width: 72px;
  height: 72px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 216, 121, 0.78);
  border-radius: 50%;
  color: #ffe19a;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 220, 132, 0.2), transparent 46%),
    linear-gradient(145deg, rgba(18, 43, 82, 0.96), rgba(3, 12, 32, 0.98));
  box-shadow: 0 0 0 4px rgba(121, 204, 255, 0.09), 0 0 22px rgba(67, 162, 255, 0.25);
}

.denken-badge-mark::before,
.denken-badge-mark::after {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 30px;
  border-top: 1px solid rgba(255, 216, 121, 0.65);
  border-bottom: 1px solid rgba(255, 216, 121, 0.65);
  content: "";
}

.denken-badge-mark::before {
  right: calc(100% + 3px);
  border-radius: 100% 0 0 100%;
  transform: translateY(-50%) rotate(-18deg);
}

.denken-badge-mark::after {
  left: calc(100% + 3px);
  border-radius: 0 100% 100% 0;
  transform: translateY(-50%) rotate(18deg);
}

.denken-crown {
  font-size: 20px;
  line-height: 1;
}

.denken-label {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.denken-badge-copy {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.next-video-link strong {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.next-video-link strong b {
  color: #ffd879;
  font-size: 19px;
  font-weight: 900;
}

.next-video-link strong em {
  color: rgba(241, 247, 255, 0.88);
  font-style: normal;
}

.next-video-link .denken-play {
  display: inline-flex;
  margin-top: 2px;
  align-items: center;
  border-bottom: 1px solid rgba(121, 204, 255, 0.48);
  color: #f3f8ff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.next-video-link .denken-badge-copy small {
  color: rgba(166, 218, 255, 0.78);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.next-video-link:hover {
  border-color: var(--next-cyan);
  background: linear-gradient(135deg, rgba(8, 26, 58, 0.96), rgba(13, 52, 100, 0.9));
  box-shadow: 0 14px 32px rgba(20, 87, 170, 0.26), inset 0 0 24px rgba(121, 204, 255, 0.09);
  transform: translateY(-2px);
}

.next-text-link {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--next-ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.next-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(42px, 6vw, 72px);
  padding-top: 28px;
  border-top: 1px solid var(--next-line);
}

.next-scenes {
  display: flex;
  gap: 10px;
}

.next-scene {
  min-width: 130px;
  padding: 10px 13px;
  border: 1px solid var(--next-line);
  border-radius: 12px;
  color: var(--next-ink);
  text-align: left;
  cursor: pointer;
  background: rgba(8, 20, 46, 0.55);
  backdrop-filter: blur(9px);
}

.next-scene span,
.next-scene strong,
.next-scene small {
  display: block;
}

.next-scene span {
  color: var(--next-cyan);
  font: 700 10px/1.2 Arial, sans-serif;
  letter-spacing: 0.14em;
}

.next-scene strong {
  margin-top: 2px;
  font: 700 13px/1.25 Arial, sans-serif;
  letter-spacing: 0.05em;
}

.next-scene small {
  margin-top: 2px;
  color: var(--next-muted);
  font-size: 10px;
}

.next-scene.is-active {
  border-color: rgba(127, 208, 255, 0.78);
  background: rgba(63, 140, 255, 0.28);
}

.next-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.next-counter {
  min-width: 66px;
  color: var(--next-muted);
  font: 600 12px/1 Arial, sans-serif;
  letter-spacing: 0.12em;
}

.next-counter b {
  color: #fff;
  font-size: 16px;
}

.next-round-button {
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--next-line);
  border-radius: 50%;
  color: #fff;
  font-size: 17px;
  cursor: pointer;
  background: rgba(8, 20, 46, 0.58);
  backdrop-filter: blur(8px);
}

.next-scroll-cue {
  display: block;
  width: max-content;
  margin: 28px auto 0;
  color: rgba(216, 230, 255, 0.62);
  font: 600 9px/1 Arial, sans-serif;
  letter-spacing: 0.25em;
  text-decoration: none;
}

@media (max-width: 1040px) {
  .next-scenes {
    max-width: 68vw;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .next-scenes::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 720px) {
  .next-hero {
    min-height: 700px;
  }

  .next-hero hero-particle-carousel .hpc-frame {
    filter: brightness(1.08) contrast(1.07) saturate(1.12);
  }

  .next-hero::before {
    background:
      linear-gradient(180deg, rgba(4, 10, 28, 0.72), transparent 22%),
      linear-gradient(0deg, rgba(4, 10, 28, 0.82), transparent 42%),
      radial-gradient(120% 80% at 50% 40%, rgba(4, 10, 28, 0.3), rgba(4, 10, 28, 0.75));
  }

  .next-header {
    padding: 15px 18px;
  }

  .next-copy {
    width: 100%;
    margin-top: 0;
    padding: 0;
    text-align: center;
  }

  .next-eyebrow,
  .next-actions {
    justify-content: center;
  }

  .next-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .next-primary,
  .next-video-link,
  .next-text-link {
    width: 100%;
  }

  .next-video-link {
    min-height: 152px;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 9px;
    padding: 15px 16px 14px;
    order: -1;
    text-align: center;
  }

  .denken-badge-mark {
    width: 62px;
    height: 62px;
  }

  .denken-badge-copy {
    align-items: center;
  }

  .next-video-link strong {
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 7px;
  }

  .next-video-link strong b {
    width: 100%;
    font-size: 18px;
  }

  .next-video-link .denken-play {
    justify-content: center;
    font-size: 14px;
  }

  .hero-ai-image-note--top {
    padding: 8px 18px 10px;
    font-size: 0.7rem;
    text-align: left;
  }

  .next-text-link {
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    padding: 13px 20px;
  }

  .next-logo-card img {
    height: 42px;
  }

  .next-bottom {
    flex-direction: column;
    align-items: stretch;
    padding: 24px 0 0;
  }

  .next-scenes {
    max-width: none;
  }

  .next-scene {
    min-width: 112px;
  }

  .next-controls {
    justify-content: flex-end;
  }

  .next-scroll-cue {
    margin-top: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
