:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f5f5f5;
  --color-text: #111111;
  --color-text-muted: #5c5c5c;
  --color-accent: #111111;
  --color-accent-dark: #000000;
  --color-accent-text: #ffffff;
  --color-border: #e0e0e0;
  --color-card-bg: #ffffff;
  --max-width: 1080px;
  --radius: 6px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.8;
}

a {
  color: var(--color-accent);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  position: sticky;
  top: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  z-index: 10;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--color-text);
  text-decoration: none;
}

.logo span {
  color: var(--color-accent);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.92rem;
}

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text);
  cursor: pointer;
}

@media (max-width: 720px) {
  nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    gap: 0;
    display: none;
  }
  nav ul.open {
    display: flex;
  }
  nav li {
    padding: 14px 24px;
    border-top: 1px solid var(--color-border);
  }
  .menu-toggle {
    display: block;
  }
}

/* Hero */
.hero {
  padding: 96px 24px 80px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  margin: 0 0 20px;
  line-height: 1.5;
}

.hero p.lead {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto 36px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  background: var(--color-accent);
  color: var(--color-accent-text);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.15s ease;
}

.btn:hover {
  background: var(--color-accent-dark);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
}

/* Sections */
section {
  padding: 72px 0;
}

section.alt {
  background: var(--color-bg-alt);
}

h2.section-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  text-align: center;
  margin: 0 0 12px;
}

p.section-sub {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 620px;
  margin: 0 auto 48px;
}

/* Feature grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 800px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
}

.card .num {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--color-accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.card h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Before/After */
.before-after {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}

.video-wrap {
  position: relative;
}

.video-wrap video {
  cursor: pointer;
}

.fullscreen-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.fullscreen-btn:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.75);
}

.before-after figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-card-bg);
}

.before-after img,
.before-after video {
  display: block;
  width: 100%;
  height: auto;
}

.before-after figcaption {
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
}

.demo-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 20px;
}

/* Pricing */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.pricing-table th,
.pricing-table td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.92rem;
}

.pricing-table th {
  background: var(--color-bg-alt);
  font-weight: 700;
}

.pricing-table td:first-child,
.pricing-table th:first-child {
  text-align: left;
}

.pricing-table tr:last-child td {
  border-bottom: none;
}

.table-scroll {
  overflow-x: auto;
}

.plan-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 16px;
}

/* Flow */
.flow-list {
  counter-reset: flow;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 640px;
}

.flow-list li {
  counter-increment: flow;
  position: relative;
  padding: 0 0 32px 52px;
  border-left: 2px solid var(--color-border);
  margin-left: 18px;
}

.flow-list li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.flow-list li::before {
  content: counter(flow);
  position: absolute;
  left: -19px;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.flow-list h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.flow-list p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

/* Contact */
.contact-form-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.contact-form-wrap iframe {
  display: block;
  width: 100%;
  height: 1100px;
  border: none;
}

#contact .demo-note {
  max-width: 640px;
  margin: 20px auto 0;
}

/* Footer */
footer {
  border-top: 1px solid var(--color-border);
  padding: 32px 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

footer .footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

footer a {
  color: var(--color-text-muted);
}

/* Legal pages */
.legal-page {
  padding: 64px 0 96px;
}

.legal-page h1 {
  font-size: 1.6rem;
  margin-bottom: 32px;
}

.legal-page h2 {
  font-size: 1.1rem;
  margin-top: 36px;
}

.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.legal-page th,
.legal-page td {
  border: 1px solid var(--color-border);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  font-size: 0.92rem;
}

.legal-page th {
  background: var(--color-bg-alt);
  width: 30%;
}

.todo {
  background: #fff3cd;
  color: #7a5b00;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85em;
}
