:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --ink: #111111;
  --muted: #6f7278;
  --line: rgba(17, 17, 17, 0.1);
  --accent: #ff4d6d;
  --accent-2: #2a9d8f;
  --hero-image: linear-gradient(135deg, #111111, #555555);
  color-scheme: light;
  font-family:
    "Zen Kaku Gothic New",
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Sans",
    "Hiragino Kaku Gothic ProN",
    "Noto Sans JP",
    "Yu Gothic",
    "Meiryo",
    sans-serif;
}

html,
body {
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  letter-spacing: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.screen {
  min-height: 100svh;
  width: 100%;
}

.lp-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 22px clamp(18px, 5vw, 42px) 28px;
  color: #ffffff;
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.76)),
    var(--hero-image);
  background-position: center;
  background-size: cover;
}

.lp-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.02));
  pointer-events: none;
}

.topbar {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: clamp(18px, 5vw, 42px);
  right: clamp(18px, 5vw, 42px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
}

.brand {
  font-size: 14px;
  font-weight: 700;
}

.admin-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  font-size: 13px;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 680px);
  padding-bottom: min(10svh, 82px);
}

.eyebrow {
  margin: 0 0 12px;
  color: currentColor;
  opacity: 0.72;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 11em;
  font-size: clamp(38px, 8vw, 76px);
  line-height: 1.04;
  font-weight: 800;
}

.lead {
  max-width: 26em;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 2.5vw, 21px);
  line-height: 1.65;
}

.hero-actions,
.bottom-actions,
.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-actions {
  margin-top: 28px;
}

.primary-button,
.secondary-button,
.text-button,
.line-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    opacity 180ms ease;
}

.primary-button {
  color: #ffffff;
  background: #111111;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.lp-screen .primary-button {
  color: #111111;
  background: #ffffff;
}

.secondary-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
}

.text-button {
  color: currentColor;
  background: transparent;
}

.primary-button:active,
.secondary-button:active,
.text-button:active,
.line-button:active,
.icon-button:active {
  transform: scale(0.98);
}

.lp-signal {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: min(100%, 680px);
  margin-top: 16px;
}

.lp-signal span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
  font-size: 13px;
}

.legal-links {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
  /* color: rgba(255, 255, 255, 0.78); */
  font-size: 10px;
  color: #92989f;
}

.legal-links a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal-links-dark {
  justify-content: center;
  color: #92989f;
}

.privacy-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
  text-align: center;
}

.privacy-note a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal-body {
  min-height: 100svh;
  background:
    radial-gradient(
      circle at 18% 12%,
      rgba(255, 77, 109, 0.1),
      transparent 30%
    ),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

.legal-page {
  width: min(100%, 880px);
  margin: 0 auto;
  padding: 28px clamp(18px, 5vw, 42px) 64px;
}

.legal-header {
  padding: 34px 0 26px;
}

.legal-back-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.legal-header h1 {
  font-size: clamp(34px, 7vw, 58px);
  line-height: 1.08;
  font-weight: 850;
}

.legal-header p:not(.eyebrow) {
  margin-top: 18px;
  color: #44484f;
  font-size: 15px;
  line-height: 1.9;
}

.legal-card {
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 42px);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 60px rgba(17, 17, 17, 0.08);
}

.legal-card section + section {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.legal-card h2 {
  margin-bottom: 14px;
  font-size: clamp(18px, 3vw, 22px);
  line-height: 1.45;
  font-weight: 850;
}

.legal-card p,
.legal-card li {
  color: #3d4045;
  font-size: 14px;
  line-height: 1.9;
}

.legal-card p + p,
.legal-card p + ul,
.legal-card ul + p {
  margin-top: 10px;
}

.legal-card ul {
  display: grid;
  gap: 6px;
  padding-left: 1.2em;
  list-style: disc;
}

.compact-screen,
.result-screen,
.swipe-screen {
  display: grid;
  place-items: center;
  padding: 18px;
}

.app-shell,
.swipe-shell,
.result-layout {
  width: min(100%, 430px);
}

.app-shell {
  min-height: min(720px, calc(100svh - 36px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.analysis-shell h2,
.result-offer-card h2 {
  font-size: clamp(28px, 9vw, 42px);
  line-height: 1.12;
}

.swipe-shell {
  position: relative;
  height: min(820px, calc(100svh - 28px));
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
}

.swipe-top {
  display: grid;
  gap: 9px;
}

.swipe-top p {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.progress-track {
  width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(17, 17, 17, 0.08);
}

.progress-track span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: transform 240ms ease;
}

.card-stack {
  position: relative;
  min-height: 0;
}

.swipe-card {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 8px;
  background: #dfe3e2;
  box-shadow: 0 22px 55px rgba(20, 24, 32, 0.24);
  cursor: grab;
  touch-action: none;
  user-select: none;
  transition:
    transform 230ms ease,
    opacity 230ms ease;
  will-change: transform;
}

.swipe-card.is-next {
  transform: scale(0.965) translateY(14px);
  opacity: 0.58;
  pointer-events: none;
}

.swipe-card.is-dragging {
  cursor: grabbing;
  transition: none;
}

.card-photo,
.card-shade {
  position: absolute;
  inset: 0;
}

.card-photo {
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.card-shade {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.78)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0));
}

.card-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 24px;
  color: #ffffff;
}

.card-meta {
  display: inline-flex;
  max-width: 100%;
  min-height: 30px;
  align-items: center;
  /* padding: 0 10px; */
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(4px);
  font-size: 16px;
  font-weight: 800;
}

.card-content h2 {
  margin: 14px 0 0;
  font-size: clamp(28px, 8.3vw, 40px);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.choice-badge {
  position: absolute;
  z-index: 3;
  top: 28px;
  min-width: 96px;
  min-height: 46px;
  display: grid;
  place-items: center;
  border: 3px solid currentColor;
  border-radius: 8px;
  opacity: 0;
  font-size: 22px;
  font-weight: 900;
  transform: rotate(-12deg);
}

.choice-yes {
  right: 24px;
  color: #32d583;
}

.choice-no {
  left: auto;
  right: 20px;
  color: #ff4d6d;
  transform: rotate(12deg);
}

.swipe-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding-bottom: 4px;
}

.icon-button {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(17, 17, 17, 0.12);
  font-size: 35px;
  line-height: 1;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.no-button {
  color: #3791ff;
}

#swipeNo {
  border: 2px solid #3791ff;
}

.yes-button {
  color: #ff377f;
}

.analysis-shell {
  text-align: center;
}

.analysis-shell p {
  color: var(--muted);
}

.analysis-loader {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin: 0 auto 8px;
  border-radius: 14px;
  background: rgba(42, 157, 143, 0.1);
}

.analysis-loader img {
  width: 22px;
  height: 22px;
  opacity: 0.82;
  animation: analysisPulse 1100ms ease-in-out infinite;
}

.analysis-progress {
  display: grid;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
}

.analysis-progress-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.analysis-progress-meta .progress-percent {
  font-size: 40px;
  font-weight: 900;
  color: var(--figma-ink);
  line-height: 1;
}
.analysis-progress-meta .progress-percent small {
  font-size: 16px;
  font-weight: 900;
}
.analysis-progress-meta .progress-label {
  font-size: 12px;
  color: var(--figma-muted);
  font-weight: 700;
}

.analysis-progress-meta strong {
  color: var(--ink);
  font-size: 42px;
  font-variant-numeric: tabular-nums;
}

.analysis-progress-meta strong small {
  font-size: 0.6em; /* 数字に対する比率。小さいほど小さい */
  font-weight: 700;
  margin-left: 1px;
  color: #92989f;
}

.analysis-progress-track {
  width: 100%;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.08);
}

.analysis-progress-track span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-2), #65d6c7);
  box-shadow: 0 0 18px rgba(42, 157, 143, 0.38);
  transform: scaleX(0);
  transform-origin: left center;
}

.analysis-check {
  width: 100%;
  display: grid;
  gap: 16px;
  justify-items: center; /* 中央寄せ */
  margin: auto 0;
}
.analysis-check li {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #4b5563;
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px);
  animation: checkIn 420ms ease forwards;
}

/* SVGアイコンspanを消す */
.analysis-check .check-icon,
.analysis-check .pulse-icon {
  display: none;
}

/* li に◆を付ける（既存の content:none を上書き） */
.analysis-check li::before {
  content: "✦" !important; /* どこかで content:none されていても勝てるように */
  color: #242424;
  font-size: 11px;
  margin-right: 6px;
}

.result-layout {
  display: grid;
  gap: 12px;
  padding: 8px 0 22px;
}

.result-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  padding: 24px;
  color: #ffffff;
  background:
    radial-gradient(
      circle at 18% 12%,
      rgba(255, 255, 255, 0.36),
      transparent 31%
    ),
    linear-gradient(135deg, var(--accent-a, #ff4d6d), var(--accent-b, #2a9d8f));
  box-shadow: 0 22px 58px rgba(17, 17, 17, 0.18);
}

.result-card h2 {
  font-size: clamp(32px, 9vw, 48px);
  line-height: 1.04;
}

.result-copy {
  margin: 14px 0 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.62;
}

.same-type {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  margin: 20px 0 0;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 800;
}

.result-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface);
}

.result-section h3 {
  margin-bottom: 12px;
  font-size: 16px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list li {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(17, 17, 17, 0.06);
  font-size: 13px;
  font-weight: 800;
}

.job-list {
  display: grid;
  gap: 10px;
}

.job-list li {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
}

.job-list li:last-child {
  border-bottom: 0;
}

.job-list strong {
  flex: 0 0 auto;
  color: #ff9f1c;
  font-size: 13px;
}

.axis-bars {
  display: grid;
  gap: 12px;
}

.axis-row {
  display: grid;
  gap: 6px;
}

.axis-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.axis-track {
  height: 8px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(17, 17, 17, 0.08);
}

.axis-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.result-description,
.result-weapon p,
.result-environment p,
.save-notice {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.result-description {
  white-space: pre-line;
}

.save-notice {
  font-size: 12px;
}

.share-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.result-offer-card p {
  color: var(--muted);
  line-height: 1.75;
}

.job-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.job-metrics div {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--surface);
}

.job-metrics span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.job-metrics strong {
  font-size: 34px;
  line-height: 1;
}

.line-button {
  width: 100%;
  color: #ffffff;
  background: #06c755;
}

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

@keyframes analysisPulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(0.94);
  }

  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

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

@media (min-width: 760px) {
  .compact-screen,
  .result-screen,
  .swipe-screen {
    padding: 28px;
  }

  .app-shell,
  .swipe-shell,
  .result-layout {
    width: min(430px, 100%);
  }
}

@media (max-width: 420px) {
  .compact-screen,
  .result-screen,
  .swipe-screen {
    padding: 12px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .primary-button,
  .secondary-button,
  .text-button,
  .line-button {
    width: 100%;
  }

  .hero-actions,
  .bottom-actions {
    width: 100%;
  }

  .job-metrics {
    grid-template-columns: 1fr;
  }

  .swipe-shell {
    height: calc(100svh - 24px);
  }

  .card-content {
    padding: 20px;
  }
}

/* Figma implementation: LP / swipe */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.screen[data-screen="lp"],
.screen[data-screen="swipe"] {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 0;
  background: #f7f9ff;
}

.lp-screen {
  display: grid;
  place-items: center;
  justify-content: center;
  align-content: center;
  color: #111827;
  background-image: none;
  background-color: #e9e9fb;
}

.lp-screen::after {
  display: none;
}

.experience-shell {
  --figma-accent: #ff369a;
  --figma-ink: #111827;
  --figma-muted: #4b5563;
  --figma-soft: #faf9fc;
  --figma-line: #e9eaf0;
  width: min(100%, 402px);
  height: min(874px, 100svh);
  min-height: min(874px, 100svh);
  /* overflow: hidden; */
  /* border: 1px solid var(--figma-line); */
  border-radius: 32px;
  background: #ffffff;
  color: var(--figma-ink);
  /* box-shadow: 0 22px 70px rgba(17, 24, 39, 0.08); */
}

.experience-shell,
.experience-shell * {
  word-break: normal;
  overflow-wrap: anywhere;
}

.lp-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f7f9ff;
}

.lp-header {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 30px 12px 0;
  text-align: center;
}

.lp-badge {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 14px;
  border-radius: 999px;
  background: #e6f4f5;
  color: #4dc698;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.lp-badge::before {
  content: "✦";
  font-size: 9px;
  color: #4dc698;
}

.lp-header h1 {
  margin-top: 4px;
  font-size: 32px;
  line-height: 1.43;
  font-weight: 800;
  letter-spacing: 0;
  color: #1c1c28;
  word-break: keep-all;
  overflow-wrap: normal;
}

.mini {
  font-size: 24px;
  font-weight: 800;
}

.lp-title-accent {
  background: linear-gradient(90deg, #ff369a 0%, #b64cf0 55%, #4bc4f5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 800;
  font-size: 42px;
  letter-spacing: 6%;
}

.lp-header p:not(.lp-badge) {
  margin-top: 4px;
  color: #9a9aac;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 16%;
}

.lp-cards {
  /* ずらしの基準量。画面が低いほど縮む（各カード・アニメでこの変数を使う） */
  --card-shift: clamp(24px, 5svh, 40px);

  position: relative;
  width: clamp(230px, 46svh, 300px);
  height: clamp(190px, 34svh, 250px);
  margin: clamp(20px, 6svh, 40px) 0 clamp(22px, 4svh, 32px);
}

.lp-card {
  position: absolute;
  top: 0;
  left: 50%;
  width: clamp(122px, 23svh, 166px);
  height: clamp(150px, 28svh, 242px);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(80, 50, 120, 0.16);
  border: 3px solid #ffffff;
}

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

/* 左：奥で少し左に傾く */
.lp-card--back {
  transform: translateX(-50%) translateX(-84px) rotate(-10deg);
  z-index: 1;
}

/* 右：奥で少し右に傾く */
.lp-card--mid {
  transform: translateX(-50%) translateX(84px) rotate(10deg);
  z-index: 1;
}

/* 中央：正面・まっすぐ・一番手前・一番大きい */
.lp-card--front {
  width: clamp(134px, 26svh, 184px);
  height: clamp(164px, 31svh, 264px);
  transform: translateX(-50%) translateX(0) rotate(0deg);
  z-index: 3;
  box-shadow: 0 20px 40px rgba(80, 50, 120, 0.22);
}

/* ✕・♡ ボタン：カード群の左右端に重ねて配置 */
.lp-card-actions {
  position: absolute;
  left: 50%;
  bottom: clamp(4px, 1svh, 14px);
  transform: translateX(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  z-index: 4;
  pointer-events: none;
}

.lp-card-btn {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(60, 40, 90, 0.18);
}

.lp-card-btn img {
  width: 20px;
  height: 20px;
}

.lp-card-btn--no img {
  filter: grayscale(100%) opacity(0.5);
}

/* 背後のふんわりグロー */
.lp-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  z-index: 0;
  pointer-events: none;
}
.lp-glow--a {
  width: 140px;
  height: 140px;
  left: 8%;
  top: -10%;
  background: radial-gradient(
    circle,
    rgba(255, 54, 154, 0.28),
    rgba(255, 54, 154, 0)
  );
}
.lp-glow--b {
  width: 150px;
  height: 150px;
  right: 4%;
  bottom: -12%;
  background: radial-gradient(
    circle,
    rgba(75, 196, 245, 0.28),
    rgba(75, 196, 245, 0)
  );
}

/* きらめき・ドット・矢印の装飾（プレースホルダー） */
.lp-deco {
  position: absolute;
  z-index: 4;
  pointer-events: none;
}

/* キラキラ（スパークル）画像の差し込み枠 */
.lp-deco--sparkle {
  width: 22px;
  height: 22px;
}
.lp-deco--sparkle-1 {
  top: -14%;
  left: -13%;
}
.lp-deco--sparkle-2 {
  top: -6%;
  right: -8%;
}
.lp-deco--sparkle-3 {
  bottom: -11%;
  left: -14%;
}

/* 小さいドット画像の差し込み枠 */
.lp-deco--dot {
  width: 10px;
  height: 10px;
}
.lp-deco--dot-1 {
  top: 9%;
  left: -27%;
}
.lp-deco--dot-2 {
  bottom: 4%;
  right: -13%;
}

/* 矢印（カーブ）画像の差し込み枠 */
.lp-deco--arrow {
  width: 124px;
  height: 40px;
}
.lp-deco--arrow-top {
  top: -12%;
  right: 6%;
}
.lp-deco--arrow-bottom {
  bottom: -10%;
  left: 8%;
  transform: scaleX(-1);
}
.lp-deco--arrow-bottom img {
  transform: scaleX(-1);
}

/* ===== キラキラ瞬くアニメーション ===== */
/* 画像を差し込むだけで自動的に点滅する共通クラス */
.lp-twinkle {
  animation: lpTwinkle 2.2s ease-in-out infinite;
}
/* それぞれ周期・タイミングをずらして、自然な瞬きに見せる */
.lp-deco--sparkle-1 {
  animation-duration: 1.9s;
  animation-delay: 0s;
}
.lp-deco--sparkle-2 {
  animation-duration: 2.4s;
  animation-delay: 0.6s;
}
.lp-deco--sparkle-3 {
  animation-duration: 2.1s;
  animation-delay: 1.1s;
}
.lp-deco--dot-1 {
  animation-duration: 2.6s;
  animation-delay: 0.3s;
}
.lp-deco--dot-2 {
  animation-duration: 2s;
  animation-delay: 0.9s;
}
.lp-deco--arrow-top {
  animation-duration: 3s;
  animation-delay: 0.2s;
}
.lp-deco--arrow-bottom {
  animation-duration: 3s;
  animation-delay: 1.4s;
}

@keyframes lpTwinkle {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.82);
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}
/* 矢印は向きの反転(scaleX(-1))を保ったまま瞬かせる */
.lp-deco--arrow-bottom.lp-twinkle {
  animation-name: lpTwinkleArrow;
}
@keyframes lpTwinkleArrow {
  0%,
  100% {
    opacity: 0.25;
    transform: scaleX(-1) scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scaleX(-1) scale(1.1);
  }
}
.lp-deco--arrow.lp-twinkle {
  animation-name: lpArrowFlow;
}
.lp-deco--arrow-bottom.lp-twinkle {
  animation-name: lpArrowFlowBottom;
}

@keyframes lpArrowFlow {
  0%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@keyframes lpArrowFlowBottom {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleX(-1) translateY(0);
  }
  50% {
    opacity: 1;
    transform: scaleX(-1) translateY(3px);
  }
}

/* 動きが苦手な人向け設定では点滅を止める */
@media (prefers-reduced-motion: reduce) {
  .lp-twinkle {
    animation: none !important;
    opacity: 0.9 !important;
  }
}

.lp-bottom {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 17px;
  padding: 0 32px max(14px, env(safe-area-inset-bottom));
}

.lp-features {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 47px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.lp-feature {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.lp-feature-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
}

.lp-feature-icon img {
  width: 20px;
  height: 20px;
}

.lp-feature p {
  font-size: 10px;
  line-height: 1.4;
  font-weight: 700;
  /* color: #6f7183; */
  color: #242424;
  letter-spacing: 8%;
}

.lp-feature strong {
  font-weight: 900;
  color: #6f7183;
}

.lp-shell .hero-actions {
  width: 100%;
  margin: 0;
}

.lp-shell .primary-button {
  width: 100%;
  min-height: 53px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff369a 0%, #b64cf0 55%, #4bc4f5 100%);
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(145, 60, 180, 0.32);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 2px;
}

.lp-signal {
  width: auto;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--figma-muted);
  font-size: 13px;
  font-weight: 800;
}

.lp-signal img {
  width: 8px;
  height: 8px;
  /* filter: hue-rotate(90deg) saturate(1.6); */
}

.lp-signal span {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 8%;
}

#lpCompareCount {
  font-size: 13px !important;
  font-weight: 900;
}

.swipe-shell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: 0;
  background: #f7f9ff;
}

.swipe-shell .swipe-top {
  position: relative;
  width: 100%;
  display: grid;
  gap: 8px;
  padding: max(6px, env(safe-area-inset-top)) 24px 0;
  z-index: 2;
}

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

.progress-header p {
  margin: 0;
  font-weight: 900;
  line-height: 1.35;
}

.progress-header p:first-child {
  color: var(--figma-accent);
  font-size: 13px;
}

.progress-header p:last-child {
  color: var(--figma-ink);
  font-size: 14px;
}

.swipe-shell .progress-track {
  height: 6px;
  border-radius: 3px;
  background: var(--figma-line);
}

.swipe-shell .progress-track span {
  border-radius: inherit;
  /* background: var(--figma-accent); */
  /* background: linear-gradient(90deg, #ff2d8e 0%, #b64cf0 55%, #4bc4f5 100%); */
  background: #4dc698;
  /* background-size: 100vw 100%; */
}

.swipe-shell .card-stack {
  width: calc(100% - 48px);
  height: min(860px, calc(100svh - 232px));
  /* min-height: 360px; */
  margin: 32px 24px 0;
  flex: 0 0 auto;
}

.swipe-shell .swipe-card {
  border-radius: 10px;
  background: #e5e7eb;
  box-shadow: 0 12px 24px rgba(71, 69, 128, 0.04);
}

.swipe-shell .swipe-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 120ms ease;
  pointer-events: none;
}
.swipe-shell .swipe-card.tint-yes::before {
  opacity: 1;
  background: linear-gradient(
    180deg,
    rgba(255, 77, 141, 0.15),
    rgba(255, 45, 142, 0.45)
  );
}
.swipe-shell .swipe-card.tint-no::before {
  opacity: 1;
  background: linear-gradient(
    180deg,
    rgba(45, 200, 160, 0.15),
    rgba(13, 148, 136, 0.45)
  );
}

.swipe-shell .swipe-card.is-next {
  z-index: 1;
  opacity: 1;
  transform: scale(0.94) translateY(18px);
}

.swipe-shell .swipe-card:not(.is-next) {
  z-index: 2;
}

.swipe-shell .card-photo {
  transform: none;
}

.swipe-shell .card-shade {
  background: rgba(0, 0, 0, 0.15);
}

.swipe-shell .card-content {
  position: relative;
  z-index: 3;
  display: block;
  margin-top: auto;
  padding: 96px 24px 24px;
  color: #ffffff;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.86) 60%
  );
}

.swipe-shell .card-meta {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  /* padding: 0 10px; */
  border-radius: 999px;
  font-size: 18px;
  font-weight: 900;
  background: #ff369a;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.swipe-shell .card-content h2 {
  margin: 4px 0 0;
  font-size: clamp(22px, 6vw, 28px);
  line-height: 1.38;
  font-weight: 600;
  letter-spacing: 5%;
  background: linear-gradient(90deg, #ff369a 0%, #b64cf0 55%, #4bc4f5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.swipe-shell .choice-badge {
  top: 24px;
  width: 113px;
  min-height: 46px;
  padding: 0 14px 3px;
  border-width: 3px;
  border-radius: 8px;
  opacity: 0;
  transform: none;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
}

.swipe-shell .choice-no {
  /* left: 220px; */
  color: #fff;
}

.swipe-shell .choice-yes {
  left: 20px;
  color: #fff;
}

/* ===== スペシャルクエスチョン：全画面ベタ表示（1枚のイラスト画像を編集画面のまま出す） =====
   .swipe-card と .special-question-card 両方のクラスを持つ要素にすることで、
   他の場所にある .swipe-shell .swipe-card { border-radius: ... } より
   詳細度で確実に勝つようにしている（記述順に依存しない）。 */
.swipe-shell .swipe-card.special-question-card {
  background: #f2f2f2;
  border-radius: 0;
  box-shadow: none;
}

/* .choice-yes / .choice-no はドラッグ操作JSが参照する要素なので残すが、
   新デザインでは見せない（透明度操作のためだけに存在させる） */
.swipe-shell .swipe-card.special-question-card .choice-badge {
  display: none;
}

/* カードの入れ物（card-stack）自体の余白・角丸も、スペシャルの間だけ外して画面いっぱいにする */
.swipe-shell .card-stack.is-special-active {
  width: 100%;
  height: auto;
  min-height: 0;
  flex: 1 1 auto;
  margin: 0;
}

.swipe-shell .special-question-card__media {
  position: absolute;
  inset: 0;
  background: var(
    --special-question-bg,
    linear-gradient(135deg, #171a2d 0%, #3c285d 48%, #11283a 100%)
  );
  background-position: top center;
  background-size: cover;
  /* 先読み（is-next）の間は普通に表示しておき、登場演出は昇格の瞬間（.is-revealing）だけ動かす */
  opacity: 1;
  transform: none;
  /* margin-top: 60px; */
}

.swipe-shell .special-question-card.is-revealing .special-question-card__media {
  animation: specialImgIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes specialImgIn {
  from {
    opacity: 0;
    transform: scale(1.14);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

/* 画像の上下端を白へふわっと溶け込ませる（見出し・ボタンとの継ぎ目を消す） */
.swipe-shell .special-question-card__top-fade,
.swipe-shell .special-question-card__bottom-fade {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
}
.swipe-shell .special-question-card__top-fade {
  top: -20px;
  height: 164px;
  /* background: linear-gradient(180deg, #f7f9ff, rgba(255, 255, 255, 0.9) 50%, transparent 100%); */
}
.swipe-shell .special-question-card__bottom-fade {
  bottom: 0;
  height: 140px;
  /* background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.75) 55%, #f7f9ff 100%); */
}

/* ===== 共通ヘッダー側：バッジ＋見出し（スペシャルクエスチョンの時だけ表示） ===== */
.special-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px;
}

.special-header .sq-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  background: #06c78a;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  animation:
    sqBadgeIn 0.45s ease forwards,
    sqBadgePulse 1.8s ease-in-out 0.6s infinite;
}
@keyframes sqBadgeIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes sqBadgePulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(6, 199, 138, 0.35);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(6, 199, 138, 0);
  }
}

.special-header .sq-title-wrap {
  position: relative;
  display: inline-block;
}
.special-header .sq-title-wrap::before {
  content: "";
  position: absolute;
  left: -14px;
  right: -14px;
  top: 60%;
  height: 55%;
  z-index: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffb3d9, #c9b3ff, #b3e8ff);
  opacity: 0.9;
  /* 左端を起点に、右へ引いていく。タイトルの「バーン」が出たあと（約0.85秒後）に始まる */
  transform-origin: left center;
  animation: sqStreakDraw 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.85s backwards;
}
@keyframes sqStreakDraw {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
.special-header h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(20px, 6vw, 26px);
  font-weight: 900;
  color: #111;
  /* 画像（0.8秒でズームイン）より少し遅れて、大きい状態からバーン！と着地する */
  animation: sqTitleBang 0.46s cubic-bezier(0.2, 0.8, 0.3, 1) 0.55s both;
}
@keyframes sqTitleBang {
  0% {
    opacity: 0;
    transform: scale(2.2);
    filter: blur(6px);
  }
  50% {
    opacity: 1;
    transform: scale(0.92);
    filter: blur(0);
  }
  75% {
    transform: scale(1.06);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

/* ===== ネオンフレーム：スペシャルクエスチョンの時だけ画面の縁を光が走る ===== */
.neon-frame {
  position: absolute;
  inset: 0;
  z-index: 10;
  overflow: hidden;
  pointer-events: none;
  padding: 3px;
  border-radius: inherit;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  animation: neonFrameIn 0.5s ease forwards;
}
.neon-frame::before {
  content: "";
  position: absolute;
  inset: -60%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    #4bc4f5 18deg,
    #ffffff 30deg,
    #ff2d8e 42deg,
    transparent 62deg,
    transparent 300deg,
    #4bc4f5 340deg
  );
  animation: neonRotate 3.2s linear infinite;
}
@keyframes neonRotate {
  to {
    transform: rotate(360deg);
  }
}
@keyframes neonFrameIn {
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .neon-frame,
  .neon-frame::before,
  .swipe-shell .special-question-card__media,
  .special-header .sq-badge,
  .special-header .sq-title-wrap::before,
  .special-header h2 {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

.swipe-shell .swipe-actions {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-top: 30px;
  padding: 0 24px max(24px, env(safe-area-inset-bottom));
}

/* スペシャルクエスチョンの時：ボタンを画像の上に直接重ねて、画像を一番下まで伸ばす */
.swipe-shell.is-special-mode .card-stack {
  margin-top: -50px;
  z-index: 0;
}
.swipe-shell.is-special-mode .swipe-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(92px, env(safe-area-inset-bottom));
  z-index: 5;
  margin: 0;
  padding: 0 24px;
  background: transparent;
}
@media (max-width: 859px) {
  .swipe-shell.is-special-mode .swipe-actions {
    bottom: max(32px, env(safe-area-inset-bottom));
  }
}
.swipe-shell.is-special-mode .swipe-actions .icon-button {
  background: rgba(255, 255, 255, 0.96);
}

/* バッジ・見出しを、進捗バーのすぐ下＝画像の上に重ねて表示する */
.swipe-shell.is-special-mode .special-header {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 6;
  padding: 25px 10px 0;
  max-width: 430px;
  margin: auto;
  display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1px;
}

/* @media (max-width: 760px) {
  .swipe-shell.is-special-mode .special-header {
    max-width: 400px;
  }
} */

.swipe-shell .icon-button {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  box-shadow: 0 12px 12px rgba(71, 69, 128, 0.04);
  font-size: 0;
}

.swipe-shell .icon-button img {
  width: 30px;
  height: 30px;
}

.swipe-shell .no-button {
  border: 2px solid var(--figma-line);
  background: var(--figma-soft);
}

.swipe-shell .yes-button {
  border: 2px solid #ff377f;
  /* background: #f0fdfa; */
}

.keyboard-nav-guide {
  display: none;
}

.swipe-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  /* margin-top: 16px; */
  color: var(--figma-muted);
  font-size: 13px;
  font-weight: 800;
}

.swipe-shell .swipe-actions .icon-button span {
  font-size: 24px;
  font-weight: 900;
}

.swipe-hint-text {
  white-space: nowrap;
}

.swipe-hint-arrow {
  color: var(--figma-accent);
  font-size: 16px;
  font-weight: 900;
}

@media (max-width: 430px) {
  .screen[data-screen="lp"],
  .screen[data-screen="swipe"] {
    background: #f7f9ff;
  }

  .experience-shell {
    width: 100%;
    height: 100svh;
    min-height: 100svh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  /* 
  .swipe-shell .card-stack {
    margin-top: clamp(42px, 9svh, 80px);
  } */
}

@media (max-height: 760px) {
  /* .lp-header {
    padding-top: 56px;
  } */

  .lp-orb {
    width: 148px;
    height: 148px;
  }

  .swipe-shell .card-stack {
    margin-top: 42px;
    height: min(510px, calc(100svh - 218px));
    /* min-height: 330px; */
  }
}

@media (min-width: 860px) {
  .screen[data-screen="lp"],
  .screen[data-screen="swipe"] {
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0;
    background: #f8f9fa;
  }

  .experience-shell {
    width: 100%;
    height: auto;
    min-height: 100svh;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: #f7f9ff;
    box-shadow: none;
  }

  .lp-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: clamp(68px, 8svh, 76px) 120px 40px;
  }

  .lp-header {
    justify-items: center;
    gap: 16px;
    padding: 0;
    text-align: center;
  }

  .lp-badge {
    min-height: 27px;
    padding: 6px 16px;
    font-size: 13px;
  }

  .lp-header h1 {
    max-width: none;
    margin-top: 21px;
    font-size: 40px;
    line-height: 1.38;
  }

  .lp-header p:not(.lp-badge) {
    max-width: none;
    font-size: 16px;
    line-height: 1.35;
  }

  .lp-orb {
    width: 240px;
    height: 240px;
    margin: 40px 0 42px;
    border: 0;
    border-radius: 120px;
    background: linear-gradient(
      135deg,
      #eeedff 25%,
      rgba(255, 255, 255, 0) 75%
    );
  }

  .lp-orb img {
    width: 80px;
    height: 80px;
  }

  .lp-bottom {
    align-items: center;
    max-width: none;
    gap: 32px;
    padding: 0;
  }

  .lp-intro {
    justify-items: center;
    gap: 8px;
    text-align: center;
  }

  .lp-intro p {
    font-size: 16px;
  }

  .lp-intro span {
    font-size: 14px;
  }

  .lp-shell .hero-actions {
    width: 360px;
  }

  .lp-shell .primary-button {
    width: 360px;
    min-height: 58px;
    border-radius: 1000px;
    font-size: 18px;
  }

  .lp-signal {
    justify-content: center;
    font-size: 14px;
  }

  .lp-signal img {
    width: 8px;
    height: 8px;
  }

  .swipe-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: clamp(22px, 2.8svh, 80px) 120px 0px;
  }

  .swipe-shell .swipe-top {
    width: 100%;
    max-width: 1200px;
    padding: 0;
    gap: 12px;
  }

  .progress-header p:first-child {
    font-size: 14px;
  }

  .progress-header p:last-child {
    font-size: 16px;
  }

  .swipe-shell .progress-track {
    height: 8px;
    border-radius: 4px;
  }

  .swipe-shell .card-stack {
    width: auto;
    aspect-ratio: 3 / 4;
    height: min(800px, calc(100svh - 260px));
    margin: 52px auto 0;
  }

  /* スペシャルクエスチョン：デスクトップ幅では横に伸ばしすぎず、スマホ相当の幅で中央寄せにする */
  .swipe-shell .card-stack.is-special-active {
    width: min(430px, 100%);
    max-width: 430px;
    aspect-ratio: auto;
    height: 100vh;
    /* margin: 52px auto 0; */
    flex: 0 0 auto;
  }

  .swipe-shell.is-special-mode .swipe-actions {
    left: 50%;
    right: auto;
    width: min(430px, 100%);
    transform: translateX(-50%);
  }

  .swipe-shell .swipe-card {
    border-radius: 28px;
  }

  .swipe-shell .card-content {
    padding: 82px 24px 24px;
  }

  .swipe-shell .card-content h2 {
    max-width: 100%;
    font-size: 24px;
  }

  .swipe-shell .swipe-actions {
    width: auto;
    gap: 80px;
    margin: 32px 0 0;
    padding: 0;
  }

  .swipe-shell .icon-button {
    width: 72px;
    height: 72px;
  }

  .swipe-shell .icon-button img {
    width: 28px;
    height: 28px;
  }

  .keyboard-nav-guide {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    color: var(--figma-muted);
    font-size: 12px;
    line-height: 1.35;
    font-weight: 600;
    opacity: 0.6;
  }

  .swipe-hint {
    display: none;
  }

  .keyboard-nav-guide .key-cap {
    min-width: 25px;
    min-height: 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border: 1px solid var(--figma-line);
    border-radius: 4px;
    background: #f8f9fa;
    color: #111827;
    font-weight: 800;
  }
}

/* Figma implementation: analysis / result */
.screen[data-screen="analysis"] {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 0;
  background: #f8f9fa;
}

.screen[data-screen="analysis"] .experience-shell {
  --figma-accent: #0d9488;
  --figma-ink: #111827;
  --figma-muted: #4b5563;
  --figma-soft: #faf9fc;
  --figma-line: #e9eaf0;
  width: min(100%, 402px);
  height: min(874px, 100svh);
  min-height: min(874px, 100svh);
  overflow: hidden;
  /* border: 1px solid var(--figma-line); */
  border-radius: 32px;
  background: #f8f9fa;
  color: var(--figma-ink);
  /* box-shadow: 0 22px 70px rgba(17, 24, 39, 0.08); */
}

.analysis-shell {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 36px;
  padding: 50px 48px 68px;
  text-align: center;
}

.analysis-header {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.analysis-loader {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin: 0;
  border: 0;
  border-radius: 16px;
  background: #f0fdfa;
  animation: none;
}

.analysis-loader img {
  width: 28px;
  height: 28px;
  opacity: 0.82;
  animation: analysisPulse 1100ms ease-in-out infinite;
}

.analysis-shell h2 {
  color: var(--figma-ink);
  font-size: 16px;
  line-height: 1.45;
  font-weight: 700;
  margin-top: 26px;
}

.analysis-progress {
  gap: 2px;
  margin-top: -18px;
}

.analysis-progress-meta {
  color: var(--figma-muted);
  font-size: 12px;
}

.analysis-progress-meta strong {
  color: var(--figma-ink);
}

.analysis-progress-track {
  height: 10px;
  background: #eef2f7;
}

.analysis-progress-track span {
  background: linear-gradient(90deg, #ff2d8e, #b64cf0 55%, #4bc4f5);
  /* background-size: 100vw 100%;   バーが伸びても色位置が変わらない */
  box-shadow: 0 4px 12px rgba(180, 60, 160, 0.25);
}

.analysis-check {
  width: 100%;
  display: grid;
  gap: 14px;
  margin: auto 0;
}

.analysis-check li {
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--figma-ink);
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(8px);
  animation: checkIn 420ms ease forwards;
  letter-spacing: 3%;
}

.analysis-check li::before {
  content: none;
}

.analysis-check .check-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  background: url("../assets/figma/analysis-check.svg") center / contain
    no-repeat;
}

.analysis-check .pulse-icon {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  margin-left: 5px;
  margin-right: 5px;
  background: url("../assets/figma/analysis-pulse-dot.svg") center / contain
    no-repeat;
}

.analysis-check .is-current {
  color: var(--figma-accent);
  font-weight: 900;
}

.analysis-compare {
  color: var(--figma-muted);
  font-size: 12px;
  line-height: 1.6;
}

.analysis-compare strong {
  font-weight: inherit;
}

.analysis-result-action {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.5s ease,
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.analysis-result-action.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.analysis-result-action .primary-button {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 56px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff2d8e, #b64cf0 55%, #4bc4f5);
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 1px;
  box-shadow: 0 12px 24px rgba(180, 60, 160, 0.3);
}

/* 分析中：淡いミントで「まだ押せない」印象に */
.analysis-result-action .primary-button:not(.is-ready) {
  background: #d6efe6;
  color: #9cc4b6;
  box-shadow: none;
  cursor: not-allowed;
  animation: none !important;
}

/* 完了後：グリーンに切り替えて押せる状態に */
.analysis-result-action .primary-button.is-ready {
  background: linear-gradient(90deg, #22c08a, #17a673);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(23, 166, 115, 0.35);
  cursor: pointer;
}

.analysis-result-action.is-visible .primary-button.is-ready {
  animation: resultBtnBeat 2.4s ease-in-out 0.6s infinite;
}
.analysis-result-action .primary-button > * {
  position: relative;
  z-index: 1;
}
.analysis-result-action.is-visible .primary-button.is-ready::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  transform: skewX(-18deg);
  animation: resultBtnShine 3s ease-in-out 0.8s infinite;
  z-index: 0;
}
@keyframes resultBtnBeat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.035);
  }
}
@keyframes resultBtnShine {
  0% {
    left: -60%;
  }
  55% {
    left: 120%;
  }
  100% {
    left: 120%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .analysis-result-action.is-visible .primary-button {
    animation: none;
  }
  .analysis-result-action.is-visible .primary-button::before {
    animation: none;
    opacity: 0;
  }
}

.result-screen {
  display: grid;
  place-items: start center;
  min-height: 100svh;
  padding: 0;
  overflow-y: auto;
  background: #faf9fc;
}

.result-layout {
  width: min(100%, 402px);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0px 10px 24px;
  background: #faf9fc;
}

.result-card.specimen-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 34px;
  border: 0;
  border-radius: 20px;
  padding: 32px 24px;
  color: #111827;
  background: transparent;
  box-shadow: none;
}

/* ===== 結果ヒーロー部（カンプ準拠）===== */
.result-hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 40px;
}

/* 上位◯% バッジ（グラデ・ポップ登場） */
.result-rank {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 4px 24px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(90deg, #ff369a 0%, #b64cf0 55%, #4bc4f5 100%);
  box-shadow: 0 2px 28px rgba(96, 172, 243, 0.35);
  margin-bottom: 10px;
  transform: scale(0);
  animation: rankPop 0.6s cubic-bezier(0.3, 1.6, 0.5, 1) 0.2s forwards;
}
.result-rank-label {
  font-size: 12px;
  letter-spacing: 0.15em;
  opacity: 0.9;
  align-self: center;
}
.result-rank-num {
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.result-rank-unit {
  font-size: 18px;
}
@keyframes rankPop {
  0% {
    transform: scale(0) rotate(-15deg);
  }
  60% {
    transform: scale(1.1) rotate(4deg);
  }
  100% {
    transform: scale(1) rotate(0);
  }
}

.result-rank-caption {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #9a9aac;
  margin-bottom: 20px;
  opacity: 0;
  animation: heroFadeUp 0.5s ease 0.7s forwards;
}

.result-hero-eyebrow {
  font-size: 13px;
  color: #6b7280;
  font-weight: 700;
  margin-bottom: 4px;
  opacity: 0;
  animation: heroFadeUp 0.5s ease 0.9s forwards;
}
.result-card .result-hero-name {
  font-size: 30px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #ff369a 0%, #b64cf0 55%, #4bc4f5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 28px;
  opacity: 0;
  animation: heroFadeUp 0.6s cubic-bezier(0.3, 1.2, 0.5, 1) 1.05s forwards;
}

/* 正方形の画像プレースホルダー（ボタン要素なので、見た目のリセットも兼ねる） */
.result-hero-image {
  position: relative;
  display: block;
  width: 184px;
  height: 260px;
  margin: 0 auto 28px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  opacity: 0;
  animation: heroFadeUp 0.5s ease 1.2s forwards;
  perspective: 800px;
  cursor: pointer;
}

/* 影：画像より少し下・少し小さめに置いて、浮いている見え方にする */
.hero-image-shadow {
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 68%;
  height: 18px;
  background: radial-gradient(
    ellipse at center,
    rgba(20, 20, 30, 0.28) 0%,
    rgba(20, 20, 30, 0) 72%
  );
  transform: translateX(-50%) scale(1);
  opacity: 0;
  animation:
    heroFadeUpShadow 0.5s ease 1.2s forwards,
    heroFloatShadow 3.6s ease-in-out 1.7s infinite;
  pointer-events: none;
}

@keyframes heroFadeUpShadow {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ふわふわ：画像本体と、影（大きさ・濃さが逆に動く）をセットで揺らす */
.hero-image-float {
  display: block;
  width: 100%;
  height: 100%;
  animation: heroFloat 3.6s ease-in-out 1.7s infinite;
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

@keyframes heroFloatShadow {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.9;
  }
  50% {
    transform: translateX(-50%) scale(0.82);
    opacity: 0.55;
  }
}

.hero-image-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.34, 1.3, 0.5, 1);
  transform-style: preserve-3d;
  /* 登場時：くるくる回ってイラスト面（表）で止まる */
  animation: heroImageSpinIn 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) 1.2s both;
}

/* たまに一回、登場時と同じようにクルンと回る（JSがこのクラスを付け外しする） */
.hero-image-inner.is-spinning {
  animation: heroImageSpinOnce 1.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes heroImageSpinIn {
  0% {
    transform: rotateY(0deg);
  }
  /* 2回転半まわして、最後は表（0度＝720度）でピタッと */
  100% {
    transform: rotateY(720deg);
  }
}

@keyframes heroImageSpinOnce {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}
.hero-image-face {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-image-front {
  background: #d9d9e0;
}
.hero-image-back {
  background: #fff;
  transform: rotateY(180deg);
}
.hero-image-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-hero-tagline {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  color: #1f2937;
  opacity: 0;
  animation: heroFadeUp 0.5s ease 1.35s forwards;
  text-align: left;
  letter-spacing: 5%;
}

@keyframes heroFadeUp {
  0% {
    transform: translateY(12px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.result-card.specimen-card::before {
  content: none;
}

.result-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #0d9488;
  font-size: 11px;
  font-weight: 900;
}

.result-card-header p {
  font-weight: 900;
}

.result-card-header p:last-child {
  color: #4b5563;
}

.result-divider {
  height: 1px;
  width: 100%;
  background: #e9eaf0;
}

.result-type-block {
  display: grid;
  gap: 12px;
}

.result-label,
.result-section h3 {
  color: #8a90a0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.12em;
}

.result-card h2 {
  color: #111827;
  font-size: 30px;
  line-height: 1.22;
  font-weight: 900;
}

.result-copy {
  margin: 0;
  color: #4b5563;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.same-type {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid #0d9488;
  border-radius: 8px;
  color: #0d9488;
  background: #f0fdfa;
  font-size: 13px;
  font-weight: 900;
}

.same-type img {
  width: 16px;
  height: 16px;
}

.same-type strong {
  font-size: 15px;
  font-weight: 900;
}

.result-section {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.result-section h3 {
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.result-section h3 .section-jp {
  color: #1f2937;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.3;
}

/* 才能TOP3：番号バッジ＋タイトル＋説明の2行構成 */
.talent-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.talent-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.talent-list li > div {
  flex: 1;
  min-width: 0;
}

.talent-list li::before {
  counter-increment: talent;
  content: counter(talent);
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--accent-a, #ff369a),
    var(--accent-b, #4bc4f5)
  );
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-top: 1px;
}

.talent-list {
  counter-reset: talent;
}

.talent-list li strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #1f2937;
  line-height: 1.4;
}

.talent-list li small {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: #6b7280;
  line-height: 1.5;
  margin-top: 2px;
}

/* 実は、ここがあなたの武器：弱み → 武器 のbefore/after表示 */
.weapon-flip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 14px 12px;
  border-radius: 12px;
  background: #f7f7fa;
}

.weapon-before {
  padding: 7px 14px;
  border-radius: 999px;
  background: #e5e7eb;
  color: #4b5563;
  font-size: 13px;
  font-weight: 800;
}

.weapon-arrow {
  color: #9ca3af;
  font-size: 16px;
  font-weight: 900;
}

.weapon-after {
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    var(--accent-a, #ff369a),
    var(--accent-b, #4bc4f5)
  );
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.result-strengths .tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.result-strengths .tag-list li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 27px;
  padding: 6px 14px;
  /* border: 1px solid rgba(123, 95, 224, 0.3); */
  border-radius: 999px;
  color: #4dc698;
  background: #e6f4f5;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 5%;
}

.result-strengths .tag-list li::before {
  content: "✦";
  font-size: 9px;
  color: #4dc698;
}

/* ===== 結果をシェア パネル ===== */
.result-share-panel {
  padding: 16px;
  border-radius: 16px;
  background: #e6f4f5;
  border: 1px dashed #4dc698;
  text-align: center;
}
.result-share-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #242424;
  font-weight: 700;
  margin-bottom: 12px;
}
.result-share-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.result-share-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.result-share-btn:active {
  transform: scale(0.9);
}
.share-native {
  background: linear-gradient(135deg, #ff369a 0%, #b64cf0 55%, #4bc4f5 100%);
  color: #fff;
}
.result-share-btn[hidden] {
  display: none;
}
.share-tiktok {
  background: #1a1a1e;
  color: #fff;
}
.share-x {
  background: #1a1a1e;
  color: #fff;
}
.share-line-round {
  background: #06c755;
  color: #fff;
}
.share-copy {
  background: #fff;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  color: #1a1a1e;
}

.result-jobs .job-list {
  gap: 0;
  border: 0;
  border-radius: 0;
}

.result-jobs .job-list li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-height: 44px;
  padding: 11px 2px;
  border-bottom: 1px solid #eef0f4;
  color: #1f2937;
  font-size: 14px;
  font-weight: 700;
}

.result-jobs .job-list li:last-child {
  border-bottom: 0;
}

.result-jobs .job-list strong {
  color: #f5a400;
  font-size: 15px;
  letter-spacing: 1px;
  font-weight: 400;
}

.result-jobs .job-list small {
  color: #6b7280;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.5;
}

.result-hidden-data {
  display: none !important;
}

.result-primary-action {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.result-primary-action .primary-button {
  width: 100%;
  min-height: 56px;
  border-radius: 12px;
  background: #0d9488;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
}

.result-primary-action p,
.result-brand {
  color: #4b5563;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.share-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.share-actions .secondary-button {
  min-height: 52px;
  gap: 8px;
  border: 2px solid #0d9488;
  border-radius: 12px;
  color: #0d9488;
  background: #ffffff;
  font-size: 14px;
  font-weight: 900;
}

.share-actions .secondary-button:nth-child(2) {
  border-width: 1px;
  background: #f0fdfa;
}

.share-actions img {
  width: 18px;
  height: 18px;
}

.result-tertiary-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 4px 12px;
}

/* 再診断ボタン（アウトラインのピル＋回転アイコン）*/
.retry-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1.5px solid #c9ccd8;
  background: #ffffff;
  color: #555b66;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease;
}
.retry-button:hover {
  border-color: #9aa0ae;
  color: #333a44;
}
.retry-button:active {
  transform: scale(0.97);
}
.retry-icon {
  display: inline-block;
  font-size: 16px;
  transition: transform 0.5s ease;
}
/* ホバーで軽く回る */
.retry-button:hover .retry-icon {
  transform: rotate(-180deg);
}
/* クリックした瞬間にくるっと1回転 */
.retry-button.is-spinning .retry-icon {
  animation: retrySpin 0.6s ease;
}
@keyframes retrySpin {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(-360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .retry-icon,
  .retry-button:hover .retry-icon,
  .retry-button.is-spinning .retry-icon {
    transition: none;
    animation: none;
    transform: none;
  }
}

.result-tertiary-actions .text-button {
  min-height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #0d9488;
  font-size: 13px;
  font-weight: 800;
}

.result-tertiary-actions .text-button:last-child {
  color: #111827;
}

.result-brand {
  margin-top: 4px;
  color: #a3a6b8;
  font-weight: 500;
}

.result-offer-card {
  display: grid;
  gap: 18px;
  border: 0;
  border-radius: 18px;
  padding: 22px;
  background: linear-gradient(
    180deg,
    #e8f4f5 0%,
    #e8f4f5 38%,
    #faf9fc 60%,
    #faf9fc 100%
  );
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.06);
}

/* ===== MATCHING JOBS（カンプ準拠）===== */
.jobs-hit-header {
  display: block;
}
.jobs-hit-eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: #4dc698 !important;
  margin-bottom: 10px;
}
.jobs-hit-count {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.jobs-hit-num {
  font-size: 60px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
  color: #4dc698;
}
.jobs-hit-unit {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}
.jobs-hit-tail {
  font-size: 13px;
  color: #6b7280;
  /* margin-left: 6px; */
  font-weight: 700;
}
.jobs-hit-caption {
  margin-top: 20px;
  font-size: 12px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 8px;
}
.jobs-hit-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: jobsPulse 1.4s ease-in-out infinite;
}
@keyframes jobsPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.4;
  }
}

.match-job-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.match-job-card {
  padding: 14px 16px;
  border-radius: 14px;
  background: #f6f7fb;
  border: 1px solid #eceef4;
}

/* ===== スクロールで登場（画面に入ったら現れる）===== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* 下の求人ほど薄く（続きはLINEで、を示唆）*/
.match-job-card[data-card-index="1"] {
  opacity: 0.85;
}
.match-job-card[data-card-index="2"] {
  opacity: 0.6;
}
.match-job-card[data-card-index="3"] {
  opacity: 0.35;
  /* 下にいくほど透明になって消える */
  /* -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 90%); */
}
.match-job-card-match {
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #4dc698 !important;
  margin-bottom: 6px;
  font-weight: 900;
}
.match-job-card-role {
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
  filter: blur(3px);
  user-select: none;
}

/* ===== LINE誘導（カンプ準拠）===== */
.line-lead {
  margin-top: 30px;
}
.line-lead-title {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: #111827;
  margin-bottom: 20px;
}
.line-lead-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.line-lead-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #374151;
}
.line-lead-check {
  color: #06c755;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 1px;
}

/* 緑のLINEボタン（カンプ準拠）*/
.result-offer-card .line-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 58px;
  padding: 18px;
  margin-top: 20px;
  border: 0;
  border-radius: 999px;
  background: #06c755;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 4px 2px 22px rgba(6, 199, 85, 0.4);
  cursor: pointer;
  transition: transform 0.15s ease;

  overflow: hidden; /* 光がはみ出さないように */
  animation: lineBeat 2.4s ease-in-out infinite;
}

/* 表面を横切る光 */
.result-offer-card .line-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.55),
    transparent
  );
  transform: skewX(-18deg);
  animation: lineShine 2.8s ease-in-out infinite;
}

/* ゆっくり脈打つ */
@keyframes lineBeat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.035);
  }
}

/* 光が左から右へ通り過ぎる */
@keyframes lineShine {
  0% {
    left: -60%;
  }
  55% {
    left: 120%;
  }
  100% {
    left: 120%;
  }
}

/* 動きを減らす設定の人には止める */
@media (prefers-reduced-motion: reduce) {
  .result-offer-card .line-button {
    animation: none;
  }
  .result-offer-card .line-button::before {
    animation: none;
    opacity: 0;
  }
}

.result-offer-card .line-button:active {
  transform: scale(0.97);
}
.result-offer-card .line-button img {
  filter: brightness(0) invert(1);
  width: 20px;
  height: 20px;
}
.result-offer-card .line-note {
  text-align: center;
  /* margin-top: 12px; */
  font-size: 11px;
  color: #9ca3af;
}

.jobs-header {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.jobs-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: #f0fdfa;
}

.jobs-icon img {
  width: 24px;
  height: 24px;
}

.result-offer-card .eyebrow {
  display: none;
}

.result-offer-card h2 {
  color: #111827;
  font-size: 20px;
  line-height: 1.45;
  font-weight: 900;
}

.result-offer-card p {
  color: #4b5563;
  line-height: 1.55;
}

.result-offer-card #jobLeadCopy {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 500;
}

.job-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.job-metrics div {
  min-height: 80px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #e9eaf0;
  border-radius: 16px;
  padding: 20px;
  background: #faf9fc;
}

.job-metrics div.highlight {
  border: 1.5px solid #06c755;
  color: #06c755;
  background: #e6f9f0;
}

.job-metrics span {
  color: #4b5563;
  font-size: 15px;
  font-weight: 800;
}

.job-metrics .highlight span,
.job-metrics .highlight strong {
  color: #06c755;
}

.job-metrics strong {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: #111827;
  font-size: 32px;
  line-height: 1;
  font-weight: 900;
}

.job-metrics small {
  color: inherit;
  font-size: 13px;
  font-weight: 800;
}

.job-teaser {
  display: grid;
  gap: 12px;
}

.job-teaser p {
  font-size: 13px;
  font-weight: 800;
}

.job-preview-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(86px, 1fr));
  gap: 8px;
  overflow: hidden;
  border-radius: 12px;
}

.job-preview-list::before,
.job-preview-list::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.job-preview-list::before {
  background: rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.job-preview-list::after {
  opacity: 0.5;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(17, 24, 39, 0.1) 0 1px,
      transparent 1px 7px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(17, 24, 39, 0.08) 0 1px,
      transparent 1px 7px
    );
  mix-blend-mode: multiply;
}

.job-preview-card {
  min-height: 54px;
  display: grid;
  gap: 4px;
  border: 1px solid #e9eaf0;
  border-radius: 10px;
  padding: 10px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.04);
  filter: blur(1.4px);
  transform: translateZ(0);
}

.job-preview-card span,
.job-preview-card strong,
.job-preview-card small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: clip;
}

.job-preview-card span {
  color: #0d9488;
  font-size: 9px;
  font-weight: 900;
}

.job-preview-card strong {
  color: #111827;
  font-size: 11px;
  font-weight: 900;
}

.job-preview-card small {
  color: #4b5563;
  font-size: 8px;
  font-weight: 700;
}

.line-button {
  width: 100%;
  min-height: 56px;
  gap: 8px;
  border-radius: 16px;
  color: #ffffff;
  background: #06c755;
  font-size: 16px;
  font-weight: 900;
}

.line-button img {
  width: 18px;
  height: 18px;
}

.line-note {
  margin-top: -8px;
  color: #4b5563;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  letter-spacing: 5%;
}

@media (max-width: 430px) {
  .screen[data-screen="analysis"] {
    background: #ffffff;
  }

  .screen[data-screen="analysis"] .experience-shell {
    width: 100%;
    height: 100svh;
    min-height: 100svh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

@media (min-width: 860px) {
  .screen[data-screen="analysis"],
  .result-screen {
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0;
    background: #f8f9fa;
  }

  .screen[data-screen="analysis"] .experience-shell,
  .result-layout {
    width: min(1440px, 100%);
    min-height: 100svh;
    height: auto;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: #faf9fc;
    box-shadow: none;
  }

  .analysis-shell {
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
    padding: 76px 120px 40px;
  }

  .analysis-loader {
    width: 64px;
    height: 64px;
    border-radius: 32px;
    background: #f0fdfa;
  }

  .analysis-shell h2 {
    font-size: 24px;
  }

  .analysis-check {
    width: 380px;
    gap: 16px;
    margin: 0;
  }

  .analysis-check li {
    min-height: 36px;
    padding: 4px 16px;
    border-radius: 12px;
    background: #f8f9fa;
    font-size: 13px;
  }

  .analysis-compare {
    font-size: 14px;
  }

  .result-layout {
    align-items: center;
    gap: 16px;
    padding: 0px 120px 32px;
    /* margin-top: 40px; */
  }

  .result-card.specimen-card {
    width: 680px;
    gap: 40px;
    border-radius: 24px;
    padding: 0px 10px 30px;
  }

  .result-card.specimen-card::before {
    content: none;
  }

  .result-card-header,
  .result-label,
  .result-section h3 {
    font-size: 12px;
  }

  .result-card h2 {
    font-size: 34px;
  }

  .result-copy {
    font-size: 15px;
  }

  .same-type {
    width: 100%;
    min-height: 40px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
  }

  .same-type img {
    width: 18px;
    height: 18px;
  }

  .same-type strong {
    font-size: 16px;
  }

  .result-strengths .tag-list li {
    min-height: 34px;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 14px;
  }

  .result-jobs .job-list li {
    min-height: 45px;
    padding: 13px 16px;
    font-size: 14px;
  }

  .result-primary-action {
    width: 360px;
    margin-top: 0;
  }

  .result-primary-action .primary-button {
    border-radius: 16px;
    font-size: 16px;
  }

  .share-actions,
  .result-tertiary-actions {
    width: 100%;
    max-width: 1200px;
  }

  .result-tertiary-actions .text-button {
    font-size: 14px;
  }

  .result-brand {
    width: 100%;
    font-size: 12px;
  }

  .result-offer-card {
    width: 680px;
    gap: 22px;
    padding: 28px;
  }

  .jobs-icon {
    width: 56px;
    height: 56px;
    border-radius: 28px;
  }

  .jobs-icon img {
    width: 28px;
    height: 28px;
  }

  .result-offer-card h2 {
    font-size: 24px;
  }

  .result-offer-card #jobLeadCopy {
    font-size: 14px;
  }

  .job-metrics {
    width: 100%;
    max-width: 1200px;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .job-metrics div {
    min-height: 90px;
    padding: 24px;
  }

  .job-metrics strong {
    font-size: 36px;
  }

  .job-teaser {
    width: 100%;
    gap: 16px;
  }

  .job-teaser p {
    font-size: 14px;
  }

  .job-preview-list {
    width: min(520px, 100%);
    margin: 0 auto;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .job-preview-list::before {
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }

  .job-preview-card {
    min-height: 66px;
    border-radius: 12px;
    padding: 12px 14px;
  }

  .job-preview-card span {
    font-size: 10px;
  }

  .job-preview-card strong {
    font-size: 12px;
  }

  .job-preview-card small {
    font-size: 9px;
  }

  .line-button {
    width: 380px;
    justify-self: center;
    gap: 10px;
    font-size: 16px;
  }

  .line-button img {
    width: 20px;
    height: 20px;
  }

  .line-note {
    margin-top: -10px;
  }

  .analysis-result-action.is-visible {
    width: 50%;
  }
}

.admin-main {
  width: min(100% - 28px, 960px);
  margin: 0 auto;
  padding: 28px 0 56px;
}

.admin-login-screen {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 28px 14px;
  background: #f8f9fa;
}

.admin-login-screen[hidden] {
  display: none;
}

.admin-login-card {
  width: min(100%, 420px);
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.08);
}

.admin-login-card h1 {
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1.15;
}

.admin-login-card p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.65;
}

.admin-login-card label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-login-card input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fbfbfa;
  outline: none;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-header h1 {
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.08;
}

.admin-section {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface);
}

.admin-section h2 {
  font-size: 18px;
}

.admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-section-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.kpi-section {
  gap: 16px;
}

.kpi-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.kpi-card {
  min-height: 96px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fbfbfa;
}

.kpi-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.kpi-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.45;
}

.kpi-card strong {
  color: var(--ink);
  font-size: clamp(22px, 4vw, 32px);
  line-height: 1;
  font-weight: 900;
}

.kpi-card.kpi-message {
  grid-column: 1 / -1;
}

.kpi-card.kpi-message strong {
  font-size: 16px;
  line-height: 1.5;
}

.kpi-help {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfa;
}

.kpi-help summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.kpi-help-body {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding: 14px;
}

.kpi-help-body p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.65;
}

.kpi-help-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

.kpi-help-list div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.kpi-help-list dt {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.kpi-help-list dd {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}

.kpi-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.kpi-layout .kpi-panel:first-child {
  grid-column: 1 / -1;
}

.kpi-panel-wide {
  grid-column: 1 / -1;
}

.kpi-panel {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.kpi-panel h3 {
  font-size: 14px;
  font-weight: 900;
}

.kpi-panel-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}

.kpi-table-wrap {
  min-width: 0;
  overflow-x: auto;
}

.kpi-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 12px;
}

.kpi-table th,
.kpi-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: right;
  white-space: nowrap;
}

.kpi-table th:first-child,
.kpi-table td:first-child {
  text-align: left;
}

.kpi-table th {
  color: var(--muted);
  font-weight: 900;
}

.kpi-table td {
  color: var(--ink);
  font-weight: 800;
}

.kpi-result-list {
  display: grid;
  gap: 10px;
}

.kpi-result-row {
  display: grid;
  gap: 7px;
}

.kpi-result-row > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.kpi-result-row strong {
  min-width: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.kpi-result-row span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.kpi-result-row small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}

.kpi-dropoff-row {
  padding-bottom: 2px;
}

.kpi-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.08);
}

.kpi-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #0d9488;
}

.kpi-empty {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-section label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-section input,
.admin-section textarea,
.admin-section select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fbfbfa;
  outline: none;
}

.admin-section input[readonly] {
  color: var(--muted);
  background: rgba(17, 17, 17, 0.04);
}

.form-note {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.5;
}

.admin-type-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.admin-type-button {
  min-height: 68px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 4px 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  color: var(--ink);
  background: #fbfbfa;
  text-align: left;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.admin-type-button span {
  grid-row: 1 / span 2;
  align-self: center;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.07);
  font-size: 12px;
  font-weight: 900;
}

.admin-type-button strong {
  min-width: 0;
  font-size: 13px;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.admin-type-button small {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.admin-card-list {
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
}

.admin-card-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-card-toolbar strong {
  color: var(--ink);
  font-size: 16px;
}

.admin-card-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-card-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
}

.card-enabled-toggle {
  min-width: 56px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #fbfbfa;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.card-enabled-toggle input {
  width: 18px;
  height: 18px;
  min-height: auto;
  padding: 0;
}

.admin-card-row.is-disabled .admin-card-button {
  opacity: 0.56;
}

.admin-card-button strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.admin-card-button {
  min-height: 98px;
  width: 100%;
}

.admin-card-button span {
  align-self: start;
  margin-top: 3px;
}

.admin-card-button small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.image-dropzone {
  position: relative;
  min-height: 116px;
  display: grid;
  place-items: center;
  gap: 6px;
  border: 1px dashed rgba(17, 17, 17, 0.28);
  border-radius: 8px;
  padding: 18px;
  background: rgba(17, 17, 17, 0.025);
  color: var(--ink);
  text-align: center;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.image-dropzone strong {
  font-size: 14px;
}

.image-dropzone span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.image-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.image-dropzone.is-dragging {
  border-color: var(--accent);
  background: rgba(255, 77, 109, 0.08);
  transform: scale(0.99);
}

.admin-type-button.is-active {
  border-color: #111111;
  color: #ffffff;
  background: #111111;
}

.admin-type-button.is-active span {
  color: #111111;
  background: #ffffff;
}

.admin-type-button.is-active small {
  color: rgba(255, 255, 255, 0.7);
}

.admin-section textarea {
  line-height: 1.65;
  resize: vertical;
}

.checkbox-label {
  align-content: end;
  grid-template-columns: auto 1fr;
  align-items: center;
}

.checkbox-label input {
  width: 20px;
  min-height: 20px;
}

.admin-preview {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 8px;
  border-radius: 8px;
  padding: 18px;
  color: #ffffff;
  background-position: center;
  background-size: cover;
  text-align: right;
}

.admin-preview small {
  font-size: 13px;
  font-weight: 800;
  opacity: 0.82;
}

.admin-preview strong {
  max-width: 18em;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.24;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.danger-text {
  color: #c1121f;
}

.danger-button {
  border-color: rgba(193, 18, 31, 0.26);
  color: #c1121f;
  background: #fff7f8;
}

.admin-status {
  min-height: 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 820px) {
  .admin-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .kpi-card-grid,
  .kpi-layout {
    grid-template-columns: 1fr;
  }

  .kpi-layout .kpi-panel:first-child {
    grid-column: auto;
  }

  .kpi-help-list {
    grid-template-columns: 1fr;
  }
}

.complete-title {
  font-size: clamp(30px, 8vw, 44px);
  line-height: 1.12;
}

.complete-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 760px) {
  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== TOP(LP) ポップアニメーション ===== */
/* 登場：各要素を順番にポンッと */
.lp-shell > .lp-header,
.lp-shell > .lp-cards,
.lp-shell > .lp-bottom > .lp-features,
.lp-shell > .lp-bottom > .hero-actions,
.lp-shell > .lp-bottom > .lp-signal,
.lp-shell > .lp-bottom > .legal-links {
  opacity: 0;
  animation: lpPopIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.lp-shell > .lp-header {
  animation-delay: 0.1s;
}
.lp-shell > .lp-cards {
  animation-delay: 0.28s;
}
.lp-bottom > .lp-features {
  animation-delay: 0.42s;
}
.lp-bottom > .hero-actions {
  animation-delay: 0.54s;
}
.lp-bottom > .lp-signal {
  animation-delay: 0.66s;
}
.lp-bottom > .legal-links {
  animation-delay: 0.74s;
}

@keyframes lpPopIn {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 3枚を最初は隠す */
.lp-card {
  opacity: 0;
}

/* 左のカード：左からスッと */
.lp-card--back {
  animation: lpCardInBack 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards;
}
@keyframes lpCardInBack {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateX(-130px) rotate(-22deg);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateX(-84px) rotate(-10deg);
  }
}

/* 右のカード：右からスッと */
.lp-card--mid {
  animation: lpCardInMid 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.45s forwards;
}
@keyframes lpCardInMid {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateX(130px) rotate(22deg);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateX(84px) rotate(10deg);
  }
}

/* 中央のカード：出たあと、少し遅れて揺れ始める */
.lp-card--front {
  opacity: 0;
  animation:
    lpCardInFront 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s forwards,
    lpCardSway 3.5s ease-in-out 1.5s infinite;
}

/* 登場：終点は定位置 */
@keyframes lpCardInFront {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(20px) scale(0.9) rotate(0deg);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1) rotate(0deg);
  }
}

/* 揺れ：0%と100%を定位置に揃える（ここが繋ぎ目）*/
@keyframes lpCardSway {
  0%,
  100% {
    transform: translateX(-50%) translateX(0) rotate(0deg);
  }
  50% {
    transform: translateX(-50%) translateX(0) rotate(-2deg) translateY(-5px);
  }
}

/* ♡ボタンの鼓動 */
.lp-card-btn--yes {
  animation: lpHeartBeat 1.8s ease-in-out 1.4s infinite;
}
@keyframes lpHeartBeat {
  0%,
  100% {
    transform: scale(1);
  }
  15% {
    transform: scale(1.18);
  }
  30% {
    transform: scale(1);
  }
}

/* CTAの脈動＋グラデ流れ */
.lp-shell .primary-button {
  background: linear-gradient(
    90deg,
    #ff369a,
    #b64cf0,
    #4bc4f5,
    #b64cf0,
    #ff369a
  );
  background-size: 200% 100%;
  animation:
    lpCtaPulse 2.2s ease 1.2s infinite,
    lpCtaFlow 4s linear infinite; /* linear で等速・ずっと流れる */
}
@keyframes lpCtaFlow {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: -200% 50%;
  }
}

/* 動きが苦手な人向け：OSで「視差効果を減らす」設定なら全部止める */
@media (prefers-reduced-motion: reduce) {
  .lp-shell > *,
  .lp-card--front,
  .lp-card-btn--yes,
  .lp-shell .primary-button {
    animation: none !important;
    opacity: 1 !important;
  }
}

/* ===== ボタンのホバー（PC/SP共通）===== */
/* スタートボタン：ホバーで浮く＋影が強まる */
@media (hover: hover) {
  .lp-shell .primary-button {
    transition:
      box-shadow 0.2s ease,
      filter 0.2s ease;
  }
  .lp-shell .primary-button:hover {
    box-shadow: 0 18px 34px rgba(180, 60, 160, 0.45);
    filter: brightness(1.05) saturate(1.05);
  }

  /* ✕♡ボタン：ホバーで拡大＋色づく */
  .swipe-shell .icon-button {
    transition:
      transform 0.18s ease,
      box-shadow 0.18s ease,
      border-color 0.18s ease,
      background 0.18s ease;
  }
  .swipe-shell .yes-button:hover {
    transform: scale(1.1);
    border-color: #ff2d8e;
    box-shadow: 0 8px 20px rgba(255, 45, 142, 0.3);
  }
  .swipe-shell .yes-button:hover img {
    filter: none;
  }
  .swipe-shell .no-button:hover {
    transform: scale(1.1);
    border-color: #9aa0ae;
    box-shadow: 0 8px 20px rgba(60, 60, 80, 0.18);
  }

  /* 結果を見るボタン：ホバーで浮く */
  .analysis-result-action .primary-button {
    transition:
      box-shadow 0.2s ease,
      filter 0.2s ease;
  }
  .analysis-result-action .primary-button:hover {
    box-shadow: 0 18px 30px rgba(180, 60, 160, 0.4);
    filter: brightness(1.05) saturate(1.05);
  }

  /* 続きはLINEボタン：ホバーで少し明るく浮く */
  .result-offer-card .line-button {
    transition:
      box-shadow 0.2s ease,
      filter 0.2s ease;
  }
  .result-offer-card .line-button:hover {
    box-shadow: 0 16px 36px rgba(6, 199, 85, 0.5);
    filter: brightness(1.06);
  }

  /* 結果ヒーローのグレー□：ホバーでパネルが回る（回転中でなければ） */
  .result-hero-image:hover .hero-image-inner:not(.is-spinning) {
    transform: rotateY(180deg);
  }
}

.lp-signal {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lp-signal img {
  position: relative;
  z-index: 1;
}

.lp-title-accent {
  display: inline-block;
  position: relative;
}
.lp-title-accent::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 4px;
  width: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #ff369a, #b64cf0, #4bc4f5);
  transform: scaleX(0);
  transform-origin: left;
  animation: accentUnderline 0.5s ease 0.8s forwards;
}
@keyframes accentUnderline {
  to {
    transform: scaleX(1);
  }
}

.swipe-hint-arrow:first-child {
  animation: hintLeft 1.4s ease-in-out infinite;
}
.swipe-hint-arrow:last-child {
  animation: hintRight 1.4s ease-in-out infinite;
}
@keyframes hintLeft {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-5px);
  }
}
@keyframes hintRight {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
}

/* ハートバツボタン */
/* 押した瞬間、弾む */
.swipe-shell .yes-button.is-pressed {
  animation: btnPopYes 0.4s ease;
}
.swipe-shell .no-button.is-pressed {
  animation: btnPopNo 0.4s ease;
}
@keyframes btnPopYes {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.25);
  }
  70% {
    transform: scale(0.92);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes btnPopNo {
  0%,
  100% {
    transform: rotate(0) scale(1);
  }
  25% {
    transform: rotate(-8deg) scale(1.1);
  }
  75% {
    transform: rotate(8deg) scale(1.1);
  }
}

/* 舞うハート／バツの1粒 */
.pop-particle {
  position: absolute;
  z-index: 5;
  font-size: 20px;
  pointer-events: none;
  will-change: transform, opacity;
  animation: popFloat 0.9s ease-out forwards;
}
@keyframes popFloat {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.4);
  }
  30% {
    opacity: 1;
    transform: translate(-50%, -120%) scale(1.1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -260%) scale(0.8);
  }
}

/* 上にポイッ→斜め下にぽわーん（YES=右へ落ちる） */
.swipe-shell .swipe-card {
  will-change: transform;
}
.swipe-shell .swipe-card.toss-yes {
  animation: tossYes 0.7s linear forwards; /* linearにして、緩急はキーフレームで作る */
}
@keyframes tossYes {
  0% {
    transform: translate(0, 0) rotate(0);
    opacity: 1;
  }
  15% {
    transform: translate(18px, -55px) rotate(4deg);
  }
  30% {
    transform: translate(40px, -80px) rotate(8deg);
  } /* 頂点 */
  45% {
    transform: translate(66px, -70px) rotate(11deg);
  }
  60% {
    transform: translate(96px, -30px) rotate(14deg);
  }
  80% {
    transform: translate(160px, 120px) rotate(19deg);
    opacity: 1;
  }
  100% {
    transform: translate(240px, 460px) rotate(24deg);
    opacity: 0;
  }
}
.swipe-shell .swipe-card.toss-no {
  animation: tossNo 0.7s linear forwards;
}
@keyframes tossNo {
  0% {
    transform: translate(0, 0) rotate(0);
    opacity: 1;
  }
  15% {
    transform: translate(-18px, -55px) rotate(-4deg);
  }
  30% {
    transform: translate(-40px, -80px) rotate(-8deg);
  }
  45% {
    transform: translate(-66px, -70px) rotate(-11deg);
  }
  60% {
    transform: translate(-96px, -30px) rotate(-14deg);
  }
  80% {
    transform: translate(-160px, 120px) rotate(-19deg);
    opacity: 1;
  }
  100% {
    transform: translate(-240px, 460px) rotate(-24deg);
    opacity: 0;
  }
}

.experience-shell.tossing {
  overflow: visible;
}

/* 分析中 */
/* ===== 分析中カード（本体は静止、背後のゴーストカードが扇状に開閉してシャッフルを表現） ===== */
.analysis-card {
  position: relative;
  width: 148px;
  height: 190px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  animation: cardFloat 3.4s ease-in-out infinite;
}
/* カード全体（グロー・ゴースト・本体まとめて）がふわっと上下に浮く */
@keyframes cardFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

/* 背後のふんわりグロー：常に静かに脈動 */
.analysis-card .card-glow {
  position: absolute;
  z-index: 0;
  width: 260px;
  height: 260px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  object-fit: contain;
  pointer-events: none;
  animation: cardGlowBreathe 3.6s ease-in-out infinite;
}
@keyframes cardGlowBreathe {
  0%,
  100% {
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(0.95);
  }
  50% {
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

/* カード本体：中央でコンパクトな間（is-shuffling）だけ小刻みに揺れる */
.analysis-card .card-face {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 14px 26px rgba(120, 70, 200, 0.32));
  transform: scale(calc(1 - 0.85 * var(--closeAmount, 0)));
  opacity: calc(1 - var(--closeAmount, 0));
  transition:
    transform 0.5s cubic-bezier(0.45, 0, 0.2, 1),
    opacity 0.3s cubic-bezier(0.45, 0, 0.2, 1);
}
/* 前面カードの画像本体 */
.analysis-card .card-front-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.analysis-card.is-shuffling .card-face {
  animation: cardShuffleWobble 0.9s ease-in-out infinite;
}
@keyframes cardShuffleWobble {
  0%,
  100% {
    transform: rotate(-4deg) translateX(-2px);
  }
  50% {
    transform: rotate(4deg) translateX(2px);
  }
}
/* 完了したら本体の揺れを止めてまっすぐに */
.analysis-card.is-complete .card-face {
  animation: cardPopIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
/* 98%までにゆっくり縮んだ状態から、最後はぽーんと"押し出される"ようにゆっくり出てくる */
@keyframes cardPopIn {
  0% {
    transform: scale(0.15);
  }
  70% {
    transform: scale(1.04);
  }
  100% {
    transform: scale(1);
  }
}

/* アイコン（キラキラ→チェックに差し替え）：常に落ち着いた表示 */
.analysis-card .card-icon {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 2px 6px rgba(60, 30, 100, 0.35));
  animation: cardIconWindmill 6s linear infinite;
}
/*
  各区間の中は一定速度（直線補間）。速い区間と遅い区間の差は緩やか（約2倍）にして、
  「早くなったり、少しゆっくりになったり」くらいの控えめな緩急にする。
*/
@keyframes cardIconWindmill {
  0% {
    /* 通常の大きさ */
    transform: rotate(0deg) scale(1, 1);
  }
  20% {
    /* 大きくなる（1回目のピーク） */
    transform: rotate(450deg) scale(1.365, 1.248);
  }
  40% {
    /* 元の大きさに戻る */
    transform: rotate(675deg) scale(1, 1);
  }
  60% {
    /* 大きくなる（2回目のピーク） */
    transform: rotate(1125deg) scale(1.365, 1.248);
  }
  80% {
    /* 元の大きさに戻る */
    transform: rotate(1350deg) scale(1, 1);
  }
  100% {
    /* 合計1800deg(5回転)でちょうど360の倍数に戻り、継ぎ目なくループ */
    transform: rotate(1800deg) scale(1.05, 0.96);
  }
}

/* ===== ゴーストカード：進捗(--fan)に連動して扇が閉じていく =====
   --fan は JS が 1(開始・候補が多い) → 0(完了・1つに決定) へ更新する。
   外側の .card-ghost が「絞り込み」の位置を担当し、
   内側の .ghost-shake が常時小刻みに動いて「シャッフルしている感」を出す。 */
.analysis-card {
  --fan: 1;
}
.analysis-card .card-ghost {
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.analysis-card .ghost-shake {
  display: block;
  width: 100%;
  height: 100%;
}
.analysis-card .ghost-shake img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.analysis-card.is-shuffling .ghost-shake {
  animation: ghostShake 0.8s ease-in-out infinite;
}
/* 完了したらシャッフルの揺れを止める */
.analysis-card.is-complete .ghost-shake {
  animation: none;
}
@keyframes ghostShake {
  0%,
  100% {
    transform: rotate(-6deg) translateY(1px) translateX(-2px);
  }
  50% {
    transform: rotate(6deg) translateY(-3px) translateX(2px);
  }
}
.analysis-card .card-ghost--l1 {
  z-index: 2;
  opacity: 1;
  transform: translateX(calc(-26px * var(--fan)))
    rotate(calc(-10deg * var(--fan))) scale(calc(1 - 0.06 * var(--fan)));
}
.analysis-card .card-ghost--l1 .ghost-shake {
  animation-delay: 0s;
}
.analysis-card .card-ghost--l2 {
  z-index: 1;
  /* l2はl1よりひと足早く閉じる（透明度は常に100%、位置とサイズだけで絞り込みを表現） */
  opacity: 1;
  transform: translateX(calc(-50px * var(--fan)))
    rotate(calc(-18deg * var(--fan))) scale(calc(1 - 0.1 * var(--fan)));
}
.analysis-card .card-ghost--l2 .ghost-shake {
  animation-delay: 0.12s;
}
.analysis-card .card-ghost--r1 {
  z-index: 2;
  opacity: 1;
  transform: translateX(calc(26px * var(--fan)))
    rotate(calc(10deg * var(--fan))) scale(calc(1 - 0.06 * var(--fan)));
}
.analysis-card .card-ghost--r1 .ghost-shake {
  animation-delay: 0.2s;
}
.analysis-card .card-ghost--r2 {
  z-index: 1;
  opacity: 1;
  transform: translateX(calc(50px * var(--fan)))
    rotate(calc(18deg * var(--fan))) scale(calc(1 - 0.1 * var(--fan)));
}
.analysis-card .card-ghost--r2 .ghost-shake {
  animation-delay: 0.32s;
}
.analysis-card .card-ghost--l3 {
  z-index: 0;
  /* 一番外側：透明度は常に100%。位置とサイズだけで絞り込みが進むほど内側に収束する */
  opacity: 1;
  transform: translateX(calc(-72px * var(--fan)))
    rotate(calc(-26deg * var(--fan))) scale(calc(1 - 0.14 * var(--fan)));
}
.analysis-card .card-ghost--l3 .ghost-shake {
  animation-delay: 0.44s;
}
.analysis-card .card-ghost--r3 {
  z-index: 0;
  opacity: 1;
  transform: translateX(calc(72px * var(--fan)))
    rotate(calc(26deg * var(--fan))) scale(calc(1 - 0.14 * var(--fan)));
}
.analysis-card .card-ghost--r3 .ghost-shake {
  animation-delay: 0.56s;
}

/* アイコン切り替え：フッと消えてポンと出てくる（完了時のみ） */
.analysis-card .card-icon.is-swapping-out {
  animation: cardIconOut 0.09s ease-in forwards;
}
@keyframes cardIconOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.5);
  }
}
.analysis-card.is-complete .card-icon {
  animation: cardIconIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes cardIconIn {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }
  70% {
    opacity: 1;
    transform: scale(1.06);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== 完了状態：ゴーストのシャッフルを止めて、グローを静かに残す ===== */
.analysis-card.is-complete .card-ghost {
  animation: none;
  opacity: 0;
}
.analysis-card.is-complete .card-glow {
  animation: none;
  opacity: 0.75;
}

@media (prefers-reduced-motion: reduce) {
  .analysis-card .card-glow,
  .analysis-card .card-ghost,
  .analysis-card .ghost-shake,
  .analysis-card .card-face,
  .analysis-card .card-icon {
    animation: none;
  }
}

/* ===== 分析ステップ（アイコン+リング+点線） ===== */
.analysis-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  margin: 2px auto 0;
  max-width: 320px;
}

.a-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 84px;
  text-align: center;
}

.a-step-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ffffff;
  border: 2px solid #e3e6ee;
  transition:
    border-color 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}
.a-step-icon img {
  width: 20px;
  height: 20px;
  transition: filter 0.3s ease;
  /* 未完了は落ち着いたグレーに */
  filter: grayscale(1) opacity(0.45);
}

.a-step p {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: #9aa1ac;
  font-weight: 700;
  transition: color 0.3s ease;
}

.a-step-connector {
  width: 28px;
  height: 1px;
  border-top: 2px dashed #d8dce6;
  margin-top: 22px;
}

/* 実行中のステップ：ブランドカラーのリングでハイライト（位置・大きさは動かさない） */
.a-step.is-active .a-step-icon {
  border-color: #b64cf0;
  box-shadow: 0 0 0 4px rgba(182, 76, 240, 0.14);
  animation: stepBlink 1s steps(1, end) infinite;
}
@keyframes stepBlink {
  0%,
  49% {
    border-color: #b64cf0;
    box-shadow: 0 0 0 4px rgba(182, 76, 240, 0.14);
  }
  50%,
  100% {
    border-color: #e3e6ee;
    box-shadow: none;
  }
}
.a-step.is-active .a-step-icon img {
  filter: none;
}
.a-step.is-active p {
  color: #2b2f38;
}

/* 完了したステップ：グリーンで塗りつぶし、アイコンは白抜きに */
.a-step.is-done .a-step-icon {
  background: #22c08a;
  border-color: #22c08a;
  box-shadow: none;
}
.a-step.is-done .a-step-icon img {
  filter: brightness(0) invert(1);
}
.a-step.is-done p {
  color: #0d9488;
}

.dots span {
  color: #c7c7d1; /* 基本はグレー */
  animation: dotBlink 1.4s infinite;
}
.dots span:nth-child(1) {
  animation-delay: 0s;
}
.dots span:nth-child(2) {
  animation-delay: 0.25s;
}
.dots span:nth-child(3) {
  animation-delay: 0.5s;
}

@keyframes dotBlink {
  0%,
  60%,
  100% {
    color: #c7c7d1;
  }
  30% {
    color: #1c1c28;
  } /* 一瞬黒く */
}

.analysis-rotator {
  color: var(--figma-muted);
  font-size: 12px;
  font-weight: 700;
  transition: opacity 0.25s ease;
}

#analysisRotator {
  transition:
    opacity 0.25s ease,
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lp-deco img {
  width: 100%;
  height: 100%;
}

.lp-deco--sparkle-4 {
  top: 23%;
  right: -26%;
}
.lp-deco--sparkle-5 {
  bottom: 16%;
  left: -13%;
}

.lp-deco--sparkle-4 {
  animation-duration: 2.3s;
  animation-delay: 1.7s;
}
.lp-deco--sparkle-5 {
  animation-duration: 2s;
  animation-delay: 0.4s;
}

.progress-current {
  font-size: 22px;
  font-weight: 900;
}

.result-screen {
  position: relative;
  overflow: hidden;
}
.result-bg-deco {
  position: fixed;
  inset: 0;
  z-index: 5; /* ← 0 から 5 に変更：result-layoutより前面に出す */
  pointer-events: none;
  overflow: hidden;
}
.result-layout {
  position: relative;
  z-index: 1;
}

.bg-deco {
  position: absolute;
  top: -60px;
  pointer-events: none;
  animation: bgFall linear infinite;
}
.bg-deco img {
  display: block;
  width: 100%;
  height: 100%;
}
@keyframes bgFall {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0;
  }
  8% {
    opacity: var(--op, 0.35);
  }
  92% {
    opacity: var(--op, 0.35);
  }
  100% {
    transform: translate(var(--dx, 0px), 115vh) rotate(var(--rot, 360deg));
    opacity: 0;
  }
}


/* =====================================================
   スペシャルクエスチョンの場面転換（トランジション）
   data-style : wipe / iris / curtain / flash
   data-kind  : enter（登場）/ exit（退場）
   data-dir   : left / right（答えた向き）
   data-phase : cover（覆う）→ hold（覆ったまま）→ uncover（開く）
   ===================================================== */
.sq-transition {
  position: fixed;
  /* スクロールバーが出入りしても大きさ・中心が変わらないよう、inset:0 ではなくウィンドウ全体の大きさで置く */
  inset: auto;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 9999;
  overflow: hidden;
  pointer-events: none;
  --sq-gradient: linear-gradient(135deg, #ff369a 0%, #b64cf0 55%, #4bc4f5 100%);
  --sq-ease: cubic-bezier(0.7, 0, 0.3, 1);
}

.sq-transition[hidden] {
  display: none;
}

.sq-transition__layer,
.sq-transition__panel {
  position: absolute;
  background: var(--sq-gradient);
}

.sq-transition__layer {
  inset: 0 -20%;
}

.sq-transition__panel {
  left: 0;
  right: 0;
  height: 50.5%;
  /* 上下2枚で1つのグラデーションに見えるよう、背景を2倍の高さで持たせる */
  background-size: 100% 198%;
}

.sq-transition__panel--top {
  top: 0;
  background-position: top;
}

.sq-transition__panel--bottom {
  bottom: 0;
  background-position: bottom;
}

/* スタイルごとに使う部品だけ出す */
.sq-transition:not([data-style="curtain"]) .sq-transition__panel {
  display: none;
}

.sq-transition[data-style="curtain"] .sq-transition__layer {
  display: none;
}

/* ---- wipe：斜めに走り抜ける ---- */
.sq-transition[data-style="wipe"] .sq-transition__layer {
  transform: translateX(0) skewX(-14deg);
}

.sq-transition[data-style="wipe"][data-dir="left"][data-phase="cover"] .sq-transition__layer {
  animation: sqWipeInFromRight var(--sq-cover) var(--sq-ease) both;
}

.sq-transition[data-style="wipe"][data-dir="left"][data-phase="uncover"] .sq-transition__layer {
  animation: sqWipeOutToLeft var(--sq-uncover) var(--sq-ease) both;
}

.sq-transition[data-style="wipe"][data-dir="right"][data-phase="cover"] .sq-transition__layer {
  animation: sqWipeInFromLeft var(--sq-cover) var(--sq-ease) both;
}

.sq-transition[data-style="wipe"][data-dir="right"][data-phase="uncover"] .sq-transition__layer {
  animation: sqWipeOutToRight var(--sq-uncover) var(--sq-ease) both;
}

@keyframes sqWipeInFromRight {
  from { transform: translateX(120%) skewX(-14deg); }
  to { transform: translateX(0) skewX(-14deg); }
}

@keyframes sqWipeInFromLeft {
  from { transform: translateX(-120%) skewX(-14deg); }
  to { transform: translateX(0) skewX(-14deg); }
}

@keyframes sqWipeOutToLeft {
  from { transform: translateX(0) skewX(-14deg); }
  to { transform: translateX(-120%) skewX(-14deg); }
}

@keyframes sqWipeOutToRight {
  from { transform: translateX(0) skewX(-14deg); }
  to { transform: translateX(120%) skewX(-14deg); }
}

/* ---- iris：円が広がって、すぼまる ---- */
.sq-transition[data-style="iris"] .sq-transition__layer {
  inset: 0;
  clip-path: circle(150% at 50% 55%);
}

.sq-transition[data-style="iris"][data-phase="cover"] .sq-transition__layer {
  animation: sqIrisCover var(--sq-cover) var(--sq-ease) both;
}

.sq-transition[data-style="iris"][data-phase="uncover"] .sq-transition__layer {
  animation: sqIrisUncover var(--sq-uncover) var(--sq-ease) both;
}

@keyframes sqIrisCover {
  from { clip-path: circle(0% at 50% 55%); }
  to { clip-path: circle(150% at 50% 55%); }
}

@keyframes sqIrisUncover {
  from { clip-path: circle(150% at 50% 55%); }
  to { clip-path: circle(0% at 50% 55%); }
}

/* ---- curtain：上下から閉じて、開く ---- */
.sq-transition[data-style="curtain"] .sq-transition__panel--top,
.sq-transition[data-style="curtain"] .sq-transition__panel--bottom {
  transform: translateY(0);
}

.sq-transition[data-style="curtain"][data-phase="cover"] .sq-transition__panel--top {
  animation: sqCurtainTopIn var(--sq-cover) var(--sq-ease) both;
}

.sq-transition[data-style="curtain"][data-phase="cover"] .sq-transition__panel--bottom {
  animation: sqCurtainBottomIn var(--sq-cover) var(--sq-ease) both;
}

.sq-transition[data-style="curtain"][data-phase="uncover"] .sq-transition__panel--top {
  animation: sqCurtainTopOut var(--sq-uncover) var(--sq-ease) both;
}

.sq-transition[data-style="curtain"][data-phase="uncover"] .sq-transition__panel--bottom {
  animation: sqCurtainBottomOut var(--sq-uncover) var(--sq-ease) both;
}

@keyframes sqCurtainTopIn {
  from { transform: translateY(-101%); }
  to { transform: translateY(0); }
}

@keyframes sqCurtainBottomIn {
  from { transform: translateY(101%); }
  to { transform: translateY(0); }
}

@keyframes sqCurtainTopOut {
  from { transform: translateY(0); }
  to { transform: translateY(-101%); }
}

@keyframes sqCurtainBottomOut {
  from { transform: translateY(0); }
  to { transform: translateY(101%); }
}

/* ---- flash：ぱっと光って、ふわっと開ける ---- */
.sq-transition[data-style="flash"] .sq-transition__layer {
  inset: 0;
  opacity: 1;
}

.sq-transition[data-style="flash"][data-phase="cover"] .sq-transition__layer {
  animation: sqFlashCover var(--sq-cover) ease-out both;
}

.sq-transition[data-style="flash"][data-phase="uncover"] .sq-transition__layer {
  animation: sqFlashUncover var(--sq-uncover) ease-in both;
}

@keyframes sqFlashCover {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes sqFlashUncover {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(1.1); }
}

/* ---- 「SPECIAL QUESTION」の文字（登場の時だけ） ----
   位置は一切動かさず、ふわっと出て、ふわっと消える（カクつきの原因だった拡大縮小をやめた） */
.sq-transition__label {
  position: absolute;
  left: 50%;
  top: 50%;
  display: none;
  width: max-content;
  max-width: 92vw;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-align: center;
  text-shadow: 0 4px 28px rgba(90, 0, 110, 0.45);
  transform: translate(-50%, -50%);
  opacity: 0;
  will-change: opacity;
}

.sq-transition__label strong {
  white-space: nowrap;
  font-size: clamp(22px, 7.4vw, 34px);
  font-weight: 900;
  letter-spacing: 0.12em;
  padding-left: 0.12em;
  line-height: 1.1;
}

/* 文字の下の細いライン（左右から伸びる） */
.sq-transition__label i {
  display: block;
  width: 72%;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  transform: scaleX(0);
  transform-origin: center;
}

.sq-transition[data-kind="enter"] .sq-transition__label {
  display: flex;
}

/* 覆い終わる少し手前から出はじめる（覆う時間の55%あたり） */
.sq-transition[data-kind="enter"][data-phase="cover"] .sq-transition__label {
  animation: sqLabelFadeIn calc(var(--sq-cover) * 0.9) ease-out calc(var(--sq-cover) * 0.55) both;
}

.sq-transition[data-kind="enter"][data-phase="cover"] .sq-transition__label i {
  animation: sqLabelLine calc(var(--sq-cover) * 1.3) cubic-bezier(0.22, 1, 0.36, 1) calc(var(--sq-cover) * 0.7) both;
}

.sq-transition[data-kind="enter"][data-phase="hold"] .sq-transition__label {
  opacity: 1;
}

.sq-transition[data-kind="enter"][data-phase="hold"] .sq-transition__label i {
  transform: scaleX(1);
}

.sq-transition[data-kind="enter"][data-phase="uncover"] .sq-transition__label {
  animation: sqLabelFadeOut 0.22s ease-in both;
}

.sq-transition[data-kind="enter"][data-phase="uncover"] .sq-transition__label i {
  transform: scaleX(1);
}

@keyframes sqLabelFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes sqLabelFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes sqLabelLine {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ---- burst：選んだボタンから色が広がる（退場用） ----
   A を選ぶと A ボタンの青、B を選ぶと B ボタンのピンクが、そのボタンの位置から広がる */
.sq-transition[data-choice="a"] {
  --sq-color: #3791ff;
}

.sq-transition[data-choice="b"] {
  --sq-color: #ff377f;
}

.sq-transition[data-style="burst"] .sq-transition__layer {
  inset: 0;
  background: var(--sq-color, #3791ff);
  clip-path: circle(var(--sq-r, 150vmax) at var(--sq-x, 50%) var(--sq-y, 50%));
}

.sq-transition[data-style="burst"][data-phase="cover"] .sq-transition__layer {
  /* 波紋（輪っか）が2回広がった後に、全体を塗りつぶす */
  animation: sqBurstCover calc(var(--sq-cover) * 0.5) cubic-bezier(0.3, 0.7, 0.3, 1)
    calc(var(--sq-cover) * 0.5) both;
}

.sq-transition[data-style="burst"][data-phase="uncover"] .sq-transition__layer {
  animation: sqBurstUncover var(--sq-uncover) ease-out both;
}

@keyframes sqBurstCover {
  from { clip-path: circle(0px at var(--sq-x) var(--sq-y)); }
  to { clip-path: circle(var(--sq-r) at var(--sq-x) var(--sq-y)); }
}

@keyframes sqBurstUncover {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* 波紋：選んだボタンから、輪っか（◎）が2回広がる */
.sq-transition__ripple {
  position: absolute;
  left: var(--sq-x, 50%);
  top: var(--sq-y, 50%);
  width: 0;
  height: 0;
  box-sizing: border-box;
  border: 5px solid var(--sq-color, #3791ff);
  border-radius: 50%;
  box-shadow: 0 0 18px var(--sq-color, #3791ff);
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}

.sq-transition:not([data-style="burst"]) .sq-transition__ripple {
  display: none;
}

.sq-transition[data-style="burst"][data-phase="cover"] .sq-transition__ripple {
  animation: sqRipple calc(var(--sq-cover) * 0.7) cubic-bezier(0.25, 0.6, 0.4, 1) both;
}

/* 2つ目の輪っかは、少し遅れて広がる */
.sq-transition[data-style="burst"][data-phase="cover"] .sq-transition__ripple--2 {
  animation-delay: calc(var(--sq-cover) * 0.2);
}

@keyframes sqRipple {
  0% {
    width: 70px;
    height: 70px;
    opacity: 1;
    border-width: 6px;
  }
  70% {
    opacity: 0.9;
  }
  100% {
    width: calc(var(--sq-r) * 1.1);
    height: calc(var(--sq-r) * 1.1);
    opacity: 0;
    border-width: 3px;
  }
}

/* 選んだボタン自体も、その色で塗りつぶして「押した感」を出す */
.swipe-shell .swipe-actions .icon-button.is-chosen {
  color: #fff;
  transform: scale(1.12);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  /* 色の塗りは一瞬で切り替える（文字だけ白くなって空っぽに見えるのを防ぐ） */
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}

.swipe-shell .swipe-actions #swipeNo.is-chosen {
  background: #3791ff;
  border-color: #3791ff;
}

.swipe-shell .swipe-actions #swipeYes.is-chosen {
  background: #ff377f;
  border-color: #ff377f;
}

/* 動きを減らす設定の人には、演出を出さない */
@media (prefers-reduced-motion: reduce) {
  .sq-transition {
    display: none !important;
  }
}

/* 投げたカードが画面の外へ飛んでいく間に、ページ側へスクロールバーが出て
   画面の幅が15px動く（＝演出がカクつく）のを防ぐ。飛んでいく分は画面の端で切る */
.screen[data-screen="swipe"] {
  overflow: clip;
}


/* =====================================================
   画像ライトボックス（キャラ画像タップで拡大表示）
   ===================================================== */
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 16, 0.78);
  opacity: 0;
  animation: lightboxFadeIn 0.22s ease forwards;
}

.image-lightbox__img {
  position: relative;
  max-width: min(86vw, 420px);
  max-height: 82vh;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: scale(0.92);
  animation: lightboxImgIn 0.26s cubic-bezier(0.2, 0.8, 0.3, 1) 0.02s forwards;
}

.image-lightbox__close {
  position: absolute;
  top: max(18px, env(safe-area-inset-top, 0px));
  right: 18px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  animation: lightboxFadeIn 0.22s ease 0.05s forwards;
}

@keyframes lightboxFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes lightboxImgIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-image-float,
  .hero-image-shadow {
    animation: none !important;
  }
}


/* css/styles.css の末尾に追加（担当者が見る連絡先ブロック） */
.admin-user-handoff-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px 16px;
  margin: 8px 0 4px;
}
.admin-user-handoff-contact dt {
  font-size: 12px;
  opacity: 0.6;
}
.admin-user-handoff-contact dd {
  margin: 2px 0 0;
  font-weight: 600;
}