* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Sans",
    "Yu Gothic",
    sans-serif;

  background:
    linear-gradient(180deg, #fff9ff 0%, #f8f4ff 45%, #f3f6ff 100%);

  color: #2d2340;
  min-height: 100vh;
  overflow-x: hidden;
}

.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;

  background:
    radial-gradient(circle at top left, rgba(212, 169, 255, 0.25), transparent 30%),
    radial-gradient(circle at bottom right, rgba(255, 182, 230, 0.18), transparent 30%);
}

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

.hero {
  max-width: 1100px;
  margin: auto;
  text-align: center;
  padding: 90px 20px 60px;
}

.tag {
  color: #9b5de5;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(42px, 8vw, 84px);
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: 24px;
  color: #2b1b46;
}

.lead {
  max-width: 760px;
  margin: auto;
  color: #66577f;
  line-height: 1.9;
  font-size: 17px;
}

main {
  max-width: 1050px;
  margin: auto;
  padding: 0 16px 80px;
}

.card {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.85);
  backdrop-filter: blur(18px);

  border-radius: 30px;
  padding: 34px;
  margin-bottom: 28px;

  box-shadow:
    0 10px 40px rgba(170, 130, 220, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

.hidden {
  display: none;
}

.card h2 {
  font-size: clamp(28px, 5vw, 48px);
  margin-bottom: 12px;
  color: #2b1b46;
}

.sub {
  color: #6e6183;
  line-height: 1.8;
  margin-bottom: 26px;
}

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

.choice,
.main-btn,
.sub-btn {
  border: none;
  cursor: pointer;
  border-radius: 18px;
  transition: 0.25s;
  font-weight: 700;
}

.choice {
  padding: 20px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(180,150,220,0.2);
  color: #33244f;
  font-size: 16px;
}

.choice:hover {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: 0 8px 25px rgba(170,130,220,0.15);
}

.main-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 28px;
  padding: 18px 34px;

  background:
    linear-gradient(135deg, #b86cff, #ff8fd2);

  color: white;
  font-size: 17px;

  box-shadow:
    0 12px 30px rgba(184,108,255,0.25);
}

.main-btn:hover {
  transform: translateY(-2px) scale(1.01);
}

.sub-btn {
  padding: 18px 28px;
  background: rgba(255,255,255,0.92);
  color: #4a3767;
}

.progress {
  margin-bottom: 28px;
}

.progress span {
  color: #8759d6;
  font-weight: 700;
}

.progress div {
  width: 100%;
  height: 8px;
  background: rgba(170,130,220,0.15);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 10px;
}

.progress b {
  display: block;
  height: 100%;
  width: 20%;
  border-radius: 999px;

  background:
    linear-gradient(90deg, #b86cff, #ff8fd2);
}

.result {
  text-align: center;
}

.badge {
  display: inline-block;

  padding: 10px 18px;
  border-radius: 999px;

  background: rgba(184,108,255,0.12);

  color: #9d4edd;
  font-weight: 700;

  margin-bottom: 18px;
}

.result-text {
  max-width: 760px;
  margin: 20px auto 0;

  color: #645776;
  line-height: 1.9;
}

.score-box {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
  margin: 34px 0;
}

.score-box div {
  background: rgba(255,255,255,0.9);
  border-radius: 22px;
  padding: 22px;

  box-shadow:
    0 6px 20px rgba(170,130,220,0.08);
}

.score-box span {
  display: block;
  color: #7d699d;
  margin-bottom: 10px;
}

.score-box strong {
  font-size: 28px;
  color: #2b1b46;
}

.result h3 {
  margin: 36px 0 18px;
  font-size: 24px;
  color: #2b1b46;
}

.mini-note {
  color: #8b7a9f;
  margin-bottom: 18px;
}

.recommend {
  display: grid;
  gap: 14px;
}

.recommend a,
.recommend div {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(200,180,230,0.2);

  padding: 20px;
  border-radius: 20px;

  transition: 0.2s;

  box-shadow:
    0 6px 20px rgba(180,140,230,0.08);
}

.recommend a:hover {
  transform: translateY(-2px);
}

.recommend strong {
  display: block;
  margin-bottom: 8px;
  color: #2b1b46;
}

.recommend span {
  color: #6e6183;
  line-height: 1.7;
}

.actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 36px;
}

.seo-section,
.info-section {
  margin-top: 28px;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 18px;
  margin-top: 22px;
}

.seo-grid article {
  background: rgba(255,255,255,0.9);
  padding: 24px;
  border-radius: 24px;

  box-shadow:
    0 6px 20px rgba(170,130,220,0.08);
}

.seo-grid h3 {
  margin-bottom: 12px;
  color: #2b1b46;
}

.seo-grid p,
.info-section p {
  color: #6f6283;
  line-height: 1.9;
}

.info-section a {
  color: #9d4edd;
  font-weight: 700;
}

footer {
  text-align: center;
  padding: 50px 20px 70px;
  color: #7e6e93;
}

footer nav {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
}

footer a:hover {
  color: #9d4edd;
}

.page-container {
  max-width: 900px;
  margin: auto;
  padding: 80px 20px;
}

.page-card {
  background: rgba(255,255,255,0.88);
  border-radius: 28px;
  padding: 40px;
  box-shadow:
    0 10px 40px rgba(170,130,220,0.12);
}

.page-card h1 {
  font-size: 42px;
  margin-bottom: 24px;
  color: #2b1b46;
}

.page-card h2 {
  margin-top: 34px;
  margin-bottom: 14px;
  color: #2b1b46;
}

.page-card p,
.page-card li {
  color: #6e6183;
  line-height: 1.9;
}

.page-card ul {
  padding-left: 20px;
}

.back-link {
  display: inline-block;
  margin-top: 30px;
  color: #9d4edd;
  font-weight: 700;
}

@media (max-width: 768px) {

  .hero {
    padding: 70px 18px 50px;
  }

  .card {
    padding: 24px;
    border-radius: 24px;
  }

  .score-box {
    grid-template-columns: 1fr;
  }

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

  .actions {
    flex-direction: column;
  }

  .main-btn,
  .sub-btn {
    width: 100%;
  }

  .page-card {
    padding: 28px;
  }

  .page-card h1 {
    font-size: 34px;
  }
}