:root {
  --primary: #1B2A4A;
  --primary-light: #2C3E66;
  --secondary: #475569;
  --accent: #C59B27;
  --accent-hover: #A8821D;
  --bg-main: #FCFDFF;
  --bg-alt: #F4F6F9;
  --bg-card: #FFFFFF;
  --text-main: #1E293B;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --shadow-sm: 0 2px 8px rgba(27, 42, 74, 0.06);
  --shadow-md: 0 8px 24px rgba(27, 42, 74, 0.08);
  --shadow-lg: 0 16px 36px rgba(27, 42, 74, 0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --font-family: 'Noto Sans JP', sans-serif;
  --transition: all 0.25s ease-in-out;
}

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

html {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-main);
  background-color: var(--bg-main);
  scroll-behavior: smooth;
}

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

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  z-index: 9999;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: top 0.2s;
  text-decoration: none;
}
.skip-link:focus {
  top: 16px;
}

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

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

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

/* Typography & Layout */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  color: var(--primary);
  line-height: 1.4;
  font-weight: 700;
}
h1 { font-size: 2.35rem; letter-spacing: -0.02em; }
h2 { font-size: 1.95rem; margin-bottom: 1rem; text-align: center; }
h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

/* Header & Nav */
.header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}
.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 76px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
}
.brand-logo img {
  width: 38px;
  height: 38px;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 24px;
  align-items: center;
}
.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-main);
  padding: 6px 4px;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}
.nav-cta {
  background: var(--primary);
  color: #ffffff !important;
  padding: 10px 20px !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
  border-bottom: none !important;
}
.nav-cta:hover {
  background: var(--accent-hover);
  color: #ffffff !important;
}
.burger-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--primary);
  cursor: pointer;
  padding: 8px;
}

/* Mobile Menu */
.mobile-nav {
  display: none;
  position: fixed;
  top: 76px;
  left: 0;
  width: 100%;
  background: #ffffff;
  border-bottom: 2px solid var(--accent);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  z-index: 999;
}
.mobile-nav.is-open {
  display: block;
}
.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mobile-nav-links a {
  font-size: 1.05rem;
  font-weight: 600;
  display: block;
  padding: 8px 0;
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, rgba(27, 42, 74, 0.96) 0%, rgba(44, 62, 102, 0.92) 100%), url('images/hero.jpg') center/cover no-repeat;
  color: #ffffff;
  padding: 90px 0 100px;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 24px;
  background: var(--bg-main);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}
.hero h1 {
  color: #ffffff;
  margin-bottom: 1.2rem;
  line-height: 1.35;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: #E2E8F0;
  max-width: 760px;
  margin-bottom: 2rem;
  line-height: 1.8;
}
.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #ffffff;
}
.btn-outline {
  background: transparent;
  border-color: #ffffff;
  color: #ffffff;
}
.btn-outline:hover {
  background: #ffffff;
  color: var(--primary);
}

/* Sections Common */
.section {
  padding: 70px 0;
}
.section-alt {
  background-color: var(--bg-alt);
}
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: -40px;
  position: relative;
  z-index: 10;
}
.stat-card {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  text-align: center;
}
.stat-num {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* How it works */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.step-num {
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin: 0 auto 16px;
  font-size: 1.1rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.service-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex: 1;
}

/* Features Block */
.feature-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.feature-box img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.feature-list {
  list-style: none;
  margin-top: 20px;
}
.feature-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 16px;
  font-size: 1rem;
}
.feature-list li i {
  position: absolute;
  left: 0;
  top: 4px;
  color: var(--accent);
  font-size: 1.2rem;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}
.pricing-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
}
.pricing-card.featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}
.badge-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
}
.pricing-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  margin: 16px 0;
}
.pricing-price span {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 400;
}
.pricing-features {
  list-style: none;
  margin: 20px 0 30px;
  flex: 1;
}
.pricing-features li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.92rem;
}

/* Form Section */
.form-wrapper {
  background: var(--bg-card);
  max-width: 680px;
  margin: 0 auto;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.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 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
}
.form-control:focus {
  border-color: var(--accent);
  outline: none;
}
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.checkbox-group input {
  margin-top: 4px;
}

/* Trust Layer */
.trust-layer {
  background: #0F172A;
  color: #94A3B8;
  padding: 40px 0;
  border-top: 1px solid #1E293B;
  font-size: 0.88rem;
  line-height: 1.7;
}
.trust-layer h4 {
  color: #E2E8F0;
  font-size: 1rem;
  margin-bottom: 12px;
}
.trust-layer a {
  color: var(--accent);
  text-decoration: underline;
}

/* Footer */
.footer {
  background: #090E17;
  color: #64748B;
  padding: 48px 0 24px;
  border-top: 1px solid #1E293B;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer h5 {
  color: #F8FAFC;
  font-size: 1.05rem;
  margin-bottom: 16px;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 8px;
}
.footer-links a {
  color: #94A3B8;
}
.footer-links a:hover {
  color: var(--accent);
}
.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid #1E293B;
  font-size: 0.82rem;
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-muted);
  display: none;
  font-size: 0.95rem;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.faq-item.active .faq-answer {
  display: block;
}

/* Legal Pages */
.legal-content {
  background: var(--bg-card);
  padding: 48px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin: 40px auto;
  max-width: 900px;
}
.legal-content h2 {
  text-align: left;
  margin-top: 28px;
  margin-bottom: 12px;
  font-size: 1.4rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}
.legal-content ol, .legal-content ul {
  padding-left: 24px;
  margin-bottom: 16px;
}
.legal-content li {
  margin-bottom: 8px;
}

/* Tokushoho Table */
.tokushoho-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}
.tokushoho-table th, .tokushoho-table td {
  border: 1px solid var(--border);
  padding: 14px 18px;
  font-size: 0.95rem;
  text-align: left;
}
.tokushoho-table th {
  background: var(--bg-alt);
  color: var(--primary);
  width: 30%;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #0F172A;
  color: #FFFFFF;
  padding: 18px 24px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
  z-index: 10000;
  display: none;
}
.cookie-content {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.cookie-text {
  font-size: 0.88rem;
  line-height: 1.6;
}
.cookie-text a {
  color: var(--accent);
  text-decoration: underline;
}
.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.btn-cookie-accept {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
}
.btn-cookie-decline {
  background: transparent;
  color: #CBD5E1;
  border: 1px solid #475569;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* Responsive */
@media (max-width: 992px) {
  .stats-grid, .steps-grid, .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-box {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .burger-btn { display: block; }
  .stats-grid, .steps-grid, .pricing-grid {
    grid-template-columns: 1fr;
  }
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.55rem; }
  .hero { padding: 60px 0 80px; }
  .cookie-content { flex-direction: column; align-items: flex-start; }
  .legal-content { padding: 24px; }
}