/* ============================================================
   style.css — 日経225 決算ナビ
   water.css をベースに上書き
   ============================================================ */

:root {
    --c-primary: #1a5276;
    --c-accent: #2e86c1;
    --c-success: #1e8449;
    --c-danger: #c0392b;
    --c-warning: #d4ac0d;
    --c-bg-card: #ffffff;
    --c-bg-page: #f8f9fa;
    --c-border: #dee2e6;
    --c-text: #2c3e50;
    --c-text-muted: #7f8c8d;
}

body {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
    background: var(--c-bg-page);
    color: var(--c-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
}

/* --- ナビゲーション --- */
nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--c-border);
    margin-bottom: 2rem;
}
.site-logo {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--c-primary);
    text-decoration: none;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}
.nav-links a { color: var(--c-text); text-decoration: none; font-size: 0.9rem; }
.nav-links a:hover { color: var(--c-accent); }

/* --- サブタイトル --- */
.subtitle { color: var(--c-text-muted); margin-top: -0.5rem; }

/* --- フィルタバー --- */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
    align-items: center;
}
.filter-bar .btn {
    padding: 0.4rem 1rem;
    border: 1px solid var(--c-border);
    border-radius: 4px;
    background: var(--c-bg-card);
    color: var(--c-text);
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
}
.filter-bar .btn.active {
    background: var(--c-primary);
    color: #fff;
    border-color: var(--c-primary);
}
.filter-sep { color: var(--c-border); }
.filter-note { font-size: 0.85rem; color: var(--c-accent); margin-top: -0.5rem; }

/* --- 決算カード --- */
.earnings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}
.earnings-card {
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: 8px;
    padding: 1rem;
    transition: box-shadow 0.2s;
}
.earnings-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.card-positive { border-left: 4px solid var(--c-success); }
.card-negative { border-left: 4px solid var(--c-danger); }

.card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.card-header a { text-decoration: none; color: var(--c-text); }
.card-header a:hover { color: var(--c-accent); }
.sec-code { color: var(--c-text-muted); font-size: 0.85rem; }
.badge {
    background: var(--c-accent);
    color: #fff;
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
}
.disclosure-date { margin-left: auto; font-size: 0.8rem; color: var(--c-text-muted); }

.card-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.5rem;
}
.card-metrics .metric { text-align: center; }
.card-metrics .label { display: block; font-size: 0.75rem; color: var(--c-text-muted); }
.card-metrics .value { font-size: 1rem; font-weight: 600; }

.card-forecast {
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--c-border);
    font-size: 0.85rem;
    color: var(--c-text-muted);
}
.card-footer {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.8rem;
}
.industry { color: var(--c-text-muted); }
.pdf-link { color: var(--c-accent); }

/* --- 主要指標グリッド --- */
.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin: 1rem 0;
}
.metric-card {
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: 6px;
    padding: 0.75rem;
    text-align: center;
}
.metric-card .label { display: block; font-size: 0.8rem; color: var(--c-text-muted); margin-bottom: 0.25rem; }
.metric-card .label sup { color: var(--c-accent); font-weight: 600; margin-left: 1px; }
.metric-card .value { font-size: 1.3rem; font-weight: 600; color: var(--c-primary); }

/* --- ツールチップ (派生指標カード) --- */
.metric-card.has-tooltip { position: relative; cursor: help; }
.metric-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    width: max-content;
    max-width: 320px;
    padding: 0.7rem 0.85rem;
    background: var(--c-text);
    color: #fff;
    font-size: 0.78rem;
    line-height: 1.55;
    border-radius: 6px;
    text-align: left;
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
.metric-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--c-text);
}
.metric-card.has-tooltip:hover .metric-tooltip,
.metric-card.has-tooltip:focus-within .metric-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.metric-tooltip .tt-row { display: block; margin: 0; }
.metric-tooltip .tt-row + .tt-row { margin-top: 0.35rem; padding-top: 0.35rem; border-top: 1px solid rgba(255, 255, 255, 0.15); }
.metric-tooltip .tt-key {
    display: block;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.04em;
    margin-bottom: 0.1rem;
}
.metric-tooltip .tt-val { display: block; font-weight: 600; }
.metric-tooltip .tt-steps { font-variant-numeric: tabular-nums; word-break: keep-all; }

.metric-disclaimer {
    margin: 0.75rem 0 0;
    padding: 0.6rem 0.8rem;
    font-size: 0.78rem;
    line-height: 1.6;
    color: var(--c-text-muted);
    background: var(--c-bg-page);
    border-left: 3px solid var(--c-accent);
    border-radius: 3px;
}
.metric-disclaimer sup { color: var(--c-accent); font-weight: 600; }

/* --- 指標セクション (5分割: 主要/収益性/成長性/安全性/派生) --- */
.metric-section { margin-top: 1.5rem; }
.metric-section:first-of-type { margin-top: 1rem; }
.metric-section > h3 {
    font-size: 1.05rem;
    color: var(--c-primary);
    border-bottom: 1px solid var(--c-border);
    padding-bottom: 0.4rem;
    margin: 0 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.metric-section-derived > h3 { color: var(--c-accent); }
.badge-ref {
    font-size: 0.68rem;
    color: #fff;
    background: var(--c-accent);
    padding: 0.12rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* --- 成長性マトリクス --- */
.growth-matrix-wrap { overflow-x: auto; margin-top: 0.25rem; }
.growth-matrix {
    width: 100%;
    max-width: 560px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.95rem;
}
.growth-matrix th,
.growth-matrix td {
    padding: 0.6rem 0.8rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
    border-bottom: 1px solid var(--c-border);
}
.growth-matrix thead th {
    background: var(--c-bg-page);
    color: var(--c-text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: none;
}
.growth-matrix tbody th {
    background: var(--c-bg-page);
    color: var(--c-primary);
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    width: 5rem;
}
.growth-matrix tbody td { font-weight: 600; }
.growth-matrix tbody tr:last-child th,
.growth-matrix tbody tr:last-child td { border-bottom: none; }

/* --- キャッシュフロー / 業績予想セクション --- */
.cashflow-section, .forecast-section { margin-top: 2rem; }
.cf-summary { margin-bottom: 1rem; }
.section-note {
    margin: 0.5rem 0 0;
    font-size: 0.78rem;
    color: var(--c-text-muted);
    line-height: 1.6;
}
.section-note sup { color: var(--c-accent); font-weight: 600; }
.forecast-meta {
    font-size: 0.85rem;
    color: var(--c-text-muted);
    font-weight: 400;
    margin-left: 0.6rem;
}
.forecast-table .highlight { color: var(--c-primary); font-size: 1.02rem; }
.forecast-table .forecast-derived td:first-child {
    color: var(--c-accent);
    font-weight: 600;
}
.forecast-table .forecast-derived td:first-child sup { font-weight: 600; }
.forecast-table .forecast-derived { background: rgba(46, 134, 193, 0.04); }

/* --- 損益計算書 (Phase 2D) --- */
.pl-section { margin-top: 2rem; }
.pl-table { max-width: 640px; }
.pl-table th[scope], .pl-table tbody th {
    background: var(--c-bg-page);
    color: var(--c-text);
    text-align: left;
    font-weight: 500;
}
.pl-table .pl-revenue th { font-weight: 700; color: var(--c-primary); }
.pl-table .pl-revenue td { font-weight: 700; }
.pl-table .pl-cost th { padding-left: 1.5rem; color: var(--c-text-muted); }
.pl-table .pl-cost td { color: var(--c-text-muted); }
.pl-table .pl-subtotal th { font-weight: 700; color: var(--c-primary); border-top: 1px solid var(--c-border); }
.pl-table .pl-subtotal td { font-weight: 700; border-top: 1px solid var(--c-border); }
.pl-table .pl-final th {
    font-weight: 700;
    color: #fff;
    background: var(--c-primary);
    border-top: 2px solid var(--c-primary);
}
.pl-table .pl-final td {
    font-weight: 700;
    color: var(--c-primary);
    border-top: 2px solid var(--c-primary);
}

/* --- 貸借対照表 (Phase B-1) --- */
.bs-section { margin-top: 2rem; }
.bs-table { max-width: 720px; }
.bs-table tbody th { background: transparent; color: var(--c-text); text-align: left; font-weight: 400; }
.bs-table .bs-section-header th {
    background: var(--c-primary);
    color: #fff;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    padding: 0.45rem 0.8rem;
    font-weight: 600;
}
.bs-table .bs-total th {
    font-weight: 700;
    color: var(--c-primary);
    border-top: 1px solid var(--c-border);
}
.bs-table .bs-total td {
    font-weight: 700;
    border-top: 1px solid var(--c-border);
}
.bs-table .bs-detail th { padding-left: 1.5rem; color: var(--c-text-muted); }
.bs-table .bs-detail td { color: var(--c-text-muted); }
.bs-table .bs-detail.bs-deep th { padding-left: 2.6rem; font-size: 0.85rem; }
.bs-table .bs-detail.bs-deep td { font-size: 0.88rem; }

/* --- 事業規模カード (Phase B-2) --- */
.biz-scale-section { margin-top: 2rem; }
.metric-card .metric-sub {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.72rem;
    color: var(--c-text-muted);
    line-height: 1.3;
}

/* --- 業種比較 (パッケージC) --- */
.industry-compare-section { margin-top: 2rem; }
.industry-compare-section h2 .ic-subtitle {
    display: inline-block;
    margin-left: 0.8rem;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--c-text-muted);
}
.badge-info, .badge-warn {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0.1rem 0.45rem;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-left: 0.4rem;
    vertical-align: middle;
}
.badge-info { background: var(--c-accent); color: #fff; }
.badge-warn { background: var(--c-warning); color: #fff; }
.text-warning { color: var(--c-warning); }

.industry-compare-table {
    max-width: 760px;
    font-variant-numeric: tabular-nums;
}
.industry-compare-table th .th-sub {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.78);
    margin-top: 0.15rem;
}
.industry-compare-table tbody th {
    background: var(--c-bg-page);
    color: var(--c-text);
    font-weight: 600;
    text-align: left;
}
.industry-compare-table .self-val {
    font-weight: 700;
    color: var(--c-primary);
}

/* --- AI要約 (パッケージD-1) --- */
.ai-summary-section { margin-top: 1.5rem; }
.ai-summary-block {
    padding: 0.9rem 1.1rem;
    background: linear-gradient(135deg, rgba(46,134,193,0.08), rgba(26,82,118,0.04));
    border: 1px solid var(--c-border);
    border-left: 4px solid var(--c-primary);
    border-radius: 6px;
}
.ai-summary-block > summary {
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--c-primary);
    user-select: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.ai-summary-block > summary::marker { color: var(--c-accent); }
.ai-badge {
    display: inline-block;
    background: var(--c-primary);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
}
.ai-meta {
    font-size: 0.72rem;
    color: var(--c-text-muted);
    font-weight: 400;
}
.ai-summary-body {
    margin-top: 0.75rem;
    padding: 0.8rem 1rem;
    background: var(--c-bg-card);
    border-radius: 4px;
    font-size: 0.92rem;
    line-height: 1.7;
    white-space: pre-wrap;
}
.ai-summary-en {
    margin-top: 0.6rem;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
}
.ai-summary-en > summary {
    cursor: pointer;
    font-size: 0.78rem;
    color: var(--c-text-muted);
    font-weight: 500;
}
.ai-summary-en .ai-summary-body { font-size: 0.85rem; }

/* --- 信用評価履歴 (パッケージD-2) --- */
.credit-history-section { margin-top: 2rem; }
.metric-card.metric-card-wide {
    grid-column: span 2;
    text-align: left;
}
.metric-card .value-text {
    display: block;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--c-text);
    font-weight: 500;
    margin: 0.2rem 0;
}
.credit-comment {
    margin-top: 1rem;
    padding: 0.6rem 0.9rem;
    background: var(--c-bg-page);
    border: 1px solid var(--c-border);
    border-radius: 6px;
}
.credit-comment > summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--c-primary);
    user-select: none;
}
.credit-comment h4 {
    margin: 0.75rem 0 0.3rem;
    font-size: 0.92rem;
    color: var(--c-accent);
}
.credit-comment .comment-body {
    font-size: 0.88rem;
    line-height: 1.6;
    white-space: pre-wrap;
    padding: 0.4rem 0.6rem;
    background: var(--c-bg-card);
    border-radius: 4px;
}

/* --- 事業概況・リスク (パッケージD-3) --- */
.text-blocks-section { margin-top: 2rem; }
.section-intro {
    font-size: 0.88rem;
    color: var(--c-text-muted);
    margin: 0.4rem 0 1rem;
}
.text-block {
    margin-bottom: 0.6rem;
    border: 1px solid var(--c-border);
    border-radius: 6px;
    overflow: hidden;
}
.text-block > summary {
    cursor: pointer;
    padding: 0.7rem 1rem;
    background: var(--c-bg-page);
    font-weight: 600;
    color: var(--c-primary);
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.text-block[open] > summary { border-bottom: 1px solid var(--c-border); }
.text-block .tb-meta {
    font-size: 0.74rem;
    color: var(--c-text-muted);
    font-weight: 400;
}
.text-block .tb-body {
    padding: 0.9rem 1.1rem;
    font-size: 0.88rem;
    line-height: 1.75;
    max-height: 520px;
    overflow-y: auto;
    white-space: pre-wrap;
    color: var(--c-text);
}

/* --- 決算短信拡充 (Phase 2C) --- */
.earnings-section .nowrap { white-space: nowrap; }
.earnings-table .disclosure-time {
    display: block;
    font-size: 0.75rem;
    color: var(--c-text-muted);
}
.earnings-table .num-cell { text-align: center; }
.pdf-icon-link {
    display: inline-block;
    font-size: 1.1rem;
    text-decoration: none;
    transition: transform 0.1s;
}
.pdf-icon-link:hover { transform: scale(1.2); }
.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* qualitative_text 折りたたみ */
.qualitative-text-block {
    margin-top: 1rem;
    padding: 0.6rem 0.9rem;
    background: var(--c-bg-page);
    border: 1px solid var(--c-border);
    border-radius: 6px;
}
.qualitative-text-block summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--c-primary);
    user-select: none;
    padding: 0.2rem 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.qualitative-text-block summary::marker { color: var(--c-accent); }
.qualitative-text-block .qt-len {
    font-size: 0.75rem;
    color: var(--c-text-muted);
    font-weight: 400;
    background: var(--c-bg-card);
    padding: 0.1rem 0.45rem;
    border-radius: 8px;
}
.qualitative-text-block .qt-body {
    margin-top: 0.75rem;
    padding: 0.8rem 1rem;
    background: var(--c-bg-card);
    border-radius: 4px;
    font-size: 0.85rem;
    line-height: 1.7;
    max-height: 480px;
    overflow-y: auto;
    white-space: pre-wrap;
    color: var(--c-text);
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}
.qualitative-text-block .qt-source {
    margin: 0.6rem 0 0;
    font-size: 0.78rem;
    color: var(--c-text-muted);
}
.qualitative-text-block .qt-source a {
    color: var(--c-accent);
    text-decoration: none;
}
.qualitative-text-block .qt-source a:hover { text-decoration: underline; }

/* --- 大量保有報告書 (Phase A-1 拡充) --- */
.shareholders-table th .th-sub {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 0.15rem;
}
.shareholders-table .purpose-cell {
    max-width: 280px;
    line-height: 1.4;
    cursor: help;
}
.shareholders-table .purpose-cell[title] {
    border-bottom: 1px dashed var(--c-text-muted);
}
.shareholders-table .small { font-size: 0.82rem; }
.shareholders-table .nowrap { white-space: nowrap; }

/* --- テーブル --- */
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th { background: var(--c-primary); color: #fff; padding: 0.6rem; text-align: left; white-space: nowrap; }
td { padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--c-border); }
tbody tr:hover { background: rgba(46, 134, 193, 0.05); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.small { font-size: 0.8rem; }
.highlight { font-weight: 600; color: var(--c-primary); }

/* --- 健全性ランク --- */
.rating { font-size: 0.8rem; font-weight: 600; padding: 0.1rem 0.4rem; border-radius: 3px; }
.rating-aplus, .rating-a { background: #d5f5e3; color: #1e8449; }
.rating-bplus, .rating-b { background: #fef9e7; color: #b7950b; }
.rating-cplus, .rating-c { background: #fde8d0; color: #d35400; }
.rating-d { background: #fadbd8; color: #c0392b; }

/* --- テキスト装飾 --- */
.text-success { color: var(--c-success); }
.text-danger { color: var(--c-danger); }
.text-muted { color: var(--c-text-muted); }

/* --- チャート --- */
.chart-section { margin: 2rem 0; }
.chart-tabs { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.chart-tabs .tab {
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--c-border);
    border-radius: 4px;
    background: var(--c-bg-card);
    cursor: pointer;
    font-size: 0.85rem;
}
.chart-tabs .tab.active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

/* --- コンテンツ注釈 --- */
.content-note {
    background: #eaf2f8;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}
.content-note h2 { font-size: 1rem; color: var(--c-primary); margin-top: 0; }
.content-note p { font-size: 0.9rem; line-height: 1.7; }

/* --- 企業詳細ヘッダー --- */
.company-header { margin-bottom: 1.5rem; }
.company-tags { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.data-updated { margin: 0.4rem 0 0; font-size: 0.8rem; color: var(--c-text-muted); }
.tag {
    background: #eaf2f8;
    color: var(--c-primary);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* --- フッター --- */
footer {
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--c-border);
    font-size: 0.8rem;
    color: var(--c-text-muted);
    text-align: center;
}

/* --- フッターナビ --- */
.footer-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}
.footer-nav a { color: var(--c-text-muted); text-decoration: none; }
.footer-nav a:hover { color: var(--c-accent); text-decoration: underline; }

/* --- Aboutページ --- */
.about-page { max-width: 800px; margin: 0 auto; }
.about-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.about-content th, .about-content td { padding: 0.5rem 0.75rem; border: 1px solid var(--c-border); text-align: left; }
.about-content th { background: #eaf2f8; color: var(--c-primary); }
.about-content hr { border: none; border-top: 1px solid var(--c-border); margin: 2rem 0; }

/* --- レスポンシブ --- */
@media (max-width: 600px) {
    nav { flex-direction: column; gap: 0.5rem; }
    .nav-links { gap: 1rem; }
    .earnings-grid { grid-template-columns: 1fr; }
    .metric-grid { grid-template-columns: repeat(2, 1fr); }
    .form-grid { grid-template-columns: 1fr !important; }
}

/* --- スクリーナー フォーム --- */
.screener-form {
    margin: 1rem 0 1.5rem;
    padding: 1.5rem;
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: 8px;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--c-text-muted);
    margin-bottom: 0.3rem;
}
.form-group input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--c-border);
    border-radius: 4px;
    font-size: 0.9rem;
    box-sizing: border-box;
}
.form-group input:focus {
    outline: none;
    border-color: var(--c-accent);
    box-shadow: 0 0 0 2px rgba(46, 134, 193, 0.2);
}
.screener-form button {
    padding: 0.6rem 2rem;
    background: var(--c-primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}
.screener-form button:hover { background: var(--c-accent); }

.result-count {
    font-size: 0.95rem;
    color: var(--c-text-muted);
    margin: 1rem 0 0.5rem;
}

/* --- ヒーロー（トップページ） --- */
.hero {
    text-align: center;
    padding: 2rem 0 1rem;
}
.hero h1 { font-size: 2rem; margin-bottom: 0.5rem; color: var(--c-primary); }
.hero p { color: var(--c-text-muted); font-size: 1.1rem; }

/* --- details/summary --- */
details {
    margin: 1rem 0;
}
details summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--c-accent);
    font-size: 0.95rem;
}
details[open] summary { margin-bottom: 0.5rem; }

/* --- コンテンツガイド --- */
.content-guide .metric-card {
    transition: border-color 0.2s;
}
.content-guide .metric-card:hover {
    border-color: var(--c-accent);
}

/* --- 検索フォーム --- */
.search-form input:focus {
    outline: none;
    border-color: var(--c-accent);
    box-shadow: 0 0 0 2px rgba(46, 134, 193, 0.2);
}
.search-form button {
    background: var(--c-primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.search-form button:hover { background: var(--c-accent); }
