@charset "UTF-8";

/* Top-page-only presentation and floating jellyfish. */

.index-page .page-header {
  height: 125vh;
}

.index-page .page-header .container > .content-center {
  top: 52%;
}

.index-page .page-header .brand .h1-seo {
  position: relative;
  display: inline-block;
}

.index-page .page-header:not(.page-header-small) .brand .h1-seo {
  font-size: clamp(4rem, 5vw, 4.75rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.index-page .page-header .brand .h1-seo::after {
  position: absolute;
  bottom: -0.08em;
  left: 0.08em;
  width: 0.07em;
  height: 0.07em;
  border-radius: 999px;
  background: var(--brand-yellow);
  box-shadow: 0 8px 26px rgba(241, 205, 36, 0.3);
  content: "";
  transform: scaleX(1);
  transform-origin: left center;
  animation: title-accent-reveal 1250ms ease-out 180ms forwards;
}

@keyframes title-accent-reveal {
  0% { width: 0.07em; transform: scaleX(1); }
  62% { width: calc(100% - 0.16em); transform: scaleX(1); }
  72% { width: calc(100% - 0.16em); transform: scaleX(1.055); }
  81% { width: calc(100% - 0.16em); transform: scaleX(0.975); }
  89% { width: calc(100% - 0.16em); transform: scaleX(1.022); }
  95% { width: calc(100% - 0.16em); transform: scaleX(0.992); }
  100% { width: calc(100% - 0.16em); transform: scaleX(1); }
}

.index-page .home-main {
  padding-top: 104px;
  background: var(--brand-canvas);
}

.index-page .home-main > div > .container {
  max-width: 1120px;
}

.index-page .home-feature {
  position: relative;
  display: grid;
  overflow: visible;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: clamp(52px, 7vw, 96px);
  align-items: center;
  margin: 0 0 104px;
  padding: 0 0 104px;
  border: 0;
  border-bottom: 1px solid rgba(75, 89, 99, 0.16);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.index-page .home-feature:last-of-type {
  margin-bottom: 72px;
  border-bottom: 0;
}

.index-page .home-feature::before {
  display: none;
}

.index-page .home-feature-reverse {
  grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1.35fr);
}

.index-page .home-feature-reverse .home-section-visual {
  order: 2;
}

.index-page .home-feature-content {
  position: relative;
  z-index: 1;
}

.index-page .home-feature .button {
  max-width: 210px;
  margin: 30px 0 0;
}

.index-page .home-section-visual {
  overflow: hidden;
  width: 100%;
  height: clamp(320px, 30vw, 400px);
  margin: 0;
  border-radius: 18px;
  background: var(--brand-gray-soft);
}

.index-page .home-section-visual img {
  position: static;
  top: auto;
  display: block;
  width: 100% !important;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.index-page .scroll-animation:hover .home-section-visual img {
  transform: scale(1.018);
}

.index-page .home-section-title {
  position: relative;
  width: max-content;
  max-width: 100%;
  margin: 0 0 16px !important;
  color: var(--brand-gray-dark);
  font-size: clamp(1.9rem, 3vw, 2.55rem) !important;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.index-page .home-section-title::before {
  position: absolute;
  top: -0.55em;
  left: 0;
  width: 0.22em;
  height: 0.22em;
  border-radius: 50%;
  background: var(--brand-yellow);
  content: "";
}

.index-page .home-section-copy {
  margin: 0 !important;
  color: var(--brand-gray);
  font-size: 1rem !important;
  line-height: 1.9;
}

.index-page a.btn_03 {
  color: var(--brand-ink) !important;
  border-color: var(--brand-yellow) !important;
  background: var(--brand-yellow) !important;
  box-shadow: 0 12px 28px -16px rgba(241, 205, 36, 0.58) !important;
}

.index-page a.btn_03::before {
  border-top-color: var(--brand-ink) !important;
  border-right-color: var(--brand-ink) !important;
}

.index-page a.btn_03:hover,
.index-page a.btn_03:focus {
  color: var(--brand-ink) !important;
  border-color: var(--brand-yellow-hover) !important;
  background: var(--brand-yellow-hover) !important;
  box-shadow: 0 16px 30px -16px rgba(241, 205, 36, 0.68) !important;
}

.index-page a.btn_03:hover::before,
.index-page a.btn_03:focus::before,
.index-page a.btn_03:active::before {
  border-top-color: var(--brand-ink) !important;
  border-right-color: var(--brand-ink) !important;
}

.index-page a.btn_03:active {
  color: var(--brand-ink) !important;
  border-color: var(--brand-yellow-active) !important;
  background: var(--brand-yellow-active) !important;
  box-shadow: 0 6px 16px -12px rgba(138, 112, 0, 0.7) !important;
  transform: translateY(1px) scale(0.99);
}

.floating-jellyfish {
  --jellyfish-drift-a: 12px;
  --jellyfish-drift-b: -8px;
  --jellyfish-drift-c: 16px;
  --jellyfish-drift-d: -10px;
  --jellyfish-rest-y: -50vh;
  --jellyfish-hover-x: 10px;
  --jellyfish-hover-x-negative: -10px;
  --jellyfish-hover-y: 8px;
  --jellyfish-pixel-color: var(--brand-blue);
  --jellyfish-burst-accent: var(--brand-yellow);
  position: fixed;
  bottom: 0;
  left: var(--jellyfish-left, 50vw);
  z-index: 20;
  width: var(--jellyfish-size, clamp(42px, 4vw, 56px));
  height: var(--jellyfish-size, clamp(42px, 4vw, 56px));
  pointer-events: none;
  animation: jellyfish-arrive var(--jellyfish-duration, 11s) cubic-bezier(0.4, 0, 0.22, 1) forwards;
  will-change: transform;
}

.floating-jellyfish.is-yellow {
  --jellyfish-pixel-color: var(--brand-yellow);
  --jellyfish-burst-accent: var(--brand-blue-dark);
}

.floating-jellyfish.is-gray {
  --jellyfish-pixel-color: var(--brand-gray);
  --jellyfish-burst-accent: var(--brand-yellow);
}

.floating-jellyfish.is-small {
  --jellyfish-size: clamp(38px, 3.6vw, 50px);
}

.floating-jellyfish.is-medium {
  --jellyfish-size: clamp(42px, 4vw, 56px);
}

.floating-jellyfish.is-large {
  --jellyfish-size: clamp(46px, 4.4vw, 62px);
}

.floating-jellyfish.is-bursting {
  animation-play-state: paused;
}

.floating-jellyfish.is-bursting::after {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.floating-jellyfish.is-bursting::after {
  width: 18px;
  height: 18px;
  background: #fff;
  box-shadow: 0 0 18px 7px rgba(255, 255, 255, 0.72);
  opacity: 0;
  animation: jellyfish-burst-flash 360ms ease-out forwards;
}

.floating-jellyfish.is-settled {
  animation: jellyfish-hover var(--jellyfish-hover-duration, 5.5s) ease-in-out infinite alternate;
}

.floating-jellyfish-button {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  opacity: 0.52;
  pointer-events: auto;
  transition: opacity 180ms ease, transform 280ms ease;
  animation: jellyfish-bob 3.2s ease-in-out infinite alternate;
}

.floating-jellyfish-button:hover,
.floating-jellyfish-button:focus-visible {
  opacity: 0.82;
}

.floating-jellyfish-button:focus-visible {
  outline: 2px solid var(--brand-blue-dark);
  outline-offset: 3px;
}

.floating-jellyfish-button.is-dismissed {
  opacity: 0;
  transform: scale(0.62) rotate(8deg);
}

.floating-jellyfish-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.floating-jellyfish.is-blue .floating-jellyfish-image {
  filter: saturate(1.04) brightness(1.02);
}

.floating-jellyfish.is-yellow .floating-jellyfish-image {
  filter: hue-rotate(214deg) saturate(1.18) brightness(1.06);
}

.floating-jellyfish.is-gray .floating-jellyfish-image {
  filter: grayscale(1) brightness(0.68) contrast(1.08);
}

@keyframes jellyfish-arrive {
  0% { transform: translate3d(0, 80px, 0) rotate(-3deg); }
  18% { transform: translate3d(var(--jellyfish-drift-a), var(--jellyfish-y-a), 0) rotate(3deg); }
  38% { transform: translate3d(var(--jellyfish-drift-b), var(--jellyfish-y-b), 0) rotate(-3deg); }
  60% { transform: translate3d(var(--jellyfish-drift-c), var(--jellyfish-y-c), 0) rotate(3deg); }
  80% { transform: translate3d(var(--jellyfish-drift-d), var(--jellyfish-y-d), 0) rotate(-2deg); }
  100% { transform: translate3d(0, var(--jellyfish-rest-y), 0) rotate(0deg); }
}

@keyframes jellyfish-hover {
  0% {
    transform: translate3d(var(--jellyfish-hover-x-negative), calc(var(--jellyfish-rest-y) + var(--jellyfish-hover-y)), 0) rotate(-2deg);
  }
  48% {
    transform: translate3d(3px, calc(var(--jellyfish-rest-y) - 4px), 0) rotate(1deg);
  }
  100% {
    transform: translate3d(var(--jellyfish-hover-x), calc(var(--jellyfish-rest-y) - var(--jellyfish-hover-y)), 0) rotate(2deg);
  }
}

@keyframes jellyfish-bob {
  from { transform: translate3d(-3px, 5px, 0) scale(0.97); }
  to { transform: translate3d(3px, -6px, 0) scale(1.03); }
}

.jellyfish-pixel {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: var(--pixel-size, 5px);
  height: var(--pixel-size, 5px);
  background: var(--jellyfish-pixel-color);
  border-radius: 2px;
  filter: drop-shadow(0 0 4px var(--jellyfish-pixel-color));
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: jellyfish-pixel-burst 820ms cubic-bezier(0.16, 0.84, 0.36, 1) var(--pixel-delay, 0ms) forwards;
  will-change: transform, opacity;
}

.jellyfish-pixel.is-light {
  background: #fff;
  box-shadow: 0 0 9px 2px rgba(255, 255, 255, 0.82);
  filter: none;
}

.jellyfish-pixel.is-accent {
  background: var(--jellyfish-burst-accent);
  filter: drop-shadow(0 0 5px var(--jellyfish-burst-accent));
}

@keyframes jellyfish-pixel-burst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.55) rotate(0deg);
  }
  12% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2) rotate(0deg);
  }
  68% {
    opacity: 0.92;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--pixel-x)), calc(-50% + var(--pixel-y))) scale(0.22) rotate(var(--pixel-turn));
  }
}

@keyframes jellyfish-burst-flash {
  0% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(0.5);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.8);
  }
}

@media screen and (max-width: 639px) {
  .index-page .page-header:not(.page-header-small) .brand .h1-seo {
    font-size: clamp(3rem, 14vw, 3.5rem);
  }

  .index-page .home-main {
    padding-top: 48px;
  }

  .index-page .home-feature,
  .index-page .home-feature-reverse {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 54px;
    padding: 0 0 54px;
  }

  .index-page .home-feature:last-of-type {
    margin-bottom: 38px;
    padding-bottom: 32px;
  }

  .index-page .home-section-visual {
    order: 0 !important;
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
  }

  .index-page .home-feature-content {
    padding: 0 4px;
  }

  .index-page .home-section-title {
    margin-bottom: 12px !important;
    font-size: 1.8rem !important;
  }

  .index-page .home-feature .button {
    width: 100%;
    max-width: none;
    margin-top: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-jellyfish {
    display: none;
  }
}
