/* =========================
   LP CustomOrder (Scoped)
   Root ID: #lp-customorder
   ========================= */

/* --- Mini reset inside LP only (theme conflict killer) --- */
#lp-customorder,
#lp-customorder * {
  box-sizing: border-box;
}
#lp-customorder img {
  max-width: 100%;
  height: auto;
  display: block;
}
#lp-customorder a {
  color: inherit;
  text-decoration: none;
}
#lp-customorder ul,
#lp-customorder ol {
  margin: 0;
  padding: 0;
}

/* --- Design tokens --- */
#lp-customorder {
  --bg: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --line: rgba(15, 23, 42, 0.12);
  --soft: rgba(15, 23, 42, 0.04);
  --brand: #2563eb;
  --brand2: #0ea5e9;
  --dark: #0b1220;

  --r: 18px;
  --shadow: 0 14px 34px rgba(2, 6, 23, 0.10);
  --shadow2: 0 10px 26px rgba(2, 6, 23, 0.08);

  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.75;
}

/* --- Layout --- */
#lp-customorder .lpco-container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}
#lp-customorder .lpco-narrow {
  width: min(920px, 100%);
  margin-inline: auto;
}
#lp-customorder .lpco-center {
  text-align: center;
}
#lp-customorder .lpco-br-sp {
  display: none;
}

/* --- Topbar --- */
#lp-customorder .lpco-topbar {
  position: sticky;
  top: 0;
  z-index: 999; /* themeに負けにくく */
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
#lp-customorder .lpco-topbar__inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
}
#lp-customorder .lpco-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
#lp-customorder .lpco-logo__dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.12);
}
#lp-customorder .lpco-logo__text {
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
#lp-customorder .lpco-nav {
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}
#lp-customorder .lpco-nav a {
  padding: 8px 10px;
  border-radius: 999px;
}
#lp-customorder .lpco-nav a:hover {
  background: var(--soft);
  color: var(--ink);
}

/* --- Buttons --- */
#lp-customorder .lpco-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 16px;
  border: 1px solid transparent;
  font-weight: 800;
  letter-spacing: 0.01em;
  user-select: none;
  transition: transform 0.08s ease, box-shadow 0.2s ease, background 0.2s ease;
}
#lp-customorder .lpco-btn:active {
  transform: translateY(1px);
}
#lp-customorder .lpco-btn--lg {
  padding: 14px 18px;
  font-size: 16px;
}
#lp-customorder .lpco-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.25);
}
#lp-customorder .lpco-btn--primary:hover {
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.30);
}
#lp-customorder .lpco-btn--ghost {
  background: #fff;
  border-color: var(--line);
}
#lp-customorder .lpco-btn--ghost:hover {
  background: var(--soft);
}
#lp-customorder .lpco-btn--block {
  width: 100%;
}

/* --- Typography --- */
#lp-customorder .lpco-h1 {
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 10px 0 10px;
  text-align: center;
}
#lp-customorder .lpco-h2 {
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.25;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
  text-align: center;
}
#lp-customorder .lpco-h3 {
  font-size: 16px;
  line-height: 1.35;
  margin: 0 0 6px;
}
#lp-customorder .lpco-text,
#lp-customorder .lpco-sub {
  margin: 0;
  color: var(--muted);
}
#lp-customorder .lpco-lead {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

/* --- Hero (strict center 1-column) --- */
#lp-customorder .lpco-hero {
  padding: 54px 0 36px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 260px at 50% 0%, rgba(37, 99, 235, 0.16), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, rgba(14, 165, 233, 0.06), rgba(255, 255, 255, 0));
}
#lp-customorder .lpco-centerBox {
  width: min(760px, 100%);
  margin-inline: auto;
  text-align: center;
  display: grid;
  gap: 14px;
  justify-items: center;
}
#lp-customorder .lpco-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(37, 99, 235, 0.10);
  border: 1px solid rgba(37, 99, 235, 0.18);
  padding: 6px 10px;
  border-radius: 999px;
}
#lp-customorder .lpco-media {
  width: 100%;
  max-width: 720px;
  border-radius: calc(var(--r) + 6px);
  border: 1px solid var(--line);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
#lp-customorder .lpco-media__badge {
  display: inline-block;
  margin: 14px;
  font-size: 12px;
  font-weight: 900;
  color: var(--ink);
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 999px;
}
#lp-customorder .lpco-media__ph {
  height: 320px;
  margin: 0 14px 12px;
  border-radius: var(--r);
  border: 1px dashed rgba(15, 23, 42, 0.25);
  background: linear-gradient(90deg, rgba(2,6,23,0.05), rgba(2,6,23,0.02), rgba(2,6,23,0.05));
}
#lp-customorder .lpco-media__meta {
  padding: 0 14px 16px;
  width: 100%;
}
#lp-customorder .lpco-media__line {
  height: 10px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.08);
  margin-top: 10px;
}
#lp-customorder .lpco-media__line--short {
  width: 62%;
  margin-inline: auto;
}
#lp-customorder .lpco-pains {
  list-style: none;
  display: grid;
  gap: 10px;
  width: 100%;
}
#lp-customorder .lpco-pains li {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 12px 14px;
  box-shadow: var(--shadow2);
  text-align: left;
}
#lp-customorder .lpco-ctaRow {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
#lp-customorder .lpco-note {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

/* Trust */
#lp-customorder .lpco-trust {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
#lp-customorder .lpco-trust__item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  text-align: left;
}
#lp-customorder .lpco-trust__icon {
  width: 14px;
  height: 14px;
  margin-top: 4px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
}
#lp-customorder .lpco-trust__title {
  margin: 0;
  font-weight: 900;
  font-size: 13px;
}
#lp-customorder .lpco-trust__sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
}

/* --- Sections --- */
#lp-customorder .lpco-section {
  padding: 48px 0;
}
#lp-customorder .lpco-section--alt {
  background: rgba(2, 6, 23, 0.03);
}
#lp-customorder .lpco-head {
  margin-bottom: 16px;
  text-align: center;
}

/* Cards */
#lp-customorder .lpco-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
#lp-customorder .lpco-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
  box-shadow: var(--shadow2);
}

/* Inline CTA */
#lp-customorder .lpco-inlineCta {
  margin-top: 16px;
}
#lp-customorder .lpco-inlineCta__box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-radius: calc(var(--r) + 6px);
  border: 1px solid rgba(37, 99, 235, 0.22);
  background:
    radial-gradient(700px 180px at 0% 0%, rgba(37, 99, 235, 0.14), rgba(255,255,255,0)),
    #fff;
  box-shadow: var(--shadow2);
  text-align: left;
}
#lp-customorder .lpco-inlineCta__title {
  margin: 0;
  font-weight: 900;
}
#lp-customorder .lpco-inlineCta__sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* Pricing */
#lp-customorder .lpco-pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
#lp-customorder .lpco-plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: calc(var(--r) + 6px);
  padding: 16px;
  box-shadow: var(--shadow2);
  position: relative;
  display: grid;
  gap: 10px;
}
#lp-customorder .lpco-plan--soft {
  background: rgba(255, 255, 255, 0.80);
}
#lp-customorder .lpco-plan--rec {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 18px 44px rgba(37, 99, 235, 0.18);
  transform: translateY(-2px);
}
#lp-customorder .lpco-plan__tag {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  padding: 6px 10px;
  border-radius: 999px;
}
#lp-customorder .lpco-price {
  margin: 0;
  font-weight: 950;
  font-size: 22px;
  letter-spacing: -0.01em;
}
#lp-customorder .lpco-checks {
  padding-left: 1.1em;
  color: var(--muted);
}
#lp-customorder .lpco-checks li {
  margin: 6px 0;
}

/* Steps */
#lp-customorder .lpco-steps {
  list-style: none;
  display: grid;
  gap: 10px;
}
#lp-customorder .lpco-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 14px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow2);
}
#lp-customorder .lpco-step__n {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 950;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 16px 26px rgba(37, 99, 235, 0.22);
}

/* Notes */
#lp-customorder .lpco-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
  box-shadow: var(--shadow2);
}
#lp-customorder .lpco-list {
  padding-left: 1.2em;
  color: var(--muted);
}
#lp-customorder .lpco-list li {
  margin: 8px 0;
}

/* Case */
#lp-customorder .lpco-case {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: calc(var(--r) + 6px);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}
#lp-customorder .lpco-case__ph {
  height: 180px;
  border-radius: var(--r);
  border: 1px dashed rgba(15, 23, 42, 0.25);
  background: rgba(2, 6, 23, 0.04);
}
#lp-customorder .lpco-link {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}
#lp-customorder .lpco-case__cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Final CTA */
#lp-customorder .lpco-final {
  margin-top: 18px;
  padding: 18px;
  border-radius: calc(var(--r) + 10px);
  background: linear-gradient(135deg, var(--dark), #0b2a6a);
  color: #fff;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
#lp-customorder .lpco-final__t {
  margin: 0;
  font-weight: 950;
}
#lp-customorder .lpco-final__s {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

/* Mobile sticky CTA */
#lp-customorder .lpco-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.88);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
  padding: 10px 0;
  display: none;
}
#lp-customorder .lpco-sticky__inner {
  width: min(920px, calc(100% - 24px));
  margin: 0 auto;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  #lp-customorder .lpco-topbar__inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo cta"
      "nav nav";
    row-gap: 10px;
  }
  #lp-customorder .lpco-nav {
    flex-wrap: wrap;
  }
  #lp-customorder .lpco-cards,
  #lp-customorder .lpco-pricing {
    grid-template-columns: 1fr;
  }
  #lp-customorder .lpco-trust {
    grid-template-columns: 1fr;
  }
  #lp-customorder .lpco-case {
    grid-template-columns: 1fr;
  }
  #lp-customorder .lpco-sticky {
    display: block;
  }
  #lp-customorder .lpco-br-sp {
    display: inline;
  }
}
@media (prefers-reduced-motion: reduce) {
  #lp-customorder .lpco-btn {
    transition: none;
  }
}
