/* nexca marketing — shared design system (brand: Inter/Archivo, blue→teal) */
:root {
  --paper: #f5f7fa; --surface: #fff; --surface-2: #fbfcfd;
  --ink: #171b20; --ink-soft: #565d68; --ink-faint: #8a919c;
  --line: #e5e8ec; --line-strong: #d5d9df;
  --brand: #3b6bf0; --brand-2: #12a6a6; --brand-strong: #2f58d0;
  --grad: linear-gradient(135deg, #3b6bf0 0%, #12a6a6 100%);
  /* Darker brand gradient for elements carrying WHITE text (buttons, pills):
     the teal end of --grad drops white below WCAG AA, so keep --grad for
     decorative fills and use this for anything with text on top. Deliberately
     theme-independent — the element supplies its own dark ground. */
  --grad-cta: linear-gradient(135deg, #2f58d0 0%, #0c7d7d 100%);
  --shadow: 0 1px 2px rgba(23,27,32,.04), 0 12px 30px -12px rgba(23,27,32,.14);
  --shadow-lift: 0 2px 4px rgba(23,27,32,.05), 0 26px 52px -18px rgba(23,27,32,.22);
  --maxw: 1140px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  --wordmark: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1319; --surface: #171b22; --surface-2: #13171d;
    --ink: #edeff2; --ink-soft: #9ba3af; --ink-faint: #6b7480;
    --line: #262c36; --line-strong: #333a45;
    --brand: #5b86ff; --brand-2: #2bc4c4; --brand-strong: #6e93ff;
    --grad: linear-gradient(135deg, #5b86ff 0%, #2bc4c4 100%);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 14px 34px -14px rgba(0,0,0,.6);
    --shadow-lift: 0 2px 5px rgba(0,0,0,.45), 0 30px 60px -20px rgba(0,0,0,.7);
  }
}
:root[data-theme="dark"] {
  --paper: #0f1319; --surface: #171b22; --surface-2: #13171d;
  --ink: #edeff2; --ink-soft: #9ba3af; --ink-faint: #6b7480;
  --line: #262c36; --line-strong: #333a45;
  --brand: #5b86ff; --brand-2: #2bc4c4; --brand-strong: #6e93ff;
  --grad: linear-gradient(135deg, #5b86ff 0%, #2bc4c4 100%);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 14px 34px -14px rgba(0,0,0,.6);
  --shadow-lift: 0 2px 5px rgba(0,0,0,.45), 0 30px 60px -20px rgba(0,0,0,.7);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.75; letter-spacing: .002em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
img, svg { max-width: 100%; }

.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad); }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { height: 30px; width: auto; display: block; }

header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
/* :not(.btn) so nav-link colouring never overrides a button's own text colour
   (the header CTA is an <a class="btn btn-primary"> living inside .nav-links). */
.nav-links a:not(.btn) { color: var(--ink-soft); font-size: 14px; font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links a:not(.btn)[aria-current="page"] { color: var(--ink); }
@media (max-width: 860px) { .nav-links .hide-sm { display: none; } }

.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-weight: 600; font-size: 14.5px; padding: 11px 20px; border-radius: 9px; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, filter .15s ease, border-color .15s ease, color .15s ease; white-space: nowrap; }
.btn-primary { background: var(--grad-cta); color: #fff; box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--brand) 60%, transparent); }
.btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-lg { padding: 14px 26px; font-size: 15.5px; border-radius: 10px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.hero { padding: 80px 0 42px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } }
h1.headline { font-weight: 800; font-size: clamp(34px, 5.4vw, 56px); line-height: 1.16; letter-spacing: -.02em; margin: 22px 0 0; }
h1.headline .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin: 24px 0 0; font-size: clamp(16px, 1.7vw, 18px); color: var(--ink-soft); max-width: 32em; line-height: 1.9; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--ink-faint); }
.segswitch { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-bottom: 6px; }
.segswitch a { font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 8px; color: var(--ink-soft); }
.segswitch a[aria-current="page"] { background: var(--grad-cta); color: #fff; }

/* transformation / code visuals */
.stage { position: relative; display: grid; gap: 18px; }
.namecard { position: relative; background: linear-gradient(160deg, var(--surface), var(--surface-2)); border: 1px solid var(--line); border-radius: 14px; padding: 26px; box-shadow: var(--shadow-lift); transform: rotate(-1.4deg); aspect-ratio: 91/55; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.namecard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad); }
.namecard::after { content: "名刺"; position: absolute; right: 20px; top: 18px; font-size: 11px; color: var(--ink-faint); letter-spacing: .3em; font-weight: 600; }
.nc-name { font-weight: 800; font-size: 25px; letter-spacing: .02em; }
.nc-name small { display: block; font-size: 11px; color: var(--ink-faint); font-family: var(--mono); letter-spacing: .12em; margin-bottom: 5px; font-weight: 500; }
.nc-role { font-size: 13px; color: var(--ink-soft); margin-top: 3px; }
.nc-meta { font-family: var(--mono); font-size: 11.5px; color: var(--ink-soft); line-height: 1.9; }
.flow { display: flex; align-items: center; gap: 12px; justify-content: center; }
.flow .line { height: 1px; flex: 1; background: var(--line-strong); }
.flow .tag { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); white-space: nowrap; }
.datacard { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 8px 4px; transform: rotate(.8deg); }
.datacard .hd { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px 10px; border-bottom: 1px dashed var(--line-strong); margin-bottom: 6px; }
.datacard .hd span { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--ink-faint); }
.badge-ok { color: var(--brand); font-weight: 700; font-size: 12px; }
.kv { display: grid; grid-template-columns: 92px 1fr; gap: 2px 14px; padding: 6px 16px; font-family: var(--mono); font-size: 13px; }
.kv .k { color: var(--ink-faint); } .kv .v { color: var(--ink); font-weight: 500; }

.codecard { background: #0f1520; border: 1px solid #1e2735; border-radius: 14px; box-shadow: var(--shadow-lift); overflow: hidden; font-family: var(--mono); }
.codecard .bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid #1e2735; }
.codecard .bar i { width: 11px; height: 11px; border-radius: 50%; background: #303b4d; }
.codecard .bar span { margin-left: 8px; color: #6b7688; font-size: 11.5px; }
.codecard pre { margin: 0; padding: 18px 18px 20px; font-size: 12.5px; line-height: 1.85; color: #c7d0dd; overflow-x: auto; }
.codecard .c-key { color: #7aa2ff; } .codecard .c-str { color: #4fd1b5; } .codecard .c-com { color: #5b6577; } .codecard .c-fn { color: #d3a1ff; }

.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 46px; }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 14px 44px; padding: 20px 28px; align-items: center; }
.strip .item { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-soft); font-weight: 500; }
.strip .item b { color: var(--ink); font-weight: 700; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--grad); flex: none; }

section { padding: 84px 0; }
.sec-head { max-width: 42em; margin-bottom: 44px; }
.sec-head h2 { font-weight: 800; font-size: clamp(26px, 3.3vw, 35px); line-height: 1.28; letter-spacing: -.015em; margin-top: 16px; }
.sec-head p { color: var(--ink-soft); margin: 14px 0 0; font-size: 16px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.feat { background: var(--surface); padding: 30px 26px 34px; display: flex; flex-direction: column; gap: 12px; transition: background .18s ease; }
.feat:hover { background: var(--surface-2); }
.feat .n { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); letter-spacing: .08em; }
.feat h3 { font-size: 17.5px; font-weight: 700; letter-spacing: -.005em; }
.feat p { margin: 0; font-size: 14.5px; color: var(--ink-soft); line-height: 1.85; }
.feat .ic { width: 32px; height: 32px; color: var(--brand); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 16px; } }
.step { padding: 30px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.step .num { font-family: var(--wordmark); font-weight: 800; font-size: 15px; color: #fff; background: var(--grad-cta); width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; }
.step h3 { margin: 16px 0 8px; font-size: 17px; font-weight: 700; }
.step p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }

.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 980px) { .pricing { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pricing { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 26px 22px; }
.plan.reco { border-color: var(--brand); box-shadow: var(--shadow-lift); position: relative; }
.plan.reco::before { content: "おすすめ"; position: absolute; top: -11px; left: 22px; background: var(--grad-cta); color: #fff; font-size: 11.5px; font-weight: 700; padding: 3px 12px; border-radius: 20px; }
.plan .pname { font-family: var(--wordmark); font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.plan .ptag { font-size: 12.5px; color: var(--ink-faint); margin-top: 3px; min-height: 34px; }
.plan .price { display: flex; align-items: baseline; gap: 3px; margin: 12px 0 2px; }
.plan .price .yen { font-size: 15px; font-weight: 700; }
.plan .price .amt { font-family: var(--wordmark); font-weight: 800; font-size: 38px; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.plan .price .per { font-size: 13px; color: var(--ink-faint); }
.plan .tax { font-size: 11.5px; color: var(--ink-faint); }
.plan ul { list-style: none; padding: 0; margin: 20px 0 22px; display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 18px; }
.plan li { font-size: 13.5px; color: var(--ink-soft); display: flex; gap: 9px; align-items: flex-start; line-height: 1.6; }
.plan li svg { flex: none; margin-top: 3px; color: var(--brand); }
.plan .foot { margin-top: auto; } .plan .btn { width: 100%; justify-content: center; }

.faq { display: grid; gap: 1px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--line); }
details { background: var(--surface); }
summary { cursor: pointer; list-style: none; padding: 22px 24px; font-weight: 700; font-size: 15.5px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary .plus { color: var(--brand); font-family: var(--mono); font-size: 20px; transition: transform .2s ease; flex: none; }
details[open] summary .plus { transform: rotate(45deg); }
details .a { padding: 0 24px 22px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.85; max-width: 62ch; }

.final { background: var(--ink); color: var(--paper); border-radius: 22px; padding: 62px 40px; text-align: center; position: relative; overflow: hidden; }
.final .halo { position: absolute; inset: -40% -10% auto; height: 320px; background: radial-gradient(60% 100% at 50% 0%, color-mix(in srgb, var(--brand) 38%, transparent), transparent 70%); pointer-events: none; }
.final img.mark { width: 52px; height: 52px; margin: 0 auto 22px; position: relative; display: block; }
.final h2 { font-weight: 800; font-size: clamp(26px, 4vw, 40px); line-height: 1.25; color: inherit; letter-spacing: -.02em; position: relative; }
.final p { color: color-mix(in srgb, currentColor 72%, transparent); margin: 16px auto 0; max-width: 34em; font-size: 16px; position: relative; }
.final .hero-cta { justify-content: center; position: relative; }
.final .btn-ghost { color: inherit; border-color: color-mix(in srgb, currentColor 40%, transparent); }
.final .btn-ghost:hover { border-color: currentColor; }

footer { border-top: 1px solid var(--line); }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding: 44px 0 20px; }
.foot-grid .cols { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); font-weight: 700; margin: 0 0 12px; }
.foot-col a { display: block; color: var(--ink-soft); font-size: 14px; padding: 4px 0; }
.foot-col a:hover { color: var(--ink); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 18px 0 44px; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 12.5px; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.wordmark { font-family: var(--wordmark); font-weight: 800; letter-spacing: -.03em; color: var(--ink); font-size: 22px; }
.brand img.sym { height: 28px; width: 28px; }

/* comparison table */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.cmp { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
.cmp th, .cmp td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp thead th { font-weight: 700; color: var(--ink); background: var(--surface-2); }
.cmp thead th.nx, .cmp td.nx { background: var(--brand-tint); }
.cmp td.nx { font-weight: 700; color: var(--ink); }
.cmp tbody th { font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.cmp .ok { color: var(--brand); font-weight: 700; }
.cmp .no { color: var(--ink-faint); }
.cmp-note { font-size: 11.5px; color: var(--ink-faint); margin-top: 10px; }

/* migration highlight */
.migrate { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .migrate { grid-template-columns: 1fr; gap: 28px; } }
.migrate .from { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.migrate .from span { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 12px; }
