* {
    box-sizing: border-box;
}

:root {
    color-scheme: light;
    /* Pixmile DS v2 — coral pink / sakura, light base, Noto Sans JP. */
    --pm-bg: #fffafb;
    --pm-ink: #14161a;
    --pm-muted: #6b7280;
    --pm-line: #f0e6e9;
    --pm-panel: #ffffff;
    --pm-panel-soft: #fdeef1;
    --pm-primary: #e0879a;
    --pm-primary-d: #c44e72;
    --pm-primary-ink: #ffffff;
    --pm-accent: #c44e72;
    /* warm highlight for a brighter, friendlier mood */
    --pm-warm: #f0a35e;
    --pm-warm-soft: #fff3e6;
    --pm-alert: #fff7ed;
    --pm-alert-border: #fdba74;
    --pm-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 6px 20px rgba(196, 78, 114, 0.08);
    /* Mincho (serif) for titles, gothic for body. */
    --pm-serif: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
}

body.pixmile-saas-page {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(1100px 520px at 88% -8%, rgba(240, 163, 94, .08), transparent 60%),
        radial-gradient(1000px 600px at 6% 0%, rgba(224, 135, 154, .14), transparent 55%),
        linear-gradient(180deg, #ffffff 0%, var(--pm-bg) 100%);
    background-attachment: fixed;
    color: var(--pm-ink);
    font-family: 'Noto Sans JP', Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    letter-spacing: 0;
}

/* Titles in 明朝体 (serif) across the public pages. */
body.pixmile-saas-page h1,
body.pixmile-saas-page h2,
body.pixmile-saas-page h3,
body.pixmile-saas-page .pm-mock-name {
    font-family: var(--pm-serif);
    font-weight: 600;
}

/* Dark mode: the portal lives in this shell; recolor the page chrome. */
html[data-pmtheme="dark"] body.pixmile-saas-page {
    background: #0f1413;
    color: #f1f5f3;
}
html[data-pmtheme="dark"] body.pixmile-saas-page .pm-shell-footer {
    color: #93a09b;
}
html[data-pmtheme="dark"] body.pixmile-saas-page .pm-panel {
    background: #161c1a;
    border-color: #2b3633;
}

.pm-shell-header,
.pm-shell-footer {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.pm-shell-header {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.pm-brand,
.pm-nav a,
.pm-shell-footer a,
.pm-task-link {
    color: inherit;
    text-decoration: none;
}

.pm-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 18px;
}

.pm-brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--pm-primary);
    color: var(--pm-primary-ink);
}

.pm-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.pm-nav a,
.pm-button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border: 1px solid var(--pm-line);
    border-radius: 8px;
    background: #fff;
    color: var(--pm-ink);
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
    cursor: pointer;
}

.pm-nav a:not(.pm-nav-primary) {
    border-color: transparent;
    background: transparent;
}

.pm-nav-primary,
.pm-button-primary {
    border-color: var(--pm-primary);
    background: var(--pm-primary);
    color: var(--pm-primary-ink);
}

.pm-button-block {
    width: 100%;
}

.pm-hero,
.pm-band,
.pm-auth,
.pm-dashboard,
.pm-doc,
.pm-narrow {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.pm-hero {
    min-height: calc(100vh - 168px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 470px);
    align-items: center;
    gap: 54px;
    padding: 54px 0 42px;
}

.pm-hero-copy h1,
.pm-auth h1,
.pm-dashboard h1,
.pm-doc h1,
.pm-narrow h1 {
    margin: 0;
    font-size: clamp(42px, 8vw, 84px);
    line-height: 0.95;
    letter-spacing: 0;
}

.pm-auth h1,
.pm-dashboard h1,
.pm-doc h1,
.pm-narrow h1 {
    font-size: 46px;
    line-height: 1.05;
}

.pm-eyebrow {
    margin: 0 0 12px;
    color: var(--pm-accent);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.pm-lead {
    max-width: 620px;
    margin: 22px 0 0;
    color: var(--pm-muted);
    font-size: 20px;
    line-height: 1.75;
}

.pm-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.pm-product-preview {
    min-height: 420px;
    border: 1px solid var(--pm-line);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.7)),
        repeating-linear-gradient(135deg, #dce8e3 0 16px, #f2f5ef 16px 32px);
    box-shadow: 0 24px 70px rgba(35, 48, 41, .14);
    padding: 18px;
}

.pm-preview-toolbar {
    height: 38px;
    display: flex;
    align-items: center;
    gap: 7px;
    border-bottom: 1px solid var(--pm-line);
}

.pm-preview-toolbar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--pm-accent);
}

.pm-preview-toolbar span:nth-child(2) {
    background: #eab308;
}

.pm-preview-toolbar span:nth-child(3) {
    background: var(--pm-primary);
}

.pm-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.pm-preview-pane,
.pm-feature-grid article,
.pm-panel,
.pm-doc-steps article,
.pm-metrics div,
.pm-legal-table div {
    border: 1px solid var(--pm-line);
    border-radius: 8px;
    background: var(--pm-panel);
}

.pm-preview-pane {
    min-height: 96px;
    padding: 14px;
}

.pm-preview-pane strong,
.pm-preview-pane span {
    display: block;
}

.pm-preview-pane span {
    margin-top: 10px;
    color: var(--pm-muted);
    font-size: 13px;
}

.pm-preview-list {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.pm-preview-list span {
    height: 48px;
    border-radius: 8px;
    background: linear-gradient(90deg, #fff 0 30%, #e7efec 30% 72%, #f7eadb 72% 100%);
    border: 1px solid var(--pm-line);
}

.pm-band,
.pm-auth,
.pm-dashboard,
.pm-doc,
.pm-narrow {
    padding: 58px 0;
}

.pm-section-heading {
    max-width: 720px;
}

.pm-section-heading h2,
.pm-panel h2,
.pm-doc h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.25;
    letter-spacing: 0;
}

.pm-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 24px;
}

.pm-feature-grid article,
.pm-doc-steps article {
    padding: 22px;
}

.pm-feature-grid h3,
.pm-feature-grid p,
.pm-doc-steps p {
    margin: 0;
}

.pm-feature-grid p,
.pm-doc-steps p,
.pm-legal-table span {
    margin-top: 10px;
    color: var(--pm-muted);
    line-height: 1.7;
}

.pm-auth {
    min-height: calc(100vh - 168px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    align-items: center;
    gap: 48px;
}

.pm-panel {
    padding: 22px;
}

.pm-alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid var(--pm-alert-border);
    border-radius: 8px;
    background: var(--pm-alert);
    color: #7c2d12;
}

.pm-alert-success {
    border-color: #99f6e4;
    background: #ecfdf5;
    color: #134e4a;
}

.pm-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    margin: 18px 0;
    color: var(--pm-muted);
    font-size: 12px;
}

.pm-divider::before,
.pm-divider::after {
    content: "";
    height: 1px;
    background: var(--pm-line);
}

.pm-form,
.pm-inline-form {
    display: grid;
    gap: 14px;
}

.pm-form label {
    display: grid;
    gap: 7px;
    color: var(--pm-muted);
    font-size: 13px;
    font-weight: 700;
}

.pm-form input,
.pm-inline-form input {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--pm-line);
    border-radius: 8px;
    padding: 9px 12px;
    font: inherit;
    background: #fff;
    color: var(--pm-ink);
}

.pm-check {
    grid-template-columns: 18px 1fr;
    align-items: center;
}

.pm-check input {
    min-height: 0;
}

.pm-dashboard-heading,
.pm-shell-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.pm-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 26px 0;
}

.pm-metrics div {
    padding: 16px;
}

.pm-metrics span,
.pm-metrics small {
    display: block;
    color: var(--pm-muted);
}

.pm-metrics strong {
    display: block;
    margin-top: 8px;
    font-size: 28px;
}

.pm-dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 16px;
}

.pm-inline-form {
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: 18px;
}

.pm-project-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.pm-project-list article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid var(--pm-line);
}

.pm-project-list span,
.pm-project-list code {
    display: block;
    color: var(--pm-muted);
    font-size: 12px;
}

.pm-task-link {
    display: block;
    padding: 13px 0;
    border-top: 1px solid var(--pm-line);
    font-weight: 700;
}

.pm-studio {
    align-items: start;
    display: grid;
    gap: 24px;
    grid-template-columns: 244px minmax(0, 1fr);
    width: min(1320px, calc(100% - 32px));
}

.pm-studio-sidebar {
    align-self: start;
    background: #ffffff;
    border: 1px solid var(--pm-line);
    border-radius: 8px;
    min-height: calc(100vh - 168px);
    padding: 14px;
    position: sticky;
    top: 16px;
}

.pm-studio-workspace {
    align-items: center;
    border-bottom: 1px solid var(--pm-line);
    display: grid;
    gap: 10px;
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 4px 4px 14px;
}

.pm-studio-workspace strong,
.pm-studio-workspace small {
    display: block;
}

.pm-studio-workspace strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pm-studio-workspace small {
    color: var(--pm-muted);
    font-size: 12px;
    margin-top: 3px;
}

.pm-studio-nav {
    display: grid;
    gap: 4px;
    margin-top: 14px;
}

.pm-studio-nav a {
    align-items: center;
    border-radius: 8px;
    color: var(--pm-ink);
    display: flex;
    font-size: 14px;
    font-weight: 750;
    min-height: 42px;
    padding: 10px 12px;
    text-decoration: none;
}

.pm-studio-nav a:hover,
.pm-studio-nav a.active {
    background: var(--pm-panel-soft);
    color: var(--pm-primary);
}

.pm-studio-quick-stats {
    border-top: 1px solid var(--pm-line);
    display: grid;
    gap: 8px;
    margin-top: 16px;
    padding-top: 14px;
}

.pm-studio-quick-stats span {
    align-items: center;
    background: var(--pm-panel-soft);
    border: 1px solid var(--pm-line);
    border-radius: 8px;
    color: var(--pm-muted);
    display: flex;
    font-size: 12px;
    justify-content: space-between;
    min-height: 40px;
    padding: 8px 10px;
}

.pm-studio-quick-stats strong {
    color: var(--pm-ink);
    font-size: 18px;
}

.pm-studio-content {
    min-width: 0;
}

.pm-studio .pm-dashboard-heading {
    background: #ffffff;
    border: 1px solid var(--pm-line);
    border-radius: 8px;
    padding: 18px;
}

.pm-studio .pm-dashboard-heading h1 {
    font-size: 34px;
}

.pm-studio .pm-metrics {
    margin-top: 16px;
}

.pm-studio .pm-v2-grid {
    grid-template-columns: 1fr;
}

.pm-studio .pm-panel,
.pm-studio .pixmile-library-shell,
.pm-studio .pixmile-my-library-loading,
.pm-studio .pixmile-my-library-error {
    box-shadow: 0 1px 2px rgba(23, 32, 27, .04);
}

.pm-doc {
    max-width: 880px;
}

.pm-doc-steps,
.pm-legal-table {
    display: grid;
    gap: 14px;
    margin-top: 26px;
}

.pm-doc-steps code {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 10px 12px;
    overflow-x: auto;
    border-radius: 8px;
    background: #17201b;
    color: #f5f5f0;
    font-size: 13px;
}

.pm-legal-table div {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
}

.pm-shell-footer {
    padding: 28px 0 38px;
    border-top: 1px solid var(--pm-line);
    color: var(--pm-muted);
    font-size: 13px;
}

.pm-shell-footer nav {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.pm-v2-admin {
    margin: 28px 0;
}

.pm-v2-intro {
    margin: 0 0 14px;
    padding: 14px 16px;
    border: 1px solid var(--pm-line);
    border-radius: 10px;
    background: #fff;
    color: var(--pm-muted);
}

.pm-v2-intro strong {
    display: block;
    color: var(--pm-ink);
    font-size: 14px;
}

.pm-v2-intro p,
.pm-v2-note {
    margin: 6px 0 0;
    color: var(--pm-muted);
    font-size: 13px;
    line-height: 1.8;
}

.pm-v2-note code {
    padding: 1px 5px;
    border-radius: 5px;
    background: var(--pm-panel-soft);
    color: var(--pm-primary-d);
    font-size: 12px;
}

.pm-v2-sync-result {
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid var(--pm-line);
    border-radius: 10px;
    background: #fff;
}

.pm-v2-sync-result strong {
    display: block;
    color: var(--pm-ink);
}

.pm-v2-sync-result p {
    margin: 5px 0 10px;
    color: var(--pm-muted);
    font-size: 13px;
}

.pm-v2-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.pm-v2-kpis {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pm-v2-kpis div {
    min-height: 76px;
    border: 1px solid var(--pm-line);
    border-radius: 8px;
    background: var(--pm-panel-soft);
    padding: 12px;
}

.pm-v2-kpis strong,
.pm-v2-kpis span {
    display: block;
}

.pm-v2-kpis strong {
    font-size: 22px;
    line-height: 1.1;
}

.pm-v2-kpis span,
.pm-muted {
    color: var(--pm-muted);
    font-size: 13px;
}

.pm-v2-form {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(160px, 220px) minmax(0, 1fr) auto;
    margin: 14px 0 0;
}

.pm-v2-form-stack {
    grid-template-columns: 1fr;
}

.pm-v2-form input,
.pm-v2-form select,
.pm-v2-form textarea {
    width: 100%;
    border: 1px solid var(--pm-line);
    border-radius: 8px;
    background: #fff;
    color: var(--pm-ink);
    font: inherit;
    min-height: 42px;
    padding: 10px 12px;
}

.pm-v2-form textarea {
    min-height: 150px;
    resize: vertical;
}

.pm-v2-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.pm-v2-row {
    align-items: center;
    border: 1px solid var(--pm-line);
    border-radius: 8px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 12px;
}

.pm-v2-row strong,
.pm-v2-row span {
    display: block;
}

.pm-v2-row span {
    color: var(--pm-muted);
    font-size: 13px;
    margin-top: 4px;
}

.pm-v2-result {
    margin-top: 14px;
}

.pm-v2-result pre {
    max-height: 320px;
    overflow: auto;
    border: 1px solid var(--pm-line);
    border-radius: 8px;
    background: #111827;
    color: #f9fafb;
    font-size: 12px;
    line-height: 1.5;
    padding: 14px;
}

.pm-v2-secret-list {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 14px 0;
}

.pm-v2-secret-list span {
    border: 1px solid var(--pm-line);
    border-radius: 8px;
    color: var(--pm-muted);
    font-size: 12px;
    padding: 8px 10px;
}

@media (max-width: 860px) {
    .pm-shell-header,
    .pm-shell-footer,
    .pm-dashboard-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .pm-hero,
    .pm-auth,
    .pm-dashboard-layout,
    .pm-studio {
        grid-template-columns: 1fr;
    }

    .pm-studio-sidebar {
        min-height: 0;
        position: static;
    }

    .pm-studio-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pm-hero {
        min-height: 0;
        padding-top: 34px;
    }

    .pm-product-preview {
        min-height: 320px;
    }

    .pm-feature-grid,
    .pm-metrics,
    .pm-preview-grid,
    .pm-v2-grid {
        grid-template-columns: 1fr;
    }

    .pm-project-list article,
    .pm-inline-form,
    .pm-legal-table div,
    .pm-v2-form,
    .pm-v2-kpis,
    .pm-v2-secret-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .pm-shell-header,
    .pm-shell-footer,
    .pm-hero,
    .pm-band,
    .pm-auth,
    .pm-dashboard,
    .pm-doc,
    .pm-narrow {
        width: min(100% - 20px, 1120px);
    }

    .pm-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .pm-nav a,
    .pm-button {
        min-width: 0;
        max-width: 100%;
    }

    .pm-auth h1,
    .pm-dashboard h1,
    .pm-doc h1,
    .pm-narrow h1 {
        font-size: 36px;
    }

    .pm-lead {
        font-size: 17px;
    }
}

/* ============================================================
   Recruitment landing (render_home) additions
   ============================================================ */
.pm-g-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border-radius: 50%;
    background: #fff;
    color: #4285f4;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
}
.pm-hero-note {
    margin-top: 14px;
    color: var(--pm-muted);
    font-size: 14px;
}
.pm-muted-note {
    color: var(--pm-muted);
    font-size: 14px;
    margin: 0 0 12px;
}
.pm-feature-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.pm-band-tint {
    background: var(--pm-panel-soft);
    border-radius: 20px;
    padding: 40px clamp(20px, 4vw, 48px);
}
html[data-pmtheme="dark"] body.pixmile-saas-page .pm-band-tint {
    background: #13211d;
}
.pm-steps {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: grid;
    gap: 14px;
}
.pm-steps li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.pm-step-n {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--pm-primary);
    color: var(--pm-primary-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.pm-steps li strong {
    display: block;
    margin-bottom: 2px;
}
.pm-steps li p {
    margin: 0;
    color: var(--pm-muted);
    font-size: 15px;
}
.pm-actions-center {
    justify-content: center;
    margin-top: 28px;
}
.pm-buyer-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}
.pm-buyer-copy h2 {
    margin: 0 0 6px;
}
.pm-buyer-copy p {
    margin: 0;
    color: var(--pm-muted);
    max-width: 60ch;
}

/* Storefront hero mock on the LP */
.pm-store-mock {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
}
.pm-mock-cover {
    height: 96px;
    border-radius: 14px;
    background: linear-gradient(120deg, var(--pm-primary), var(--pm-primary-d));
    position: relative;
}
.pm-mock-avatar {
    position: absolute;
    left: 16px;
    bottom: -18px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #fff;
    box-shadow: var(--pm-shadow);
}
.pm-mock-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 18px;
}
.pm-mock-grid span {
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    background: var(--pm-panel-soft);
}
.pm-mock-badge {
    align-self: flex-start;
    background: var(--pm-primary);
    color: var(--pm-primary-ink);
    border-radius: 999px;
    padding: 4px 12px;
    font-weight: 700;
    font-size: 13px;
}

/* ============================================================
   Public photographer storefront (/{base}/p/{slug})
   ============================================================ */
body.pixmile-store-page {
    margin: 0;
    background: var(--pm-bg);
    color: var(--pm-ink);
}
.pm-store-header {
    position: relative;
}
.pm-store-cover {
    height: clamp(180px, 28vw, 320px);
    background-size: cover;
    background-position: var(--pm-img-pos, center);
    background-repeat: no-repeat;
    background-color: #f4f0eb;
}
.pm-store-cover-color {
    background: linear-gradient(120deg, var(--pm-store-brand, var(--pm-primary)), var(--pm-store-brand-d, var(--pm-primary-d)));
}
.pm-store-id {
    width: min(1120px, calc(100% - 40px));
    margin: -56px auto 0;
    display: flex;
    gap: 22px;
    align-items: flex-start;
    position: relative;
    z-index: 2;
    background: var(--pm-panel);
    border: 1px solid var(--pm-line, rgba(20, 16, 14, 0.08));
    border-radius: 24px;
    padding: 24px 28px;
    box-shadow: 0 22px 54px rgba(33, 27, 20, 0.13);
}
.pm-store-avatar {
    flex: 0 0 auto;
    width: 92px;
    height: 92px;
    margin-top: -58px;
    border-radius: 22px;
    background: var(--pm-store-brand, var(--pm-primary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    font-weight: 700;
    border: 4px solid var(--pm-panel);
    box-shadow: var(--pm-shadow);
    overflow: hidden;
}
.pm-store-avatar.has-logo {
    background: var(--pm-panel);
}
.pm-store-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #f4f0eb;
}
.pm-store-meta {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 4px;
}
.pm-store-meta h1 {
    margin: 0;
    font-family: "Noto Serif JP", serif;
    font-weight: 600;
    font-size: clamp(22px, 3.2vw, 32px);
    line-height: 1.25;
    letter-spacing: 0.01em;
}
.pm-store-tagline {
    margin: 8px 0 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--pm-store-brand, var(--pm-primary));
}
.pm-store-loc {
    margin: 4px 0 0;
    color: var(--pm-muted);
    font-size: 14px;
}
.pm-store-bio {
    margin: 8px 0 0;
    color: var(--pm-muted);
    max-width: 70ch;
    line-height: 1.7;
}
.pm-store-sns {
    margin: 14px 0 0;
    margin-left: -7px;
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}
.pm-store-sns-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: var(--pm-muted);
    text-decoration: none;
    transition: color .15s, background .15s, transform .15s;
}
.pm-store-sns-link:hover {
    color: var(--pm-store-brand, var(--pm-primary));
    background: color-mix(in srgb, var(--pm-store-brand, var(--pm-primary)) 12%, transparent);
    transform: translateY(-1px);
}
.pm-store-sns-link svg {
    display: block;
}
.pm-store-main {
    width: min(1120px, calc(100% - 40px));
    margin: 32px auto 64px;
}
.pm-store-empty {
    color: var(--pm-muted);
    text-align: center;
    padding: 48px 0;
}
.pm-store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}
.pm-store-card {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--pm-line);
    background: var(--pm-panel);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--pm-shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pm-store-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 26px rgba(224, 135, 154, 0.14);
}
.pm-store-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--pm-panel-soft);
    display: block;
    overflow: hidden;
}
.pm-store-thumb-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* object-position is set inline (saved focal / heuristic) and refined by JS */
    object-position: var(--pm-img-pos, 50% 38%);
    display: block;
}
.pm-store-price {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background: rgba(15, 22, 26, 0.82);
    color: #fff;
    border-radius: 999px;
    padding: 3px 10px;
    font-weight: 700;
    font-size: 13px;
}
/* Subtle "shot by multiple photographers" badge (camera + person) */
.pm-store-photog {
    position: absolute;
    left: 9px;
    top: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(15, 22, 26, 0.46);
    color: #fff;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}
.pm-store-photog svg { display: block; }
.pm-store-card-body {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px 14px;
}
.pm-store-card-body strong {
    font-size: 15px;
    line-height: 1.3;
}
.pm-store-count {
    flex: 0 0 auto;
    color: var(--pm-muted);
    font-size: 13px;
}
.pm-store-footer {
    text-align: center;
    padding: 28px 0 40px;
}
.pm-store-footer a {
    color: var(--pm-muted);
    text-decoration: none;
    font-size: 13px;
}
.pm-store-404 {
    text-align: center;
    padding-top: 64px;
}
html[data-pmtheme="dark"] body.pixmile-store-page {
    background: #0f1413;
    color: #f1f5f3;
}
html[data-pmtheme="dark"] body.pixmile-store-page .pm-store-card {
    background: #161c1a;
    border-color: #2b3633;
}
html[data-pmtheme="dark"] body.pixmile-store-page .pm-store-id {
    background: #161c1a;
    border-color: #2b3633;
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.42);
}

@media (max-width: 720px) {
    .pm-feature-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 520px) {
    .pm-feature-grid-4 {
        grid-template-columns: 1fr;
    }
    .pm-store-id {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 20px;
    }
}

/* ---- LP: capability showcase (3-col) ---- */
.pm-section-sub { color: var(--pm-muted); margin: 6px 0 0; }
.pm-feature-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pm-feat-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: var(--pm-panel-soft);
    color: var(--pm-primary-d);
    margin-bottom: 12px;
}
.pm-feat-ico svg { width: 24px; height: 24px; display: block; }
@media (max-width: 860px) { .pm-feature-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pm-feature-grid-3 { grid-template-columns: 1fr; } }
html[data-pmtheme="dark"] body.pixmile-saas-page .pm-feat-ico { background: #13211d; color: #5dcaa5; }

/* ---- Service map / topic LP pages ---- */
.pm-topic-index {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 76px;
}
.pm-topic-index .pm-section-heading {
    max-width: 780px;
    margin: 0 auto 24px;
    text-align: center;
}
.pm-topic-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.pm-topic-card {
    display: flex;
    min-height: 236px;
    flex-direction: column;
    gap: 10px;
    padding: 22px;
    border: 1px solid var(--pm-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    color: var(--pm-ink);
    text-decoration: none;
    box-shadow: var(--pm-shadow);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.pm-topic-card:hover {
    transform: translateY(-3px);
    border-color: rgba(224, 135, 154, .38);
    box-shadow: 0 18px 42px rgba(224, 135, 154, .12);
}
.pm-topic-card .pm-feat-ico {
    margin-bottom: 4px;
}
.pm-topic-card-kicker {
    color: var(--pm-primary-d);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.pm-topic-card strong {
    font-family: var(--pm-serif);
    font-size: 18px;
    line-height: 1.45;
}
.pm-topic-card span:not(.pm-feat-ico):not(.pm-topic-card-kicker) {
    color: var(--pm-muted);
    font-size: 13.5px;
    line-height: 1.75;
}
.pm-topic-card em {
    margin-top: auto;
    color: var(--pm-primary-d);
    font-style: normal;
    font-size: 13px;
    font-weight: 800;
}
.pm-topic {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 56px 0 86px;
}
.pm-topic-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 44px;
    align-items: center;
}
.pm-topic-copy h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.18;
}
.pm-topic-copy .pm-lead {
    max-width: 680px;
    margin-top: 18px;
}
.pm-topic-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}
.pm-topic-badges span {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 7px 12px;
    border: 1px solid rgba(224, 135, 154, .18);
    border-radius: 999px;
    background: var(--pm-panel-soft);
    color: var(--pm-primary-d);
    font-size: 13px;
    font-weight: 800;
}
.pm-topic-media {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #111;
    box-shadow: 0 24px 70px rgba(35, 48, 41, .16);
}
.pm-topic-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 58%, rgba(0,0,0,.22) 100%);
    pointer-events: none;
}
.pm-topic-media {
    aspect-ratio: 4 / 3;
    background: #f4f0eb;
}
.pm-topic-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--pm-img-pos, center);
}
.pm-topic-media-portrait {
    background: linear-gradient(90deg, #f7f1ef 0%, #fff9f8 50%, #f7f1ef 100%);
}
.pm-topic-media-portrait img {
    object-fit: contain;
    object-position: var(--pm-img-pos, center);
}
.pm-topic-media picture {
    display: block;
    width: 100%;
    height: 100%;
}
.pm-topic-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 42px 0 0;
    padding: 10px;
    border: 1px solid var(--pm-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .82);
}
.pm-topic-nav a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    border-radius: 8px;
    color: var(--pm-muted);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}
.pm-topic-nav a:hover,
.pm-topic-nav a.is-active {
    background: var(--pm-primary);
    color: #fff;
}
.pm-topic-overview,
.pm-topic-flow,
.pm-topic-cta {
    margin-top: 58px;
}
.pm-topic-blocks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 26px;
}
.pm-topic-block {
    padding: 26px;
    border: 1px solid var(--pm-line);
    border-radius: 8px;
    background: var(--pm-panel);
    box-shadow: var(--pm-shadow);
}
.pm-topic-block h3 {
    margin: 16px 0 0;
    font-size: 20px;
    line-height: 1.45;
}
.pm-topic-block p {
    margin: 10px 0 0;
    color: var(--pm-muted);
    font-size: 14px;
    line-height: 1.85;
}
.pm-topic-block ul {
    display: grid;
    gap: 9px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}
.pm-topic-block li {
    position: relative;
    padding-left: 22px;
    color: var(--pm-ink);
    font-size: 13.5px;
    line-height: 1.75;
}
.pm-topic-block li::before {
    content: "";
    position: absolute;
    top: .72em;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pm-primary);
    box-shadow: 0 0 0 4px rgba(224, 135, 154, .12);
}
.pm-topic-flow {
    padding: 34px;
    border: 1px solid rgba(224, 135, 154, .18);
    border-radius: 8px;
    background: linear-gradient(180deg, #f3fbf8 0%, #ffffff 100%);
}
.pm-topic-flow-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}
.pm-topic-flow-list li {
    min-height: 116px;
    padding: 18px;
    border: 1px solid rgba(224, 135, 154, .14);
    border-radius: 8px;
    background: rgba(255, 255, 255, .82);
}
.pm-topic-flow-list span {
    display: block;
    color: var(--pm-primary-d);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .1em;
}
.pm-topic-flow-list strong {
    display: block;
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.65;
}
.pm-topic-cta {
    padding: 42px 28px;
    border: 1px solid var(--pm-line);
    border-radius: 8px;
    background: var(--pm-panel);
    box-shadow: var(--pm-shadow);
    text-align: center;
}
.pm-topic-cta h2 {
    margin: 6px 0 0;
    font-size: clamp(24px, 3.5vw, 36px);
}
.pm-topic-cta p {
    max-width: 620px;
    margin: 14px auto 0;
    color: var(--pm-muted);
    line-height: 1.85;
}
.pm-receive-guide .pm-topic-hero {
    min-height: 520px;
}
.pm-receive-step {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(300px, 520px);
    gap: 44px;
    align-items: center;
    margin-top: 72px;
    padding-bottom: 72px;
    border-bottom: 1px solid var(--pm-line);
}
.pm-receive-step.is-reversed {
    grid-template-columns: minmax(300px, 520px) minmax(0, .92fr);
}
.pm-receive-step.is-reversed .pm-receive-copy {
    order: 2;
}
.pm-receive-copy h2,
.pm-receive-help h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.35;
}
.pm-receive-copy p:not(.pm-eyebrow),
.pm-receive-help p {
    margin: 18px 0 0;
    color: var(--pm-muted);
    font-size: 17px;
    line-height: 2;
}
.pm-receive-visual {
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #eeeae3;
    box-shadow: 0 20px 54px rgba(35, 48, 41, .14);
}
.pm-receive-visual {
    aspect-ratio: 4 / 3;
}
.pm-receive-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--pm-img-pos, center);
}
.pm-receive-visual picture {
    display: block;
    width: 100%;
    height: 100%;
}
.pm-receive-help {
    margin-top: 78px;
    padding: 48px;
    border: 1px solid rgba(224, 135, 154, .18);
    border-radius: 8px;
    background: linear-gradient(180deg, #f3fbf8 0%, #ffffff 100%);
}
.pm-receive-checks {
    display: grid;
    gap: 16px;
    margin-top: 26px;
}
.pm-receive-checks p {
    position: relative;
    margin: 0;
    padding-left: 28px;
}
.pm-receive-checks p::before {
    content: "";
    position: absolute;
    top: .72em;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--pm-primary);
    box-shadow: 0 0 0 5px rgba(224, 135, 154, .12);
}
.pm-topic-actions {
    margin-top: 22px;
    display: flex;
    justify-content: center;
}
.pm-column-home {
    padding-top: 12px;
}
.pm-column-home-list {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}
.pm-column-home-entry {
    border-top: 1px solid var(--pm-line);
}
.pm-column-home-link {
    display: grid;
    gap: 12px;
    padding: 20px 0;
    color: inherit;
    text-decoration: none;
}
.pm-column-home-link strong {
    font-size: clamp(20px, 2.1vw, 28px);
    line-height: 1.45;
}
.pm-column-home-link > span {
    color: var(--pm-muted);
    font-size: 15px;
    line-height: 1.9;
}
.pm-column-home-link em {
    color: var(--pm-primary-d);
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
}
.pm-column-home-meta,
.pm-column-entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.pm-column-home-meta time,
.pm-column-entry-meta time {
    color: var(--pm-muted);
    font-size: 13px;
    letter-spacing: .04em;
}
.pm-column-home-meta span,
.pm-column-entry-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(224, 135, 154, .1);
    color: var(--pm-primary-d);
    font-size: 12px;
    font-weight: 700;
}
.pm-column-home-card strong {
    font-size: 17px;
}
.pm-column-index {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 86px;
}
.pm-column-index-hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    align-items: end;
    padding-bottom: 32px;
}
.pm-column-index-head {
    max-width: 760px;
    padding-bottom: 22px;
}
.pm-column-index-note {
    grid-column: 1 / -1;
    margin: 2px 0 0;
    color: var(--pm-muted);
    font-size: 14px;
    line-height: 1.85;
}
.pm-column-archive {
    display: grid;
    gap: 0;
    margin-top: 8px;
}
.pm-column-entry {
    border-top: 1px solid var(--pm-line);
}
.pm-column-entry:last-child {
    border-bottom: 1px solid var(--pm-line);
}
.pm-column-entry-link {
    display: grid;
    gap: 14px;
    padding: 28px 0;
    color: inherit;
    text-decoration: none;
}
.pm-column-entry-link h2 {
    margin: 0;
    font-size: clamp(24px, 2.5vw, 34px);
    line-height: 1.4;
}
.pm-column-entry-link p {
    margin: 0;
    color: var(--pm-muted);
    font-size: 15px;
    line-height: 1.95;
}
.pm-column-entry-more {
    color: var(--pm-primary-d);
    font-size: 13px;
    font-weight: 700;
}
.pm-column-entry-empty {
    display: grid;
    gap: 12px;
    padding: 28px 0 12px;
}
.pm-column-entry-empty strong {
    font-size: 20px;
    line-height: 1.5;
}
.pm-column-entry-empty p {
    margin: 0;
    color: var(--pm-muted);
    font-size: 15px;
    line-height: 1.9;
}
.pm-column-index-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}
.pm-column-featured {
    margin-top: 12px;
}
.pm-column-featured-link {
    display: grid;
    gap: 14px;
    padding: 28px 30px;
    border: 1px solid var(--pm-line);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(224, 135, 154, .12), transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(255, 251, 252, .94));
    box-shadow: var(--pm-shadow);
    color: inherit;
    text-decoration: none;
}
.pm-column-featured-link h2 {
    margin: 0;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.28;
}
.pm-column-featured-link p {
    margin: 0;
    color: var(--pm-muted);
    font-size: 16px;
    line-height: 1.95;
}
.pm-column-featured-kicker {
    color: var(--pm-primary-d);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.pm-column-list-section {
    margin-top: 40px;
}
.pm-column-list-head {
    max-width: 720px;
}
.pm-column-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}
.pm-column-entry-card {
    min-width: 0;
}
.pm-column-entry-card-link {
    height: 100%;
    padding: 24px;
    border: 1px solid var(--pm-line);
    border-radius: 22px;
    background: var(--pm-panel);
    box-shadow: var(--pm-shadow);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pm-column-entry-card-link:hover {
    transform: translateY(-2px);
    border-color: rgba(224, 135, 154, .28);
    box-shadow: 0 24px 48px rgba(18, 26, 22, .08);
}
.pm-column-entry-card-link h3 {
    margin: 0;
    font-size: clamp(22px, 2.1vw, 28px);
    line-height: 1.45;
}
.pm-column-entry-card-link p {
    margin: 0;
    color: var(--pm-muted);
    font-size: 15px;
    line-height: 1.9;
}
.pm-column-index-metric,
.pm-column-box {
    padding: 22px;
    border: 1px solid var(--pm-line);
    border-radius: 8px;
    background: var(--pm-panel);
    box-shadow: var(--pm-shadow);
}
.pm-column-index-metric strong {
    display: block;
    font-size: 30px;
    line-height: 1;
}
.pm-column-index-metric span {
    display: block;
    margin-top: 10px;
    color: var(--pm-muted);
    font-size: 13px;
    line-height: 1.7;
}
.pm-footer-link-subtle {
    opacity: .78;
}
.pm-footer-link-subtle:hover {
    opacity: 1;
}
.pm-column-cluster + .pm-column-cluster {
    margin-top: 34px;
}
.pm-column-grid {
    margin-top: 18px;
}
.pm-column-card {
    min-height: 220px;
}
.pm-column {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 86px;
}
.pm-column-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
    color: var(--pm-muted);
    font-size: 13px;
}
.pm-column-breadcrumb a {
    color: var(--pm-muted);
    text-decoration: none;
}
.pm-column-breadcrumb a:hover {
    color: var(--pm-primary-d);
}
.pm-column-hero {
    margin-bottom: 28px;
}
.pm-column-media {
    min-height: 320px;
}
.pm-column-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}
.pm-column-main {
    min-width: 0;
}
.pm-column-intro {
    margin-bottom: 26px;
}
.pm-column-intro p {
    margin: 0;
    color: var(--pm-muted);
    font-size: 16px;
    line-height: 1.95;
}
.pm-column-section {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 18px;
    padding: 26px 0;
    border-top: 1px solid var(--pm-line);
}
.pm-column-section:last-child {
    border-bottom: 1px solid var(--pm-line);
}
.pm-column-step {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--pm-panel-soft);
    color: var(--pm-primary-d);
    font-size: 18px;
    font-weight: 800;
}
.pm-column-section-copy h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.35;
}
.pm-column-section-copy p {
    margin: 14px 0 0;
    color: var(--pm-muted);
    font-size: 15px;
    line-height: 1.95;
}
.pm-column-section-copy ul {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}
.pm-column-section-copy li {
    position: relative;
    padding-left: 22px;
    font-size: 14px;
    line-height: 1.8;
}
.pm-column-section-copy li::before {
    content: "";
    position: absolute;
    top: .7em;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--pm-primary);
    box-shadow: 0 0 0 4px rgba(224, 135, 154, .12);
}
.pm-column-side {
    display: grid;
    gap: 16px;
    position: sticky;
    top: 92px;
}
.pm-column-box h3 {
    margin: 0;
    font-size: 19px;
    line-height: 1.45;
}
.pm-column-box p {
    margin: 12px 0 0;
    color: var(--pm-muted);
    font-size: 14px;
    line-height: 1.85;
}
.pm-column-faq,
.pm-column-related {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}
.pm-column-faq article + article,
.pm-column-related a + a {
    border-top: 1px solid var(--pm-line);
    padding-top: 12px;
}
.pm-column-faq strong,
.pm-column-related a {
    display: block;
    text-decoration: none;
}
.pm-column-related a {
    color: var(--pm-ink);
    font-weight: 700;
    line-height: 1.6;
}
.pm-column-related a:hover {
    color: var(--pm-primary-d);
}

/* ---- Column archive (simple card grid, ByteChips-inspired) ---- */
.pm-column-archive { max-width: 1040px; margin: 0 auto; padding: 8px 20px 64px; }
.pm-column-archive-hero { text-align: center; padding: 40px 0 30px; }
.pm-column-article-kicker { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; color: var(--pm-primary-d); text-decoration: none; text-transform: uppercase; }
.pm-column-archive-title { font-family: var(--pm-serif, "Noto Serif JP", serif); font-size: clamp(26px, 4.4vw, 38px); font-weight: 700; line-height: 1.4; margin: 10px 0 12px; }
.pm-column-archive-lead { color: var(--pm-muted); line-height: 1.9; max-width: 640px; margin: 0 auto; }
.pm-column-archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 10px; }
@media (max-width: 860px) { .pm-column-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pm-column-archive-grid { grid-template-columns: 1fr; } }
.pm-col-card { display: flex; flex-direction: column; text-decoration: none; border: 1px solid var(--pm-line); border-radius: 16px; overflow: hidden; background: var(--pm-card, #fff); box-shadow: 0 1px 2px rgba(15,23,42,.04); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.pm-col-card:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(40,30,35,.10); border-color: var(--pm-primary); }
.pm-col-card-media { display: block; aspect-ratio: 16 / 9; background: var(--pm-panel-soft, #f4eef0) center/cover no-repeat; }
.pm-col-card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.pm-col-card-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--pm-muted); }
.pm-col-card-tag { color: var(--pm-primary-d); font-weight: 700; }
.pm-col-card-title { font-family: var(--pm-serif, "Noto Serif JP", serif); font-size: 16px; font-weight: 600; line-height: 1.55; color: var(--pm-ink); }
.pm-col-card-excerpt { font-size: 13px; color: var(--pm-muted); line-height: 1.7; }
.pm-col-card-more { margin-top: 4px; font-size: 12.5px; font-weight: 700; color: var(--pm-primary-d); }
.pm-column-archive-empty { text-align: center; padding: 48px 20px; color: var(--pm-muted); }
.pm-column-archive-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 40px; }

/* ---- Single column article (ByteChips-simple, branded single WP post) ---- */
.pm-column-article { max-width: 760px; margin: 0 auto; padding: 0 20px 64px; color: var(--pm-ink); }
.pm-column-article-hero { padding: 44px 0 26px; border-bottom: 1px solid var(--pm-line); margin-bottom: 32px; }
.pm-column-article-hero .pm-column-article-kicker { margin-bottom: 12px; }
.pm-column-article-title { font-family: var(--pm-serif, "Noto Serif JP", serif); font-size: clamp(26px, 4.4vw, 38px); font-weight: 700; line-height: 1.45; margin: 12px 0 14px; letter-spacing: .01em; }
.pm-column-article-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--pm-muted); }
.pm-column-article-meta span { background: var(--pm-panel-soft, #f4eef0); padding: 2px 10px; border-radius: 999px; }
.pm-column-article-lead { margin: 16px 0 0; color: var(--pm-muted); line-height: 1.9; }
.pm-column-article-eyecatch { margin: 0 0 32px; border-radius: 16px; overflow: hidden; }
.pm-column-article-eyecatch img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.pm-column-article-body { font-size: 16px; line-height: 2; color: var(--pm-ink); }
.pm-column-article-body > *:first-child { margin-top: 0; }
.pm-column-article-body h2 {
    font-family: var(--pm-serif, "Noto Serif JP", serif);
    font-size: clamp(20px, 2.6vw, 24px);
    font-weight: 700;
    margin: 52px 0 20px;
    padding: 2px 0 2px 18px;
    border-left: 5px solid var(--pm-primary);
    line-height: 1.5;
}
.pm-column-article-body h3 {
    position: relative;
    font-size: 18px;
    font-weight: 800;
    margin: 34px 0 12px;
    padding: 14px 18px 14px 20px;
    border: 1px solid var(--pm-line);
    border-left: 5px solid var(--pm-primary);
    border-radius: 12px;
    background: linear-gradient(90deg, #fff7f9 0%, #fff 78%);
    box-shadow: 0 10px 24px rgba(40, 30, 35, .045);
    line-height: 1.55;
}
.pm-column-article-body h2 + h3 { margin-top: 18px; }
.pm-column-article-body h3 + p { margin-top: 0; }
.pm-column-article-body h4 { font-size: 16px; font-weight: 700; margin: 26px 0 8px; }
.pm-column-article-body p { margin: 0 0 18px; }
.pm-column-article-body a { color: var(--pm-primary-d); font-weight: 600; text-underline-offset: 3px; }
.pm-column-article-body ul, .pm-column-article-body ol { margin: 0 0 20px; padding-left: 1.4em; }
.pm-column-article-body li { margin: 6px 0; line-height: 1.85; }
.pm-column-article-body img { max-width: 100%; height: auto; border-radius: 12px; margin: 14px 0; }
.pm-column-article-body figure { margin: 1.8em 0; }
.pm-column-article-body figcaption { font-size: 13px; color: var(--pm-muted); text-align: center; margin-top: 8px; }
.pm-column-article-body blockquote { margin: 1.8em 0; padding: 12px 18px; border-left: 3px solid var(--pm-primary); background: var(--pm-panel-soft, #faf5f6); border-radius: 0 12px 12px 0; }
.pm-column-article-body hr { border: none; border-top: 1px solid var(--pm-line); margin: 2em 0; }
.pm-column-article-body code { background: var(--pm-panel-soft, #f4eef0); padding: 2px 6px; border-radius: 6px; font-size: .92em; }
.pm-column-article-body table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 14px 0 28px; font-size: 14px; border: 1px solid var(--pm-line); border-radius: 12px; overflow: hidden; }
.pm-column-article-body th, .pm-column-article-body td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--pm-line); }
.pm-column-article-body thead th { background: var(--pm-panel-soft, #f7eff1); font-weight: 700; }
.pm-column-article-body tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 560px) {
    .pm-column-article-body { font-size: 15.5px; line-height: 1.95; }
    .pm-column-article-body h2 { margin-top: 42px; padding-left: 14px; }
    .pm-column-article-body h3 { font-size: 16.5px; padding: 12px 14px 12px 16px; border-radius: 10px; }
}
.pm-column-article-cta { margin: 46px 0 0; padding: 26px; border-radius: 18px; background: var(--pm-panel-soft, #fbf4f6); border: 1px solid var(--pm-line); text-align: center; }
.pm-column-article-cta-title { font-weight: 700; font-size: 17px; margin: 0 0 6px; }
.pm-column-article-cta-lead { color: var(--pm-muted); font-size: 14px; margin: 0 0 16px; line-height: 1.8; }
.pm-column-article-related { margin: 54px 0 0; }
.pm-column-article-related-head { margin-bottom: 18px; }
.pm-column-article-related-head h2 { font-family: var(--pm-serif, "Noto Serif JP", serif); font-size: 22px; margin: 4px 0 0; }
.pm-column-article-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 720px) { .pm-column-article-related-grid { grid-template-columns: 1fr; } }
.pm-rel-card { display: flex; flex-direction: column; text-decoration: none; border: 1px solid var(--pm-line); border-radius: 14px; overflow: hidden; background: var(--pm-card, #fff); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.pm-rel-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(40,30,35,.1); border-color: var(--pm-primary); }
.pm-rel-card-media { display: block; aspect-ratio: 16 / 9; background: var(--pm-panel-soft, #f4eef0) center/cover no-repeat; }
.pm-rel-card-body { display: flex; flex-direction: column; gap: 5px; padding: 12px 14px; }
.pm-rel-card-body time { font-size: 11.5px; color: var(--pm-muted); }
.pm-rel-card-body strong { font-size: 14px; font-weight: 700; color: var(--pm-ink); line-height: 1.5; }
.pm-rel-card-more { font-size: 12px; color: var(--pm-primary-d); font-weight: 700; margin-top: 2px; }

html[data-pmtheme="dark"] body.pixmile-saas-page .pm-topic-card,
html[data-pmtheme="dark"] body.pixmile-saas-page .pm-topic-nav,
html[data-pmtheme="dark"] body.pixmile-saas-page .pm-topic-block,
html[data-pmtheme="dark"] body.pixmile-saas-page .pm-topic-flow-list li,
html[data-pmtheme="dark"] body.pixmile-saas-page .pm-topic-cta,
html[data-pmtheme="dark"] body.pixmile-saas-page .pm-column-index-metric,
html[data-pmtheme="dark"] body.pixmile-saas-page .pm-column-box {
    background: var(--pm-panel);
    border-color: var(--pm-line);
}
html[data-pmtheme="dark"] body.pixmile-saas-page .pm-topic-flow {
    background: linear-gradient(180deg, #243129 0%, var(--pm-panel) 82%);
    border-color: #496f5f;
}
html[data-pmtheme="dark"] body.pixmile-saas-page .pm-receive-help {
    background: linear-gradient(180deg, #243129 0%, var(--pm-panel) 82%);
    border-color: #496f5f;
}
html[data-pmtheme="dark"] body.pixmile-saas-page .pm-topic-badges span {
    background: #26342e;
    border-color: #3b5248;
    color: #c7ded4;
}
@media (max-width: 980px) {
    .pm-topic-grid,
    .pm-topic-blocks {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .pm-topic-hero {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .pm-topic-media {
        order: -1;
    }
    .pm-topic-flow-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .pm-column-index-summary,
    .pm-column-body {
        grid-template-columns: 1fr;
    }
    .pm-column-list {
        grid-template-columns: 1fr;
    }
    .pm-column-side {
        position: static;
    }
    .pm-receive-step,
    .pm-receive-step.is-reversed {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 50px;
        padding-bottom: 52px;
    }
    .pm-receive-step.is-reversed .pm-receive-copy {
        order: 0;
    }
}
@media (max-width: 600px) {
    .pm-topic-index,
    .pm-topic {
        width: min(100% - 20px, 1120px);
    }
    .pm-topic-index {
        padding-bottom: 52px;
    }
    .pm-topic {
        padding: 34px 0 64px;
    }
    .pm-topic-grid,
    .pm-topic-blocks,
    .pm-topic-flow-list,
    .pm-column-index-summary {
        grid-template-columns: 1fr;
    }
    .pm-topic-card,
    .pm-topic-block,
    .pm-topic-flow,
    .pm-topic-cta {
        padding: 20px;
    }
    .pm-topic-copy h1 {
        font-size: 34px;
    }
    .pm-receive-help {
        padding: 28px 20px;
    }
    .pm-column,
    .pm-column-index {
        width: min(100% - 20px, 1120px);
        padding-bottom: 64px;
    }
    .pm-column-featured-link,
    .pm-column-entry-card-link {
        padding: 20px;
        border-radius: 18px;
    }
    .pm-column-featured-link h2 {
        font-size: 28px;
    }
    .pm-column-section {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .pm-column-step {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .pm-column-section-copy h2 {
        font-size: 24px;
    }
    .pm-receive-copy p:not(.pm-eyebrow),
    .pm-receive-help p {
        font-size: 15px;
    }
    .pm-topic-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: thin;
    }
    .pm-topic-nav a {
        flex: 0 0 auto;
    }
}

/* ===================================================================
   LP refresh — sticky header, rich footer, relief / compare / pricing
   =================================================================== */

/* Sticky translucent header */
.pm-shell-header-wrap {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid rgba(231, 236, 234, .7);
}
html[data-pmtheme="dark"] body.pixmile-saas-page .pm-shell-header-wrap {
    background: rgba(15, 20, 19, .78);
    border-bottom-color: #232c29;
}
.pm-nav-anchors {
    gap: 2px;
    flex: 1 1 auto;
    justify-content: center;
}
.pm-nav-anchors a {
    border: none;
    background: transparent;
    color: var(--pm-muted);
    font-weight: 600;
    padding: 9px 12px;
}
.pm-nav-anchors a:hover { color: var(--pm-primary-d); }
.pm-nav-quiet { border-color: transparent !important; background: transparent !important; }
html[data-pmtheme="dark"] body.pixmile-saas-page .pm-nav-anchors a:hover { color: #5dcaa5; }
@media (max-width: 900px) { .pm-nav-anchors { display: none; } }

/* Rich footer (override legacy flex footer) */
.pm-shell-footer {
    display: block;
    margin-top: 40px;
    padding: 48px 0 28px;
    border-top: 1px solid var(--pm-line);
}
.pm-shell-footer .pm-footer-col {
    display: block;
}
.pm-footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 32px;
    align-items: start;
}
.pm-footer-brand .pm-brand { font-size: 18px; }
.pm-footer-tagline { margin: 14px 0 18px; color: var(--pm-muted); line-height: 1.8; max-width: 340px; font-size: 14px; }
.pm-footer-cta {
    display: inline-flex;
    min-width: 150px;
}
.pm-shell-footer a.pm-button-primary,
.pm-shell-footer a.pm-button-primary:hover,
html[data-pmtheme="dark"] body.pixmile-saas-page .pm-shell-footer a.pm-button-primary,
html[data-pmtheme="dark"] body.pixmile-saas-page .pm-shell-footer a.pm-button-primary:hover {
    color: var(--pm-primary-ink);
}
.pm-footer-col h4 { margin: 0 0 14px; font-size: 13px; font-weight: 800; font-family: var(--pm-serif); }
.pm-footer-col a { display: block; padding: 6px 0; color: var(--pm-muted); font-size: 14px; }
.pm-footer-col a:hover { color: var(--pm-primary-d); }
.pm-footer-base {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
    margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--pm-line);
    color: var(--pm-muted); font-size: 13px;
}
html[data-pmtheme="dark"] body.pixmile-saas-page .pm-shell-footer,
html[data-pmtheme="dark"] body.pixmile-saas-page .pm-footer-base { border-color: #232c29; }
html[data-pmtheme="dark"] body.pixmile-saas-page .pm-footer-col a:hover,
html[data-pmtheme="dark"] body.pixmile-saas-page .pm-footer-tagline { color: #b9c4bf; }
@media (max-width: 820px) {
    .pm-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .pm-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .pm-footer-grid { grid-template-columns: 1fr; } }

/* App shell: keep the signed-in workspace focused on the product UI. */
body.pixmile-saas-page-mypage {
    background: linear-gradient(180deg, #f8f6f1 0%, #ffffff 72%);
}
body.pixmile-saas-page-mypage main {
    width: min(100% - 32px, 1520px);
    margin: 0 auto;
}
.pm-portal-host {
    padding: 18px 0 10px;
}
.pm-legacy-tools {
    width: min(1120px, 100%);
    margin: 14px auto 0;
    color: var(--pm-muted);
    font-size: 12px;
}
.pm-legacy-tools > summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid var(--pm-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--pm-muted);
    cursor: pointer;
    list-style: none;
}
.pm-legacy-tools > summary::-webkit-details-marker {
    display: none;
}
.pm-legacy-tools > summary::before {
    content: "›";
    font-size: 15px;
    line-height: 1;
    transform: rotate(0deg);
    transition: transform .16s ease;
}
.pm-legacy-tools[open] > summary::before {
    transform: rotate(90deg);
}
.pm-legacy-tools > summary span {
    color: var(--pm-ink);
    font-weight: 700;
}
.pm-legacy-tools > summary small {
    color: var(--pm-muted);
    font-size: 11px;
    font-weight: 600;
}
.pm-legacy-tools:not([open]) {
    text-align: right;
}
.pm-legacy-tools:not([open]) > summary {
    opacity: .68;
}
.pm-legacy-tools:not([open]) > summary:hover,
.pm-legacy-tools[open] > summary {
    opacity: 1;
    border-color: #d2ccc1;
    background: #ffffff;
}
.pm-legacy-tools[open] {
    padding: 12px;
    border: 1px solid var(--pm-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 1px 2px rgba(33, 27, 20, .04), 0 10px 30px rgba(33, 27, 20, .06);
}
.pm-legacy-tools[open] > summary {
    margin-bottom: 12px;
}
/* ---- HQ: full-screen app (no marketing chrome, no page scroll) ---- */
body.pixmile-saas-page-hq { height: 100vh; overflow: hidden; margin: 0; }
body.pixmile-saas-page-hq .pm-shell-header-wrap,
body.pixmile-saas-page-hq .pm-shell-footer { display: none !important; }
body.pixmile-saas-page-hq > main { height: 100vh; min-height: 0; margin: 0; padding: 0; }
body.pixmile-saas-page-hq .pm-hq-page { max-width: none; height: 100%; min-height: 0; margin: 0; padding: 0; }
body.pixmile-saas-page-hq #pixmile-studio-root { height: 100%; min-height: 0; }
body.pixmile-saas-page-hq #pixmile-studio-root > * { height: 100%; }

body.pixmile-saas-page-mypage .pm-shell-footer-app {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100% - 32px, 1520px);
    margin: 8px auto 0;
    padding: 14px 0 24px;
    border-top: 1px solid var(--pm-line);
    color: var(--pm-muted);
    font-size: 12px;
}
body.pixmile-saas-page-mypage .pm-shell-footer-app nav {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}
body.pixmile-saas-page-mypage .pm-shell-footer-app a {
    color: var(--pm-muted);
    font-size: 12px;
}
body.pixmile-saas-page-mypage .pm-shell-footer-app a:hover {
    color: var(--pm-primary-d);
}
html[data-pmtheme="dark"] body.pixmile-saas-page-mypage {
    background: #12110f;
}
html[data-pmtheme="dark"] body.pixmile-saas-page-mypage .pm-legacy-tools > summary,
html[data-pmtheme="dark"] body.pixmile-saas-page-mypage .pm-legacy-tools[open],
html[data-pmtheme="dark"] body.pixmile-saas-page-mypage .pm-v2-intro,
html[data-pmtheme="dark"] body.pixmile-saas-page-mypage .pm-v2-sync-result {
    background: #1b1916;
    border-color: #38332c;
}
html[data-pmtheme="dark"] body.pixmile-saas-page-mypage .pm-legacy-tools > summary span,
html[data-pmtheme="dark"] body.pixmile-saas-page-mypage .pm-v2-intro strong,
html[data-pmtheme="dark"] body.pixmile-saas-page-mypage .pm-v2-sync-result strong {
    color: #f2ece2;
}
html[data-pmtheme="dark"] body.pixmile-saas-page-mypage .pm-legacy-tools > summary small,
html[data-pmtheme="dark"] body.pixmile-saas-page-mypage .pm-v2-intro p,
html[data-pmtheme="dark"] body.pixmile-saas-page-mypage .pm-v2-note,
html[data-pmtheme="dark"] body.pixmile-saas-page-mypage .pm-v2-sync-result p,
html[data-pmtheme="dark"] body.pixmile-saas-page-mypage .pm-shell-footer-app,
html[data-pmtheme="dark"] body.pixmile-saas-page-mypage .pm-shell-footer-app a {
    color: #a39b8e;
}
html[data-pmtheme="dark"] body.pixmile-saas-page-mypage .pm-v2-note code {
    background: #25221e;
    color: #d3dbcf;
}
html[data-pmtheme="dark"] body.pixmile-saas-page-mypage .pm-shell-footer-app {
    border-color: #38332c;
}
html[data-pmtheme="dark"] body.pixmile-saas-page-mypage .pm-shell-footer-app a:hover {
    color: #d3dbcf;
}
@media (max-width: 720px) {
    body.pixmile-saas-page-mypage main,
    body.pixmile-saas-page-mypage .pm-shell-footer-app {
        width: min(100% - 20px, 1520px);
    }
    .pm-legacy-tools:not([open]) {
        text-align: left;
    }
    .pm-legacy-tools > summary {
        width: 100%;
        justify-content: space-between;
    }
    body.pixmile-saas-page-mypage .pm-shell-footer-app {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
    body.pixmile-saas-page-mypage .pm-shell-footer-app nav {
        justify-content: flex-start;
    }
}

/* Relief: before / after */
.pm-relief-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 18px;
    align-items: stretch;
    margin-top: 28px;
}
.pm-relief-col {
    border: 1px solid var(--pm-line);
    border-radius: 16px;
    background: var(--pm-panel);
    padding: 24px;
}
.pm-relief-before { background: #fbfbfa; }
.pm-relief-after {
    border-color: var(--pm-primary);
    background: linear-gradient(180deg, #f3fbf8 0%, #ffffff 100%);
    box-shadow: 0 14px 40px rgba(224, 135, 154, .10);
}
.pm-relief-col h3 { margin: 0 0 14px; font-size: 17px; }
.pm-relief-before h3 { color: var(--pm-muted); }
.pm-relief-after h3 { color: var(--pm-primary-d); }
.pm-relief-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.pm-relief-col li { position: relative; padding-left: 28px; line-height: 1.6; font-size: 14.5px; }
.pm-relief-before li { color: var(--pm-muted); }
.pm-relief-before li::before {
    content: "✕"; position: absolute; left: 0; top: 1px;
    color: #c0563c; font-weight: 700; font-size: 13px;
}
.pm-relief-after li::before {
    content: "✓"; position: absolute; left: 0; top: 0;
    color: var(--pm-primary); font-weight: 800;
}
.pm-relief-arrow {
    display: grid; place-items: center;
    color: var(--pm-warm); font-size: 30px; font-weight: 700;
}
html[data-pmtheme="dark"] body.pixmile-saas-page .pm-relief-col { background: #161c1a; border-color: #2b3633; }
html[data-pmtheme="dark"] body.pixmile-saas-page .pm-relief-before { background: #131917; }
html[data-pmtheme="dark"] body.pixmile-saas-page .pm-relief-after { background: linear-gradient(180deg, #16221d 0%, #161c1a 100%); border-color: #1f6f59; }
@media (max-width: 760px) {
    .pm-relief-grid { grid-template-columns: 1fr; }
    .pm-relief-arrow { transform: rotate(90deg); font-size: 24px; }
}

/* Comparison table */
.pm-compare-wrap { margin-top: 26px; overflow-x: auto; }
.pm-compare {
    width: 100%; border-collapse: separate; border-spacing: 0;
    background: var(--pm-panel); border: 1px solid var(--pm-line);
    border-radius: 16px; overflow: hidden; min-width: 680px;
}
.pm-compare th, .pm-compare td {
    padding: 15px 14px; text-align: center; border-bottom: 1px solid var(--pm-line);
    font-size: 14px;
}
.pm-compare thead th { font-family: var(--pm-serif); font-weight: 600; font-size: 14px; color: var(--pm-muted); background: #fafbfb; }
.pm-compare .pm-compare-feat { text-align: left; font-weight: 600; color: var(--pm-ink); }
.pm-compare thead .pm-compare-feat { color: var(--pm-muted); font-weight: 600; }
.pm-compare .pm-compare-us { background: var(--pm-panel-soft); }
.pm-compare thead .pm-compare-us { background: var(--pm-primary); color: #fff; font-size: 16px; }
.pm-compare tbody tr:last-child td { border-bottom: none; }
.pm-mk { font-size: 16px; line-height: 1; }
.pm-mk-yes { color: var(--pm-primary); }
.pm-mk-part { color: var(--pm-warm); }
.pm-mk-no { color: #c2c8c5; }
.pm-compare-us .pm-mk-yes { font-size: 19px; }
.pm-compare-legend { margin-top: 14px; color: var(--pm-muted); font-size: 12.5px; line-height: 1.9; }
html[data-pmtheme="dark"] body.pixmile-saas-page .pm-compare { background: #161c1a; border-color: #2b3633; }
html[data-pmtheme="dark"] body.pixmile-saas-page .pm-compare th,
html[data-pmtheme="dark"] body.pixmile-saas-page .pm-compare td { border-color: #2b3633; }
html[data-pmtheme="dark"] body.pixmile-saas-page .pm-compare thead th { background: #1b2220; }
html[data-pmtheme="dark"] body.pixmile-saas-page .pm-compare .pm-compare-feat { color: #eef2f0; }
html[data-pmtheme="dark"] body.pixmile-saas-page .pm-compare .pm-compare-us { background: #1d2a25; }
html[data-pmtheme="dark"] body.pixmile-saas-page .pm-compare thead .pm-compare-us { background: var(--pm-primary); }

/* Pricing card */
.pm-pricing-card {
    border: 1px solid var(--pm-line);
    border-radius: 22px;
    background:
        radial-gradient(700px 300px at 50% -30%, rgba(240,163,94,.12), transparent 60%),
        linear-gradient(180deg, #ffffff 0%, #f5fbf9 100%);
    box-shadow: var(--pm-shadow);
    padding: 44px 32px;
    text-align: center;
}
.pm-pricing-card h2 { margin: 6px 0 0; font-size: clamp(26px, 4vw, 36px); }
.pm-pricing-lead { max-width: 640px; margin: 16px auto 0; color: var(--pm-muted); line-height: 1.85; }
.pm-pricing-points {
    list-style: none; margin: 22px auto 6px; padding: 0;
    display: flex; gap: 10px 26px; flex-wrap: wrap; justify-content: center;
}
.pm-pricing-points li { position: relative; padding-left: 24px; font-weight: 600; font-size: 14.5px; }
.pm-pricing-points li::before { content: "✓"; position: absolute; left: 0; color: var(--pm-primary); font-weight: 800; }
.pm-pricing-card .pm-actions { margin-top: 26px; }
.pm-pricing-card .pm-eyebrow { text-align: center; }
html[data-pmtheme="dark"] body.pixmile-saas-page .pm-pricing-card {
    background: linear-gradient(180deg, #161c1a 0%, #18221e 100%);
    border-color: #2b3633;
}
@media (max-width: 600px) { .pm-pricing-card { padding: 32px 20px; } }

/* ---- Hero: real photography storefront composition ---- */
.pm-hero-visual {
    position: relative;
    align-self: center;
}
.pm-hero-store {
    margin: 0;
    background: #fff;
    border: 1px solid var(--pm-line);
    border-radius: 20px;
    box-shadow: 0 30px 70px rgba(35, 48, 41, .18);
    padding: 14px;
    overflow: hidden;
}
.pm-hero-store-bar {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 4px 4px 12px;
}
.pm-hero-store-dot {
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--pm-primary);
    box-shadow: 0 0 0 3px var(--pm-panel-soft);
    flex: 0 0 auto;
}
.pm-hero-store-name { font-family: var(--pm-serif); font-weight: 600; font-size: 14px; color: var(--pm-ink); }
.pm-hero-cover {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3 / 2;
}
.pm-hero-cover img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pm-img-pos, center); display: block; background: #f4f0eb; }
.pm-hero-pricetag {
    position: absolute;
    left: 12px; bottom: 12px;
    background: rgba(255,255,255,.94);
    color: var(--pm-primary-d);
    font-weight: 800; font-size: 13px;
    padding: 6px 12px; border-radius: 999px;
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.pm-hero-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 8px;
}
.pm-hero-thumbs img {
    width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: var(--pm-img-pos, center);
    background: #f4f0eb;
    border-radius: 9px; display: block;
}
.pm-hero-float {
    position: absolute;
    left: -34px; bottom: -28px;
    width: 132px;
    margin: 0;
    padding: 7px 7px 12px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(35, 48, 41, .22);
    transform: rotate(-5deg);
}
.pm-hero-float img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: var(--pm-img-pos, center); background: #f4f0eb; border-radius: 4px; display: block; }
html[data-pmtheme="dark"] body.pixmile-saas-page .pm-hero-store,
html[data-pmtheme="dark"] body.pixmile-saas-page .pm-hero-float { background: #161c1a; border-color: #2b3633; }
@media (max-width: 980px) {
    .pm-hero { grid-template-columns: 1fr; }
    .pm-hero-visual { max-width: 460px; margin: 8px auto 26px; }
    .pm-hero-float { left: auto; right: -18px; }
}
@media (max-width: 520px) { .pm-hero-float { display: none; } }

/* ---- Works: real photo proof, lightweight WebP mosaic ---- */
.pm-works {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 74px;
}
.pm-works .pm-section-heading {
    max-width: 760px;
    margin: 0 auto 28px;
    text-align: center;
}
.pm-works-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}
/* Album samples (front page) */
.pm-samples-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 8px;
}
@media (max-width: 860px) { .pm-samples-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pm-sample-card {
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--pm-line, #f0dfe4);
    background: var(--pm-card, #fff);
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 30px rgba(196, 78, 114, 0.06);
    transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.pm-sample-card:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(196, 78, 114, 0.14); }
.pm-sample-cover {
    display: block;
    aspect-ratio: 4 / 3;
    background: var(--pm-primary, #e0879a) center/cover no-repeat;
}
.pm-sample-meta { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.pm-sample-meta strong { font-size: 15px; }
.pm-sample-meta small { color: #9a8b90; font-size: 12px; }
.pm-samples-cta { margin-top: 22px; text-align: center; }

/* Per-photographer storefront cards (shows pages are separated per photographer) */
.pm-stores-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 8px;
}
@media (max-width: 720px) { .pm-stores-grid { grid-template-columns: 1fr; } }
.pm-store-link-card {
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--pm-line, #ece3e6);
    background: var(--pm-card, #fff);
    text-decoration: none;
    color: inherit;
    box-shadow: 0 14px 38px rgba(40, 30, 35, 0.07);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pm-store-link-card:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(40, 30, 35, 0.14); }
.pm-store-link-cover {
    display: block;
    aspect-ratio: 16 / 10;
    background: var(--pm-st, #0f8a6e) center/cover no-repeat;
    border-bottom: 3px solid var(--pm-st, #0f8a6e);
}
.pm-store-link-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; }
.pm-store-link-name { font-family: "Noto Serif JP", serif; font-size: 18px; font-weight: 600; }
.pm-store-link-stat { color: #9a8b90; font-size: 12.5px; }
.pm-store-link-go { margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--pm-st, #0f8a6e); }
.pm-work-card {
    position: relative;
    grid-column: span 2;
    aspect-ratio: 3 / 2;
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #f4f0eb;
    box-shadow: 0 18px 46px rgba(35, 48, 41, .12);
}
.pm-work-card:nth-child(1),
.pm-work-card:nth-child(2) {
    grid-column: span 3;
}
.pm-work-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: var(--pm-img-pos, center);
    transition: filter .45s ease;
}
.pm-work-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.34) 100%);
    pointer-events: none;
}
.pm-work-card figcaption {
    position: absolute;
    left: 12px;
    bottom: 10px;
    z-index: 1;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    text-shadow: 0 1px 8px rgba(0,0,0,.38);
}
.pm-work-card:hover img {
    filter: saturate(1.03) contrast(1.02);
}
html[data-pmtheme="dark"] body.pixmile-saas-page .pm-work-card {
    box-shadow: 0 18px 46px rgba(0, 0, 0, .28);
}
@media (max-width: 860px) {
    .pm-works {
        padding: 20px 0 56px;
    }
    .pm-works-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .pm-work-card,
    .pm-work-card:nth-child(1),
    .pm-work-card:nth-child(2) {
        grid-column: span 1;
    }
}
@media (max-width: 520px) {
    .pm-works {
        width: min(100% - 20px, 1180px);
    }
    .pm-works-grid {
        grid-template-columns: 1fr;
    }
    .pm-work-card {
        border-radius: 7px;
    }
}

/* ===================================================================
   Japanese line-breaking — avoid mid-word breaks & lonely orphans
   (auto-phrase: Chrome breaks at bunsetsu; text-wrap balance/pretty
   rebalances lines so a single trailing character never sits alone)
   =================================================================== */
body.pixmile-saas-page h1,
body.pixmile-saas-page h2,
body.pixmile-saas-page h3,
body.pixmile-saas-page h4 {
    word-break: auto-phrase;
    line-break: strict;
    text-wrap: balance;
}
body.pixmile-saas-page p,
body.pixmile-saas-page li {
    line-break: strict;
    text-wrap: pretty;
}
/* Prominent lead/body copy: also break at phrase boundaries (no mid-word splits). */
body.pixmile-saas-page .pm-lead,
body.pixmile-saas-page .pm-section-sub,
body.pixmile-saas-page .pm-pricing-lead,
body.pixmile-saas-page .pm-buyer-copy p,
body.pixmile-saas-page .pm-feature-grid p,
body.pixmile-saas-page .pm-relief-col li {
    word-break: auto-phrase;
    line-break: strict;
    text-wrap: pretty;
}
/* Hero headline: largest type, most prone to ugly wraps — phrase-aware + balanced. */
body.pixmile-saas-page .pm-hero-copy h1 {
    word-break: auto-phrase;
    text-wrap: balance;
}

/* ===================================================================
   LP feature rows — 1 message + 1 large photo per section, airy
   =================================================================== */
.pm-feature-row {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
    padding: 60px 0;
}
.pm-feature-row.pm-row-reverse .pm-feature-media { order: -1; }
.pm-feature-text h2 {
    margin: 14px 0 0;
    font-size: clamp(26px, 3.2vw, 38px);
    line-height: 1.35;
}
.pm-feature-lead {
    margin: 20px 0 0;
    color: var(--pm-muted);
    font-size: 17px;
    line-height: 1.9;
    max-width: 44ch;
}
.pm-chips {
    list-style: none;
    margin: 26px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pm-chips li {
    background: var(--pm-panel-soft);
    color: var(--pm-primary-d);
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 999px;
}
.pm-feature-media {
    margin: 0;
    position: relative;
}
.pm-feature-media img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: var(--pm-img-pos, center);
    background: #f4f0eb;
    border-radius: 22px;
    display: block;
    box-shadow: 0 30px 70px rgba(35, 48, 41, .16);
}
html[data-pmtheme="dark"] body.pixmile-saas-page .pm-chips li { background: #13211d; color: #5dcaa5; }
@media (max-width: 860px) {
    .pm-feature-row {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 56px 0;
    }
    .pm-feature-row.pm-row-reverse .pm-feature-media { order: 0; }
    .pm-feature-media img { aspect-ratio: 16 / 10; }
}

/* ===================================================================
   LP feature media — faithful studio-panel reproductions (app window)
   =================================================================== */
.pm-shot {
    background: #fff;
    border: 1px solid var(--pm-line);
    border-radius: 16px;
    box-shadow: 0 30px 70px rgba(35, 48, 41, .16);
    overflow: hidden;
    font-family: 'Noto Sans JP', system-ui, sans-serif;
}
.pm-shot-bar {
    display: flex; align-items: center; gap: 6px;
    padding: 11px 14px; background: #f6f8f7; border-bottom: 1px solid var(--pm-line);
}
.pm-shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d7dedb; }
.pm-shot-tab {
    margin-left: 8px; font-size: 12px; font-weight: 700; color: var(--pm-primary-d);
    background: var(--pm-panel-soft); padding: 3px 11px; border-radius: 999px;
}
.pm-shot-body { padding: 16px; }
.pm-shot h5 { margin: 0; font-family: 'Noto Sans JP', system-ui, sans-serif; font-weight: 700; }

/* album grid */
.pm-shot-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.pm-shot-head strong { font-size: 14px; }
.pm-shot-head span { font-size: 11px; color: var(--pm-muted); }
.pm-shot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pm-shot-grid article { border: 1px solid var(--pm-line); border-radius: 10px; overflow: hidden; background: #fff; }
.pm-shot-thumb { display: block; position: relative; aspect-ratio: 4 / 3; background-color: #f4f0eb; background-size: cover; background-position: var(--pm-img-pos, center); background-repeat: no-repeat; }
.pm-shot-thumb em { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.62); color: #fff; font-size: 10px; font-style: normal; padding: 1px 6px; border-radius: 6px; }
.pm-shot-grid h5 { margin: 9px 10px 4px; font-size: 12.5px; }
.pm-shot-price { display: inline-block; margin: 0 10px 10px; font-size: 11px; font-weight: 700; color: var(--pm-primary-d); background: var(--pm-panel-soft); padding: 2px 8px; border-radius: 6px; }
.pm-shot-price.is-open { color: #475569; background: #eef2f1; }

/* import steps */
.pm-shot-import .pm-shot-step { display: flex; gap: 10px; margin-bottom: 14px; }
.pm-shot-import .pm-shot-step:last-child { margin-bottom: 0; }
.pm-shot-n { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: var(--pm-panel-soft); color: var(--pm-primary-d); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.pm-shot-step > div { flex: 1 1 auto; min-width: 0; }
.pm-shot-step strong { display: block; font-size: 12.5px; margin-bottom: 7px; }
.pm-shot-table { width: 100%; border-collapse: collapse; font-size: 11px; border: 1px solid var(--pm-line); border-radius: 8px; overflow: hidden; }
.pm-shot-table th, .pm-shot-table td { padding: 5px 9px; text-align: left; border-bottom: 1px solid var(--pm-line); white-space: nowrap; }
.pm-shot-table th { background: #f6f8f7; color: var(--pm-muted); font-weight: 600; }
.pm-shot-table tr:last-child td { border-bottom: none; }
.pm-shot-match { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pm-shot-match li { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.pm-shot-folder { font-family: ui-monospace, monospace; background: #f1f5f4; padding: 1px 7px; border-radius: 5px; font-size: 11px; }
.pm-shot-arrow { color: var(--pm-warm); }
.pm-shot-ok { margin-left: auto; font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--pm-primary-d); background: var(--pm-panel-soft); padding: 1px 9px; border-radius: 999px; }

/* sell card */
.pm-shot-sell { display: flex; flex-direction: column; gap: 14px; }
.pm-shot-sellhead { display: flex; justify-content: space-between; align-items: center; }
.pm-shot-sellhead strong { font-size: 15px; }
.pm-shot-field { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--pm-line); border-radius: 10px; padding: 12px 14px; }
.pm-shot-field span { font-size: 12px; color: var(--pm-muted); }
.pm-shot-field b { font-size: 19px; }
.pm-shot-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.pm-shot-opts span { font-size: 12px; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--pm-line); color: var(--pm-muted); }
.pm-shot-opts span.is-on { background: var(--pm-primary); color: #fff; border-color: var(--pm-primary); }
.pm-shot-vis { display: flex; align-items: center; justify-content: space-between; }
.pm-shot-vis > span { font-size: 12px; color: var(--pm-muted); }
.pm-shot-vis div { display: flex; gap: 6px; }
.pm-shot-vis em { font-style: normal; font-size: 12px; padding: 5px 13px; border-radius: 8px; border: 1px solid var(--pm-line); color: var(--pm-muted); }
.pm-shot-vis em.is-on { background: var(--pm-panel-soft); color: var(--pm-primary-d); border-color: #bee6da; font-weight: 700; }

/* sales dashboard */
.pm-shot-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.pm-shot-stats div { border: 1px solid var(--pm-line); border-radius: 10px; padding: 12px; }
.pm-shot-stats b { display: block; font-size: 18px; }
.pm-shot-stats span { font-size: 10.5px; color: var(--pm-muted); }
.pm-shot-sales th:nth-child(n+2), .pm-shot-sales td:nth-child(n+2) { text-align: right; }
.pm-shot-sales .pm-shot-ok { margin: 0; }

/* ---- Storage & retention policy (in pricing section) ---- */
.pm-storage {
    margin-top: 22px;
    border: 1px solid var(--pm-line);
    border-radius: 22px;
    background: var(--pm-panel);
    box-shadow: var(--pm-shadow);
    padding: 38px 34px;
}
.pm-storage-head { max-width: 720px; margin: 0 auto; text-align: center; }
.pm-storage-head h3 { margin: 0; font-size: clamp(20px, 2.6vw, 26px); line-height: 1.4; }
.pm-storage-head p { margin: 14px 0 0; color: var(--pm-muted); line-height: 1.9; }
.pm-storage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.pm-storage-grid article { }
.pm-storage-grid h4 { margin: 4px 0 0; font-size: 16px; font-weight: 700; }
.pm-storage-grid p { margin: 9px 0 0; color: var(--pm-muted); line-height: 1.85; font-size: 14px; }
.pm-billing-detail-list {
    display: grid;
    gap: 18px;
    margin-top: 30px;
}
.pm-billing-detail {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    border-top: 1px solid var(--pm-line);
    padding-top: 22px;
}
.pm-billing-detail:first-child {
    border-top: 0;
    padding-top: 0;
}
.pm-billing-detail h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
}
.pm-billing-detail p {
    margin: 10px 0 0;
    color: var(--pm-muted);
    line-height: 1.9;
    font-size: 14.5px;
}
@media (max-width: 760px) {
    .pm-storage { padding: 28px 20px; }
    .pm-storage-grid { grid-template-columns: 1fr; gap: 18px; }
    .pm-billing-detail { grid-template-columns: 1fr; gap: 12px; }
}

/* ---- feature "くわしく見る" link ---- */
.pm-feature-more { margin: 18px 0 0; }
.pm-feature-more a { color: var(--pm-primary-d); font-weight: 700; font-size: 14px; text-decoration: none; }
.pm-feature-more a:hover { text-decoration: underline; }

/* ---- FAQ / detail page ---- */
.pm-faq { max-width: 880px; }
.pm-faq > .pm-lead { font-size: 18px; margin: 16px 0 0; }
.pm-faq-group { margin-top: 48px; }
.pm-faq-group > .pm-eyebrow { margin-bottom: 6px; }
.pm-faq-group > h2 { margin: 0; font-size: clamp(22px, 3vw, 30px); line-height: 1.4; }
.pm-faq-grouplead { margin: 12px 0 0; color: var(--pm-muted); line-height: 1.9; }
.pm-faq-list { display: grid; gap: 10px; margin-top: 20px; }
.pm-faq-item { border: 1px solid var(--pm-line); border-radius: 12px; background: var(--pm-panel); box-shadow: var(--pm-shadow); }
.pm-faq-item summary {
    cursor: pointer; list-style: none; padding: 16px 20px;
    font-weight: 700; font-size: 15.5px; line-height: 1.6;
    display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.pm-faq-item summary::-webkit-details-marker { display: none; }
.pm-faq-item summary::after {
    content: '+'; flex: 0 0 auto; color: var(--pm-primary);
    font-weight: 700; font-size: 22px; line-height: 1;
}
.pm-faq-item[open] summary::after { content: '\2212'; }
.pm-faq-item[open] summary { color: var(--pm-primary-d); }
.pm-faq-a { padding: 0 20px 18px; color: var(--pm-muted); line-height: 1.95; font-size: 14.5px; }

/* ---- Plan / capacity-in-photos guide ---- */
.pm-plans { margin-top: 22px; }
.pm-plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 26px; align-items: stretch; }
.pm-plan-grid article {
    border: 1px solid var(--pm-line);
    border-radius: 18px;
    background: var(--pm-panel);
    box-shadow: var(--pm-shadow);
    padding: 26px 22px;
    text-align: center;
    display: flex; flex-direction: column;
}
.pm-plan-grid .pm-plan-pro {
    border-color: var(--pm-primary);
    background: linear-gradient(180deg, #f3fbf8 0%, #ffffff 60%);
    box-shadow: 0 18px 46px rgba(224, 135, 154, .12);
}
.pm-plan-badge {
    align-self: center;
    font-size: 12px; font-weight: 700;
    color: var(--pm-primary-d); background: var(--pm-panel-soft);
    padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
.pm-plan-pro .pm-plan-badge { background: var(--pm-primary); color: #fff; }
.pm-plan-grid .pm-plan-biz { background: #14201d; border-color: #14201d; color: #eaf4f0; }
.pm-plan-biz .pm-plan-badge { background: rgba(255,255,255,.14); color: #d7efe7; }
.pm-plan-biz .pm-plan-cap { color: #fff; }
.pm-plan-biz .pm-plan-cap small, .pm-plan-biz .pm-plan-eg, .pm-plan-biz .pm-plan-price span, .pm-plan-biz .pm-plan-list li { color: #9db5ac; }
.pm-plan-biz .pm-plan-price strong { color: #fff; }
.pm-plan-biz .pm-plan-for { color: #eaf4f0; }
.pm-plan-grid h4 { margin: 0; font-size: 17px; font-weight: 800; }
.pm-plan-price {
    margin: 13px 0 0;
    min-height: 54px;
}
.pm-plan-price strong {
    display: block;
    color: var(--pm-ink);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
}
.pm-plan-price span {
    display: block;
    color: var(--pm-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    margin-top: 3px;
}
.pm-plan-cap { margin: 10px 0 0; font-size: 30px; font-weight: 800; color: var(--pm-primary-d); line-height: 1.1; }
.pm-plan-cap small { display: block; font-size: 12px; font-weight: 600; color: var(--pm-muted); margin-top: 4px; }
.pm-plan-for { margin: 16px 0 0; font-size: 14px; font-weight: 700; }
.pm-plan-eg { margin: 8px 0 0; font-size: 13px; color: var(--pm-muted); line-height: 1.8; }
.pm-plan-list {
    list-style: none;
    margin: auto 0 0;
    padding: 18px 0 0;
    display: grid;
    gap: 8px;
    text-align: left;
}
.pm-plan-list li {
    position: relative;
    padding-left: 18px;
    color: var(--pm-muted);
    font-size: 12.5px;
    line-height: 1.6;
}
.pm-plan-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .72em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pm-primary);
}
.pm-plan-note { margin: 18px auto 0; max-width: 760px; text-align: center; font-size: 12.5px; color: var(--pm-muted); line-height: 1.9; }
@media (max-width: 980px) { .pm-plan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pm-plan-grid { grid-template-columns: 1fr; } }

/* Plan groups: お任せ（3カード） / セルフ（2カード） */
.pm-plan-group { margin-top: 22px; }
.pm-plan-group + .pm-plan-group { margin-top: 34px; }
.pm-plan-group-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 6px 0 2px; }
.pm-plan-group-head h4 { margin: 0; font-size: 18px; font-weight: 800; }
.pm-plan-group-head p { margin: 0; font-size: 13px; color: #5b6660; }
.pm-plan-grid-managed { grid-template-columns: repeat(3, 1fr); }
.pm-plan-grid-self { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
@media (max-width: 980px) { .pm-plan-grid-managed, .pm-plan-grid-self { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pm-plan-grid-managed, .pm-plan-grid-self { grid-template-columns: 1fr; } }

/* Business: 独立バンド（個別見積もり枠） */
.pm-plan-biz-band { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px 28px; margin-top: 22px; padding: 22px 26px; border-radius: 16px; background: #14201d; color: #eaf4f0; }
.pm-plan-biz-band .pm-plan-badge { background: rgba(255,255,255,.12); color: #cfe6dd; }
.pm-plan-biz-main { flex: 1 1 420px; min-width: 0; }
.pm-plan-biz-main h4 { margin: 8px 0 6px; font-size: 18px; font-weight: 800; }
.pm-plan-biz-main h4 small { font-weight: 700; font-size: 14px; opacity: .85; margin-left: 6px; }
.pm-plan-biz-main p { margin: 0; font-size: 13px; line-height: 1.8; opacity: .9; }
.pm-plan-biz-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; flex: 0 0 auto; }
.pm-plan-biz-feats li { font-size: 13px; padding-left: 18px; position: relative; }
.pm-plan-biz-feats li::before { content: ''; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: #4fae93; }
@media (max-width: 560px) { .pm-plan-biz-band { padding: 18px; } }

/* ===================================================================
   Use-case (solution) pages — /{base}/for/{slug}
   =================================================================== */
.pm-uc { width: min(1080px, calc(100% - 32px)); margin: 0 auto; padding: 40px 0 72px; }
.pm-uc-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; padding: 16px 0 32px; }
.pm-uc-hero h1 { margin: 0; font-size: clamp(30px, 4.6vw, 50px); line-height: 1.3; }
.pm-uc-hero .pm-lead { font-size: 18px; }
.pm-uc-media { margin: 0; }
.pm-uc-media img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: var(--pm-img-pos, center); background: #f4f0eb; border-radius: 22px; box-shadow: 0 30px 70px rgba(35, 48, 41, .16); display: block; }
.pm-uc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 26px; }
.pm-uc-pain, .pm-uc-sol { border: 1px solid var(--pm-line); border-radius: 18px; padding: 28px; background: var(--pm-panel); }
.pm-uc-sol { border-color: var(--pm-primary); background: linear-gradient(180deg, #f3fbf8 0%, #ffffff 70%); box-shadow: 0 14px 40px rgba(224, 135, 154, .10); }
.pm-uc-pain h2, .pm-uc-sol h2 { margin: 0 0 16px; font-size: 18px; }
.pm-uc-pain h2 { color: var(--pm-muted); }
.pm-uc-sol h2 { color: var(--pm-primary-d); }
.pm-uc-pain ul, .pm-uc-sol ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.pm-uc-pain li, .pm-uc-sol li { position: relative; padding-left: 28px; line-height: 1.7; font-size: 14.5px; }
.pm-uc-pain li { color: var(--pm-muted); }
.pm-uc-pain li::before { content: "✕"; position: absolute; left: 0; top: 1px; color: #c0563c; font-weight: 700; font-size: 13px; }
.pm-uc-sol li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--pm-primary); font-weight: 800; }
.pm-uc-plan {
    margin-top: 26px; border: 1px solid #bee6da; background: var(--pm-panel-soft);
    border-radius: 18px; padding: 24px 28px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.pm-uc-plan .pm-eyebrow { margin: 0 0 4px; }
.pm-uc-plan strong { font-size: 20px; }
.pm-uc-plan p { margin: 4px 0 0; color: var(--pm-muted); font-size: 14px; }
.pm-uc-more { margin-top: 44px; text-align: center; }
.pm-uc-links { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
.pm-uc-links a { border: 1px solid var(--pm-line); border-radius: 999px; padding: 9px 18px; font-size: 13px; font-weight: 600; color: var(--pm-ink); text-decoration: none; background: #fff; }
.pm-uc-links a:hover { border-color: var(--pm-primary); color: var(--pm-primary-d); }
.pm-uc .pm-actions-center { margin-top: 40px; }
@media (max-width: 860px) {
    .pm-uc-hero { grid-template-columns: 1fr; gap: 26px; }
    .pm-uc-hero .pm-uc-media { order: -1; }
    .pm-uc-cols { grid-template-columns: 1fr; }
}

/* ---- LP use-case cards ---- */
.pm-uc-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 26px; }
.pm-uc-card {
    display: flex; flex-direction: column;
    border: 1px solid var(--pm-line); border-radius: 16px; background: var(--pm-panel);
    padding: 24px; text-decoration: none; color: var(--pm-ink); box-shadow: var(--pm-shadow);
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.pm-uc-card:hover { border-color: var(--pm-primary); transform: translateY(-3px); box-shadow: 0 16px 40px rgba(224, 135, 154, .12); }
.pm-uc-card h3 { margin: 0; font-size: 16px; line-height: 1.5; }
.pm-uc-card p { margin: 10px 0 0; color: var(--pm-muted); font-size: 13.5px; line-height: 1.8; flex: 1 1 auto; }
.pm-uc-card-go { margin-top: 16px; color: var(--pm-primary-d); font-weight: 700; font-size: 13px; }
@media (max-width: 860px) { .pm-uc-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pm-uc-cards { grid-template-columns: 1fr; } }

.pm-uc-note { margin: 20px 0 0; padding: 14px 18px; background: var(--pm-warm-soft); border: 1px solid #f5d6b0; border-radius: 12px; color: #8a5a2b; font-size: 13.5px; line-height: 1.8; }

/* ---- Security / safety deep page ---- */
.pm-sec { max-width: 1000px; }
.pm-sec > .pm-lead { font-size: 18px; margin: 16px 0 0; }
.pm-sec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 32px; }
.pm-sec-card { border: 1px solid var(--pm-line); border-radius: 18px; background: var(--pm-panel); box-shadow: var(--pm-shadow); padding: 28px; }
.pm-sec-card h2 { margin: 14px 0 0; font-size: 19px; line-height: 1.5; }
.pm-sec-card p { margin: 10px 0 0; color: var(--pm-muted); line-height: 1.85; font-size: 14.5px; }
.pm-sec-card ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.pm-sec-card li { position: relative; padding-left: 24px; font-size: 13.5px; line-height: 1.7; }
.pm-sec-card li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--pm-primary); font-weight: 800; }
.pm-sec-note { margin: 26px 0 0; color: var(--pm-muted); font-size: 12.5px; line-height: 1.9; text-align: center; }
@media (max-width: 720px) { .pm-sec-grid { grid-template-columns: 1fr; } }

.pm-uc-detail { margin: 22px 0 0; }
.pm-uc-detail a { color: var(--pm-primary-d); font-weight: 700; font-size: 15px; text-decoration: none; }
.pm-uc-detail a:hover { text-decoration: underline; }

/* ---- Use-case page: richer sections (具体例 / 解決 / ここがすごい) ---- */
.pm-uc-block { margin-top: 50px; }
.pm-uc-block > h2 { margin: 0 0 24px; font-size: clamp(22px, 3vw, 30px); line-height: 1.4; text-align: center; }
.pm-uc-scenarios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pm-uc-scenario { display: flex; gap: 13px; align-items: flex-start; border: 1px solid var(--pm-line); border-radius: 14px; background: var(--pm-panel); box-shadow: var(--pm-shadow); padding: 20px; }
.pm-uc-q { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--pm-warm-soft); color: var(--pm-warm); font-weight: 800; display: grid; place-items: center; font-size: 16px; }
.pm-uc-scenario p { margin: 0; font-size: 14px; line-height: 1.85; }
.pm-uc-solution { border: 1px solid var(--pm-primary); border-radius: 20px; background: linear-gradient(180deg, #f3fbf8 0%, #ffffff 70%); padding: 34px 32px; box-shadow: 0 14px 40px rgba(224, 135, 154, .10); }
.pm-uc-solution > h2 { color: var(--pm-primary-d); }
.pm-uc-sollist { list-style: none; margin: 0 auto; padding: 0; max-width: 780px; display: grid; gap: 14px; }
.pm-uc-sollist li { position: relative; padding-left: 30px; line-height: 1.8; font-size: 15px; }
.pm-uc-sollist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--pm-primary); font-weight: 800; font-size: 16px; }
.pm-uc-wow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pm-uc-wow article { border: 1px solid var(--pm-line); border-radius: 16px; background: var(--pm-panel); box-shadow: var(--pm-shadow); padding: 24px; }
.pm-uc-wow h3 { margin: 0; font-size: 17px; line-height: 1.5; }
.pm-uc-wow p { margin: 10px 0 0; color: var(--pm-muted); font-size: 14px; line-height: 1.85; }
@media (max-width: 860px) { .pm-uc-scenarios, .pm-uc-wow { grid-template-columns: 1fr; } }

/* Production polish: keep the public LP calm, compact, and studio-like. */
html[data-pmtheme="dark"] body.pixmile-saas-page {
    --pm-bg: #171512;
    --pm-ink: #f6f1ea;
    --pm-muted: #b9afa2;
    --pm-line: #3a342b;
    --pm-panel: #211f1a;
    --pm-panel-soft: #342730;
    --pm-primary: #cf93a1;
    --pm-primary-d: #ecc0cc;
    --pm-primary-ink: #fffaf2;
    --pm-accent: #cf93a1;
    --pm-warm: #d6a36f;
    --pm-warm-soft: #30261d;
    --pm-shadow: 0 1px 2px rgba(0, 0, 0, .24), 0 18px 42px rgba(0, 0, 0, .28);
    background:
        radial-gradient(900px 520px at 88% -8%, rgba(184, 138, 89, .12), transparent 62%),
        radial-gradient(900px 560px at 4% 0%, rgba(98, 143, 122, .12), transparent 58%),
        linear-gradient(180deg, #181611 0%, #141310 100%);
}

html[data-pmtheme="dark"] body.pixmile-saas-page .pm-shell-header-wrap {
    background: rgba(24, 22, 17, .88);
    border-bottom-color: rgba(58, 52, 43, .82);
}

html[data-pmtheme="dark"] body.pixmile-saas-page .pm-panel,
html[data-pmtheme="dark"] body.pixmile-saas-page .pm-relief-col,
html[data-pmtheme="dark"] body.pixmile-saas-page .pm-compare,
html[data-pmtheme="dark"] body.pixmile-saas-page .pm-pricing-card,
html[data-pmtheme="dark"] body.pixmile-saas-page .pm-hero-store,
html[data-pmtheme="dark"] body.pixmile-saas-page .pm-hero-float,
html[data-pmtheme="dark"] body.pixmile-saas-page .pm-sec-card,
html[data-pmtheme="dark"] body.pixmile-saas-page .pm-uc-card,
html[data-pmtheme="dark"] body.pixmile-saas-page .pm-uc-wow article,
html[data-pmtheme="dark"] body.pixmile-saas-page .pm-uc-scenario {
    background: var(--pm-panel);
    border-color: var(--pm-line);
}

html[data-pmtheme="dark"] body.pixmile-saas-page .pm-relief-after,
html[data-pmtheme="dark"] body.pixmile-saas-page .pm-uc-sol,
html[data-pmtheme="dark"] body.pixmile-saas-page .pm-uc-solution {
    background: linear-gradient(180deg, #243129 0%, var(--pm-panel) 82%);
    border-color: #496f5f;
}

html[data-pmtheme="dark"] body.pixmile-saas-page .pm-chips li,
html[data-pmtheme="dark"] body.pixmile-saas-page .pm-feat-ico {
    background: #26342e;
    color: #c7ded4;
}

html[data-pmtheme="dark"] body.pixmile-saas-page .pm-compare thead th {
    background: #27231d;
}

html[data-pmtheme="dark"] body.pixmile-saas-page .pm-compare .pm-compare-us {
    background: #26342e;
}

html[data-pmtheme="dark"] body.pixmile-saas-page .pm-compare thead .pm-compare-us {
    background: #597a6b;
    color: #fffaf2;
}

html[data-pmtheme="dark"] body.pixmile-saas-page .pm-nav a:not(.pm-nav-primary),
html[data-pmtheme="dark"] body.pixmile-saas-page .pm-button:not(.pm-button-primary),
html[data-pmtheme="dark"] body.pixmile-saas-page .pm-uc-links a {
    background: rgba(33, 31, 26, .78);
    border-color: var(--pm-line);
    color: var(--pm-ink);
}

html[data-pmtheme="dark"] body.pixmile-saas-page-mypage {
    background: linear-gradient(180deg, #171512 0%, #1e1b16 100%);
}

@media (max-width: 720px) {
    body.pixmile-saas-page-home .pm-shell-header {
        min-height: 58px;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    body.pixmile-saas-page-home .pm-brand {
        flex: 0 0 auto;
        gap: 8px;
        font-size: 14px;
    }

    body.pixmile-saas-page-home .pm-brand-mark {
        width: 28px;
        height: 28px;
        border-radius: 7px;
    }

    body.pixmile-saas-page-home .pm-shell-header > .pm-nav:not(.pm-nav-anchors) {
        width: auto;
        margin-left: auto;
        flex-wrap: nowrap;
        justify-content: flex-end;
        gap: 6px;
    }

    body.pixmile-saas-page-home .pm-shell-header > .pm-nav:not(.pm-nav-anchors) .pm-nav-quiet:first-child {
        display: none;
    }

    body.pixmile-saas-page-home .pm-shell-header > .pm-nav:not(.pm-nav-anchors) a {
        min-height: 34px;
        padding: 7px 10px;
        border-radius: 7px;
        font-size: 12px;
        white-space: nowrap;
    }

    body.pixmile-saas-page-home .pm-hero {
        padding-top: 24px;
    }
}

/* ============================================================
   Manual: left menu + right content (1 purpose per real page)
   ============================================================ */
.pm-manual { display: flex; gap: 28px; align-items: flex-start; width: min(1240px, calc(100% - 40px)); margin: 24px auto 72px; }
.pm-manual-toggle { display: none; }
.pm-manual-nav {
    flex: 0 0 248px; position: sticky; top: 88px; align-self: flex-start;
    background: var(--pm-panel); border: 1px solid var(--pm-line); border-radius: 16px;
    max-height: calc(100vh - 110px); overflow: auto;
    padding: 14px; box-shadow: var(--pm-shadow);
}
.pm-manual-navcopy {
    display: grid;
    gap: 10px;
    padding: 6px 10px 12px;
    border-bottom: 1px solid var(--pm-line);
}
.pm-manual-navtitle {
    margin: 0;
    font-family: var(--pm-serif);
    font-size: 22px;
    line-height: 1.3;
}
.pm-manual-navdesc {
    margin: 0;
    color: var(--pm-muted);
    font-size: 13px;
    line-height: 1.8;
}
.pm-manual-navhome { display: inline-flex; width: fit-content; font-weight: 700; font-size: 13px; padding: 9px 14px; border: 1px solid var(--pm-line); border-radius: 999px; color: var(--pm-ink); background: var(--pm-bg); }
.pm-manual-searchblock {
    display: grid;
    gap: 10px;
    padding: 14px 10px 0;
}
.pm-manual-searchblock--filters {
    margin-top: 10px;
    padding-top: 18px;
    border-top: 1px solid var(--pm-line);
}
.pm-manual-searchlabel {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--pm-muted);
}
.pm-manual-searchinput {
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--pm-line);
    border-radius: 12px;
    background: var(--pm-bg);
    color: var(--pm-ink);
    font-size: 14px;
}
.pm-manual-purposechips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pm-manual-purposechip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--pm-line);
    border-radius: 999px;
    background: var(--pm-bg);
    color: var(--pm-muted);
    font-size: 12px;
    font-weight: 700;
}
.pm-manual-purposechip.is-active {
    background: var(--pm-primary);
    border-color: var(--pm-primary);
    color: var(--pm-primary-ink);
}
.pm-manual-navgroup { margin-top: 10px; }
.pm-manual-navlabel { display: block; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--pm-muted); padding: 0 10px 4px; }
.pm-manual-navitem {
    display: grid; gap: 4px; padding: 10px 10px; border-radius: 10px; text-decoration: none;
    color: var(--pm-ink); font-size: 13.5px; line-height: 1.4; transition: background .15s, color .15s;
}
.pm-manual-navitem:hover { background: var(--pm-panel-soft); }
.pm-manual-navitem.is-active { background: var(--pm-primary); color: var(--pm-primary-ink); font-weight: 700; }
.pm-manual-navitemtitle {
    display: block;
}
.pm-manual-navitemmeta {
    display: block;
    font-size: 11px;
    color: var(--pm-muted);
}
.pm-manual-navitem.is-active .pm-manual-navitemmeta {
    color: rgba(255, 255, 255, .82);
}
.pm-manual-empty {
    margin: 18px 10px 4px;
    color: var(--pm-muted);
    font-size: 12px;
    line-height: 1.7;
}
.pm-manual-body { flex: 1 1 auto; min-width: 0; }

.pm-man { background: var(--pm-panel); border: 1px solid var(--pm-line); border-radius: 18px; padding: 32px 34px; box-shadow: var(--pm-shadow); }
.pm-man h1 { font-family: var(--pm-serif); font-size: clamp(24px, 3vw, 32px); margin: 4px 0 14px; line-height: 1.3; }
.pm-man-lead { font-size: 15px; line-height: 1.85; color: var(--pm-ink); margin: 0 0 22px; }
.pm-man-lead strong { color: var(--pm-primary-d); }
.pm-man-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}
.pm-man-tag {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    background: rgba(224, 135, 154, .11);
    color: var(--pm-primary-d);
    font-size: 11px;
    font-weight: 700;
}
.pm-man-section {
    margin-top: 30px;
}
.pm-man-section:first-of-type {
    margin-top: 20px;
}
.pm-man-section h2 {
    margin: 0 0 16px;
    font-family: var(--pm-serif);
    font-size: clamp(20px, 2.4vw, 26px);
    line-height: 1.35;
}
.pm-man-intro {
    margin: 0;
    color: var(--pm-muted);
    font-size: 14.5px;
    line-height: 1.9;
}

.pm-man-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 22px; }
.pm-man-flow-step { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; background: var(--pm-panel-soft); font-weight: 600; font-size: 13px; }
.pm-man-flow-step b { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--pm-primary); color: #fff; font-size: 12px; }
.pm-man-flow-arrow { color: var(--pm-muted); }

.pm-man-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 22px; }
.pm-man-card { padding: 14px; border: 1px solid var(--pm-line); border-radius: 12px; display: flex; flex-direction: column; gap: 4px; }
.pm-man-card strong { color: var(--pm-primary-d); }
.pm-man-card span { font-size: 12.5px; color: var(--pm-muted); line-height: 1.6; }

.pm-man-step { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px dashed var(--pm-line); }
.pm-man-step-n { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--pm-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.pm-man-step-tx > strong { display: block; font-size: 15.5px; margin-bottom: 4px; }
.pm-man-step-tx p { margin: 0; color: var(--pm-muted); line-height: 1.8; font-size: 14px; }
.pm-man-step-tx p strong,
.pm-man-step-tx p b,
.pm-man-intro strong,
.pm-man-intro b,
.pm-man-faq p strong,
.pm-man-faq p b,
.pm-man-tip p strong,
.pm-man-tip p b { display: inline; font-size: inherit; margin: 0; color: var(--pm-primary-d); }

.pm-man-tip { display: flex; gap: 10px; margin: 22px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--pm-warm-soft); border: 1px solid var(--pm-alert-border); }
.pm-man-tip p { margin: 0; font-size: 13.5px; line-height: 1.8; }

.pm-man-faq { border: 1px solid var(--pm-line); border-radius: 12px; margin: 0 0 10px; overflow: hidden; }
.pm-man-faq summary { cursor: pointer; padding: 14px 16px; font-weight: 700; font-size: 14.5px; list-style: none; }
.pm-man-faq summary::-webkit-details-marker { display: none; }
.pm-man-faq summary::before { content: "Q. "; color: var(--pm-primary-d); }
.pm-man-faq[open] summary { border-bottom: 1px solid var(--pm-line); }
.pm-man-faq p { margin: 0; padding: 14px 16px; color: var(--pm-muted); line-height: 1.85; font-size: 14px; }

.pm-man-gallery {
    display: grid;
    gap: 22px;
}
.pm-man-shotreal {
    margin: 0;
    display: grid;
    gap: 12px;
}
.pm-man-shotframe {
    overflow: hidden;
    border: 1px solid var(--pm-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--pm-shadow);
}
.pm-man-shotframe img {
    display: block;
    width: 100%;
    height: auto;
}
.pm-man-shotmeta {
    display: grid;
    gap: 6px;
}
.pm-man-shotpurpose,
.pm-man-shotcaption,
.pm-man-shotvisible {
    margin: 0;
}
.pm-man-shotpurpose {
    font-weight: 700;
    color: var(--pm-ink);
    font-size: 14px;
}
.pm-man-shotcaption {
    color: var(--pm-muted);
    font-size: 13px;
    line-height: 1.8;
}
.pm-man-shotvisible {
    color: var(--pm-muted);
    font-size: 12px;
    line-height: 1.8;
}

.pm-man-next { display: inline-flex; margin-top: 26px; padding: 12px 22px; border-radius: 999px; background: var(--pm-primary); color: var(--pm-primary-ink); font-weight: 700; text-decoration: none; box-shadow: var(--pm-shadow); }
.pm-man-next:hover { background: var(--pm-primary-d); }

/* UI reproduction (looks like the real screen) */
.pm-man-shot { margin: 6px 0 18px; border: 1px solid var(--pm-line); border-radius: 14px; overflow: hidden; box-shadow: var(--pm-shadow); background: var(--pm-panel); }
.pm-shot-bar { display: flex; align-items: center; gap: 6px; padding: 9px 14px; background: var(--pm-panel-soft); border-bottom: 1px solid var(--pm-line); }
.pm-shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d8c2c9; }
.pm-shot-bar span { margin-left: 8px; font-size: 12px; color: var(--pm-muted); }
.pm-shotc { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.pm-shotc-center { align-items: center; }
.pm-shot-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pm-shot-row b, .pm-shotc > b { font-size: 14px; }
.pm-shot-line { padding: 10px 12px; border: 1px solid var(--pm-line); border-radius: 10px; font-size: 13.5px; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.pm-shot-dim { color: var(--pm-muted); font-size: 12px; }
.pm-shot-ok { color: var(--pm-primary-d); font-weight: 700; font-size: 12px; }
.pm-shot-btn { display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 999px; background: var(--pm-primary); color: #fff; font-weight: 700; font-size: 13px; white-space: nowrap; }
.pm-shot-input { padding: 10px 12px; border: 1px solid var(--pm-line); border-radius: 9px; color: var(--pm-muted); font-size: 13px; background: var(--pm-bg); }
.pm-shot-select { padding: 10px 12px; border: 1px solid var(--pm-line); border-radius: 9px; font-size: 13px; background: var(--pm-bg); }
.pm-shot-check { font-size: 13px; color: var(--pm-ink); }
.pm-shotbox { display: flex; flex-direction: column; gap: 14px; align-items: center; padding: 26px; border: 1px solid var(--pm-line); border-radius: 14px; }
.pm-shot-logo { font-family: var(--pm-serif); font-size: 26px; color: var(--pm-ink); }
.pm-shot-google { padding: 10px 18px; border: 1px solid var(--pm-line); border-radius: 999px; background: #fff; font-weight: 600; font-size: 13px; }
.pm-shot-modal { border: 1px solid var(--pm-line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px; max-width: 320px; }
.pm-shot-drop { border: 2px dashed var(--pm-primary); border-radius: 12px; padding: 26px; text-align: center; color: var(--pm-primary-d); font-weight: 600; font-size: 13.5px; background: var(--pm-panel-soft); }
.pm-shot-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.pm-shot-grid i { aspect-ratio: 1/1; border-radius: 8px; background: linear-gradient(135deg, #f6dbe2, #f3c9d4); }
.pm-shot-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--pm-primary); }
.pm-shot-kpis { display: flex; gap: 12px; }
.pm-shot-kpis span { flex: 1; border: 1px solid var(--pm-line); border-radius: 10px; padding: 12px; font-size: 12px; color: var(--pm-muted); display: flex; flex-direction: column; }
.pm-shot-kpis b { font-size: 19px; color: var(--pm-ink); }
.pm-shot-plans { display: flex; gap: 8px; }
.pm-shot-plan { flex: 1; border: 1px solid var(--pm-line); border-radius: 10px; padding: 12px 8px; text-align: center; font-size: 12px; line-height: 1.6; }
.pm-shot-plan.is-on { border-color: var(--pm-primary); box-shadow: 0 0 0 1px var(--pm-primary) inset; font-weight: 700; }
.pm-man-relatedlist {
    display: grid;
    gap: 12px;
}
.pm-man-relateditem {
    display: grid;
    gap: 4px;
    padding: 16px 18px;
    border: 1px solid var(--pm-line);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .92) 0%, rgba(248, 246, 241, .92) 100%);
    text-decoration: none;
    color: var(--pm-ink);
}
.pm-man-relateditem:hover {
    border-color: rgba(224, 135, 154, .4);
    box-shadow: var(--pm-shadow);
}
.pm-man-relatedtitle {
    display: block;
    font-weight: 700;
    font-size: 15px;
}
.pm-man-relatedmeta {
    display: block;
    color: var(--pm-muted);
    font-size: 12px;
}
.pm-man-verified {
    margin: 28px 0 0;
    color: var(--pm-muted);
    font-size: 12px;
}
.pm-man-pager {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
}
.pm-man-pagerlink {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--pm-line);
    border-radius: 999px;
    background: var(--pm-bg);
    color: var(--pm-ink);
    font-weight: 700;
}

@media (max-width: 860px) {
    .pm-manual { flex-direction: column; gap: 12px; }
    .pm-manual-toggle { display: inline-flex; align-self: flex-start; padding: 9px 16px; border: 1px solid var(--pm-line); border-radius: 999px; background: var(--pm-panel); font-weight: 700; font-size: 13px; }
    .pm-manual-nav { position: static; flex: none; width: 100%; max-height: none; display: none; }
    .pm-manual-nav.is-open { display: block; }
    .pm-man { padding: 22px 18px; }
    .pm-manual-navcopy {
        padding-right: 0;
        padding-left: 0;
    }
    .pm-manual-searchblock {
        padding-right: 0;
        padding-left: 0;
    }
    .pm-man-pager {
        flex-direction: column;
    }
}
