/* ============================================================
   home-answers.css — AIO_ANSWERS_2026_11_01
   トップの「自動運転の求人 掲載中の◯件で答えます」の区画（includes/home-answers.php）だけのスタイル。
   手本は boei-jobs.jp の同名ファイル。色は既存のトークン。
   カードは四辺1pxの枠だけ（左帯・上帯のアクセントは使わない・DESIGN-GUIDE §1-8）。
   ============================================================ */
.ans-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}
.ans-date .lucide-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    color: var(--accent);
}
.ans-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}
.ans-item {
    min-width: 0;
    padding: 22px 24px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-primary);
    scroll-margin-top: 80px;
}
.ans-item--wide {
    grid-column: 1 / -1;
}
.ans-q {
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.5;
    color: var(--text-primary);
}
.ans-lead {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.75;
    color: var(--text-primary);
}
.ans-rest {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
}
.ans-note {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.75;
    color: var(--text-secondary);
}
.ans-more {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 12px 0 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
}
.ans-item a {
    color: var(--accent-dark, #174FA9);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.ans-item .aio-table-wrap {
    margin: 12px 0 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}
.ans-item .aio-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    font-size: 14px;
}
.ans-item .aio-caption {
    caption-side: top;
    padding: 12px 14px 8px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
}
.ans-item .aio-table th,
.ans-item .aio-table td {
    padding: 10px 14px;
    border: 0;
    border-top: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
    line-height: 1.6;
}
.ans-item .aio-table thead th {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 700;
}
.ans-item .aio-table tbody th {
    min-width: 8.5em;
    font-weight: 700;
    color: var(--text-primary);
}
.ans-item .aio-table .aio-num {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.ans-cell-n {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-secondary);
}
.ans-cell-sep {
    margin: 0 2px;
}
.ans-item .aio-job-list {
    margin: 10px 0 0;
    padding-left: 1.2em;
    font-size: 14px;
    list-style: disc;
}
.ans-item .aio-job-list li {
    margin-bottom: 6px;
    line-height: 1.6;
}
.ans-item .aio-job-co {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
}
.ans-links {
    columns: 2;
}
@media (max-width: 860px) {
    .ans-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (max-width: 640px) {
    .ans-item {
        padding: 18px 16px;
    }
    .ans-q {
        font-size: 17px;
    }
    .ans-lead {
        font-size: 15px;
    }
    .ans-item .aio-table {
        font-size: 13px;
    }
    .ans-item .aio-table th,
    .ans-item .aio-table td {
        padding: 8px 8px;
    }
    /* スマホでは金額の欄も折り返して、表が横にはみ出さないようにする */
    .ans-item .aio-table tbody th {
        min-width: 0;
        word-break: keep-all;
        overflow-wrap: anywhere;
    }
    .ans-item .aio-table thead th.aio-num {
        white-space: normal;
    }
    .ans-item .aio-table td.aio-num:last-child {
        white-space: normal;
        word-break: keep-all;
    }
    .ans-links {
        columns: 1;
    }
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .ans-item a {
        color: #8DB8FF;
    }
}
:root[data-theme="dark"] .ans-item a {
    color: #8DB8FF;
}
