/* ============================================================
   Rep²it LP — ARISTO × JAFTAS × BOX1 DNA
   ============================================================ */

:root {
  /* Pale water-blue base (was beige) */
  --aristo-bg: #eef6fb;
  --aristo-cream: rgba(232, 244, 252, 0.65);
  --aristo-paint: #b8dff0;
  --aristo-text: #1a2e3b;
  --aristo-muted: rgba(32, 72, 98, 0.72);

  /* JAFTAS */
  --jaftas-blue: #0080db;
  --jaftas-blue-mid: #31aef5;
  --jaftas-blue-light: #47c1ff;
  --jaftas-cadet: #5a9cb5;
  --jaftas-grad: linear-gradient(117deg, #0080db 0%, #31aef5 59%, #47c1ff 83%, #80d5ff 98%);
  --jaftas-grad-soft: linear-gradient(297deg, rgba(7,167,221,0.4) 1.5%, rgba(7,167,221,0.08) 14.6%, rgba(7,167,221,0.13) 33.3%, rgba(7,167,221,0.25) 55.8%, rgba(7,167,221,0.16) 78.2%, rgba(7,167,221,0.3) 95%);

  /* BOX1 */
  --box-blue: #549bde;
  --box-panel: #f0f4f8;
  --box-line: #d7deeb;

  --font-ja: "Zen Kaku Gothic New", sans-serif;
  --font-en: "Plus Jakarta Sans", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease2: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 9.3rem;
  --pad-side: clamp(2rem, 4vw, 4.8rem);
}

@media (max-width: 1023px) {
  :root { --header-h: 5.5rem; }
}

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

html { font-size: 62.5%; scroll-behavior: smooth; }

body {
  font-family: var(--font-ja);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.04em;
  color: var(--aristo-text);
  background: var(--aristo-bg);
  -webkit-font-smoothing: antialiased;
}

.sq { font-size: 0.55em; vertical-align: super; line-height: 0; }

.l-container { width: min(115rem, 100% - var(--pad-side) * 2); margin-inline: auto; }
.l-container--narrow { width: min(72rem, 100% - var(--pad-side) * 2); margin-inline: auto; }

/* ---- ARISTO Header ---- */
.l-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 var(--pad-side);
  gap: 2rem;
  transition: background 0.4s, box-shadow 0.4s;
}

.l-header.is-scrolled {
  background: rgba(238, 246, 251, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(84, 155, 222, 0.12);
}

.l-header__logo {
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.l-header__nav {
  display: flex;
  gap: clamp(1.6rem, 2.5vw, 3.2rem);
  margin-left: auto;
}

.l-header__nav a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  line-height: 1.3;
}

.nav-en {
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  opacity: 0.5;
  transition: opacity 0.25s;
}

.nav-ja { font-size: 1.1rem; font-weight: 500; }

.l-header__nav a:hover .nav-en { opacity: 1; }

.l-header__cv {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 1.4em;
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: lowercase;
  text-decoration: none;
  color: inherit;
  margin-left: 2rem;
}

.l-header__cv .cv-text {
  display: block;
  transition: transform 0.5s var(--ease);
}

.l-header__cv:hover .cv-text { transform: translateY(-100%); }

.l-header__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

.l-header__toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
}

/* ---- Hero: BG + cinematic logo ---- */
.p-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 4rem) var(--pad-side) 8rem;
  overflow: hidden;
}

.p-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.p-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(238, 246, 251, 0.72) 0%,
    rgba(232, 244, 252, 0.88) 45%,
    rgba(238, 246, 251, 0.94) 100%
  );
}

.p-hero__stage {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 90rem;
  text-align: center;
}

.p-hero__animation {
  position: relative;
  height: clamp(20rem, 42vw, 30rem);
  margin-bottom: clamp(2.4rem, 5vw, 4rem);
  --hero-logo-size: clamp(3.6rem, 8vw, 5.6rem);
  --hero-logo-weight: 600;
  --hero-logo-tracking: 0.08em;
  --hero-phrase-scale: 1.25;
}

.p-hero__phrases {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.p-hero__phrase {
  position: absolute;
  margin: 0;
  font-family: var(--font-en);
  font-size: var(--hero-logo-size);
  font-weight: var(--hero-logo-weight);
  letter-spacing: var(--hero-logo-tracking);
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
}

.p-hero__phrase--left {
  left: 50%;
  top: 50%;
  transform: translate(calc(-50% - clamp(9rem, 20vw, 16rem)), calc(-50% - clamp(6.5rem, 15vw, 10rem)));
}

.p-hero__phrase--center {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.p-hero__phrase--right {
  left: 50%;
  top: 50%;
  transform: translate(calc(-50% + clamp(9rem, 20vw, 16rem)), calc(-50% + clamp(6.5rem, 15vw, 10rem)));
}

.phrase-rep,
.phrase-tail,
.phrase-pre,
.phrase-it {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  font-style: normal;
  letter-spacing: inherit;
  line-height: inherit;
  color: rgba(26, 46, 59, 0.26);
  transition: color 0.45s var(--ease), transform 0.55s var(--ease);
}

.phrase-tail,
.phrase-pre {
  transition: color 0.45s var(--ease), opacity 0.45s var(--ease);
}

.phrase-rep,
.phrase-it {
  display: inline-block;
  position: relative;
  z-index: 3;
  will-change: transform, opacity;
}

.p-hero__stage.show-left .p-hero__phrase--left,
.p-hero__stage.show-center .p-hero__phrase--center,
.p-hero__stage.show-right .p-hero__phrase--right {
  visibility: visible;
  animation: heroPhraseIn 0.55s var(--ease2) forwards;
}

@keyframes heroPhraseIn {
  from { opacity: 0; filter: blur(3px); }
  to { opacity: 1; filter: blur(0); }
}

.p-hero__stage.phase-detach .phrase-rep,
.p-hero__stage.phase-detach .phrase-it,
.p-hero__stage.phase-slide .phrase-rep,
.p-hero__stage.phase-slide .phrase-it,
.p-hero__stage.phase-reveal .phrase-rep,
.p-hero__stage.phase-reveal .phrase-it {
  color: var(--aristo-text);
}

.p-hero__stage.phase-detach .phrase-rep,
.p-hero__stage.phase-detach .phrase-it {
  transform: translateY(-0.42em) scale(var(--hero-phrase-scale));
  transition: transform 0.55s var(--ease), color 0.45s var(--ease);
}

.p-hero__stage.phase-detach .phrase-tail,
.p-hero__stage.phase-detach .phrase-pre,
.p-hero__stage.phase-slide .phrase-tail,
.p-hero__stage.phase-slide .phrase-pre {
  color: rgba(26, 46, 59, 0.18);
}

.p-hero__stage.phase-slide .phrase-rep,
.p-hero__stage.phase-slide .phrase-it {
  transform: translate(var(--mx, 0), var(--my, 0)) scale(1);
  transition: transform 1.35s var(--ease);
}

.p-hero__stage.phase-slide:not(.phase-handoff) .phrase-rep,
.p-hero__stage.phase-slide:not(.phase-handoff) .phrase-it {
  opacity: 1;
}

.p-hero__stage.phase-slide.phase-handoff .phrase-rep,
.p-hero__stage.phase-slide.phase-handoff .phrase-it,
.p-hero__stage.phase-slide.phase-handoff .phrase-tail,
.p-hero__stage.phase-slide.phase-handoff .phrase-pre {
  animation: heroPhraseHandoff 0.72s var(--ease) forwards;
  transition: transform 1.35s var(--ease);
}

.p-hero__stage.phase-slide.phase-handoff .phrase-tail,
.p-hero__stage.phase-slide.phase-handoff .phrase-pre {
  transition: opacity 0.72s var(--ease), filter 0.72s var(--ease);
}

@keyframes heroPhraseHandoff {
  from {
    opacity: 1;
    filter: blur(0);
  }
  to {
    opacity: 0;
    filter: blur(5px);
  }
}

.p-hero__stage.phase-reveal .phrase-rep,
.p-hero__stage.phase-reveal .phrase-it,
.p-hero__stage.phase-reveal .phrase-tail,
.p-hero__stage.phase-reveal .phrase-pre {
  opacity: 0;
  filter: blur(5px);
  pointer-events: none;
  animation: none;
}

.p-hero__logo-final {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  padding: 0;
  transition: opacity 0.5s ease;
}

.p-hero__stage.is-measuring .p-hero__logo-final,
.p-hero__stage.phase-reveal .p-hero__logo-final {
  opacity: 1;
}

.p-hero__stage.phase-reveal .p-hero__logo-final {
  z-index: 3;
  transition: none;
}

.logo-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-en);
  font-size: var(--hero-logo-size);
  font-weight: var(--hero-logo-weight);
  letter-spacing: var(--hero-logo-tracking);
  line-height: 1;
  display: block;
  color: var(--aristo-text);
  white-space: nowrap;
  margin: 0;
  padding: 0;
}

.logo-sq {
  display: inline-block;
  vertical-align: super;
  font-family: inherit;
  font-size: 0.55em;
  font-weight: inherit;
  line-height: 1;
  opacity: 0;
  transform: translateY(-3.2em);
  will-change: transform, opacity;
}

.logo-rep,
.logo-it {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  opacity: 0;
  display: inline-block;
}

.logo-ja {
  position: absolute;
  top: calc(50% + 0.5em);
  left: 50%;
  transform: translateX(-50%);
  margin-top: clamp(2rem, 4vw, 3rem);
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  font-weight: 500;
  letter-spacing: 0.35em;
  color: var(--aristo-muted);
  opacity: 0;
  white-space: nowrap;
}

.p-hero__stage.is-measuring .logo-rep,
.p-hero__stage.is-measuring .logo-it {
  opacity: 1;
}

.p-hero__stage.is-measuring .logo-sq {
  opacity: 0;
  transform: translateY(-3.2em);
  animation: none;
}

.p-hero__stage.phase-reveal .logo-rep,
.p-hero__stage.phase-reveal .logo-it {
  animation: heroLogoIn 1.05s var(--ease) forwards;
}

@keyframes heroLogoIn {
  from {
    opacity: 0;
    filter: blur(4px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

.p-hero__stage.phase-reveal .logo-sq {
  animation: heroSqDrop 0.95s var(--ease2) 1s forwards;
}

.p-hero__stage.phase-reveal .logo-ja {
  animation: heroJaIn 0.65s var(--ease) 2.15s forwards;
}

@keyframes heroSqDrop {
  0%, 24% {
    opacity: 0;
    transform: translateY(-3.2em);
  }
  25% {
    opacity: 1;
    transform: translateY(-3.2em);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroJaIn {
  from { opacity: 0; transform: translateX(-50%) translateY(6px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.p-hero__stage.phase-reveal .p-hero__phrase {
  visibility: hidden;
}

.p-hero__content {
  opacity: 0;
  transform: translateY(16px);
}

.p-hero__stage.phase-content .p-hero__content {
  animation: heroCopyIn 1.2s var(--ease) forwards;
}

@keyframes heroCopyIn {
  to { opacity: 1; transform: translateY(0); }
}

.p-hero__lead {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  margin: 0 0 1.2rem;
  line-height: 1.65;
}

.p-hero__sub-en {
  font-family: var(--font-en);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.5em;
  color: var(--box-blue);
  margin: 0 0 1.6rem;
}

.p-hero__definition {
  font-size: clamp(1.25rem, 1.8vw, 1.4rem);
  color: var(--aristo-muted);
  max-width: 42em;
  margin: 0 auto 1.6rem;
  line-height: 1.9;
}

.p-hero__copy {
  font-size: 1.5rem;
  color: var(--aristo-muted);
  max-width: 40em;
  margin: 0 auto;
  line-height: 2.1;
}

.p-hero__scroll {
  position: absolute;
  z-index: 3;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--aristo-muted);
  font-family: var(--font-en);
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.p-hero__scroll-line {
  width: 1px;
  height: 4rem;
  background: var(--aristo-text);
  animation: scrollLine 1.8s var(--ease2) infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Buttons */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.6rem 3.2rem;
  font-family: var(--font-ja);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-decoration: none;
  border: 1px solid var(--aristo-text);
  cursor: pointer;
  transition: background 0.35s, color 0.35s, border-color 0.35s;
}

.c-btn--fill { background: var(--aristo-text); color: var(--aristo-bg); }
.c-btn--fill:hover { background: #333; }
.c-btn--ghost { background: rgba(255,255,255,0.6); color: var(--aristo-text); backdrop-filter: blur(4px); }
.c-btn--ghost:hover { background: var(--aristo-text); color: #fff; }
.c-btn--white { background: #fff; color: var(--jaftas-blue); border-color: #fff; width: 100%; }
.c-btn--white:hover { background: rgba(255,255,255,0.9); }

/* JAFTAS wave connectors */
.c-wave {
  position: relative;
  z-index: 2;
  margin-block: -1px;
  pointer-events: none;
  line-height: 0;
}

.c-wave svg { display: block; width: 100%; height: auto; }

.c-wave:not(.c-wave--thin) svg path { fill: var(--aristo-bg); }

.c-wave--thin { height: clamp(4rem, 8vw, 8rem); margin-block: clamp(-2rem, -4vw, -4rem); }
.c-wave--thin svg { height: 100%; }

.wave-stroke {
  fill: none;
  stroke: var(--jaftas-blue-mid);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  opacity: 0;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.8s var(--ease), opacity 0.6s;
}

.c-wave.is-drawn .wave-stroke { opacity: 0.55; stroke-dashoffset: 0; }
.c-wave--reverse .wave-stroke { stroke: var(--box-line); }

/* ARISTO section head */
.c-head { margin-bottom: clamp(3rem, 5vw, 5rem); }

.c-head__en {
  font-family: var(--font-en);
  font-size: clamp(3.6rem, 8vw, 8rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0 0 0.8rem;
}

.c-head__ja {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  margin: 0;
}

/* Paint heading (ARISTO Recruit brush strokes) */
.paint-head {
  position: relative;
  display: inline-block;
  padding: 0.05em 0 0.05em 0.15em;
}

.paint-head__txt {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translate(8px, 8px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.paint-head__bg {
  position: absolute;
  left: 0;
  top: 50%;
  width: 4.35em;
  height: 1.24em;
  transform: translateY(-50%) scale(0);
  transform-origin: left center;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 72'%3E%3Cpath d='M6 56 L34 18' stroke='%23b8dff0' stroke-width='13' stroke-linecap='round' opacity='0.95'/%3E%3Cpath d='M20 64 L48 26' stroke='%23b8dff0' stroke-width='13' stroke-linecap='round' opacity='0.95'/%3E%3Cpath d='M34 72 L62 34' stroke='%23b8dff0' stroke-width='13' stroke-linecap='round' opacity='0.95'/%3E%3C/svg%3E") left center / contain no-repeat;
  transition: transform 0.95s var(--ease);
}

.c-head__en.paint-head .paint-head__bg,
.p-result__title-en.paint-head .paint-head__bg {
  width: 4.05em;
  height: 1.16em;
}

.paint-head.is-show .paint-head__bg { transform: translateY(-50%) scale(1); }
.paint-head.is-show .paint-head__txt { opacity: 1; transform: none; }

.paint-head--blue .paint-head__bg {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 72'%3E%3Cpath d='M6 56 L34 18' stroke='%23b8dff5' stroke-width='13' stroke-linecap='round' opacity='0.85'/%3E%3Cpath d='M20 64 L48 26' stroke='%23b8dff5' stroke-width='13' stroke-linecap='round' opacity='0.85'/%3E%3Cpath d='M34 72 L62 34' stroke='%23b8dff5' stroke-width='13' stroke-linecap='round' opacity='0.85'/%3E%3C/svg%3E") left center / contain no-repeat;
}

/* ARISTO link roll */
.c-link-roll {
  display: inline-flex;
  flex-direction: column;
  overflow: hidden;
  height: 1.5em;
  margin-top: 3rem;
  font-size: 1.3rem;
  letter-spacing: 0.2em;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid currentColor;
}

.c-link-roll span {
  display: block;
  transition: transform 0.5s var(--ease);
}

.c-link-roll:hover span { transform: translateY(-100%); }

/* Philosophy */
.p-philosophy {
  padding: clamp(8rem, 14vw, 14rem) 0;
  background: var(--aristo-bg);
}

.p-philosophy__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.p-philosophy__visual {
  border-radius: 0.8rem;
  overflow: hidden;
  box-shadow: 0 2rem 5rem rgba(84, 155, 222, 0.12);
}

.p-philosophy__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.p-philosophy__catch {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: 0.06em;
  margin-bottom: 2.4rem;
  max-width: 20em;
}

.p-philosophy__txt p {
  font-size: 1.5rem;
  color: var(--aristo-muted);
  margin-bottom: 1.6em;
  max-width: 48em;
}

.p-philosophy__txt strong { color: var(--aristo-text); font-weight: 500; }

/* JAFTAS Result */
.p-result { padding: clamp(1.2rem, 2.5vw, 2.5rem); }

.p-result__shell {
  border-radius: 1.2rem;
  overflow: hidden;
  background: var(--jaftas-grad);
  position: relative;
}

.p-result__shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--jaftas-grad-soft);
  pointer-events: none;
}

.p-result__inner {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 7vw, 6.5rem) 0;
}

.p-result__label {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-family: var(--font-en);
  font-size: 1.2rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.08em;
}

.p-result__symbol {
  display: block;
  width: 4rem;
  height: 0.9rem;
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.5) 100%);
  border-radius: 1px;
  opacity: 0.9;
}

.p-result__title-en {
  font-family: var(--font-en);
  font-size: clamp(3.6rem, 8vw, 8rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0;
}

.p-result__title-en .paint-head__txt { color: #fff; }

.p-result__title-ja {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.08em;
  margin: 0.8rem 0 0;
  white-space: nowrap;
}

.p-result__lead {
  font-size: clamp(1.4rem, 2vw, 1.6rem);
  font-weight: 500;
  color: rgba(255,255,255,0.92);
  line-height: 1.75;
  margin-top: 2rem;
  max-width: 40em;
}

.p-result__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: clamp(3rem, 5vw, 4rem);
}

.p-result__card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  background: #fff;
  border-radius: 0.8rem;
  padding: 2.4rem 2rem 2rem;
  opacity: 0;
  transform: translateY(3rem);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.p-result__card.is-show { opacity: 1; transform: none; }

.p-result__card dt {
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--jaftas-blue);
  text-align: center;
  line-height: 1.5;
}

.p-result__illus {
  height: 9rem;
  margin: 2rem auto 1.6rem;
  max-width: 22rem;
  border-radius: 0.4rem;
  overflow: hidden;
  background: var(--aristo-cream);
}

.p-result__illus img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-result__num {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

.p-result__num strong {
  font-family: var(--font-en);
  font-size: clamp(3.2rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.p-result__num span {
  font-size: 1.4rem;
  font-weight: 500;
  padding-bottom: 0.5rem;
}

.p-result__note {
  font-size: 1.3rem;
  color: var(--aristo-muted);
  text-align: center;
  line-height: 1.85;
}

/* BOX1 Our Service */
.p-service {
  padding: clamp(10rem, 16vw, 17rem) 0 clamp(8rem, 12vw, 12rem);
  background: #fff;
}

.p-service__head {
  text-align: center;
  margin-bottom: clamp(6rem, 10vw, 12rem);
}

.p-service__title {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 8vw, 13rem);
  align-items: center;
}

.p-service__title-en {
  font-family: var(--font-en);
  font-size: clamp(3.2rem, 6vw, 5.6rem);
  font-weight: 600;
  color: var(--box-blue);
  letter-spacing: 0.02em;
  transform-origin: bottom;
}

.p-service__title-ja {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.2em;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
}

.p-service__title-num {
  font-family: var(--font-en);
  font-size: clamp(4rem, 8vw, 6rem);
  font-weight: 600;
  color: var(--box-blue);
  line-height: 1;
}

.p-service__intro {
  font-size: 1.5rem;
  color: var(--aristo-muted);
  max-width: 40em;
  margin: 3rem auto 0;
  line-height: 2;
}

.p-service__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 8rem);
  max-width: min(108rem, 100% - var(--pad-side) * 2);
  margin-inline: auto;
  min-height: 130vh;
  padding-inline: var(--pad-side);
}

.p-service__visual-sticky {
  position: sticky;
  top: max(var(--header-h), calc(50vh - 18rem));
  display: flex;
  justify-content: center;
  align-items: center;
  height: min(36rem, 42vw);
  perspective: 120rem;
}

.p-service__visuals-wrap {
  width: min(32rem, 38vw);
  height: min(32rem, 38vw);
  transform-style: preserve-3d;
  transform: translateZ(calc(-1 * min(16rem, 19vw)));
}

.p-service__visuals {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.9s var(--ease);
}

.p-service__face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  backface-visibility: hidden;
  box-shadow: 0 2rem 6rem rgba(84, 155, 222, 0.2);
}

.p-service__face--front {
  transform: rotateY(0deg) translateZ(min(16rem, 19vw));
}

.p-service__face--right {
  transform: rotateY(120deg) translateZ(min(16rem, 19vw));
}

.p-service__face--back {
  transform: rotateY(240deg) translateZ(min(16rem, 19vw));
}

.face-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
}

.face-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.face-badge {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(180deg, rgba(238,246,251,0.15) 0%, rgba(26,46,59,0.45) 100%);
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.face-badge em {
  font-size: 1.2rem;
  font-style: normal;
  letter-spacing: 0.2em;
  opacity: 0.9;
}

.p-service__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: clamp(8rem, 12vw, 14rem);
}

.p-service__item {
  opacity: 0.3;
  transform: scale(0.92);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.p-service__item.is-active { opacity: 1; transform: scale(1); }

.p-service__item header { text-align: center; padding-top: clamp(4rem, 8vw, 12rem); }

.item-num {
  font-family: var(--font-en);
  font-size: 1.2rem;
  color: var(--box-blue);
  letter-spacing: 0.2em;
}

.item-en {
  font-family: var(--font-en);
  font-size: clamp(2.8rem, 4.5vw, 4rem);
  font-weight: 600;
  color: var(--box-blue);
  margin-top: 0.8rem;
  transform-origin: bottom;
  transition: transform 0.6s var(--ease);
}

.p-service__item:not(.is-active) .item-en { transform: scaleY(0.65); }

.p-service__item h3 {
  font-size: 1.8rem;
  font-weight: 500;
  margin-top: 1.2rem;
  letter-spacing: 0.05em;
}

.item-sub {
  font-size: 1.2rem;
  color: var(--aristo-muted);
  margin-top: 0.4rem;
  letter-spacing: 0.1em;
}

.item-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.7s var(--ease), opacity 0.5s, margin 0.5s;
}

.p-service__item.is-active .item-body {
  max-height: 20rem;
  opacity: 1;
  margin-top: 2.4rem;
}

.item-line {
  width: 1px;
  height: 6rem;
  background: var(--box-line);
  margin: 0 auto 2rem;
}

.item-body p {
  font-size: 1.4rem;
  color: var(--aristo-muted);
  text-align: center;
  line-height: 2;
  max-width: 30em;
  margin-inline: auto;
}

/* Demo card (JAFTAS inner card) */
.p-demo { margin-top: clamp(8rem, 12vw, 12rem); }

.p-demo__card {
  position: relative;
  background: #fff;
  border-radius: 0.8rem;
  padding: clamp(2.4rem, 4vw, 4rem);
  box-shadow: 0 0 0 1px rgba(0,128,219,0.08);
}

.p-demo__card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--jaftas-grad-soft);
  pointer-events: none;
}

.p-demo__title,
.p-demo__review,
.p-demo__tabs,
.p-demo__panel { position: relative; z-index: 1; }

.p-demo__title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--jaftas-blue);
  margin-bottom: 2rem;
}

.p-demo__review {
  padding: 2rem;
  background: #fff;
  border-left: 3px solid var(--jaftas-blue);
  font-style: italic;
  color: var(--aristo-muted);
  margin-bottom: 2rem;
}

.p-demo__review span {
  display: block;
  font-style: normal;
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jaftas-cadet);
  margin-bottom: 0.8rem;
}

.p-demo__tabs { display: flex; border-bottom: 1px solid var(--box-line); }

.p-demo__tab {
  flex: 1;
  padding: 1.4rem;
  background: none;
  border: none;
  font-family: var(--font-ja);
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--aristo-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.p-demo__tab.is-active { color: var(--jaftas-blue); border-bottom-color: var(--jaftas-blue); font-weight: 500; }

.p-demo__panel { display: none; padding-top: 2rem; }
.p-demo__panel.is-active { display: block; }
.p-demo__panel p { font-size: 1.4rem; color: var(--aristo-muted); line-height: 2; margin-bottom: 1em; }

.p-demo__badge {
  display: inline-block;
  font-size: 1.2rem;
  padding: 0.4rem 1rem;
  border-radius: 0.2rem;
  margin-bottom: 1.2rem;
}

.p-demo__badge.is-bad { background: #fdf5f5; color: #9b3b3b; }
.p-demo__badge.is-good { background: #f4faf6; color: #2d6a4f; }

/* Workflow demo video */
.p-wf-demo {
  background: var(--aristo-bg);
  padding: clamp(8rem, 12vw, 12rem) 0;
}

.p-wf-demo__intro {
  text-align: center;
  margin-bottom: clamp(3.2rem, 6vw, 5.6rem);
}

.p-wf-demo__lead {
  font-size: 1.5rem;
  color: var(--aristo-muted);
  max-width: 42em;
  margin: 2rem auto 0;
  line-height: 2.1;
}

.p-wf-demo__video-wrap {
  width: min(56rem, 100%);
  margin-inline: auto;
  aspect-ratio: 1;
  border-radius: 0.4rem;
  overflow: hidden;
  box-shadow: 0 1.6rem 4rem rgba(84, 155, 222, 0.12);
  background: var(--aristo-cream);
}

.p-wf-demo__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ARISTO Features / Service slides */
.p-workflow {
  background: var(--aristo-cream);
  padding-bottom: clamp(6rem, 10vw, 10rem);
}

.p-workflow__intro { padding: clamp(8rem, 12vw, 12rem) 0 4rem; }

.p-workflow__lead {
  font-size: 1.5rem;
  color: var(--aristo-muted);
  max-width: 42em;
  margin-top: 2rem;
  line-height: 2.1;
}

.p-workflow__track {
  position: relative;
}

.p-workflow__slide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 4vw, 4.8rem);
  position: sticky;
  top: calc(var(--header-h) + 1.6rem);
  min-height: calc(85vh - var(--header-h));
  max-width: min(115rem, 100% - var(--pad-side) * 2);
  margin-inline: auto;
  padding: clamp(4rem, 8vw, 8rem) var(--pad-side);
  background: var(--aristo-cream);
  opacity: 0.2;
  transform: scale(0.9);
  transition: opacity 0.35s cubic-bezier(0.25, 1, 0.5, 1), transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.p-workflow__slide.is-front {
  z-index: 2;
}

.p-workflow__visual { position: relative; min-height: clamp(20rem, 30vw, 36rem); }

.wf-img {
  width: 100%;
  max-width: 52rem;
  aspect-ratio: 4/3;
  margin-inline: auto;
  border-radius: 0.4rem;
  overflow: hidden;
  position: relative;
  box-shadow: 0 1.6rem 4rem rgba(84, 155, 222, 0.12);
}

.wf-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wf-img::before {
  content: "";
  position: absolute;
  top: -4rem;
  right: -2rem;
  width: 5.6rem;
  height: 5.6rem;
  border-radius: 50%;
  background: var(--aristo-bg);
  z-index: 1;
}

.p-workflow__label {
  font-family: var(--font-en);
  font-size: 1.2rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--aristo-muted);
  margin-bottom: 2rem;
}

.p-workflow__content h3 {
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.04em;
  margin-bottom: 2rem;
}

.wf-num {
  font-family: var(--font-en);
  font-weight: 600;
  color: var(--aristo-muted);
  margin-right: 0.3em;
}

.p-workflow__content > p {
  font-size: 1.4rem;
  color: var(--aristo-muted);
  line-height: 2.1;
  margin-bottom: 2rem;
}

.p-workflow__pager {
  position: absolute;
  right: var(--pad-side);
  bottom: clamp(4rem, 8vw, 8rem);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-en);
  line-height: 1;
}

.p-workflow__pager .cur { font-size: 2.4rem; font-weight: 600; }
.p-workflow__pager .tot { font-size: 1.2rem; color: var(--aristo-muted); margin-top: 0.4rem; }
.p-workflow__pager .tot::before { content: "/ "; }

/* Pricing */
.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.p-pricing {
  padding: clamp(6rem, 10vw, 10rem) 0 clamp(4rem, 8vw, 8rem);
  background: var(--aristo-bg);
}

.p-pricing__lead {
  font-size: clamp(1.4rem, 2vw, 1.6rem);
  color: var(--aristo-muted);
  max-width: 44em;
  line-height: 2.1;
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}

.p-pricing__wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-inline: calc(-1 * var(--pad-side));
  padding-inline: var(--pad-side);
  padding-bottom: 0.4rem;
}

.p-pricing__table {
  width: 100%;
  min-width: 72rem;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid rgba(184, 223, 240, 0.45);
  border-radius: 1.6rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(26, 46, 59, 0.04);
}

.p-pricing__table th,
.p-pricing__table td {
  padding: 1.6rem 1.4rem;
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid rgba(184, 223, 240, 0.28);
}

.p-pricing__table thead th {
  padding: 2.4rem 1.4rem 2rem;
  background: rgba(238, 246, 251, 0.85);
  border-bottom: 1px solid rgba(184, 223, 240, 0.4);
}

.p-pricing__table tbody tr:last-child th,
.p-pricing__table tbody tr:last-child td {
  border-bottom: none;
}

.p-pricing__col--feature {
  width: 34%;
  min-width: 18rem;
  text-align: left;
  font-family: var(--font-en);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--aristo-muted);
}

.p-pricing__feature {
  text-align: left;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.65;
  color: var(--aristo-text);
  background: #fff;
}

.p-pricing__plan {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.p-pricing__price {
  display: block;
  font-family: var(--font-en);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--aristo-text);
  margin-bottom: 0.35rem;
}

.p-pricing__price em {
  font-style: normal;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.p-pricing__price--contact {
  font-size: 1.5rem;
  font-weight: 600;
}

.p-pricing__init {
  display: block;
  font-size: 1.2rem;
  color: var(--aristo-muted);
}

.p-pricing__badge {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.35em 1em;
  border-radius: 999px;
  background: rgba(184, 223, 240, 0.65);
  color: var(--jaftas-blue);
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.p-pricing__col--active {
  background: rgba(232, 244, 252, 0.72);
  box-shadow: inset 0 0 0 1px rgba(184, 223, 240, 0.55);
}

.p-pricing__table thead .p-pricing__col--active {
  background: rgba(214, 236, 248, 0.95);
}

.p-pricing__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  position: relative;
}

.p-pricing__mark--yes {
  background: rgba(45, 106, 79, 0.1);
  color: #2d6a4f;
}

.p-pricing__mark--yes::before {
  content: "";
  width: 0.55rem;
  height: 0.95rem;
  border: solid 2px currentColor;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}

.p-pricing__mark--no {
  background: rgba(154, 59, 59, 0.08);
  color: rgba(154, 59, 59, 0.42);
}

.p-pricing__mark--no::before,
.p-pricing__mark--no::after {
  content: "";
  position: absolute;
  width: 1rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.p-pricing__mark--no::before { transform: rotate(45deg); }
.p-pricing__mark--no::after { transform: rotate(-45deg); }

.p-pricing__note {
  margin-top: 2.4rem;
  font-size: 1.3rem;
  color: var(--aristo-muted);
  line-height: 2;
}

/* Security */
.p-security {
  padding: clamp(8rem, 12vw, 12rem) 0;
  background: var(--aristo-bg);
}

.p-security__lead {
  font-size: 1.5rem;
  color: var(--aristo-muted);
  max-width: 44em;
  margin-bottom: 4rem;
  line-height: 2.1;
}

.p-security__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: clamp(6rem, 10vw, 8rem);
}

.p-security__item {
  background: #fff;
  padding: 2.8rem;
  border: 1px solid rgba(0,0,0,0.06);
}

.p-security__item h3 {
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 1.2rem;
  line-height: 1.55;
}

.p-security__item p { font-size: 1.4rem; color: var(--aristo-muted); line-height: 1.95; }

.p-faq__title {
  font-family: var(--font-en);
  font-size: 2.4rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.p-faq__item { border-top: 1px solid rgba(0,0,0,0.1); }
.p-faq__item:last-child { border-bottom: 1px solid rgba(0,0,0,0.1); }

.p-faq__item summary {
  padding: 2rem 0;
  font-size: 1.6rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.p-faq__item summary::-webkit-details-marker { display: none; }
.p-faq__item summary::after { content: "+"; font-size: 2rem; font-weight: 300; color: var(--aristo-muted); }
.p-faq__item[open] summary::after { transform: rotate(45deg); }

.p-faq__item p {
  padding-bottom: 2rem;
  font-size: 1.4rem;
  color: var(--aristo-muted);
  line-height: 2.1;
}

/* JAFTAS Contact */
.p-contact { padding: clamp(1.2rem, 2.5vw, 2.5rem); }

.p-contact__shell {
  border-radius: 1.2rem;
  background: var(--jaftas-grad);
  overflow: hidden;
}

.p-contact__inner { padding: clamp(4rem, 7vw, 6.5rem) 0; }

.p-contact__head { margin-bottom: 3.2rem; }

.p-contact__head .p-result__label { color: #fff; }

.p-contact__title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.45;
  margin: 1.6rem 0 1.2rem;
}

.p-contact__head p { font-size: 1.4rem; color: rgba(255,255,255,0.9); line-height: 1.85; }

.p-contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.p-contact__form label {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.p-contact__form label span {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
}

.p-contact__req {
  font-size: 0.95rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255, 220, 220, 0.95);
  text-transform: none;
  margin-left: 0.4em;
}

.p-contact__form input,
.p-contact__form select,
.p-contact__form textarea {
  padding: 1.4rem 1.6rem;
  border: none;
  border-radius: 0.4rem;
  font-family: var(--font-ja);
  font-size: 1.5rem;
  background: rgba(255,255,255,0.95);
}

.p-contact__note {
  text-align: center;
  font-size: 1.3rem;
  color: rgba(255,255,255,0.9);
  min-height: 1.4em;
}

/* Legal subpages */
.l-header--sub {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 var(--pad-side);
  background: rgba(238, 246, 251, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(84, 155, 222, 0.12);
}

.l-header--sub .l-header__logo {
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: inherit;
}

.p-legal {
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(6rem, 12vw, 10rem);
  background: var(--aristo-bg);
}

.p-legal__head {
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}

.p-legal__en {
  font-family: var(--font-en);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 0.8rem;
}

.p-legal__ja {
  font-size: 1.4rem;
  color: var(--aristo-muted);
  letter-spacing: 0.1em;
}

.p-legal__updated {
  margin-top: 1.2rem;
  font-size: 1.3rem;
  color: var(--aristo-muted);
}

.p-legal__body {
  background: rgba(255, 255, 255, 0.55);
  border-radius: 1.2rem;
  padding: clamp(2.4rem, 5vw, 4rem);
  box-shadow: 0 12px 32px rgba(26, 46, 59, 0.04);
}

.p-legal__section + .p-legal__section {
  margin-top: 3.2rem;
  padding-top: 3.2rem;
  border-top: 1px solid rgba(184, 223, 240, 0.45);
}

.p-legal__section h2 {
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  line-height: 1.55;
}

.p-legal__section p,
.p-legal__section li {
  font-size: 1.45rem;
  color: var(--aristo-muted);
  line-height: 2.1;
}

.p-legal__section ul {
  margin: 1rem 0 0 1.4em;
}

.p-legal__section li + li { margin-top: 0.6rem; }

.p-legal__section a {
  color: var(--box-blue);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.p-legal__back {
  display: inline-flex;
  margin-top: 3rem;
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--box-blue);
  border-bottom: 1px solid currentColor;
}

/* Footer */
.l-footer {
  padding: 4.8rem var(--pad-side) 5.6rem;
  text-align: center;
  background: var(--aristo-bg);
  border-top: 1px solid rgba(0,0,0,0.06);
}

.l-footer__nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.6rem;
}

.l-footer__nav a {
  font-size: 1.2rem;
  color: var(--aristo-muted);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.3s var(--ease);
}

.l-footer__nav a:hover { color: var(--aristo-text); }

@media (max-width: 767px) {
  .l-footer {
    padding: 3.6rem var(--pad-side) 4.8rem;
  }

  .l-footer__nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem 1.2rem;
    max-width: 26rem;
    margin-inline: auto;
    margin-bottom: 1.6rem;
  }

  .l-footer__nav a {
    font-size: 1.1rem;
    letter-spacing: 0.04em;
    padding: 0.4rem 0;
  }

  .l-footer__nav a:last-child {
    grid-column: 1 / -1;
    margin-top: 0.4rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }
}

.l-footer__brand {
  font-family: var(--font-en);
  font-size: 1.3rem;
  letter-spacing: 0.12em;
}

.l-footer__copy {
  margin-top: 0.8rem;
  font-size: 1.2rem;
  color: var(--aristo-muted);
}

/* Split text animation */
.js-split-text .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(110%) rotate(8deg);
  transition: transform 0.6s var(--ease2), opacity 0.6s;
}

.js-split-text.is-show .char {
  opacity: 1;
  transform: none;
}

.js-split-text .char.is-space { min-width: 0.25em; }

/* Scroll animations */
.js-anime {
  opacity: 0;
  transform: translateY(3rem);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js-anime.is-show { opacity: 1; transform: none; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js-split-text .char,
  .js-anime,
  .p-result__card,
  .p-service__item,
  .p-workflow__slide,
  .paint-head__txt,
  .paint-head__bg,
  .wave-stroke,
  .item-body,
  .p-hero__phrase,
  .p-hero__logo-final,
  .p-hero__content {
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
    max-height: none !important;
    visibility: visible !important;
  }
  .p-hero__phrase { display: none; }
  .p-hero__logo-final { position: relative; opacity: 1 !important; }
  .logo-mark,
  .logo-rep, .logo-it, .logo-sq, .logo-ja { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* Mobile */
@media (max-width: 1023px) {
  .l-header__nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 2.4rem;
    background: var(--aristo-bg);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s var(--ease), opacity 0.4s;
  }

  .l-header__nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .l-header__cv { display: none; }
  .l-header__toggle { display: flex; }

  .p-result__grid,
  .p-security__grid { grid-template-columns: 1fr; }

  .p-pricing__table { min-width: 68rem; }

  .p-pricing__col--feature,
  .p-pricing__feature {
    position: sticky;
    left: 0;
    z-index: 2;
    box-shadow: 4px 0 12px rgba(26, 46, 59, 0.04);
  }

  .p-service__body {
    position: relative;
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 0;
  }

  .p-philosophy__body { grid-template-columns: 1fr; }

  .p-hero__animation {
    --hero-logo-size: clamp(2.8rem, 8.2vw, 3.6rem);
    --hero-logo-tracking: 0.05em;
    --hero-phrase-scale: 1.18;
    height: clamp(20rem, 46vw, 27rem);
    margin-bottom: clamp(1.2rem, 3vw, 1.8rem);
  }

  .p-hero__phrase--left {
    transform: translate(calc(-50% - clamp(4.2rem, 12.5vw, 5.8rem)), calc(-50% - clamp(5.2rem, 13.5vw, 6.8rem)));
  }

  .p-hero__phrase--right {
    transform: translate(calc(-50% + clamp(4.2rem, 12.5vw, 5.8rem)), calc(-50% + clamp(5.2rem, 13.5vw, 6.8rem)));
  }

  .phrase-tail,
  .phrase-pre {
    font-size: 0.86em;
    letter-spacing: 0.02em;
  }

  .logo-ja {
    font-size: clamp(1rem, 2.6vw, 1.15rem);
    margin-top: clamp(1.5rem, 3.2vw, 2rem);
  }

  .p-hero__lead {
    font-size: clamp(1.65rem, 4vw, 1.9rem);
    letter-spacing: 0.1em;
    margin-bottom: 0.9rem;
  }

  .p-hero__sub-en {
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    letter-spacing: 0.38em;
    margin-bottom: 1.2rem;
  }

  .p-hero__definition {
    font-size: 1.2rem;
    line-height: 1.85;
    margin-bottom: 1.2rem;
  }

  .p-hero__copy {
    font-size: 1.3rem;
    line-height: 1.95;
  }

  .p-service__visual-sticky {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 5;
    height: min(26rem, 70vw);
    margin-bottom: 0;
    transition: transform 0.65s var(--ease);
    pointer-events: none;
  }

  .p-service__list {
    position: relative;
    z-index: 1;
    padding-top: min(28rem, 74vw);
  }

  .p-result__title-ja {
    font-size: clamp(1.2rem, 3.6vw, 1.6rem);
    letter-spacing: 0.04em;
  }

  .p-service__visuals-wrap {
    width: min(24rem, 70vw);
    height: min(24rem, 70vw);
    transform: translateZ(-12rem);
  }

  .p-service__face--front { transform: rotateY(0deg) translateZ(12rem); }
  .p-service__face--right { transform: rotateY(120deg) translateZ(12rem); }
  .p-service__face--back { transform: rotateY(240deg) translateZ(12rem); }

  .p-service__list { gap: 4.8rem; }

  .p-workflow__slide {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 8rem;
  }

  .p-workflow__pager {
    right: 50%;
    transform: translateX(50%);
    flex-direction: row;
    bottom: 2rem;
    gap: 0.8rem;
  }
}

@media (max-width: 480px) {
  .p-hero__animation {
    --hero-logo-size: clamp(2.55rem, 7.5vw, 3.2rem);
  }

  .p-hero__phrase--left {
    transform: translate(calc(-50% - clamp(3.4rem, 10.5vw, 4.8rem)), calc(-50% - clamp(4.6rem, 12vw, 5.8rem)));
  }

  .p-hero__phrase--right {
    transform: translate(calc(-50% + clamp(3.4rem, 10.5vw, 4.8rem)), calc(-50% + clamp(4.6rem, 12vw, 5.8rem)));
  }
}
