:root {
  --rose: #ef7890;
  --rose-dark: #d95470;
  --sage: #49b978;
  --sage-dark: #22915e;
  --cream: #fffaf7;
  --pink-soft: #fceae7;
  --line: #06c755;
  --fresh-green: #45bd75;
  --yellow: #ffd45c;
  --text: #3d3d3d;
  --muted: #736b68;
  --white: #ffffff;
  --border: rgba(239, 120, 144, 0.24);
  --shadow: 0 16px 34px rgba(110, 46, 58, 0.12);
  --card-radius: 8px;
  --serif: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", "YuMincho", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.7;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: auto;
  -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(circle at 18% 8%, rgba(252, 234, 231, 0.82), transparent 28rem),
    radial-gradient(circle at 86% 28%, rgba(117, 163, 152, 0.16), transparent 24rem),
    var(--cream);
}

main,
footer {
  display: block;
}

img,
svg {
  display: block;
}

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

.container {
  width: min(100% - 32px, 1080px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(217, 84, 112, 0.18);
  box-shadow: 0 3px 14px rgba(77, 37, 45, 0.06);
  backdrop-filter: blur(14px);
}

.header-ribbon {
  min-height: 18px;
  padding: max(2px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 2px max(12px, env(safe-area-inset-left));
  color: #b35a6a;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  background: #ffe1df;
}

.header-main {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 8px max(16px, calc((100vw - 1080px) / 2));
}

.brand {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  color: var(--text);
  font-family: var(--sans);
  font-weight: 900;
}

.brand-mark {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
}

.brand-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand-text {
  color: #2e3338;
  font-size: 1.24rem;
  line-height: 1;
  white-space: nowrap;
}

.brand-text::first-letter {
  color: var(--rose-dark);
}

.brand-sub {
  color: #7f8d93;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.header-nav {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-left: auto;
}

.header-nav a {
  display: grid;
  gap: 1px;
  min-width: 40px;
  color: #43494d;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
}

.header-nav span {
  color: #9aa1a5;
  font-size: 1.2rem;
  line-height: 1;
}

.line-mini {
  display: inline-grid;
  min-width: 76px;
  min-height: 38px;
  place-items: center;
  padding: 8px 16px;
  color: var(--white);
  font-weight: 800;
  background: var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(6, 199, 85, 0.18);
}

.section-band {
  position: relative;
  overflow: hidden;
}

.hero {
  min-height: 620px;
  padding: 54px 0 62px;
  color: var(--white);
  background:
    linear-gradient(135deg, #e86f89 0%, #f1849b 58%, #f39aac 100%),
    var(--rose);
}

.hero::after {
  position: absolute;
  right: -5rem;
  bottom: 3rem;
  width: 23rem;
  height: 23rem;
  content: "";
  border: 34px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(280px, 0.78fr);
  gap: 42px;
  align-items: center;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 18px;
  padding: 7px 14px;
  color: var(--rose-dark);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.4;
  background: #ffe5e9;
  border-radius: 999px;
}

.eyebrow {
  white-space: nowrap;
}

.hero h1,
.section-heading h2,
.closing h2 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 680px;
  color: var(--white);
  font-size: 2.36rem;
  overflow-wrap: anywhere;
  text-shadow: 0 3px 14px rgba(133, 48, 63, 0.16);
}

.hero .eyebrow {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.36);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.chips span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 13px;
  color: var(--text);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(216, 136, 131, 0.28);
  border-radius: 999px;
}

.chips span::before {
  display: block;
  width: 16px;
  height: 16px;
  content: "";
  background: var(--rose-dark);
  border-radius: 50%;
  mask: radial-gradient(circle at 50% 50%, #000 0 45%, transparent 47%);
}

.line-cta {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 13px 24px;
  color: var(--white);
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1.3;
  background: linear-gradient(135deg, #10d96a, var(--line));
  border-radius: 999px;
  box-shadow: 0 16px 28px rgba(6, 199, 85, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.hero-register {
  width: min(100%, 480px);
  margin-top: 28px;
  padding: 20px;
  color: var(--text);
  text-align: center;
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--card-radius);
  box-shadow: 0 18px 38px rgba(123, 46, 62, 0.2);
}

.register-title {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin: 0 0 10px;
  color: var(--rose-dark);
  font-size: 1.04rem;
  font-weight: 900;
  line-height: 1.4;
}

.register-title span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 9px;
  color: var(--white);
  background: var(--rose);
  border-radius: 6px;
}

.register-question {
  margin: 0 0 12px;
  color: #2f3336;
  font-size: 0.94rem;
  font-weight: 900;
}

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

.choice-actions a {
  display: grid;
  min-height: 58px;
  place-items: center;
  padding: 10px;
  color: var(--white);
  font-weight: 900;
  line-height: 1.35;
  background: linear-gradient(180deg, #52c985, var(--fresh-green));
  border-radius: 6px;
  box-shadow: 0 8px 16px rgba(46, 146, 87, 0.22);
}

.line-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px rgba(6, 199, 85, 0.3);
}

.line-bubble {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--line);
  font-size: 0.56rem;
  font-weight: 900;
  background: var(--white);
  border-radius: 50%;
}

.cta-arrow {
  font-family: Arial, sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.hero-visual {
  position: relative;
  width: min(100%, 380px);
  margin: 0 auto;
}

.photo-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, rgba(252, 234, 231, 0.9), rgba(255, 255, 255, 0.78));
  border: 10px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
}

.photo-shell::before {
  position: absolute;
  inset: 18px;
  content: "";
  border: 2px solid rgba(216, 136, 131, 0.16);
  border-radius: inherit;
}

.photo-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 44%;
}

.hero-visual figcaption {
  width: min(100%, 320px);
  margin: 12px auto 0;
  padding: 12px 16px;
  color: var(--sage-dark);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(117, 163, 152, 0.22);
  border-radius: var(--card-radius);
  box-shadow: 0 12px 26px rgba(84, 67, 60, 0.08);
}

.section {
  padding: 72px 0;
}

.problems,
.features,
.flow,
.faq {
  background: var(--cream);
}

.section-heading {
  margin-bottom: 28px;
  text-align: center;
}

.section-heading::before {
  display: block;
  width: 36px;
  height: 36px;
  margin: 0 auto 10px;
  content: "";
  background: url("assets/magosapo-mark.svg") center / contain no-repeat;
  filter: drop-shadow(0 6px 10px rgba(217, 84, 112, 0.1));
}

.section-heading .section-kicker {
  margin-inline: auto;
}

.section-heading h2,
.closing h2 {
  font-size: 2rem;
}

.problem-panel {
  padding: 24px;
  background: #eef6f2;
  border: 1px solid #cfe4dc;
  border-radius: var(--card-radius);
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  min-height: 60px;
  padding: 16px 16px 16px 48px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
}

.check-list li::before {
  position: absolute;
  top: 18px;
  left: 17px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: var(--white);
  font-size: 0.9rem;
  content: "✓";
  background: #f16f91;
  border-radius: 50%;
}

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

.feature-card {
  padding: 26px 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #ffd4dc;
  border-radius: var(--card-radius);
  box-shadow: 0 12px 24px rgba(123, 46, 62, 0.06);
}

.point-label {
  display: block;
  margin-bottom: 14px;
  color: var(--sage-dark);
  font-family: var(--sans);
  font-weight: 800;
}

.icon-circle {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(145deg, #5ccb88, var(--fresh-green));
  border-radius: 50%;
}

.icon-circle svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-weight: 900;
  font-size: 1.16rem;
  line-height: 1.5;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.proof {
  padding: 34px 0;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(73, 185, 120, 0.96), rgba(46, 151, 94, 0.96)),
    var(--fresh-green);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--card-radius);
}

.proof-grid div {
  display: grid;
  min-height: 118px;
  place-items: center;
  padding: 18px 10px;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
}

.proof-grid strong {
  font-family: var(--sans);
  font-weight: 900;
  font-size: 2rem;
  line-height: 1.1;
}

.proof-grid span {
  font-weight: 700;
}

.flow {
  background: linear-gradient(180deg, rgba(252, 234, 231, 0.5), rgba(255, 250, 247, 0));
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
  max-width: 760px;
  padding: 0;
  margin: 0 auto;
  list-style: none;
}

.timeline::before {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 25px;
  width: 2px;
  content: "";
  background: linear-gradient(#f16f91, rgba(241, 111, 145, 0.12));
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: start;
}

.step-number {
  z-index: 1;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: var(--white);
  font-weight: 900;
  background: #f16f91;
  border: 6px solid var(--cream);
  border-radius: 50%;
  box-shadow: 0 10px 20px rgba(216, 136, 131, 0.18);
}

.timeline li div {
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #ffd4dc;
  border-radius: var(--card-radius);
}

.timeline h3 {
  margin: 0 0 4px;
  font-family: var(--sans);
  font-weight: 900;
  font-size: 1.12rem;
}

.timeline p {
  margin: 0;
  color: var(--muted);
}

.faq-list {
  display: grid;
  max-width: 820px;
  gap: 12px;
  margin-inline: auto;
}

.faq-list details {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #ffd4dc;
  border-radius: var(--card-radius);
}

.faq-list summary {
  position: relative;
  min-height: 62px;
  padding: 18px 56px 18px 54px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::before {
  position: absolute;
  top: 18px;
  left: 18px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: var(--white);
  content: "Q";
  background: #f16f91;
  border-radius: 50%;
}

.faq-list summary::after {
  position: absolute;
  top: 20px;
  right: 22px;
  color: #f16f91;
  font-size: 1.4rem;
  line-height: 1;
  content: "+";
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  margin: 0;
  padding: 0 22px 20px 54px;
  color: var(--muted);
}

.closing {
  position: relative;
  overflow: hidden;
  padding: 76px 0;
  color: var(--white);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(73, 185, 120, 0.96), rgba(239, 120, 144, 0.88)),
    var(--fresh-green);
}

.closing .section-kicker {
  margin-inline: auto;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

.closing p:not(.section-kicker) {
  margin: 18px auto 28px;
  max-width: 560px;
  font-weight: 700;
}

.closing-inner {
  position: relative;
  z-index: 1;
}

.site-footer {
  padding: 30px 0 calc(30px + env(safe-area-inset-bottom));
  background: #fff3ee;
  border-top: 1px solid rgba(216, 136, 131, 0.18);
}

.footer-inner {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  margin: 0;
  font-family: var(--sans);
  font-weight: 800;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-leaf,
.closing-leaf {
  position: absolute;
  width: 110px;
  height: 150px;
  opacity: 0.28;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 45% 16%, var(--sage) 0 12%, transparent 13%),
    radial-gradient(ellipse at 58% 32%, var(--sage) 0 12%, transparent 13%),
    radial-gradient(ellipse at 42% 48%, var(--sage) 0 11%, transparent 12%),
    radial-gradient(ellipse at 59% 64%, var(--sage) 0 11%, transparent 12%),
    linear-gradient(100deg, transparent 48%, var(--sage) 49% 51%, transparent 52%);
}

.leaf-one {
  right: 8%;
  bottom: 36px;
  transform: rotate(18deg);
}

.leaf-two {
  left: 2%;
  top: 80px;
  transform: rotate(-26deg) scale(0.82);
}

.closing-leaf.left {
  left: 9%;
  bottom: 24px;
  transform: rotate(-28deg);
}

.closing-leaf.right {
  right: 8%;
  top: 20px;
  transform: rotate(22deg) scaleX(-1);
}

@media (max-width: 820px) {
  .site-header {
    min-height: 0;
  }

  .header-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 56px;
    padding-inline: 12px;
  }

  .header-nav {
    display: none;
  }

  .brand {
    overflow: hidden;
  }

  .brand-copy {
    overflow: hidden;
  }

  .brand-text {
    font-size: 0.96rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-sub {
    font-size: 0.5rem;
  }

  .hero {
    min-height: 0;
    padding: 28px 0 36px;
    color: var(--white);
    background:
      linear-gradient(135deg, #e86f89 0%, #f1849b 56%, #f39aac 100%),
      var(--rose);
  }

  .hero::after {
    right: -8rem;
    bottom: -4rem;
    width: 21rem;
    height: 21rem;
    border-color: rgba(255, 255, 255, 0.16);
  }

  .hero-inner {
    display: block;
    min-height: 0;
  }

  .hero h1 {
    max-width: 60%;
    color: var(--white);
    font-size: 1.34rem;
    line-height: 1.62;
    text-shadow:
      0 2px 4px rgba(103, 38, 51, 0.28),
      0 8px 20px rgba(112, 54, 62, 0.24);
  }

  .hero-copy {
    position: static;
    width: 100%;
    max-width: 100%;
    padding-top: 10px;
  }

  .hero-copy > .eyebrow,
  .hero-copy > .chips {
    max-width: 60%;
  }

  .hero .eyebrow {
    position: relative;
    z-index: 4;
    white-space: nowrap;
    color: var(--white);
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.22);
  }

  .hero .chips {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin: 18px 0 0;
  }

  .hero .chips span {
    min-height: 34px;
    padding: 7px 11px;
    color: var(--text);
    font-size: 0.88rem;
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.68);
  }

  .hero-visual {
    position: absolute;
    top: 52px;
    right: -10px;
    z-index: 1;
    width: min(56%, 250px);
    height: 400px;
    margin: 0;
    pointer-events: none;
  }

  .photo-shell {
    height: 100%;
    overflow: visible;
    aspect-ratio: auto;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .photo-shell::before {
    display: none;
  }

  .photo-shell picture {
    display: block;
    width: 100%;
    height: 100%;
  }

  .photo-shell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 82% 18%;
    filter: drop-shadow(0 18px 28px rgba(112, 54, 62, 0.16));
    -webkit-mask-image:
      linear-gradient(90deg, transparent 0%, #000 14%, #000 100%),
      linear-gradient(180deg, transparent 0%, #000 5%, #000 94%, transparent 100%);
    mask-image:
      linear-gradient(90deg, transparent 0%, #000 14%, #000 100%),
      linear-gradient(180deg, transparent 0%, #000 5%, #000 94%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }

  .hero-visual figcaption {
    display: none;
  }

  .hero-register {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    margin: 110px 0 0;
    padding: 16px 14px 18px;
  }

  .section {
    padding: 58px 0;
  }

  .section-heading h2,
  .closing h2 {
    font-size: 1.55rem;
  }

  .check-list,
  .feature-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (min-width: 700px) and (max-width: 820px) {
  .hero-register {
    margin-top: 172px;
  }
}

@media (max-width: 430px) {
  .container {
    width: min(100% - 24px, 1080px);
  }

  .line-mini {
    justify-self: end;
    min-width: 70px;
    min-height: 38px;
    padding-inline: 12px;
  }

  .eyebrow,
  .section-kicker {
    font-size: 0.78rem;
  }

  .chips {
    gap: 8px;
  }

  .chips span {
    min-height: 36px;
    padding-inline: 11px;
    font-size: 0.9rem;
  }

  .hero h1 {
    font-size: 1.22rem;
  }

  .hero-register {
    padding-inline: 12px;
  }

  .register-title {
    gap: 6px;
    font-size: 0.96rem;
  }

  .register-question {
    font-size: 0.82rem;
  }

  .choice-actions {
    gap: 10px;
  }

  .choice-actions a {
    min-height: 54px;
    font-size: 0.9rem;
  }

  .line-cta {
    width: 100%;
    min-height: 58px;
    padding-inline: 18px;
    font-size: 1rem;
  }

  .problem-panel {
    padding: 14px;
    border-radius: var(--card-radius);
  }

  .proof-grid strong {
    font-size: 1.55rem;
  }

  .proof-grid div {
    min-height: 104px;
  }

  .faq-list summary {
    padding-right: 46px;
  }
}
