/* ===== Variables ===== */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --primary-bg: #eff6ff;
  --text: #111827;
  --text-secondary: #6b7280;
  --text-tertiary: #9ca3af;
  --bg: #ffffff;
  --bg-gray: #f9fafb;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
  --shadow-primary: 0 10px 20px rgba(37, 99, 235, 0.25);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* ===== Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

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

ul {
  list-style: none;
}

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

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}

.nav-logo {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  font-size: 14px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  color: #fff;
  background: var(--primary);
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.3);
}

.btn-ghost {
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg-gray);
  border-color: #d1d5db;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 14px;
}

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

.btn-full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ===== Badge ===== */
.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

/* ===== Hero ===== */
.hero {
  padding-top: 120px;
  padding-bottom: 80px;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(37, 99, 235, 0.06), transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(99, 102, 241, 0.05), transparent 50%),
    linear-gradient(180deg, #fff 0%, var(--bg-gray) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.text-primary {
  color: var(--primary);
}

.hero-sub {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-tertiary);
}

.hero-img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

/* ===== Sections ===== */
.section {
  padding: 80px 0;
}

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

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.section-sub {
  margin-top: 12px;
  font-size: 17px;
  color: var(--text-secondary);
}

/* ===== Grid ===== */
.grid {
  display: grid;
  gap: 20px;
}

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

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

/* ===== Cards ===== */
.card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-bg);
  color: var(--primary);
  margin-bottom: 16px;
}

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

.card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

/* ===== Feature Cards ===== */
.feature-card {
  padding: 0;
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-image {
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--bg-gray);
}

.feature-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.feature-image img.contain {
  object-fit: contain;
  padding: 12px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 20px 24px 8px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 24px 24px;
}

/* ===== Step Cards ===== */
.step-card {
  padding: 0;
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.step-image {
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--bg-gray);
}

.step-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.step-image img.contain {
  object-fit: contain;
  padding: 12px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 16px;
  font-weight: 800;
  margin: 20px 24px 12px;
}

.step-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 24px 8px;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 24px 24px;
}

/* ===== Compare Cards ===== */
.compare-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.compare-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.compare-before {
  background: #fef2f2;
  border-color: #fecaca;
}

.compare-before h3 {
  color: #dc2626;
}

.compare-after {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.compare-after h3 {
  color: #16a34a;
}

.compare-card li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.compare-before li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: #ef4444;
  font-weight: 700;
  font-size: 13px;
}

.compare-after li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: 700;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  gap: 16px;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--text-tertiary);
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding-bottom: 20px;
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.faq-answer code {
  background: var(--bg-gray);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 14px;
}

/* ===== Pricing / CTA ===== */
.section-cta {
  padding: 80px 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(37, 99, 235, 0.06), transparent 60%),
    var(--bg-gray);
}

.pricing-card {
  max-width: 480px;
  margin: 0 auto 32px;
  padding: 40px;
  border-radius: var(--radius-xl);
  background: var(--bg);
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.pricing-header {
  margin-bottom: 32px;
}

.pricing-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.pricing-note {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

.pricing-features {
  text-align: left;
  margin-bottom: 32px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features svg {
  flex-shrink: 0;
  color: var(--primary);
}

.pricing-footer {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ===== Resend Panel ===== */
.resend-panel {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid var(--border);
  text-align: center;
}

.resend-panel h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.resend-panel > p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.resend-form {
  display: flex;
  gap: 8px;
}

.resend-form input[type="email"] {
  flex: 1;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease;
}

.resend-form input[type="email"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.resend-form button {
  flex-shrink: 0;
}

.resend-message {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  text-align: left;
}

.resend-message.success {
  background: #f0fdf4;
  color: #16a34a;
}

.resend-message.error {
  background: #fef2f2;
  color: #dc2626;
}

/* ===== Footer ===== */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-image-placeholder {
    min-height: 280px;
  }

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

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

  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 96px;
    padding-bottom: 48px;
  }

  .section {
    padding: 48px 0;
  }

  .hero h1 {
    font-size: 32px;
  }

  .section-header h2 {
    font-size: 26px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .pricing-card {
    padding: 28px;
  }

  .pricing-price {
    font-size: 40px;
  }

  .resend-form {
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
