/* ============================================
   サクセスグラント - 補助金申請支援 LP
   Style Sheet
   ============================================ */

/* ============================================
   CSS Variables / Design Tokens
   ============================================ */
:root {
  /* Primary palette - Blue */
  --primary: #1E40AF;
  --primary-dark: #1E3A8A;
  --primary-light: #DBEAFE;

  /* Accent palette - Green */
  --accent: #059669;
  --accent-dark: #047857;

  /* Backgrounds */
  --bg: #FFFFFF;
  --bg-alt: #EFF6FF;
  --bg-card: #FFFFFF;

  /* Typography colors */
  --text: #111827;
  --text-muted: #6B7280;

  /* Border */
  --border: #E5E7EB;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);

  /* Border radius */
  --radius: 8px;
  --radius-lg: 16px;

  /* Typography scale */
  --text-hero: clamp(36px, 5vw, 56px);
  --text-h2: clamp(28px, 3.5vw, 40px);
  --text-h3: clamp(20px, 2.5vw, 24px);
  --text-body: 16px;
  --text-small: 14px;
  --text-caption: 12px;

  /* Spacing scale */
  --space-section: clamp(80px, 10vw, 120px);
  --space-group: clamp(40px, 5vw, 64px);
  --space-element: clamp(16px, 2vw, 24px);
}


/* ============================================
   Reset & Base Styles
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', 'Plus Jakarta Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

button {
  cursor: pointer;
  font-family: inherit;
}

ul {
  list-style: none;
}


/* ============================================
   Layout
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
}

.section {
  padding: var(--space-section) 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-cta {
  background: #0F172A;
  color: #FFFFFF;
}


/* ============================================
   Scroll Animations
   ============================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate-on-scroll.visible .stagger-item {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.visible .stagger-item:nth-child(1) { transition-delay: 0s; }
.animate-on-scroll.visible .stagger-item:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll.visible .stagger-item:nth-child(3) { transition-delay: 0.15s; }
.animate-on-scroll.visible .stagger-item:nth-child(4) { transition-delay: 0.2s; }
.animate-on-scroll.visible .stagger-item:nth-child(5) { transition-delay: 0.25s; }
.animate-on-scroll.visible .stagger-item:nth-child(6) { transition-delay: 0.3s; }


/* ============================================
   Section Headers
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: var(--space-group);
}

.section-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-subtitle {
  font-size: var(--text-body);
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}


/* ============================================
   Buttons
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--primary);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 64, 175, 0.35);
  background: var(--primary-dark);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--primary);
  font-size: 15px;
  font-weight: 700;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-secondary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: var(--text-small);
  font-weight: 600;
  transition: gap 0.2s ease, text-decoration 0.2s ease;
}

.btn-link:hover {
  text-decoration: underline;
  gap: 10px;
}


/* ============================================
   Forms
   ============================================ */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-input::placeholder {
  color: #9CA3AF;
}

/* Select element arrow */
select.form-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-note {
  font-size: var(--text-small);
  color: var(--text-muted);
  margin-bottom: 16px;
  text-align: center;
}

.form-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: var(--text-caption);
  color: var(--text-muted);
  margin-top: 12px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row .form-group {
  flex: 1;
}


/* ============================================
   Header
   ============================================ */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.3s ease,
              box-shadow 0.3s ease,
              backdrop-filter 0.3s ease;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #111827;
}

.logo svg {
  flex-shrink: 0;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.desktop-nav a {
  font-size: 14px;
  font-weight: 500;
  color: #6B7280;
  transition: color 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--primary);
}

.nav-cta {
  background: var(--primary);
  color: #FFFFFF !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 700 !important;
  transition: background-color 0.2s ease,
              transform 0.2s ease,
              box-shadow 0.2s ease;
}

.nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}


/* ============================================
   Hamburger Menu (Mobile)
   ============================================ */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  z-index: 1002;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #374151;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 360px;
  height: 100vh;
  background: #FFFFFF;
  z-index: 1001;
  transition: right 0.3s ease;
  overflow-y: auto;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.mobile-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #111827;
}

.mobile-close {
  background: none;
  border: none;
  color: #374151;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-links {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.mobile-menu-links a {
  display: block;
  padding: 16px 0;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  color: #374151;
  transition: color 0.2s ease;
}

.mobile-menu-links a:hover {
  color: var(--primary);
}

.mobile-menu-links .btn-primary {
  margin-top: 24px;
  text-align: center;
  color: #FFFFFF;
  border-bottom: none;
}

/* Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.overlay.open {
  opacity: 1;
  pointer-events: auto;
}


/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  background: linear-gradient(160deg, #EFF6FF 0%, #DBEAFE 40%, #FFFFFF 100%);
  overflow: hidden;
}

/* Subtle pattern overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(30, 64, 175, 0.03) 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
}

/* Decorative gradient orbs */
.hero::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(30, 64, 175, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 60px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
}

.hero-text {
  position: relative;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(30, 64, 175, 0.08);
  border: 1px solid rgba(30, 64, 175, 0.15);
  border-radius: 100px;
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 24px;
}

.hero-tag svg {
  color: var(--primary);
  flex-shrink: 0;
}

.hero-text h1 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #111827;
  margin-bottom: 20px;
}

.highlight {
  color: var(--primary);
  position: relative;
}

.highlight::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 8px;
  background: rgba(30, 64, 175, 0.12);
  border-radius: 4px;
  z-index: -1;
}

.hero-desc {
  font-size: var(--text-body);
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: var(--text-small);
  font-weight: 600;
  color: #374151;
  box-shadow: var(--shadow-sm);
}

.badge svg {
  color: #059669;
  flex-shrink: 0;
}


/* ============================================
   Hero Form Card
   ============================================ */
.hero-form-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.hero-form-card h2 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: var(--text-h3);
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  color: var(--text);
}


/* ============================================
   Subsidies Section
   ============================================ */
.subsidy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.subsidy-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.subsidy-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.subsidy-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: var(--text-caption);
  font-weight: 700;
  background: rgba(30, 64, 175, 0.08);
  color: var(--primary);
}

.subsidy-card-badge.popular {
  background: var(--primary);
  color: #FFFFFF;
}

.subsidy-card h3 {
  font-size: var(--text-h3);
  font-weight: 700;
  margin-bottom: 12px;
  margin-top: 8px;
  color: var(--text);
}

.subsidy-amount-range {
  font-size: var(--text-body);
  color: #374151;
  margin-bottom: 12px;
}

.subsidy-amount-range strong {
  color: var(--primary);
  font-size: 24px;
  font-weight: 700;
}

.subsidy-desc {
  font-size: var(--text-small);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.subsidy-targets {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.subsidy-targets li {
  font-size: var(--text-small);
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}

.subsidy-targets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
}

/* "Other subsidies" card variation */
.subsidy-card-other {
  background: var(--bg-alt);
  border-style: dashed;
  border-color: rgba(30, 64, 175, 0.2);
}

.other-subsidies {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.other-subsidies li {
  font-size: var(--text-small);
  color: #374151;
  padding-left: 16px;
  position: relative;
}

.other-subsidies li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}


/* ============================================
   Results Section
   ============================================ */
.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.result-item {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.result-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.result-number {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.result-label {
  display: block;
  font-size: var(--text-small);
  font-weight: 600;
  color: #374151;
}

.result-note {
  display: block;
  font-size: var(--text-caption);
  color: var(--text-muted);
  margin-top: 4px;
}


/* ============================================
   Flow Section
   ============================================ */
.flow-steps {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.flow-step {
  display: flex;
  gap: 24px;
  position: relative;
  padding-bottom: 40px;
}

.flow-step:last-child {
  padding-bottom: 0;
}

/* Vertical connecting line */
.flow-step::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 56px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), rgba(30, 64, 175, 0.2));
}

.flow-step:last-child::before {
  display: none;
}

.flow-step-number {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #FFFFFF;
  border-radius: 50%;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
}

.flow-step-content {
  flex: 1;
  padding-top: 8px;
}

.flow-step-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.flow-step-content p {
  font-size: var(--text-body);
  color: var(--text-muted);
  line-height: 1.8;
}

.flow-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: var(--text-caption);
  font-weight: 600;
}

.flow-tag.free {
  background: rgba(5, 150, 105, 0.1);
  color: var(--accent);
  margin-top: 12px;
}


/* ============================================
   Voice / Testimonials Section
   ============================================ */
.voice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.voice-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.voice-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.voice-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.voice-header img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.voice-info {
  display: flex;
  flex-direction: column;
}

.voice-name {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.voice-company {
  font-size: var(--text-caption);
  color: var(--text-muted);
  margin-top: 2px;
}

.voice-subsidy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.voice-subsidy-name {
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--primary);
}

.voice-subsidy-amount {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.voice-quote {
  font-size: var(--text-small);
  color: var(--text-muted);
  line-height: 1.8;
  border-left: 3px solid var(--primary-light);
  padding-left: 16px;
}


/* ============================================
   FAQ Section
   ============================================ */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item.open {
  border-color: rgba(30, 64, 175, 0.3);
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.06);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  text-align: left;
  cursor: pointer;
  gap: 16px;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  color: var(--text-muted);
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: var(--text-body);
  color: var(--text-muted);
  line-height: 1.8;
}


/* ============================================
   Team Section
   ============================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.team-card img {
  width: 200px;
  height: auto;
  object-fit: cover;
  flex-shrink: 0;
}

.team-info {
  padding: 28px;
  flex: 1;
}

.team-info h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}

.team-role {
  display: block;
  font-size: var(--text-small);
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}

.team-info p {
  font-size: var(--text-small);
  color: var(--text-muted);
  line-height: 1.7;
}


/* ============================================
   Contact / CTA Section
   ============================================ */
.section-cta {
  background: #0F172A;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

/* Subtle gradient accent */
.section-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 60px;
  align-items: start;
}

.contact-text {
  color: #FFFFFF;
}

.contact-text h2 {
  font-size: var(--text-h2);
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFFFFF;
  line-height: 1.3;
}

.contact-text > p {
  font-size: var(--text-body);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-bottom: 28px;
}

.contact-checks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.contact-checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
}

.contact-checks li svg {
  color: #059669;
  flex-shrink: 0;
}

.contact-tel {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tel-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #FFFFFF;
  transition: color 0.2s ease;
}

.tel-link:hover {
  color: var(--primary-light);
}

.contact-tel span {
  font-size: var(--text-small);
  color: rgba(255, 255, 255, 0.5);
}

/* Contact form card (light card inside dark section) */
.contact-form-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.contact-form-card h3 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: var(--text-h3);
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
  color: #111827;
}


/* ============================================
   Footer
   ============================================ */
footer {
  background: #F9FAFB;
  color: #6B7280;
  padding: 64px 0 0;
  border-top: 1px solid var(--border);
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.footer-brand p {
  font-size: var(--text-small);
  line-height: 1.7;
  color: #6B7280;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #111827;
  margin-bottom: 16px;
}

.footer-links-group h4 {
  font-size: var(--text-small);
  font-weight: 700;
  color: #111827;
  margin-bottom: 16px;
}

.footer-links-group a {
  display: block;
  font-size: var(--text-small);
  color: #6B7280;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.footer-links-group a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: var(--text-caption);
  color: #9CA3AF;
}

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

.footer-bottom-links a {
  font-size: var(--text-caption);
  color: #9CA3AF;
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: #6B7280;
}


/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease,
              transform 0.3s ease,
              box-shadow 0.3s ease;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(30, 64, 175, 0.4);
}


/* ============================================
   Responsive - Tablet (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-form-card {
    max-width: 500px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}


/* ============================================
   Responsive - Mobile (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
  /* Navigation */
  .desktop-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  /* Hero */
  .hero {
    min-height: auto;
  }

  .hero-text h1 {
    font-size: clamp(28px, 7vw, 40px);
  }

  .hero-form-card {
    max-width: 100%;
  }

  /* Grids */
  .subsidy-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .results-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .voice-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-card {
    flex-direction: column;
  }

  .team-card img {
    width: 100%;
    height: 200px;
  }

  /* Form */
  .form-row {
    flex-direction: column;
  }

  /* Flow */
  .flow-step {
    gap: 16px;
  }

  .flow-step-number {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .flow-step::before {
    left: 22px;
    top: 44px;
  }

  .flow-step-content {
    padding-top: 4px;
  }

  /* Footer */
  .footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Results items */
  .result-item {
    padding: 24px 16px;
  }
}


/* ============================================
   Responsive - Small Mobile (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
  .subsidy-grid {
    grid-template-columns: 1fr;
  }

  .results-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-badges {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-form-card {
    padding: 24px;
  }

  .contact-form-card {
    padding: 24px;
  }

  .badge {
    width: fit-content;
  }

  .result-number {
    font-size: clamp(28px, 8vw, 36px);
  }

  .section-title {
    font-size: clamp(24px, 6vw, 32px);
  }
}
