:root {
  --ink: #221a33;
  --muted: #655c75;
  --paper: #fffdfd;
  --mist: #f6f0fb;
  --wisteria: #cdb8e9;
  --violet: #7c4bb2;
  --deep: #100b24;
  --navy: #171433;
  --silver: rgba(255,255,255,.74);
  --line: rgba(92, 63, 128, .18);
  --shadow: 0 22px 70px rgba(41, 24, 72, .16);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 18px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.9;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

main,
.section,
.hero,
.image-band {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

.section {
  position: relative;
  padding: clamp(76px, 12vw, 130px) 0;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.narrow { width: min(760px, calc(100% - 32px)); }

h1, h2, h3 {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  font-weight: 500;
  line-height: 1.45;
  margin: 0;
}

h2 {
  font-size: clamp(1.72rem, 5.7vw, 3.05rem);
  text-align: center;
  margin-bottom: 2.1rem;
}

h2::after {
  content: "";
  display: block;
  width: 82px;
  height: 1px;
  margin: 1.1rem auto 0;
  background: linear-gradient(90deg, transparent, rgba(124,75,178,.7), transparent);
}

h3 { font-size: clamp(1.12rem, 3vw, 1.45rem); }
p { margin: 0 0 1.25rem; }
.edit-gap-before { margin-top: 1.35rem; }
.edit-gap-after { margin-bottom: 1.8rem; }

.eyebrow,
.limited {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  color: #8c65bd;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: .8rem;
}

.section-dark .eyebrow,
.section-dark .limited { color: #e7d9ff; }

.prose {
  font-size: clamp(1rem, 2.8vw, 1.08rem);
  letter-spacing: .02em;
}

.prose p:last-child { margin-bottom: 0; }

.section-tint {
  background:
    radial-gradient(circle at 10% 10%, rgba(205,184,233,.34), transparent 34%),
    linear-gradient(180deg, #fbf8ff 0%, #fff 62%, #f7f1fb 100%);
}

.section-dark {
  color: #fff;
  background: radial-gradient(circle at 50% 20%, rgba(164,122,210,.4), transparent 34%), linear-gradient(135deg, var(--deep), #2b1751 55%, #110d28);
}

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
  align-items: center;
  padding: calc(34px + env(safe-area-inset-top)) clamp(18px, 5vw, 70px) 56px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,7,25,.92) 0%, rgba(20,13,42,.72) 42%, rgba(20,13,42,.16) 78%);
  z-index: 1;
}

.hero__image {
  position: absolute;
  inset: 0;
  background-image: url("./assets/hero-rei.webp");
  background-size: cover;
  background-position: center right;
  opacity: .92;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin-top: -2svh;
}

.hero .eyebrow,
.hero .limited { text-align: left; }

.hero h1 {
  font-size: clamp(2.8rem, 12vw, 6.8rem);
  letter-spacing: .08em;
  margin: .3rem 0 1.2rem;
  text-shadow: 0 10px 36px rgba(0,0,0,.36);
}

.hero h1 span { font-size: .62em; }

.lead {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(1.18rem, 4vw, 1.65rem);
}

.hero__body {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  max-width: 520px;
  color: rgba(255,255,255,.86);
  margin: 2rem 0;
  letter-spacing: .04em;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: .9rem 1.35rem;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  background: linear-gradient(135deg, #8b5ed0, #5f348e 58%, #b69adf);
  box-shadow: 0 14px 34px rgba(64, 32, 99, .32), inset 0 1px rgba(255,255,255,.38);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.cta-button:hover { transform: translateY(-2px); filter: brightness(1.04); }
.cta-button--large { width: min(100%, 440px); min-height: 64px; font-size: 1.02rem; }
.cta-button.is-disabled {
  pointer-events: none;
  cursor: not-allowed;
  background: linear-gradient(135deg, #888195, #5f5a6b);
  box-shadow: none;
  opacity: .66;
}

.image-band {
  position: relative;
  height: clamp(220px, 46vw, 520px);
  overflow: hidden;
}
.image-band img { width: 100%; height: 100%; object-fit: cover; }

.intro-copy, .closing-copy {
  text-align: center;
  width: min(720px, 100%);
  margin: 0 auto 3rem;
}

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

.insight-grid article,
.voice-card,
.flow-list article,
.offer-panel,
.goal-box,
details {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow);
}

.insight-grid article {
  position: relative;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 8px;
  overflow: hidden;
}

.insight-grid h3 {
  color: #5b2f86;
  font-size: clamp(1.24rem, 4.4vw, 1.62rem);
  line-height: 1.55;
  margin-bottom: .9rem;
}

.flow-list h3 {
  color: #5b2f86;
  font-size: clamp(1.24rem, 4.4vw, 1.62rem);
  line-height: 1.55;
  margin-bottom: .9rem;
}

.insight-grid span,
.flow-list span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #7b4bb1, #c0a4df);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  margin-bottom: 1rem;
}

.goal-box {
  border-radius: 8px;
  padding: clamp(24px, 5vw, 40px);
  margin: 3rem 0;
  background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(247,240,252,.9));
}

.goal-box h3 { text-align: center; margin-bottom: 1rem; }
.goal-box ul, .check-list, .notice-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.goal-box li, .check-list li, .notice-list li {
  position: relative;
  padding-left: 1.45rem;
  margin-bottom: .85rem;
}
.goal-box li::before, .check-list li::before, .notice-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .85em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8e65bd;
  box-shadow: 0 0 0 5px rgba(142,101,189,.12);
}

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

.voice-card {
  border-radius: 8px;
  padding: clamp(22px, 4vw, 32px);
}

.voice-card h3 { color: #5c3982; margin-bottom: 1rem; }
.profile { color: var(--muted); font-size: .92rem; border-left: 1px solid var(--wisteria); padding-left: 1rem; }

.message {
  background-image: linear-gradient(90deg, rgba(13,9,30,.96), rgba(29,18,58,.84)), url("./assets/final-cta-bg.webp");
  background-size: cover;
  background-position: center;
}

.message-layout {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: center;
}
.message-image img {
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0,0,0,.36);
}
.message-copy h2 { text-align: left; }
.message-copy h2::after { margin-left: 0; }
.signature {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 1.28rem;
  letter-spacing: .12em;
  margin-top: 2rem;
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.flow-list article {
  border-radius: 8px;
  padding: 26px;
}

.offer-panel {
  width: min(900px, 100%);
  margin: 0 auto;
  border-radius: 8px;
  padding: clamp(24px, 5vw, 48px);
}
#offer { scroll-margin-top: 18px; }

.edit-toolbar {
  position: fixed;
  z-index: 50;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  display: none;
  width: min(330px, calc(100% - 24px));
  padding: 12px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 8px;
  color: #fff;
  background: rgba(18, 12, 36, .9);
  box-shadow: 0 18px 52px rgba(0,0,0,.28);
  backdrop-filter: blur(14px);
}

body.is-editing .edit-toolbar { display: block; }

.edit-toolbar p {
  margin: 0 0 10px;
  font-size: .82rem;
  line-height: 1.6;
}

.edit-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.edit-toolbar button {
  min-height: 36px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 999px;
  padding: 6px 12px;
  color: #fff;
  background: rgba(255,255,255,.12);
  font: inherit;
  font-size: .82rem;
}

body.is-editing [contenteditable="true"] {
  outline: 1px dashed rgba(126, 84, 181, .38);
  outline-offset: 4px;
  border-radius: 4px;
}

body.is-editing [contenteditable="true"]:focus {
  outline: 2px solid rgba(126, 84, 181, .82);
  background: rgba(255,255,255,.18);
}
.offer-list,
.final-summary dl {
  display: grid;
  gap: 12px;
  margin: 0 0 2.2rem;
}
.offer-list div,
.final-summary dl div {
  display: grid;
  grid-template-columns: 9em 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
dt { color: #6c4a93; font-weight: 700; }
dd { margin: 0; }
.offer-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px;
  margin: 2rem 0;
}
.offer-columns > div {
  padding: 24px;
  border-radius: 8px;
  background: #fbf8ff;
}
.offer-cta { text-align: center; margin: 2.5rem 0; }
.note { font-size: .9rem; color: var(--muted); margin-top: .8rem; }

details {
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}
summary {
  cursor: pointer;
  padding: 1.1rem 3.1rem 1.1rem 1.2rem;
  font-weight: 700;
  list-style: none;
  position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: #7b4bb1;
  font-size: 1.5rem;
}
details[open] summary::after { content: "−"; }
details div { padding: 0 1.2rem 1.2rem; color: var(--muted); }

.notice-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 5vw, 38px);
  background: rgba(255,255,255,.75);
}

.final-cta {
  text-align: center;
  background-image: linear-gradient(180deg, rgba(15,9,34,.82), rgba(29,15,56,.9)), url("./assets/final-cta-bg.webp");
  background-size: cover;
  background-position: center;
}
.final-cta .prose { text-align: left; }
.final-summary {
  margin: 3rem auto;
  padding: clamp(24px, 5vw, 42px);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(18,12,38,.5);
  backdrop-filter: blur(12px);
}
.final-summary dt { color: #e5d5ff; }
.final-summary .note { color: rgba(255,255,255,.76); }
.final-note { margin-bottom: .4rem; color: rgba(255,255,255,.82); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: calc(46svh + 16px);
    padding-bottom: 44px;
  }
  .hero::before {
    background: linear-gradient(180deg, rgba(13,8,30,.06) 0%, rgba(13,8,30,.4) 38%, rgba(13,8,30,.96) 58%);
  }
  .hero__image { height: 56svh; bottom: auto; background-position: center top; }
  .hero .eyebrow, .hero .limited { text-align: center; }
  .hero__content { text-align: center; margin: 0 auto; }
  .hero__body { margin-left: auto; margin-right: auto; }
  .insight-grid, .voice-grid, .flow-list, .message-layout, .offer-columns { grid-template-columns: 1fr; }
  .message-copy h2 { text-align: center; }
  .message-copy h2::after { margin-left: auto; }
}

@media (max-width: 560px) {
  .section { padding: 68px 0; }
  .container, .narrow { width: min(100% - 24px, 760px); }
  .hero { padding-left: 16px; padding-right: 16px; }
  .hero h1 { letter-spacing: .04em; }
  .offer-list div, .final-summary dl div { grid-template-columns: 1fr; gap: .3rem; }
  .cta-button--large { font-size: .96rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
