:root {
  --primary-bg: #fcfbf8;
  --text-color: #2c2a29;
  --accent-color: #bfa15f;
  --accent-hover: #a6894c;
  --secondary-bg: #f3f0ea;
  --text-muted: #6e6a66;
  --white: #ffffff;
  --border-color: #e2ded8;
  --font-family: 'Noto Sans JP', sans-serif;
  --max-width: 1200px;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--primary-bg);
  color: var(--text-color);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

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

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

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

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

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

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-color);
}

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

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

.nav-links {
  display: flex;
  list-style: none;
  gap: 24px;
}

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

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

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

.btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--white) !important;
  padding: 12px 28px;
  font-weight: 500;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  text-align: center;
}

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

.btn:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
}

/* Custom pattern and wave */
.custom-pattern {
  background-image: radial-gradient(circle at 1px 1px, rgba(191, 161, 95, 0.15) 1px, transparent 0);
  background-size: 24px 24px;
}

.wave-divider {
  width: 100%;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,42.4V0Z' fill='%231e1c1b' opacity='.05'/%3E%3C/svg%3E");
}

/* Hero Section */
.hero {
  padding: 80px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 24px;
}

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

.hero-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.05);
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* Stats Section */
.stats {
  background-color: var(--secondary-bg);
  padding: 48px 24px;
}

.stats-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

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

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

/* Steps Section */
.steps {
  padding: 80px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 48px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
  margin: 12px auto 0;
}

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

.step-card {
  background: var(--white);
  padding: 32px 24px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  text-align: center;
  position: relative;
}

.step-num {
  width: 36px;
  height: 36px;
  background-color: var(--accent-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 16px;
}

.step-card h4 {
  margin-bottom: 12px;
  font-size: 1.1rem;
}

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

/* Services */
.services-section {
  padding: 80px 24px;
  background-color: var(--white);
}

.services-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

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

.service-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.service-body {
  padding: 24px;
}

.service-body h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.service-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Features */
.features-section {
  padding: 80px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.feature-image img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.feature-text ul {
  list-style: none;
  margin-top: 24px;
}

.feature-text li {
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feature-text li i {
  color: var(--accent-color);
  margin-top: 5px;
}

/* Pricing */
.pricing-section {
  padding: 80px 24px;
  background-color: var(--secondary-bg);
}

.pricing-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.price-card {
  background-color: var(--white);
  padding: 40px 32px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: var(--accent-color);
  box-shadow: 0 8px 24px rgba(191, 161, 95, 0.15);
  transform: scale(1.03);
}

.badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: var(--accent-color);
  color: var(--white);
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 30px;
}

.price-card h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.price-val {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 24px;
}

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

.price-features li {
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* FAQ */
.faq-section {
  padding: 80px 24px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

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

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

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background-color: var(--primary-bg);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 20px 24px;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
}

/* Contact and Forms */
.contact-section {
  padding: 80px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.form-container {
  background-color: var(--white);
  padding: 40px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

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

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

.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: var(--primary-bg);
  font-family: inherit;
  font-size: 0.95rem;
  color: inherit;
}

.form-group input:focus, .form-group textarea:focus {
  outline: 2px solid var(--accent-color);
  border-color: transparent;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.checkbox-group input {
  width: auto;
  margin-top: 6px;
}

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

/* Trust Layer and Footer */
.trust-layer {
  background-color: var(--white);
  border-top: 1px solid var(--border-color);
  padding: 40px 24px;
}

.trust-container {
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.trust-title {
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 12px;
}

footer {
  background-color: #1e1c1b;
  color: #a6a29e;
  padding: 48px 24px;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-nav {
  display: flex;
  gap: 48px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

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

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

.footer-col a {
  color: #a6a29e;
  font-size: 0.85rem;
}

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

.footer-bottom {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid #2e2c2b;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 500px;
  background-color: #1e1c1b;
  color: var(--white);
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  z-index: 1000;
  display: none;
}

.cookie-content p {
  font-size: 0.85rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

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

.cookie-btn {
  padding: 8px 16px;
  font-size: 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  border: none;
  font-weight: 500;
}

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

.cookie-btn.decline {
  background-color: transparent;
  color: #a6a29e;
  border: 1px solid #4a4644;
}

/* Media Queries */
@media (max-width: 992px) {
  .hero, .feature-block, .contact-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .services-grid, .pricing-grid {
    grid-template-columns: 1fr;
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  nav {
    display: none;
  }
  .burger-menu {
    display: block;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
  }
  .nav-links.open {
    display: flex;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

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

@media print {
  body {
    background: white;
    color: black;
  }
  .btn, header, footer, .cookie-banner {
    display: none !important;
  }
}