/* === Base tokens / resets (common) === */
:root {
  /* Modern, vibrant color scheme */
  --bg: #f8fafc;
  --bg-secondary: #f1f5f9;
  --sand: #fef3e2;
  --text: #0f172a;
  --text-light: #1e293b;
  --muted: #475569;
  --muted-light: #64748b;

  /* Powerful accent colors for conversion */
  --accent: #0066ff;
  --accent-2: #00a3ff;
  --accent-dark: #0052cc;
  --accent-light: #4d94ff;

  /* Secondary accent for energy */
  --orange: #ff6b35;
  --orange-light: #ff8c61;
  --yellow: #ffc107;

  --white: #ffffff;
  --border: #e2e8f0;
  --border-light: #f1f5f9;

  /* Enhanced shadows */
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 30px 60px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 40px 80px rgba(0, 0, 0, 0.16);

  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --max-width: 1200px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Noto Sans JP', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  scroll-behavior: smooth;
  padding-top: var(--header-height);
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

.container {
  width: min(92%, var(--max-width));
  margin: 0 auto;
}

.narrow {
  width: min(88%, 860px);
}

.section {
  padding: 96px 0;
}

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

.section h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
  font-weight: 800;
  line-height: 1.2;
}

.lead {
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.7;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: var(--accent);
  font-size: 13px;
  display: inline-block;
}

.accent {
  color: var(--accent);
  font-weight: 700;
}

.cta-note {
  color: var(--muted-light);
  font-size: 15px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 16px;
  border: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--white);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.btn.primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn.primary:hover::before {
  opacity: 1;
}

.btn.primary > * {
  position: relative;
  z-index: 1;
}

.btn.secondary {
  background: var(--white);
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.btn.full {
  width: 100%;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
  outline: none;
}

.btn:active {
  transform: translateY(-1px);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

@media (max-width: 1200px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

.card-grid.three {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: #F8F5EF;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-light);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 700;
  line-height: 1.3;
}

.card h3 span {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 15px;
  margin-top: 6px;
}

.card ul {
  padding-left: 20px;
  color: var(--muted);
  margin: 0;
  line-height: 1.8;
}

.card ul li {
  margin-bottom: 8px;
}

.section-header {
  margin-bottom: 24px;
  text-align: center;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
}

.media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.media.round img {
  border-radius: 50%;
  width: min(320px, 100%);
  margin-inline: auto;
}

.section.fade-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  background: #0b1223;
  color: var(--white);
  padding: 28px 0;
  text-align: center;
}

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

  .section h2 {
    font-size: clamp(24px, 5vw, 36px);
    margin-bottom: 20px;
  }

  .lead {
    font-size: clamp(16px, 3.5vw, 19px);
  }

  .split {
    gap: 24px;
  }

  .card {
    padding: 24px;
  }

  .card h3 {
    font-size: clamp(16px, 3vw, 20px);
  }

  .btn {
    padding: 14px 28px;
    font-size: 15px;
  }

  :root {
    --header-height: 68px;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 56px 0;
  }

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

  .container {
    width: min(94%, var(--max-width));
  }

  .card {
    padding: 20px;
  }

  .btn {
    padding: 13px 24px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
  }

  body {
    scroll-behavior: auto;
  }
}
