:root {
  --primary: #1a2b4c;
  --primary-light: #2c426f;
  --accent: #c8963e;
  --accent-hover: #b08130;
  --bg-light: #f8f9fa;
  --bg-card: #ffffff;
  --text-dark: #111827;
  --text-muted: #4b5563;
  --border-color: #e5e7eb;
  --font-main: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 8px;
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
}

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

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

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

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  z-index: 10000;
  transition: top 0.2s;
  text-decoration: none;
  font-weight: bold;
}
.skip-link:focus {
  top: 0;
}

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

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

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

/* Header & Nav */
.site-header {
  background: var(--primary);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 700;
}
.brand-logo img {
  display: block;
}
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--accent);
}
.nav-btn {
  background: var(--accent);
  color: #ffffff !important;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-weight: 700 !important;
  transition: background 0.2s !important;
}
.nav-btn:hover {
  background: var(--accent-hover) !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, rgba(26,43,76,0.92), rgba(15,23,42,0.88)), url('images/hero.jpg') center/cover no-repeat;
  color: #ffffff;
  padding: 90px 0 80px;
  text-align: center;
}
.hero-content h1 {
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.35;
}
.hero-content p {
  font-size: 1.15rem;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #cbd5e1;
}
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--accent);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--accent-hover);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--border-color);
  color: var(--text-dark);
}
.btn-outline:hover {
  background: var(--border-color);
}
.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* Stats */
.stats-section {
  background: #ffffff;
  padding: 45px 0;
  border-bottom: 1px solid var(--border-color);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}
.stat-item h3 {
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 5px;
}
.stat-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Section Common */
.section-padding {
  padding: 70px 0;
}
.section-title {
  text-align: center;
  margin-bottom: 45px;
}
.section-title h2 {
  font-size: 1.9rem;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-title p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* How It Works */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}
.step-card {
  background: var(--bg-card);
  padding: 30px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
  border-top: 4px solid var(--accent);
}
.step-icon {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 15px;
}
.step-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

/* Services Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}
.service-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.service-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.service-body h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 10px;
}
.service-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Feature Section */
.feature-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.feature-box img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}
.feature-list {
  list-style: none;
  margin-top: 20px;
}
.feature-list li {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.feature-list i {
  color: var(--accent);
  margin-top: 4px;
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  align-items: stretch;
}
.pricing-card {
  background: var(--bg-card);
  padding: 35px 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: relative;
}
.pricing-card.featured {
  border: 2px solid var(--accent);
  transform: translateY(-5px);
}
.badge-featured {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: 4px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 20px;
}
.pricing-card h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 15px;
}
.price {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
}
.price span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
}
.pricing-features {
  list-style: none;
  margin-bottom: 30px;
  flex-grow: 1;
}
.pricing-features li {
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Form Section */
.form-section {
  background: var(--primary);
  color: #ffffff;
  padding: 70px 0;
}
.form-wrapper {
  max-width: 680px;
  margin: 0 auto;
  background: #ffffff;
  color: var(--text-dark);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.form-wrapper h2 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 10px;
}
.form-wrapper p {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 25px;
  font-size: 0.95rem;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
}
textarea.form-control {
  resize: vertical;
  min-height: 110px;
}
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.checkbox-group input {
  margin-top: 4px;
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 15px;
  overflow: hidden;
}
.faq-question {
  padding: 18px 24px;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-answer {
  padding: 0 24px;
  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 24px 20px;
  max-height: 300px;
}
.faq-item.open .faq-question i {
  transform: rotate(180deg);
}

/* Trust Layer */
.trust-layer {
  background: #f1f5f9;
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.trust-box {
  background: #ffffff;
  padding: 24px;
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
}
.trust-box h4 {
  color: var(--primary);
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.trust-links {
  margin-top: 12px;
}
.trust-links a {
  color: var(--primary);
  text-decoration: underline;
}
.disclaimer {
  margin-top: 10px;
  font-size: 0.82rem;
  color: #64748b;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 50px 0 20px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}
.footer-col h3, .footer-col h4 {
  color: #ffffff;
  margin-bottom: 15px;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 8px;
}
.footer-col a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: #ffffff;
}
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1e293b;
  color: #ffffff;
  padding: 16px 20px;
  z-index: 9999;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.2);
  display: none;
}
.cookie-content {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}
.cookie-content a {
  color: var(--accent);
}
.cookie-actions {
  display: flex;
  gap: 10px;
}

/* Custom Decorative Wave */
.svg-decoration {
  width: 100%;
  height: 40px;
  fill: var(--bg-light);
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .main-nav {
    display: none;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--primary);
    padding: 20px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.2);
  }
  .main-nav.active {
    display: block;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .hero-content h1 {
    font-size: 1.7rem;
  }
  .feature-box {
    grid-template-columns: 1fr;
  }
}

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