:root {
  --formal-ink: #171147;
  --formal-muted: #67608a;
  --formal-pink: #e33ca7;
  --formal-violet: #722bd3;
  --formal-orange: #ff9b62;
  --formal-line: rgba(96, 66, 160, 0.16);
  --formal-card: rgba(255, 255, 255, 0.82);
  --formal-shadow: 0 24px 70px rgba(53, 23, 105, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.formal-home-body {
  margin: 0;
  overflow-x: hidden;
  color: var(--formal-ink);
  background:
    radial-gradient(circle at 18% 4%, rgba(255, 220, 244, 0.72), transparent 31rem),
    radial-gradient(circle at 86% 0%, rgba(213, 235, 255, 0.86), transparent 30rem),
    linear-gradient(180deg, #fff 0%, #fff8ff 44%, #f8f5ff 100%);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
}

body.formal-home-body a {
  color: inherit;
}

body.formal-home-body main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.formal-home {
  min-height: 100vh;
  overflow: clip;
}

.formal-alert,
.formal-preview {
  width: min(1120px, calc(100% - 40px));
  margin: 20px auto;
  padding: 16px 18px;
  border: 1px solid rgba(227, 60, 167, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--formal-shadow);
}

.formal-mobile {
  display: none;
}

.formal-desktop {
  display: block;
  min-width: 1000px;
}

.formal-desktop-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 310px 1fr 250px;
  align-items: center;
  gap: 24px;
  width: min(1410px, calc(100% - 60px));
  margin: 0 auto;
  padding: 24px 0;
}

.formal-logo {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: #151045;
}

.formal-logo span {
  width: 34px;
  height: 34px;
  transform: rotate(45deg);
  border: 3px solid #1d1956;
  border-radius: 8px;
  box-shadow: 14px -14px 0 -9px #f05aa8, -14px 14px 0 -9px #8a36e4;
}

.formal-logo b {
  font-size: 27px;
  letter-spacing: 0;
  white-space: nowrap;
}

.formal-desktop-header nav {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 2vw, 34px);
  font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.formal-desktop-header nav a,
.formal-header-actions a,
.formal-footer a,
.formal-section-copy a,
.formal-network span {
  text-decoration: none;
}

.formal-header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
}

.formal-header-actions a {
  min-height: 42px;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.formal-header-actions a:first-child {
  color: #fff;
  background: rgba(10, 6, 35, 0.78);
}

.formal-header-actions a:last-child {
  color: #fff;
  background: linear-gradient(135deg, #ef4db0, #9338df);
  box-shadow: 0 14px 28px rgba(142, 53, 214, 0.26);
}

.formal-vista {
  position: relative;
  display: grid;
  grid-template-areas: "panel media story";
  grid-template-columns: minmax(456px, 0.9fr) minmax(490px, 0.88fr) minmax(340px, 0.64fr);
  column-gap: clamp(10px, 1vw, 18px);
  align-items: center;
  justify-content: center;
  width: min(1688px, calc(100vw - 24px));
  margin: 0 auto;
  min-height: 800px;
  padding: 108px clamp(18px, 2vw, 30px) 56px;
  overflow: visible;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 43% 47%, rgba(255, 213, 246, 0.64), transparent 30rem),
    radial-gradient(ellipse at 64% 28%, rgba(184, 210, 255, 0.58), transparent 31rem),
    radial-gradient(ellipse at 66% 76%, rgba(255, 163, 225, 0.28), transparent 25rem),
    linear-gradient(120deg, #ffffff 0%, #fff5fd 38%, #f4e8ff 65%, #e9ebff 100%);
}

.formal-vista-stage {
  display: contents;
}

.formal-vista::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(165deg, transparent 0 58%, rgba(255, 128, 219, 0.14) 59% 59.6%, transparent 60.2%),
    linear-gradient(171deg, transparent 0 66%, rgba(118, 223, 255, 0.18) 67% 67.5%, transparent 68%);
}

.formal-vista::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -12%;
  right: -12%;
  bottom: -38px;
  height: 292px;
  background:
    radial-gradient(ellipse at 58% 40%, rgba(255,255,255,0.94), transparent 31%),
    radial-gradient(ellipse at 42% 72%, rgba(255, 213, 246, 0.28), transparent 35%),
    linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.96) 74%);
  filter: blur(0.2px);
}

.formal-vista-media {
  position: relative;
  grid-area: media;
  min-width: 0;
  height: clamp(720px, 58vw, 850px);
  z-index: 1;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.formal-vista-visual {
  position: relative;
  --formal-vista-visual-y: 0px;
  width: min(108%, 740px);
  aspect-ratio: 0.76 / 1;
  height: auto;
  max-height: 112%;
  min-width: 0;
  transform: translateX(1%) translateY(var(--formal-vista-visual-y));
}

.formal-vista-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 50%;
  border-radius: 50% / 42%;
  filter: saturate(1.08) contrast(1.02);
  box-shadow: 0 44px 130px rgba(129, 75, 170, 0.2);
}

.formal-ai-analysis-overlay {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  border-radius: 50% / 42%;
  pointer-events: none;
  opacity: 0.74;
  mix-blend-mode: screen;
}

.formal-ai-analysis-overlay::before,
.formal-ai-analysis-overlay::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.formal-ai-analysis-overlay::before {
  z-index: 1;
  left: 39%;
  top: 18%;
  width: 48%;
  height: 58%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 66% 20%, rgba(255, 255, 255, 0.24), transparent 7%),
    radial-gradient(ellipse at 55% 42%, rgba(255, 255, 255, 0.16), transparent 8%),
    linear-gradient(114deg, transparent 43%, rgba(255, 255, 255, 0.14) 48%, rgba(235, 179, 255, 0.1) 52%, transparent 59%);
  filter: blur(5px);
  opacity: 0.48;
}

.formal-ai-analysis-overlay::after {
  z-index: 0;
  left: 31%;
  top: 9%;
  width: 64%;
  height: 78%;
  border-radius: 50% / 43%;
  box-shadow:
    inset -18px 8px 34px rgba(255, 255, 255, 0.16),
    inset 12px 24px 42px rgba(229, 130, 255, 0.13),
    0 0 22px rgba(255, 185, 241, 0.12);
  opacity: 0.58;
  animation: formal-ai-rim-breathe 10s ease-in-out infinite;
}

.formal-ai-landmarks,
.formal-ai-scan,
.formal-ai-glow,
.formal-ai-particle {
  position: absolute;
  pointer-events: none;
}

.formal-ai-landmarks {
  left: 36%;
  top: 14%;
  width: 55%;
  height: 62%;
  fill: none;
  opacity: 0.68;
  filter: drop-shadow(0 0 12px rgba(255, 172, 238, 0.38));
  animation: formal-ai-landmark-breathe 6.5s ease-in-out infinite;
}

.formal-ai-landmark-points circle {
  fill: rgba(255, 255, 255, 0.98);
  stroke: rgba(255, 187, 237, 0.46);
  stroke-width: 0.28;
}

.formal-ai-landmark-lines path {
  stroke: rgba(255, 255, 255, 0.52);
  stroke-width: 0.28;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 2.8 5.2;
  animation: formal-ai-line-drift 9s linear infinite;
}

.formal-ai-scan {
  left: 35%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.82), rgba(245, 142, 228, 0.36), transparent);
  box-shadow: 0 0 16px rgba(255, 177, 239, 0.3);
  opacity: 0.4;
  transform: rotate(-8deg);
}

.formal-ai-scan-one {
  top: 35%;
  animation: formal-ai-scan-one 8.5s ease-in-out infinite;
}

.formal-ai-scan-two {
  top: 54%;
  opacity: 0.24;
  animation: formal-ai-scan-two 11s ease-in-out infinite;
}

.formal-ai-glow {
  left: 44%;
  top: 18%;
  width: 44%;
  height: 62%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 66% 21%, rgba(255, 255, 255, 0.25), transparent 14%),
    radial-gradient(circle at 56% 52%, rgba(236, 104, 222, 0.21), transparent 26%),
    radial-gradient(circle at 72% 65%, rgba(169, 182, 255, 0.18), transparent 28%);
  filter: blur(8px);
  opacity: 0.56;
  animation: formal-ai-glow-breathe 10s ease-in-out infinite;
}

.formal-ai-particle {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 12px rgba(246, 128, 224, 0.54);
  opacity: 0.38;
  animation: formal-ai-particle-float 7.5s ease-in-out infinite;
}

.formal-ai-particle-1 { left: 43%; top: 24%; animation-delay: -0.4s; }
.formal-ai-particle-2 { left: 57%; top: 18%; animation-delay: -1.6s; }
.formal-ai-particle-3 { left: 75%; top: 29%; animation-delay: -2.8s; }
.formal-ai-particle-4 { left: 84%; top: 43%; animation-delay: -3.7s; }
.formal-ai-particle-5 { left: 68%; top: 47%; animation-delay: -5.2s; }
.formal-ai-particle-6 { left: 55%; top: 56%; animation-delay: -6.1s; }
.formal-ai-particle-7 { left: 78%; top: 62%; animation-delay: -1.1s; }
.formal-ai-particle-8 { left: 64%; top: 72%; animation-delay: -4.4s; }
.formal-ai-particle-9 { left: 49%; top: 78%; animation-delay: -7.1s; }
.formal-ai-particle-10 { left: 88%; top: 70%; animation-delay: -2.1s; }
.formal-ai-particle-11 { left: 39%; top: 46%; animation-delay: -3.2s; }
.formal-ai-particle-12 { left: 72%; top: 83%; animation-delay: -5.7s; }
.formal-ai-particle-13 { left: 50%; top: 34%; animation-delay: -6.8s; }
.formal-ai-particle-14 { left: 82%; top: 52%; animation-delay: -0.9s; }

.formal-ai-particle-3,
.formal-ai-particle-7,
.formal-ai-particle-12 {
  animation-name: formal-ai-particle-spark;
}

.formal-ai-aura {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 46%;
  width: min(540px, 36vw);
  height: min(520px, 35vw);
  transform: translate(-38%, -46%);
  pointer-events: none;
  opacity: 0.78;
}

.formal-ai-aura::before,
.formal-ai-aura::after {
  content: "";
  position: absolute;
  inset: 10% 16%;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 50% / 44%;
  filter: drop-shadow(0 0 14px rgba(239, 87, 205, 0.38));
}

.formal-ai-aura::after {
  inset: 21% 23%;
  border-color: rgba(183, 221, 255, 0.44);
  transform: rotate(-13deg);
}

.formal-ai-aura span {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0 18px rgba(237, 82, 199, 0.82);
  animation: formal-particle-pulse 3.8s ease-in-out infinite;
}

.formal-ai-aura span:nth-child(1) { left: 21%; top: 18%; }
.formal-ai-aura span:nth-child(2) { left: 58%; top: 12%; animation-delay: 0.4s; }
.formal-ai-aura span:nth-child(3) { left: 78%; top: 39%; animation-delay: 0.8s; }
.formal-ai-aura span:nth-child(4) { left: 52%; top: 60%; animation-delay: 1.2s; }
.formal-ai-aura span:nth-child(5) { left: 29%; top: 72%; animation-delay: 1.6s; }
.formal-ai-aura span:nth-child(6) { left: 72%; top: 77%; animation-delay: 2s; }

@keyframes formal-particle-pulse {
  0%, 100% {
    opacity: 0.42;
    transform: scale(0.82);
  }
  45% {
    opacity: 1;
    transform: scale(1.24);
  }
}

@keyframes formal-ai-landmark-breathe {
  0%, 100% {
    opacity: 0.56;
    transform: translate3d(0, 0, 0);
  }
  50% {
    opacity: 0.76;
    transform: translate3d(0, -2px, 0);
  }
}

@keyframes formal-ai-line-drift {
  to {
    stroke-dashoffset: -32;
  }
}

@keyframes formal-ai-scan-one {
  0%, 100% {
    opacity: 0.16;
    transform: translateY(-16px) rotate(-8deg);
  }
  46% {
    opacity: 0.44;
    transform: translateY(18px) rotate(-8deg);
  }
}

@keyframes formal-ai-scan-two {
  0%, 100% {
    opacity: 0.1;
    transform: translateY(16px) rotate(-12deg);
  }
  52% {
    opacity: 0.26;
    transform: translateY(-18px) rotate(-12deg);
  }
}

@keyframes formal-ai-glow-breathe {
  0%, 100% {
    opacity: 0.42;
    transform: scale(0.98);
  }
  50% {
    opacity: 0.64;
    transform: scale(1.02);
  }
}

@keyframes formal-ai-rim-breathe {
  0%, 100% {
    opacity: 0.48;
    transform: scale(0.985);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.015);
  }
}

@keyframes formal-ai-particle-float {
  0%, 100% {
    opacity: 0.2;
    transform: translate3d(0, 0, 0) scale(0.84);
  }
  45% {
    opacity: 0.68;
    transform: translate3d(4px, -7px, 0) scale(1.08);
  }
}

@keyframes formal-ai-particle-spark {
  0%, 72%, 100% {
    opacity: 0.22;
    transform: translate3d(0, 0, 0) scale(0.86);
    box-shadow: 0 0 10px rgba(246, 128, 224, 0.46);
  }
  80% {
    opacity: 0.82;
    transform: translate3d(3px, -6px, 0) scale(1.22);
    box-shadow:
      0 0 16px rgba(255, 255, 255, 0.78),
      0 0 22px rgba(246, 128, 224, 0.5);
  }
}

@media (prefers-reduced-motion: reduce) {
  .formal-ai-analysis-overlay::after,
  .formal-ai-landmarks,
  .formal-ai-landmark-lines path,
  .formal-ai-scan,
  .formal-ai-glow,
  .formal-ai-particle {
    animation: none;
  }

  .formal-ai-landmarks {
    opacity: 0.52;
  }

  .formal-ai-scan {
    opacity: 0.18;
  }

  .formal-ai-glow {
    opacity: 0.34;
  }

  .formal-ai-particle {
    opacity: 0.32;
  }
}

.formal-vista-panel {
  position: relative;
  grid-area: panel;
  z-index: 4;
  width: 100%;
  max-width: 620px;
  min-width: 0;
  padding-top: 42px;
}

.formal-vista-kicker {
  margin: 0 0 20px;
  color: #bf43a8;
  font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 900;
}

.formal-vista-panel h1 {
  margin: 0;
  font-size: clamp(34px, 3.35vw, 56px);
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0;
  text-shadow: 0 12px 30px rgba(255,255,255,0.84);
}

.formal-vista-panel h1 span {
  display: block;
  word-break: keep-all;
  overflow-wrap: normal;
}

.formal-vista-panel > p:not(.formal-vista-kicker):not(.formal-vista-brand) {
  margin: 24px 0 0;
  font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: 18px;
  line-height: 2;
  font-weight: 800;
}

.formal-vista-panel .formal-vista-brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 22px 0 0;
  padding: 8px 18px 8px 25px;
  border: 1px solid rgba(190, 107, 218, 0.14);
  border-radius: 20px;
  color: #8a2fc7;
  font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
  text-align: left;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 42px rgba(160, 73, 190, 0.08);
  backdrop-filter: blur(10px);
}

.formal-vista-panel .formal-vista-brand::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 3px;
  height: 76%;
  border-radius: 999px;
  background: linear-gradient(180deg, #7b4be8 0%, #e858b8 54%, #a6d8ff 100%);
  box-shadow: 0 0 10px rgba(209, 118, 224, 0.16);
  transform: translateY(-50%);
}

.formal-vista-panel .formal-vista-lead {
  display: grid;
  gap: 0.7em;
  max-width: min(100%, 620px);
  margin-top: 12px;
  color: #5f5586;
  font-size: 15px;
  line-height: 1.58;
  font-weight: 700;
}

.formal-vista-panel > p.formal-vista-lead:not(.formal-vista-kicker):not(.formal-vista-brand) {
  line-height: 1.58;
}

.formal-vista-panel .formal-vista-lead span {
  display: block;
  min-width: 0;
  word-break: normal;
  overflow-wrap: normal;
}

.formal-primary-cta,
.mobile-formal-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 72px;
  margin-top: 38px;
  padding: 0 46px;
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
  font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(135deg, #ff4fa6 0%, #d02cc1 50%, #ff9866 100%);
  box-shadow: 0 20px 44px rgba(191, 39, 174, 0.34), 0 4px 12px rgba(255, 145, 99, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.formal-primary-cta:hover,
.mobile-formal-primary:hover {
  transform: translateY(-2px);
  filter: saturate(1.08);
  box-shadow: 0 25px 54px rgba(191, 39, 174, 0.42), 0 5px 16px rgba(255, 145, 99, 0.22);
}

.formal-vista-panel .formal-primary-cta {
  margin-top: 22px;
}

.formal-primary-cta span,
.mobile-formal-primary span {
  width: 28px;
  height: 22px;
  border: 4px solid currentColor;
  border-radius: 7px;
  position: relative;
}

.formal-primary-cta span::before,
.mobile-formal-primary span::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 7px;
  width: 10px;
  height: 6px;
  border-radius: 4px 4px 0 0;
  background: currentColor;
}

.formal-primary-cta::after,
.mobile-formal-primary::after {
  content: "›";
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #d538ad;
  background: #fff;
  font-size: 34px;
  line-height: 1;
}

.formal-vista-assurance {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
}

.formal-vista-assurance b {
  position: relative;
  padding: 10px 15px 10px 34px;
  border: 1px solid rgba(116, 67, 199, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 30px rgba(82, 45, 136, 0.08);
  font-size: 12px;
}

.formal-vista-assurance b::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 10px;
  height: 10px;
  border: 2px solid #8e4fd4;
  border-radius: 50%;
  transform: translateY(-50%);
}

.formal-hero-outcomes {
  position: relative;
  z-index: 9;
  display: grid;
  grid-template-columns: minmax(390px, 0.34fr) minmax(720px, 0.66fr);
  gap: clamp(20px, 1.8vw, 30px);
  align-items: start;
  justify-content: center;
  width: min(1450px, calc(100vw - 48px));
  margin: -26px auto 86px;
  padding: 34px 32px;
  border: 1px solid rgba(224, 73, 184, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 62px rgba(153, 73, 174, 0.11);
}

.formal-hero-outcomes > div:first-child {
  min-width: 0;
  align-self: start;
}

.formal-hero-outcomes > div:first-child p {
  margin: 0 0 8px;
  color: #bf43a8;
  font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.formal-hero-outcomes h2 {
  margin: 0;
  color: #1e1748;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(20px, 1.65vw, 28px);
  line-height: 1.55;
  font-weight: 800;
  letter-spacing: 0;
}

.formal-hero-outcome-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
  align-self: stretch;
}

.formal-hero-outcome-grid article {
  min-width: 0;
  min-height: 116px;
  padding: 18px 16px;
  border: 1px solid rgba(224, 73, 184, 0.11);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-sizing: border-box;
}

.formal-hero-outcome-grid h3 {
  margin: 0 0 7px;
  color: #8b1d78;
  font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: 0;
}

.formal-hero-outcome-grid p {
  margin: 0;
  color: #5f5586;
  font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: 12px;
  line-height: 1.65;
  font-weight: 700;
}

.formal-vista-story {
  position: relative;
  grid-area: story;
  align-self: end;
  justify-self: stretch;
  margin-left: -70px;
  margin-bottom: 20px;
  z-index: 8;
  display: grid;
  gap: clamp(7px, 0.66vw, 9px);
  width: 100%;
  min-width: 0;
  padding: clamp(22px, 1.8vw, 30px) clamp(24px, 1.95vw, 32px) clamp(20px, 1.68vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: clamp(20px, 1.76vw, 24px);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 36px 92px rgba(105, 60, 152, 0.29);
  backdrop-filter: blur(18px);
}

.formal-vista-story span,
.formal-vista-story em,
.formal-vista-story b {
  font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
  color: #8a4fc3;
  font-style: normal;
  font-weight: 800;
}

.formal-vista-story span {
  font-size: clamp(13px, 1.06vw, 16px);
  color: #5f2ea7;
}

.formal-vista-story em {
  font-size: clamp(10.5px, 0.86vw, 13px);
}

.formal-vista-story strong {
  font-size: clamp(23px, 1.9vw, 30px);
  line-height: 1.42;
}

.formal-vista-story ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(6px, 0.52vw, 8px);
  margin: clamp(6px, 0.52vw, 8px) 0 0;
  padding: 0;
  list-style: none;
  font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
}

.formal-vista-story li {
  padding: clamp(6px, 0.52vw, 8px) clamp(7px, 0.65vw, 10px);
  border: 1px solid rgba(130, 72, 196, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: #6240aa;
  font-size: clamp(10px, 0.78vw, 12px);
  font-weight: 800;
  text-align: center;
}

.formal-vista-score-demo {
  gap: clamp(5px, 0.5vw, 7px);
  width: min(100%, clamp(350px, 22vw, 370px));
  min-height: clamp(175px, 12.4vw, 190px);
  padding: clamp(9px, 0.68vw, 12px) clamp(17px, 1.25vw, 21px) clamp(8px, 0.62vw, 10px);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 38px 96px rgba(88, 50, 145, 0.31), 0 0 0 1px rgba(255, 255, 255, 0.52) inset;
}

.formal-score-card-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr);
  gap: clamp(7px, 0.72vw, 11px);
  align-items: center;
  width: 100%;
  min-width: 0;
  height: 100%;
}

.formal-score-card-summary,
.formal-score-card-details {
  min-width: 0;
}

.formal-score-card-summary {
  display: grid;
  gap: 1px;
  align-content: center;
}

.formal-score-card-details {
  align-self: center;
}

.formal-vista-story .formal-vista-story-kicker {
  color: #6c42b4;
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.3;
  white-space: nowrap;
}

.formal-score-demo-main {
  display: grid;
  justify-items: start;
  gap: 1px;
  min-width: 0;
  margin-top: 0;
}

.formal-score-demo-main span {
  color: #8a4fc3;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.2;
  white-space: nowrap;
}

.formal-score-demo-main strong {
  display: block;
  color: #1d174f;
  font-size: clamp(54px, 4.1vw, 66px);
  line-height: 0.98;
  letter-spacing: 0;
  white-space: nowrap;
}

.formal-score-demo-main strong span {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.formal-score-demo-main em {
  color: #52378f;
  font-size: clamp(15px, 1.12vw, 17px);
  line-height: 1.2;
  white-space: nowrap;
}

.formal-vista-score-demo .formal-score-demo-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}

.formal-score-demo-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 8px;
  row-gap: 2px;
  min-width: 0;
  padding: 0;
  border-radius: 14px;
  text-align: left;
}

.formal-score-demo-list li > span {
  min-width: 0;
  color: #4e4574;
  font-size: clamp(10px, 0.8vw, 11px);
  line-height: 1.25;
  overflow: hidden;
  overflow-wrap: normal;
  white-space: nowrap;
}

.formal-score-demo-list b {
  min-width: max-content;
  color: #1d174f;
  font-size: clamp(12px, 0.92vw, 14px);
  line-height: 1;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.formal-score-demo-list i {
  grid-column: 1 / -1;
  display: block;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(100, 71, 164, 0.12);
}

.formal-score-demo-list i span {
  display: block;
  width: var(--score-progress, 100%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8f57ff, #ed44bd 58%, #ff8c66);
  transform-origin: left center;
}

.formal-vista-score-demo.is-score-ready {
  animation: formal-score-card-in 640ms ease both;
}

.formal-vista-score-demo.is-score-ready .formal-score-demo-list li {
  opacity: 0;
  transform: translateY(6px);
  animation: formal-score-row-in 420ms ease forwards;
}

.formal-vista-score-demo.is-score-ready .formal-score-demo-list li:nth-child(1) { animation-delay: 160ms; }
.formal-vista-score-demo.is-score-ready .formal-score-demo-list li:nth-child(2) { animation-delay: 280ms; }
.formal-vista-score-demo.is-score-ready .formal-score-demo-list li:nth-child(3) { animation-delay: 400ms; }
.formal-vista-score-demo.is-score-ready .formal-score-demo-list li:nth-child(4) { animation-delay: 520ms; }

.formal-vista-score-demo.is-score-ready .formal-score-demo-list i span {
  animation: formal-score-bar-in 780ms ease both;
}

@media (max-width: 1090px) {
  .formal-score-card-inner {
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
    gap: 6px;
  }

  .formal-score-demo-main strong {
    font-size: clamp(34px, 3.6vw, 40px);
  }

  .formal-score-demo-list li {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 5px;
    row-gap: 3px;
    padding: 2px 0;
  }

  .formal-score-demo-list li > span {
    font-size: 9px;
  }

  .formal-score-demo-list b {
    font-size: 10px;
    text-align: right;
  }

  .formal-score-demo-list i {
    height: 8px;
  }
}

@media (max-width: 900px) {
  .formal-score-card-inner {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .formal-score-demo-main strong {
    font-size: clamp(48px, 11vw, 54px);
  }
}

@keyframes formal-score-card-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes formal-score-row-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes formal-score-bar-in {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .formal-vista-score-demo.is-score-ready,
  .formal-vista-score-demo.is-score-ready .formal-score-demo-list li,
  .formal-vista-score-demo.is-score-ready .formal-score-demo-list i span {
    animation: none;
    opacity: 1;
  }

  .formal-vista-score-demo.is-score-ready .formal-score-demo-list li,
  .formal-vista-score-demo.is-score-ready .formal-score-demo-list i span {
    transform: none;
  }
}

.formal-future {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 380px) minmax(0, 1fr);
  column-gap: clamp(36px, 3.4vw, 52px);
  row-gap: 28px;
  align-items: start;
  width: min(1280px, calc(100vw - 96px));
  margin: -34px auto 0;
  padding: 74px 0 54px;
}

.formal-future::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -5vw;
  right: -5vw;
  top: -34px;
  height: 120px;
  background:
    radial-gradient(ellipse at 32% 18%, rgba(255, 218, 247, 0.34), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,0.82), rgba(255,255,255,0));
  pointer-events: none;
}

.formal-future > .formal-section-copy {
  min-width: 0;
  max-width: 100%;
}

.formal-section-copy p:first-child {
  color: #c37acb;
  font-size: 15px;
}

.formal-section-copy h2,
.formal-flow h2,
.formal-diagnosis h2,
.formal-night-cta h2 {
  margin: 12px 0 0;
  font-size: clamp(34px, 2.75vw, 46px);
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: normal;
}

.formal-nowrap {
  white-space: nowrap;
}

#formal-future-title span {
  display: block;
  max-width: 100%;
  word-break: keep-all;
  overflow-wrap: normal;
}

#formal-future-title span:first-child {
  white-space: nowrap;
}

#formal-future-title .formal-nowrap {
  white-space: nowrap;
  overflow-wrap: normal;
}

.formal-section-copy p:not(:first-child),
.formal-diagnosis-copy > p,
.formal-night-cta p {
  font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
  font-weight: 700;
  line-height: 1.9;
}

.formal-section-copy p:not(:first-child) {
  max-width: 29em;
  font-size: 14px;
}

.formal-section-copy a {
  display: inline-flex;
  margin-top: 26px;
  padding: 13px 23px;
  border: 1px solid rgba(77, 48, 130, 0.2);
  border-radius: 8px;
  font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
  font-weight: 800;
  background: #fff;
}

.formal-future > .formal-section-copy a {
  min-height: 48px;
  padding: 15px 28px;
  box-shadow: 0 12px 28px rgba(108, 63, 180, 0.1), 0 0 18px rgba(232, 88, 184, 0.08);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.formal-future-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.3vw, 20px);
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.formal-future-cards article {
  position: relative;
  --future-card-offset: 0px;
  aspect-ratio: 4 / 5;
  min-height: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 18px 34px rgba(24, 10, 58, 0.15);
  transform-origin: center bottom;
  transform: translateY(var(--future-card-offset));
  transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
  will-change: transform;
}

.formal-future-cards .future-card--2 { --future-card-offset: 6px; }
.formal-future-cards .future-card--4 { --future-card-offset: 4px; }
.formal-future-cards .future-card--6 { --future-card-offset: 8px; }

.formal-future-cards img,
.formal-night-cta img,
.mobile-formal-rail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.formal-future-cards img,
.mobile-formal-rail img {
  transform: scale(1.12);
}

.formal-future-cards img {
  position: absolute;
  inset: 0;
  transition: transform 320ms ease, filter 320ms ease;
  will-change: transform;
}

.formal-future-cards article:nth-child(4) img,
.mobile-formal-rail article:nth-child(4) img {
  transform: scale(1.15);
  object-position: 47% center;
}

.formal-future-cards .future-card--1 img,
.mobile-formal-rail .future-card--1 img {
  object-position: 57% center;
}

.formal-future-cards .future-card--2 img,
.mobile-formal-rail .future-card--2 img {
  object-position: 50% center;
}

.formal-future-cards .future-card--3 img,
.mobile-formal-rail .future-card--3 img {
  object-position: 58% center;
}

.formal-future-cards .future-card--4 img,
.mobile-formal-rail .future-card--4 img {
  object-position: 47% center;
}

.formal-future-cards article:nth-child(5) img {
  object-position: 50% center;
}

.formal-future-cards article:nth-child(6) img {
  object-position: 43% center;
}

.mobile-formal-rail .future-card--5 img {
  object-position: 50% center;
}

.mobile-formal-rail .future-card--6 img {
  object-position: 43% center;
}

.formal-future-cards article::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 44%, rgba(13, 12, 43, 0.18) 62%, rgba(13, 12, 43, 0.84) 100%);
  transition: background 300ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .formal-future > .formal-section-copy a:hover {
    transform: translateY(-1px);
    border-color: rgba(130, 72, 196, 0.34);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 34px rgba(108, 63, 180, 0.14), 0 0 22px rgba(232, 88, 184, 0.1);
  }

  .formal-future-cards article:hover,
  .formal-future-cards article:focus-within {
    transform: translateY(calc(var(--future-card-offset) - 8px)) scale(1.03);
    border-color: rgba(255, 180, 236, 0.64);
    box-shadow: 0 24px 48px rgba(41, 18, 86, 0.22), 0 0 18px rgba(255, 161, 230, 0.1);
  }

  .formal-future-cards article:hover img,
  .formal-future-cards article:focus-within img {
    transform: scale(1.145);
    filter: saturate(1.06) contrast(1.02);
  }

  .formal-future-cards article:nth-child(4):hover img,
  .formal-future-cards article:nth-child(4):focus-within img {
    transform: scale(1.175);
  }

  .formal-future-cards article:hover::after,
  .formal-future-cards article:focus-within::after {
    background: linear-gradient(180deg, rgba(255, 151, 224, 0.04) 0%, rgba(10, 9, 36, 0.22) 58%, rgba(10, 9, 36, 0.88) 100%);
  }
}

.formal-future > .formal-section-copy a:focus-visible {
  outline: 3px solid rgba(232, 88, 184, 0.42);
  outline-offset: 4px;
  border-color: rgba(130, 72, 196, 0.44);
  box-shadow: 0 16px 34px rgba(108, 63, 180, 0.15), 0 0 0 5px rgba(232, 88, 184, 0.1);
}

@media (prefers-reduced-motion: reduce) {
  .formal-future-cards article,
  .formal-future-cards img,
  .formal-future-cards article::after {
    transition: none;
    will-change: auto;
  }

  .formal-future-cards article:hover,
  .formal-future-cards article:focus-within {
    transform: translateY(var(--future-card-offset));
  }

  .formal-future-cards article:hover img,
  .formal-future-cards article:focus-within img {
    transform: scale(1.12);
    filter: none;
  }

  .formal-future-cards article:nth-child(4):hover img,
  .formal-future-cards article:nth-child(4):focus-within img {
    transform: scale(1.15);
  }
}

.formal-future-cards div {
  position: absolute;
  z-index: 1;
  left: 15px;
  right: 15px;
  bottom: 15px;
  display: flex;
  flex-direction: column;
  color: #fff;
  font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
}

.formal-future-cards h3 {
  margin: 0;
  min-height: 39px;
  display: flex;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: balance;
}

.formal-future-cards p {
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.66;
  text-wrap: pretty;
}

.formal-network {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) repeat(5, minmax(142px, 1fr));
  align-items: center;
  gap: clamp(10px, 1.2vw, 18px);
  width: min(1280px, calc(100% - 72px));
  min-height: 94px;
  margin: 0 auto;
  padding: 0 clamp(18px, 2.6vw, 32px);
  border-top: 1px solid var(--formal-line);
  border-bottom: 1px solid var(--formal-line);
  background: rgba(255,255,255,0.74);
  box-sizing: border-box;
}

.formal-network p {
  min-width: 0;
  margin: 0;
  font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
  font-weight: 800;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: normal;
}

.formal-network span {
  min-width: 0;
  white-space: normal;
  text-align: center;
  font-size: clamp(13px, 0.95vw, 16px);
  line-height: 1.32;
  color: rgba(23, 17, 71, 0.8);
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: balance;
}

.formal-flow {
  display: grid;
  justify-items: center;
  padding: 62px max(4vw, 44px) 54px;
  text-align: center;
}

.formal-flow-stage {
  width: min(1180px, 100%);
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  box-sizing: border-box;
}

.formal-flow-stage > p {
  margin: 0;
  color: #5c4ba0;
  font-weight: 700;
}

.formal-flow .formal-flow-intro {
  width: min(900px, 92%);
  margin: 18px auto 0;
  color: #4c4372;
  font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.9;
  text-wrap: pretty;
}

.formal-flow ol {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 30px);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 62px auto 0;
  padding: 0;
  list-style: none;
  box-sizing: border-box;
}

.formal-flow ol::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 66px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, #f28bd6 13%, #c980ee 34%, #7e87ef 56%, #5bcfd0 77%, #53d7ee 88%, transparent 100%);
  box-shadow: 0 0 18px rgba(196, 122, 216, 0.24);
}

.formal-flow li {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.formal-flow li > span {
  font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.05em;
}

.formal-flow i {
  display: grid;
  place-items: center;
  width: clamp(78px, 7.2vw, 102px);
  height: clamp(78px, 7.2vw, 102px);
  margin: 8px auto 26px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.96) 47%, rgba(255,244,253,0.74));
  box-shadow: var(--formal-shadow), inset 0 0 0 1px rgba(140, 105, 230, 0.12);
}

.formal-flow i img {
  display: block;
  width: clamp(58px, 5.4vw, 76px);
  height: clamp(58px, 5.4vw, 76px);
  object-fit: contain;
  filter: drop-shadow(0 7px 15px rgba(120, 88, 220, 0.18));
}

.formal-flow h3 {
  margin: 0;
  font-size: 16px;
}

.formal-flow li p {
  max-width: 18em;
  margin-left: auto;
  margin-right: auto;
  font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: clamp(10.5px, 0.9vw, 12px);
  line-height: 1.75;
  text-wrap: balance;
}

.formal-flow-cta {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(420px, 100%);
  margin: 34px auto 0;
}

.formal-flow-cta p {
  margin: 0;
  color: #5f5482;
  font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
}

.formal-flow-cta-button {
  min-height: 50px;
  padding: 13px 22px;
  font-size: 16px;
}

.formal-diagnosis {
  display: grid;
  grid-template-columns: minmax(420px, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(20px, 2vw, 26px);
  align-items: center;
  width: min(1280px, calc(100% - 72px));
  margin: 0 auto 18px;
  padding: 64px 48px;
  border: 1px solid var(--formal-line);
  border-radius: 18px;
  background: rgba(255,255,255,0.82);
  box-shadow: 0 24px 80px rgba(35, 22, 85, 0.09);
}

.formal-diagnosis-copy ul {
  display: grid;
  gap: 20px;
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
  font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
}

.formal-diagnosis-copy li {
  display: grid;
  gap: 7px;
  padding: 0 0 20px 58px;
  border-bottom: 1px solid var(--formal-line);
}

.formal-diagnosis-copy b {
  font-size: 17px;
}

.formal-diagnosis-copy span {
  color: var(--formal-muted);
}

.formal-diagnosis-insights {
  display: none;
}

.formal-form-panel,
.mobile-formal-diagnosis {
  min-width: 0;
  border-radius: 14px;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 24px 72px rgba(25, 18, 63, 0.14);
}

.formal-upload-form {
  display: grid;
  gap: 20px;
  min-width: 0;
  margin: 0;
  padding: 30px;
  border: 1px solid rgba(55, 34, 101, 0.12);
  border-radius: 14px;
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 227, 249, 0.9), transparent 14rem),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(251,248,255,0.94));
  box-shadow: none;
  font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
}

.formal-upload-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
  gap: 20px;
  align-items: stretch;
  min-width: 0;
}

.formal-upload-heading {
  grid-column: 1 / -1;
  text-align: center;
}

.formal-upload-main > * {
  min-width: 0;
}

.formal-upload-heading p,
.formal-upload-heading h3,
.formal-upload-heading span {
  margin: 0;
}

.formal-upload-heading p {
  color: #6d49b7;
  font-size: 14px;
  font-weight: 900;
}

.formal-upload-heading h3 {
  margin-top: 5px;
  color: var(--formal-ink);
  font-size: 21px;
}

.formal-upload-heading span {
  display: block;
  margin-top: 8px;
  color: var(--formal-muted);
  font-size: 13px;
  line-height: 1.6;
}

.formal-dropzone {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  min-height: 250px;
  padding: 26px;
  overflow: hidden;
  border: 1.5px dashed rgba(112, 70, 182, 0.42);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.94), rgba(250,244,255,0.98)),
    radial-gradient(circle at 30% 18%, rgba(255, 114, 209, 0.2), transparent 9rem);
  color: var(--formal-ink);
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.formal-dropzone.is-dragover,
.formal-dropzone:focus-within,
.formal-dropzone.has-selected-file {
  border-color: #dd45ab;
  box-shadow: 0 0 0 4px rgba(221, 69, 171, 0.14), 0 18px 42px rgba(145, 67, 190, 0.14);
  transform: translateY(-1px);
}

.formal-dropzone.has-selected-file {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(255,241,252,0.98)),
    radial-gradient(circle at 70% 18%, rgba(233, 75, 181, 0.22), transparent 9rem);
}

.formal-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  opacity: 0;
}

.formal-dropzone-icon {
  width: 64px;
  height: 50px;
  border: 4px solid #311d69;
  border-radius: 15px;
  position: relative;
}

.formal-dropzone-icon::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 20px;
  width: 18px;
  height: 10px;
  border-radius: 8px 8px 0 0;
  background: #311d69;
}

.formal-dropzone-icon::after {
  content: "";
  position: absolute;
  inset: 13px 20px;
  border: 3px solid #e84bad;
  border-radius: 50%;
}

.formal-dropzone .photo-dropzone-title {
  font-size: 20px;
  font-weight: 900;
}

.formal-dropzone .photo-dropzone-copy,
.formal-file-name {
  max-width: 28ch;
  color: var(--formal-muted);
  font-size: 13px;
  line-height: 1.55;
}

.formal-file-name {
  display: inline-flex;
  justify-content: center;
  min-height: 28px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(111, 68, 182, 0.08);
  font-weight: 800;
}

.formal-upload-form.has-selected-file .formal-file-name {
  color: #7b176d;
  background: rgba(255, 117, 207, 0.16);
  box-shadow: inset 0 0 0 1px rgba(219, 69, 177, 0.18);
}

.formal-preview-frame {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid rgba(55, 34, 101, 0.12);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.9), rgba(247,243,255,0.92)),
    repeating-linear-gradient(45deg, rgba(110,70,180,0.04) 0 8px, transparent 8px 16px);
  color: var(--formal-muted);
  text-align: center;
}

.formal-preview-frame.has-image {
  align-content: stretch;
  background: #fff;
}

.formal-preview-frame img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.formal-preview-frame .preview-meta {
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  color: #4c3b78;
  background: rgba(246, 241, 255, 0.94);
  font-size: 12px;
  font-weight: 800;
}

.formal-photo-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.formal-secondary-button,
.formal-clear-button {
  min-height: 48px;
  border-radius: 10px;
  font-weight: 900;
}

.formal-secondary-button {
  border: 1px solid rgba(112, 70, 182, 0.18);
  background: #fff;
  color: #39276c;
}

.formal-clear-button {
  border: 1px solid rgba(213, 77, 111, 0.22);
  background: #fff7f9;
  color: #a82e55;
}

.formal-upload-status {
  grid-column: 1 / -1;
  min-height: 42px;
  margin: 0;
  padding: 11px 14px;
  border-radius: 10px;
  color: #31566c;
  background: #eaf8ff;
  font-size: 13px;
  line-height: 1.55;
}

.formal-upload-status[data-state="success"] {
  color: #176341;
  background: #eafaf1;
}

.formal-upload-status[data-state="error"] {
  color: #8b1e3f;
  background: #fff0f5;
}

.multi-photo-option {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(112, 70, 182, 0.14);
  border-radius: 14px;
  background: rgba(255,255,255,0.78);
}

.multi-photo-intro,
.multi-photo-fields,
.multi-photo-field {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.multi-photo-fields[hidden] {
  display: none !important;
}

.multi-photo-intro p {
  margin: 0;
  color: #34265f;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.45;
}

.multi-photo-intro p span {
  display: inline-block;
  color: inherit;
  font: inherit;
  white-space: nowrap;
}

.multi-photo-intro span,
.multi-photo-note,
.multi-photo-count,
.multi-photo-field small {
  margin: 0;
  color: var(--formal-muted);
  font-size: 12px;
  line-height: 1.6;
}

.multi-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.multi-photo-field {
  max-width: 100%;
  padding: 10px;
  border: 1px solid rgba(112, 70, 182, 0.14);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #fbf7ff);
}

.multi-photo-field-head {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.multi-photo-field-head span {
  color: #34265f;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.multi-photo-picker {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 38px;
  overflow: hidden;
  border: 1px dashed rgba(112, 70, 182, 0.34);
  border-radius: 10px;
  color: #39276c;
  background: rgba(250,244,255,0.78);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  cursor: pointer;
}

.multi-photo-picker input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.multi-photo-preview {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 5;
  min-width: 0;
  overflow: hidden;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(247,243,255,0.94)),
    repeating-linear-gradient(45deg, rgba(110,70,180,0.04) 0 8px, transparent 8px 16px);
  color: var(--formal-muted);
  font-size: 12px;
  text-align: center;
}

.multi-photo-preview.has-image {
  background: #fff;
}

.multi-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.multi-photo-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.multi-photo-actions .btn,
.multi-photo-clear-all {
  min-height: 38px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 900;
}

.formal-photo-guide {
  border: 1px solid rgba(55, 34, 101, 0.12);
  border-radius: 11px;
  background: rgba(255,255,255,0.78);
}

.formal-photo-guide summary {
  min-height: 46px;
  padding: 13px 16px;
  cursor: pointer;
  font-weight: 900;
}

.formal-photo-guide ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 18px 16px 34px;
  color: var(--formal-muted);
  font-size: 13px;
  line-height: 1.6;
}

.formal-upload-fields {
  display: grid;
  grid-template-columns: minmax(250px, 1.28fr) minmax(190px, 0.72fr);
  gap: 14px;
}

.formal-upload-fields label {
  display: grid;
  gap: 8px;
  color: #34265f;
  font-size: 13px;
  font-weight: 900;
}

.formal-upload-fields select,
.formal-upload-fields input {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid rgba(55, 34, 101, 0.18);
  border-radius: 10px;
  background: #fff;
  color: #171147;
  font: inherit;
  font-weight: 700;
  line-height: 1.25;
}

.formal-upload-field-age select {
  font-size: 12.5px;
}

.formal-consent {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  min-height: 52px;
  margin: 0;
  padding: 14px 15px;
  border: 1px solid rgba(112, 70, 182, 0.14);
  border-radius: 12px;
  background: rgba(255,255,255,0.84);
  color: #392d65;
  font-size: 13px;
  line-height: 1.6;
  cursor: pointer;
}

.formal-consent input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: #d93aa9;
}

.formal-submit {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #f14fb1, #ad2bd0);
  box-shadow: 0 14px 26px rgba(169, 43, 208, 0.24);
  font-size: 17px;
  font-weight: 900;
}

.formal-submit:disabled {
  cursor: wait;
  filter: saturate(0.82);
}

.formal-upload-progress {
  padding: 14px;
  border-radius: 12px;
  background: rgba(244, 239, 255, 0.94);
}

.formal-upload-progress p {
  margin: 0 0 10px;
  font-weight: 900;
}

.formal-upload-progress ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 11px;
}

.formal-upload-progress li {
  min-height: 38px;
  padding: 8px 6px;
  border-radius: 8px;
  background: #fff;
  color: var(--formal-muted);
  text-align: center;
}

.formal-upload-progress li.is-active {
  color: #fff;
  background: linear-gradient(135deg, #e84bad, #7a41d8);
}

.formal-upload-progress li.is-done {
  color: #2d6b50;
  background: #e7f8ef;
}

.formal-privacy-note {
  margin: 0;
  max-width: 100%;
  color: var(--formal-muted);
  font-size: 12px;
  line-height: 1.85;
  text-align: left;
}

.formal-privacy-note p {
  margin: 0 0 8px;
}

.formal-privacy-note p:last-of-type {
  margin-bottom: 2px;
}

.formal-privacy-note a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.formal-upload-form :focus-visible {
  outline: 3px solid rgba(232, 75, 173, 0.4);
  outline-offset: 3px;
}

@media (min-width: 1024px) {
  .formal-diagnosis {
    align-items: start;
    padding: 38px 40px;
  }

  .formal-diagnosis-copy ul {
    gap: 14px;
    margin-top: 24px;
  }

  .formal-diagnosis-copy li {
    gap: 5px;
    padding-bottom: 14px;
  }

  .formal-diagnosis-insights {
    display: grid;
    gap: 12px;
    margin-top: 18px;
    font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
  }

  .formal-diagnosis-insights article {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid rgba(112, 70, 182, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.68);
  }

  .formal-diagnosis-insights h3 {
    margin: 0;
    color: #34265f;
    font-size: 14px;
    line-height: 1.45;
  }

  .formal-diagnosis-insights ul {
    gap: 7px;
    margin: 0;
  }

  .formal-diagnosis-insights li {
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    padding: 0;
    border-bottom: 0;
  }

  .formal-diagnosis-insights .ab-icon {
    width: 18px;
    height: 18px;
    margin-top: 2px;
  }

  .formal-diagnosis-insights .ab-icon::after {
    left: 6px;
    top: 3px;
    width: 5px;
    height: 9px;
  }

  .formal-diagnosis-insights span {
    color: #5c507c;
    font-size: 12px;
    line-height: 1.55;
  }

  .formal-upload-form {
    gap: 10px;
    padding: 20px;
  }

  .formal-upload-main {
    gap: 12px;
  }

  .formal-upload-heading h3 {
    margin-top: 3px;
    font-size: 20px;
  }

  .formal-upload-heading span {
    margin-top: 5px;
    line-height: 1.45;
  }

  .formal-dropzone,
  .formal-preview-frame {
    min-height: 174px;
  }

  .formal-dropzone {
    gap: 8px;
    padding: 18px;
  }

  .formal-preview-frame img {
    height: 142px;
  }

  .formal-file-name {
    min-height: 24px;
    padding: 5px 10px;
  }

  .formal-photo-actions {
    gap: 10px;
  }

  .formal-secondary-button,
  .formal-clear-button {
    min-height: 42px;
  }

  .formal-upload-status {
    min-height: 34px;
    padding: 9px 12px;
    line-height: 1.45;
  }

  .multi-photo-option {
    gap: 10px;
    padding: 12px;
  }

  .multi-photo-intro {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
    align-items: center;
  }

  .multi-photo-intro p {
    grid-column: 1 / -1;
    line-height: 1.35;
  }

  .multi-photo-intro > span {
    display: inline;
    line-height: 1.45;
  }

  .multi-photo-intro > span:nth-of-type(2) {
    max-width: 64ch;
  }

  .multi-photo-intro button {
    grid-column: 2;
    grid-row: 2 / span 3;
    align-self: center;
    white-space: nowrap;
  }

  .multi-photo-fields,
  .multi-photo-field {
    gap: 8px;
  }

  .multi-photo-grid {
    gap: 10px;
  }

  .multi-photo-field {
    padding: 8px;
  }

  .multi-photo-preview {
    aspect-ratio: 5 / 4;
  }

  .multi-photo-picker {
    min-height: 34px;
  }

  .multi-photo-actions .btn,
  .multi-photo-clear-all {
    min-height: 34px;
  }

  .formal-photo-guide summary {
    min-height: 36px;
    padding: 9px 14px;
  }

  .formal-photo-guide ul {
    gap: 5px;
    padding-bottom: 12px;
    line-height: 1.45;
  }

  .formal-upload-fields {
    gap: 12px;
  }

  .formal-upload-fields label {
    gap: 6px;
  }

  .formal-upload-fields select,
  .formal-upload-fields input {
    min-height: 42px;
  }

  .formal-consent {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 40px;
    padding: 9px 12px;
    line-height: 1.45;
  }

  .formal-consent input {
    width: 18px;
    height: 18px;
    margin-top: 0;
  }

  .formal-submit {
    min-height: 48px;
  }

  .formal-upload-progress {
    padding: 10px;
  }

  .formal-upload-progress[hidden] {
    display: none !important;
  }

  .formal-upload-progress p {
    margin-bottom: 8px;
  }

  .formal-upload-progress li {
    min-height: 32px;
    padding: 6px;
  }

  .formal-privacy-note {
    line-height: 1.5;
  }
}

.formal-safety {
  display: grid;
  grid-template-columns: 1.1fr repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
  width: min(1360px, calc(100% - 72px));
  margin: 0 auto 36px;
  padding: 30px 34px;
  border: 1px solid var(--formal-line);
  border-radius: 14px;
  background: rgba(255,255,255,0.86);
}

.formal-safety-lead {
  display: grid;
  gap: 12px;
  align-content: center;
  padding-right: 10px;
}

.formal-safety-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(121, 90, 220, 0.34);
  border-radius: 16px;
  background:
    radial-gradient(circle at 28% 24%, rgba(255,255,255,0.95), transparent 1.3rem),
    linear-gradient(135deg, rgba(255, 103, 190, 0.2), rgba(80, 201, 221, 0.16));
  box-shadow: 0 12px 28px rgba(106, 78, 195, 0.16), inset 0 0 0 1px rgba(255,255,255,0.82);
}

.formal-safety-mark::before {
  content: "";
  width: 22px;
  height: 26px;
  border: 2px solid #784fe0;
  border-radius: 12px 12px 10px 10px;
  clip-path: polygon(50% 0, 100% 18%, 92% 70%, 50% 100%, 8% 70%, 0 18%);
  background: radial-gradient(circle at 50% 44%, #e74faf 0 3px, transparent 4px);
  filter: drop-shadow(0 0 8px rgba(229, 79, 175, 0.28));
}

.formal-safety h2 {
  margin: 0;
  font-size: 21px;
}

.formal-safety-lead ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #64577f;
  font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}

.formal-safety-lead li {
  position: relative;
  padding-left: 16px;
}

.formal-safety-lead li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f25bad, #7c63de);
  box-shadow: 0 0 8px rgba(235, 84, 178, 0.26);
}

.formal-safety-card {
  position: relative;
  display: grid;
  gap: 8px;
  align-content: center;
  min-height: 104px;
  padding: 18px 18px 18px 66px;
  border: 1px solid rgba(92, 65, 155, 0.1);
  border-radius: 14px;
  background: rgba(255,255,255,0.62);
  box-shadow: 0 14px 32px rgba(35, 22, 85, 0.055);
  font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
}

.formal-safety-card::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 20px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(126, 92, 222, 0.32);
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 24%, rgba(255,255,255,0.9), transparent 1rem),
    linear-gradient(135deg, rgba(244, 88, 176, 0.18), rgba(85, 198, 221, 0.13));
  box-shadow: 0 8px 20px rgba(116, 80, 200, 0.14), inset 0 0 0 1px rgba(255,255,255,0.78);
}

.formal-safety-card::after {
  position: absolute;
  left: 27px;
  top: 28px;
  width: 16px;
  height: 16px;
  color: #8050dc;
  filter: drop-shadow(0 0 7px rgba(229, 79, 175, 0.22));
}

.formal-safety-card-score::after {
  content: "";
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  background:
    linear-gradient(currentColor, currentColor) 3px 8px / 2px 8px no-repeat,
    linear-gradient(currentColor, currentColor) 8px 4px / 2px 12px no-repeat,
    linear-gradient(currentColor, currentColor) 13px 0 / 2px 16px no-repeat;
}

.formal-safety-card-shield::after {
  content: "";
  width: 17px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 10px 10px 8px 8px;
  clip-path: polygon(50% 0, 100% 18%, 93% 70%, 50% 100%, 7% 70%, 0 18%);
}

.formal-safety-card-delete::after {
  content: "";
  top: 31px;
  width: 15px;
  height: 13px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 4px 4px;
  background:
    linear-gradient(currentColor, currentColor) 4px 2px / 2px 9px no-repeat,
    linear-gradient(currentColor, currentColor) 9px 2px / 2px 9px no-repeat;
}

.formal-safety-card-delete b::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 25px;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #8050dc;
  filter: drop-shadow(0 0 7px rgba(229, 79, 175, 0.22));
}

.formal-safety span {
  color: var(--formal-muted);
  font-size: 13px;
  line-height: 1.6;
}

.formal-night-cta {
  position: relative;
  min-height: 270px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
}

.formal-night-cta img {
  position: absolute;
  inset: 0;
  filter: saturate(1.2);
}

.formal-night-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(28, 6, 69, 0.86), rgba(67, 16, 91, 0.52), rgba(28, 6, 69, 0.84));
}

.formal-night-cta div {
  position: relative;
  z-index: 1;
}

.formal-night-cta .formal-primary-cta {
  margin-top: 24px;
  padding-left: 54px;
  padding-right: 54px;
}

.formal-footer {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
  gap: 18px 34px;
  min-height: 148px;
  padding: 26px max(4vw, 44px) 24px;
  font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: 12px;
  background: #fff;
}

.formal-footer-logo {
  align-self: center;
  gap: 10px;
}

.formal-footer-logo span {
  width: 28px;
  height: 28px;
  border-width: 2.5px;
  border-radius: 7px;
  box-shadow: 11px -11px 0 -7px #f05aa8, -11px 11px 0 -7px #8a36e4;
}

.formal-footer-logo b {
  font-size: 20px;
}

.formal-footer-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(112px, 1fr));
  gap: 20px;
  justify-content: flex-end;
}

.formal-footer-groups div {
  display: grid;
  gap: 8px;
  align-content: start;
}

.formal-footer-groups b {
  color: #1d174f;
  font-size: 12px;
}

.formal-footer-groups a {
  color: #6d6486;
  line-height: 1.4;
}

.formal-footer p,
.formal-footer small {
  margin: 0;
  color: #6d6486;
}

.formal-footer p {
  grid-column: 2;
  justify-self: end;
}

.formal-footer small {
  grid-column: 1 / -1;
  justify-self: end;
  font-size: 13px;
  line-height: 1.7;
}

@media (min-width: 1091px) and (max-width: 1366px) {
  .formal-vista {
    grid-template-areas: "panel media";
    grid-template-columns: minmax(550px, 0.47fr) minmax(620px, 0.53fr);
    column-gap: clamp(16px, 1.6vw, 22px);
    width: min(1420px, calc(100vw - 40px));
    min-height: 790px;
    padding-left: clamp(28px, 3.1vw, 42px);
    padding-right: clamp(18px, 2.2vw, 30px);
  }

  .formal-vista-panel {
    max-width: 610px;
  }

  .formal-vista-panel h1 {
    font-size: clamp(36px, 3.28vw, 45px);
    line-height: 1.48;
  }

  .formal-vista-panel .formal-vista-lead {
    max-width: min(100%, 620px);
  }

  .formal-vista-panel > p.formal-vista-lead:not(.formal-vista-kicker):not(.formal-vista-brand) {
    line-height: 1.42;
  }

  .formal-vista-story {
    margin-bottom: 8px;
    margin-right: clamp(26px, 3vw, 42px);
  }

  .formal-vista-visual {
    width: min(96%, 620px);
    transform: translateY(var(--formal-vista-visual-y));
  }
}

@media (min-width: 1091px) {
  .formal-vista {
    grid-template-areas: "panel media";
    grid-template-columns: minmax(560px, 0.47fr) minmax(620px, 0.53fr);
    column-gap: clamp(18px, 1.8vw, 32px);
    width: min(1450px, calc(100vw - 48px));
    padding-left: clamp(30px, 3vw, 48px);
    padding-right: clamp(22px, 2.4vw, 38px);
  }

  .formal-vista-panel {
    margin-left: 0;
    max-width: 620px;
    transform: none;
  }

  .formal-vista-panel h1 span {
    white-space: nowrap;
  }

  .formal-vista-panel .formal-vista-lead {
    max-width: min(100%, 620px);
  }

  .formal-vista-visual {
    --formal-vista-visual-y: -93px;
    transform: translateY(var(--formal-vista-visual-y));
  }

  .formal-vista-story {
    grid-area: media;
    align-self: end;
    justify-self: end;
    width: 100%;
    max-width: 333px;
    margin-left: 0;
    margin-bottom: clamp(0px, 0.7vw, 12px);
    margin-right: clamp(28px, 3.1vw, 52px);
    transform: none;
  }

  .formal-vista-score-demo {
    width: min(100%, clamp(400px, 29.2vw, 440px));
    max-width: clamp(400px, 29.2vw, 440px);
    transform: translateY(-66px);
  }

  .formal-vista-media img {
    transform: scaleX(1);
    transform-origin: center center;
  }

  .formal-diagnosis {
    grid-template-columns: minmax(420px, 0.42fr) minmax(0, 0.58fr);
  }
}

@media (min-width: 1091px) and (max-width: 1366px) {
  .formal-vista {
    grid-template-columns: minmax(566px, 0.48fr) minmax(614px, 0.52fr);
  }
}

@media (min-width: 1091px) and (max-width: 1499px) {
  .formal-future {
    grid-template-columns: minmax(360px, 370px) minmax(0, 1fr);
    width: min(1270px, calc(100vw - 96px));
  }

  .formal-future-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 1367px) and (max-width: 1599px) {
  .formal-vista-panel > p.formal-vista-lead:not(.formal-vista-kicker):not(.formal-vista-brand) {
    line-height: 1.44;
  }

  .formal-vista-visual {
    width: min(93%, 630px);
    --formal-vista-visual-y: -89px;
    transform: translateY(var(--formal-vista-visual-y));
  }

  .formal-vista-score-demo {
    transform: translateY(-77px);
  }
}

@media (min-width: 1600px) {
  .formal-vista-panel > p.formal-vista-lead:not(.formal-vista-kicker):not(.formal-vista-brand) {
    line-height: 1.42;
  }

  .formal-vista {
    grid-template-areas: "panel media";
    grid-template-columns: minmax(600px, 0.46fr) minmax(720px, 0.54fr);
    column-gap: clamp(28px, 2.2vw, 42px);
    width: min(1480px, calc(100vw - 96px));
  }

  .formal-vista-media {
    justify-items: center;
  }

  .formal-vista-visual {
    width: min(93%, 660px);
    --formal-vista-visual-y: -105px;
    transform: translateY(var(--formal-vista-visual-y));
  }

  .formal-vista-story {
    margin-bottom: 12px;
    margin-right: clamp(44px, 3vw, 62px);
  }
}

@media (max-width: 1090px) {
  .formal-vista {
    grid-template-areas: "panel media story";
    grid-template-columns: minmax(340px, 0.72fr) minmax(390px, 0.9fr) minmax(230px, 0.4fr);
    column-gap: 8px;
    width: min(1060px, calc(100vw - 24px));
    padding-left: 18px;
    padding-right: 18px;
  }

  .formal-vista-panel {
    max-width: 430px;
  }

  .formal-vista-panel h1 {
    font-size: clamp(33px, 3.35vw, 36px);
    line-height: 1.48;
  }
  .formal-ai-aura {
    width: 380px;
    height: 360px;
    transform: translate(-37%, -45%);
  }
  .formal-vista-story {
    width: 100%;
    margin-left: -46px;
    margin-bottom: 12px;
  }
  .formal-vista-visual {
    width: min(92%, 540px);
    transform: translateX(-6%);
  }
  .formal-hero-outcomes {
    grid-template-columns: minmax(0, 1fr);
    width: min(980px, calc(100vw - 40px));
    margin-top: -6px;
  }
  .formal-hero-outcome-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .formal-desktop-header {
    grid-template-columns: 278px 1fr 205px;
    width: calc(100% - 40px);
  }
  .formal-desktop-header nav {
    gap: 14px;
  }
  .formal-diagnosis {
    grid-template-columns: minmax(380px, 0.42fr) minmax(0, 0.58fr);
    gap: 22px;
    padding: 44px 32px;
  }
  .formal-future {
    grid-template-columns: minmax(300px, 320px) minmax(0, 1fr);
    gap: 32px 48px;
    align-items: start;
    width: min(1220px, calc(100% - 96px));
    margin-left: auto;
    margin-right: auto;
  }
  .formal-section-copy p:not(:first-child) {
    max-width: 46em;
  }
  .formal-future-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
  .formal-flow {
    padding-left: 0;
    padding-right: 0;
  }
  .formal-flow-stage {
    width: min(940px, calc(100% - 56px));
  }
  .formal-flow ol {
    gap: 14px;
  }
  .formal-flow ol::before {
    left: 7%;
    right: 7%;
    top: 56px;
  }
  .formal-flow li > span {
    font-size: 13px;
  }
  .formal-flow i {
    width: 78px;
    height: 78px;
    margin-top: 7px;
  }
  .formal-flow i img {
    width: 58px;
    height: 58px;
  }
  .formal-future-cards div {
    left: 10px;
    right: 10px;
  }
  .formal-future-cards h3 {
    font-size: 12.8px;
  }
  .formal-flow h3 {
    font-size: 14px;
  }
  .formal-flow li p {
    font-size: 10.5px;
  }
  .formal-footer {
    grid-template-columns: 1fr;
  }
  .formal-footer-groups,
  .formal-footer p,
  .formal-footer small {
    justify-self: start;
  }
  .formal-footer-groups {
    grid-template-columns: repeat(4, minmax(104px, 1fr));
    width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 900px) {
  .formal-desktop {
    min-width: 0;
  }

  .formal-vista {
    padding-left: 28px;
    padding-right: 28px;
  }

  .formal-vista {
    min-height: auto;
  }

  .formal-vista {
    grid-template-areas:
      "media"
      "story"
      "panel";
    grid-template-columns: minmax(0, 1fr);
  }

  .formal-vista-panel {
    max-width: 560px;
  }

  .formal-vista-media {
    height: 620px;
  }

  .formal-vista-visual {
    width: min(88%, 560px);
    transform: none;
  }

  .formal-vista-story {
    width: 258px;
    justify-self: end;
    margin-left: 0;
  }

  .formal-hero-outcomes {
    grid-template-columns: minmax(0, 1fr);
    width: min(680px, calc(100% - 48px));
    margin-top: -10px;
  }

  .formal-hero-outcome-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .formal-future,
  .formal-diagnosis {
    grid-template-columns: minmax(0, 1fr);
  }

  .formal-future {
    width: min(720px, calc(100% - 48px));
  }

  .formal-future-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-self: stretch;
    width: 100%;
    max-width: none;
  }

  .formal-diagnosis {
    width: min(680px, calc(100% - 48px));
  }

  .formal-flow {
    padding-left: 28px;
    padding-right: 28px;
  }

  .formal-flow-stage {
    width: min(680px, 100%);
  }

  .formal-flow ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 22px;
    margin-top: 40px;
  }

  .formal-flow ol::before {
    display: none;
  }

  .formal-flow i {
    margin-bottom: 18px;
  }
}

@media (min-width: 901px) and (max-width: 1240px) {
  .formal-future {
    grid-template-columns: minmax(0, 1fr);
    width: min(920px, calc(100% - 48px));
  }

  .formal-future-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-self: stretch;
    width: 100%;
    max-width: none;
  }

  .formal-future-cards .future-card--2 { --future-card-offset: 4px; }
  .formal-future-cards .future-card--4 { --future-card-offset: 3px; }
  .formal-future-cards .future-card--6 { --future-card-offset: 5px; }
}

@media (max-width: 900px) {
  .formal-future-cards .future-card,
  .mobile-formal-rail .future-card {
    --future-card-offset: 0px;
    transform: none;
  }
}

@media (max-width: 1023px) {
  .formal-network {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 12px;
    width: min(920px, calc(100% - 48px));
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .formal-network p {
    grid-column: 1 / -1;
    text-align: center;
  }
}

@media (max-width: 767px) {
  .formal-network {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .mobile-vista-copy > p:not(:first-child):not(.mobile-vista-brand) {
    position: relative;
    z-index: 7;
    transform: translate(30px, -28px);
    text-shadow: 0 1px 10px rgba(255, 255, 255, 0.86), 0 0 18px rgba(255, 246, 252, 0.72);
  }
}

@media (max-width: 767px) {
  body.formal-home-body {
    background: #fff;
    font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  }

  .formal-desktop {
    display: none;
  }

  .formal-mobile {
    display: block;
    padding-bottom: 92px;
    overflow: hidden;
  }

  .formal-mobile h1,
  .formal-mobile h2,
  .formal-mobile h3,
  .formal-mobile p,
  .formal-mobile span,
  .formal-mobile small,
  .formal-mobile a,
  .formal-mobile label {
    min-width: 0;
    line-break: strict;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .formal-mobile h1,
  .formal-mobile h2,
  .formal-mobile h3 {
    text-wrap: balance;
  }

  .formal-mobile p,
  .formal-mobile small {
    text-wrap: pretty;
  }

  .mobile-vista {
    position: relative;
    min-height: 730px;
    overflow: hidden;
    border-radius: 0 0 32px 32px;
    background:
      radial-gradient(ellipse at 62% 24%, rgba(247, 190, 238, 0.78), transparent 13rem),
      radial-gradient(ellipse at 58% 58%, rgba(184, 214, 255, 0.36), transparent 14rem),
      linear-gradient(180deg, #fff 0%, #fff5fd 54%, #eee6ff 100%);
  }

  .mobile-vista::after {
    content: "";
    position: absolute;
    left: -16%;
    right: -16%;
    bottom: -22px;
    height: 160px;
    background:
      linear-gradient(168deg, transparent 0 38%, rgba(255, 108, 213, 0.18) 39% 40%, transparent 41%),
      linear-gradient(180deg, transparent, rgba(255,255,255,0.92));
    pointer-events: none;
  }

  .mobile-vista-header {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 0;
  }

  .mobile-vista-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    color: #171147;
    text-decoration: none;
  }

  .mobile-vista-logo span {
    width: 27px;
    height: 27px;
    transform: rotate(45deg);
    border: 3px solid #1d1956;
    border-radius: 8px;
    box-shadow: 10px -10px 0 -7px #f05aa8, -10px 10px 0 -7px #8a36e4;
  }

  .mobile-vista-logo b {
    font-size: 22px;
    white-space: nowrap;
  }

  .mobile-vista-menu {
    display: grid;
    align-content: center;
    gap: 7px;
    width: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .mobile-vista-menu span {
    display: block;
    height: 4px;
    border-radius: 999px;
    background: #171147;
  }

  .mobile-vista-photo {
    position: absolute;
    z-index: 1;
    top: 64px;
    left: calc(54% - 18px);
    width: min(340px, 76vw);
    aspect-ratio: 0.74 / 1;
    height: auto;
    transform: translateX(-50%);
    pointer-events: none;
  }

  .mobile-vista-photo img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 53% 50%;
    border-radius: 50% / 42%;
    filter: saturate(1.08) contrast(1.02);
    box-shadow: 0 30px 76px rgba(129, 75, 170, 0.18);
  }

  .mobile-ai-analysis-overlay {
    opacity: 0.54;
  }

  .mobile-ai-analysis-overlay::before {
    opacity: 0.34;
  }

  .mobile-ai-analysis-overlay::after {
    opacity: 0.42;
  }

  .mobile-ai-analysis-overlay .formal-ai-landmarks {
    left: 35%;
    top: 15%;
    width: 58%;
    height: 60%;
    opacity: 0.48;
  }

  .mobile-ai-analysis-overlay .formal-ai-landmark-lines path {
    stroke-width: 0.24;
  }

  .mobile-ai-analysis-overlay .formal-ai-scan {
    left: 38%;
    right: 10%;
    opacity: 0.2;
  }

  .mobile-ai-analysis-overlay .formal-ai-glow {
    left: 46%;
    top: 20%;
    width: 40%;
    height: 54%;
    opacity: 0.32;
    filter: blur(7px);
  }

  .mobile-ai-analysis-overlay .formal-ai-particle {
    width: 2px;
    height: 2px;
    opacity: 0.3;
  }

  .mobile-ai-aura {
    position: absolute;
    z-index: 3;
    left: 49%;
    top: 46%;
    width: 240px;
    height: 285px;
    transform: translate(-25%, -47%);
    opacity: 0.54;
    pointer-events: none;
  }

  .mobile-ai-aura::before,
  .mobile-ai-aura::after {
    content: "";
    position: absolute;
    inset: 12% 16%;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50% / 42%;
    filter: drop-shadow(0 0 12px rgba(239, 87, 205, 0.45));
  }

  .mobile-ai-aura::after {
    inset: 24% 24%;
    border-color: rgba(191, 222, 255, 0.42);
    transform: rotate(-16deg);
  }

  .mobile-ai-aura span {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 0 14px rgba(235, 75, 204, 0.8);
    animation: formal-particle-pulse 3.8s ease-in-out infinite;
  }

  .mobile-ai-aura span:nth-child(1) { left: 24%; top: 24%; }
  .mobile-ai-aura span:nth-child(2) { left: 64%; top: 16%; animation-delay: 0.5s; }
  .mobile-ai-aura span:nth-child(3) { left: 77%; top: 56%; animation-delay: 1s; }
  .mobile-ai-aura span:nth-child(4) { left: 39%; top: 76%; animation-delay: 1.5s; }

  .mobile-vista-copy {
    position: relative;
    z-index: 4;
    display: grid;
    justify-items: start;
    width: min(326px, calc(100% - 48px));
    margin: 0 auto;
    padding-top: 392px;
  }

  .mobile-vista-copy > p:first-child {
    margin: 0 0 12px;
    color: #c53aa6;
    font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
    font-size: 12px;
    font-weight: 900;
  }

  .mobile-vista-copy h1 {
    margin: 0;
    font-size: clamp(29px, 7.5vw, 35px);
    line-height: 1.44;
    letter-spacing: 0;
  }

  .mobile-vista-copy h1 span {
    display: block;
    white-space: nowrap;
  }

  .mobile-vista-brand {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 16px 0 0;
    padding: 7px 12px 7px 18px;
    border: 1px solid rgba(190, 107, 218, 0.14);
    border-radius: 15px;
    color: #8730bb;
    font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 900;
    text-align: left;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 12px 28px rgba(160, 73, 190, 0.07);
    backdrop-filter: blur(8px);
    overflow-wrap: normal;
  }

  .mobile-vista-brand::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 50%;
    width: 2px;
    height: 74%;
    border-radius: 999px;
    background: linear-gradient(180deg, #7b4be8 0%, #e858b8 54%, #a6d8ff 100%);
    box-shadow: 0 0 8px rgba(209, 118, 224, 0.14);
    transform: translateY(-50%);
  }

  .mobile-vista-copy > p:not(:first-child):not(.mobile-vista-brand) {
    max-width: 18.5em;
    margin: 18px 0 0;
    font-size: 14px;
    line-height: 1.52;
    font-weight: 700;
  }

  .mobile-formal-primary {
    width: 100%;
    max-width: 322px;
    min-height: 68px;
    margin-top: 30px;
    padding: 0 18px;
    border-radius: 14px;
    font-size: clamp(16px, 4.35vw, 19px);
    white-space: nowrap;
    overflow-wrap: normal;
  }

  .mobile-vista-copy ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    width: 100%;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
    font-weight: 800;
    font-size: 9px;
    text-align: center;
  }

  .mobile-vista-copy li {
    min-width: 0;
    white-space: nowrap;
  }

  .mobile-vista-down {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 20px;
    width: 44px;
    height: 44px;
    border: 0;
    transform: translateX(-50%);
  }

  .mobile-vista-down::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 9px;
    width: 20px;
    height: 20px;
    border-right: 3px solid rgba(23, 17, 71, 0.36);
    border-bottom: 3px solid rgba(23, 17, 71, 0.36);
    transform: rotate(45deg);
  }

  .mobile-hero-outcomes {
    position: relative;
    z-index: 6;
    margin: 28px 0 24px;
    padding: 22px 18px;
    overflow: visible;
    border: 1px solid rgba(224, 73, 184, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 46px rgba(153, 73, 174, 0.1);
  }

  .mobile-hero-outcomes > p {
    margin: 0 0 8px;
    color: #bf43a8;
    font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
    font-size: 12px;
    font-weight: 900;
    text-align: center;
    letter-spacing: 0.03em;
  }

  .mobile-hero-outcomes h2 {
    margin: 0;
    color: #1e1748;
    text-align: center;
    font-size: clamp(20px, 5.3vw, 26px);
    line-height: 1.48;
    letter-spacing: 0;
  }

  .mobile-hero-outcomes > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
  }

  .mobile-hero-outcomes article {
    min-width: 0;
    padding: 16px 14px;
    border: 1px solid rgba(224, 73, 184, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    box-sizing: border-box;
  }

  .mobile-hero-outcomes h3 {
    margin: 0 0 6px;
    color: #8b1d78;
    font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 900;
    letter-spacing: 0;
  }

  .mobile-hero-outcomes article p {
    margin: 0;
    color: #5f5586;
    font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
    font-size: 11px;
    line-height: 1.55;
    font-weight: 700;
  }

  @media (max-width: 480px) {
    .mobile-hero-outcomes {
      margin-top: 30px;
      padding: 24px 18px;
    }

    .mobile-hero-outcomes > div {
      grid-template-columns: minmax(0, 1fr);
      gap: 12px;
    }
  }

  @media (min-width: 400px) and (max-width: 480px) {
    .mobile-hero-outcomes > div {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
  }

  .mobile-formal-analysis {
    margin: 20px 0 26px;
    padding: 26px 18px 78px;
    border-radius: 28px;
    color: #fff;
    background:
      radial-gradient(circle at 0% 42%, rgba(240, 87, 221, 0.34), transparent 13rem),
      linear-gradient(135deg, #120a47, #070727 68%, #1f0b59);
    box-shadow: 0 18px 50px rgba(16, 8, 61, 0.22);
  }

  .mobile-formal-analysis h2,
  .mobile-formal-future h2,
  .mobile-formal-final h2,
  .mobile-formal-diagnosis h2 {
    margin: 0;
    text-align: center;
    font-size: clamp(24px, 6.5vw, 34px);
    line-height: 1.5;
  }

  .mobile-insight-list {
    display: grid;
    gap: 12px;
    margin-top: 28px;
    font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
  }

  .mobile-insight-list article {
    padding: 16px 18px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 18px;
    background: rgba(255,255,255,0.1);
  }

  .mobile-insight-list span {
    display: block;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 800;
  }

  .mobile-insight-list p {
    margin: 8px 0 0;
    color: rgba(255,255,255,0.82);
    font-size: 13px;
    line-height: 1.7;
  }

  .mobile-formal-analysis-note {
    margin: 18px 0 0;
    color: rgba(255,255,255,0.86);
    text-align: center;
    font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.6;
  }

  .mobile-formal-analysis a {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 58px;
    margin-top: 24px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 18px;
    color: #fff;
    text-decoration: none;
    font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
    font-weight: 800;
    background: rgba(255,255,255,0.1);
    white-space: nowrap;
    overflow-wrap: normal;
  }

  .mobile-formal-flow {
    display: grid;
    gap: 18px;
    margin: 22px 0 28px;
    padding: 26px 18px;
    border: 1px solid rgba(112, 70, 182, 0.14);
    border-radius: 28px;
    background: linear-gradient(180deg, #fff, #fbf7ff);
    box-shadow: 0 18px 50px rgba(16, 8, 61, 0.08);
  }

  .mobile-formal-flow > p {
    margin: 0;
    color: #7b49b8;
    text-align: center;
    font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
    font-size: 13px;
    font-weight: 900;
  }

  .mobile-formal-flow h2 {
    margin: 0;
    text-align: center;
    font-size: clamp(24px, 6.5vw, 32px);
    line-height: 1.55;
  }

  .mobile-formal-flow ol {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .mobile-formal-flow li {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 8px 14px;
    align-items: center;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(112, 70, 182, 0.12);
    border-radius: 18px;
    background: rgba(255,255,255,0.86);
  }

  .mobile-formal-flow li > span {
    grid-column: 1;
    grid-row: 1;
    color: #4f358e;
    font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
    font-size: 11px;
    font-weight: 900;
    text-align: center;
  }

  .mobile-formal-flow i {
    grid-column: 1;
    grid-row: 2 / span 2;
    width: 54px;
    height: 54px;
    margin: 0 auto;
  }

  .mobile-formal-flow i img {
    width: 40px;
    height: 40px;
  }

  .mobile-formal-flow h3 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
  }

  .mobile-formal-flow li p {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    color: #4f4770;
    font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
    font-size: 12px;
    line-height: 1.65;
  }

  .mobile-formal-flow .mobile-formal-primary {
    width: 100%;
    margin-top: 0;
  }

  .mobile-formal-future {
    padding: 0 20px 24px;
    text-align: center;
  }

  .mobile-formal-future h2 span {
    display: block;
  }

  .mobile-formal-future h2 span:last-child {
    white-space: nowrap;
  }

  .mobile-formal-future p {
    margin: 10px 0 22px;
    font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
    color: var(--formal-muted);
    font-weight: 700;
    line-height: 1.75;
  }

  .mobile-formal-rail {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    overflow-x: visible;
    padding: 0 2px 10px;
    scroll-snap-type: none;
  }

  .mobile-formal-rail::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  .mobile-formal-rail article {
    position: relative;
    min-height: 246px;
    overflow: hidden;
    border-radius: 10px;
    color: #fff;
    text-align: left;
    background: #171147;
    box-shadow: 0 14px 30px rgba(19, 11, 56, 0.2);
  }

  .mobile-formal-rail article:first-child {
    transform: none;
    border: 1px solid rgba(255, 151, 224, 0.66);
    box-shadow: 0 15px 31px rgba(135, 40, 171, 0.2);
  }

  .mobile-formal-rail img {
    position: absolute;
    inset: 0;
  }

  .mobile-formal-rail article::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 34%, rgba(9, 14, 41, 0.22) 58%, rgba(9, 14, 41, 0.96));
  }

  .mobile-formal-rail h3,
  .mobile-formal-rail p,
  .mobile-formal-rail a {
    position: relative;
    z-index: 1;
    margin-left: 16px;
    margin-right: 16px;
  }

  .mobile-formal-rail h3 {
    min-height: 48px;
    margin-top: 126px;
    margin-bottom: 0;
    font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
    font-size: 16px;
    line-height: 1.42;
    word-break: keep-all;
    overflow-wrap: normal;
    text-wrap: balance;
  }

  .mobile-formal-rail p {
    margin-top: 7px;
    color: #fff;
    font-size: 13px;
    line-height: 1.62;
    text-wrap: pretty;
  }

  .mobile-formal-rail a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 6px;
    color: #fff;
    text-decoration: none;
    font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
    font-weight: 800;
    white-space: nowrap;
    overflow-wrap: normal;
  }

  .mobile-formal-dots {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin: 9px 0 0;
  }

  .mobile-formal-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #dedce6;
  }

  .mobile-formal-dots .is-active {
    background: #e846ad;
  }

  .mobile-formal-network {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    margin: 18px 0 0;
    padding: 18px 14px;
    border-top: 1px solid var(--formal-line);
    border-bottom: 1px solid var(--formal-line);
    background: rgba(255, 255, 255, 0.78);
  }

  .mobile-formal-network p {
    grid-column: 1 / -1;
    margin: 0 0 2px;
    font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
    color: var(--formal-ink);
    font-weight: 800;
    line-height: 1.7;
    word-break: keep-all;
    overflow-wrap: normal;
  }

  .mobile-formal-network span {
    min-width: 0;
    font-family: "Inter", "Yu Gothic", sans-serif;
    color: rgba(23, 17, 71, 0.8);
    font-size: 12.5px;
    line-height: 1.35;
    font-weight: 700;
    text-align: center;
    word-break: keep-all;
    overflow-wrap: normal;
    text-wrap: balance;
  }

  .mobile-formal-network span:last-child {
    grid-column: 1 / -1;
  }

  .mobile-formal-scout {
    margin: 8px 22px 28px;
    min-height: 120px;
    padding: 24px 24px 24px 96px;
    border-radius: 15px;
    color: #fff;
    background:
      radial-gradient(circle at 90% 50%, rgba(238, 79, 215, 0.38), transparent 10rem),
      linear-gradient(135deg, #150b4e, #2b1268);
    font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
  }

  .mobile-formal-scout h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.55;
  }

  .mobile-formal-scout p {
    margin: 10px 0 0;
    line-height: 1.78;
    font-size: 13px;
  }

  .mobile-formal-final {
    margin: 0 0 22px;
    padding: 40px 26px 34px;
    border-radius: 32px 32px 0 0;
    text-align: center;
    background:
      radial-gradient(circle at 12% 24%, rgba(255,255,255,0.85), transparent 5rem),
      linear-gradient(180deg, #e6dbff, #f9ecff);
  }

  .mobile-formal-final p {
    margin: 18px 0 0;
    font-size: 16px;
    line-height: 1.8;
    font-weight: 700;
  }

  .mobile-formal-final .mobile-formal-primary {
    width: 100%;
    max-width: 348px;
  }

  .mobile-formal-final small {
    display: block;
    margin-top: 18px;
    font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
    color: #453c68;
    line-height: 1.8;
  }

  .mobile-formal-diagnosis {
    margin: 18px 16px;
    padding: 22px 12px calc(88px + env(safe-area-inset-bottom));
    scroll-margin-bottom: 96px;
  }

  .mobile-formal-diagnosis h2 {
    margin-bottom: 18px;
  }

  .mobile-formal-diagnosis .formal-upload-form {
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
  }

  .mobile-formal-diagnosis .formal-upload-main,
  .mobile-formal-diagnosis .formal-upload-fields,
  .mobile-formal-diagnosis .formal-photo-actions {
    grid-template-columns: 1fr;
  }

  .mobile-formal-diagnosis .multi-photo-grid {
    grid-template-columns: 1fr;
  }

  .mobile-formal-diagnosis .multi-photo-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-formal-diagnosis .formal-upload-heading h3 {
    font-size: 17px;
    line-height: 1.65;
  }

  .mobile-formal-diagnosis .formal-upload-heading span {
    font-size: 12px;
    line-height: 1.75;
  }

  .mobile-formal-diagnosis .formal-dropzone {
    min-height: 168px;
    padding: 18px 14px;
  }

  .mobile-formal-diagnosis .formal-dropzone-icon {
    width: 54px;
    height: 43px;
  }

  .mobile-formal-diagnosis .formal-dropzone .photo-dropzone-title {
    font-size: 18px;
    line-height: 1.45;
  }

  .mobile-formal-diagnosis .formal-preview-frame {
    min-height: 176px;
  }

  .mobile-formal-diagnosis .formal-preview-frame img {
    height: 170px;
  }

  .mobile-formal-diagnosis .formal-secondary-button,
  .mobile-formal-diagnosis .formal-clear-button,
  .mobile-formal-diagnosis .formal-upload-fields select,
  .mobile-formal-diagnosis .formal-upload-fields input {
    min-height: 50px;
    width: 100%;
  }

  .mobile-formal-diagnosis .formal-upload-fields select,
  .mobile-formal-diagnosis .formal-upload-fields input {
    font-size: 12px;
  }

  .mobile-formal-diagnosis .formal-consent {
    min-height: 58px;
    font-size: 12px;
    line-height: 1.65;
  }

  .mobile-formal-diagnosis .formal-submit {
    min-height: 60px;
    font-size: 15px;
    box-shadow: 0 18px 34px rgba(191, 39, 174, 0.34);
  }

  .mobile-formal-diagnosis .formal-upload-progress ol {
    grid-template-columns: 1fr;
  }

  .mobile-formal-diagnosis .formal-privacy-note {
    padding-bottom: 4px;
    font-size: 11px;
    text-align: left;
  }

  .mobile-formal-diagnosis .formal-privacy-note a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .mobile-formal-note {
    display: grid;
    gap: 12px;
    margin: 20px;
    padding-bottom: 18px;
  }

  .mobile-formal-note p {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 16px;
    border-radius: 14px;
    background: rgba(246, 242, 255, 0.9);
    font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
    line-height: 1.75;
  }

  .mobile-formal-footer {
    display: grid;
    gap: 12px;
    margin: 8px 20px 112px;
    padding: 20px 16px;
    border-top: 1px solid rgba(55, 34, 101, 0.1);
    color: #4f466d;
    font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
    font-size: 11px;
  }

  .mobile-formal-footer > b {
    color: #171147;
    font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
    font-size: 15px;
  }

  .mobile-formal-footer-logo {
    justify-self: start;
    min-height: 36px;
    gap: 9px;
  }

  .mobile-formal-footer-logo span {
    width: 24px;
    height: 24px;
    border-width: 2.5px;
    border-radius: 7px;
    box-shadow: 9px -9px 0 -6px #f05aa8, -9px 9px 0 -6px #8a36e4;
  }

  .mobile-formal-footer-logo b {
    font-size: 16px;
    line-height: 1;
  }

  .mobile-formal-footer-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
  }

  .mobile-formal-footer-groups div {
    display: grid;
    gap: 6px;
    align-content: start;
  }

  .mobile-formal-footer-groups b {
    color: #171147;
    font-size: 12px;
  }

  .mobile-formal-footer a {
    display: inline-flex;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
    color: #5f40a2;
    text-decoration: none;
    font-weight: 800;
    white-space: nowrap;
    overflow-wrap: normal;
  }

  .mobile-formal-footer small {
    color: #7b728f;
    line-height: 1.7;
  }

  .mobile-formal-bottom {
    position: fixed;
    z-index: 30;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    min-height: 76px;
    padding: 8px 8px max(8px, env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
    background: rgba(255,255,255,0.96);
    box-shadow: 0 -12px 38px rgba(24, 14, 72, 0.14);
    font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
  }

  .mobile-formal-bottom a {
    display: grid;
    place-items: center;
    min-height: 46px;
    color: #171147;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    overflow-wrap: normal;
  }

  .mobile-formal-bottom .is-active {
    color: #e846ad;
  }

  .mobile-formal-main-tab {
    transform: translateY(-13px);
    border-radius: 999px;
    color: #fff !important;
    background: linear-gradient(135deg, #ff62b3, #bd2bc6);
    box-shadow: 0 13px 24px rgba(199, 45, 183, 0.35);
  }
}

@media (max-width: 430px) {
  .mobile-vista-copy {
    width: min(328px, calc(100% - 38px));
    padding-top: 326px;
  }

  .mobile-vista-copy h1 {
    max-width: 238px;
    margin-left: auto;
    padding-right: 2px;
    text-shadow: 0 1px 12px rgba(255, 255, 255, 0.88), 0 0 20px rgba(255, 246, 252, 0.7);
  }

  .mobile-vista-copy > p:not(:first-child):not(.mobile-vista-brand) {
    position: relative;
    z-index: 7;
    width: min(259px, 70vw);
    max-width: min(259px, 70vw);
    margin: 18px 0 0 auto;
    padding: 0;
    border-radius: 14px;
    background:
      linear-gradient(105deg, rgba(255, 255, 255, 0.48), rgba(255, 248, 254, 0.28) 58%, rgba(255, 255, 255, 0.08));
    box-shadow: 0 10px 24px rgba(162, 86, 183, 0.06);
    transform: none;
    top: 0;
    text-align: left;
    text-shadow: 0 1px 10px rgba(255, 255, 255, 0.9), 0 0 18px rgba(255, 246, 252, 0.76);
  }
}

@media (min-width: 768px) {
  .formal-desktop {
    display: block;
  }
}
