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

:root {
  --bg: #0e1117;
  --surface: #161b22;
  --surface2: #1c2333;
  --border: #2d3548;
  --accent: #18DD99;
  --accent-dim: rgba(24, 221, 153, 0.12);
  --accent-dim2: rgba(24, 221, 153, 0.06);
  --text: #e6edf3;
  --text-secondary: #8b949e;
  --text-muted: #636e7b;
  --white: #ffffff;
  --red: #f85149;
  --yellow: #d29922;
  --blue: #58a6ff;
  --violet: #c4b5fd;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 15px;
}

/* ===== Sticky Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 17, 23, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  font-weight: 700;
  font-size: 18px;
}

.header-logo img {
  height: 32px;
  width: auto;
}

.header-cta {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.header-cta:hover { opacity: 0.85; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

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

/* ===== Sections ===== */
.section {
  padding: 100px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.section.section-short {
  padding: 60px 40px;
}

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

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 120px 40px 100px;
  max-width: 1100px;
  margin: 0 auto;
}

h1 {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -1px;
}
h1 .accent { color: var(--accent); }

h2 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 32px;
  letter-spacing: -0.5px;
}

h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--white);
}

.subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 48px;
  line-height: 1.6;
}

p { margin-bottom: 16px; }

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

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

/* ===== Stat Row ===== */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 32px 0;
}

.stat-item {
  text-align: center;
  padding: 28px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.stat-value {
  font-size: 36px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

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

/* ===== Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}

.card-icon { font-size: 32px; margin-bottom: 12px; }

.card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.6;
}

.card.card-accent {
  border-color: var(--accent);
  background: var(--accent-dim2);
}

/* ===== Tables ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

thead th {
  text-align: left;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
}

tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

tbody tr:hover { background: var(--accent-dim2); }
tbody td:first-child { color: var(--white); font-weight: 500; }

.compare-table thead th:last-child { color: var(--accent); }
.compare-table tbody td:last-child { color: var(--accent); font-weight: 600; }

/* ===== Pipeline ===== */
.pipeline { display: flex; flex-direction: column; gap: 0; margin: 32px 0; }

.pipe-step { display: flex; align-items: stretch; gap: 20px; }

.pipe-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 40px;
  flex-shrink: 0;
}

.pipe-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 18px;
}

.pipe-connector { width: 2px; flex: 1; background: var(--border); }

.pipe-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 8px;
  flex: 1;
}

.pipe-content .step-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
}

.pipe-content .step-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-top: 2px;
}

.pipe-content .step-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== Callout ===== */
.callout {
  background: var(--accent-dim);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 15px;
  color: var(--text);
}

.callout-blue {
  background: rgba(88, 166, 255, 0.08);
  border-left-color: var(--blue);
}

/* ===== Output Grid ===== */
.output-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.output-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.output-card .output-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 8px;
}

.output-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.output-card p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.6;
}

/* ===== Use Case ===== */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.usecase-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}

.usecase-card .usecase-role {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--violet);
  margin-bottom: 8px;
}

.usecase-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.usecase-card p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.6;
}

/* ===== Pricing ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 40px 0;
}

.pricing-sub { margin: 40px 0 0; }

.pricing-sub-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-left: 4px;
  letter-spacing: 0.5px;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  position: relative;
}

.pricing-card.pricing-pro {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent-dim2), var(--surface));
}

.pricing-card.pricing-llm {
  border-color: var(--border);
  background: var(--surface);
  padding: 28px 32px;
  display: flex;
  align-items: stretch;
  gap: 40px;
}

.pricing-llm-left { flex: 1; min-width: 0; }
.pricing-llm-right { flex: 1; min-width: 0; }

.pricing-llm-tiers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.pricing-tier {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: border-color 0.2s;
}

.pricing-tier:hover { border-color: var(--text-muted); }

.pricing-tier-price {
  font-size: 22px;
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  white-space: nowrap;
}

.pricing-tier-unit {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-tier-right {
  text-align: right;
  flex-shrink: 0;
}

.pricing-tier-count {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.pricing-tier-per {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.pricing-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.badge-free { background: rgba(88, 166, 255, 0.15); color: var(--blue); }
.badge-pro { background: rgba(24, 221, 153, 0.15); color: var(--accent); }
.badge-llm { background: rgba(139, 148, 158, 0.15); color: var(--text-secondary); }

.pricing-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 36px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 4px;
  line-height: 1.1;
}

.pricing-price .price-unit {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-price .price-accent { color: var(--accent); }

.pricing-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

.pricing-features {
  list-style: none;
  font-size: 14px;
  line-height: 2.2;
}

.pricing-features li { color: var(--text-secondary); }
.pricing-features li::before { content: ""; margin-right: 8px; }
.pricing-features .feat-yes::before { content: "\2713"; color: var(--accent); font-weight: 700; }
.pricing-features .feat-no::before { content: "\2715"; color: var(--text-muted); }
.pricing-features .feat-no { color: var(--text-muted); }
.pricing-features .feat-limit::before { content: "\25B3"; color: var(--yellow); font-size: 12px; }
.pricing-features .feat-limit { color: var(--text-muted); }

/* ===== CTA Section ===== */
.cta-section {
  text-align: center;
  padding: 100px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-size: 16px;
  font-weight: 700;
  padding: 16px 48px;
  border-radius: 12px;
  text-decoration: none;
  margin-top: 32px;
  transition: opacity 0.2s;
}

.cta-btn:hover { opacity: 0.85; }

.cta-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
}

.hero-cta-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-size: 18px;
  font-weight: 700;
  padding: 18px 56px;
  border-radius: 12px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.hero-cta-btn:hover { opacity: 0.85; }

/* ===== Section Divider ===== */
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  max-width: 1100px;
  margin: 0 auto;
}

/* ===== Contact Form ===== */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

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

.form-group .required {
  color: var(--red);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.6;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.contact-submit {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 48px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.contact-submit:hover { opacity: 0.85; }
.contact-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.contact-status {
  margin-top: 16px;
  font-size: 14px;
  min-height: 20px;
}

.status-success { color: var(--accent); }
.status-error { color: var(--red); }

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 60px 40px;
  color: var(--text-muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero { padding: 80px 24px 60px; }
  .section { padding: 60px 24px; }
  .section.section-short { padding: 40px 24px; }
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  .subtitle { font-size: 16px; }
  .lead { font-size: 15px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .stat-value { font-size: 28px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.pricing-llm { flex-direction: column; gap: 20px; }
  .header-inner { padding: 0; }
  .site-header { padding: 0 20px; }
  .header-logo span { display: none; }
  .cta-section { padding: 60px 24px; }
  .cta-btn { padding: 14px 36px; font-size: 15px; }
  .hero-cta-btn { padding: 16px 40px; font-size: 16px; }

  /* Table horizontal scroll */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-wrap table { min-width: 600px; }
}
