:root {
  --paper: #FFFDF8;
  --white: #FFFFFF;
  --cream: #FAF3E6;
  --ink: #2B2825;
  --ink-soft: #6F6A63;
  --marker: #FFE45C;
  --accent: #E8894A;
  --line-green: #06C755;
  --hairline: #E9E2D6;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 2;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
img { max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, h4 { margin-top: 0; }
ul, ol { margin: 0; padding: 0; }

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

.text-column { max-width: 620px; }

.section { padding-block: clamp(64px, 15vw, 110px); }
.problem, .benefits, .works, .support, .faq { background: var(--white); }
.concept, .price, .flow { background: var(--paper); }
.promises, .about, .final-cta { background: var(--cream); }

h1, h2, h3, h4, .cta-button, .sticky-cta {
  font-family: "Zen Maru Gothic", sans-serif;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(28px, 7.5vw, 38px);
  line-height: 1.55;
  letter-spacing: .03em;
}

h2 {
  margin-bottom: 38px;
  font-size: clamp(22px, 5.5vw, 28px);
  line-height: 1.55;
  letter-spacing: .03em;
}

h3 { line-height: 1.6; letter-spacing: .03em; }

.marker {
  background: linear-gradient(transparent 55%, var(--marker) 55%, var(--marker) 92%, transparent 92%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.hero {
  min-height: 100svh;
  padding: 20px 0 72px;
  overflow: hidden;
  background: var(--paper);
}

.hero-stage {
  position: relative;
  height: min(46vh, 420px);
  min-height: 330px;
}

.hero-browser {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(326px, 94vw);
  aspect-ratio: 326 / 292;
  transform: translate(-50%, -50%);
  animation: browser-pop .35s ease 2.05s;
}

@keyframes browser-pop {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  45% { transform: translate(-50%, -50%) scale(1.016); }
}

.browser-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.browser-frame circle { fill: var(--cream); }
.browser-frame .slot-line {
  stroke: var(--hairline);
  stroke-width: 1.5;
  stroke-dasharray: 270;
  stroke-dashoffset: 270;
  animation: draw-stroke .45s ease forwards;
}
.browser-frame .slot-line-1 { animation-delay: 1.15s; }
.browser-frame .slot-line-2 { animation-delay: 1.45s; }

@keyframes draw-stroke {
  to { stroke-dashoffset: 0; }
}

.slot-label {
  position: absolute;
  left: 9.5%;
  color: var(--ink-soft);
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  opacity: 0;
  transform: translateX(-6px);
  animation: label-in .4s ease forwards;
}

.slot-label-1 { top: 18.5%; animation-delay: 1s; }
.slot-label-2 { top: 46%; animation-delay: 1.3s; }
.slot-label-3 { top: 73.5%; animation-delay: 1.55s; }

@keyframes label-in {
  to { opacity: 1; transform: translateX(0); }
}

.post-card {
  position: absolute;
  z-index: 2;
  width: clamp(48px, 15vw, 58px);
  aspect-ratio: 1;
  padding: 5px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 3px 10px rgba(43, 40, 37, .07);
  opacity: 0;
  animation:
    card-drift var(--drift) ease-in-out .1s both,
    card-snap .5s cubic-bezier(.3, 1.35, .5, 1) var(--snap) forwards;
}

.post-card i {
  display: block;
  height: 58%;
  margin-bottom: 5px;
  border-radius: 4px;
  background: var(--cream);
}

.post-card b {
  display: block;
  width: 82%;
  height: 3px;
  margin-top: 3px;
  border-radius: 3px;
  background: var(--hairline);
}

.post-card b:last-child { width: 56%; }
/* 第1幕: 上から流れてくる(--sx/--sy → --mx/--my)。第2幕: 枠のスロットへ吸い込まれる */
.post-card-1 { top: 21%; left: 40%; --sx: -150px; --sy: -245px; --mx: -116px; --my: -150px; --r1: -14deg; --r2: -9deg; --drift: .8s; --snap: .9s; }
.post-card-2 { top: 21%; left: 62%; --sx: 122px; --sy: -225px; --mx: 79px; --my: -112px; --r1: 12deg; --r2: 7deg; --drift: .95s; --snap: 1.05s; }
.post-card-3 { top: 48.5%; left: 39%; --sx: -134px; --sy: -218px; --mx: -92px; --my: -119px; --r1: 16deg; --r2: 10deg; --drift: 1.1s; --snap: 1.2s; }
.post-card-4 { top: 48.5%; left: 61%; --sx: 131px; --sy: -192px; --mx: 91px; --my: -84px; --r1: -11deg; --r2: -6deg; --drift: 1.25s; --snap: 1.35s; }
.post-card-5 { top: 76%; left: 50%; --sx: 14px; --sy: -268px; --mx: -5px; --my: -165px; --r1: 13deg; --r2: 8deg; --drift: 1.4s; --snap: 1.5s; }

@keyframes card-drift {
  0% { opacity: 0; transform: translate(var(--sx), var(--sy)) rotate(var(--r1)); }
  22% { opacity: .55; }
  100% { opacity: .8; transform: translate(var(--mx), var(--my)) rotate(var(--r2)); }
}

@keyframes card-snap {
  0% { opacity: .8; transform: translate(var(--mx), var(--my)) rotate(var(--r2)); }
  72% { opacity: 1; transform: translate(-50%, -50%) rotate(calc(var(--r2) * -.2)) scale(1.05); }
  100% { opacity: 1; transform: translate(-50%, -50%) rotate(0) scale(1); }
}

.hero-copy {
  max-width: 620px;
  margin-inline: auto;
  text-align: center;
  opacity: 0;
  animation: reveal-hero-copy .5s ease 1.9s forwards;
}

@keyframes reveal-hero-copy {
  to { opacity: 1; }
}

.hero-copy .marker {
  background-size: 0% 100%;
  animation: marker-swipe .45s ease 2.3s forwards;
}

@keyframes marker-swipe {
  to { background-size: 100% 100%; }
}

.hero-lead { margin-bottom: 28px; }
.microcopy { margin: 12px 0 0; color: var(--ink-soft); font-size: 13px; }

.cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 360px;
  min-height: 58px;
  margin-inline: auto;
  padding: 16px 32px;
  border-radius: 999px;
  color: var(--white);
  background: var(--line-green);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: filter 150ms ease, transform 150ms ease;
}

.cta-button > svg {
  width: 25px;
  height: 23px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cta-button:hover { filter: brightness(.94); }
.cta-button:active { transform: translateY(1px); }

.check-list { list-style: none; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; }
.check-list svg, .reassurance-grid svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin-top: 4px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.check-box { stroke: var(--ink-soft); stroke-width: 1.7; }
.check-mark { stroke: var(--accent); stroke-width: 2.8; }

.problem-list li { padding: 17px 0; border-bottom: 1px solid var(--hairline); }
.problem-list li:first-child { border-top: 1px solid var(--hairline); }
.problem-closing { margin-top: 42px; text-align: center; }
.problem-closing p:first-child { margin-bottom: 26px; }
.problem-emphasis {
  display: inline;
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.9;
}

.concept-lead { margin-bottom: 44px; }
.concept-lead strong { font-family: "Zen Maru Gothic", sans-serif; font-weight: 500; }
.steps { max-width: 620px; margin-inline: auto; }
.step-card {
  position: relative;
  padding: 26px 24px 24px 84px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--white);
}
.step-card h3 { margin-bottom: 7px; font-size: 18px; }
.step-card p { margin-bottom: 0; }

.number-circle { position: relative; width: 56px; height: 56px; flex: 0 0 56px; }
.step-card .number-circle { position: absolute; top: 20px; left: 18px; }
.number-circle svg { width: 100%; height: 100%; fill: none; stroke: var(--accent); stroke-width: 2.7; stroke-linecap: round; }
.number-circle span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}
.down-arrow { width: 40px; height: 44px; margin: 9px auto; fill: none; stroke: var(--accent); stroke-width: 2.7; stroke-linecap: round; stroke-linejoin: round; }

.comparison-list { display: grid; gap: 40px; }
.comparison { display: grid; justify-items: center; }
.comparison-number { justify-self: start; margin: 0 0 8px; font-family: "Zen Maru Gothic", sans-serif; font-weight: 700; }
.before-card, .after-card { width: 100%; padding: 20px; border-radius: var(--radius); }
.before-card { color: var(--ink-soft); background: var(--paper); }
.after-card { border: 1px solid var(--hairline); border-left: 3px solid var(--accent); background: var(--white); }
.before-card strong, .after-card strong { font-family: "Zen Maru Gothic", sans-serif; font-weight: 500; }
.curve-arrow { width: 66px; height: 44px; margin: 8px auto; fill: none; stroke: var(--accent); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; transform: rotate(90deg); }

.promise-list { display: grid; gap: 40px; }
.promise-list article { padding-bottom: 34px; border-bottom: 1px solid var(--hairline); }
.promise-list article:last-child { padding-bottom: 0; border-bottom: 0; }
.promise-list h3 { margin-bottom: 2px; font-size: 19px; font-weight: 700; }
.wavy-line { width: 124px; height: 12px; margin-bottom: 12px; fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; }
.promise-list p { margin-bottom: 0; }

.work-browser {
  position: relative;
  width: 100%;
  aspect-ratio: 620 / 470;
  margin-bottom: 28px;
  background: var(--cream);
}
.work-browser-frame { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.work-browser-frame circle { fill: var(--cream); }
.work-browser img {
  position: absolute;
  top: 10.5%;
  left: 2%;
  z-index: 1;
  width: 96%;
  height: 87%;
  object-fit: cover;
  object-position: top;
  background: var(--cream);
  color: transparent;
  font-size: 0;
}
.work-copy h3 { margin-bottom: 2px; font-size: 19px; }
.work-copy p:nth-of-type(1) { margin-bottom: 20px; color: var(--ink-soft); }
.work-copy p:nth-of-type(2) { margin-bottom: 18px; }
.text-link { color: var(--ink); text-underline-offset: 5px; text-decoration-color: var(--accent); font-family: "Zen Maru Gothic", sans-serif; font-weight: 700; }

.service-card { padding: 28px 22px; border: 1px solid var(--hairline); border-radius: var(--radius); background: var(--white); }
.service-card > h3 { margin-bottom: 5px; text-align: center; font-size: 19px; }
.price-amount { margin-bottom: 30px; font-family: "Zen Maru Gothic", sans-serif; font-size: clamp(32px, 8vw, 40px); font-weight: 700; line-height: 1.5; text-align: center; letter-spacing: .01em; }
.price-lead { margin-bottom: 34px; }
.price-card + .price-card { margin-top: 30px; }
.plan-recommended { position: relative; border: 2px solid var(--accent); }
.plan-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  margin: 0;
  padding: 3px 20px;
  border-radius: 999px;
  color: var(--white);
  background: var(--accent);
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  transform: translateX(-50%);
}
.plan-for { margin: 0 0 22px; color: var(--ink-soft); font-size: 13px; line-height: 1.8; text-align: center; }
.price-sub { display: block; margin-top: 2px; font-size: clamp(16px, 4.2vw, 18px); }
.price-unit { font-size: clamp(18px, 4.5vw, 20px); }
.price-card:last-child .note { margin-top: 16px; }
.price-card:last-child .price-amount { margin-bottom: 8px; }
.section-cta { margin-top: 44px; text-align: center; }
.section-cta .microcopy { text-align: center; }
.service-card h4 { margin-bottom: 14px; font-size: 16px; }
.compact-list { display: grid; gap: 12px; }
.note { margin: 24px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.9; }
.support-lead { margin-bottom: 34px; }
.support-price { margin-bottom: 28px; font-family: "Zen Maru Gothic", sans-serif; font-size: 24px; font-weight: 700; line-height: 1.5; text-align: center; }

.timeline { list-style: none; }
.timeline li { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 18px; min-height: 138px; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; top: 60px; bottom: 8px; left: 27px; border-left: 1px dashed var(--hairline); }
.timeline h3 { margin: 5px 0 5px; font-size: 17px; font-weight: 500; }
.timeline p { margin-bottom: 0; }
.flow-closing { margin: 22px 0 0; text-align: center; }
.flow-closing strong { font-family: "Zen Maru Gothic", sans-serif; font-weight: 700; }

.about-content > img { width: min(240px, 60vw); height: auto; margin: -10px auto 22px; }
.about-name { margin-bottom: 34px; font-family: "Zen Maru Gothic", sans-serif; font-size: 20px; font-weight: 700; text-align: center; }
.about-copy p { margin-bottom: 26px; }
.about-copy p:last-child { margin-bottom: 0; }
.about-closing { font-family: "Zen Maru Gothic", sans-serif; font-size: 17px; font-weight: 500; line-height: 1.9; }

.faq-list { border-top: 1px solid var(--hairline); }
.faq-list details { border-bottom: 1px solid var(--hairline); }
.faq-list summary {
  display: grid;
  grid-template-columns: 22px 1fr 20px;
  gap: 10px;
  align-items: start;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 500;
  line-height: 1.7;
}
.faq-list summary::-webkit-details-marker { display: none; }
.qa-mark { color: var(--accent); font-weight: 700; }
.faq-list summary i { color: var(--ink-soft); font-family: sans-serif; font-size: 24px; font-style: normal; font-weight: 400; line-height: 1.1; text-align: center; transition: transform 150ms ease; }
.faq-list details[open] summary i { transform: rotate(45deg); }
.faq-list details > p { display: grid; grid-template-columns: 22px 1fr; gap: 10px; margin: -2px 0 0; padding: 0 0 22px; color: var(--ink-soft); }
.answer-mark { font-family: "Zen Maru Gothic", sans-serif; font-weight: 700; }

.final-cta { text-align: center; }
.final-cta h2 { line-height: 1.75; }
.nowrap { white-space: nowrap; }
.final-cta > .container > p { margin-bottom: 34px; }
.reassurance-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 38px; list-style: none; text-align: left; }
.reassurance-grid li { display: flex; align-items: flex-start; gap: 7px; font-family: "Zen Maru Gothic", sans-serif; font-size: 13px; font-weight: 500; line-height: 1.6; }
.reassurance-grid svg { width: 19px; height: 19px; flex-basis: 19px; margin-top: 1px; }
.cta-rays { position: relative; }
.cta-rays > svg { position: absolute; top: 50%; left: 50%; width: min(400px, 112%); height: auto; fill: none; stroke: var(--accent); stroke-width: 2.7; stroke-linecap: round; transform: translate(-50%, -50%); pointer-events: none; }
.cta-rays .cta-button { position: relative; z-index: 1; }

footer { padding: 34px 20px 104px; color: var(--ink-soft); background: var(--paper); font-size: 13px; line-height: 1.9; text-align: center; }
footer p { margin: 0; }
footer .legal { margin-top: 14px; font-size: 11px; opacity: .8; }

.sticky-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  color: var(--white);
  background: var(--line-green);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms;
}
.sticky-cta.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

.reveal { opacity: 1; transform: translateY(0); }
.reveal-init .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal-init .reveal.is-revealed { opacity: 1; transform: translateY(0); }

/* B: マーカーは表示時に左から「引かれる」(JS無効時は.reveal-init不在で常に100%) */
.reveal-init .reveal .marker { background-size: 0% 100%; transition: background-size .5s ease .4s; }
.reveal-init .reveal.is-revealed .marker { background-size: 100% 100%; }

/* C: 手描き線は表示時に「一筆で描かれる」。stroke-dash*は継承されるため<use>参照先にも効く。
   --lenは各パスの実測長(px)より少し大きい値 */
.wavy-line { --len: 125; }
.down-arrow { --len: 58; }
.curve-arrow { --len: 80; }
.check-list li > svg, .reassurance-grid svg { --len: 64; }
.cta-rays > svg { --len: 140; }
.number-circle svg { --len: 160; }
.reveal-init .reveal :is(.wavy-line, .down-arrow, .curve-arrow, .check-list li > svg, .reassurance-grid svg, .cta-rays > svg, .number-circle svg) {
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
  transition: stroke-dashoffset .6s ease .3s;
}
.reveal-init .reveal.is-revealed :is(.wavy-line, .down-arrow, .curve-arrow, .check-list li > svg, .reassurance-grid svg, .cta-rays > svg, .number-circle svg) {
  stroke-dashoffset: 0;
}
.reveal-init .reveal .cta-rays > svg { transition-delay: .8s; }

/* D: Benefitsは「Before → 矢印が描かれる → After」の紙芝居 */
.comparison:nth-of-type(2) { --cmp: .25s; }
.comparison:nth-of-type(3) { --cmp: .5s; }
.reveal-init .reveal .comparison :is(.before-card, .after-card) { opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .45s ease; }
.reveal-init .reveal .comparison .before-card { transition-delay: calc(var(--cmp, 0s) + .1s); }
.reveal-init .reveal .comparison .curve-arrow { transition-delay: calc(var(--cmp, 0s) + .45s); }
.reveal-init .reveal .comparison .after-card { transition-delay: calc(var(--cmp, 0s) + .65s); }
.reveal-init .reveal.is-revealed .comparison :is(.before-card, .after-card) { opacity: 1; transform: translateY(0); }

@media (min-width: 900px) {
  body { font-size: 16px; }
  .hero { display: grid; align-items: center; padding: 48px 0 74px; }
  .hero-layout { display: grid; grid-template-columns: 1.02fr .98fr; gap: 70px; align-items: center; }
  .hero-stage { height: min(54vh, 420px); min-height: 390px; }
  .hero-copy { text-align: left; }
  .hero-copy .cta-button { margin-left: 0; }
  .hero-copy .microcopy { padding-left: 35px; }
  .service-card { padding: 36px 42px; }
  .comparison { grid-template-columns: 1fr 80px 1fr; align-items: center; }
  .comparison-number { grid-column: 1 / -1; }
  .curve-arrow { margin: 0 auto; transform: none; }
  .work-item { display: grid; grid-template-columns: 1.25fr .75fr; gap: 42px; align-items: center; }
  .work-browser { margin-bottom: 0; }
  .reassurance-grid { gap: 18px 30px; margin-inline: auto; max-width: 490px; }
  .reassurance-grid li { font-size: 15px; }
  .sticky-cta { display: none !important; }
  footer { padding-bottom: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .post-card, .hero-copy, .hero-browser, .slot-label, .browser-frame .slot-line, .hero-copy .marker { animation: none; }
  .post-card, .hero-copy, .slot-label { opacity: 1; }
  .post-card { transform: translate(-50%, -50%) rotate(0); }
  .slot-label { transform: none; }
  .browser-frame .slot-line { stroke-dashoffset: 0; }
  .marker, .hero-copy .marker, .reveal-init .reveal .marker { background-size: 100% 100%; transition: none; }
  .reveal-init .reveal, .reveal-init .reveal.is-revealed { opacity: 1; transform: none; transition: none; }
  .reveal-init .reveal :is(.wavy-line, .down-arrow, .curve-arrow, .check-list li > svg, .reassurance-grid svg, .cta-rays > svg, .number-circle svg) { stroke-dashoffset: 0; transition: none; }
  .reveal-init .reveal .comparison :is(.before-card, .after-card) { opacity: 1; transform: none; transition: none; }
  .cta-button, .sticky-cta, .faq-list summary i { transition: none; }
}
