.psd-app {
  color-scheme: light;
  --ink: #221d25;
  --muted: #675c6d;
  --line: #eadfd0;
  --surface: #fffaf2;
  --surface-strong: #ffffff;
  --gold: #d6a84a;
  --green: #2f7d68;
  --shadow: 0 22px 60px rgba(55, 39, 23, 0.15);
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(214, 168, 74, 0.25), transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(63, 120, 170, 0.18), transparent 28%),
    linear-gradient(135deg, #fff7e8, #f8fbf4 52%, #fff4f5);
  color: var(--ink);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Sans",
    "Yu Gothic",
    sans-serif;
}

.psd-app,
.psd-app * {
  box-sizing: border-box;
}

.psd-app button,
.psd-app a {
  font: inherit;
}

.psd-app h1,
.psd-app h2,
.psd-app h3,
.psd-app p,
.psd-app figure {
  margin-top: 0;
}

.psd-app .app-shell {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 44px;
}

.psd-app .diagnosis-panel,
.psd-app .result-section,
.psd-app .seo-section {
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.psd-app .diagnosis-panel {
  padding: clamp(20px, 4vw, 42px);
}

.psd-app .intro {
  margin: 0 auto 26px;
}

.psd-app .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.psd-app .header-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 16px 34px rgba(84, 47, 20, 0.16);
}

.psd-app .selector-layout {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.psd-app .hand-reference {
  position: sticky;
  top: 18px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
}

.psd-app .hand-reference img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.psd-app .hand-reference figcaption {
  padding: 12px 14px 14px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.psd-app .choice-stack {
  display: grid;
  gap: 16px;
}

.psd-app .choice-panel {
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.psd-app .choice-heading {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.psd-app .choice-heading span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: var(--green);
  color: #ffffff;
  font-weight: 900;
}

.psd-app .choice-heading h2 {
  margin-bottom: 0;
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: 0;
}

.psd-app .button-grid {
  display: grid;
  gap: 10px;
}

.psd-app .mount-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.psd-app .sign-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.psd-app .choice-button {
  min-height: 54px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(45, 34, 28, 0.07);
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.psd-app .choice-button:hover,
.psd-app .choice-button:focus-visible {
  border-color: var(--choice-color);
  box-shadow: 0 14px 28px rgba(45, 34, 28, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.psd-app .choice-button.is-selected {
  border-color: var(--choice-color);
  background: color-mix(in srgb, var(--choice-color), white 84%);
}

.psd-app .sign-button {
  display: grid;
  min-height: 86px;
  place-items: center;
  padding: 6px;
  overflow: hidden;
}

.psd-app .sign-option-image {
  display: block;
  width: 100%;
  max-width: 128px;
  height: auto;
  aspect-ratio: 180 / 118;
  object-fit: contain;
  pointer-events: none;
}

.psd-app .image-choice-board {
  position: relative;
  display: block;
  width: min(100%, 430px);
  margin: 0 auto;
}

.psd-app .choice-board-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(55, 39, 23, 0.08);
}

.psd-app .choice-hotspot {
  position: absolute;
  left: 9%;
  right: 8%;
  border: 3px solid transparent;
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.psd-app .choice-hotspot:hover,
.psd-app .choice-hotspot:focus-visible {
  border-color: var(--choice-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(214, 168, 74, 0.24);
}

.psd-app .choice-hotspot.is-selected {
  border-color: var(--choice-color);
  background: rgba(255, 255, 255, 0.18);
}

.psd-app .result-section {
  margin-top: 20px;
  padding: clamp(18px, 4vw, 34px);
}

.psd-app .result-section[hidden] {
  display: none;
}

.psd-app .result-card {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 5vw, 38px);
  border: 2px solid color-mix(in srgb, var(--result-color), white 45%);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.86)),
    var(--result-color);
}

.psd-app .result-label {
  margin-bottom: 8px;
  color: color-mix(in srgb, var(--result-color), #1f1a22 38%);
  font-weight: 900;
}

.psd-app .result-card h2 {
  margin-bottom: 10px;
  font-size: clamp(1.55rem, 4.5vw, 2.55rem);
  line-height: 1.18;
  letter-spacing: 0;
}

.psd-app .result-headline {
  margin-bottom: 18px;
  color: color-mix(in srgb, var(--result-color), #1f1a22 26%);
  font-size: clamp(1.08rem, 2.8vw, 1.35rem);
  font-weight: 900;
  line-height: 1.55;
}

.psd-app .result-summary {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.85;
}

.psd-app .result-points {
  display: grid;
  gap: 9px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.psd-app .result-points li {
  position: relative;
  padding: 11px 12px 11px 36px;
  border: 1px solid rgba(214, 168, 74, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.74);
  line-height: 1.65;
}

.psd-app .result-points li::before {
  content: "✦";
  position: absolute;
  left: 14px;
  top: 12px;
  color: var(--gold);
}

.psd-app .result-code {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.psd-app .result-code span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.psd-app .result-code strong {
  font-size: clamp(1.2rem, 3.6vw, 1.8rem);
  line-height: 1.3;
}

.psd-app .action-panel {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.psd-app .primary-action,
.psd-app .secondary-action {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.psd-app .primary-action {
  border: 0;
  background: #06c755;
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(6, 199, 85, 0.22);
}

.psd-app .secondary-action {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
}

.psd-app .action-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
  text-align: center;
}

.psd-app .seo-section {
  margin-top: 24px;
  padding: clamp(20px, 4vw, 34px);
}

.psd-app .seo-section h2,
.psd-app .seo-section h3 {
  margin-bottom: 12px;
  line-height: 1.35;
  letter-spacing: 0;
}

.psd-app .seo-section h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.psd-app .seo-section h3 {
  font-size: 1.05rem;
}

.psd-app .seo-section p {
  margin-bottom: 12px;
  color: var(--muted);
  line-height: 1.85;
}

.psd-app .seo-section p:last-child {
  margin-bottom: 0;
}

.psd-app .seo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.psd-app .seo-grid section {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

@media (max-width: 840px) {
  .psd-app .selector-layout {
    grid-template-columns: 1fr;
  }

  .psd-app .hand-reference {
    position: static;
  }

  .psd-app .mount-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .psd-app .sign-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .psd-app .seo-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .psd-app .app-shell {
    width: min(100% - 18px, 1120px);
    padding-top: 12px;
  }

  .psd-app .diagnosis-panel,
  .psd-app .result-section,
  .psd-app .seo-section {
    border-radius: 12px;
  }

  .psd-app .mount-grid {
    grid-template-columns: 1fr;
  }

  .psd-app .sign-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
