:root {
  --ink: #0b111c;
  --ink-2: #172033;
  --muted: #657084;
  --line: #dde4ee;
  --paper: #f8fafc;
  --white: #ffffff;
  --orange: #f7a000;
  --amber: #ffd166;
  --cyan: #00aebd;
  --magenta: #e83b78;
  --green: #2aa86f;
  --radius: 8px;
  --shadow: 0 28px 80px rgba(13, 21, 35, 0.12);
  --wide: min(1640px, calc(100% - 64px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Inter", "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 48%, #ffffff 100%);
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.grecaptcha-badge {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: auto;
  padding: 14px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  transition: background 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: var(--wide);
  min-height: 72px;
  margin: 0 auto;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.brand-wordmark {
  width: clamp(144px, 10vw, 182px);
  height: auto;
  max-height: 38px;
  object-fit: contain;
  flex: 0 1 auto;
}

.footer-brand .brand-wordmark {
  width: clamp(154px, 12vw, 196px);
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.global-nav a {
  padding: 14px 18px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.global-nav a:hover {
  color: var(--ink);
  background: transparent;
}

.global-nav .nav-contact {
  color: var(--white);
  background: var(--ink);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(11, 17, 28, 0.18);
}

.global-nav .nav-contact:hover {
  color: var(--white);
  background: var(--ink-2);
}

.menu-toggle {
  display: none;
  position: relative;
  z-index: 32;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(221, 228, 238, 0.92);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.86);
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 11px;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: var(--ink);
  transition: top 0.22s ease, opacity 0.22s ease, transform 0.22s ease;
}

.menu-toggle span:nth-child(1) {
  top: 13px;
}

.menu-toggle span:nth-child(2) {
  top: 20px;
}

.menu-toggle span:nth-child(3) {
  top: 27px;
}

.nav-open .menu-toggle span:nth-child(1) {
  top: 20px;
  transform: rotate(45deg);
}

.nav-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .menu-toggle span:nth-child(3) {
  top: 20px;
  transform: rotate(-45deg);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(min(560px, 45vw), 0.95fr);
  align-items: center;
  gap: clamp(48px, 6vw, 112px);
  min-height: 100svh;
  width: var(--wide);
  margin: 0 auto;
  padding: 118px 0 86px;
}

.hero-copy {
  min-width: 0;
  container-type: inline-size;
}

.hero-copy > .eyebrow,
.hero-lead,
.hero-actions,
.hero-tags span {
  opacity: 0;
  transform: translateY(18px);
  animation: heroItemEnter 0.78s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-copy > .eyebrow {
  animation-delay: 0.12s;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--magenta);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(46px, 4.7vw, 88px);
  font-size: clamp(46px, min(4.7vw, 13cqi), 88px);
  line-height: 1.05;
  font-weight: 950;
}

.hero h1 span,
.section h2 span,
.contact-band h2 span {
  display: block;
}

.hero h1 span {
  position: relative;
  width: fit-content;
  max-width: min(100%, calc(100vw - 32px));
  overflow: visible;
  padding-right: 0.32em;
  color: transparent;
  white-space: nowrap;
}

.hero h1 span::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
}

.hero h1.is-visible span {
  animation: headlineText 0.92s steps(1, end) both;
  animation-delay: 0.36s;
}

.hero h1.is-visible span::before {
  animation: headlineBlock 0.92s cubic-bezier(0.76, 0, 0.24, 1) both;
  animation-delay: 0.36s;
}

.hero h1 span:nth-child(2) {
  animation-delay: 0.48s;
}

.hero h1 span:nth-child(2)::before {
  animation-delay: 0.48s;
}

.hero h1 span:nth-child(3) {
  animation-delay: 0.6s;
}

.hero h1 span:nth-child(3)::before {
  animation-delay: 0.6s;
}

.hero-lead {
  max-width: 680px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 650;
  line-height: 2;
  animation-delay: 1.08s;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  animation-delay: 1.22s;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button i {
  position: relative;
  width: 20px;
  height: 1px;
  background: currentColor;
}

.button i::after {
  content: "";
  position: absolute;
  right: 0;
  top: -4px;
  width: 8px;
  height: 8px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 16px 42px rgba(11, 17, 28, 0.2);
}

.button.light {
  color: var(--ink);
  border-color: var(--white);
  background: var(--white);
}

.hero-tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 720px;
  margin-top: 26px;
}

.hero-tags span {
  min-width: 0;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid rgba(221, 228, 238, 0.9);
  border-left: 3px solid var(--orange);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink-2);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.5;
  box-shadow: 0 10px 34px rgba(13, 21, 35, 0.06);
}

.hero-tags span:nth-child(1) {
  animation-delay: 1.34s;
}

.hero-tags span:nth-child(2) {
  animation-delay: 1.42s;
}

.hero-tags span:nth-child(3) {
  animation-delay: 1.5s;
}

.hero-tags span:nth-child(4) {
  animation-delay: 1.58s;
}

.hero-visual {
  position: relative;
  min-height: 760px;
}

.future-stage {
  position: relative;
  width: min(780px, 100%);
  height: min(780px, calc(100vw - 64px));
  min-height: 680px;
  margin-left: auto;
}

.infinity-logo-scene {
  position: absolute;
  inset: 0;
  isolation: isolate;
}

.infinity-logo {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 48%;
  width: min(580px, 62vw);
  aspect-ratio: 1;
  border-radius: 0;
  overflow: hidden;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  animation: heroLogoEnter 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
}

.infinity-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(105deg, transparent 34%, rgba(255, 255, 255, 0.74) 48%, transparent 62%);
  mask: url("../img/logo-transparent.png") center / contain no-repeat;
  -webkit-mask: url("../img/logo-transparent.png") center / contain no-repeat;
  transform: translateX(-140%) skewX(-8deg);
  animation: logoLightSweep 1.25s cubic-bezier(0.76, 0, 0.24, 1) 1.04s both;
  pointer-events: none;
}

.infinity-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  image-rendering: auto;
  user-select: none;
  transform: translateZ(0);
}

.section {
  width: var(--wide);
  margin: 0 auto;
  padding: 104px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
  margin-bottom: 42px;
}

.section-heading .eyebrow {
  margin-top: 12px;
}

.section h2,
.contact-band h2 {
  margin: 0;
  font-size: clamp(40px, 3.45vw, 58px);
  line-height: 1.18;
  font-weight: 950;
}

.section h2 span {
  position: relative;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  color: transparent;
}

.section h2 span::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
}

.section h2.is-visible span {
  animation: headlineText 0.92s steps(1, end) both;
}

.section h2.is-visible span::before {
  animation: headlineBlock 0.92s cubic-bezier(0.76, 0, 0.24, 1) both;
}

.section h2 span:nth-child(2) {
  animation-delay: 0.12s;
}

.section h2 span:nth-child(2)::before {
  animation-delay: 0.12s;
}

.contact-band h2 span {
  position: relative;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  color: transparent;
}

.contact-band h2 span::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left center;
}

.contact-band h2.is-visible span {
  animation: contactHeadlineText 0.92s steps(1, end) both;
}

.contact-band h2.is-visible span::before {
  animation: headlineBlock 0.92s cubic-bezier(0.76, 0, 0.24, 1) both;
}

.contact-band h2 span:nth-child(2) {
  animation-delay: 0.12s;
}

.contact-band h2 span:nth-child(2)::before {
  animation-delay: 0.12s;
}

.market-grid,
.service-grid,
.target-grid,
.engine-flow {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
  box-shadow: var(--shadow);
}

.market-grid,
.target-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.market-grid article,
.service-grid article,
.target-grid article,
.engine-flow article {
  min-width: 0;
  padding: 40px;
  background: rgba(255, 255, 255, 0.94);
}

.market-grid span,
.service-grid span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--magenta);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.market-grid strong {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--orange);
  font-size: clamp(56px, 5vw, 86px);
  line-height: 0.95;
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 600;
}

.market-grid article:nth-child(2) strong {
  gap: 4px;
  font-size: clamp(52px, 4.6vw, 80px);
}

.market-grid small {
  padding-bottom: 8px;
  font-size: 22px;
}

.market-grid strong b,
.market-grid strong em,
.market-grid strong i {
  font-style: normal;
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 600;
}

.market-trillion b {
  font-size: 1em;
}

.market-trillion i {
  padding-bottom: 8px;
  font-size: 0.54em;
}

.market-trillion em {
  font-size: 1em;
}

.market-grid p,
.service-grid p,
.target-grid p,
.about-copy p,
.contact-band p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.9;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(440px, 0.92fr);
  gap: 56px;
  align-items: stretch;
}

.about-copy,
.about-panel {
  min-width: 0;
  padding: clamp(36px, 4vw, 68px);
  border: 1px solid rgba(221, 228, 238, 0.88);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 64px rgba(13, 21, 35, 0.08);
}

.about-copy h2 {
  max-width: 760px;
  margin-bottom: 24px;
}

.about-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, rgba(11, 17, 28, 0.98), rgba(23, 32, 51, 0.96)), var(--ink);
}

.about-panel > span {
  margin-bottom: 28px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.about-panel ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-panel li {
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
  line-height: 1.7;
}

.about-panel li::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  margin: 10px 0 0 -20px;
  border-radius: 50%;
  background: var(--orange);
}

.service-grid h3,
.target-grid h3,
.engine-flow h3 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.45;
  font-weight: 950;
}

.engine-flow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.engine-flow article {
  position: relative;
  min-height: 210px;
  padding: 38px 34px;
}

.engine-flow article::after {
  content: "";
  position: absolute;
  right: -18px;
  top: 50%;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  transform: translateY(-50%) rotate(45deg);
}

.engine-flow article:last-child::after {
  display: none;
}

.engine-flow span {
  display: inline-flex;
  min-height: 36px;
  margin-bottom: 42px;
  color: var(--orange);
  font-size: 36px;
  line-height: 1;
  font-weight: 950;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  width: var(--wide);
  margin: 48px auto 0;
  padding: clamp(42px, 6vw, 74px);
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(115deg, rgba(11, 17, 28, 0.98), rgba(20, 70, 76, 0.92)), var(--ink);
  box-shadow: 0 32px 90px rgba(13, 21, 35, 0.18);
}

.contact-band .eyebrow {
  color: var(--amber);
}

.contact-band h2 {
  max-width: 780px;
  margin-bottom: 18px;
}

.contact-band p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.76);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 28px;
  width: var(--wide);
  margin: 42px auto 0;
  padding: 30px 0 42px;
  color: var(--muted);
}

.footer-brand {
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  font-weight: 800;
}

.footer-links a:hover {
  color: var(--ink);
}

.site-footer small {
  font-size: 12px;
  font-weight: 700;
}

@keyframes heroLogoEnter {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes logoLightSweep {
  0% {
    opacity: 0;
    transform: translateX(-140%) skewX(-8deg);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(140%) skewX(-8deg);
  }
}

@keyframes heroItemEnter {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes headlineBlock {
  0% {
    transform: scaleX(0);
    transform-origin: left center;
  }
  46% {
    transform: scaleX(1);
    transform-origin: left center;
  }
  47% {
    transform: scaleX(1);
    transform-origin: right center;
  }
  100% {
    transform: scaleX(0);
    transform-origin: right center;
  }
}

@keyframes headlineText {
  0%,
  45% {
    color: transparent;
  }
  46%,
  100% {
    color: var(--ink);
  }
}

@keyframes contactHeadlineText {
  0%,
  45% {
    color: transparent;
  }
  46%,
  100% {
    color: var(--white);
  }
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 132px;
  }

  .hero h1 {
    font-size: clamp(46px, 9vw, 72px);
  }

  .hero-visual {
    order: -1;
    min-height: 560px;
  }

  .future-stage {
    width: min(640px, 100%);
    height: min(640px, calc(100vw - 40px));
    min-height: 520px;
    margin: 0 auto;
  }

  .infinity-logo {
    width: min(430px, 68vw);
  }

  .section-heading,
  .about-section {
    grid-template-columns: 1fr;
  }

  .market-grid,
  .service-grid,
  .target-grid,
  .engine-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .engine-flow article:nth-of-type(2)::after {
    display: none;
  }

  .contact-band,
  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: auto;
    padding: 10px 0;
  }

  .header-inner {
    width: min(100% - 24px, 1180px);
    min-height: 68px;
  }

  .menu-toggle {
    display: block;
  }

  .global-nav {
    position: fixed;
    top: 76px;
    left: 12px;
    right: 12px;
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 56px rgba(13, 21, 35, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  .nav-open .global-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .global-nav a {
    padding: 14px;
    font-size: 14px;
  }

  .brand {
    gap: 11px;
  }

  .brand .brand-mark {
    width: 50px;
    height: 50px;
  }

  .brand .brand-wordmark {
    width: min(42vw, 172px);
    max-height: 36px;
  }

  .hero {
    width: min(100% - 24px, 1180px);
    padding: 106px 0 64px;
  }

  .hero h1 {
    font-size: clamp(41px, 11vw, 59px);
  }

  .hero-lead {
    font-size: 15px;
    line-height: 1.9;
  }

  .hero-tags,
  .market-grid,
  .service-grid,
  .target-grid,
  .engine-flow {
    grid-template-columns: 1fr;
  }

  .hero-tags {
    max-width: none;
  }

  .hero-tags span {
    padding: 14px 16px;
    font-size: 15px;
  }

  .hero-visual {
    min-height: 380px;
  }

  .future-stage {
    min-height: 360px;
    height: 360px;
  }

  .infinity-logo {
    width: min(290px, 70vw);
  }

  .section,
  .contact-band,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .section {
    padding: 76px 0;
  }

  .section-heading {
    gap: 14px;
    margin-bottom: 28px;
  }

  .section h2,
  .contact-band h2 {
    font-size: clamp(31px, 8.2vw, 35px);
  }

  .contact-band {
    padding: 34px 28px;
  }

  .contact-band h2 {
    font-size: clamp(31px, 8.2vw, 35px);
  }

  .market-grid article,
  .service-grid article,
  .target-grid article,
  .engine-flow article,
  .about-copy,
  .about-panel {
    padding: 26px;
  }

  .engine-flow article::after {
    display: none;
  }

  .engine-flow span {
    margin-bottom: 24px;
    font-size: 30px;
  }

  .footer-links {
    display: grid;
    gap: 16px;
    padding: 8px 0;
  }

  .footer-links a {
    padding: 4px 0;
  }
}

.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 760px) {
  .admin-bar .global-nav {
    top: 122px;
  }
}
