:root {
  color-scheme: light;
  --ink: #071a3a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 36%, rgba(44, 92, 212, 0.045), transparent 34rem),
    #ffffff;
  color: var(--ink);
  font-family: Inter, "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.page-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding:
    max(2rem, env(safe-area-inset-top))
    max(1.25rem, env(safe-area-inset-right))
    max(3.5rem, env(safe-area-inset-bottom))
    max(1.25rem, env(safe-area-inset-left));
  isolation: isolate;
}

.brand-stage {
  display: flex;
  width: min(100%, 64rem);
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 3vh, 2rem);
  transform: translateY(-1.1vh);
}

.visual-wrap {
  position: relative;
  width: min(100%, 56rem);
  overflow: hidden;
  border-radius: 0.25rem;
}

.brand-visual {
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.brand-shine {
  position: absolute;
  top: 0;
  left: 29.75%;
  width: 40.64%;
  height: 60.56%;
  overflow: visible;
  pointer-events: none;
  mix-blend-mode: screen;
}

.trace {
  fill: none;
  stroke: url("#trace-gradient");
  stroke-linecap: round;
  stroke-dasharray: 0.17 0.83;
  stroke-dashoffset: 1.12;
  will-change: stroke-dashoffset;
}

.trace-layer--aura .trace {
  stroke-width: 32;
  opacity: 0.28;
}

.trace-layer--core .trace {
  stroke-width: 13;
  opacity: 0.94;
}

.service-icons {
  width: min(72%, 40rem);
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.service-grid {
  display: none;
}

.copyright {
  position: absolute;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(0.85rem, env(safe-area-inset-bottom));
  left: max(1rem, env(safe-area-inset-left));
  color: rgba(7, 26, 58, 0.52);
  text-align: center;
  letter-spacing: 0.08em;
}

.copyright small {
  font-size: clamp(0.625rem, 1.6vw, 0.72rem);
}

@media (max-width: 600px) {
  .page-shell {
    padding-top: max(1.5rem, env(safe-area-inset-top));
    padding-right: max(1rem, env(safe-area-inset-right));
    padding-left: max(1rem, env(safe-area-inset-left));
  }

  .brand-stage {
    gap: clamp(1.1rem, 3.5vh, 1.8rem);
    transform: translateY(-2vh);
  }

  .visual-wrap {
    width: 100%;
  }

  .service-icons--desktop {
    display: none;
  }

  .service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(94%, 24rem);
    gap: 0.35rem 0.75rem;
  }

  .service-grid img {
    width: 100%;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
  }
}

@media (max-height: 560px) {
  .page-shell {
    padding-top: 0.8rem;
    padding-bottom: 2.25rem;
  }

  .brand-stage {
    width: min(92vw, 46rem);
    gap: 0.4rem;
    transform: none;
  }

  .visual-wrap {
    width: min(50vw, 32rem);
  }

  .service-icons {
    width: min(42vw, 28rem);
  }

  .copyright {
    bottom: 0.45rem;
  }
}

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