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

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

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

/* ツールごとの識別色 */
.imgt .imgt-c-rotate    { --imgt-c: #f97316; }
.imgt .imgt-c-trimming  { --imgt-c: #8b5cf6; }
.imgt .imgt-c-padding   { --imgt-c: #14b8a6; }
.imgt .imgt-c-resizer   { --imgt-c: #6366f1; }
.imgt .imgt-c-compress  { --imgt-c: #0f766e; }
.imgt .imgt-c-convert   { --imgt-c: #d97706; }
.imgt .imgt-c-mosaic    { --imgt-c: #9333ea; }
.imgt .imgt-c-stamp     { --imgt-c: #db2777; }
.imgt .imgt-c-join      { --imgt-c: #16a34a; }
.imgt .imgt-c-idphoto   { --imgt-c: #2563eb; }
.imgt .imgt-c-dpi       { --imgt-c: #0891b2; }
.imgt .imgt-c-exif      { --imgt-c: #e11d48; }
.imgt .imgt-c-transform { --imgt-c: #2e7d32; }
.imgt .imgt-c-sketch    { --imgt-c: #57534e; }
.imgt .imgt-c-adjust    { --imgt-c: #a16207; }
.imgt .imgt-c-transparent { --imgt-c: #0e7490; }

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

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

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

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

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

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

/* ページ上部のタイトル表示（ツール一覧ページ） */
.imgt-head {
    --imgt-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;
}
.imgt-head *,
.imgt-head *::before,
.imgt-head *::after {
    box-sizing: border-box;
}
.imgt-head .imgt-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;
}
.imgt-head .imgt-head-title svg {
    flex: none;
    width: 32px;
    height: 32px;
}
.imgt-head .imgt-head-lead {
    margin: 4px 0 0;
    padding: 0;
    color: var(--imgt-sub);
    font-size: 14px;
    text-align: center;
}

/* 枠の色をツールの色に合わせる（解説文だけのページ用） */
.imgt.imgt-t-transform { --imgt-frame: #2e7d32; }

@media (max-width: 480px) {
    .imgt-head .imgt-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; }
