:root {
  --bg-dark: #0f172a;
  --bg-surface: #1e293b;
  --bg-surface-hover: #334155;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-gold: #f59e0b;
  --accent-gold-hover: #d97706;
  --accent-cyan: #38bdf8;
  --border-color: #334155;
  --font-family: 'Noto Sans JP', sans-serif;
  --container-max: 1200px;
  --radius-lg: 16px;
  --radius-md: 8px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Skip Link Accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 10px;
  background: var(--accent-gold);
  color: #000;
  padding: 12px 20px;
  z-index: 10000;
  font-weight: bold;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 10px;
}

*:focus-visible {
  outline: 3px solid var(--accent-gold);
  outline-offset: 3px;
}

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

/* Typography & General */
h1, h2, h3, h4 {
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 1rem;
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; text-align: center; margin-bottom: 2.5rem; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { color: var(--text-muted); margin-bottom: 1rem; }
a { color: var(--accent-cyan); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-gold); }

/* Header & Nav */
.site-header {
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
}
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
}
.main-nav a {
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
}
.main-nav a:hover {
  color: var(--accent-gold);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  padding: 80px 0;
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(56, 189, 248, 0.08) 0%, transparent 50%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.hero-content p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
}
.hero-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}
.btn-primary {
  background-color: var(--accent-gold);
  color: #000;
}
.btn-primary:hover {
  background-color: var(--accent-gold-hover);
  color: #000;
  transform: translateY(-2px);
}
.btn-outline {
  border: 2px solid var(--border-color);
  color: var(--text-main);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}
.btn-block { display: block; width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* Stats Bar */
.stats-section {
  background-color: var(--bg-surface);
  padding: 40px 0;
  border-y: 1px solid var(--border-color);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-gold);
}
.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Sections General */
.section { padding: 80px 0; }
.section-alt { background-color: var(--bg-surface); }

/* Steps (How it Works) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}
.step-card {
  background: var(--bg-surface);
  padding: 30px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  position: relative;
}
.step-num {
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(245, 158, 11, 0.3);
  margin-bottom: 10px;
}

/* Services Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.service-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-gold);
}
.service-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.service-body { padding: 25px; }

/* Asymmetric Feature Block */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.feature-list {
  list-style: none;
  margin-top: 15px;
}
.feature-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--text-main);
}
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-gold);
  font-weight: bold;
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}
.pricing-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: relative;
}
.pricing-card.popular {
  border: 2px solid var(--accent-gold);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.15);
}
.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gold);
  color: #000;
  padding: 4px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.8rem;
}
.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin: 20px 0;
}
.pricing-features {
  list-style: none;
  margin-bottom: 30px;
  flex-grow: 1;
}
.pricing-features li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.95rem;
}

/* Form Section */
.form-wrapper {
  max-width: 650px;
  margin: 0 auto;
  background: var(--bg-surface);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.9rem;
}
.form-group .required { color: var(--accent-gold); }
.form-control {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
}
.form-control:focus {
  border-color: var(--accent-gold);
  outline: none;
}
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.checkbox-group label { margin-bottom: 0; font-size: 0.85rem; }

/* FAQ Section */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 15px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  padding: 20px;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-answer {
  padding: 0 20px 20px 20px;
  display: none;
  color: var(--text-muted);
}
.faq-item.active .faq-answer { display: block; }
.faq-item.active .faq-icon { transform: rotate(180deg); }

/* Trust Layer (Before Footer) */
.trust-layer {
  background-color: #090d16;
  padding: 50px 0;
  border-top: 1px solid var(--border-color);
}
.trust-box {
  background: var(--bg-surface);
  padding: 30px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}
.trust-box h3 { color: var(--accent-gold); margin-bottom: 15px; }
.trust-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 20px 0;
  font-size: 0.9rem;
}
.trust-box .disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
  margin-top: 15px;
}

/* Footer */
.site-footer {
  background-color: #05070c;
  padding: 60px 0 30px 0;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 { color: var(--text-main); margin-bottom: 20px; font-size: 1.1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-muted); font-size: 0.9rem; }
.footer-col a:hover { color: var(--accent-gold); }
.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 500px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  z-index: 9999;
  display: none;
}
.cookie-content { display: flex; flex-direction: column; gap: 15px; }
.cookie-content p { font-size: 0.85rem; margin: 0; }
.cookie-buttons { display: flex; gap: 10px; }

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid, .feature-grid { grid-template-columns: 1fr; }
  .services-grid, .pricing-grid { grid-template-columns: 1fr; }
  .steps-grid, .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-details { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-dark);
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
  }
  .main-nav.active { display: block; }
  .main-nav ul { flex-direction: column; gap: 15px; }
  .nav-toggle { display: block; }
  .form-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}