/* CA Policy Analyzer — Manual Shared Styles */
/* Matches the design language of the main site (index.html, privacy-policy.html, support.html) */

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', 'Yu Gothic UI', sans-serif; line-height: 1.7; color: #1a1a2e; background: #f8f9fa; }
.container { max-width: 720px; margin: 0 auto; padding: 40px 24px; }
h1 { font-size: 1.5rem; margin-bottom: 8px; color: #0f172a; }
.subtitle { font-size: 0.85rem; color: #64748b; margin-bottom: 32px; }
h2 { font-size: 1.1rem; margin: 28px 0 8px; color: #1e3a5f; border-left: 3px solid #3b82f6; padding-left: 10px; }
h3 { font-size: 1rem; margin: 20px 0 6px; color: #1e3a5f; }
p, li { font-size: 0.95rem; margin-bottom: 8px; }
ul, ol { padding-left: 20px; margin-bottom: 12px; }
a { color: #3b82f6; text-decoration: none; }
a:hover { text-decoration: underline; }
code { background: #f1f5f9; padding: 1px 5px; border-radius: 3px; font-size: 0.9em; }
strong { color: #0f172a; }

/* Language toggle */
.lang-toggle { text-align: right; margin-bottom: 20px; }
.lang-toggle button { background: #e2e8f0; border: none; padding: 6px 14px; border-radius: 4px; cursor: pointer; font-size: 0.85rem; }
.lang-toggle button.active { background: #3b82f6; color: #fff; }
.section-ja, .section-en { display: none; }
.section-ja.visible, .section-en.visible { display: block; }

/* Navigation */
.nav-links { margin-bottom: 24px; font-size: 0.85rem; }
.nav-links a { margin-right: 16px; }

/* Chapter navigation (prev/next) */
.chapter-nav { display: flex; justify-content: space-between; margin-top: 32px; padding-top: 16px; border-top: 1px solid #e2e8f0; font-size: 0.85rem; }
.chapter-nav a { display: inline-block; padding: 6px 14px; background: #e2e8f0; color: #1e3a5f; border-radius: 4px; }
.chapter-nav a:hover { background: #3b82f6; color: #fff; text-decoration: none; }
.chapter-nav .spacer { flex: 1; }

/* Info / Tip / Warning boxes */
.info-box { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; padding: 16px; margin: 16px 0; }
.info-box p { font-size: 0.9rem; color: #1e40af; margin-bottom: 0; }
.tip-box { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; padding: 16px; margin: 16px 0; }
.tip-box p { font-size: 0.9rem; color: #166534; margin-bottom: 0; }
.warning-box { background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 16px; margin: 16px 0; }
.warning-box p { font-size: 0.9rem; color: #92400e; margin-bottom: 0; }

/* Cards */
.card { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 16px; margin: 12px 0; }
.card h3 { margin-top: 0; }
.card p { font-size: 0.9rem; color: #475569; }

/* Feature grid */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.feature-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 16px; }
.feature-card h3 { font-size: 0.95rem; color: #1e3a5f; margin-bottom: 6px; margin-top: 0; }
.feature-card p { font-size: 0.85rem; color: #475569; }

/* Tables */
.manual-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.9rem; }
.manual-table th, .manual-table td { border: 1px solid #e2e8f0; padding: 10px 12px; text-align: left; }
.manual-table th { background: #f1f5f9; color: #1e3a5f; font-weight: 600; }
.manual-table td { background: #fff; }

/* Status badges */
.badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 600; }
.badge-compliant { background: #dcfce7; color: #166534; }
.badge-weak { background: #fef9c3; color: #854d0e; }
.badge-missing { background: #fee2e2; color: #991b1b; }
.badge-misconfigured { background: #ffedd5; color: #9a3412; }
.badge-designflaw { background: #f3e8ff; color: #6b21a8; }

/* Pro badge */
.pro-badge { background: #f59e0b; color: #fff; font-size: 0.7rem; padding: 1px 6px; border-radius: 3px; margin-left: 6px; vertical-align: middle; }

/* Steps (numbered procedure) */
.steps { counter-reset: step-counter; list-style: none; padding-left: 0; }
.steps li { counter-increment: step-counter; position: relative; padding-left: 36px; margin-bottom: 16px; }
.steps li::before { content: counter(step-counter); position: absolute; left: 0; top: 0; width: 24px; height: 24px; background: #3b82f6; color: #fff; border-radius: 50%; text-align: center; line-height: 24px; font-size: 0.8rem; font-weight: 600; }

/* TOC (index page) */
.toc-list { list-style: none; padding-left: 0; }
.toc-list li { margin-bottom: 8px; }
.toc-list a { display: block; padding: 12px 16px; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 0.95rem; transition: border-color 0.15s; }
.toc-list a:hover { border-color: #3b82f6; text-decoration: none; }
.toc-list .toc-num { color: #3b82f6; font-weight: 600; margin-right: 8px; }
.toc-list .toc-desc { display: block; font-size: 0.8rem; color: #64748b; margin-top: 2px; }

/* Screenshots */
.screenshot { display: block; max-width: 100%; height: auto; border: 1px solid #e2e8f0; border-radius: 8px; margin: 16px 0; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.screenshot-caption { font-size: 0.8rem; color: #64748b; text-align: center; margin: -8px 0 16px; }

/* Footer */
.footer { margin-top: 40px; padding-top: 16px; border-top: 1px solid #e2e8f0; font-size: 0.8rem; color: #94a3b8; text-align: center; }
.footer a { color: #64748b; }
