:root {
  --primary-color: #111b27;
  --secondary-color: #0c121c;
  --accent-color: #c5a880;
  --accent-hover: #9d7e53;
  --bg-light: #fbfaf7;
  --text-dark: #2c3539;
  --text-muted: #667085;
  --border-color: #e2e2e0;
  --white: #ffffff;
  --font-base: 'Noto Sans JP', sans-serif;
}

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

body {
  font-family: var(--font-base);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.8;
  font-size: 16px;
}

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

/* Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent-color);
  color: var(--primary-color);
  padding: 8px;
  z-index: 100;
  transition: top 0.2s;
}
.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;
}

/* Header */
header {
  background-color: var(--primary-color);
  border-bottom: 2px solid var(--accent-color);
  position: sticky;
  top: 0;
  z-index: 99;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-text {
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 2px;
}
.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}
.nav-links a {
  color: #d1d5db;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--accent-color);
}
.burger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
}
.burger-menu span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--white);
  transition: 0.3s;
}

/* Hero Section */
.hero {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: radial-gradient(circle, transparent 20%, var(--bg-light) 20%) 0 0 / 10px 20px;
}
.hero-content {
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
}
.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  line-height: 1.4;
  color: var(--accent-color);
}
.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 40px;
}
.btn-primary {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--secondary-color);
  padding: 15px 35px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: background-color 0.3s, transform 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background-color: var(--accent-hover);
  color: var(--white);
  transform: translateY(-2px);
}

/* Statistics */
.stats {
  padding: 50px 0;
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
}
.stats-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}
.stat-item {
  text-align: center;
  flex: 1;
  min-width: 200px;
}
.stat-num {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--accent-color);
}
.stat-label {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Common Section styles */
section {
  padding: 80px 0;
}
.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 15px;
}
.section-title::after {
  content: '';
  width: 50px;
  height: 3px;
  background-color: var(--accent-color);
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* Steps (How it works) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}
.step-card {
  background: var(--white);
  padding: 40px 20px;
  text-align: center;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  border-top: 4px solid var(--accent-color);
}
.step-card i {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 20px;
}
.step-card h3 {
  margin-bottom: 15px;
}

/* Services section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.service-card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.service-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.service-info {
  padding: 25px;
}
.service-info h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
}
.service-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

/* Feature asymmetric block */
.feature-asymmetric {
  display: flex;
  align-items: center;
  gap: 50px;
  background-color: var(--white);
}
.feature-img {
  flex: 1;
  max-width: 500px;
  width: 100%;
  border-radius: 4px;
  object-fit: cover;
}
.feature-text {
  flex: 1;
}
.feature-text h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}
.feature-text ul {
  list-style: none;
  margin-top: 20px;
}
.feature-text ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 15px;
}
.feature-text ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

/* Pricing cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  align-items: stretch;
}
.price-card {
  background: var(--white);
  padding: 40px 30px;
  text-align: center;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border: 2px solid var(--accent-color);
  transform: scale(1.03);
  position: relative;
}
.price-badge {
  background-color: var(--accent-color);
  color: var(--primary-color);
  padding: 5px 15px;
  font-size: 0.8rem;
  font-weight: bold;
  position: absolute;
  top: 15px;
  right: 15px;
  border-radius: 12px;
}
.price-name {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 20px;
}
.price-amt {
  font-size: 2.2rem;
  color: var(--primary-color);
  font-weight: bold;
  margin-bottom: 30px;
}
.price-features {
  list-style: none;
  margin-bottom: 40px;
  text-align: left;
}
.price-features li {
  margin-bottom: 12px;
  font-size: 0.95rem;
  padding-left: 20px;
  position: relative;
}
.price-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-color);
}
.price-btn {
  margin-top: auto;
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background-color: var(--white);
  margin-bottom: 15px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.faq-btn {
  width: 100%;
  padding: 20px;
  text-align: left;
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--primary-color);
}
.faq-btn i {
  transition: transform 0.3s;
}
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 20px;
  background-color: #faf9f6;
  color: var(--text-muted);
}
.faq-content.open {
  padding: 20px;
}

/* Form section */
.form-section {
  background-color: var(--secondary-color);
  color: var(--white);
}
.form-container {
  max-width: 650px;
  margin: 0 auto;
  background-color: var(--primary-color);
  padding: 50px 40px;
  border-radius: 4px;
  border: 1px solid rgba(197, 168, 128, 0.2);
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  font-size: 0.95rem;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: var(--white);
  color: var(--text-dark);
  font-family: var(--font-base);
}
.form-group input:focus, .form-group textarea:focus {
  outline: 2px solid var(--accent-color);
}
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.85rem;
}
.consent-label input {
  width: auto;
  margin-top: 4px;
}
.consent-label a {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Legal tables for Tokushoho */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  background: var(--white);
}
.legal-table th, .legal-table td {
  border: 1px solid var(--border-color);
  padding: 15px;
  text-align: left;
}
.legal-table th {
  background-color: #f0ede8;
  width: 250px;
}

/* Trust Layer & Footer */
.trust-layer {
  background-color: #f3f1ed;
  padding: 50px 0;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.trust-layer h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.1rem;
}
.trust-link {
  color: var(--primary-color);
  text-decoration: underline;
  margin-right: 15px;
}
footer {
  background-color: var(--secondary-color);
  color: #9ca3af;
  padding: 30px 0;
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid rgba(197, 168, 128, 0.1);
}

/* Cookie Consent */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 20px;
  border-radius: 4px;
  border: 1px solid var(--accent-color);
  z-index: 999;
  display: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
.cookie-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 1000px;
  margin: 0 auto;
}
.cookie-buttons {
  display: flex;
  gap: 10px;
}
.cookie-btn-accept {
  background-color: var(--accent-color);
  color: var(--primary-color);
  border: none;
  padding: 8px 20px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
}
.cookie-btn-decline {
  background: none;
  border: 1px solid #d1d5db;
  color: #d1d5db;
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary-color);
    padding: 20px;
    border-bottom: 2px solid var(--accent-color);
  }
  .nav-links.nav-active {
    display: flex;
  }
  .burger-menu {
    display: flex;
  }
  .feature-asymmetric {
    flex-direction: column;
  }
  .price-card.featured {
    transform: none;
  }
  .legal-table th, .legal-table td {
    display: block;
    width: 100%;
  }
  .legal-table th {
    background-color: #f0ede8;
  }
}

@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;
  }
}