:root {
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --primary-light: #818cf8;
  --accent: #06b6d4;
  --text: #111827;
  --text-muted: #6b7280;
  --bg: #ffffff;
  --bg-subtle: #f9fafb;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(79, 70, 229, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== Header ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

nav a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
  border-radius: 10px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== Hero ===== */
.hero {
  padding: 96px 24px 80px;
  text-align: center;
  background: linear-gradient(160deg, #f0f0ff 0%, #ffffff 50%, #f0fbff 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(79, 70, 229, 0.08);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  color: var(--text);
}

.hero h1 .highlight {
  color: var(--primary);
}

.hero p {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-image {
  margin-top: 64px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

.app-mockup {
  background: white;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(79, 70, 229, 0.15), 0 0 0 1px rgba(79, 70, 229, 0.08);
  overflow: hidden;
  position: relative;
}

.mockup-bar {
  background: #f3f4f6;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.mockup-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.mockup-dot:nth-child(1) { background: #ef4444; }
.mockup-dot:nth-child(2) { background: #f59e0b; }
.mockup-dot:nth-child(3) { background: #10b981; }

.mockup-body {
  padding: 24px;
  background: #f9fafb;
  min-height: 320px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
}

.mockup-sidebar {
  background: white;
  border-radius: 10px;
  padding: 16px;
  border: 1px solid var(--border);
}

.mockup-sidebar-item {
  height: 12px;
  border-radius: 6px;
  background: var(--border);
  margin-bottom: 12px;
}

.mockup-sidebar-item:nth-child(1) { width: 60%; background: rgba(79, 70, 229, 0.15); }
.mockup-sidebar-item:nth-child(2) { width: 80%; }
.mockup-sidebar-item:nth-child(3) { width: 70%; }
.mockup-sidebar-item:nth-child(4) { width: 55%; }

.mockup-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mockup-card {
  background: white;
  border-radius: 10px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.mockup-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mockup-check.done { background: #10b981; }
.mockup-check.pending { background: var(--border); border: 2px solid #d1d5db; }
.mockup-check.active { background: var(--primary); }

.mockup-text-block {
  flex: 1;
}

.mockup-line {
  height: 10px;
  border-radius: 5px;
  background: var(--border);
}

.mockup-line:first-child { width: 70%; margin-bottom: 6px; }
.mockup-line:last-child { width: 40%; background: #e5e7eb; }

.mockup-card:nth-child(1) .mockup-check { background: #10b981; }
.mockup-card:nth-child(1) .mockup-line:first-child { opacity: 0.4; }

/* ===== Section base ===== */
section {
  padding: 80px 24px;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ===== Features ===== */
.features {
  background: var(--bg-subtle);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.feature-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.feature-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(79, 70, 229, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== Pricing ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 56px;
  max-width: 800px;
}

.pricing-card {
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
  position: relative;
}

.pricing-card.popular {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-plan {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pricing-card.popular .pricing-plan {
  color: rgba(255,255,255,0.7);
}

.pricing-price {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-price span {
  font-size: 18px;
  font-weight: 500;
  opacity: 0.7;
}

.pricing-period {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-card.popular .pricing-period {
  color: rgba(255,255,255,0.7);
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.pricing-features li::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.pricing-card.popular .pricing-features li::before {
  background-color: rgba(255,255,255,0.2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

.pricing-card .btn-primary {
  width: 100%;
}

.pricing-card.popular .btn {
  background: white;
  color: var(--primary);
  width: 100%;
}

.pricing-card.popular .btn:hover {
  background: #f0f0ff;
}

/* ===== CTA section ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  text-align: center;
}

.cta-section .section-title {
  color: white;
}

.cta-section p {
  color: rgba(255,255,255,0.8);
  font-size: 18px;
  margin: 16px auto 40px;
  max-width: 480px;
}

.cta-section .btn-outline {
  border-color: white;
  color: white;
}

.cta-section .btn-outline:hover {
  background: white;
  color: var(--primary);
}

/* ===== Footer ===== */
footer {
  background: #111827;
  color: rgba(255,255,255,0.7);
  padding: 56px 24px 32px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 320px;
}

.footer-links {
  display: flex;
  gap: 48px;
}

.footer-col h4 {
  color: white;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 14px;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 13px;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 13px;
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: white;
}

/* ===== Legal pages ===== */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 24px;
}

.legal-page h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
}

.legal-page .updated {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.legal-page h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 40px 0 12px;
}

.legal-page p, .legal-page li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 8px;
}

.legal-page ul, .legal-page ol {
  padding-left: 20px;
  margin-bottom: 16px;
}

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

.legal-table th, .legal-table td {
  text-align: left;
  padding: 12px 16px;
  border: 1px solid var(--border);
  font-size: 14px;
}

.legal-table th {
  background: var(--bg-subtle);
  font-weight: 600;
  width: 180px;
  color: var(--text);
}

.legal-table td {
  color: var(--text-muted);
}

/* ===== Mobile menu ===== */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: white;
  z-index: 200;
  flex-direction: column;
  padding: 24px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.mobile-menu nav {
  flex-direction: column;
  gap: 0;
  align-items: flex-start;
}

.mobile-menu nav a {
  font-size: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  width: 100%;
  color: var(--text);
}

.mobile-menu-cta {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-menu-cta .btn {
  width: 100%;
  padding: 14px;
  font-size: 16px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  nav { display: none; }
  .header-nav-cta { display: none; }
  .hamburger { display: flex; }

  .hero { padding: 64px 24px 56px; }

  .mockup-body {
    grid-template-columns: 1fr;
  }
  .mockup-sidebar { display: none; }

  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .pricing-grid {
    max-width: 100%;
  }
}
