:root {
  --bg: #f5f6f8;
  --ink: #10131a;
  --muted: #667080;
  --line: #d8dde6;
  --panel: #ffffff;
  --deep: #0a1020;
  --deep-2: #111a2d;
  --green: #245bff;
  --lime: #f4c542;
  --blue: #245bff;
  --shadow: 0 24px 70px rgba(10, 16, 32, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(217, 222, 216, 0.7);
  background: rgba(247, 248, 245, 0.86);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background:
    linear-gradient(135deg, #f4c542, #245bff 62%, #10131a),
    var(--green);
  box-shadow: 0 8px 24px rgba(36, 91, 255, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(16, 24, 32, 0.14);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.button.light {
  border-color: rgba(255, 255, 255, 0.28);
  background: #fff;
  color: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  background:
    radial-gradient(circle at 18% 20%, rgba(36, 91, 255, 0.32), transparent 34%),
    radial-gradient(circle at 86% 18%, rgba(244, 197, 66, 0.18), transparent 30%),
    linear-gradient(120deg, #070b16 0%, #111a2d 52%, #16213a 100%);
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0.9) 55%, transparent 100%);
}

.hero-inner {
  position: relative;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 118px 0 82px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 800;
}

.hero h1 {
  max-width: 920px;
  margin: 26px 0 0;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero .lead {
  max-width: 720px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.b2b-theme {
  --b2b-accent: #4f8cff;
  --b2b-mint: #76e4d4;
  --b2b-amber: #f4c542;
}

.b2b-theme .hero {
  background:
    radial-gradient(circle at 18% 18%, rgba(79, 140, 255, 0.28), transparent 34%),
    radial-gradient(circle at 86% 22%, rgba(118, 228, 212, 0.14), transparent 30%),
    linear-gradient(125deg, #070b16 0%, #0d1728 48%, #142644 100%);
}

.b2b-theme .hero::before,
.business-page-hero::before {
  background-size: 80px 80px;
  opacity: 0.9;
}

.business-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: 58px;
  align-items: center;
}

.business-display {
  letter-spacing: 0;
}

.business-system-panel {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045)),
    rgba(7, 11, 22, 0.16);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

.system-panel-label {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 900;
}

.system-node {
  position: relative;
  padding: 20px 20px 20px 58px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.system-node::before {
  content: "";
  position: absolute;
  left: 30px;
  top: -12px;
  bottom: -12px;
  width: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.system-node:first-of-type::before {
  top: 30px;
}

.system-node:last-of-type::before {
  bottom: 30px;
}

.system-node span {
  position: absolute;
  left: 16px;
  top: 22px;
  z-index: 1;
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(79, 140, 255, 0.22);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.system-node.primary span {
  background: var(--b2b-mint);
  color: #07101d;
}

.system-node strong {
  display: block;
  color: #fff;
  font-size: 21px;
  line-height: 1.35;
}

.system-node p {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.hero-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(1120px, calc(100% - 40px));
  margin: -72px auto 0;
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
}

.strip-item {
  min-height: 154px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.94);
}

.strip-item span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.strip-item strong {
  display: block;
  margin-top: 8px;
  font-size: 21px;
  line-height: 1.45;
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0;
}

.section.compact {
  padding: 72px 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 42px;
}

.section-kicker {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

h2 {
  margin: 10px 0 0;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.45;
}

p {
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 20px;
}

.grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  min-height: 100%;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(36, 91, 255, 0.28);
  box-shadow: 0 18px 44px rgba(10, 16, 32, 0.11);
}

.card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #eef2ff;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.card p {
  margin-top: 12px;
}

.deep-band {
  background: var(--deep);
  color: #fff;
}

.deep-band p {
  color: rgba(255, 255, 255, 0.72);
}

.deep-band .card {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.deep-band .card .num {
  background: rgba(216, 243, 106, 0.16);
  color: var(--lime);
}

.service-list {
  display: grid;
  gap: 14px;
}

.service-row {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.service-row:last-child {
  border-bottom: 1px solid var(--line);
}

.service-row strong {
  font-size: 18px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 48px;
  align-items: center;
}

.profile-panel {
  padding: 34px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.profile-photo {
  min-height: 310px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 24% 24%, rgba(244, 197, 66, 0.26), transparent 28%),
    linear-gradient(135deg, rgba(36, 91, 255, 0.86), rgba(10, 16, 32, 0.94));
}

.note {
  padding: 28px;
  border-left: 5px solid var(--blue);
  background: #eef2ff;
}

.diagnosis-panel {
  display: grid;
  gap: 18px;
}

.diagnosis-visual {
  position: relative;
  min-height: 190px;
  margin-bottom: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background:
    radial-gradient(circle at 22% 30%, rgba(244, 197, 66, 0.18), transparent 26%),
    radial-gradient(circle at 72% 28%, rgba(36, 91, 255, 0.24), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
}

.diagnosis-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.diagnosis-visual-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 90px;
  height: 90px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(244, 197, 66, 0.26), rgba(36, 91, 255, 0.1) 54%, transparent 70%);
  box-shadow: 0 0 44px rgba(36, 91, 255, 0.24);
}

.diagnosis-visual-core::before,
.diagnosis-visual-core::after {
  content: "";
  position: absolute;
  inset: -28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: inherit;
  animation: rotateOrbit 7s linear infinite;
}

.diagnosis-visual-core::after {
  inset: -52px;
  animation-duration: 11s;
  animation-direction: reverse;
}

.diagnosis-visual-chip {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  backdrop-filter: blur(12px);
}

.diagnosis-visual-chip:nth-child(1) {
  left: 12%;
  top: 28%;
}

.diagnosis-visual-chip:nth-child(2) {
  right: 14%;
  top: 22%;
}

.diagnosis-visual-chip:nth-child(3) {
  left: 58%;
  bottom: 20%;
}

.diagnosis-progress {
  display: grid;
  gap: 12px;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 18%, rgba(244, 197, 66, 0.14), transparent 28%),
    rgba(255, 255, 255, 0.06);
}

.diagnosis-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  color: #fff;
}

.diagnosis-progress-label {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.diagnosis-progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.diagnosis-progress-track span {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--lime));
  transition: width 260ms ease;
}

.diagnosis-panel.is-stepped .question-block {
  display: none;
}

.diagnosis-panel.is-stepped .question-block.is-active {
  display: grid;
  animation: questionIn 260ms ease both;
}

.diagnosis-panel.is-stepped .diagnosis-actions {
  display: none;
}

.diagnosis-step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.diagnosis-step-actions [hidden] {
  display: none;
}

.question-block {
  position: relative;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.question-block::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.14) 42%, transparent 72%);
  transform: translateX(-120%);
  opacity: 0;
}

.diagnosis-panel.is-transitioning .question-block.is-active {
  border-color: rgba(244, 197, 66, 0.46);
  background: rgba(255, 255, 255, 0.085);
}

.diagnosis-panel.is-transitioning .question-block.is-active::after {
  opacity: 1;
  animation: scanQuestion 360ms ease both;
}

.question-block:focus-within {
  transform: translateY(-2px);
  border-color: rgba(244, 197, 66, 0.56);
  background: rgba(255, 255, 255, 0.09);
}

.question-block.needs-answer {
  border-color: rgba(244, 197, 66, 0.72);
  animation: nudgeQuestion 280ms ease both;
}

.question-block legend {
  padding: 0 8px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.question-block label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.82);
}

.question-block input {
  margin-top: 7px;
  accent-color: var(--lime);
}

.diagnosis-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}

.button.on-dark {
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
}

.button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.analysis-panel {
  margin-top: 28px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.05);
}

.analysis-panel[hidden] {
  display: none;
}

.analysis-panel.is-running {
  animation: panelIn 320ms ease both;
}

.analysis-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.analysis-header h3 {
  max-width: 720px;
  color: #fff;
}

.analysis-orbit {
  position: relative;
  flex: 0 0 94px;
  width: 94px;
  height: 94px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.analysis-orbit::before {
  content: "";
  position: absolute;
  inset: 15px;
  border: 1px solid rgba(244, 197, 66, 0.42);
  border-radius: 50%;
  animation: rotateOrbit 2.8s linear infinite;
}

.analysis-orbit span {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 18px rgba(244, 197, 66, 0.6);
}

.analysis-orbit span:nth-child(1) {
  top: 12px;
  left: 42px;
}

.analysis-orbit span:nth-child(2) {
  right: 12px;
  bottom: 25px;
  background: #fff;
}

.analysis-orbit span:nth-child(3) {
  bottom: 17px;
  left: 19px;
  background: var(--blue);
}

.analysis-meter {
  height: 8px;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.analysis-meter span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--lime));
  transition: width 520ms ease;
}

.analysis-steps {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.analysis-steps li {
  position: relative;
  padding: 14px 18px 14px 44px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.04);
}

.analysis-steps li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.26);
}

.analysis-steps li.is-active {
  color: #fff;
  border-color: rgba(244, 197, 66, 0.46);
  background: rgba(244, 197, 66, 0.08);
}

.analysis-steps li.is-active::before {
  background: var(--lime);
  animation: pulseDot 760ms ease-in-out infinite;
}

.analysis-steps li.is-complete {
  color: rgba(255, 255, 255, 0.9);
}

.analysis-steps li.is-complete::before {
  background: var(--blue);
  box-shadow: 0 0 16px rgba(36, 91, 255, 0.55);
}

.result-box {
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.result-reveal .result-box {
  animation: resultIn 420ms ease both;
}

.result-box > p {
  max-width: 860px;
  margin-top: 18px;
  font-size: 17px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.result-note {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 98% 12%, rgba(36, 91, 255, 0.08), transparent 24%),
    #f7f8fb;
}

.result-note strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

.result-note p {
  max-width: 900px;
  margin-top: 8px;
  color: var(--muted);
}

.card-action {
  display: inline-flex;
  margin-top: 18px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
}

.card-action::after {
  content: "->";
  margin-left: 8px;
}

.result-diagnostic {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 20px;
  margin-top: 28px;
}

.result-badge {
  display: grid;
  align-content: center;
  min-height: 148px;
  padding: 22px;
  border-radius: 8px;
  color: #fff;
  background:
    radial-gradient(circle at 84% 18%, rgba(244, 197, 66, 0.34), transparent 34%),
    linear-gradient(135deg, #0b1220, #1d3b72);
}

.result-badge span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.result-badge strong {
  margin-top: 10px;
  font-size: 30px;
  line-height: 1;
}

.result-bars {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f8fb;
}

.result-bars div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.result-bars i {
  display: block;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e7f0;
}

.result-bars b {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--lime));
  transition: width 520ms ease 180ms;
}

.result-score {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.result-score span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7f8fb;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.result-primary-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-top: 26px;
  padding: 24px;
  border: 1px solid rgba(36, 91, 255, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(244, 197, 66, 0.15), transparent 32%),
    linear-gradient(135deg, rgba(36, 91, 255, 0.1), rgba(255, 255, 255, 0.96) 46%),
    #fff;
  box-shadow: 0 18px 50px rgba(10, 16, 32, 0.09);
}

.result-primary-cta span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.result-primary-cta strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.35;
}

.result-primary-cta p {
  max-width: 680px;
  margin-top: 6px;
}

.result-primary-cta .button {
  min-height: 58px;
  padding-inline: 26px;
  white-space: nowrap;
}

.personal-theme .result-primary-cta {
  border-color: rgba(46, 124, 246, 0.2);
  background:
    radial-gradient(circle at 100% 0%, rgba(168, 234, 219, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(46, 124, 246, 0.09), rgba(255, 255, 255, 0.96) 46%),
    #fff;
}

.result-page-hero .section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.55fr);
  gap: 48px;
  align-items: end;
  min-height: 520px;
}

.result-page-hero {
  isolation: isolate;
}

.result-page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.08) 46%, transparent 47%),
    radial-gradient(circle at 74% 26%, rgba(255, 255, 255, 0.12), transparent 30%);
  background-size: 100% 170px, auto;
  mix-blend-mode: screen;
  opacity: 0.72;
  animation: reportScan 7s linear infinite;
}

.result-page-hero .section-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.result-page-hero h1 {
  max-width: 880px;
  font-size: clamp(42px, 5.2vw, 64px);
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
  word-break: normal;
  overflow-wrap: normal;
}

.result-type-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.045)),
    rgba(5, 10, 20, 0.24);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.result-type-card::before {
  content: "診断結果";
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #07101d;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}

.result-type-card::after {
  content: "ANALYSIS COMPLETE";
  position: absolute;
  right: 18px;
  bottom: 18px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.result-type-card span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.result-type-card strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 30px;
  line-height: 1.2;
}

.result-type-card p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.result-page-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 28px;
  align-items: start;
  margin-top: -118px;
  padding: 24px;
  border: 1px solid rgba(216, 221, 230, 0.72);
  border-radius: 8px;
  background:
    radial-gradient(circle at 10% 0%, rgba(36, 91, 255, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 248, 251, 0.96));
  box-shadow: 0 34px 100px rgba(10, 16, 32, 0.14);
}

.result-page-layout::before {
  content: "GENERATED DIAGNOSIS REPORT";
  position: absolute;
  left: 24px;
  top: -34px;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(10, 16, 32, 0.82);
  box-shadow: 0 14px 34px rgba(10, 16, 32, 0.22);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.result-main {
  position: relative;
  display: grid;
  gap: 22px;
}

.result-panel {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border: 1px solid rgba(199, 207, 220, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(36, 91, 255, 0.065), transparent 22%),
    #fff;
  box-shadow: 0 16px 46px rgba(10, 16, 32, 0.06);
}

.result-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--blue), var(--lime));
}

.result-panel::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 22px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 6px rgba(36, 91, 255, 0.09);
}

.result-panel h2,
.result-panel h3 {
  margin-top: 0;
}

.result-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.result-list li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
}

.result-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.next-path {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.next-path-item {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(199, 207, 220, 0.9);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(36, 91, 255, 0.07), transparent 34%),
    #f7f8fb;
}

.next-path-item span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.next-path-item strong {
  display: block;
  margin-top: 4px;
}

.result-side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
}

.result-side .card {
  border-color: rgba(199, 207, 220, 0.9);
  background:
    radial-gradient(circle at 100% 0%, rgba(244, 197, 66, 0.1), transparent 28%),
    #fff;
  box-shadow: 0 16px 46px rgba(10, 16, 32, 0.06);
}

.personal-theme .result-page-layout {
  background:
    radial-gradient(circle at 8% 0%, rgba(168, 234, 219, 0.13), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(246, 248, 251, 0.97));
}

.personal-theme .result-panel {
  background:
    linear-gradient(90deg, rgba(46, 124, 246, 0.06), transparent 22%),
    #fff;
}

.personal-theme .result-panel::before {
  background: linear-gradient(180deg, var(--personal-coral), var(--personal-mint));
}

.personal-theme .result-panel::after,
.personal-theme .result-list li::before {
  background: var(--personal-coral);
}

.personal-theme .result-type-card::before {
  color: #102033;
  background: var(--personal-mint);
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes resultIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes questionIn {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes nudgeQuestion {
  0%, 100% {
    transform: translateX(0);
  }
  35% {
    transform: translateX(-6px);
  }
  70% {
    transform: translateX(6px);
  }
}

@keyframes scanQuestion {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(120%);
  }
}

@keyframes pulseDot {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(244, 197, 66, 0);
  }
  50% {
    transform: scale(1.3);
    box-shadow: 0 0 18px rgba(244, 197, 66, 0.7);
  }
}

@keyframes rotateOrbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes reportScan {
  from {
    background-position: 0 -170px, 0 0;
  }
  to {
    background-position: 0 520px, 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

.cta {
  padding: 70px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 20%, rgba(244, 197, 66, 0.24), transparent 28%),
    linear-gradient(135deg, rgba(10, 16, 32, 0.98), rgba(36, 91, 255, 0.82));
  color: #fff;
}

.cta p {
  max-width: 720px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.78);
}

.cta .hero-actions {
  margin-top: 30px;
}

.page-hero {
  background: var(--deep);
  color: #fff;
}

.business-page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 16%, rgba(79, 140, 255, 0.22), transparent 32%),
    radial-gradient(circle at 86% 18%, rgba(118, 228, 212, 0.1), transparent 30%),
    linear-gradient(125deg, #070b16 0%, #0d1728 52%, #142644 100%);
}

.business-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0.86) 68%, transparent 100%);
}

.business-page-hero .section {
  position: relative;
}

.business-page-title {
  max-width: 960px;
  margin: 14px 0 0;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 1.03;
  letter-spacing: 0;
}

.business-diagnosis-title {
  max-width: 1040px;
  font-size: clamp(50px, 8vw, 98px);
  line-height: 0.98;
}

.page-hero .section {
  padding: 90px 0;
}

.page-hero p {
  max-width: 760px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
}

.personal-theme {
  --personal-coral: #2e7cf6;
  --personal-pink: #2f6f7e;
  --personal-amber: #e8b85a;
  --personal-mint: #a8eadb;
  --personal-ink: #111827;
  background: #f6f8fb;
}

.personal-theme .brand-mark {
  background: linear-gradient(135deg, var(--personal-amber), var(--personal-mint) 46%, var(--personal-coral));
  box-shadow: 0 8px 24px rgba(46, 124, 246, 0.24);
}

.personal-theme .section-kicker {
  color: var(--personal-coral);
}

.personal-theme .card .num {
  background: #fff0f4;
  color: var(--personal-coral);
}

.personal-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 16%, rgba(168, 234, 219, 0.2), transparent 32%),
    radial-gradient(circle at 84% 18%, rgba(46, 124, 246, 0.18), transparent 34%),
    linear-gradient(135deg, #111827 0%, #17324a 52%, #2f6f7e 100%);
}

.personal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.13) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.82) 62%, transparent 100%);
}

.personal-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.65fr);
  gap: 54px;
  align-items: center;
}

.personal-display {
  max-width: 860px;
  margin: 14px 0 0;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.98;
  letter-spacing: 0;
}

.personal-display span {
  color: var(--personal-mint);
}

.personal-summary-panel {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06)),
    rgba(17, 24, 39, 0.2);
  box-shadow: 0 28px 80px rgba(17, 24, 39, 0.28);
  backdrop-filter: blur(16px);
}

.summary-label {
  color: var(--personal-mint);
  font-size: 13px;
  font-weight: 900;
}

.summary-item {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.summary-item span {
  color: var(--personal-mint);
  font-size: 12px;
  font-weight: 900;
}

.summary-item strong {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 22px;
  line-height: 1.35;
}

.summary-item p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

.personal-theme .cta {
  background:
    radial-gradient(circle at 86% 18%, rgba(168, 234, 219, 0.2), transparent 28%),
    linear-gradient(135deg, #111827 0%, #17324a 54%, #2f6f7e 100%);
}

.personal-check-band {
  background:
    radial-gradient(circle at 16% 14%, rgba(168, 234, 219, 0.14), transparent 28%),
    linear-gradient(135deg, #111827, #172337 56%, #0d1724);
}

.personal-theme .analysis-meter span {
  background: linear-gradient(90deg, var(--personal-coral), var(--personal-mint));
}

.personal-theme .question-block:focus-within {
  border-color: rgba(255, 190, 61, 0.58);
  background: rgba(255, 255, 255, 0.1);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 860px) {
  .nav {
    min-height: auto;
    padding: 18px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .hero {
    min-height: 690px;
  }

  .hero-inner {
    padding-top: 76px;
  }

  .hero .lead {
    font-size: 17px;
  }

  .hero-strip,
  .section-head,
  .grid.three,
  .grid.two,
  .split,
  .result-diagnostic,
  .result-grid,
  .result-page-hero .section,
  .result-page-layout,
  .personal-hero-grid,
  .business-hero-grid {
    grid-template-columns: 1fr;
  }

  .result-side {
    position: static;
  }

  .result-page-layout {
    margin-top: -72px;
    padding: 18px;
  }

  .result-page-layout::before {
    left: 18px;
    top: -28px;
    min-height: 28px;
    font-size: 9px;
  }

  .result-primary-cta {
    grid-template-columns: 1fr;
  }

  .result-primary-cta .button {
    width: 100%;
  }

  .personal-display {
    font-size: clamp(44px, 14vw, 72px);
  }

  .personal-summary-panel {
    padding: 18px;
  }

  .hero-strip {
    margin-top: -36px;
  }

  .section {
    padding: 70px 0;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cta {
    padding: 36px 24px;
  }

  .footer-inner {
    flex-direction: column;
  }
}
