/* ===== Solution page — layered design + scroll-driven beam ============ */

.sol-stage {
  position: relative;
  width: 1440px;
  margin: 0 auto;
  background: linear-gradient(180deg, #b6cfe6 0%, #6b8bb0 18%, #25426B 55%, #1a3354 100%);
  color: #fff;
  overflow: hidden;
  padding: 0 0 160px;
  min-height: 2800px;
}

/* Layer 1: hero sky + lighthouse photo spanning the full hero width.
   The photo is taller than the band so it fades deep into the map. */
.sol-sky {
  position: absolute;
  left: 0; top: 0;
  width: 1440px;
  height: 960px;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.sol-sky img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(.92) saturate(1.0);
}
/* Long, gentle fade-out that matches the map's top color so seam disappears. */
.sol-sky::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 0; bottom: 0;
  background: linear-gradient(180deg,
    rgba(20, 42, 68, 0)    0%,
    rgba(20, 42, 68, 0)   45%,
    rgba(20, 42, 68, .18) 65%,
    rgba(20, 42, 68, .55) 80%,
    rgba(20, 42, 68, .85) 92%,
    rgba(20, 42, 68, 1)   100%);
}

/* Layer 1b: vintage map texture — starts at y=900 (after the sky photo fades
   completely to navy), so the seam is invisible. The map's own background
   begins with full-opacity navy matching the sky's bottom color. */
.sol-map {
  position: absolute;
  left: 0; top: 900px;
  width: 1440px;
  height: 1900px;
  z-index: 1;
  background: linear-gradient(180deg, #142a44 0%, #1a3354 20%, #1f3a63 60%, #1a3354 100%);
  pointer-events: none;
}
.sol-map::before {
  content: '';
  position: absolute; inset: 60px 0 0 0;
  background:
    repeating-linear-gradient(0deg,  rgba(255,255,255,.025) 0 1px, transparent 1px 16px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 16px),
    radial-gradient(circle at 18% 22%, rgba(150,200,255,.12) 0, transparent 35%),
    radial-gradient(circle at 70% 60%, rgba(150,200,255,.10) 0, transparent 40%),
    radial-gradient(circle at 35% 85%, rgba(150,200,255,.10) 0, transparent 40%);
  mix-blend-mode: screen;
}

/* Layer 2: lighthouse beam — SVG cone, rotating */
.sol-beam {
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 2600px;
  z-index: 2;
  pointer-events: none;
}
.sol-beam__group {
  transform-origin: 245px 470px;
  transform: rotate(var(--target-angle, 80deg));
  transition: transform 1.6s cubic-bezier(.22,.61,.36,1);
  mix-blend-mode: screen;
  animation: beam-pulse 4s ease-in-out infinite;
}
@keyframes beam-pulse {
  0%, 100% { opacity: .85; }
  50%      { opacity: 1;   }
}

/* Per-target absolute angles, computed from (245, 470) → each circle center */
.sol-stage                                  { --target-angle: 80deg; }
.sol-stage[style*="--beam-target: 0"]       { --target-angle:  90deg; } /* AI-sys      (280, 1180) */
.sol-stage[style*="--beam-target: 1"]       { --target-angle:  53deg; } /* SystemSh    (980, 1380) */
.sol-stage[style*="--beam-target: 2"]       { --target-angle:  87deg; } /* AI-OCR      (320, 1820) */
.sol-stage[style*="--beam-target: 3"]       { --target-angle:  64deg; } /* 最強来客管理 (1000, 1980) */
.sol-stage[style*="--beam-target: 4"]       { --target-angle:  79deg; } /* iteee       (600, 2380) */

/* Layer 3: sparkles */
.sol-sparkles {
  position: absolute;
  left: 0; top: 600px;
  width: 100%; height: 1900px;
  z-index: 3;
  pointer-events: none;
}
.lh-sparkle {
  position: absolute;
  width: 3px; height: 3px;
  background: #fffbe6;
  border-radius: 50%;
  box-shadow: 0 0 8px #fff5a8;
  opacity: 0;
  animation: sparkle 3s ease-in-out infinite;
}
@keyframes sparkle {
  0%, 100% { opacity: 0;   transform: scale(.6); }
  40%      { opacity: .9;  transform: scale(1.3); }
  70%      { opacity: .35; transform: scale(.9);  }
}

/* Layer 4: hero title card (top-right) */
.sol-hero-card {
  position: absolute;
  right: 60px; top: 110px;
  width: 600px;
  z-index: 4;
  background: rgba(255,255,255,.92);
  border-radius: 18px;
  padding: 44px 48px;
  color: #25426B;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
  backdrop-filter: blur(4px);
}
.sol-hero-card__en {
  font-family: "Outfit", sans-serif;
  font-weight: 700; font-size: 64px; line-height: 1;
  color: #25426B;
}
.sol-hero-card__ja {
  margin-top: 6px; font-size: 18px; font-weight: 600; color: #4d4d4d;
}
.sol-hero-card__h {
  margin: 22px 0 0; font-size: 32px; font-weight: 700; line-height: 1.5;
  color: #25426B;
}
.sol-hero-card__desc {
  margin: 24px 0 0; font-size: 14px; line-height: 2; color: #4d4d4d;
}
.sol-hero-card__desc strong { color: #25426B; font-weight: 700; }

/* Layer 5: solution circles */
.sol-circles { position: absolute; inset: 0; z-index: 5; }
.sol-circle {
  position: absolute;
  display: block;
  border-radius: 50%;
  text-decoration: none;
  color: #25426B;
  opacity: .35;
  filter: grayscale(.5) brightness(.85);
  transition: opacity .9s var(--ease-sharp), filter .9s var(--ease-sharp),
              transform .5s var(--ease-sharp);
  mix-blend-mode: normal;
}
.sol-circle.lit {
  opacity: 1;
  filter: none;
}
.sol-circle__halo {
  position: absolute; inset: -16%;
  border-radius: 50%;
  background: radial-gradient(circle,
    color-mix(in oklab, var(--accent) 55%, transparent) 0%,
    color-mix(in oklab, var(--accent) 22%, transparent) 35%,
    transparent 65%);
  opacity: 0;
  transform: scale(.7);
  transition: opacity 1s var(--ease-sharp), transform 1s var(--ease-sharp);
  mix-blend-mode: screen;
  pointer-events: none;
}
.sol-circle.lit .sol-circle__halo {
  opacity: 1;
  transform: scale(1);
  animation: halo-pulse 3s ease-in-out infinite;
}
@keyframes halo-pulse {
  0%, 100% { transform: scale(1);    opacity: .85; }
  50%      { transform: scale(1.05); opacity: 1; }
}
.sol-circle__ripple {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid color-mix(in oklab, var(--accent) 70%, transparent);
  opacity: 0;
  pointer-events: none;
}
.sol-circle:hover .sol-circle__ripple {
  animation: ripple 1.6s ease-out infinite;
}
@keyframes ripple {
  0%   { transform: scale(1);   opacity: .8; }
  100% { transform: scale(1.3); opacity: 0;  }
}
.sol-circle__disc {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  width: 100%; height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(255,255,255,.96) 0%,
      rgba(255,255,255,.86) 65%,
      rgba(255,235,180,.6) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.7),
    0 30px 70px rgba(0,0,0,.35),
    0 0 60px color-mix(in oklab, var(--accent) 40%, transparent);
  text-align: center;
  padding: 40px;
  transition: transform .4s var(--ease-sharp), box-shadow .4s var(--ease-sharp);
}
.sol-circle__name {
  font-weight: 800; font-size: 32px; color: #25426B;
  font-family: "Noto Sans JP", "Outfit", sans-serif;
  letter-spacing: .01em;
  line-height: 1.25;
}
.sol-circle__logo {
  display: block;
  width: auto;
  max-width: 95%;
  height: auto;
  max-height: 120px;
  object-fit: contain;
  margin: 4px auto 0;
}
.sol-circle__desc {
  margin-top: 12px; font-size: 13px; color: #4d4d4d; line-height: 1.7;
  max-width: 240px;
}
.sol-circle:hover {
  transform: translateY(-6px) scale(1.03);
  opacity: 1; filter: none;
}
.sol-circle:hover .sol-circle__disc {
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.85),
    0 36px 80px rgba(0,0,0,.4),
    0 0 100px color-mix(in oklab, var(--accent) 70%, transparent);
}
.sol-circle:hover .sol-circle__halo {
  opacity: 1; transform: scale(1.1);
}

/* Responsive (mobile) */
@media (max-width: 900px) {
  .sol-stage { width: auto; min-height: auto; padding-bottom: 80px; }
  .sol-sky { width: 100%; height: 360px; }
  .sol-hero-card {
    position: relative; right: auto; top: auto;
    margin: -60px 16px 24px;
    width: auto; padding: 24px;
  }
  .sol-hero-card__en { font-size: 44px; }
  .sol-hero-card__h { font-size: 22px; }
  .sol-map { position: relative; left: 0; top: 0; width: 100%; height: auto; min-height: 1200px; }
  .sol-circles { position: relative; display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 32px 0; }
  .sol-circle { position: relative !important; left: auto !important; top: auto !important;
    width: min(320px, 88vw) !important; height: min(320px, 88vw) !important; }
  .sol-beam, .sol-sparkles { display: none; }
}
