html:not([data-hero-layout="previous"]) .mirror-home-page .header {
  position: absolute;
  top: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

html:not([data-hero-layout="previous"]) .mirror-home-page .header__logoText,
html:not([data-hero-layout="previous"]) .mirror-home-page .header__menuItemLink,
html:not([data-hero-layout="previous"]) .mirror-home-page .header__menuWrapperLeftLink {
  color: #fff;
  text-shadow: 0 2px 12px rgba(5, 26, 112, 0.28);
}

html:not([data-hero-layout="previous"]) .mirror-home-page .header__logoIcon {
  filter: brightness(1.16) drop-shadow(0 0 8px rgba(255, 255, 255, 0.58));
}

html:not([data-hero-layout="previous"]) .mirror-home-page .header__menuItemLink:hover {
  color: #cce9ff;
}

html:not([data-hero-layout="previous"]) .mirror-home-page .header__hamburgerButton {
  background: transparent;
}

html:not([data-hero-layout="previous"]) .mirror-home-page .header__hamburgerLine {
  background: #fff;
}

.code-hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  color: #fff;
  font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  background: #1e45dc;
}

.mv__codexHeroComposite.mv__codexHeroComposite--legacy {
  display: none;
}

.code-hero__stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  height: calc(min(40.311vw, 674px) + 80px);
  min-height: 490px;
  background: linear-gradient(118deg, #1688f5 0%, #1763e8 28%, #2444df 58%, #3320bd 78%, #39169b 100%);
}

.code-hero__canvas {
  position: absolute;
  bottom: 0;
  left: 0;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  height: min(40.311vw, 674px);
  min-height: 410px;
}

.code-hero__background-layer {
  position: absolute;
  z-index: -3;
  inset: 0;
  display: block;
  pointer-events: none;
  background:
    radial-gradient(circle at 51% 37.2%, #ff3c57 0 2.8%, transparent 2.95%),
    radial-gradient(circle at 98% 51%, rgba(177, 135, 255, 0.86) 0 14%, transparent 14.2%),
    radial-gradient(circle at 3% 25%, rgba(18, 30, 125, 0.88) 0 8.5%, transparent 8.7%),
    radial-gradient(circle at 28% 112%, rgba(22, 122, 251, 0.66) 0 34%, transparent 34.2%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 34px, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 34px, #000 100%);
}

.code-hero__stage::before,
.code-hero__canvas::after {
  position: absolute;
  z-index: -2;
  content: "";
  pointer-events: none;
}

.code-hero__stage::before {
  top: -64%;
  left: -24%;
  width: 83%;
  aspect-ratio: 1;
  border: clamp(80px, 9.5vw, 160px) solid rgba(86, 174, 255, 0.35);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(137, 210, 255, 0.23);
}

.code-hero__canvas::after {
  right: -18%;
  bottom: -64%;
  width: 67%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(103, 83, 226, 0.18) 0 42%, transparent 42.3% 50%, rgba(103, 149, 255, 0.16) 50.3% 62%, transparent 62.3%);
}

.code-hero__orbit {
  position: absolute;
  z-index: -1;
  display: block;
  border: 2px solid rgba(74, 162, 255, 0.42);
  border-radius: 50%;
  pointer-events: none;
}

.code-hero__orbit--left {
  top: -77%;
  left: -8%;
  width: 69%;
  aspect-ratio: 1;
  transform: rotate(-16deg);
}

.code-hero__orbit--top {
  top: -49%;
  right: 3%;
  width: 58%;
  aspect-ratio: 1;
  border-color: rgba(80, 180, 255, 0.55);
}

.code-hero__orb {
  position: absolute;
  z-index: 0;
  display: block;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
}

.code-hero__orb--red {
  left: 45.6%;
  bottom: 28.3%;
  width: clamp(12px, 1.25vw, 21px);
  background: #ff505d;
  box-shadow: 0 0 18px rgba(255, 58, 85, 0.25);
}

.code-hero__orb--blue {
  top: 23%;
  left: 55.2%;
  width: clamp(45px, 4vw, 68px);
  background: linear-gradient(135deg, #65b4ff, #7182ff);
}

.code-hero__orb--lavender {
  top: 8.5%;
  left: 68.8%;
  width: clamp(22px, 2vw, 34px);
  background: linear-gradient(135deg, #7aa7ff, #7654e8);
}

.code-hero__orb--white {
  top: 15.2%;
  right: 13.3%;
  width: clamp(10px, 0.9vw, 15px);
  background: rgba(255, 255, 255, 0.95);
}

.code-hero__copy {
  position: absolute;
  z-index: 4;
  top: 10.35%;
  left: 5.8%;
  width: 48.5%;
  text-shadow: 0 2px 18px rgba(1, 24, 125, 0.22);
}

.code-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: clamp(38px, 3.2vw, 54px);
  margin: 0;
  padding: 0 clamp(18px, 1.9vw, 32px);
  border: 2px solid rgba(148, 221, 255, 0.84);
  border-radius: 999px;
  color: #fff;
  font-size: clamp(16px, 1.45vw, 24px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.015em;
  background: linear-gradient(90deg, rgba(40, 122, 247, 0.62), rgba(113, 125, 255, 0.5));
  box-shadow: inset 0 0 22px rgba(125, 199, 255, 0.18), 0 8px 24px rgba(11, 42, 148, 0.14);
  backdrop-filter: blur(5px);
}

.code-hero__title {
  margin: clamp(14px, 1.2vw, 20px) 0 0;
  color: #fff;
  font-family: Arial, "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: clamp(62px, 7.35vw, 126px);
  font-weight: 800;
  line-height: 0.87;
  letter-spacing: -0.065em;
  text-shadow: 0 4px 22px rgba(0, 28, 136, 0.2);
}

.code-hero__title span,
.code-hero__title strong {
  display: block;
}

.code-hero__title span {
  margin-bottom: 0.13em;
  font-size: 0.66em;
  letter-spacing: 0.02em;
}

.code-hero__title strong {
  font: inherit;
  white-space: nowrap;
}

.code-hero__tagline {
  margin: clamp(13px, 1.25vw, 21px) 0 0;
  color: #fff;
  font-size: clamp(23px, 2.25vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.015em;
}

.code-hero__lead {
  margin: clamp(8px, 0.55vw, 10px) 0 0;
  color: rgba(255, 255, 255, 0.98);
  font-size: clamp(14px, 1.25vw, 21px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.03em;
}

.code-hero__results {
  display: flex;
  min-height: clamp(100px, 8.65vw, 145px);
  align-items: center;
  gap: clamp(15px, 1.55vw, 26px);
  margin-top: clamp(17px, 1.5vw, 25px);
}

.code-hero__subsidy {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  gap: clamp(5px, 0.45vw, 8px);
  margin: 0;
  padding-bottom: 9px;
  color: #fff;
  line-height: 1.12;
  white-space: nowrap;
}

.code-hero__subsidy > span:first-child {
  padding-bottom: 0.28em;
  font-size: clamp(15px, 1.2vw, 20px);
  font-weight: 700;
}

.code-hero__subsidy strong {
  position: relative;
  color: #ff334e;
  font-family: Arial, sans-serif;
  font-size: clamp(64px, 6vw, 101px);
  font-weight: 800;
  line-height: 0.76;
  letter-spacing: -0.065em;
  text-shadow: 0 5px 18px rgba(25, 39, 142, 0.18);
}

.code-hero__subsidy strong::before,
.code-hero__subsidy strong::after {
  position: absolute;
  content: "";
  border-radius: 2px;
  background: #ff334e;
}

.code-hero__subsidy strong::before {
  top: -0.18em;
  right: 0;
  width: 0.08em;
  height: 0.34em;
  transform: rotate(22deg);
}

.code-hero__subsidy strong::after {
  top: 0.03em;
  right: -0.32em;
  width: 0.24em;
  height: 0.08em;
  transform: rotate(-24deg);
}

.code-hero__subsidy small {
  margin-left: 0.05em;
  font-size: 0.54em;
  font-weight: inherit;
}

.code-hero__subsidy-suffix {
  padding-bottom: 0.2em;
  font-size: clamp(15px, 1.2vw, 20px);
  font-weight: 700;
}

.code-hero__visual {
  position: absolute;
  z-index: 2;
  top: 2%;
  right: -2.8%;
  width: 57%;
  height: 98%;
  pointer-events: none;
}

.code-hero__reference-art-mask {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 34px, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 34px, #000 100%);
}

.code-hero__reference-art {
  position: absolute;
  top: -12.463%;
  left: 0;
  display: block;
  width: 100%;
  height: 139.615%;
  object-fit: fill;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0 45%, rgba(0, 0, 0, 0.18) 47%, #000 52% 100%);
  mask-image: linear-gradient(90deg, transparent 0 45%, rgba(0, 0, 0, 0.18) 47%, #000 52% 100%);
}

.code-hero__halo {
  position: absolute;
  z-index: -1;
  top: 7%;
  left: 12%;
  width: 82%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58, 100, 236, 0.46) 0 46%, rgba(110, 63, 205, 0.42) 46.3% 60%, transparent 60.3%);
}

.code-hero__art-wrap {
  position: absolute;
  z-index: 2;
  inset: 2% 0 0 0;
}

.code-hero__art-wrap::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
  opacity: 0.44;
  background: linear-gradient(135deg, #387cff 10%, #324de4 48%, #7d4be8 88%);
  mix-blend-mode: color;
  -webkit-mask: url("/assets/hero-dashboard-transparent-20260908.png") center / contain no-repeat;
  mask: url("/assets/hero-dashboard-transparent-20260908.png") center / contain no-repeat;
}

.code-hero__art {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 22px 20px rgba(7, 16, 95, 0.2));
}

.code-hero__bubble {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: Arial, sans-serif;
  font-weight: 700;
  box-shadow: 0 12px 25px rgba(11, 23, 113, 0.18);
}

.code-hero__bubble::after {
  position: absolute;
  bottom: -14%;
  left: 16%;
  width: 28%;
  height: 30%;
  content: "";
  clip-path: polygon(0 0, 100% 0, 26% 100%);
  background: inherit;
}

.code-hero__bubble--code {
  top: 12%;
  left: 48%;
  width: clamp(64px, 6vw, 100px);
  aspect-ratio: 1.24;
  border-radius: 13%;
  font-size: clamp(25px, 2.3vw, 39px);
  background: linear-gradient(145deg, #ff4359, #f42d57);
  transform: rotate(7deg);
}

.code-hero__bubble--idea {
  top: 22%;
  left: 16%;
  width: clamp(52px, 4.8vw, 80px);
  aspect-ratio: 0.88;
  border-radius: 28%;
  background: linear-gradient(145deg, #63b9ff, #616bfc);
  transform: rotate(-2deg);
}

.code-hero__bubble--idea svg {
  width: 64%;
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.code-hero__bubble--message {
  right: 25%;
  bottom: 18%;
  width: clamp(63px, 5.4vw, 91px);
  aspect-ratio: 1.32;
  border-radius: 13%;
  font-size: clamp(24px, 2.3vw, 38px);
  letter-spacing: 0.08em;
  background: linear-gradient(145deg, #ff465b, #e92f67);
  transform: rotate(3deg);
}

.code-hero__scribble {
  position: absolute;
  z-index: 3;
  top: 8%;
  right: 5%;
  color: rgba(255, 255, 255, 0.92);
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: clamp(24px, 2.25vw, 38px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.03em;
  text-align: center;
  white-space: nowrap;
  transform: rotate(-7deg);
}

.code-hero__scribble::after {
  display: block;
  width: 112%;
  height: 1px;
  margin-top: 2px;
  content: "";
  background: currentColor;
  transform: rotate(-8deg);
}

.code-hero__logos {
  position: relative;
  z-index: 2;
  display: flex;
  overflow: hidden;
  width: 100%;
  height: min(5.8vw, 97px);
  align-items: center;
  justify-content: flex-start;
  background: #fff;
}

.code-hero__logo-track {
  display: flex;
  flex: 0 0 200%;
  height: 100%;
}

.code-hero__logo-group {
  position: relative;
  overflow: hidden;
  flex: 0 0 50%;
  min-width: 0;
  height: 100%;
}

.code-hero__logos .code-hero__reference-logo-strip {
  position: absolute;
  top: -780.412%;
  left: 0;
  display: block;
  width: 100%;
  height: 970.103%;
  max-width: none;
  object-fit: fill;
}

.code-hero__scroll {
  position: relative;
  z-index: 1;
  display: flex;
  height: clamp(52px, 5.2vw, 87px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  background:
    radial-gradient(ellipse at 37% 190%, rgba(37, 131, 255, 0.55) 0 48%, transparent 48.4%),
    radial-gradient(ellipse at 95% 160%, rgba(106, 84, 241, 0.55) 0 38%, transparent 38.4%),
    linear-gradient(110deg, #1764e7, #153cd0 56%, #321bb0);
}

.code-hero__scroll span {
  width: 14px;
  height: 14px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.code-hero__scroll small {
  font-family: Montserrat, Arial, sans-serif;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.22em;
}

@media (max-width: 1320px) and (min-width: 768px) {
  .code-hero__copy {
    top: 8.2%;
    left: 4.8%;
    width: 54%;
  }

  .code-hero__title {
    font-size: clamp(58px, 7vw, 92px);
  }

  .code-hero__tagline {
    font-size: clamp(22px, 2.1vw, 28px);
  }

  .code-hero__lead {
    font-size: clamp(13px, 1.2vw, 16px);
  }

  .code-hero__results {
    min-height: clamp(86px, 8.1vw, 107px);
    gap: 11px;
  }

  .code-hero__subsidy strong {
    font-size: clamp(58px, 5.4vw, 72px);
  }

  .code-hero__visual {
    right: -6%;
    width: 59%;
  }

  .code-hero__scribble {
    display: none;
  }
}

@media (min-width: 900px) {
  .code-hero__visual {
    display: none;
  }
}

@media (max-width: 899px) {
  .code-hero__reference-art-mask {
    display: none;
  }
}

@media (min-width: 768px) {
  html[data-hero-layout="previous"] .code-hero {
    display: none;
  }

  html[data-hero-layout="previous"] .mv__codexHeroComposite.mv__codexHeroComposite--legacy {
    display: block;
  }
}

@media (max-width: 767px) {
  .code-hero,
  .mv__codexHeroComposite.mv__codexHeroComposite--legacy {
    display: none !important;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .code-hero__logo-track {
    animation: code-hero-logo-scroll 48s linear infinite;
    will-change: transform;
  }

  .code-hero__orb--red,
  .code-hero__orb--lavender {
    animation: code-hero-float 5s ease-in-out infinite alternate;
  }

  .code-hero__orb--lavender {
    animation-delay: -2.5s;
  }

  .code-hero__bubble--code {
    animation: code-hero-float-code 4.6s ease-in-out infinite alternate;
  }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .code-hero__logos:hover .code-hero__logo-track {
    animation-play-state: paused;
  }
}

@keyframes code-hero-logo-scroll {
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes code-hero-float {
  to {
    transform: translateY(-12px);
  }
}

@keyframes code-hero-float-code {
  to {
    transform: translateY(-10px) rotate(7deg);
  }
}
