:root {
  --primary: #1e3a8a;
  --primary-hover: #1d4ed8;
  --accent: #2563eb;
  --bg-dark: #0b132b;
  --bg-light: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #475569;
  --border-color: #e2e8f0;
  --focus-ring: #2563eb;
  --success: #15803d;
  --error: #b91c1c;
  --max-w: 1120px;
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

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

body {
  font-family: var(--font-base);
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover, a:focus {
  text-decoration: underline;
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Nav */
header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--bg-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

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

nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
  align-items: center;
}

nav a {
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
}

nav a.active {
  color: var(--accent);
  font-weight: 700;
}

.nav-cta {
  background: var(--primary);
  color: #ffffff !important;
  padding: 8px 18px;
  border-radius: 6px;
  text-decoration: none !important;
}

.nav-cta:hover {
  background: var(--primary-hover);
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #0b132b 0%, #1c2541 100%);
  color: #ffffff;
  padding: 72px 0;
}

.hero-content {
  max-width: 800px;
}

.badge {
  display: inline-block;
  background: rgba(37, 99, 235, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(147, 197, 253, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 2.3rem;
  line-height: 1.35;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero p {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-size: 1rem;
}

.btn-primary:hover {
  background: var(--primary-hover);
  text-decoration: none;
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: #ffffff;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 6px;
  border: 1px solid #475569;
  text-decoration: none;
  font-size: 1rem;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

/* Sections Common */
section {
  padding: 64px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 1.85rem;
  color: var(--bg-dark);
  margin-bottom: 12px;
}

.section-title p {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* Grid & Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--bg-dark);
}

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

.card-icon {
  width: 44px;
  height: 44px;
  background: #eff6ff;
  color: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
  font-weight: bold;
}

/* Process Timeline */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.step-item {
  display: flex;
  gap: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: 8px;
}

.step-num {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

/* Pricing Note Card */
.pricing-box {
  background: #ffffff;
  border: 2px solid #bfdbfe;
  border-radius: 8px;
  padding: 36px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.pricing-box .price-tag {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  margin: 16px 0 8px;
}

.pricing-box .price-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

/* FAQ */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 20px 24px;
}

.faq-item h3 {
  font-size: 1.05rem;
  color: var(--bg-dark);
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Form Styles */
.form-wrap {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 36px;
  max-width: 640px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background-color: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
}

.checkbox-group input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
}

.checkbox-group label {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.status-msg {
  padding: 14px;
  border-radius: 6px;
  margin-bottom: 20px;
  display: none;
  font-size: 0.95rem;
}

.status-msg.error {
  background: #fee2e2;
  color: var(--error);
  border: 1px solid #fca5a5;
  display: block;
}

.status-msg.success {
  background: #dcfce7;
  color: var(--success);
  border: 1px solid #86efac;
  display: block;
}

/* Footer & Legal */
footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 48px 0 24px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-col h4 {
  color: #f1f5f9;
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col a {
  color: #94a3b8;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0f172a;
  color: #f8fafc;
  padding: 18px 24px;
  border-top: 1px solid #334155;
  z-index: 9999;
  display: none;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
}

.cookie-content {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-text {
  font-size: 0.88rem;
  color: #cbd5e1;
  max-width: 780px;
}

.cookie-text a {
  color: #93c5fd;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 12px;
}

.btn-cookie {
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.btn-accept {
  background: var(--accent);
  color: #ffffff;
}

.btn-reject {
  background: #334155;
  color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.75rem; }
  .nav-wrap nav { display: none; }
  .nav-wrap nav.open {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
  }
  .nav-wrap nav.open ul {
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
  }
  .mobile-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .cookie-content { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}