:root {
  --primary: #111827;
  --accent: #b45309;
  --accent-light: #f59e0b;
  --bg-light: #fcfbf7;
  --bg-white: #ffffff;
  --text-dark: #1f2937;
  --text-muted: #4b5563;
  --border: #e5e7eb;
  --max-width: 1200px;
  --font-main: 'Noto Sans JP', sans-serif;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.8;
  font-size: 1.05rem;
}

h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--primary);
  line-height: 1.4;
}

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

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

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: white;
  padding: 8px;
  z-index: 100;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

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

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--primary);
}

.logo img {
  width: 32px;
  height: 32px;
}

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

nav a {
  font-weight: 500;
  color: var(--text-dark);
}

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

.cta-btn {
  background-color: var(--accent);
  color: white !important;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s;
}

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

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

/* Mobile Menu */
.mobile-nav {
  display: none;
  flex-direction: column;
  background-color: var(--bg-white);
  border-top: 1px solid var(--border);
  padding: 20px;
  gap: 15px;
}

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

/* Main Content Wrapper */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px;
  min-height: 70vh;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  background-color: var(--bg-white);
  padding: 40px 20px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid var(--border);
  margin-bottom: 60px;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 5px;
}

.stat-item p {
  color: var(--text-muted);
}

/* How It Works */
.how-it-works {
  text-align: center;
  margin-bottom: 60px;
}

.how-it-works h2 {
  font-size: 2rem;
  margin-bottom: 40px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step-card {
  background: var(--bg-white);
  padding: 30px 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.step-card i {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.step-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.features-image img {
  width: 100%;
  border-radius: 8px;
}

.features-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.features-list {
  list-style: none;
  margin-top: 20px;
}

.features-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
}

.features-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* Services Page grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.service-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.service-card-body {
  padding: 30px;
}

.service-card-body h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

/* Pricing */
.pricing-section {
  text-align: center;
  margin-bottom: 60px;
}

.pricing-section h2 {
  font-size: 2rem;
  margin-bottom: 40px;
}

.pricing-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}

.price-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 40px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border: 2px solid var(--accent);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--accent);
  color: white;
  padding: 5px 10px;
  font-size: 0.8rem;
  border-radius: 4px;
}

.price {
  font-size: 2.2rem;
  font-weight: bold;
  color: var(--accent);
  margin: 20px 0;
}

.price-features {
  list-style: none;
  margin-bottom: 30px;
  flex-grow: 1;
  text-align: left;
}

.price-features li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.price-features li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Lead Form Section */
.form-section {
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  padding: 50px 40px;
  border-radius: 8px;
  margin-bottom: 60px;
}

.form-header {
  text-align: center;
  margin-bottom: 30px;
}

.form-header h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group.full-width {
  grid-column: span 2;
}

label {
  font-weight: bold;
  color: var(--primary);
  font-size: 0.95rem;
}

input, textarea {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 1rem;
  font-family: var(--font-main);
}

input:focus, textarea:focus {
  outline: 2px solid var(--accent);
}

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

.checkbox-group input {
  margin-top: 5px;
}

.submit-btn {
  background-color: var(--accent);
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s;
}

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

/* FAQ Accordion */
.faq-section {
  margin-bottom: 60px;
}

.faq-section h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px;
  text-align: left;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question i {
  transition: transform 0.3s;
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-muted);
}

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

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

/* Legal & Trust Layers */
.trust-layer {
  background-color: #1e293b;
  color: #e2e8f0;
  padding: 40px 20px;
  border-radius: 8px;
  margin-bottom: 40px;
  font-size: 0.95rem;
}

.trust-layer h3 {
  color: white;
  margin-bottom: 15px;
}

.trust-layer-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 30px;
}

.trust-layer-details p {
  margin-bottom: 8px;
}

.trust-layer-disclaimer {
  color: #94a3b8;
  line-height: 1.6;
}

/* Footer */
footer {
  background-color: var(--primary);
  color: white;
  padding: 40px 20px;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #374151;
  padding-bottom: 30px;
  margin-bottom: 20px;
}

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

.footer-links a {
  color: #d1d5db;
}

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

.footer-copyright {
  text-align: center;
  color: #9ca3af;
  font-size: 0.9rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background-color: var(--primary);
  color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  display: none;
  z-index: 1000;
  max-width: 600px;
  margin: 0 auto;
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.cookie-btn {
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  border: none;
}

.cookie-accept {
  background-color: var(--accent);
  color: white;
}

.cookie-reject {
  background-color: #4b5563;
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
  }
  
  .stats {
    grid-template-columns: 1fr;
  }
  
  .steps {
    grid-template-columns: 1fr;
  }
  
  .features {
    grid-template-columns: 1fr;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-table {
    grid-template-columns: 1fr;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-group.full-width {
    grid-column: span 1;
  }
  
  .trust-layer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  
  nav {
    display: none;
  }
  
  .burger {
    display: block;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-delay: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
}