/* ===== リセット ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', 'Noto Sans JP', sans-serif; color: #333; line-height: 1.6; }

/* ===== ヘッダー ===== */
header {
  background: white;
  padding: 16px 48px;
  box-shadow: 0 1px 0 #e8ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo { font-size: 22px; font-weight: 800; color: #1a1a2e; text-decoration: none; letter-spacing: -0.5px; }
.logo span { color: #3b82f6; }
.header-nav { display: flex; align-items: center; gap: 32px; }
.header-nav a { text-decoration: none; font-size: 14px; color: #555; font-weight: 500; }
.header-nav a:hover { color: #3b82f6; }
.btn-login {
  background: #3b82f6; color: white !important; padding: 9px 22px;
  border-radius: 6px; font-weight: 600; font-size: 14px; transition: background 0.2s;
}
.btn-login:hover { background: #2563eb !important; }

/* ===== フッター ===== */
footer { background: #1a1a2e; color: rgba(255,255,255,0.5); text-align: center; padding: 24px; font-size: 13px; }
footer a { color: rgba(255,255,255,0.5); text-decoration: none; margin: 0 12px; }
.footer-links { margin-bottom: 12px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }

/* ===== TOPページ ===== */

/* ヘッダー（TOP用）*/
.header-sticky { position: sticky; top: 0; z-index: 100; }

/* ボタン */
.btn-primary {
  background: #3b82f6; color: white; padding: 14px 32px;
  border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 15px;
  transition: background 0.2s; display: inline-block;
}
.btn-primary:hover { background: #2563eb; }
.btn-outline {
  background: white; color: #3b82f6; padding: 14px 32px;
  border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 15px;
  border: 2px solid #3b82f6; transition: all 0.2s;
}
.btn-outline:hover { background: #eff6ff; }
.btn-white {
  background: white; color: #1d4ed8; padding: 15px 40px;
  border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 16px;
  display: inline-block; transition: box-shadow 0.2s;
}
.btn-white:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

/* セクション共通 */
.section-label { font-size: 12px; font-weight: 700; color: #3b82f6; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; }
.section-title { font-size: 30px; font-weight: 800; color: #1a1a2e; margin-bottom: 12px; }
.section-sub { font-size: 15px; color: #666; margin-bottom: 48px; }

/* ヒーロー */
.hero {
  background: linear-gradient(160deg, #ebf3ff 0%, #ffffff 60%);
  padding: 90px 48px 80px; display: flex; align-items: center;
  justify-content: center; gap: 60px; flex-wrap: wrap;
}
.hero-text { max-width: 520px; }
.hero-badge {
  display: inline-block; background: #dbeafe; color: #1d4ed8;
  font-size: 12px; font-weight: 700; padding: 4px 12px;
  border-radius: 20px; margin-bottom: 20px; letter-spacing: 0.5px;
}
.hero h1 { font-size: 40px; font-weight: 800; line-height: 1.35; color: #1a1a2e; margin-bottom: 20px; letter-spacing: -1px; }
.hero h1 em { color: #3b82f6; font-style: normal; }
.hero p { font-size: 16px; color: #555; margin-bottom: 36px; line-height: 1.8; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-img {
  background: white; border-radius: 16px;
  box-shadow: 0 20px 60px rgba(59,130,246,0.15);
  padding: 28px 32px; max-width: 400px; width: 100%;
}
.hero-img .mock-header { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.mock-dot { width: 10px; height: 10px; border-radius: 50%; }
.mock-stat { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.mock-stat-item { flex: 1; background: #f0f7ff; border-radius: 8px; padding: 14px 12px; text-align: center; }
.mock-stat-item .num { font-size: 24px; font-weight: 800; color: #3b82f6; }
.mock-stat-item .lbl { font-size: 11px; color: #888; margin-top: 2px; }
.mock-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
.mock-row .org { color: #333; font-weight: 500; }
.mock-row .cnt { color: #3b82f6; font-weight: 700; }

/* 実績バー */
.stats-bar { background: #1a1a2e; padding: 28px 48px; display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; }
.stat-item { text-align: center; color: white; }
.stat-item .num { font-size: 32px; font-weight: 800; color: #60a5fa; }
.stat-item .lbl { font-size: 13px; opacity: 0.7; margin-top: 4px; }

/* 課題 */
.problems { padding: 80px 48px; background: white; text-align: center; }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 900px; margin: 0 auto; }
.problem-card { background: #fef9f0; border: 1px solid #fed7aa; border-radius: 12px; padding: 28px 24px; text-align: left; }
.problem-card .icon { font-size: 28px; margin-bottom: 12px; }
.problem-card p { font-size: 14px; color: #555; line-height: 1.7; }
.problem-card strong { color: #1a1a2e; display: block; margin-bottom: 6px; font-size: 15px; }

/* 解決 */
.solution { padding: 16px 48px; background: white; text-align: center; }
.solution-arrow { font-size: 40px; color: #3b82f6; margin-bottom: 8px; }
.solution h2 { font-size: 28px; font-weight: 800; color: #1a1a2e; }
.solution h2 em { color: #3b82f6; font-style: normal; }

/* 機能 */
.features { padding: 80px 48px; background: #f8faff; }
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 960px; margin: 0 auto; }
.feature-card {
  background: white; border-radius: 14px; padding: 32px 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05); display: flex; gap: 20px; align-items: flex-start;
}
.feature-icon-wrap {
  width: 52px; height: 52px; background: #eff6ff; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0;
}
.feature-card h3 { font-size: 16px; font-weight: 700; color: #1a1a2e; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: #666; line-height: 1.7; }

/* 使い方 */
.how { padding: 80px 48px; background: white; text-align: center; }
.steps { display: flex; justify-content: center; align-items: flex-start; gap: 0; max-width: 860px; margin: 0 auto; }
.step { flex: 1; padding: 0 20px; text-align: center; position: relative; }
.step:not(:last-child)::after { content: '→'; position: absolute; right: -10px; top: 20px; font-size: 22px; color: #cbd5e1; }
.step-num {
  width: 48px; height: 48px; background: #3b82f6; color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; margin: 0 auto 16px;
}
.step h3 { font-size: 15px; font-weight: 700; color: #1a1a2e; margin-bottom: 8px; }
.step p { font-size: 13px; color: #666; line-height: 1.7; }

/* コード */
.code-section { background: #0f172a; padding: 72px 48px; text-align: center; }
.code-section .section-label { color: #60a5fa; }
.code-section .section-title { color: white; }
.code-section .section-sub { color: #94a3b8; }
.code-block {
  background: #1e293b; border-radius: 10px; padding: 24px 32px;
  display: inline-block; text-align: left; font-family: 'Consolas', monospace;
  font-size: 14px; max-width: 640px; width: 100%; border: 1px solid #334155;
}
.code-comment { color: #64748b; }
.code-tag { color: #7dd3fc; }
.code-attr { color: #a5f3fc; }
.code-val { color: #fbbf24; }

/* CTA */
.cta { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); padding: 80px 48px; text-align: center; }
.cta h2 { font-size: 32px; font-weight: 800; color: white; margin-bottom: 12px; }
.cta p { color: rgba(255,255,255,0.8); font-size: 16px; margin-bottom: 36px; }

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
  header { padding: 12px 16px; }
  .header-nav { gap: 16px; }
  .header-nav a:not(.btn-login) { display: none; }

  .hero { padding: 48px 20px; gap: 32px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 14px; }
  .hero-img { max-width: 100%; }

  .problems { padding: 48px 20px; }
  .problem-grid { grid-template-columns: 1fr; }

  .features { padding: 48px 20px; }
  .feature-list { grid-template-columns: 1fr; }

  .how { padding: 48px 20px; }
  .steps { flex-direction: column; align-items: center; gap: 24px; }
  .step:not(:last-child)::after { display: none; }

  .code-section { padding: 48px 20px; }

  .cta { padding: 48px 20px; }
  .cta h2 { font-size: 22px; }

  .stats-bar { gap: 32px; padding: 20px; }

  .solution { padding: 16px 20px; }
  .section-title { font-size: 22px; }
}

