.bnd-app {
  color-scheme: light;
  --ink: #20222a;
  --muted: #5f6573;
  --line: #dfe3eb;
  --surface: #ffffff;
  --soft: #f6f8fb;
  --teal: #1c9a91;
  --shadow: 0 18px 48px rgba(32, 34, 42, 0.12);
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(28, 154, 145, 0.16), transparent 32rem),
    radial-gradient(circle at bottom right, rgba(228, 91, 86, 0.12), transparent 28rem),
    #f2f5fa;
  color: var(--ink);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Sans",
    "Yu Gothic",
    sans-serif;
}

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

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

.bnd-app h1,
.bnd-app h2,
.bnd-app p {
  margin-top: 0;
}

.bnd-app .app-shell {
  width: min(1040px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 42px;
}

.bnd-app .diagnosis-panel,
.bnd-app .result-section {
  border: 1px solid rgba(223, 227, 235, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.bnd-app .diagnosis-panel {
  padding: 34px;
}

.bnd-app .intro {
  max-width: 100%;
}

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

.bnd-app .hero-image {
  display: block;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(32, 34, 42, 0.16);
}

.bnd-app .lead,
.bnd-app .rule-note,
.bnd-app .action-note,
.bnd-app .result-summary,
.bnd-app .result-subtitle,
.bnd-app .calculation-box,
.bnd-app .detail-teaser {
  line-height: 1.82;
}

.bnd-app .birth-form {
  display: grid;
  grid-template-columns: minmax(240px, 380px) minmax(160px, 210px);
  gap: 14px;
  align-items: end;
  margin-top: 28px;
}

.bnd-app .birth-field {
  display: grid;
  gap: 8px;
}

.bnd-app .birth-field span {
  font-size: 0.94rem;
  font-weight: 800;
}

.bnd-app .birth-field input {
  width: 100%;
  min-height: 54px;
  border: 1px solid #cfd5df;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 14px;
  font-size: 1.08rem;
}

.bnd-app .birth-field input:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(28, 154, 145, 0.16);
}

.bnd-app .primary-button,
.bnd-app .line-button,
.bnd-app .copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.bnd-app .primary-button {
  border: 0;
  background: var(--ink);
  color: #ffffff;
}

.bnd-app .rule-note {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.bnd-app .result-section {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  margin-top: 20px;
  padding: 28px;
}

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

.bnd-app .result-section.has-result-image {
  grid-template-columns: 1fr;
}

.bnd-app .result-section.has-result-image .number-visual {
  display: none;
}

.bnd-app .result-section.has-result-image .action-panel {
  grid-column: 1;
}

.bnd-app .number-visual {
  display: grid;
  min-height: 240px;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(140deg, rgba(78, 93, 197, 0.94), rgba(28, 154, 145, 0.92)),
    #4e5dc5;
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.bnd-app .number-visual span {
  display: grid;
  width: 150px;
  height: 150px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  font-size: 4.2rem;
  font-weight: 950;
  line-height: 1;
}

.bnd-app .result-content {
  min-width: 0;
}

.bnd-app .result-image {
  display: block;
  width: min(100%, 680px);
  margin: 0 auto 20px;
  border: 1px solid rgba(223, 227, 235, 0.95);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(32, 34, 42, 0.14);
}

.bnd-app .result-image[hidden] {
  display: none;
}

.bnd-app .result-label {
  margin-bottom: 8px;
  color: var(--accent, var(--teal));
  font-weight: 900;
}

.bnd-app .result-content h2 {
  margin-bottom: 10px;
  font-size: 2rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.bnd-app .result-subtitle {
  margin-bottom: 14px;
  color: var(--muted);
  font-weight: 800;
}

.bnd-app .result-summary {
  margin-bottom: 18px;
}

.bnd-app .calculation-box,
.bnd-app .detail-teaser,
.bnd-app .result-code {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.bnd-app .calculation-box,
.bnd-app .detail-teaser {
  padding: 14px 16px;
}

.bnd-app .calculation-box {
  margin-bottom: 12px;
}

.bnd-app .box-title {
  margin-bottom: 7px;
  font-weight: 900;
}

.bnd-app .calculation-box p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.bnd-app .detail-teaser ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 1.2em;
}

.bnd-app .detail-teaser li {
  line-height: 1.7;
}

.bnd-app .result-code {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-top: 12px;
  padding: 13px 15px;
}

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

.bnd-app .result-code strong {
  font-size: 1.12rem;
}

.bnd-app .action-panel {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.bnd-app .line-button {
  min-width: min(100%, 300px);
  padding: 0 22px;
  background: #06c755;
  color: #ffffff;
}

.bnd-app .copy-button {
  border: 1px solid #cfd5df;
  padding: 0 18px;
  background: #ffffff;
  color: var(--ink);
}

.bnd-app .action-note {
  flex-basis: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 760px) {
  .bnd-app .app-shell {
    width: min(100% - 18px, 620px);
    padding-top: 10px;
  }

  .bnd-app .diagnosis-panel,
  .bnd-app .result-section {
    padding: 16px;
  }

  .bnd-app .birth-form,
  .bnd-app .result-section {
    grid-template-columns: 1fr;
  }

  .bnd-app .number-visual {
    min-height: 190px;
  }

  .bnd-app .number-visual span {
    width: 126px;
    height: 126px;
    font-size: 3.35rem;
  }

  .bnd-app .result-content h2 {
    font-size: 1.62rem;
  }

  .bnd-app .action-panel {
    grid-column: 1;
  }

  .bnd-app .line-button,
  .bnd-app .copy-button,
  .bnd-app .primary-button {
    width: 100%;
  }
}
