/* WATASEE3 v2 - グローバルスタイル */
:root {
  --primary: #2d6a4f;
  --primary-light: #52b788;
  --primary-dark: #1b4332;
  --accent: #74c69d;
  --text: #2d3748;
  --text-light: #718096;
  --bg: #f7fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --success: #38a169;
  --warning: #d69e2e;
  --danger: #e53e3e;
  --info: #3182ce;
  --strength: #38a169;
  --load: #e53e3e;
  --neutral: #718096;
  font-family: 'Noto Sans JP', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body { background: var(--bg); color: var(--text); }

/* ナビゲーション */
.nav {
  background: white;
  border-bottom: 2px solid var(--primary);
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.nav-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  margin-right: 16px;
}
.nav-logo-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 0.05em;
}
.nav-logo-sub {
  font-size: 10px;
  color: var(--primary-light);
}
.nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
}
.nav-link {
  padding: 6px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  transition: all 0.2s;
  border: none;
  background: none;
  cursor: pointer;
}
/* 会員ナビ（白背景）のホバー・アクティブ */
.nav-link:hover, .nav-link.active {
  background: #f0faf5;
  color: var(--primary);
}
.nav-link.active {
  border-bottom: 2px solid var(--primary);
  border-radius: 6px 6px 0 0;
}

/* 管理者ナビ（ダークネイビー背景）専用スタイル */
.nav-admin .nav-link {
  color: #ecf0f1;
}
.nav-admin .nav-link:hover {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
}
.nav-admin .nav-link.active {
  background: rgba(255,255,255,0.18);
  color: #ffffff;
  border-bottom: 2px solid #e67e22;
  border-radius: 6px 6px 0 0;
}
.nav-admin .nav-link-muted {
  color: #bdc3c7 !important;
}
.nav-admin .nav-link-muted:hover {
  background: rgba(255,255,255,0.10);
  color: #ecf0f1 !important;
}
.nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: 14px;
  color: var(--text-light);
}
.btn {
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: #f0faf5; }
.btn-sm {
  padding: 4px 12px;
  font-size: 12px;
}

/* カード */
.card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  border: 1px solid var(--border);
}
.section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.section-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.section-detail-btn {
  margin-left: auto;
  font-size: 12px;
  color: var(--primary);
  background: #f0faf5;
  border: 1px solid var(--accent);
  padding: 3px 10px;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
}

/* タブ */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 12px;
}
.tab-btn {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  background: none;
  color: var(--text-light);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
}
.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 700;
}

/* 横棒グラフ */
.bar-chart-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.bar-label {
  width: 130px;
  font-size: 12px;
  color: var(--text);
  flex-shrink: 0;
  text-align: right;
}
.bar-track {
  flex: 1;
  height: 14px;
  background: #f0f0f0;
  border-radius: 7px;
  overflow: hidden;
  position: relative;
}
.bar-fill {
  height: 100%;
  border-radius: 7px;
  transition: width 0.6s ease;
}
.bar-fill.strength { background: linear-gradient(90deg, #52b788, #2d6a4f); }
.bar-fill.load { background: linear-gradient(90deg, #fc8181, #e53e3e); }
.bar-fill.neutral { background: linear-gradient(90deg, #a0aec0, #718096); }
.bar-value {
  width: 40px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.bar-value.pos { color: var(--strength); }
.bar-value.neg { color: var(--load); }

/* 条件タグ */
.condition-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0faf5;
  border: 1px solid #b7e4c7;
  color: var(--primary-dark);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin: 3px;
}
.condition-tag .icon { font-size: 16px; }

/* リストアイテム */
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  font-size: 13px;
  color: var(--text);
}
.check-icon { color: var(--success); font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* バナー */
.hero-banner {
  background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 50%, #52b788 100%);
  color: white;
  padding: 28px 32px;
  border-radius: 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  overflow: hidden;
}
.hero-banner::after {
  content: 'Different Minds\A A Brighter World';
  white-space: pre;
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  text-align: center;
  line-height: 1.6;
  font-style: italic;
}
.hero-title { font-size: 28px; font-weight: 900; letter-spacing: 0.02em; }
.hero-sub { font-size: 14px; opacity: 0.85; margin-top: 6px; }
.hero-about {
  background: rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 14px 18px;
  max-width: 320px;
  font-size: 12px;
  line-height: 1.7;
  backdrop-filter: blur(4px);
}

/* レポートグリッド */
.report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
.report-grid-wide {
  grid-column: span 2;
}
.report-grid-full {
  grid-column: span 3;
}

/* テーブル */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.data-table th {
  background: #f7fafc;
  color: var(--text-light);
  font-weight: 600;
  padding: 8px 10px;
  text-align: center;
  border-bottom: 2px solid var(--border);
}
.data-table td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.data-table td:first-child { text-align: left; font-weight: 500; }

/* スコアバッジ（0-4スケール対応）*/
.score-badge {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--border);
  color: white;
  text-align: center;
  line-height: 24px;
  font-size: 11px;
  font-weight: 700;
}
/* 0=特にない(灰) / 1=少しある(薄赤) / 2=はっきりある(橙) / 3=かなりある(緑) / 4=とても強い(濃緑) */
.score-badge.s0 { background: #a0aec0; }
.score-badge.s1 { background: #fc8181; }
.score-badge.s2 { background: #f6ad55; }
.score-badge.s3 { background: #52b788; }
.score-badge.s4 { background: #2d6a4f; }

/* アセスメントフォーム */
.question-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border);
  margin-bottom: 12px;
}
.question-num {
  font-size: 11px;
  color: var(--text-light);
  margin-bottom: 8px;
}
.question-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 16px;
}
.scale-buttons {
  display: flex;
  gap: 6px;
  justify-content: center;
}
.scale-btn {
  flex: 1;
  max-width: 80px;
  padding: 10px 4px;
  border-radius: 8px;
  border: 2px solid var(--border);
  background: white;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
  font-size: 12px;
  color: var(--text-light);
}
.scale-btn:hover { border-color: var(--primary); }
.scale-btn.selected { border-color: var(--primary); background: #f0faf5; color: var(--primary); font-weight: 700; }
.scale-num { font-size: 20px; font-weight: 700; display: block; }

/* プログレスバー */
.progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin: 12px 0;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  border-radius: 3px;
  transition: width 0.4s ease;
}

/* ログインページ */
.login-container {
  max-width: 400px;
  margin: 80px auto;
  padding: 0 16px;
}
.login-card {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}
.form-group {
  margin-bottom: 16px;
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
.form-input:focus { border-color: var(--primary); }

/* アラート */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}
.alert-error { background: #fff5f5; border: 1px solid #fc8181; color: #c53030; }
.alert-success { background: #f0faf5; border: 1px solid var(--accent); color: var(--primary-dark); }

/* フッター */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 24px 20px;
  margin-top: 40px;
  font-size: 12px;
}
.footer a { color: rgba(255,255,255,0.8); text-decoration: none; }
.footer-link {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s;
}
.footer-link:hover { color: #ffffff; text-decoration: underline; }

/* 利用規約・プライバシーポリシーページ */
.terms-section { font-size: 14px; color: #374151; line-height: 1.9; }
.terms-block {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid #E5E7EB;
}
.terms-block:last-child { border-bottom: none; }
.terms-h2 {
  font-size: 16px;
  font-weight: 800;
  color: #1b4332;
  margin-bottom: 12px;
  padding-left: 10px;
  border-left: 4px solid #2d6a4f;
}
.terms-list {
  padding-left: 20px;
  margin: 8px 0;
}
.terms-list li {
  margin-bottom: 6px;
  line-height: 1.8;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .report-grid { grid-template-columns: 1fr; }
  .report-grid-wide { grid-column: span 1; }
  .report-grid-full { grid-column: span 1; }
  .hero-banner { flex-direction: column; }
  .hero-about { max-width: 100%; }
  .nav-links { display: none; }
  .bar-label { width: 90px; font-size: 11px; }
}

/* アニメーション */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.3s ease; }

/* 環境適合度バー */
.env-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.env-bar-label {
  width: 120px;
  font-size: 12px;
  color: var(--text);
  flex-shrink: 0;
}
.env-bar-track {
  flex: 1;
  height: 16px;
  background: #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
}
.env-bar-fill {
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, #fc8181 0%, #f6e05e 50%, #68d391 100%);
  transition: width 0.6s ease;
}
.env-bar-pct { font-size: 12px; font-weight: 600; width: 36px; }

/* アイデアカード */
.idea-card {
  background: #f8fafc;
  border-radius: 10px;
  padding: 14px;
  border: 1px solid var(--border);
}
.idea-card-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.idea-card ul {
  list-style: none;
  padding: 0;
}
.idea-card li {
  font-size: 12px;
  color: var(--text);
  padding: 3px 0;
  padding-left: 14px;
  position: relative;
}
.idea-card li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary-light);
}

/* ローダー */
.loader {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  color: var(--text-light);
  font-size: 14px;
  gap: 10px;
}
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* アクションプランCTAボタン */
.cta-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: 12px;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  line-height: 1.5;
  transition: all 0.2s;
  width: 100%;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(45,106,79,0.4); }
