/* ============================================================
   StepLab — デモLP v2（エディトリアル・リデザイン）
   設計根拠: 08_最先端デザイン調査_2026-08-24.md
   紙色×墨×エレクトリックブルー / 巨大タイポ / グレイン / マーキー / Bento
   ============================================================ */

:root {
  --paper: #f4f1e8;
  --paper-soft: #faf8f2;
  --ink: #16140f;
  --ink-soft: #67614f;
  --accent: #3b2ff5;
  --line: rgba(22, 20, 15, 0.16);
  --radius: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-en: "Space Grotesk", "Noto Sans JP", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font-jp);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.9;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { max-width: 100%; display: block; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.container--narrow { max-width: 820px; }
.sp-only { display: none; }

/* ---------- グレイン ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 共通パーツ ---------- */
.meta-label {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.meta-label--light { color: rgba(244, 241, 232, 0.6); }
.sec-title {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 900;
  font-feature-settings: "palt";
  letter-spacing: 0.02em;
  line-height: 1.35;
  margin-bottom: clamp(36px, 6vw, 64px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 700;
  font-size: 15.5px;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn--pill {
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  padding: 18px 40px;
}
.btn--pill:hover { background: var(--accent); transform: translateY(-2px); }
.btn--invert { background: var(--paper); color: var(--ink); }
.btn--invert:hover { background: var(--accent); color: #fff; }
.btn--line {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 16px 32px;
}
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--small { padding: 11px 24px; font-size: 13.5px; }
.btn--large { padding: 22px 56px; font-size: 17px; }
.btn--full { width: 100%; }
.btn__arrow { font-family: var(--font-en); transition: transform 0.35s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(5px); }

.micro-copy {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-top: 14px;
}
.micro-copy--light { color: rgba(244, 241, 232, 0.65); }

/* ---------- 出現アニメーション ---------- */
.js-reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js-reveal.in { opacity: 1; transform: none; }

/* マスク型テキスト出現（[data-words] をJSで単語分割） */
.w { display: inline-block; overflow: hidden; vertical-align: bottom; }
.w > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 55ms);
}
.words-in .w > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js-reveal, .w > span { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- ヘッダー ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  gap: 30px;
}
.header__logo {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.02em;
  margin-right: auto;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.header__logo span { color: var(--accent); }
.header__logo em { font-size: 10.5px; font-weight: 500; color: var(--ink-soft); margin-left: 10px; letter-spacing: 0.14em; }
.header__nav { display: flex; gap: 26px; font-size: 13.5px; font-weight: 500; }
.header__nav a { position: relative; padding: 4px 0; }
.header__nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.header__nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  padding: clamp(150px, 20vh, 210px) 0 0;
  overflow: clip;
}
.hero__orbs { position: absolute; inset: 0; pointer-events: none; }
.hero__orbs i {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
}
.hero__orbs i:nth-child(1) { width: 460px; height: 460px; right: -120px; top: -80px; background: rgba(59, 47, 245, 0.18); }
.hero__orbs i:nth-child(2) { width: 380px; height: 380px; left: -140px; bottom: 40px; background: rgba(255, 176, 32, 0.2); }
.hero .container { position: relative; }
.hero__title {
  font-size: clamp(36px, 6.4vw, 76px);
  font-weight: 900;
  font-feature-settings: "palt";
  letter-spacing: 0.01em;
  line-height: 1.28;
  margin-bottom: 28px;
}
.hero__lead {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--ink-soft);
  margin-bottom: 40px;
}
.hero__cta { margin-bottom: clamp(48px, 7vw, 76px); }
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 720px;
}
.hero__stats li {
  border-top: 1px solid var(--ink);
  padding-top: 16px;
}
.hero__stats strong {
  display: block;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hero__stats small { font-size: 0.42em; font-weight: 500; margin-left: 3px; color: var(--ink-soft); }
.hero__stats span { font-size: 12.5px; letter-spacing: 0.08em; color: var(--ink-soft); }
.hero__ghost {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(90px, 16vw, 230px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(22, 20, 15, 0.22);
  user-select: none;
  margin: clamp(24px, 4vw, 48px) 0 -0.14em -0.03em;
}

/* ---------- マーキー ---------- */
.marquee {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding: 15px 0;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee__track span {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.18em;
  white-space: nowrap;
  padding-right: 12px;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- セクション共通の余白 ---------- */
.pain, .features, .flow, .price, .voice, .faq { padding-block: clamp(88px, 12vw, 150px); }

/* ---------- 悩み共感 ---------- */
.pain { background: var(--paper-soft); }
.pain__list { max-width: 820px; margin-bottom: clamp(44px, 6vw, 64px); }
.pain__list li {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 26px 8px;
  border-top: 1px solid var(--line);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 500;
}
.pain__list li:last-child { border-bottom: 1px solid var(--line); }
.pain__list strong { font-weight: 900; }
.pain__num {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 13px;
  color: var(--accent);
  flex-shrink: 0;
}
.pain__answer {
  font-size: clamp(20px, 3.2vw, 32px);
  font-weight: 900;
  font-feature-settings: "palt";
  line-height: 1.7;
}
.pain__answer em {
  color: var(--accent);
  background: linear-gradient(transparent 88%, var(--accent) 88%);
}

/* ---------- Bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.bento__card {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  position: relative;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease);
}
.bento__card:hover { transform: translateY(-6px); border-color: var(--ink); }
.bento__card--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}
.bento__num {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--accent);
  display: block;
  margin-bottom: 18px;
}
.bento__card--wide .bento__num { grid-column: 1 / -1; margin-bottom: 0; }
.bento__card h3 {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 900;
  font-feature-settings: "palt";
  line-height: 1.5;
  margin-bottom: 14px;
}
.bento__card p { font-size: 15px; color: var(--ink-soft); }
.bento__visual { min-width: 0; }
.chat { display: grid; gap: 10px; }
.chat__msg {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px 16px 16px 4px;
  padding: 12px 18px;
  font-size: 13.5px;
  max-width: 88%;
  justify-self: start;
}
.chat__msg--me {
  background: var(--ink);
  color: var(--paper);
  border-radius: 16px 16px 4px 16px;
  justify-self: end;
}

/* ---------- 流れ ---------- */
.flow { background: var(--paper-soft); }
.flow__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: step;
}
.flow-step { border-top: 1px solid var(--ink); padding-top: 20px; }
.flow-step__num {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(34px, 4vw, 48px);
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px var(--ink);
  display: block;
  line-height: 1;
  margin-bottom: 16px;
}
.flow-step h3 { font-size: 18px; font-weight: 900; margin-bottom: 10px; }
.flow-step p { font-size: 13.5px; color: var(--ink-soft); }

/* ---------- 料金 ---------- */
.price__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 440px));
  justify-content: center;
  gap: 24px;
  align-items: stretch;
}
.price-card {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(32px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card--main {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.price-card__badge {
  position: absolute;
  top: -15px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 20px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.price-card__name { font-size: 21px; font-weight: 900; }
.price-card__for { font-size: 13px; color: var(--ink-soft); margin-bottom: 22px; }
.price-card--main .price-card__for { color: rgba(244, 241, 232, 0.6); }
.price-card__price {
  font-family: var(--font-en);
  font-size: clamp(40px, 4.6vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 26px;
}
.price-card__price .yen { font-size: 0.5em; margin-right: 2px; }
.price-card__price .unit { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--ink-soft); margin-left: 6px; font-family: var(--font-jp); }
.price-card--main .price-card__price .unit { color: rgba(244, 241, 232, 0.6); }
.price-card__list { flex: 1; margin-bottom: 30px; }
.price-card__list li {
  padding: 11px 0 11px 30px;
  position: relative;
  font-size: 14.5px;
  border-top: 1px solid var(--line);
}
.price-card--main .price-card__list li { border-top-color: rgba(244, 241, 232, 0.14); }
.price-card__list li::before {
  content: "✓";
  position: absolute;
  left: 4px;
  font-weight: 900;
  color: var(--accent);
}
.price-card--main .price-card__list li::before { color: #8f86ff; }
.price-card__list li.is-none { color: rgba(22, 20, 15, 0.34); }
.price-card__list li.is-none::before { content: "—"; color: rgba(22, 20, 15, 0.3); }
.price-card--main .btn--pill { background: var(--paper); color: var(--ink); }
.price-card--main .btn--pill:hover { background: var(--accent); color: #fff; }
.price__note { text-align: center; font-size: 13px; color: var(--ink-soft); margin-top: 32px; }

/* ---------- 声 ---------- */
.voice { background: var(--paper-soft); }
.voice__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.voice-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease);
}
.voice-card:hover { transform: translateY(-6px); border-color: var(--ink); }
.voice-card__body { font-size: 14.5px; color: var(--ink-soft); flex: 1; }
.voice-card__head { display: flex; align-items: center; gap: 14px; }
.voice-card__avatar {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.voice-card__name { font-weight: 700; font-size: 13.5px; }
.voice-card__job { font-size: 12px; color: var(--accent); font-weight: 500; }
.voice__note { text-align: center; font-size: 12px; color: var(--ink-soft); opacity: 0.7; margin-top: 30px; }

/* ---------- FAQ ---------- */
.faq__list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item dt button {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: inherit;
  font-size: clamp(15.5px, 1.8vw, 17.5px);
  font-weight: 700;
  color: var(--ink);
  padding: 26px 56px 26px 4px;
  cursor: pointer;
  position: relative;
  line-height: 1.6;
}
.faq-item__icon {
  position: absolute;
  right: 14px; top: 50%;
  width: 15px; height: 15px;
  transform: translateY(-50%);
}
.faq-item__icon::before, .faq-item__icon::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: transform 0.35s var(--ease);
}
.faq-item__icon::before { left: 0; top: 7px; width: 15px; height: 1.5px; }
.faq-item__icon::after { left: 7px; top: 0; width: 1.5px; height: 15px; }
.faq-item.is-open .faq-item__icon::after { transform: scaleY(0); }
.faq-item dd { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-item dd p { padding: 0 4px 26px; font-size: 14.5px; color: var(--ink-soft); max-width: 680px; }

/* ---------- 最終CTA ---------- */
.cta {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding-block: clamp(96px, 13vw, 160px);
  position: relative;
  overflow: clip;
}
.cta::before {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: rgba(59, 47, 245, 0.32);
  filter: blur(130px);
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}
.cta .container { position: relative; }
.cta__title {
  font-size: clamp(30px, 5.4vw, 58px);
  font-weight: 900;
  font-feature-settings: "palt";
  line-height: 1.4;
  margin-bottom: 20px;
}
.cta__lead { color: rgba(244, 241, 232, 0.72); margin-bottom: 44px; font-size: 15.5px; }

/* ---------- フッター ---------- */
.footer { background: var(--ink); color: rgba(244, 241, 232, 0.6); border-top: 1px solid rgba(244, 241, 232, 0.12); padding: 52px 0; }
.footer__inner { text-align: center; display: grid; gap: 14px; }
.footer__logo { font-family: var(--font-en); font-weight: 700; font-size: 18px; color: var(--paper); }
.footer__logo span { color: #8f86ff; }
.footer__demo { font-size: 12px; }
.footer__copy { font-family: var(--font-en); font-size: 12px; opacity: 0.55; }

/* ---------- 追従CTA（スマホ） ---------- */
.fixed-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.4s var(--ease);
  z-index: 90;
  display: none;
}
.fixed-cta.is-shown { transform: none; }

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr; }
  .bento__card--wide { grid-template-columns: 1fr; }
  .flow__list { grid-template-columns: repeat(2, 1fr); }
  .voice__grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .price__grid { grid-template-columns: minmax(0, 460px); }
  .price-card--main { order: -1; }
}

@media (max-width: 640px) {
  .sp-only { display: inline; }
  .pc-only { display: none; }
  .header__nav { display: none; }
  .hero { padding-top: 120px; }
  .hero__stats { gap: 16px; }
  .flow__list { grid-template-columns: 1fr; gap: 22px; }
  .fixed-cta { display: block; }
  .cta { padding-bottom: 140px; }
  .btn--large { padding: 18px 36px; font-size: 15.5px; }
}
