/* ==========================================================================
   CO-next ランディングページ用 スタイルシート (index.css)
   ========================================================================== */

/* Google Fontsのインポート: Outfit (欧文) & Noto Sans JP (和文) */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700;900&family=Outfit:wght@300;400;500;600;700;900&display=swap');

/* --- デザイン・トークン (CSS変数) --- */
:root {
  /* カラーシステム (HSL) */
  --bg-primary: #0b1329;       /* 背景色：ディープネイビー */
  --bg-secondary: #1c2541;     /* カード等背景色：ダークネイビー */
  --bg-tertiary: #111a36;      /* セクション背景色：ミッドネイビー */
  --text-primary: #f8fafc;     /* プライマリテキスト：ホワイト系 */
  --text-secondary: #94a3b8;   /* セカンダリテキスト：ライトグレー */
  --accent-mint: #10b981;      /* アセントミント：エメラルド（メイン） */
  --accent-mint-hover: #059669;/* アセントミント（ホバー時） */
  --accent-emerald: #34d399;   /* 明るいエメラルド */
  --accent-glow: rgba(16, 185, 129, 0.15); /* グローエフェクト用 */
  --border-light: rgba(255, 255, 255, 0.08); /* ガラスモーフィズム境界線 */
  --accent-blue: #3b82f6;      /* サブアクセント：ブルー */

  /* フォントファミリー */
  --font-base: 'Outfit', 'Noto Sans JP', sans-serif;

  /* アニメーション時間 */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-family: var(--font-base);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  scroll-behavior: smooth;
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  position: relative;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* スクロールバーのカスタマイズ */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-secondary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-mint);
}

/* --- タイポグラフィ --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* --- レイアウト・ユーティリティ --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
}

/* グラデーションテキスト */
.text-gradient {
  background: linear-gradient(135deg, var(--accent-emerald) 0%, var(--accent-mint) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- ヘッダー・ナビゲーション --- */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(11, 19, 41, 0.8);
  backdrop-filter: blur(12px);
  border-b: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent-emerald), var(--accent-mint));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-primary);
  font-weight: 900;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.nav-menu {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-link:hover {
  color: var(--accent-emerald);
}

.header-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  padding: 8px 18px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.header-btn:hover {
  background: var(--accent-mint);
  color: var(--bg-primary);
  box-shadow: 0 4px 15px var(--accent-glow);
}

/* --- ヒーローセクション --- */
.hero {
  position: relative;
  padding-top: 180px;
  padding-bottom: 100px;
  overflow: hidden;
}

/* 背景の光るエフェクト */
.glow-orb {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-mint), var(--accent-blue));
  filter: blur(140px);
  opacity: 0.12;
  z-index: -1;
  pointer-events: none;
}

.hero-orb-1 {
  top: 10%;
  right: -10%;
}

.hero-orb-2 {
  bottom: -10%;
  left: -10%;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.25rem;
  }
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px auto;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* プレミアムな汎用ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition-normal);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-emerald), var(--accent-mint));
  color: var(--bg-primary);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.3);
}

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

.btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-secondary);
}

/* --- 課題セクション (The Problem) --- */
.section-title-wrap {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px auto;
}

.section-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 900;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

/* ガラスモーフィズム・カード */
.glass-card {
  background: rgba(28, 37, 65, 0.4);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 40px 32px;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2), 0 0 20px var(--accent-glow);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.5rem;
}

.icon-red {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.icon-blue {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.icon-amber {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.card-body {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- アプリケーションショーケースセクション --- */
.showcase {
  background: var(--bg-tertiary);
}

.showcase-layout {
  display: flex;
  align-items: center;
  gap: 80px;
}

@media (max-width: 992px) {
  .showcase-layout {
    flex-direction: column;
    gap: 60px;
  }
}

.showcase-info {
  flex: 1;
}

.showcase-features {
  list-style: none;
  margin-top: 32px;
  display: grid;
  gap: 20px;
}

.showcase-feature-item {
  display: flex;
  gap: 16px;
}

.feature-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: bold;
  flex-shrink: 0;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.feature-text h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

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

.showcase-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* スマホモックアップ */
.phone-frame {
  width: 320px;
  height: 640px;
  border: 12px solid #1e293b;
  border-radius: 44px;
  background: #0f172a;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 40px rgba(16, 185, 129, 0.1);
  position: relative;
  display: flex;
  flex-direction: column;
}

/* アプリケーションインナー */
.app-header {
  height: 56px;
  background: #1e293b;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  font-family: var(--font-base);
  flex-shrink: 0;
}

.app-logo {
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--accent-emerald);
}

.app-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.app-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #0f172a;
}

/* アプリ用カードスタイル */
.app-card {
  background: #1e293b;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--border-light);
}

.app-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.app-badge-green {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
}

.app-badge-blue {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
}

.app-card h4 {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.app-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin: 10px 0;
}

.app-progress {
  height: 100%;
  background: var(--accent-mint);
  border-radius: 3px;
}

.app-card-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.app-btn {
  width: 100%;
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  padding: 10px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 12px;
  transition: var(--transition-fast);
}

.app-btn:hover {
  background: var(--accent-emerald);
}

/* ダッシュボードタブのコンテンツ */
.app-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.app-stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.app-stat-label {
  font-size: 0.65rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.app-stat-val {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--accent-emerald);
}

.app-stat-val-alt {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--text-primary);
}

.app-history-list {
  display: grid;
  gap: 8px;
  font-size: 0.75rem;
  margin-top: 8px;
}

.app-history-item {
  display: flex;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.app-history-item:last-child {
  border-bottom: none;
}

.history-neg {
  color: #f87171;
  font-weight: bold;
}

.history-pos {
  color: var(--accent-emerald);
  font-weight: bold;
}

.doc-download-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.75rem;
  margin-top: 8px;
  cursor: pointer;
}

.doc-download-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-secondary);
}

/* タイムラインタブのコンテンツ */
.post-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.post-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: bold;
}

.post-author {
  font-size: 0.75rem;
  font-weight: bold;
}

.post-time {
  font-size: 0.65rem;
  color: var(--text-secondary);
  margin-left: auto;
}

.post-text {
  font-size: 0.8rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.post-image-placeholder {
  width: 100%;
  height: 120px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  margin-bottom: 8px;
}

.post-actions {
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
  gap: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.post-actions:hover {
  color: #f43f5e;
}

.post-actions svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.post-actions.liked {
  color: #f43f5e;
}
.post-actions.liked svg {
  fill: #f43f5e;
}

/* アプリナビゲーション */
.app-nav {
  height: 56px;
  background: #1e293b;
  border-t: 1px solid var(--border-light);
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-shrink: 0;
}

.app-nav-item {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.6rem;
  font-family: var(--font-base);
  font-weight: 500;
  transition: var(--transition-fast);
}

.app-nav-item svg {
  width: 20px;
  height: 20px;
}

.app-nav-item.active {
  color: var(--accent-emerald);
}

/* --- ガバナンス・組織設計セクション --- */
.governance {
  position: relative;
}

.governance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.gov-card {
  padding: 32px;
  border-radius: 20px;
  background: rgba(28, 37, 65, 0.2);
  border: 1px solid var(--border-light);
}

.gov-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.gov-card h3::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
}

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

/* --- 料金・会員種別セクション --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: stretch;
}

.price-card {
  background: rgba(28, 37, 65, 0.4);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: var(--transition-normal);
  position: relative;
}

.price-card.featured {
  border-color: var(--accent-mint);
  background: rgba(16, 185, 129, 0.04);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.08);
}

.price-card.featured::before {
  content: 'RECOMMENDED';
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--accent-mint);
  color: var(--bg-primary);
  font-size: 0.65rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 99px;
  letter-spacing: 0.05em;
}

.price-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.price-amt {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.price-amt span {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.price-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.price-features {
  list-style: none;
  display: grid;
  gap: 16px;
  text-align: left;
  margin-bottom: 40px;
  font-size: 0.9rem;
}

.price-features li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-features li svg {
  color: var(--accent-mint);
  flex-shrink: 0;
}

.price-btn {
  margin-top: auto;
  width: 100%;
}

/* --- CTA・お問い合わせセクション --- */
.cta {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-y: 1px solid var(--border-light);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.cta-container {
  max-width: 800px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 24px;
}

.cta-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

@media (max-width: 480px) {
  .cta-buttons {
    flex-direction: column;
  }
}

/* --- フッター --- */
.site-footer {
  padding: 60px 0;
  background: var(--bg-primary);
  border-t: 1px solid var(--border-light);
  border-top: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

@media (max-width: 600px) {
  .footer-grid {
    flex-direction: column;
    text-align: center;
  }
}

.footer-copy {
  font-size: 0.8rem;
}

/* --- アニメーションとフェードイン効果 --- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.4s ease forwards;
}
