/* ========================================
   Crucible Landing Page — style.css
   ライトモード / フォレストグリーンアクセント
   ブランドカラー: #4B7A52
   デザインガイド準拠（design.md）
   ======================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;600;700&display=swap');

/* リセット & ベース */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #fafdf7;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --text-primary: #1a2e1d;
  --text-secondary: #6b7f6e;
  --accent: #4B7A52;
  --accent-hover: #3d6844;
  --accent-light: #4B7A52;
  --accent-subtle: rgba(75, 122, 82, 0.08);
  --border: #d5e0d7;
  --code-bg: #f0f5ef;
  --max-width: 1100px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ヘッダー */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 253, 247, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 3.5rem;
}

.header-logo {
  display: flex;
  align-items: center;
}

.header-logo-img {
  width: 140px;
  height: auto;
  margin: -8px 0;
}

.header-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.header-nav a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
}

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

.lang-switch {
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.lang-switch:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Hero */
.hero {
  padding: 7rem 1.5rem 3rem;
  text-align: center;
}

.hero-logo {
  height: 120px;
  width: auto;
  margin-bottom: 2rem;
}

.hero .tagline {
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero .description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #ffffff;
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* セクション共通 */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 3rem;
  max-width: 650px;
}

/* What is Crucible */
.about-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.9;
}

/* シナリオ */
.scenarios {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.scenario {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.scenario-header {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.scenario-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.scenario-before, .scenario-after {
  padding: 1.5rem;
  border-radius: 8px;
}

.scenario-before {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.scenario-after {
  background: #edf5ee;
  border: 1px solid #b8d4bb;
}

.scenario-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.scenario-before .scenario-label {
  color: #dc2626;
}

.scenario-after .scenario-label {
  color: #2d4a32;
}

.scenario ul {
  list-style: none;
  padding: 0;
}

.scenario li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.6rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.scenario li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-secondary);
  opacity: 0.5;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
}

.feature-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.step {
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--accent-subtle);
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.step-arrow {
  display: none;
}

/* Quick Start */
.quickstart-code {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  overflow-x: auto;
}

.quickstart-code pre {
  font-family: ui-monospace, 'SF Mono', 'Consolas', 'Liberation Mono', 'Menlo', monospace;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-primary);
}

.quickstart-code .comment {
  color: #6b7f6e;
}

.quickstart-code .command {
  color: #2d4a32;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

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

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

.footer-copy {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .hero {
    padding: 6rem 1rem 2rem;
  }

  .hero-logo {
    height: 80px;
  }

  .hero .tagline {
    font-size: 1rem;
  }

  .hero .description {
    font-size: 0.95rem;
  }

  .section {
    padding: 2rem 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

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

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

  .steps {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-inner {
    flex-direction: column;
  }
}
