/* ========================================================
   視覚多様性シミュレーター ヘルプ専用スタイル (help.css)
   ======================================================== */

:root {
  --bg-dark: #0a0f1d;
  --bg-surface: #151e32;
  --bg-card: #1c2742;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.25);
  --border: rgba(255, 255, 255, 0.1);
  --border-light: rgba(255, 255, 255, 0.05);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 60px;
}

/* ヘッダー */
.help-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 29, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.back-btn:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.16);
}

.header-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* コンテナ */
.help-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* ヒーローセクション */
.help-hero {
  text-align: center;
  padding: 20px 0 32px;
}

.hero-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  display: inline-block;
}

.hero-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.3;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* クイック目次 */
.toc-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 32px;
}

.toc-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.toc-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.15s ease;
}

.toc-list a:hover,
.toc-list a:active {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent);
}

/* セクション共通 */
.help-section {
  margin-bottom: 40px;
  scroll-margin-top: 70px;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* カード共通 */
.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 14px;
}

.feature-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.feature-icon {
  font-size: 1.4rem;
  background: rgba(255, 255, 255, 0.06);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.feature-desc {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.feature-badge {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent);
  margin-left: auto;
  font-weight: 600;
}

.feature-badge.secure {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.feature-security-note {
  margin-top: 12px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-left: 4px solid #10b981;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: #d1fae5;
  line-height: 1.5;
}

.feature-security-note strong {
  color: #34d399;
  display: block;
  margin-bottom: 3px;
  font-size: 0.88rem;
}

/* 見え方解説カード */
.vision-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vision-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

.vision-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.vision-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vision-tag {
  background: var(--accent);
  color: #0a0f1d;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

/* 白内障タグ（コントラスト比 8.9:1 / WCAG AAA準拠） */
.vision-tag.tag-cataract {
  background: #f59e0b;
  color: #0a0f1d;
}

/* 緑内障タグ（コントラスト比 8.3:1 / WCAG AAA準拠） */
.vision-tag.tag-glaucoma {
  background: #991b1b;
  color: #ffffff;
  border: 1px solid rgba(254, 202, 202, 0.3);
}

.vision-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

.vision-ratio {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.vision-desc {
  font-size: 0.9rem;
  color: #cbd5e1;
  margin-bottom: 12px;
  line-height: 1.6;
}

.vision-characteristics {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.85rem;
  color: #94a3b8;
}

.vision-characteristics strong {
  color: #e2e8f0;
}

/* デザイン配慮のヒント */
.tips-box {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(56, 189, 248, 0.05) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
}

.tips-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tips-list {
  padding-left: 20px;
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.7;
}

/* プライバシーバナー */
.privacy-banner {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 24px;
}

.privacy-banner-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #34d399;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.privacy-banner-text {
  font-size: 0.9rem;
  color: #d1fae5;
  line-height: 1.6;
}

/* FAQ カード */
.faq-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 12px;
}

.faq-q {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.faq-q-icon {
  color: var(--accent);
  font-weight: 800;
}

.faq-a {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.6;
  padding-left: 22px;
}

/* アラート・免責 */
.disclaimer-box {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 32px 0 24px;
  font-size: 0.82rem;
  color: #fbbf24;
  line-height: 1.6;
}

/* 下部フッター */
.help-footer {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
  color: #ffffff;
  padding: 12px 28px;
  border-radius: 28px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  margin-bottom: 20px;
  transition: transform 0.15s ease;
}

.footer-back-btn:active {
  transform: scale(0.96);
}

.copyright {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* お問い合わせボックス */
.contact-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 20px;
  margin: 32px 0 24px;
  text-align: center;
}

.contact-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.contact-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--accent);
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
  transition: all 0.15s ease;
}

.contact-email:hover,
.contact-email:active {
  background: rgba(56, 189, 248, 0.24);
  transform: scale(0.98);
}

