:root {
  --ink: #172235;
  --muted: #5a697c;
  --subtle: #748194;
  --line: #dce5ef;
  --line-strong: #c6d4e4;
  --paper: #ffffff;
  --soft: #f6f9fc;
  --soft-blue: #edf6ff;
  --soft-green: #edf9f3;
  --soft-amber: #fff7e7;
  --blue: #155e9f;
  --blue-dark: #0d3765;
  --green: #087f4f;
  --green-dark: #05603b;
  --amber: #c87513;
  --danger: #b85c1a;
  --shadow: 0 18px 48px rgba(25, 43, 64, 0.1);
  --shadow-soft: 0 12px 32px rgba(25, 43, 64, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    "Noto Sans JP",
    "Yu Gothic",
    "Hiragino Kaku Gothic ProN",
    Meiryo,
    system-ui,
    sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.handoff-icon {
  display: block;
  object-fit: contain;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.page {
  overflow: clip;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fafc 40%, #ffffff 100%);
}

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

.section {
  padding: 72px 0;
}

.section--soft {
  background: var(--soft);
}

.section--blue {
  background: linear-gradient(180deg, #f6fbff 0%, #eef6fd 100%);
}

.section-head {
  display: grid;
  gap: 12px;
  max-width: 800px;
  margin-bottom: 30px;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  margin: 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.35;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: 42px;
  font-weight: 950;
}

h2 {
  margin-bottom: 0;
  font-size: 30px;
  font-weight: 950;
}

h3 {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 900;
}

p {
  margin-bottom: 0;
}

.lead {
  color: var(--muted);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.9;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(220, 229, 239, 0.9);
  backdrop-filter: blur(14px);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: #0f1825;
  font-size: 28px;
  font-weight: 950;
  line-height: 1;
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  color: #29374a;
  font-size: 14px;
  font-weight: 850;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--green);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--paper);
  background: var(--green);
  box-shadow: 0 14px 26px rgba(8, 127, 79, 0.18);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.btn:hover {
  background: var(--green-dark);
  box-shadow: 0 18px 36px rgba(8, 127, 79, 0.24);
  transform: translateY(-1px);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.btn--secondary {
  color: var(--blue-dark);
  background: var(--paper);
  border-color: var(--line-strong);
  box-shadow: none;
}

.btn--secondary:hover {
  color: var(--paper);
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.hero {
  position: relative;
  padding: 56px 0 46px;
  background:
    linear-gradient(90deg, #ffffff 0%, #ffffff 50%, #f2f8fc 100%);
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--line);
  content: "";
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr);
  align-items: center;
  gap: 44px;
}

.hero__copy {
  max-width: 580px;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 7px 12px;
  border: 1px solid #cde8d8;
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--soft-green);
  font-size: 13px;
  font-weight: 900;
}

.hero__label svg {
  width: 16px;
  height: 16px;
}

.hero__copy .lead {
  max-width: 560px;
  color: #34445a;
  font-size: 18px;
  font-weight: 750;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero__actions .btn {
  min-width: 220px;
}

.hero__proofs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.proof {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 8px;
  color: #334357;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
}

.proof svg {
  width: 20px;
  height: 20px;
  color: var(--green);
}

.diagnosis-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.diagnosis-panel__top {
  padding: 22px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(246, 251, 255, 0.95) 0%, #ffffff 100%);
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-title strong {
  font-size: 20px;
  font-weight: 950;
}

.panel-title span {
  padding: 6px 10px;
  border: 1px solid #c4d8ee;
  border-radius: 999px;
  color: var(--blue);
  background: #f3f9ff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.outcome {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 78px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.outcome svg {
  width: 38px;
  height: 38px;
  color: var(--green);
}

.outcome .handoff-icon--outcome {
  width: 38px;
  height: 38px;
}

.outcome strong {
  font-size: 14px;
  font-weight: 950;
  line-height: 1.45;
}

.workflow-preview {
  padding: 20px 22px 22px;
}

.workflow-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 8px;
}

.workflow-step {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 74px;
  padding: 12px 8px;
  border: 1px solid #c9d8e8;
  border-radius: var(--radius);
  color: var(--blue-dark);
  background: #f8fbff;
  text-align: center;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.4;
}

.workflow-step:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -8px;
  width: 8px;
  height: 2px;
  background: #8ca8c4;
  content: "";
}

.tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: #2d3a4e;
  font-size: 12px;
  font-weight: 900;
}

.tool-dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--blue);
}

.tool-dot--chatgpt {
  background: #19a66a;
}

.tool-dot--n8n {
  background: #ea4d6a;
}

.tool-dot--zapier {
  background: #ff6a00;
}

.tool-dot--dify {
  background: linear-gradient(135deg, #155e9f 0%, #16a67a 100%);
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.pain-card,
.failure-card,
.deliverable,
.comparison-card,
.process-step,
.example-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.pain-card {
  min-height: 188px;
  padding: 22px;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border: 1px solid #cde8d8;
  border-radius: var(--radius);
  color: var(--green);
  background: var(--soft-green);
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.pain-card h3 {
  min-height: 48px;
}

.pain-card p {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.75;
}

.failure-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.failure-card {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 126px;
  padding: 18px 12px;
  text-align: center;
}

.failure-card svg {
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  color: var(--danger);
}

.failure-card strong {
  font-size: 13px;
  font-weight: 950;
  line-height: 1.45;
}

.insight {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  max-width: 760px;
  margin: 26px auto 0;
  padding: 18px 22px;
  border: 1px solid #cfdfd7;
  border-radius: var(--radius);
  background: var(--soft-green);
  color: #173f31;
  font-weight: 850;
}

.insight svg {
  width: 48px;
  height: 48px;
  color: var(--green);
}

.offer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 22px;
  align-items: stretch;
}

.offer-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.offer-card h3 {
  font-size: 24px;
}

.offer-card p {
  color: var(--muted);
  font-weight: 650;
}

.offer-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.mini-step {
  min-height: 120px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
}

.mini-step span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-bottom: 10px;
  border-radius: 999px;
  color: var(--paper);
  background: var(--green);
  font-size: 13px;
  font-weight: 950;
}

.mini-step strong {
  display: block;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.5;
}

.deliverables {
  display: grid;
  gap: 12px;
  padding: 24px;
  border: 1px solid #c7e2d2;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #f1fbf6 100%);
}

.deliverables h3 {
  margin-bottom: 2px;
  color: var(--green-dark);
  font-size: 22px;
}

.deliverable {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 12px;
  box-shadow: none;
}

.deliverable svg {
  width: 22px;
  height: 22px;
  color: var(--green);
}

.deliverable strong {
  font-size: 14px;
  font-weight: 950;
}

.deliverables .btn {
  margin-top: 8px;
  width: 100%;
}

.modular {
  display: grid;
  grid-template-columns: minmax(300px, 0.74fr) minmax(0, 1.26fr);
  gap: 28px;
  align-items: center;
}

.module-copy p {
  color: var(--muted);
  font-weight: 650;
}

.module-flow {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.module-nodes {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.module-node {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 106px;
  padding: 14px 8px;
  border: 1px solid #bfd0e2;
  border-radius: var(--radius);
  color: var(--blue-dark);
  background: #f7fbff;
  text-align: center;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.45;
}

.module-node svg {
  width: 30px;
  height: 30px;
  margin-bottom: 8px;
}

.module-node:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -8px;
  width: 8px;
  height: 2px;
  background: #8ca8c4;
  content: "";
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #cde8d8;
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--soft-green);
  font-size: 12px;
  font-weight: 900;
}

.tag svg {
  width: 14px;
  height: 14px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.comparison-card {
  overflow: hidden;
}

.comparison-card h3 {
  margin: 0;
  padding: 14px 18px;
  color: #3a4657;
  background: #eef2f6;
  text-align: center;
  font-size: 17px;
}

.comparison-card--loveall h3 {
  color: var(--paper);
  background: var(--green);
}

.comparison-list {
  display: grid;
  gap: 12px;
  padding: 22px;
  margin: 0;
  list-style: none;
}

.comparison-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.comparison-list svg {
  width: 22px;
  height: 22px;
  color: #7b8796;
}

.comparison-card--loveall .comparison-list svg {
  color: var(--green);
}

.comparison-arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: var(--soft-blue);
}

.comparison-arrow svg {
  width: 24px;
  height: 24px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.process-step {
  position: relative;
  min-height: 154px;
  padding: 18px 14px;
  text-align: center;
  box-shadow: none;
}

.process-step:not(:last-child)::after {
  position: absolute;
  top: 48px;
  right: -12px;
  width: 12px;
  height: 2px;
  background: #9fb2c6;
  content: "";
}

.process-num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: 0 auto 10px;
  border-radius: 999px;
  color: var(--paper);
  background: var(--blue);
  font-size: 13px;
  font-weight: 950;
}

.process-step svg {
  width: 30px;
  height: 30px;
  margin: 0 auto 10px;
  color: var(--blue);
}

.process-step .handoff-icon--process {
  width: 30px;
  height: 30px;
  margin: 0 auto 10px;
}

.process-step strong {
  display: block;
  font-size: 14px;
  font-weight: 950;
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.example-card {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  min-height: 84px;
  padding: 16px;
  align-items: center;
  box-shadow: none;
}

.example-card svg {
  width: 24px;
  height: 24px;
  color: var(--blue);
}

.example-card strong {
  font-size: 14px;
  font-weight: 900;
  line-height: 1.5;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.faq-item {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.faq-item h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

.faq-item p {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.final-cta {
  padding: 42px;
  border: 1px solid #c7e2d2;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, #ffffff 0%, #f1fbf6 100%);
  box-shadow: var(--shadow);
}

.final-cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: center;
}

.final-cta h2 {
  margin-bottom: 12px;
}

.final-cta p {
  color: var(--muted);
  font-weight: 700;
}

.footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  background: #f8fafc;
  font-size: 13px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

@media (max-width: 1100px) {
  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 28px;
  }

  .hero__grid,
  .offer-grid,
  .modular {
    grid-template-columns: 1fr;
  }

  .hero__copy {
    max-width: 760px;
  }

  .diagnosis-panel {
    max-width: 760px;
  }

  .pain-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .failure-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .process-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .process-step:nth-child(3)::after {
    content: none;
  }

  .examples-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  body {
    font-size: 15px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 25px;
  }

  .section {
    padding: 56px 0;
  }

  .topbar__inner {
    min-height: 60px;
  }

  .brand {
    font-size: 23px;
  }

  .nav {
    display: none;
  }

  .topbar .btn {
    min-height: 42px;
    padding: 10px 14px;
    font-size: 13px;
  }

  .hero {
    padding: 38px 0 36px;
    background: #ffffff;
  }

  .hero__grid {
    gap: 30px;
  }

  .hero__copy .lead {
    font-size: 16px;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero__actions .btn {
    width: 100%;
    min-width: 0;
  }

  .hero__proofs {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .outcome-grid,
  .offer-steps,
  .faq-list {
    grid-template-columns: 1fr;
  }

  .module-nodes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .module-node:not(:last-child)::after {
    content: none;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .comparison-arrow {
    transform: rotate(90deg);
    margin-inline: auto;
  }

  .final-cta {
    padding: 28px;
  }

  .final-cta__grid {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    display: grid;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 23px;
  }

  .lead {
    font-size: 15px;
  }

  .hero__label {
    font-size: 12px;
  }

  .diagnosis-panel__top,
  .workflow-preview,
  .offer-card,
  .deliverables,
  .module-flow {
    padding: 18px;
  }

  .panel-title {
    display: grid;
  }

  .panel-title span {
    justify-self: start;
  }

  .pain-grid,
  .failure-grid,
  .workflow-track,
  .process-grid,
  .examples-grid {
    grid-template-columns: 1fr;
  }

  .workflow-step:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -8px;
    width: 2px;
    height: 8px;
  }

  .module-nodes {
    grid-template-columns: 1fr;
  }

  .pain-card {
    min-height: 0;
  }

  .pain-card h3 {
    min-height: 0;
  }

  .process-step:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -12px;
    width: 2px;
    height: 12px;
  }

  .topbar .btn {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
