/*
  WGE 共通CSS
  --------------------------------------------------
  目的:
  - 総合TOPと今後の各モジュールで見た目をそろえる
  - 色、余白、ボタン、カード、見出しのルールを共通化する
  - 初心者でも編集しやすいようにクラス名をわかりやすくする
*/

:root {
  --bg: #f3f6fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --line: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --sidebar: #0f172a;
  --sidebar-2: #111827;
  --primary: #0f172a;
  --primary-2: #1d4ed8;
  --success-bg: #dcfce7;
  --success-text: #15803d;
  --warn-bg: #fef3c7;
  --warn-text: #b45309;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.16);
  --radius: 24px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }

.wge-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
}

.wge-sidebar {
  background: linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-2) 100%);
  color: #fff;
  padding: 24px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.wge-logo-small {
  font-size: 11px;
  letter-spacing: 0.25em;
  color: #94a3b8;
  margin-bottom: 6px;
}
.wge-logo {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 24px;
}
.wge-nav-group { margin-bottom: 28px; }
.wge-nav-title {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.wge-nav-item {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  color: #e2e8f0;
  margin-bottom: 8px;
  transition: 0.2s ease;
}
.wge-nav-item:hover,
.wge-nav-item.active {
  background: rgba(255,255,255,0.09);
  color: #fff;
}

.wge-main { padding: 28px; }
.wge-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.wge-topbar h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.2;
}
.wge-topbar p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.wge-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.wge-btn {
  display: inline-block;
  border: none;
  border-radius: 16px;
  padding: 12px 18px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(15,23,42,0.08);
}
.wge-btn-primary {
  background: var(--primary);
  color: #fff;
}
.wge-btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 1px solid #dbe4f0;
}
.wge-btn-soft {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #dbeafe;
  box-shadow: none;
}

.wge-hero {
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  color: #fff;
  border-radius: 28px;
  padding: 30px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 24px;
}
.wge-hero-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255,255,255,0.12);
  margin-bottom: 14px;
}
.wge-hero h2 {
  margin: 0 0 14px;
  font-size: 38px;
  line-height: 1.2;
}
.wge-hero p {
  margin: 0;
  max-width: 860px;
  color: #dbeafe;
  line-height: 1.8;
}

.wge-grid-4,
.wge-grid-3,
.wge-grid-2 {
  display: grid;
  gap: 16px;
}
.wge-grid-4 { grid-template-columns: repeat(4, 1fr); }
.wge-grid-3 { grid-template-columns: repeat(3, 1fr); }
.wge-grid-2 { grid-template-columns: repeat(2, 1fr); }

.wge-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid #e5edf6;
}
.wge-card h3,
.wge-card h4 {
  margin-top: 0;
}
.wge-stat-label {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}
.wge-stat-value {
  font-size: 34px;
  font-weight: 800;
}
.wge-stat-sub {
  color: #94a3b8;
  font-size: 13px;
  margin-top: 6px;
}

.wge-section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin: 26px 0 14px;
}
.wge-section-title h3 {
  margin: 0;
  font-size: 26px;
}
.wge-section-title p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.wge-module-card {
  background: #fff;
  border-radius: 24px;
  padding: 22px;
  border: 1px solid #e5edf6;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.wge-module-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(15,23,42,0.09);
}
.wge-module-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
  margin-bottom: 14px;
}
.wge-module-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0;
}
.wge-module-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 5px;
}
.wge-status {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.wge-status-live { background: var(--success-bg); color: var(--success-text); }
.wge-status-next { background: var(--warn-bg); color: var(--warn-text); }
.wge-module-desc {
  color: #475569;
  font-size: 14px;
  line-height: 1.8;
  min-height: 72px;
}
.wge-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}
.wge-chip {
  background: #f1f5f9;
  color: #334155;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
}
.wge-module-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.wge-module-actions .wge-btn {
  text-align: center;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  box-shadow: none;
}

.wge-notice {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 12px;
}
.wge-notice strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}
.wge-list {
  margin: 0;
  padding-left: 20px;
  color: #334155;
  line-height: 1.9;
}
.wge-small {
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 1200px) {
  .wge-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .wge-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .wge-app { grid-template-columns: 1fr; }
  .wge-sidebar {
    position: static;
    height: auto;
  }
  .wge-main { padding: 18px; }
  .wge-topbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .wge-grid-4,
  .wge-grid-3,
  .wge-grid-2,
  .wge-module-actions {
    grid-template-columns: 1fr;
  }
  .wge-hero h2 { font-size: 30px; }
}
