:root {
  --bg-main: #0B0F19;
  --bg-surface: #111827;
  --bg-card: rgba(19, 27, 46, 0.75);
  --bg-card-hover: rgba(26, 38, 64, 0.9);
  --border-subtle: rgba(148, 163, 184, 0.14);
  --border-focus: rgba(6, 182, 212, 0.6);
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --accent-cyan: #06B6D4;
  --accent-cyan-light: #38BDF8;
  --accent-indigo: #4F46E5;
  --accent-emerald: #10B981;
  --accent-amber: #F59E0B;
  --font-sans: 'Zen Kaku Gothic New', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  --shadow-glow: 0 0 35px rgba(6, 182, 212, 0.22);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.75;
  letter-spacing: 0.02em;
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

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

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-img {
  width: 180px;
  height: auto;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-anchor {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-anchor:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  min-width: 48px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-indigo) 100%);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(6, 182, 212, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  min-width: 48px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-cyan);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
}

.hero-glow-bg {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, rgba(79, 70, 229, 0.05) 50%, transparent 80%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: var(--accent-cyan-light);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: 40px;
  line-height: 1.35;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.hero-title span.highlight {
  background: linear-gradient(135deg, #38BDF8 0%, #818CF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.metric-item h4 {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent-cyan-light);
  margin-bottom: 4px;
}

.metric-item p {
  font-size: 13px;
  color: var(--text-muted);
}

.hero-image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 3;
}

.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-floating-card {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(11, 15, 25, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 14px;
}

.floating-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
  font-weight: 800;
}

.floating-text-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.floating-text-main {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
}

/* Section Common */
.section {
  padding: 90px 0;
  position: relative;
}

.section-alt {
  background: rgba(17, 24, 39, 0.5);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

.section-label {
  font-size: 13px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.4;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
}

/* Card Grids */
.cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.threat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.threat-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  background: var(--bg-card-hover);
}

.threat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-cyan-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.threat-name {
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.threat-subtitle {
  font-size: 13px;
  color: var(--accent-cyan-light);
  font-weight: 600;
  margin-bottom: 14px;
}

.threat-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 18px;
  flex-grow: 1;
}

.threat-trait {
  background: rgba(0, 0, 0, 0.25);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-cyan);
  font-size: 12px;
  color: var(--text-primary);
}

/* Interactive Simulator / Matrix (No Form, pure accessible buttons + open cards) */
.simulator-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.filter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
  justify-content: center;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  min-height: 48px;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-cyan);
}

.filter-btn.active {
  background: var(--accent-cyan);
  color: #0B0F19;
  border-color: var(--accent-cyan);
  font-weight: 700;
}

.scenario-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.scenario-item {
  background: rgba(11, 15, 25, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.scenario-item.highlighted {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.2);
}

.scenario-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.scenario-category {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(79, 70, 229, 0.2);
  color: #A5B4FC;
  font-size: 12px;
  font-weight: 700;
}

.scenario-severity {
  font-size: 12px;
  color: var(--accent-amber);
  font-weight: 600;
}

.scenario-item h3 {
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.scenario-problem {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 18px;
  line-height: 1.7;
}

.script-box {
  background: rgba(6, 182, 212, 0.06);
  border: 1px dashed rgba(6, 182, 212, 0.4);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 16px;
}

.script-box-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-cyan-light);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.script-text {
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.6;
}

.script-notes {
  font-size: 13px;
  color: var(--text-muted);
}

/* 5-Step Boundary Protocol */
.steps-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  position: relative;
}

.step-number {
  font-size: 32px;
  font-weight: 900;
  color: rgba(6, 182, 212, 0.3);
  margin-bottom: 12px;
  line-height: 1;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Real-world Feature Split */
.split-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 60px;
}

.split-feature:last-child {
  margin-bottom: 0;
}

.split-feature.reverse {
  direction: rtl;
}

.split-feature.reverse > * {
  direction: ltr;
}

.feature-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  aspect-ratio: 16 / 10;
  background: var(--bg-card);
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-content h3 {
  font-size: 26px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 16px;
  line-height: 1.4;
}

.feature-content p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.8;
}

.feature-checkmarks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-checkmarks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-primary);
}

.feature-checkmarks svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent-cyan);
  margin-top: 3px;
}

/* Direct Contact Panel (ENABLE_FORM: OFF -> ZERO forms/inputs) */
.contact-banner {
  background: linear-gradient(135deg, rgba(19, 27, 46, 0.9) 0%, rgba(11, 15, 25, 0.95) 100%);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.contact-banner h2 {
  font-size: 32px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.contact-banner p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.contact-badge-box {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.contact-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.contact-badge svg {
  width: 16px;
  height: 16px;
  color: var(--accent-emerald);
}

.email-display-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-full);
  color: var(--accent-cyan-light);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  min-height: 48px;
  transition: all 0.2s ease;
}

.email-display-pill:hover {
  background: var(--accent-cyan);
  color: #0B0F19;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

/* Footer & Legal */
.site-footer {
  background: #070A10;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 380px;
  margin-top: 14px;
  line-height: 1.7;
}

.footer-col h5 {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

/* CMP Cookie Widget */
.cmp-widget-host {
  position: fixed;
  bottom: 20px;
  right: 20px;
  left: 20px;
  max-width: 540px;
  margin-left: auto;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(6, 182, 212, 0.4);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
  border-radius: var(--radius-md);
  padding: 24px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cmp-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  display: none !important;
}

.cmp-title {
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cmp-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.cmp-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.cmp-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
}

.cmp-pill.locked {
  cursor: not-allowed;
  opacity: 0.8;
  border-color: rgba(6, 182, 212, 0.3);
  color: var(--accent-cyan-light);
}

.cmp-pill.active {
  background: rgba(6, 182, 212, 0.18);
  border-color: var(--accent-cyan);
  color: #FFFFFF;
}

.cmp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cmp-btn-accept {
  flex: 1;
  min-height: 40px;
  padding: 8px 16px;
  background: var(--accent-cyan);
  color: #0B0F19;
  border: none;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.cmp-btn-minimal {
  min-height: 40px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* Legal Pages Specific */
.legal-article {
  max-width: 860px;
  margin: 60px auto 100px;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.legal-title {
  font-size: 28px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.legal-updated {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-section {
  margin-bottom: 32px;
}

.legal-section h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--accent-cyan-light);
  margin-bottom: 12px;
}

.legal-section p, .legal-section li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 10px;
}

.legal-section ul {
  padding-left: 20px;
}

.tokusho-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.tokusho-table th, .tokusho-table td {
  padding: 14px 16px;
  border: 1px solid var(--border-subtle);
  font-size: 14px;
  text-align: left;
}

.tokusho-table th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  width: 30%;
  font-weight: 700;
}

.tokusho-table td {
  color: var(--text-secondary);
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .split-feature, .split-feature.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 28px;
  }
  .section-title {
    font-size: 24px;
  }
  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .simulator-box {
    padding: 24px 16px;
  }
  .legal-article {
    padding: 24px 16px;
  }
  .contact-banner {
    padding: 36px 20px;
  }
}