:root {
  --ink: #171a17;
  --muted: #5d675e;
  --paper: #efe8d8;
  --cream: #fffdf7;
  --line: #06c755;
  --line-dark: #049a41;
  --font: "IBM Plex Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  --display: "Outfit", "IBM Plex Sans JP", "Yu Gothic UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 8% -8%, #f7f1df, transparent 52%),
    linear-gradient(180deg, #f4efe3 0%, #e7decc 100%);
}
a { color: inherit; }
button, a.lp-btn { font: inherit; }
h1, h2, h3, p { margin: 0; }

.lp-nav {
  width: min(1120px, calc(100% - 32px));
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 18px;
  background: var(--cream);
  border-radius: 28px;
  border: 1px solid rgba(23, 26, 23, 0.06);
}
.lp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}
.lp-brand strong {
  display: block;
  font-family: var(--display);
  font-size: 18px;
}
.lp-brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.lp-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #13d866, #06c755 55%, #049a41);
  position: relative;
}
.lp-mark::before,
.lp-mark::after {
  content: "";
  position: absolute;
  top: 11px;
  height: 18px;
  border-radius: 4px;
  background: #fff;
}
.lp-mark::before { left: 8px; width: 10px; }
.lp-mark::after { left: 21px; width: 11px; opacity: .65; }
.lp-nav nav {
  display: flex;
  gap: 18px;
  font-size: 13px;
  font-weight: 600;
}
.lp-nav nav a { text-decoration: none; color: var(--muted); }
.lp-nav nav a:hover { color: var(--ink); }

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(23, 26, 23, 0.12);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.lp-btn.primary {
  background: var(--line);
  border-color: transparent;
  color: #fff;
}
.lp-btn.primary:hover { background: var(--line-dark); }
.lp-btn.ghost { background: transparent; }
.lp-btn:disabled { opacity: .6; cursor: wait; }

.lp-hero {
  width: min(1120px, calc(100% - 32px));
  margin: 36px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 40px;
  align-items: center;
}
.lp-kicker {
  color: var(--line-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.lp-hero h1 {
  margin: 10px 0 16px;
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.lp-lead {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  max-width: 36em;
}
.lp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.lp-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.lp-note[hidden] { display: none; }

.lp-phone {
  background: var(--cream);
  border-radius: 28px;
  padding: 16px 16px 20px;
  border: 1px solid rgba(23, 26, 23, 0.06);
}
.lp-phone-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.lp-phone-chrome span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d8d2c4;
}
.lp-phone-chrome strong { margin-left: 6px; color: var(--ink); }
.lp-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 168px;
  gap: 10px;
  overflow: hidden;
}
.lp-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(23, 26, 23, 0.06);
}
.lp-card-img { height: 108px; }
.lp-card-img.i1 { background: linear-gradient(160deg, #e8782e, #b43e20); }
.lp-card-img.i2 { background: linear-gradient(160deg, #24a69a, #f4c63d); }
.lp-card-img.i3 { background: linear-gradient(160deg, #56826a, #78a894); }
.lp-card-date {
  margin: 8px 10px 0;
  color: #1a6ea8;
  font-size: 10px;
  font-weight: 700;
}
.lp-card h2 {
  margin: 4px 10px 0;
  font-size: 13px;
  line-height: 1.4;
}
.lp-card p {
  margin: 6px 10px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  min-height: 2.9em;
}
.lp-card span {
  display: block;
  margin-top: 10px;
  padding: 8px;
  text-align: center;
  background: var(--line);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.lp-desk,
.lp-pain,
.lp-compare,
.lp-flow,
.lp-scope,
.lp-faq,
.lp-end {
  width: min(1120px, calc(100% - 32px));
  margin: 72px auto 0;
}
.lp-desk h2,
.lp-pain h2,
.lp-compare h2,
.lp-flow h2,
.lp-scope h2,
.lp-faq h2,
.lp-end h2 {
  font-size: 26px;
  margin-bottom: 18px;
}
.lp-desk-copy {
  max-width: 40em;
  margin-bottom: 18px;
}
.lp-desk-copy p {
  color: var(--muted);
  line-height: 1.8;
}
.lp-desk {
  width: min(1180px, calc(100% - 24px));
}
.lp-live {
  --hero-ratio: 20 / 13;
  --title-lines: 2;
  --desc-lines: 3;
  --bubble-btn: #06c755;
  padding: 16px;
  background: var(--cream);
  border-radius: 24px;
  border: 1px solid rgba(23, 26, 23, 0.06);
}
.lp-desk-label {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.lp-desk-caption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}
.lp-live .vboard {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lp-live .vboard-row {
  display: grid;
  grid-template-columns: 168px 1fr;
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(23, 26, 23, 0.05);
  min-height: 112px;
  overflow: visible;
}
.lp-live .vboard-row.selected { box-shadow: 0 0 0 2px rgba(6, 199, 85, 0.28); }
.lp-live .vboard-row.stock-block .vboard-time { background: #d9e3ea; }
.lp-live .vboard-time.column-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  margin: 0;
  padding: 12px 14px;
  background: #e8f8ee;
  border-right: 1px solid rgba(23, 26, 23, 0.06);
}
.lp-live .slot-head-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  gap: 6px;
}
.lp-live .column-head b { font-size: 14px; }
.lp-live .column-head span,
.lp-live .lp-slot-meta {
  color: var(--muted);
  font-size: 12px;
}
.lp-live .slot-alt-line {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: #245a8a;
  line-height: 1.4;
}
.lp-live .lp-slot-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  margin-top: 8px;
}
.lp-live .lp-slot-btn {
  width: 100%;
  min-height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.lp-live .lp-slot-btn[data-lp-json] {
  background: var(--line);
  color: #fff;
}
.lp-live .vboard-cards.column-cards {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: stretch;
  align-self: stretch;
  gap: 6px;
  overflow: visible;
  padding: 10px;
  min-height: 140px;
}
.lp-live .bubble {
  display: flex;
  flex-direction: column;
  width: 100px;
  flex: 0 0 100px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(20, 40, 50, 0.14);
  cursor: grab;
  position: relative;
  user-select: none;
  touch-action: none;
}
.lp-live .bubble:active { cursor: grabbing; }
.lp-live .bubble-index {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 2;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(23, 26, 23, 0.72);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 8px;
  font-family: var(--display);
}
.lp-live .bubble-hero-frame {
  width: 100%;
  aspect-ratio: var(--hero-ratio);
  overflow: hidden;
  background: #d7dde1;
}
.lp-live .bubble-hero {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lp-live .bubble-body {
  flex: 1;
  padding: 5px 5px 2px;
}
.lp-live .bubble-title {
  font-size: 9px;
  font-weight: 700;
  line-height: 1.3;
  word-break: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: var(--title-lines);
}
.lp-live .bubble-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 4px;
}
.lp-live .chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 1px 4px;
  font-size: 7px;
  font-weight: 700;
  line-height: 1.3;
}
.lp-live .chip.date { background: #eef6ff; color: #245a8a; }
.lp-live .chip.audience { background: #f3efe2; color: #6a5430; }
.lp-live .chip.audience.parenting { background: #fff1e4; color: #9a4d12; }
.lp-live .chip.audience.senior { background: #f0e9ff; color: #5a3d8a; }
.lp-live .chip.audience.general { background: #eaf6ee; color: #2c6b3f; }
.lp-live .bubble-desc {
  margin-top: 3px;
  font-size: 8px;
  color: #666;
  line-height: 1.4;
  word-break: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: var(--desc-lines);
}
.lp-live .bubble-footer {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 3px 5px 6px;
}
.lp-live .bubble-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--bubble-btn);
  color: #fff;
  border-radius: 4px;
  padding: 4px 2px;
  font-weight: 700;
  font-size: 8px;
}
.lp-live .vboard.is-dragging .vboard-row {
  box-shadow: inset 0 0 0 2px rgba(6, 199, 85, 0.22);
}
.lp-live .vboard-cards.column-cards:empty {
  outline: 1px dashed #d4cdc0;
  border-radius: 12px;
  background: rgba(255, 253, 247, 0.7);
  min-height: 140px;
}
.lp-live .vboard-cards.column-cards:empty::after {
  content: attr(data-empty);
  display: block;
  padding: 18px 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.lp-live .sortable-ghost { opacity: 0.45; }
.lp-live .sortable-drag { cursor: grabbing; }
@media (max-width: 720px) {
  .lp-live .vboard-row { grid-template-columns: 1fr; }
  .lp-live .vboard-time.column-head { border-right: 0; border-bottom: 1px solid rgba(23, 26, 23, 0.06); }
  .lp-live .bubble {
    width: 100px;
    flex: 0 0 100px;
  }
}
.lp-pain ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.lp-pain li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px 14px;
  padding: 18px 20px;
  background: var(--cream);
  border-radius: 20px;
}
.lp-pain li::before {
  grid-row: 1 / span 2;
  content: counter(pain);
  counter-increment: pain;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #171a17;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.lp-pain ol { counter-reset: pain; }
.lp-pain strong { font-size: 16px; }
.lp-pain span { color: var(--muted); font-size: 14px; grid-column: 2; }

.lp-compare-head p {
  color: var(--muted);
  line-height: 1.7;
  max-width: 40em;
  margin: -8px 0 22px;
}
.lp-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 16px;
}
.lp-plan {
  padding: 22px;
  border-radius: 24px;
  background: var(--cream);
}
.lp-plan.is-paid {
  background: #171a17;
  color: #f4efe3;
}
.lp-plan-name { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; }
.lp-plan-price {
  margin: 8px 0 4px;
  font-family: var(--display);
  font-size: 32px;
}
.lp-plan-price span { font-size: 14px; font-family: var(--font); font-weight: 600; }
.lp-plan-who { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.lp-plan.is-paid .lp-plan-who { color: #b8b2a4; }
.lp-plan ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 14px;
}
.lp-plan li.no { color: #9a3b2c; }
.lp-plan.is-paid li.no { color: #e0a89c; }

.lp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.lp-steps article {
  padding: 20px;
  background: var(--cream);
  border-radius: 20px;
}
.lp-steps article > p:first-child {
  font-family: var(--display);
  font-size: 28px;
  color: var(--line-dark);
}
.lp-steps h3 { margin: 6px 0 8px; font-size: 18px; }
.lp-steps article p:last-child { color: var(--muted); font-size: 14px; line-height: 1.7; }

.lp-scope {
  padding: 24px;
  background: #f7f4ec;
  border-radius: 24px;
}
.lp-scope p { color: var(--muted); line-height: 1.85; font-size: 14px; }

.lp-faq details {
  padding: 16px 0;
  border-bottom: 1px solid rgba(23, 26, 23, 0.1);
}
.lp-faq summary {
  font-weight: 700;
  cursor: pointer;
}
.lp-faq details p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.7;
}

.lp-end {
  text-align: center;
  padding: 36px 20px 8px;
}
.lp-end h2 { margin-bottom: 16px; }

.lp-foot {
  width: min(1120px, calc(100% - 32px));
  margin: 56px auto 40px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.lp-sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(23, 26, 23, 0.45);
}
.lp-sheet[hidden] { display: none; }
.lp-sheet-panel {
  width: min(920px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 20px;
  background: var(--cream);
  border-radius: 24px;
}
.lp-sheet-panel header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.lp-sheet-panel h3 { font-size: 20px; }
.lp-sheet-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.lp-sheet-alt {
  color: var(--muted);
  margin: 8px 0 16px;
  font-size: 13px;
  line-height: 1.6;
}
.lp-preview-stage {
  min-width: 0;
  overflow: hidden;
  padding: 16px;
  background: linear-gradient(180deg, #7eafcb 0%, #5f95b5 100%);
  border-radius: 18px;
}
.lp-preview-rail {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 10px;
}
.lp-preview-rail .bubble {
  display: flex;
  flex-direction: column;
  width: 220px;
  flex: 0 0 220px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(20, 40, 50, 0.16);
  cursor: default;
  position: relative;
  user-select: none;
}
.lp-preview-rail .bubble-index {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(23, 26, 23, 0.72);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-family: var(--display);
}
.lp-preview-rail .bubble-hero-frame {
  width: 100%;
  aspect-ratio: 20 / 13;
  overflow: hidden;
  background: #d7dde1;
}
.lp-preview-rail .bubble-hero {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lp-preview-rail .bubble-body { flex: 1; padding: 12px 12px 6px; }
.lp-preview-rail .bubble-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 2;
}
.lp-preview-rail .bubble-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.lp-preview-rail .chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
}
.lp-preview-rail .chip.date { background: #eef6ff; color: #245a8a; }
.lp-preview-rail .chip.audience.parenting { background: #fff1e4; color: #9a4d12; }
.lp-preview-rail .chip.audience.senior { background: #f0e9ff; color: #5a3d8a; }
.lp-preview-rail .chip.audience.general { background: #eaf6ee; color: #2c6b3f; }
.lp-preview-rail .bubble-desc {
  margin-top: 6px;
  font-size: 12px;
  color: #666;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 3;
}
.lp-preview-rail .bubble-footer { padding: 6px 10px 12px; }
.lp-preview-rail .bubble-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--line);
  color: #fff;
  border-radius: 8px;
  padding: 8px 6px;
  font-weight: 700;
  font-size: 13px;
}
.lp-preview-empty {
  color: #fff;
  padding: 36px 12px;
  text-align: center;
  font-weight: 600;
}
.lp-json-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.lp-json-copied { color: var(--line-dark); font-size: 13px; font-weight: 700; }
#lpJsonOut {
  margin: 0;
  padding: 14px;
  background: #fff;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.55;
  overflow: auto;
  max-height: 48vh;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 860px) {
  .lp-nav nav { display: none; }
  .lp-hero,
  .lp-split,
  .lp-steps { grid-template-columns: 1fr; }
  .lp-rail { grid-auto-columns: 46%; }
}
