:root {
  color: #4f2945;
  background: #fff7fb;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Yu Gothic", Meiryo, serif;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: linear-gradient(180deg, #fff4fa 0%, #ffeaf4 48%, #fff7fb 100%);
}

body::before {
  content: none;
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.hero {
  position: relative;
  display: grid;
  gap: 24px;
  align-items: center;
  justify-items: center;
  min-height: 520px;
  margin: 12px 0 28px;
  padding: 54px 34px 38px;
  overflow: hidden;
  border: 1px solid rgba(214, 171, 83, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(214, 171, 83, 0.9), rgba(255, 242, 191, 0.95), rgba(214, 171, 83, 0.9)) top / 100% 5px no-repeat,
    linear-gradient(90deg, rgba(214, 171, 83, 0.9), rgba(255, 242, 191, 0.95), rgba(214, 171, 83, 0.9)) bottom / 100% 5px no-repeat,
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.96), transparent 26%),
    radial-gradient(circle at 18% 18%, rgba(255, 188, 220, 0.45), transparent 28%),
    radial-gradient(circle at 84% 22%, rgba(223, 204, 255, 0.48), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 239, 249, 0.88));
  box-shadow: 0 24px 70px rgba(152, 71, 120, 0.2), inset 0 0 0 7px rgba(255, 255, 255, 0.56);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.72;
}

.hero::before {
  left: -78px;
  top: -70px;
  background:
    radial-gradient(ellipse at 50% 16%, rgba(255, 189, 215, 0.86) 0 18%, transparent 20%),
    radial-gradient(ellipse at 20% 50%, rgba(255, 205, 226, 0.8) 0 18%, transparent 20%),
    radial-gradient(ellipse at 80% 52%, rgba(235, 210, 255, 0.78) 0 18%, transparent 20%),
    radial-gradient(circle, rgba(255, 247, 252, 0.9), transparent 42%);
}

.hero::after {
  right: -80px;
  bottom: -90px;
  background:
    radial-gradient(ellipse at 50% 16%, rgba(255, 226, 160, 0.7) 0 18%, transparent 20%),
    radial-gradient(ellipse at 24% 54%, rgba(255, 191, 219, 0.72) 0 18%, transparent 20%),
    radial-gradient(ellipse at 78% 52%, rgba(224, 204, 255, 0.72) 0 18%, transparent 20%),
    radial-gradient(circle, rgba(255, 250, 238, 0.9), transparent 42%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 780px;
  text-align: center;
}

.brand-logo {
  display: block;
  width: min(360px, 72vw);
  height: auto;
  margin: 0 auto 20px;
  object-fit: contain;
}

.kicker,
.section-heading p,
.result-eyebrow {
  margin: 0 0 8px;
  color: #b98524;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.app-title,
.section-title,
.group-title,
.side-title,
.card-title,
.box-title,
p {
  margin-top: 0;
}

.app-title {
  margin-bottom: 14px;
  font-size: clamp(2.05rem, 4.4vw, 3.7rem);
  line-height: 1.35;
  color: #7c335f;
  font-weight: 800;
  text-shadow: 0 2px 0 #fff, 0 0 26px rgba(255, 194, 221, 0.95);
}

.hero p:last-child {
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 0;
  color: #6d4864;
  font-size: 1.05rem;
  line-height: 1.9;
}

.benefit-grid {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.benefit-card {
  min-height: 128px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px 14px;
  border: 1px solid rgba(217, 171, 82, 0.74);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 240, 248, 0.92)),
    #fff;
  box-shadow: 0 12px 28px rgba(153, 71, 123, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.92);
  text-align: center;
}

.benefit-card p {
  margin: 0;
  color: #8b3a6a;
  font-size: 1.02rem;
  font-weight: 800;
}

.benefit-card span {
  color: #73536c;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 0.9rem;
  line-height: 1.65;
  font-weight: 700;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  gap: 22px;
  justify-content: center;
  align-items: start;
}

.form-panel,
.side-note,
.section {
  border: 1px solid rgba(214, 171, 83, 0.56);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 48px rgba(152, 71, 120, 0.14);
}

.form-panel {
  padding: 24px;
}

.section-title {
  margin-bottom: 18px;
  color: #7c335f;
  font-size: 1.55rem;
  line-height: 1.45;
  font-weight: 800;
}

.form-group {
  padding: 18px 0;
  border-top: 1px solid #f1e5ed;
}

.first-group {
  border-top: 0;
  padding-top: 0;
}

.group-title {
  margin-bottom: 12px;
  font-size: 1rem;
  color: #8b3a6a;
  line-height: 1.5;
  font-weight: 800;
}

.field-grid {
  display: grid;
  gap: 12px;
}

.field-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 7px;
  color: #6c4d67;
  font-size: 0.92rem;
  font-weight: 700;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

.field-wide {
  margin-top: 12px;
}

select,
input[type="text"] {
  width: 100%;
  min-height: 48px;
  border: 1px solid #e9c2d8;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #fff8fc);
  color: #3f3342;
  padding: 0 12px;
}

select:focus,
input:focus {
  outline: 3px solid rgba(221, 184, 238, 0.45);
  border-color: #b987c7;
}

select:disabled {
  color: #9c909d;
  background: #f7f2f6;
}

.check-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #6c4d67;
  font-weight: 700;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

.check-row input {
  width: 19px;
  height: 19px;
  accent-color: #c28bcf;
}

.primary-button {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  background: #f73168;
  color: white;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(247, 49, 104, 0.26);
  cursor: pointer;
}

.primary-button:hover {
  filter: brightness(1.03);
}

.secondary-button {
  min-height: 46px;
  border: 1px solid rgba(198, 148, 51, 0.48);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #8b3a6a;
  font-weight: 800;
  padding: 0 18px;
  cursor: pointer;
}

.secondary-button:hover {
  background: #fff8e8;
}

.side-note {
  padding: 24px;
  position: sticky;
  top: 18px;
}

.side-title {
  margin-bottom: 12px;
  color: #7c335f;
  font-size: 1.25rem;
  line-height: 1.5;
  font-weight: 800;
}

.side-note p,
.explain-box p {
  color: #6d4864;
  line-height: 1.85;
}

.soft-note {
  padding: 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff4fa, #f7edff);
  font-size: 0.94rem;
}

.results,
.difference-section {
  margin-top: 24px;
  padding: 24px;
}

.report-shell {
  max-width: 980px;
}

.report-cover {
  min-height: 330px;
  display: grid;
  align-content: center;
  justify-items: start;
  margin-top: 10px;
  padding: 38px;
  border: 1px solid rgba(214, 171, 83, 0.68);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.96), transparent 30%),
    linear-gradient(135deg, rgba(255, 248, 232, 0.94), rgba(255, 236, 248, 0.92), rgba(247, 237, 255, 0.9)),
    #fff;
  box-shadow: 0 22px 60px rgba(152, 71, 120, 0.18);
}

.report-cover .brand-logo {
  margin: 0 0 20px;
}

.report-cover .app-title {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: 1.55rem;
  line-height: 1.35;
}

.report-cover p:not(.kicker) {
  max-width: 680px;
  color: #65596a;
  font-size: 1.05rem;
  line-height: 1.9;
}

.report-cover .secondary-button {
  margin-top: 12px;
}

.report-card {
  margin-top: 24px;
  padding: 28px;
}

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

.result-card {
  min-height: 230px;
  border: 1px solid rgba(214, 171, 83, 0.5);
  border-radius: 8px;
  padding: 22px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.92);
}

.result-card.sun {
  background: linear-gradient(180deg, #fff8e8, #ffffff);
}

.result-card.moon {
  background: linear-gradient(180deg, #f7f1ff, #ffffff);
}

.result-card.maya {
  background: linear-gradient(180deg, #fff0f8, #ffffff);
}

.card-title {
  margin-bottom: 8px;
  color: #7c335f;
  font-size: 1.65rem;
  line-height: 1.25;
  font-weight: 800;
}

.sign-label {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(217, 171, 82, 0.16);
  color: #8a5b12;
  font-weight: 800;
}

.special-label {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ffe7ee;
  color: #9d3151;
  font-weight: 800;
}

.result-caption {
  color: #8b3a6a;
  font-weight: 800;
  line-height: 1.6;
}

.result-card p:last-child {
  color: #625363;
  line-height: 1.8;
}

.explain-box,
.confirm-box,
.reading-block,
.threads-guide {
  margin-top: 16px;
  padding: 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fffafd, #fff5fa);
  border: 1px solid #f0d4e3;
}

.threads-guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 18px;
  align-items: center;
  background: linear-gradient(135deg, #fff5fa, #fff);
}

.threads-copy p {
  color: #60435b;
  line-height: 1.85;
}

.threads-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  margin: 4px 0 10px;
  padding: 0 18px;
  border-radius: 8px;
  background: #f73168;
  color: #fff;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(247, 49, 104, 0.22);
}

.threads-button:hover {
  filter: brightness(1.03);
}

.report-main-cta {
  margin-top: 12px;
}

.bottom-action {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.threads-url {
  margin: 0;
  overflow-wrap: anywhere;
  color: #8b3a6a;
  font-size: 0.9rem;
}

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

.qr-card img {
  width: 160px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #f3c8d8;
}

.qr-card p {
  margin: 0;
  color: #8b3a6a;
  font-size: 0.9rem;
  font-weight: 800;
}

.box-title {
  margin-bottom: 8px;
  color: #7c335f;
  font-size: 1.1rem;
  line-height: 1.5;
  font-weight: 800;
}

.reading-block p {
  color: #60435b;
  line-height: 1.9;
}

.warning {
  padding: 12px 14px;
  border-left: 4px solid #c69433;
  background: #fff8e6;
  font-weight: 700;
}

dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

dl div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
}

dt {
  color: #7a6078;
  font-weight: 800;
}

dd {
  margin: 0;
  color: #3f3342;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: white;
}

th,
td {
  border: 1px solid #d79ab9;
  padding: 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.65;
  color: #4f2945;
}

thead th {
  background: #cc5f93;
  color: #fff;
  font-weight: 800;
}

tbody th {
  width: 20%;
  background: #ffe1ee;
  color: #82325f;
  font-weight: 800;
}

tbody td {
  background: #fffafd;
  color: #4f2945;
}

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

  .layout,
  .result-grid,
  .threads-guide {
    grid-template-columns: 1fr;
  }

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

  .qr-card {
    justify-items: start;
    text-align: left;
  }

  .form-panel {
    order: 1;
  }

  .side-note {
    order: 2;
    position: static;
    top: auto;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .form-panel,
  .side-note,
  .results,
  .difference-section,
  .report-card,
  .report-cover {
    padding: 18px;
  }

  .field-grid.three,
  .field-grid.two {
    grid-template-columns: 1fr;
  }

  .app-title {
    font-size: 1.9rem;
  }

  .brand-logo {
    width: min(300px, 78vw);
  }

  .hero {
    min-height: auto;
    padding: 36px 18px 24px;
  }

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

  dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
