:root {
  --bo-ink: #151747;
  --bo-muted: #63617f;
  --bo-bg: #f5f2ff;
  --bo-paper: #ffffff;
  --bo-line: rgba(119, 91, 205, 0.18);
  --bo-purple: #7657dc;
  --bo-purple-dark: #24265f;
  --bo-pink: #ec5ca5;
  --bo-blue: #4c7cff;
  --bo-orange: #f59c28;
  --bo-shadow: 0 18px 50px rgba(51, 43, 105, 0.14);
  color-scheme: light;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 8%, rgba(255, 214, 232, 0.9), transparent 26rem),
    radial-gradient(circle at 92% 10%, rgba(205, 195, 255, 0.75), transparent 28rem),
    linear-gradient(180deg, #fff9ff 0%, var(--bo-bg) 52%, #edf2ff 100%);
  color: var(--bo-ink);
}

body > [data-tc-header] {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
}

body > [data-tc-header] .tc-header-note,
body > [data-tc-header] .tc-site-header {
  margin: 0;
  width: 100%;
}

body > .tc-common-footer {
  width: 100% !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

.bo-page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 64px;
}

.bo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 0.92fr;
  gap: 28px;
  align-items: center;
  padding: 30px;
  border: 1px solid var(--bo-line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--bo-shadow);
  backdrop-filter: blur(12px);
}

.bo-hero-copy {
  min-width: 0;
}

.bo-kicker {
  display: none;
}

.bo-hero h1,
.bo-result-title {
  margin: 0;
  color: var(--bo-purple-dark);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(2.35rem, 6vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.bo-hero h1 {
  font-size: clamp(1.9rem, 4.6vw, 3.8rem);
}

.bo-lead {
  margin: 18px 0 0;
  color: var(--bo-muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.9;
  font-weight: 700;
}

.bo-hero-actions,
.bo-share-row,
.bo-quiz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.bo-hero-actions {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
}

.bo-hero-actions .bo-button {
  width: 100%;
}

.bo-hero-actions .bo-button:not(.primary) {
  min-height: 48px;
}

.bo-button {
  display: inline-flex;
  box-sizing: border-box;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(118, 87, 220, 0.28);
  border-radius: 999px;
  padding: 0 26px;
  background: #fff;
  color: var(--bo-purple-dark);
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(51, 43, 105, 0.1);
  cursor: pointer;
}

.bo-button.primary {
  border: none;
  background: linear-gradient(135deg, var(--bo-purple) 0%, var(--bo-pink) 100%);
  color: #fff;
}

.bo-button.full {
  max-width: 100%;
  width: 100%;
}

.bo-meta-note {
  margin: 16px 0 0;
  color: #76718f;
  font-size: 0.94rem;
  font-weight: 700;
}

.bo-hero-visual {
  margin: 0;
}

.bo-hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(51, 43, 105, 0.16);
}

.bo-section {
  margin-top: 34px;
}

.bo-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
}

.bo-section-heading h2 {
  margin: 0;
  color: var(--bo-purple-dark);
  font-size: clamp(1.75rem, 4vw, 2.7rem);
  line-height: 1.2;
}

.bo-section-heading p {
  max-width: 560px;
  margin: 0;
  color: var(--bo-muted);
  line-height: 1.8;
  font-weight: 700;
}

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

.bo-card {
  border: 1px solid var(--bo-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 32px rgba(51, 43, 105, 0.1);
}

.bo-axis-card {
  padding: 20px;
}

.bo-axis-card strong {
  display: block;
  color: var(--axis-color, var(--bo-purple));
  font-size: 1.16rem;
}

.bo-axis-card p {
  margin: 10px 0 0;
  color: var(--bo-muted);
  line-height: 1.75;
  font-weight: 700;
}

.bo-about-card,
.bo-result-card,
.bo-quiz-card {
  padding: clamp(22px, 4vw, 34px);
}

.bo-about-card h2,
.bo-result-card h2,
.bo-quiz-card h2 {
  margin: 0 0 14px;
  color: var(--bo-purple-dark);
  font-size: 1.45rem;
}

.bo-about-card p,
.bo-result-card p {
  margin: 0 0 18px;
  color: var(--bo-muted);
  line-height: 1.9;
  font-weight: 700;
}

.bo-about-list,
.bo-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bo-about-list li,
.bo-list li {
  border-radius: 14px;
  padding: 12px 14px;
  background: #f3f0ff;
  color: var(--bo-purple-dark);
  font-weight: 800;
}

.bo-result-preview {
  display: grid;
  grid-template-columns: 0.88fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.bo-preview-panel {
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, #23265f, #7657dc);
  color: #fff;
}

.bo-preview-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.bo-preview-panel strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.15;
}

.bo-share-row {
  justify-content: center;
  margin-top: 18px;
}

.bo-share-row button {
  min-width: 110px;
  border: 1px solid rgba(118, 87, 220, 0.24);
  border-radius: 999px;
  padding: 12px 18px;
  background: #fff;
  color: var(--bo-purple-dark);
  font-weight: 900;
  cursor: pointer;
}

.bo-quiz-shell {
  max-width: 960px;
}

.bo-step-label {
  display: inline-flex;
  margin-bottom: 12px;
  border-radius: 999px;
  padding: 8px 14px;
  background: #ede7ff;
  color: var(--bo-purple);
  font-weight: 900;
}

.bo-progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e3ddf8;
}

.bo-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--bo-purple), var(--bo-pink));
  transition: width 0.25s ease;
}

.bo-question-list {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.bo-question {
  border: 1px solid var(--bo-line);
  border-radius: 18px;
  padding: 16px;
  background: #fff;
}

.bo-question.is-missing {
  border-color: rgba(236, 92, 165, 0.65);
  box-shadow: 0 0 0 3px rgba(236, 92, 165, 0.12);
}

.bo-question h3 {
  margin: 0 0 14px;
  color: var(--bo-purple-dark);
  font-size: 1.05rem;
  line-height: 1.65;
}

.bo-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.bo-option {
  min-height: 54px;
  border: 1px solid rgba(118, 87, 220, 0.22);
  border-radius: 14px;
  background: #f8f6ff;
  color: var(--bo-purple-dark);
  font-weight: 800;
  cursor: pointer;
}

.bo-option.is-selected {
  border-color: transparent;
  background: linear-gradient(135deg, var(--bo-purple), var(--bo-pink));
  color: #fff;
}

.bo-quiz-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.bo-quiz-actions.is-first-step {
  grid-template-columns: 1fr;
}

.bo-quiz-actions .bo-button {
  width: 100%;
}

.bo-alert {
  min-height: 1.5em;
  margin: 14px 0 0;
  color: #c73475;
  font-weight: 800;
}

.bo-analyzing {
  text-align: center;
}

.bo-spinner {
  position: relative;
  width: 78px;
  height: 78px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: conic-gradient(var(--bo-purple), var(--bo-pink), var(--bo-orange), var(--bo-purple));
  animation: boSpin 1.2s linear infinite;
}

.bo-spinner::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: inherit;
  background: #fff;
}

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

.bo-result-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  border-radius: 28px;
  padding: clamp(24px, 5vw, 44px);
  background: #fff;
  box-shadow: var(--bo-shadow);
  border: 1px solid var(--bo-line);
}

.bo-result-prefix {
  margin: 0 0 8px;
  color: var(--bo-purple);
  font-weight: 900;
  font-size: 1.08rem;
}

.bo-result-title {
  color: var(--bo-purple);
}

.bo-result-catch {
  margin: 14px 0 0;
  color: var(--bo-purple-dark);
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1.75;
}

.bo-result-explain-title {
  margin: 24px 0 10px;
  color: var(--bo-purple-dark);
  font-size: 1.02rem;
}

.bo-result-description {
  margin: 0;
  color: var(--bo-muted);
  line-height: 1.95;
  font-weight: 700;
}

.bo-result-visual {
  display: none;
}

.bo-result-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 0.85fr;
  gap: 18px;
}

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

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

.bo-axis-row header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--bo-purple-dark);
  font-weight: 900;
}

.bo-axis-track {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #eeeaf8;
}

.bo-axis-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--axis-color, var(--bo-purple));
}

.bo-map {
  position: relative;
  min-height: 330px;
  border: 1px solid var(--bo-line);
  border-radius: 22px;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(118, 87, 220, 0.22) 50%, transparent calc(50% + 1px)),
    linear-gradient(0deg, transparent calc(50% - 1px), rgba(118, 87, 220, 0.22) 50%, transparent calc(50% + 1px)),
    linear-gradient(135deg, #fff 0%, #f5f1ff 100%);
}

.bo-map-label {
  position: absolute;
  color: var(--bo-muted);
  font-weight: 900;
  font-size: 0.86rem;
}

.bo-map-label.top { top: 12px; left: 50%; transform: translateX(-50%); }
.bo-map-label.bottom { bottom: 12px; left: 50%; transform: translateX(-50%); }
.bo-map-label.left { left: 12px; top: 50%; transform: translateY(-50%); }
.bo-map-label.right { right: 12px; top: 50%; transform: translateY(-50%); }

.bo-map-quadrant {
  position: absolute;
  color: rgba(118, 87, 220, 0.2);
  font-size: 0.84rem;
  font-weight: 900;
  pointer-events: none;
}

.bo-map-quadrant.top-left { top: 22%; left: 16%; }
.bo-map-quadrant.top-right { top: 22%; right: 16%; }
.bo-map-quadrant.bottom-left { bottom: 22%; left: 16%; }
.bo-map-quadrant.bottom-right { bottom: 22%; right: 16%; }

.bo-map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--bo-pink);
  box-shadow: 0 8px 20px rgba(51, 43, 105, 0.22);
  transform: translate(-50%, -50%);
  transition: left 0.8s ease, top 0.8s ease;
}

.bo-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bo-chip {
  border-radius: 999px;
  padding: 8px 12px;
  background: #f0ecff;
  color: var(--bo-purple-dark);
  font-weight: 900;
}

.bo-one-line {
  border-left: 5px solid var(--bo-pink);
  padding: 16px 18px;
  border-radius: 16px;
  background: #fff7fb;
  color: var(--bo-purple-dark);
  font-weight: 900;
  line-height: 1.8;
}

.bo-related {
  margin-top: 34px;
}

.bo-notice {
  font-size: 0.92rem;
  color: #77728d;
}

@media (max-width: 820px) {
  .bo-page {
    width: min(100% - 24px, 680px);
    padding-top: 24px;
  }

  .bo-hero,
  .bo-result-preview,
  .bo-result-layout,
  .bo-result-hero {
    grid-template-columns: 1fr;
  }

  .bo-hero {
    padding: 18px;
    border-radius: 22px;
  }

  .bo-hero-visual {
    order: -1;
  }

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

  .bo-section-heading {
    display: block;
  }

  .bo-section-heading p {
    margin-top: 10px;
  }

  .bo-options {
    grid-template-columns: 1fr;
  }

  .bo-option {
    text-align: left;
    padding: 0 14px;
  }

  .bo-quiz-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 10px;
  }

  .bo-quiz-actions.is-first-step {
    grid-template-columns: 1fr !important;
  }

  .bo-quiz-actions .bo-button {
    width: 100%;
    min-width: 0;
    padding-inline: 14px;
  }

  .bo-result-visual {
    display: none;
  }

  .bo-result-visual span {
    width: 96px;
    height: 96px;
    font-size: 2rem;
  }
}

@media (max-width: 520px) {
  .bo-grid {
    grid-template-columns: 1fr;
  }

  .bo-result-title {
    font-size: clamp(2.05rem, 12vw, 3.4rem);
  }

  .bo-hero h1 {
    font-size: clamp(1.75rem, 8.6vw, 2.75rem);
  }

  .bo-button,
  .bo-share-row button {
    width: 100%;
  }

  .bo-quiz-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }

  .bo-quiz-actions.is-first-step {
    grid-template-columns: 1fr !important;
  }

  .bo-result-card,
  .bo-quiz-card,
  .bo-about-card {
    border-radius: 18px;
    padding: 20px;
  }
}
