/* Static pages of the AI審査データベース (generated by scripts/generate-database-pages.py)
   and the "テーマから探す" index on /database. Matches the article pages (news-article-*). */

.dbp-hero {
    padding: 120px 0 36px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}
.dbp-hero .container, .dbp-content .container { max-width: 860px; }
.dbp-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; padding: 0; margin: 0 0 18px; font-size: .8rem; color: var(--color-text-light); }
.dbp-crumbs li + li::before { content: "›"; margin: 0 8px; color: #94a3b8; }
.dbp-crumbs a { color: var(--color-text-medium); text-decoration: none; }
.dbp-crumbs a:hover { text-decoration: underline; }
.dbp-eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; color: #fff; background: #2563eb; padding: 4px 14px; border-radius: 4px; margin-bottom: 14px; }
.dbp-title { font-size: 1.9rem; font-weight: 700; line-height: 1.5; color: var(--color-text); margin: 0 0 12px; }
.dbp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; font-size: .88rem; color: var(--color-text-medium); }

.dbp-content { padding: 44px 0 80px; background: #fff; }
.dbp-article { font-size: 1rem; line-height: 1.95; color: var(--color-text); }
.dbp-article h2 { font-size: 1.3rem; font-weight: 700; margin: 44px 0 16px; padding-bottom: 10px; border-bottom: 2px solid #e2e8f0; }
.dbp-article h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 8px; }
.dbp-article p { margin: 0 0 18px; }
.dbp-article a { color: #2563eb; }
.dbp-lead { color: var(--color-text-medium); }
.dbp-muted { color: #94a3b8; font-style: italic; }
.dbp-more { margin-top: 18px; font-size: .92rem; }

.dbp-law { display: inline-block; font-size: .72rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: #eef2ff; color: #3730a3; margin-right: 4px; }
.dbp-law-yakki { background: #fdf2f8; color: #9d174d; }
.dbp-law-kenzo { background: #ecfdf5; color: #065f46; }
.dbp-law-tokusho { background: #fff7ed; color: #9a3412; }
.dbp-risk { font-size: .78rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.dbp-risk-high { background: #fee2e2; color: #b91c1c; }
.dbp-risk-mid { background: #fef3c7; color: #92400e; }
.dbp-risk-low { background: #e0f2fe; color: #075985; }
.dbp-badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; background: #1e3a5f; color: #fff; margin-right: 6px; }

.dbp-supervisor { display: flex; align-items: center; gap: 16px; padding: 16px 20px; margin-bottom: 8px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; }
.dbp-supervisor img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.dbp-supervisor-eyebrow { font-size: .72rem; font-weight: 700; color: #2563eb; letter-spacing: .04em; }
.dbp-supervisor-name { font-weight: 700; font-size: .98rem; }
.dbp-supervisor-name a { font-weight: 500; font-size: .82rem; margin-left: 8px; color: var(--color-text-medium); }
.dbp-supervisor-scope { font-size: .8rem; color: var(--color-text-medium); }

.dbp-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.dbp-tags li { font-size: .82rem; padding: 4px 12px; border-radius: 6px; background: #f8fafc; border: 1px solid #e2e8f0; color: #475569; }
.dbp-points { list-style: disc; padding-left: 1.3em; margin: 0; }
.dbp-points li { margin-bottom: 6px; }

.dbp-ngok { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dbp-ng, .dbp-ok { border-radius: 10px; padding: 14px 18px; font-size: .92rem; line-height: 1.8; }
.dbp-ng { background: #fef2f2; border: 1px solid #fecaca; }
.dbp-ok { background: #f0fdf4; border: 1px solid #bbf7d0; }
.dbp-ngok ul { list-style: disc; margin: 0; padding-left: 1.2em; }
.dbp-ngok-label { font-weight: 700; font-size: .8rem; margin-bottom: 6px; }
.dbp-ng .dbp-ngok-label { color: #b91c1c; }
.dbp-ok .dbp-ngok-label { color: #15803d; }

.dbp-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid #e2e8f0; }
.dbp-row { padding: 14px 2px; border-bottom: 1px solid #e2e8f0; }
.dbp-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 4px; }
.dbp-date { font-size: .8rem; color: var(--color-text-light); margin-right: 8px; font-variant-numeric: tabular-nums; }
.dbp-row-title { font-weight: 700; font-size: .98rem; line-height: 1.6; text-decoration: none; }
.dbp-row-title:hover { text-decoration: underline; }
.dbp-row-expr { font-size: .86rem; color: #b91c1c; line-height: 1.7; margin-top: 2px; }
.dbp-row-source { font-size: .8rem; color: var(--color-text-light); margin-top: 2px; }

.dbp-links { list-style: disc; padding-left: 1.2em; margin: 0; }
.dbp-links li { margin-bottom: 6px; }
.dbp-links.dbp-inline { list-style: none; }
.dbp-inline { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; padding: 0; }
.dbp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 0; }
.dbp-cards a { display: flex; align-items: baseline; gap: 8px; padding: 12px 14px; border: 1px solid #e2e8f0; border-radius: 10px; text-decoration: none; color: var(--color-text); height: 100%; }
.dbp-cards a:hover { border-color: #93c5fd; background: #f8fafc; }
.dbp-card-id { font-size: .75rem; font-weight: 700; color: #2563eb; }
.dbp-card-name { font-weight: 700; font-size: .92rem; flex: 1; }
.dbp-card-count { font-size: .78rem; color: var(--color-text-light); }

.dbp-facts { width: 100%; border-collapse: collapse; font-size: .9rem; margin-bottom: 8px; }
.dbp-facts th, .dbp-facts td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid #e2e8f0; line-height: 1.7; }
.dbp-facts th { width: 9.5em; color: var(--color-text-medium); font-weight: 600; background: #f8fafc; }
.dbp-expr { list-style: none; padding: 0; margin: 0; }
.dbp-expr li { padding: 8px 14px; margin-bottom: 8px; background: #fef2f2; border-left: 3px solid #ef4444; border-radius: 4px; color: #991b1b; font-size: .95rem; }
.dbp-okbox { padding: 12px 16px 2px; background: #f0fdf4; border-left: 3px solid #22c55e; border-radius: 4px; color: #14532d; }

.dbp-check { padding: 14px 18px; margin-bottom: 12px; border: 1px solid #e2e8f0; border-radius: 10px; break-inside: avoid; }
.dbp-check h3 a { color: var(--color-text); text-decoration: none; }
.dbp-checkbox { list-style: none; padding: 0; margin: 6px 0 8px; }
.dbp-checkbox li { position: relative; padding-left: 1.8em; margin-bottom: 4px; font-size: .94rem; }
.dbp-checkbox li::before { content: ""; position: absolute; left: 0; top: .45em; width: 1em; height: 1em; border: 1.5px solid #64748b; border-radius: 3px; }
.dbp-ng-inline { font-size: .86rem; color: #b91c1c; margin: 0; }

.dbp-cta { margin-top: 48px; padding: 28px 30px; border-radius: 14px; background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%); color: #fff; }
.dbp-cta h2 { font-size: 1.25rem; font-weight: 700; margin: 0 0 10px; color: #fff; border: 0; padding: 0; }
.dbp-cta p { font-size: .94rem; line-height: 1.85; margin: 0 0 18px; color: rgba(255,255,255,.92); }
.dbp-cta-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.dbp-cta .btn-primary { background: #fff !important; color: #1e3a8a !important; border-color: #fff !important; }
.dbp-btn-ghost { background: transparent !important; color: #fff !important; border: 1.5px solid rgba(255,255,255,.7) !important; }
.dbp-disclaimer { margin-top: 28px; font-size: .78rem; line-height: 1.8; color: var(--color-text-light); }

/* "テーマから探す" on /database */
.db-topics { padding: 56px 0 24px; background: #fff; }
.db-topics .container { max-width: 1100px; }
.db-topics-title { font-size: 1.4rem; font-weight: 700; margin: 0 0 20px; }
.db-topics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.db-topic { padding: 18px 20px; border: 1px solid #e8ecf1; border-radius: 12px; background: #fafbfc; }
.db-topic h3 { font-size: .95rem; font-weight: 700; margin: 0 0 8px; }
.db-topic h3 + ul { margin-bottom: 16px; }
.db-topic ul { list-style: none; padding: 0; margin: 0; }
.db-topic li a { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; font-size: .88rem; color: #1e293b; text-decoration: none; border-bottom: 1px dashed #e2e8f0; }
.db-topic li a:hover { color: #2563eb; }
.db-topic li a span { color: #94a3b8; font-size: .78rem; white-space: nowrap; }
.db-topic-inline { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.db-topic-inline li a { border: 0; }
.db-topics-sub { font-size: 1.05rem; font-weight: 700; margin: 32px 0 10px; }
.db-latest { list-style: none; padding: 0; margin: 0; border-top: 1px solid #e8ecf1; }
.db-latest li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 2px; border-bottom: 1px solid #e8ecf1; font-size: .9rem; }
.db-latest li span { color: #64748b; font-size: .8rem; font-variant-numeric: tabular-nums; }
.db-latest li em { font-style: normal; font-size: .72rem; font-weight: 700; padding: 1px 7px; border-radius: 4px; background: #1e3a5f; color: #fff; }
.db-latest li a { color: #1e293b; font-weight: 600; text-decoration: none; }
.db-latest li a:hover { color: #2563eb; text-decoration: underline; }
.db-topics-note { margin-top: 18px; font-size: .76rem; line-height: 1.8; color: #94a3b8; }

@media (max-width: 860px) {
    .db-topics-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .dbp-hero { padding: 100px 0 28px; }
    .dbp-title { font-size: 1.45rem; }
    .dbp-ngok { grid-template-columns: 1fr; }
    .dbp-facts th { width: 7em; }
    .dbp-cta { padding: 22px 20px; }
}
@media print {
    .header, .footer, .dbp-cta, .dbp-print, .dbp-crumbs, .db-cta { display: none !important; }
    .dbp-hero { padding: 0 0 12px; background: none; }
    .dbp-content { padding: 0; }
    .dbp-article a { color: inherit; text-decoration: none; }
}
