@charset "UTF-8";
/* CSS Document */
/* 画像の明るさ・シャープ・色調補正ツール */
/* みんなの知識 ちょっと便利帳 */
/* 2026-11-09 */

/* ルート：全体を囲むボーダー（3px / 角丸4px / 上下マージン20px・左右0） */
.adj {
    --adj-main: #a16207;
    --adj-main-dark: #713f12;
    --adj-main-soft: #fefce8;
    --adj-frame: #ca8a04;
    --adj-text: #1e293b;
    --adj-sub: #64748b;
    --adj-line: #e2e8f0;
    --adj-bg: #f8fafc;
    --adj-danger: #e11d48;

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

/* タイトル（中央寄せ） */
.adj .adj-header {
    margin: 0 0 20px;
    text-align: center;
}
.adj .adj-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--adj-main-dark);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: normal;
    text-align: center;
}
.adj .adj-title::before,
.adj .adj-title::after,
.adj .adj-heading::before,
.adj .adj-heading::after {
    content: none;
}
.adj .adj-title svg {
    flex: none;
    width: 32px;
    height: 32px;
}
.adj .adj-lead {
    margin: 4px 0 0;
    color: var(--adj-sub);
    font-size: 14px;
    text-align: center;
}

/* セクション */
.adj .adj-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.adj .adj-section {
    margin: 0;
    padding: 20px;
    border: 1px solid var(--adj-line);
    border-radius: 4px;
    background: #fff;
}
.adj .adj-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--adj-text);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: normal;
}
.adj .adj-step {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--adj-main);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

/* ドロップゾーン */
.adj .adj-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 32px 16px;
    border: 2px dashed #d9b44a;
    border-radius: 4px;
    background: var(--adj-main-soft);
    text-align: center;
    cursor: pointer;
    transition: border-color .15s, background-color .15s;
}
.adj .adj-drop:hover,
.adj .adj-drop:focus-visible,
.adj .adj-drop.adj-dragover {
    border-color: var(--adj-main);
    background: #fef9c3;
    outline: none;
}
.adj .adj-drop svg {
    width: 48px;
    height: 48px;
    color: var(--adj-main);
}
.adj .adj-drop-main {
    margin: 0;
    font-weight: 600;
}
.adj .adj-drop-sub {
    margin: 0;
    color: var(--adj-sub);
    font-size: 14px;
}
.adj .adj-link {
    color: var(--adj-main);
    font-weight: 600;
    text-decoration: underline;
}
.adj .adj-hint {
    margin: 8px 0 0;
    color: var(--adj-sub);
    font-size: 12px;
}
.adj .adj-fileinfo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: 4px;
    background: var(--adj-main-soft);
    color: var(--adj-main-dark);
    font-size: 14px;
    font-weight: 600;
    word-break: break-all;
}

/* 作業エリア（左：プレビュー／右：設定） */
.adj .adj-work {
    display: block;
}
.adj .adj-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px 28px;
    margin-top: 20px;
    align-items: start;
}
.adj .adj-controls .adj-wide {
    grid-column: 1 / -1;
}
.adj .adj-controls .adj-group + .adj-group {
    margin-top: 0;
}
.adj .adj-stage {
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
}
.adj .adj-section.adj-section-wide {
    padding: 14px;
}
.adj .adj-compare {
    position: relative;
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    line-height: 0;
    background: #fff;
    cursor: ew-resize;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}
.adj .adj-compare canvas {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    margin: 0;
}
.adj .adj-compare #adj-view {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
}
.adj .adj-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 0;
    border-left: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .35);
    pointer-events: none;
}
.adj .adj-badge {
    position: absolute;
    top: 8px;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    font-size: 12px;
    line-height: 1.5;
    pointer-events: none;
}
.adj .adj-badge-l { left: 8px; }
.adj .adj-badge-r { right: 8px; }
.adj .adj-cmp-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0 0;
    font-size: 13px;
    color: var(--adj-sub);
}
.adj .adj-cmp-row span { flex: none; }
.adj .adj-working {
    margin: 8px 0 0;
    color: var(--adj-sub);
    font-size: 12px;
    text-align: center;
    min-height: 18px;
}

/* 読み込んだ画像の一覧 */
.adj .adj-thumbs-wrap {
    margin: 0 0 16px;
}
.adj .adj-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.adj .adj-adddrop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100%;
    margin: 10px 0 0;
    padding: 10px 12px;
    border: 2px dashed #d9b44a;
    border-radius: 4px;
    background: var(--adj-main-soft);
    color: var(--adj-text);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
    transition: border-color .15s, background-color .15s;
}
.adj .adj-adddrop small {
    color: var(--adj-sub);
    font-size: 12px;
    font-weight: 400;
}
.adj .adj-adddrop:hover,
.adj .adj-adddrop.adj-dragover {
    border-color: var(--adj-main);
    background: #fef9c3;
}
.adj .adj-thumb {
    position: relative;
    width: 72px;
    height: 72px;
    border: 2px solid var(--adj-line);
    border-radius: 4px;
    background: #fff;
}
.adj .adj-thumb.adj-thumb-on {
    border-color: var(--adj-main);
    box-shadow: 0 0 0 2px #fde68a;
}
.adj .adj-thumb-pick {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 2px;
    overflow: hidden;
    background: #f1f5f9;
    cursor: pointer;
}
.adj .adj-thumb-pick img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
}
.adj .adj-thumb-del {
    position: absolute;
    top: -8px;
    right: -8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin: 0;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    background: #fff;
    color: #475569;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}
.adj .adj-thumb-del:hover {
    border-color: var(--adj-danger);
    color: var(--adj-danger);
}

/* 設定 */
.adj .adj-sub {
    margin: 0 0 10px;
    padding: 0 0 4px;
    border-bottom: 1px solid var(--adj-line);
    color: var(--adj-main-dark);
    font-size: 14px;
    font-weight: 700;
}
.adj .adj-group + .adj-group {
    margin-top: 20px;
}
.adj .adj-field + .adj-field {
    margin-top: 12px;
}
.adj .adj-two > .adj-field + .adj-field {
    margin-top: 0;
}
.adj .adj-drop.adj-compact {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 12px;
    padding: 12px 16px;
}
.adj .adj-drop.adj-compact svg {
    width: 28px;
    height: 28px;
}
.adj .adj-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 4px;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
}
.adj .adj-val {
    color: var(--adj-sub);
    font-size: 13px;
    font-weight: 500;
}
.adj .adj-input {
    display: block;
    width: 100%;
    height: 40px;
    margin: 0;
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #fff;
    box-shadow: none;
    color: var(--adj-text);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.4;
}
.adj .adj-input:focus {
    border-color: var(--adj-main);
    outline: 2px solid #fde68a;
    outline-offset: 0;
}
.adj .adj-range {
    display: block;
    width: 100%;
    margin: 0;
    accent-color: var(--adj-main);
}
.adj .adj-ends {
    display: flex;
    justify-content: space-between;
    margin: 0;
    color: #94a3b8;
    font-size: 11px;
}
.adj .adj-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.adj .adj-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.adj .adj-chip {
    margin: 0;
    padding: 6px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    background: #fff;
    color: var(--adj-text);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
}
.adj .adj-chip:hover {
    border-color: var(--adj-main);
    background: var(--adj-main-soft);
}
.adj .adj-chip.adj-chip-on {
    border-color: var(--adj-main);
    background: var(--adj-main);
    color: #fff;
}

/* ボタン */
.adj .adj-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.adj .adj-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 4px;
    box-shadow: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s, border-color .15s;
}
.adj .adj-btn svg {
    flex: none;
    width: 18px;
    height: 18px;
}
.adj .adj-btn:disabled {
    opacity: .6;
    cursor: wait;
}
.adj .adj-btn-primary {
    background: var(--adj-main);
    color: #fff;
}
.adj .adj-btn-primary:hover:not(:disabled) {
    background: var(--adj-main-dark);
}
.adj .adj-btn-plain {
    border-color: #cbd5e1;
    background: #fff;
    color: var(--adj-text);
}
.adj .adj-btn-plain:hover:not(:disabled) {
    background: #f1f5f9;
}
.adj .adj-btn-danger {
    background: #fff1f2;
    color: var(--adj-danger);
}
.adj .adj-btn-danger:hover {
    background: #ffe4e6;
}
.adj .adj-status {
    margin: 10px 0 0;
    color: var(--adj-sub);
    font-size: 14px;
}
.adj .adj-status.adj-error {
    color: var(--adj-danger);
    font-weight: 600;
}
.adj .adj-note {
    margin: 20px 0 0;
    color: #94a3b8;
    font-size: 12px;
    text-align: center;
}

/* ===== ツール下の解説文（検索エンジン向けの本文を兼ねる） ===== */
.adj-article {
    --adj-main-dark: #713f12;
    --adj-frame: #ca8a04;
    --adj-text: #1e293b;
    --adj-sub: #64748b;
    --adj-line: #e2e8f0;

    display: block;
    box-sizing: border-box;
    max-width: 100%;
    margin: 20px 0;
    padding: 20px;
    border: 3px solid var(--adj-frame);
    border-radius: 4px;
    background: #fff;
    color: var(--adj-text);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.8;
    text-align: left;
}
.adj-article *,
.adj-article *::before,
.adj-article *::after {
    box-sizing: border-box;
}
.adj-article .adj-a-h2 {
    margin: 36px 0 14px;
    padding: 2px 0 6px 12px;
    border: 0;
    border-left: 4px solid var(--adj-frame);
    border-bottom: 1px solid var(--adj-line);
    background: none;
    color: var(--adj-text);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: normal;
}
.adj-article .adj-a-h2:first-child {
    margin-top: 0;
}
.adj-article .adj-a-h3 {
    margin: 22px 0 6px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--adj-main-dark);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: normal;
}
.adj-article .adj-a-h2::before,
.adj-article .adj-a-h2::after,
.adj-article .adj-a-h3::before,
.adj-article .adj-a-h3::after {
    content: none;
}
.adj-article .adj-a-p {
    margin: 0 0 12px;
    padding: 0;
}
.adj-article .adj-a-ul,
.adj-article .adj-a-ol {
    margin: 0 0 12px;
    padding: 0 0 0 1.6em;
}
.adj-article .adj-a-ul { list-style: disc outside; }
.adj-article .adj-a-ol { list-style: decimal outside; }
.adj-article .adj-a-ul li,
.adj-article .adj-a-ol li {
    display: list-item;
    margin: 0 0 6px;
    padding: 0;
}
.adj-article .adj-a-scroll {
    margin: 0 0 12px;
    overflow-x: auto;
}
.adj-article .adj-a-table {
    width: 100%;
    min-width: 620px;
    margin: 0;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.6;
}
.adj-article .adj-a-table th,
.adj-article .adj-a-table td {
    padding: 8px 10px;
    border: 1px solid var(--adj-line);
    text-align: left;
    vertical-align: top;
}
.adj-article .adj-a-table th {
    background: #fefce8;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .adj {
        padding: 16px;
    }
    .adj .adj-section {
        padding: 14px;
    }
    .adj .adj-title {
        font-size: 20px;
    }
}

/* 追加：見比べの背景（透明な画像用の市松）・ヒストグラム・グループのリセット */
.adj .adj-compare {
    background-color: #fff;
    background-image:
        linear-gradient(45deg, #e7e5e4 25%, transparent 25%),
        linear-gradient(-45deg, #e7e5e4 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e7e5e4 75%),
        linear-gradient(-45deg, transparent 75%, #e7e5e4 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}
.adj .adj-grp-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 10px;
    padding: 0 0 4px;
    border-bottom: 1px solid var(--adj-line);
}
.adj .adj-grp-head .adj-sub {
    margin: 0;
    padding: 0;
    border: 0;
}
.adj .adj-mini {
    margin: 0;
    padding: 2px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #fff;
    color: var(--adj-sub);
    font-family: inherit;
    font-size: 12px;
    line-height: 1.5;
    cursor: pointer;
}
.adj .adj-mini:hover {
    border-color: var(--adj-main);
    color: var(--adj-main-dark);
}
.adj .adj-histo-wrap {
    padding: 10px 12px;
    border: 1px solid var(--adj-line);
    border-radius: 4px;
    background: #fafaf9;
}
.adj .adj-histo {
    display: block;
    width: 100%;
    height: 84px;
    margin: 0;
    border-radius: 2px;
}
.adj .adj-histo-note {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2px 12px;
    margin: 6px 0 0;
    color: var(--adj-sub);
    font-size: 12px;
}
.adj .adj-fname-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin: 0;
    padding: 0;
    border: 0;
}
.adj .adj-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}
.adj .adj-radio input {
    flex: none;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--adj-main);
}
.adj .adj-center-range {
    background: linear-gradient(90deg, transparent calc(50% - 1px), #cbd5e1 calc(50% - 1px), #cbd5e1 calc(50% + 1px), transparent calc(50% + 1px)) center / 100% 10px no-repeat;
}
