:root {
  --ink: #17130f;
  --paper: #fffaf0;
  --panel: #fffdf7;
  --line: #d8c9ab;
  --teal: #0f766e;
  --red: #b4232a;
  --gold: #d79b25;
  --moss: #49633b;
  --violet: #6455a4;
  --shadow: 0 18px 60px rgba(23, 19, 15, 0.14);
  --kaku-blue: #1d9bd1;
  --kaku-pale: #e8f5f9;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "HGS明朝E", "MS PMincho", serif;
  background:
    linear-gradient(90deg, rgba(29, 155, 209, 0.09) 1px, transparent 1px),
    linear-gradient(rgba(215, 155, 37, 0.09) 1px, transparent 1px),
    #f8fbfc;
  background-size: 28px 28px;
  line-break: strict;
}

button,
a {
  font: inherit;
}

h1,
h2,
h3,
p,
button,
a,
span,
strong {
  overflow-wrap: break-word;
}

.app-shell {
  width: min(1220px, calc(100vw - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.85fr);
  gap: 28px;
  align-items: center;
  padding: 32px 0;
}

.diagnosis-panel,
.result-panel {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid #d7e6eb;
  box-shadow: var(--shadow);
}

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

.result-panel {
  overflow: hidden;
  position: relative;
}

.result-panel.is-waiting .cover-card,
.result-panel.is-waiting .result-copy {
  display: none;
}

.waiting-card {
  min-height: 620px;
  display: none;
  align-content: center;
  padding: clamp(24px, 5vw, 42px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(5, 5, 5, 0.95), rgba(47, 143, 204, 0.76)),
    #10100d;
}

.result-panel.is-waiting .waiting-card {
  display: grid;
}

.waiting-card .eyebrow {
  color: #ffe39a;
}

.waiting-card h2 {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: 1.2;
}

.waiting-card p {
  margin: 0;
  line-height: 1.8;
}

.waiting-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 22px;
}

.waiting-list span {
  padding: 10px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  font-weight: 900;
}

.loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  color: #fff;
  background: rgba(5, 5, 5, 0.86);
}

.loading-overlay.active {
  display: flex;
}

.loading-card {
  width: min(430px, 100%);
  padding: 24px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: linear-gradient(135deg, rgba(23, 19, 15, 0.96), rgba(47, 143, 204, 0.72));
}

.loading-card .eyebrow {
  color: #ffe39a;
}

.loading-card h2 {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 4vw, 2.05rem);
}

.loading-card p {
  margin: 0;
  line-height: 1.75;
}

.loading-orbit {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  animation: spin 1.8s linear infinite;
}

.loading-orbit span {
  position: absolute;
  width: 14px;
  aspect-ratio: 1;
  background: #ffe39a;
  transform: rotate(var(--r)) translateX(38px);
}

.loading-orbit span:nth-child(1) {
  --r: 0deg;
}

.loading-orbit span:nth-child(2) {
  --r: 120deg;
  background: #59b6e6;
}

.loading-orbit span:nth-child(3) {
  --r: 240deg;
  background: #f2f2f2;
}

.loading-steps {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.loading-steps span {
  padding: 9px 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.86rem;
  font-weight: 900;
}

.loading-steps span.active {
  background: #ffe39a;
}

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

.brand-row {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.brand-mark {
  width: 82px;
  min-width: 82px;
  aspect-ratio: 1;
  display: block;
  object-fit: contain;
}

.dream-banner {
  min-height: 164px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  margin: 22px 0 18px;
  padding: 20px;
  color: var(--ink);
  background: #fffdf7;
  overflow: hidden;
  min-width: 0;
  position: relative;
  border: 1px solid #d8edf4;
}

.dream-banner::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 66%;
  z-index: 1;
  background: linear-gradient(90deg, rgba(255, 253, 247, 0.98), rgba(255, 253, 247, 0.9) 72%, rgba(255, 253, 247, 0));
  pointer-events: none;
}

.hero-characters {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(68%, 430px);
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  opacity: 1;
  mix-blend-mode: normal;
  animation: heroSlowSlide 4.8s ease-in-out infinite alternate;
}

.dream-copy {
  position: relative;
  z-index: 2;
  width: min(68%, 390px);
  padding: 12px 0;
  min-width: 0;
  word-break: keep-all;
  overflow-wrap: normal;
}

.dream-copy > span {
  display: block;
  margin-bottom: 7px;
  font-size: 0.82rem;
  font-weight: 900;
  color: #0f766e;
}

.dream-main {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  max-width: 100%;
}

.dream-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 3px 10px 5px;
  color: #fff;
  background: linear-gradient(135deg, #1d9bd1, #0f766e);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 8px 18px rgba(29, 155, 209, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
  font-size: clamp(1.08rem, 2vw, 1.5rem);
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.dream-pill:nth-child(2) {
  background: linear-gradient(135deg, #d79b25, #b4232a);
}

.dream-pill:nth-child(3) {
  background: linear-gradient(135deg, #6455a4, #1d9bd1);
}

.dream-copy em {
  display: block;
  width: fit-content;
  margin-top: 10px;
  padding: 0 2px 4px;
  color: var(--ink);
  border-bottom: 3px solid var(--gold);
  font-size: clamp(1.12rem, 2.1vw, 1.45rem);
  font-style: normal;
  font-weight: 900;
  line-height: 1.25;
  white-space: nowrap;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
  word-break: normal;
}

h1 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.progress-wrap {
  height: 8px;
  background: #eee0c4;
  margin-bottom: 28px;
}

.progress-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--kaku-blue), var(--gold), var(--red));
  transition: width 220ms ease;
}

.quest-state {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
  padding: 18px 20px;
  color: #fff;
  background: linear-gradient(135deg, #1a1a1a, #506a76);
}

.quest-label {
  display: block;
  margin-bottom: 8px;
  color: #f2c66b;
  font-size: clamp(1.05rem, 1.9vw, 1.35rem);
  font-weight: 900;
}

.quest-state strong {
  display: block;
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  line-height: 1.25;
  letter-spacing: 0;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

.quest-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.quest-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 15px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.26);
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  font-weight: 900;
}

.question-card {
  min-height: 372px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.question-count {
  color: var(--moss);
  font-weight: 800;
  margin-bottom: 12px;
}

.question-card h2 {
  margin: 0 0 18px;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 1.18;
}

.question-hint {
  margin: -6px 0 16px;
  padding: 12px 14px;
  background: var(--kaku-pale);
  border-left: 5px solid var(--kaku-blue);
  line-height: 1.65;
}

.option-grid {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

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

.option-item {
  position: relative;
}

.option-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-item span {
  min-height: 64px;
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.option-item span::before {
  content: "";
  width: 12px;
  aspect-ratio: 1;
  margin-right: 10px;
  border: 2px solid var(--line);
  background: #fff;
  flex: 0 0 auto;
}

.option-item input:checked + span {
  border-color: var(--kaku-blue);
  background: #e8f5f9;
  transform: translateY(-1px);
}

.option-item input:checked + span::before {
  border-color: var(--kaku-blue);
  background: var(--kaku-blue);
  box-shadow: inset 0 0 0 3px #fff;
}

.text-input {
  width: 100%;
  min-height: 54px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.textarea-input {
  min-height: 132px;
  resize: vertical;
  line-height: 1.65;
}

.text-input:focus,
.option-item input:focus + span {
  outline: 3px solid rgba(15, 118, 110, 0.2);
  outline-offset: 2px;
}

.other-input-wrap {
  display: none;
  margin-top: 12px;
}

.other-input-wrap.active {
  display: block;
}

.other-input-wrap label {
  display: grid;
  gap: 6px;
  font-weight: 900;
}

.other-input-wrap span {
  color: var(--moss);
  font-size: 0.82rem;
}

.nav-row,
.share-box {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.share-box {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.share-box .primary-btn,
.share-box .outline-btn,
.share-box .ghost-btn {
  width: 100%;
  min-height: 58px;
  padding: 0 10px;
  text-align: center;
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  line-height: 1.2;
  white-space: normal;
}

.privacy-note {
  margin: 12px 0 0;
  color: rgba(25, 25, 25, 0.58);
  font-size: 0.78rem;
  line-height: 1.7;
  text-align: center;
}

.nav-row {
  justify-content: space-between;
  margin-top: 24px;
}

.primary-btn,
.outline-btn,
.ghost-btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
}

.primary-btn {
  color: #fff;
  background: var(--red);
}

.outline-btn {
  color: var(--teal);
  background: #fff;
  border-color: var(--teal);
}

.ghost-btn {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.ghost-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.cover-card {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #10100d;
}

canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.cover-overlay {
  display: none;
}

.cover-overlay p,
.cover-overlay span {
  display: inline-block;
  margin: 0 0 10px;
  padding: 6px 10px;
  background: rgba(180, 35, 42, 0.88);
  font-weight: 900;
}

.cover-overlay h2 {
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 4vw, 3rem);
  line-height: 1.06;
}

.cover-overlay span {
  background: rgba(15, 118, 110, 0.9);
}

.result-copy {
  padding: 24px;
}

.result-heading {
  margin-bottom: 14px;
}

.result-heading h2 {
  font-size: clamp(1.95rem, 4vw, 3.25rem);
}

.nowrap {
  white-space: nowrap;
}

.result-heading .nowrap {
  white-space: normal;
}

.section-title {
  position: relative;
  padding: 18px 16px 20px;
  margin-bottom: 18px;
  text-align: center;
  background:
    linear-gradient(180deg, #fff, #f3fbfe);
  border-top: 4px solid var(--kaku-blue);
  border-bottom: 1px solid #cfe8f2;
}

.section-title::before,
.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  width: min(260px, 56%);
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--gold), var(--kaku-blue), transparent);
}

.section-title::before {
  top: 8px;
}

.section-title::after {
  bottom: 8px;
}

.section-title .eyebrow {
  margin-bottom: 8px;
  color: var(--kaku-blue);
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  font-weight: 900;
}

.section-title h2,
.section-title h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.12;
  word-break: keep-all;
  overflow-wrap: normal;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.92),
    0 0 14px rgba(29, 155, 209, 0.16);
}

.result-heading h2 {
  font-size: clamp(1.95rem, 4vw, 3.25rem);
  overflow-wrap: break-word;
  text-wrap: balance;
}

.section-title h3 {
  font-size: clamp(1.75rem, 3.6vw, 2.8rem);
}

.lead-text {
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid #d8edf4;
  background:
    linear-gradient(90deg, rgba(29, 155, 209, 0.1), transparent),
    #fff;
  line-height: 1.8;
  overflow-wrap: break-word;
  word-break: normal;
}

.text-mark,
.lead-text .lead-mark {
  color: var(--kaku-blue);
  font-weight: 900;
  background: linear-gradient(transparent 66%, rgba(255, 227, 154, 0.86) 66%);
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid #cfe8f2;
  background:
    linear-gradient(90deg, rgba(29, 155, 209, 0.06), transparent),
    #fff;
}

.result-grid h3 {
  grid-column: 1 / -1;
  margin: 0 0 6px;
  color: var(--ink);
  text-align: center;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.25;
  border-bottom: 3px solid var(--gold);
  width: fit-content;
  justify-self: center;
  padding: 0 4px 4px;
}

.result-grid article {
  min-height: 0;
  padding: 14px;
  border: 1px solid #d7e8ef;
  background:
    linear-gradient(135deg, rgba(29, 155, 209, 0.08), transparent 52%),
    #fff;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
}

.result-grid article > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--kaku-blue);
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 0;
}

.result-grid strong {
  display: block;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.55;
  word-break: normal;
  overflow-wrap: break-word;
}

.result-grid strong .text-mark {
  display: inline;
}

.action-plan {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.action-plan p {
  margin: 0;
  padding: 10px 12px;
  border-left: 5px solid var(--gold);
  background: #fff8e7;
  line-height: 1.65;
  overflow-wrap: break-word;
  word-break: normal;
}

.precision-box {
  display: none;
  gap: 16px;
  margin: 20px 0;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.98), rgba(247, 252, 255, 0.96));
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.precision-box::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("./assets/step-romance-study.png") right top / min(420px, 72%) auto no-repeat;
  opacity: 0.08;
  pointer-events: none;
}

.precision-box.active {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.precision-box h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
  line-height: 1.22;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.precision-box .section-title,
.precision-intro,
.precision-fields,
.precision-box #refineBtn,
.deep-result-box {
  position: relative;
  z-index: 1;
}

.precision-intro {
  padding: 14px 16px;
  border: 1px solid #d8edf4;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(23, 19, 15, 0.06);
}

.precision-box p {
  margin: 0;
  line-height: 1.65;
  overflow-wrap: break-word;
  word-break: normal;
}

.precision-fields {
  display: grid;
  gap: 12px;
  padding: clamp(14px, 2.5vw, 18px);
  border: 1px solid #d8edf4;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(23, 19, 15, 0.08);
  width: 100%;
  min-width: 0;
}

.deep-check-art {
  display: none;
  overflow: hidden;
  border: 0;
  background: transparent;
  opacity: 0;
  pointer-events: none;
}

.deep-check-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  animation: deepArtMotion 5.2s ease-in-out infinite alternate;
}

.deep-result-box {
  display: none;
  width: 100%;
  min-width: 0;
  padding: clamp(14px, 2.5vw, 18px);
  border: 1px solid #d8edf4;
  border-left: 5px solid var(--gold);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 28px rgba(23, 19, 15, 0.08);
}

.deep-result-box.active {
  display: grid;
  gap: 12px;
}

.deep-result-box h4 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  line-height: 1.35;
  text-align: center;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.deep-result-box p {
  margin: 0;
  line-height: 1.75;
}

.deep-result-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.deep-result-points > span {
  display: block;
  min-width: 0;
  padding: 13px 12px;
  background: #f7fcff;
  border: 1px solid #d8edf4;
  border-left: 4px solid var(--kaku-blue);
  font-weight: 900;
  line-height: 1.65;
  overflow-wrap: break-word;
  word-break: normal;
}

.deep-result-points strong {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--kaku-blue);
  font-size: 1.08rem;
}

.precision-fields label {
  display: grid;
  gap: 7px;
  font-weight: 900;
  min-width: 0;
}

.precision-fields label span {
  color: var(--teal);
  font-size: clamp(0.9rem, 1.6vw, 1rem);
}

.precision-fields .text-input {
  width: 100%;
  min-width: 0;
  background: #fff;
}

.precision-box #refineBtn {
  width: 100%;
  min-height: 58px;
  color: #fff;
  background: var(--kaku-blue);
  border-color: var(--kaku-blue);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  box-shadow: 0 10px 22px rgba(29, 155, 209, 0.2);
}

.select-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  min-width: 0;
}

.offer-box {
  display: none;
  margin: 18px 0;
  padding: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #fffdf7, #f7fcff);
  border: 1px solid #cfe8f2;
  overflow: hidden;
  position: relative;
}

.offer-box.active {
  display: block;
}

.offer-visual {
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--kaku-blue);
  background: #071116;
}

.offer-art {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  object-position: 50% center;
  animation: offerImageDrift 4.2s ease-in-out infinite alternate;
}

.offer-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 253, 247, 0.8), rgba(255, 253, 247, 0.42) 30%, rgba(255, 253, 247, 0.04) 62%),
    linear-gradient(115deg, transparent 0 46%, rgba(255, 255, 255, 0.36) 50%, transparent 55% 100%);
  background-size: 100% 100%, 220% 100%;
  animation: offerLightSweep 3.4s ease-in-out infinite;
  pointer-events: none;
}

.offer-visual-copy {
  position: absolute;
  left: clamp(18px, 5vw, 42px);
  top: 50%;
  z-index: 1;
  width: min(42%, 260px);
  transform: translateY(-50%);
  color: var(--ink);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.78);
  word-break: keep-all;
}

.offer-visual-copy span,
.offer-visual-copy em {
  display: block;
  color: var(--teal);
  font-size: clamp(0.9rem, 1.7vw, 1.1rem);
  font-style: normal;
  font-weight: 900;
  line-height: 1.35;
}

.offer-visual-copy strong {
  display: block;
  margin: 6px 0 8px;
  color: var(--ink);
  font-size: clamp(1.25rem, 3.2vw, 2.2rem);
  line-height: 1.16;
  overflow-wrap: break-word;
  text-wrap: balance;
}

@keyframes offerImageDrift {
  from {
    object-position: 48% center;
  }

  to {
    object-position: 56% center;
  }
}

@keyframes offerLightSweep {
  0%,
  45% {
    background-position: 0 0, 140% 0;
  }

  100% {
    background-position: 0 0, -80% 0;
  }
}

@keyframes heroSlowSlide {
  from {
    object-position: 55% center;
  }

  to {
    object-position: 63% center;
  }
}

@keyframes deepArtMotion {
  from {
    transform: scale(1.02) translateX(8px);
  }

  to {
    transform: scale(1.12) translateX(-16px);
  }
}

.offer-content {
  padding: clamp(18px, 3vw, 28px);
  position: relative;
  z-index: 1;
}

.offer-box .eyebrow {
  color: var(--kaku-blue);
}

.offer-box .section-title .eyebrow {
  color: var(--kaku-blue);
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
}

.offer-box h3 {
  margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  line-height: 1.16;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: balance;
  text-align: center;
}

.offer-box h3 span {
  display: block;
  white-space: normal;
  max-width: 100%;
}

.offer-box p {
  margin: 0;
  color: var(--ink);
  line-height: 1.85;
  font-size: clamp(1rem, 1.55vw, 1.12rem);
  overflow-wrap: break-word;
  word-break: normal;
}

.offer-steps {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.offer-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  color: var(--ink);
  border: 1px solid #d5edf5;
  border-left: 5px solid var(--kaku-blue);
  background: #f7fcff;
  font-weight: 900;
  line-height: 1.65;
}

.offer-step b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--kaku-blue);
  font-size: 1rem;
  line-height: 1;
}

.offer-step > span {
  display: block;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
}

.offer-step .text-mark {
  display: inline;
}

.coupon-note {
  margin-top: 12px;
  padding: 16px 14px 18px;
  color: var(--ink);
  background: #ffe39a;
  font-weight: 900;
  text-align: center;
  line-height: 1.35;
}

.coupon-line {
  display: block;
  color: var(--ink);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  text-wrap: balance;
}

.coupon-price {
  display: block;
  color: #c8212f;
  font-weight: 900;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: 0;
  text-shadow: 0 2px 0 #fff6cf;
}

.offer-line-btn {
  width: 100%;
  margin-top: 14px;
  min-height: 64px;
  background: #06c755;
  border-color: #06c755;
  font-size: clamp(1.2rem, 2.7vw, 1.55rem);
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 10px 24px rgba(6, 199, 85, 0.28);
}

@media (max-width: 720px) {
  .share-box {
    grid-template-columns: 1fr;
  }
}

.persona-box {
  display: none;
  margin: 18px 0;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  min-width: 0;
}

.persona-box.active {
  display: grid;
  grid-template-columns: 34% 1fr;
}

.persona-art {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: contain;
  object-position: center;
  background: linear-gradient(180deg, #fffdf7, #e8f5f9);
  animation: personaArtMotion 4.6s ease-in-out infinite alternate;
}

@keyframes personaArtMotion {
  from {
    transform: scale(1.01) translateY(0);
  }

  to {
    transform: scale(1.06) translateY(-10px);
  }
}

.persona-content {
  padding: 18px;
  min-width: 0;
}

.persona-box h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.55vw, 2.2rem);
  line-height: 1.18;
  overflow-wrap: break-word;
  word-break: keep-all;
  text-wrap: balance;
}

.persona-box h3 span {
  display: block;
  max-width: 100%;
}

.persona-box p {
  margin: 0 0 12px;
  font-size: clamp(0.95rem, 1.45vw, 1.08rem);
  line-height: 1.85;
  overflow-wrap: break-word;
  word-break: normal;
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .option-grid.two,
  .result-grid,
  .select-row,
  .deep-result-points {
    grid-template-columns: 1fr;
  }

  .question-card {
    min-height: 0;
  }

  .quest-state {
    grid-template-columns: 1fr;
  }

  .quest-chips {
    justify-content: flex-start;
  }

  .dream-banner {
    grid-template-columns: 1fr;
  }

  .hero-characters {
    opacity: 0.52;
    width: 100%;
  }

  .dream-copy {
    width: min(78%, 380px);
  }

  .deep-check-art {
    display: none;
  }

  .offer-art {
    min-height: 180px;
    max-height: 220px;
  }

  .offer-visual-copy {
    width: min(58%, 280px);
  }

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

  .persona-art {
    min-height: 420px;
    max-height: 560px;
  }

  .cover-overlay {
    inset: auto 12px 12px;
  }

  .cover-overlay h2 {
    display: none;
  }

  .cover-overlay p,
  .cover-overlay span {
    margin-bottom: 6px;
    padding: 5px 8px;
    font-size: 0.74rem;
  }
}
