:root {
  --brand: #56a559;
  --brand-dark: #153e2b;
  --brand-deep: #0e2f20;
  --brand-soft: #f3f7f1;
  --ink: #21222d;
  --muted: #667085;
  --line: #dfe8df;
  --white: #fff;
  --radius: 20px;
  --shadow: 0 18px 48px rgba(22, 62, 43, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.shell { width: min(100% - 36px, 1160px); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; transform: translateY(-150%); background: #fff; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(223, 232, 223, .9);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}
.brand span, .footer-brand span { display: grid; line-height: 1.2; }
.brand strong { font-size: 15px; letter-spacing: -.02em; }
.brand small { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.header-link { min-height: 44px; display: inline-flex; align-items: center; color: var(--brand-dark); font-size: 13px; font-weight: 800; text-decoration: none; }

.hero {
  overflow: hidden;
  padding: 42px 0 52px;
  background:
    radial-gradient(circle at 90% 5%, rgba(86, 165, 89, .18), transparent 32%),
    linear-gradient(180deg, #fbfdfb 0%, #f3f7f1 100%);
}
.hero-grid { display: grid; gap: 34px; }
.eyebrow { margin: 0 0 10px; color: var(--brand); font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; color: var(--brand-dark); font-size: clamp(3.3rem, 17vw, 6.4rem); line-height: .95; letter-spacing: -.065em; }
.hero-title { max-width: 16em; margin: 20px 0 0; color: var(--ink); font-size: clamp(1.65rem, 7.3vw, 3.55rem); font-weight: 850; line-height: 1.28; letter-spacing: -.045em; }
.hero-lead { margin: 18px 0 0; color: #475467; font-size: 16px; line-height: 1.8; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 13px 20px; border: 0; border-radius: 999px; font-weight: 850; text-align: center; text-decoration: none; cursor: pointer; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.button:active { transform: scale(.985); }
.button-primary { background: var(--brand); color: #fff; box-shadow: 0 12px 28px rgba(86, 165, 89, .3); }
.button-primary:hover { background: #478f4a; }
.button-secondary { border: 1px solid #c8d8c8; background: #fff; color: var(--brand-dark); }
.microcopy { margin: 20px 0 0; color: var(--muted); font-size: 13px; }
.hero-visual { position: relative; }
.hero-device-visual { background: transparent; }
.hero-device-visual img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; }
.hero-flow { position: relative; z-index: 1; margin: -13px 12px 0; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 12px 10px; border: 1px solid #dae7da; border-radius: 14px; background: rgba(255, 255, 255, .96); box-shadow: 0 12px 30px rgba(21, 62, 43, .12); }
.hero-flow span { color: var(--brand-dark); font-size: 10px; font-weight: 850; white-space: nowrap; }
.hero-flow i { color: var(--brand); font-style: normal; }

.section { padding: 74px 0; }
.section-heading { margin-bottom: 28px; }
.section-heading h2, .workflow-heading h2, .final-cta h2 { margin: 0; font-size: clamp(2rem, 9vw, 4.15rem); line-height: 1.16; letter-spacing: -.045em; }
.section-heading > p:last-child { margin: 12px 0 0; color: var(--muted); }
.stage-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.stage-list li { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: start; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.stage-list li > b { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand-dark); font-size: 13px; }
.stage-list h3 { margin: 0; font-size: 17px; line-height: 1.35; }
.stage-list p { margin: 5px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.stage-list li > span { grid-column: 2; color: var(--brand); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }

.workflow-section { position: relative; overflow: hidden; padding: 74px 0; background: var(--brand-soft); }
.workflow-section::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--brand); }
.workflow-heading { margin-bottom: 30px; }
.workflow-subtitle { margin: 15px 0 0; color: #46604f; font-size: 17px; font-weight: 700; }
.workflow-heading .button { margin-top: 18px; }
.workflow-rail { display: grid; gap: 9px; }
.workflow-step { position: relative; padding: 20px; border: 1px solid #d6e5d6; border-radius: 18px; background: #fff; box-shadow: 0 12px 32px rgba(21, 62, 43, .05); }
.workflow-step-highlight { border: 2px solid var(--brand); box-shadow: 0 16px 38px rgba(86, 165, 89, .18); }
.workflow-step-final { background: var(--brand-dark); color: #fff; }
.step-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.step-top > b { color: var(--brand); font-size: 12px; letter-spacing: .1em; }
.file-chip { max-width: 70%; overflow: hidden; padding: 5px 9px; border-radius: 999px; background: #e8f3e7; color: var(--brand-dark); font-size: 10px; font-weight: 900; letter-spacing: .06em; text-overflow: ellipsis; white-space: nowrap; }
.file-chip-dark { background: var(--ink); color: #fff; }
.file-chip-brand { background: var(--brand); color: #fff; }
.workflow-step h3 { margin: 16px 0 0; font-size: 19px; line-height: 1.35; }
.workflow-step p { margin: 7px 0 0; color: #667085; font-size: 14px; }
.workflow-step-final p { color: #d9e7dd; }
.workflow-step-media img { width: 100%; margin-top: 16px; border-radius: 12px; aspect-ratio: 16 / 9; object-fit: cover; }
.flow-arrow { height: 25px; display: grid; place-items: center; color: var(--brand); font-size: 22px; font-weight: 900; }
.compatibility-note { margin: 20px 2px 0; color: #607064; font-size: 12px; }

.features-section { padding-top: 60px; }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.swipe-hint { flex: none; margin: 0 0 4px; color: var(--muted); font-size: 12px; font-weight: 800; white-space: nowrap; }
.feature-carousel { display: grid; grid-auto-columns: min(82vw, 340px); grid-auto-flow: column; gap: 12px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory; scrollbar-width: none; margin: 0 -18px; padding: 0 18px 18px; }
.feature-carousel::-webkit-scrollbar { display: none; }
.feature-card { overflow: hidden; scroll-snap-align: center; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 10px 28px rgba(21, 62, 43, .06); }
.feature-card img { width: 100%; aspect-ratio: 1.35 / 1; object-fit: cover; }
.feature-card > div { padding: 14px; }
.feature-card h3 { margin: 0; font-size: 16px; line-height: 1.4; }
.feature-card p { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.mini-tag { display: inline-block; margin-bottom: 7px; padding: 3px 7px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-dark); font-size: 9px; font-weight: 900; }

.integration-section { overflow: hidden; padding: 72px 0 78px; background: #f3f7f1; }
.integration-heading > div { max-width: 760px; }
.integration-heading > div > p:last-child { margin: 12px 0 0; color: #526458; }
.integration-carousel { display: grid; grid-auto-columns: min(86vw, 420px); grid-auto-flow: column; gap: 14px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory; scrollbar-width: none; margin: 0 -18px; padding: 0 18px 18px; }
.integration-carousel::-webkit-scrollbar { display: none; }
.integration-card { overflow: hidden; scroll-snap-align: center; border: 1px solid #d6e5d6; border-radius: 20px; background: #fff; box-shadow: 0 14px 38px rgba(21, 62, 43, .08); }
.integration-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center top; background: #e8efe8; }
.integration-card > div { padding: 20px; }
.integration-tag { display: block; margin-bottom: 8px; color: var(--brand); font-size: 10px; font-weight: 900; letter-spacing: .09em; }
.integration-card h3 { margin: 0; color: var(--brand-dark); font-size: 21px; }
.integration-card p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.integration-note { margin-top: 4px; }

.final-cta { padding: 76px 0; background: var(--ink); color: #fff; }
.final-cta-grid { display: grid; gap: 36px; }
.final-cta .eyebrow { color: #9ee17f; }
.final-cta p:not(.eyebrow) { color: #cbd1d8; }
.final-cta .button { width: 100%; margin-top: 14px; }
.app-card { display: grid; grid-template-columns: 94px 1fr; gap: 18px; align-items: center; padding: 20px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 20px; background: rgba(255, 255, 255, .06); }
.app-card > img { width: 94px; max-height: 184px; object-fit: contain; }
.app-card h3 { margin: 0 0 12px; }
.app-links { display: grid; gap: 8px; }
.app-links a { min-height: 44px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .22); border-radius: 10px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 850; text-decoration: none; }
.app-card p { margin: 12px 0 0; font-size: 12px; }
.app-card p a { color: #a9dfa9; font-weight: 850; text-underline-offset: 2px; }

.footer { padding: 28px 0; background: #fff; }
.footer .shell { display: grid; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}
.footer-brand small { color: var(--muted); font-size: 11px; }
.footer a { color: var(--brand-dark); font-size: 14px; font-weight: 800; }
.sticky-cta { position: fixed; right: 0; bottom: 0; left: 0; z-index: 80; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(21, 62, 43, .12); background: rgba(255, 255, 255, .96); opacity: 0; pointer-events: none; transform: translateY(100%); transition: opacity .2s ease, transform .2s ease; backdrop-filter: blur(14px); }
.sticky-cta-visible .sticky-cta { opacity: 1; pointer-events: auto; transform: none; }
.sticky-cta a { min-height: 48px; display: grid; place-items: center; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 900; text-decoration: none; box-shadow: 0 10px 28px rgba(86, 165, 89, .3); }

:focus-visible { outline: 3px solid #83c985; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; } }

@media (min-width: 720px) {
  body { padding-bottom: 0; }
  .shell { width: min(100% - 64px, 1160px); }
  .site-header { padding-inline: 32px; }
  .hero { padding: 82px 0; }
  .hero-grid { grid-template-columns: .92fr 1.08fr; align-items: center; gap: 58px; }
  .hero-flow span { font-size: 12px; }
  .stage-list { grid-template-columns: repeat(5, 1fr); gap: 12px; }
  .stage-list li { grid-template-columns: 1fr; min-height: 236px; align-content: start; }
  .stage-list li > span { grid-column: 1; align-self: end; }
  .workflow-rail { grid-template-columns: repeat(11, auto); align-items: stretch; gap: 8px; }
  .workflow-step { width: min(14vw, 170px); padding: 16px; }
  .workflow-step-media { width: min(22vw, 250px); }
  .flow-arrow { width: 18px; height: auto; align-self: center; transform: rotate(-90deg); }
  .feature-carousel { grid-auto-columns: min(31vw, 352px); gap: 16px; margin: 0; padding-inline: 0; }
  .feature-card img { aspect-ratio: 16 / 10; }
  .feature-card > div { padding: 18px; }
  .feature-card h3 { font-size: 18px; }
  .feature-card p { font-size: 14px; }
  .integration-carousel { grid-auto-columns: min(32vw, 370px); gap: 18px; margin: 0; padding-inline: 0; }
  .final-cta-grid { grid-template-columns: 1fr .85fr; align-items: center; gap: 70px; }
  .final-cta .button { width: auto; }
  .footer .shell { grid-template-columns: 1fr auto; align-items: center; }
  .sticky-cta { display: none; }
}

@media (min-width: 1100px) {
  .workflow-rail { grid-template-columns: repeat(11, minmax(0, auto)); justify-content: space-between; }
  .workflow-step { width: 155px; }
  .workflow-step-media { width: 240px; }
}
