/*
 * AI開発ラボ - Corporate Design System v2
 * Inspired by: Anthropic, Vercel, OpenAI, Scale AI
 * Trends: Liquid Glass, Generous Spacing, Micro-interactions
 */

:root {
  /* === Color Palette === */
  --primary: #0ea5e9;
  --primary-glow: rgba(14, 165, 233, 0.25);
  --secondary: #6366f1;
  --accent: #22d3ee;

  --bg-dark: #020617;
  --bg-card: rgba(15, 23, 42, 0.5);
  --bg-glass: rgba(15, 23, 42, 0.6);

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --border: rgba(148, 163, 184, 0.1);
  --border-hover: rgba(14, 165, 233, 0.4);

  /* === Typography === */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', sans-serif;

  /* === Spacing === */
  --section-padding: 10rem;
  --container-width: 1140px;
  --header-height: 100px;

  /* === Transitions === */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* === Reset & Base === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === Typography === */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

p {
  color: var(--text-muted);
  font-weight: 400;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

/* === Layout === */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* === Header (Liquid Glass) === */
header {
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 4rem;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: var(--transition-smooth);
  border-radius: 1px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  font-family: var(--font-heading);
  letter-spacing: 0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 8px 32px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px var(--primary-glow);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-main);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: var(--border-hover);
  background: rgba(14, 165, 233, 0.05);
}

/* === Sections === */
section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 5rem;
}

.section-title h2 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
  background: linear-gradient(to right, var(--text-main) 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title p {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* === Cards (Liquid Glass) === */
.card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  padding: 3rem;
  border-radius: 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: var(--border-hover);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

.card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

/* === Tables === */
.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-glass);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.info-table th,
.info-table td {
  padding: 1.75rem 2rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: none;
}

.info-table th {
  width: 28%;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(30, 41, 59, 0.3);
}

.info-table td {
  color: var(--text-main);
}

/* === Legal Content === */
.legal-content {
  background: var(--bg-glass);
  padding: 4rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.legal-content h3 {
  color: var(--text-main);
  border-left: 3px solid var(--primary);
  padding-left: 1.25rem;
  margin: 3rem 0 1.5rem;
  font-size: 1.25rem;
}

.legal-content ul,
.legal-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.legal-content li {
  margin-bottom: 0.75rem;
}

.legal-content a {
  color: var(--primary);
}

.legal-content a:hover {
  text-decoration: underline;
}

/* === Footer === */
footer {
  background: #000000;
  border-top: 1px solid var(--border);
  padding: 6rem 0 3rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 5rem;
  margin-bottom: 5rem;
}

.footer-logo {
  color: white;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.footer-links h4 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.875rem;
}

.footer-links a {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-dim);
}

/* === Animations === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* === Responsive === */
@media (max-width: 768px) {
  :root {
    --section-padding: 5rem;
    --header-height: 80px;
  }

  .nav-links {
    gap: 2rem;
  }

  .container {
    padding: 0 1.5rem;
  }

  .card {
    padding: 2rem;
  }

  .legal-content {
    padding: 2rem;
  }
}