/* mokuji_style.css — 目次（内容紹介）ページ専用スタイル（表形式版） */

/* ===== 固定イントロセクション（毎月共通） ===== */
.finance-intro {
    max-width: 100%;
    margin: 0 0 30px;
    text-align: center;
    line-height: 2;
    color: #333;
    border-top: 2px solid #8dc63e;
    border-bottom: 2px solid #8dc63e;
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 17px;
}

.finance-intro p {
    margin: 0.8em 0;
}

/* ===== メインレイアウト（表紙 + 表） ===== */
.toc-layout {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 30px;
}

/* 表紙画像（左カラム） */
.toc-cover {
    flex-shrink: 0;
    width: 200px;
}

.toc-cover img {
    width: 100%;
    height: auto;
    border: 1px solid #999;
    display: block;
}

.toc-cover-caption {
    font-size: 12px;
    color: #333;
    text-align: left;
    margin-top: 8px;
    line-height: 1.5;
}

.toc-cover-pdflink {
    font-size: 11px;
    color: #333;
    text-align: left;
    margin-top: 5px;
    line-height: 1.5;
}

/* ===== 目次テーブル ===== */
.toc-table {
    flex: 1;
    min-width: 0;
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.7;
}

.toc-table th,
.toc-table td {
    border: 1px solid #ccc;
    padding: 8px 10px;
    vertical-align: middle;
}

/* ヘッダー行 */
.toc-table thead th {
    background: #f5f5f0;
    color: #333;
    font-weight: bold;
    text-align: center;
}

/* 1列目: ジャンル */
.toc-table td:first-child {
    width: 120px;
    text-align: center;
    font-weight: normal;
    white-space: nowrap;
    background: #fafaf7;
    color: #333;
}

/* 2列目: タイトル・著者 */
.toc-table td:nth-child(2) {
    color: #333;
}

/* 著者名 */
.toc-table small {
    display: block;
    font-size: 92%;
    color: #555;
    margin-top: 2px;
}

/* 3列目: テキスト版リンク */
.toc-table td:last-child {
    width: 70px;
    text-align: center;
    white-space: nowrap;
}

/* リンク */
.toc-table a {
    color: #003598;
    text-decoration: underline;
}

.toc-table a:hover {
    text-decoration: none;
}

/* PDFアイコン */
.toc-table .icon-pdf {
    width: 16px;
    height: 16px;
    vertical-align: text-bottom;
    margin-left: 3px;
}

/* サブ記事（各地の話題 内の個別記事等） */
.toc-sub-article {
    margin-top: 6px;
    padding-left: 1em;
}

/* ===== レスポンシブ ===== */
@media screen and (max-width: 768px) {
    .finance-intro br {
        display: none;
    }

    .toc-layout {
        flex-direction: column;
        align-items: center;
    }

    .toc-cover {
        width: 180px;
        margin-bottom: 10px;
    }

    .toc-cover-caption {
        text-align: center;
    }

    .toc-table {
        font-size: 13px;
    }

    .toc-table td:first-child {
        width: 80px;
        font-size: 12px;
    }

    .toc-table td:last-child {
        width: 55px;
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    .toc-table td:first-child {
        width: 65px;
        font-size: 11px;
        padding: 6px 4px;
    }

    .toc-table td:nth-child(2) {
        font-size: 12px;
        padding: 6px 6px;
    }

    .toc-table td:last-child {
        width: 45px;
        font-size: 11px;
        padding: 6px 4px;
    }
}