@charset "UTF-8";
/* CSS Document */
/* PDFツール一覧ページ共用 */
/* みんなの知識 ちょっと便利帳 */
/* 2026-11-07 */

.pdft {
    --pdft-text: #1e293b;
    --pdft-sub: #64748b;
    --pdft-line: #e2e8f0;
    --pdft-frame: #ef4444;
    --pdft-bg: #f8fafc;
    --pdft-link: #1d4ed8;

    display: block;
    box-sizing: border-box;
    max-width: 100%;
    margin: 20px 0;
    padding: 20px;
    border: 3px solid var(--pdft-frame);
    border-radius: 4px;
    background: #fff;
    color: var(--pdft-text);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.8;
    text-align: left;
}
.pdft *,
.pdft *::before,
.pdft *::after {
    box-sizing: border-box;
}

/* ツールごとの識別色 */
.pdft .pdft-c-merge       { --pdft-c: #dc2626; }
.pdft .pdft-c-split       { --pdft-c: #ea580c; }
.pdft .pdft-c-organize    { --pdft-c: #d97706; }
.pdft .pdft-c-pagesize    { --pdft-c: #ca8a04; }
.pdft .pdft-c-stamp       { --pdft-c: #16a34a; }
.pdft .pdft-c-imposition  { --pdft-c: #0d9488; }
.pdft .pdft-c-compress    { --pdft-c: #0284c7; }
.pdft .pdft-c-metadata    { --pdft-c: #e11d48; }
.pdft .pdft-c-text        { --pdft-c: #7c3aed; }
.pdft .pdft-c-fromimages  { --pdft-c: #2563eb; }
.pdft .pdft-c-toimages    { --pdft-c: #9333ea; }

/* 見出し・本文 */
.pdft .pdft-h2 {
    margin: 36px 0 14px;
    padding: 2px 0 6px 12px;
    border: 0;
    border-left: 4px solid var(--pdft-frame);
    border-bottom: 1px solid var(--pdft-line);
    background: none;
    color: var(--pdft-text);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: normal;
}
.pdft .pdft-h2:first-child {
    margin-top: 0;
}
.pdft .pdft-h3 {
    margin: 22px 0 6px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--pdft-text);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: normal;
}
.pdft .pdft-h2::before,
.pdft .pdft-h2::after,
.pdft .pdft-h3::before,
.pdft .pdft-h3::after {
    content: none;
}
.pdft .pdft-p {
    margin: 0 0 12px;
    padding: 0;
}
.pdft .pdft-note {
    margin: 0 0 12px;
    color: var(--pdft-sub);
    font-size: 14px;
}
.pdft .pdft-link {
    color: var(--pdft-link);
    text-decoration: underline;
}
.pdft .pdft-ul,
.pdft .pdft-ol {
    margin: 0 0 12px;
    padding: 0 0 0 1.6em;
}
.pdft .pdft-ul { list-style: disc outside; }
.pdft .pdft-ol { list-style: decimal outside; }
.pdft .pdft-ul li,
.pdft .pdft-ol li {
    display: list-item;
    margin: 0 0 6px;
    padding: 0;
}

/* 表（目的から探す） */
.pdft .pdft-scroll {
    margin: 0 0 12px;
    overflow-x: auto;
}
.pdft .pdft-table {
    width: 100%;
    min-width: 520px;
    margin: 0;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.6;
}
.pdft .pdft-table th,
.pdft .pdft-table td {
    padding: 8px 10px;
    border: 1px solid var(--pdft-line);
    text-align: left;
    vertical-align: top;
}
.pdft .pdft-table th {
    background: #f1f5f9;
    font-weight: 700;
    white-space: nowrap;
}

/* ツール紹介カード（ツール一覧ページ） */
.pdft .pdft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 0 0 12px;
}
.pdft .pdft-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 16px;
    border: 1px solid var(--pdft-line);
    border-top: 5px solid var(--pdft-c, var(--pdft-frame));
    border-radius: 4px;
    background: var(--pdft-bg);
}
.pdft .pdft-card-name {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: normal;
}
.pdft .pdft-card-name::before,
.pdft .pdft-card-name::after {
    content: none;
}
.pdft .pdft-card-name a {
    color: var(--pdft-link);
    text-decoration: underline;
}
.pdft .pdft-card-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
}
.pdft .pdft-card-points {
    margin: 0;
    padding: 0 0 0 1.4em;
    list-style: disc outside;
    font-size: 13px;
    line-height: 1.6;
}
.pdft .pdft-card-points li {
    display: list-item;
    margin: 0 0 3px;
    padding: 0;
}
.pdft .pdft-card-who {
    margin: 0;
    color: var(--pdft-sub);
    font-size: 12px;
}
.pdft .pdft-card-open {
    display: inline-block;
    align-self: flex-start;
    margin-top: auto;
    padding: 8px 16px;
    border-radius: 4px;
    background: var(--pdft-c, var(--pdft-frame));
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}
.pdft .pdft-card-open:hover {
    opacity: .88;
}

/* 関連ツール枠（各ツールページの末尾） */
.pdft .pdft-r-title {
    margin: 0 0 6px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--pdft-text);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: normal;
}
.pdft .pdft-r-title::before,
.pdft .pdft-r-title::after {
    content: none;
}
.pdft .pdft-r-lead {
    margin: 0 0 14px;
    color: var(--pdft-sub);
    font-size: 14px;
}
.pdft .pdft-r-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.pdft .pdft-r-list li {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
}
.pdft .pdft-r-item {
    display: block;
    height: 100%;
    padding: 12px 14px;
    border: 1px solid var(--pdft-line);
    border-left: 5px solid var(--pdft-c, var(--pdft-frame));
    border-radius: 4px;
    background: var(--pdft-bg);
    color: var(--pdft-text);
    text-decoration: none;
}
.pdft .pdft-r-item:hover {
    background: #f1f5f9;
}
.pdft .pdft-r-name {
    display: block;
    color: var(--pdft-link);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: underline;
}
.pdft .pdft-r-when {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
}
.pdft .pdft-r-desc {
    display: block;
    margin-top: 4px;
    color: var(--pdft-sub);
    font-size: 12px;
    line-height: 1.6;
}
.pdft .pdft-r-more {
    margin: 14px 0 0;
    font-size: 14px;
    text-align: right;
}

/* ツール一覧ページ：グループ見出し */
.pdft .pdft-group-lead {
    margin: 0 0 12px;
    color: var(--pdft-sub);
    font-size: 14px;
}

@media (max-width: 480px) {
    .pdft {
        padding: 16px;
    }
}

/* ページ上部のタイトル表示（ツール一覧ページ） */
.pdft-head {
    --pdft-sub: #64748b;
    display: block;
    box-sizing: border-box;
    max-width: 100%;
    margin: 10px 0 20px;
    color: #1e293b;
    font-family: inherit;
    line-height: 1.6;
    text-align: center;
}
.pdft-head *,
.pdft-head *::before,
.pdft-head *::after {
    box-sizing: border-box;
}
.pdft-head .pdft-head-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: #334155;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: normal;
    text-align: center;
}
.pdft-head .pdft-head-title svg {
    flex: none;
    width: 32px;
    height: 32px;
}
.pdft-head .pdft-head-lead {
    margin: 4px 0 0;
    padding: 0;
    color: var(--pdft-sub);
    font-size: 14px;
    text-align: center;
}

@media (max-width: 480px) {
    .pdft-head .pdft-head-title {
        font-size: 20px;
    }
}

/* 使用例画像（共通）。image-tools.css / pdf-tools.css などの共通CSSに1回だけ */
.tool-usage-fig { max-width: 680px; margin: 28px auto 0; text-align: center; }
.tool-usage-fig figcaption { font-weight: bold; margin-bottom: 8px; }
.tool-usage-fig img {
  display: block; max-width: 100%; height: auto; margin: 0 auto;
  border: 1px solid #cbd5e1; border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.tool-usage-fig .note { font-size: 12px; color: #64748b; margin-top: 5px; }
