/* Public pages (landing page, legal placeholders, public 404, the bar above a sample
   report). Built on the report design system's tokens (render/static/report.css) with
   the brand green as the accent. ALWAYS LIGHT: these pages ignore the OS dark mode.
   Full-width bands; inner content max 1120px. Mobile first. Every selector is scoped
   (lp-…, pv-…, body.lp) so the sample report's own layout is never touched. */

:root {
    color-scheme: light
}

body.lp {
    margin: 0;
    padding: 0;
    background: #fff;
    color: var(--ink)
}

body.lp section {
    margin: 0
}

.lp-wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px
}

/* readable line length for long text, aligned with the other sections' left edge */
.lp-narrow > dl,
.lp-narrow > p {
    max-width: 860px
}

.lp-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap
}

.lp-skip {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 10;
    padding: 8px 12px;
    background: #fff;
    color: var(--brand);
    border: 2px solid var(--brand);
    border-radius: 8px
}

.lp-skip:focus {
    left: 16px
}

body.lp a:focus-visible,
body.lp select:focus-visible,
body.lp button:focus-visible,
.lp-samplebar a:focus-visible,
.lp-samplebar select:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px
}

/* ---- Japanese phrases: a line breaks only between phrases (string-pack marks) ---- */
.ph {
    display: inline-block
}

.lp-wide {
    display: none
}

:lang(ja) .lp-hero h1,
:lang(ja) .lp-subtitle,
:lang(ja) body.lp h2,
:lang(ja) body.lp h3,
:lang(ja) .lp-problems li,
:lang(ja) .lp-steps p,
:lang(ja) .lp-cards p,
:lang(ja) .lp-closing-line {
    word-break: auto-phrase  /* longer ja text: break between phrases where supported */
}

/* ---- header ---- */
.lp-top {
    background: #fff;
    border-bottom: 1px solid var(--rule)
}

.lp-top-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px 14px;
    min-height: 64px
}

.lp-brand {
    font-weight: 900;
    font-size: 18px;
    letter-spacing: .08em;
    color: var(--brand);
    text-decoration: none
}

.lp-lang {
    display: flex;
    align-items: center
}

/* "Log in" next to the language select (A95) — a small text link, not a button */
.lp-top-right {
    display: flex;
    align-items: center;
    gap: 14px
}

.lp-login {
    font-size: 14px;
    color: var(--brand);
    white-space: nowrap
}

.lp-lang-select {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 4px 0 10px;
    min-height: 40px;
    border: 1px solid var(--rule);
    border-radius: 999px;
    background: #fff;
    color: var(--ink-2)
}

.lp-lang-select select {
    font: inherit;
    font-size: 14px;
    border: 0;
    background: transparent;
    color: var(--ink);
    padding: 6px 4px;
    min-height: 38px;
    cursor: pointer
}

/* ---- bands ---- */
.lp-band {
    padding: clamp(56px, 8vw, 104px) 0
}

.lp-tint {
    background: #f7f6f1
}

body.lp h2 {
    display: block;
    font-size: clamp(23px, 2.6vw, 31px);
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: .01em;
    margin: 0 0 clamp(24px, 3.4vw, 40px);
    padding: 0;
    border: 0;
    color: var(--ink)
}

body.lp h2::before {
    content: "";
    display: block;
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: var(--brand);
    margin: 0 0 16px
}

body.lp h3 {
    font-size: 18px;
    line-height: 1.5;
    margin: 0 0 8px;
    color: var(--ink)
}

/* ---- hero ---- */
.lp-hero {
    background: linear-gradient(180deg, #eef6f2 0%, #fff 100%);
    padding-top: clamp(40px, 7vw, 96px)
}

.lp-hero-grid {
    display: grid;
    gap: 40px
}

/* Title sizes are balanced by look, not by px: Japanese glyphs read larger than Latin
   ones at the same size. ja scales with the text column so 「改善のヒントが、ひと目で
   わかる。」 (≈14em) stays one line from 960 px up; 42 px at 1440 px. en: 42 px at 1440
   px (≤ 3 lines), ~31 px on phones (≤ 5 lines). */
.lp-hero h1 {
    font-family: var(--serif);
    font-size: clamp(28px, calc(4.1vw - 5px), 42px);
    line-height: 1.4;
    margin: 0 0 20px;
    color: var(--ink);
    text-wrap: balance
}

:lang(en) .lp-hero h1 {
    font-size: clamp(31px, calc(3vw + 3px), 42px);
    line-height: 1.18
}

.lp-subtitle {
    font-size: clamp(17px, calc(1.1vw + 5px), 21px);
    line-height: 1.7;
    color: var(--ink-2);
    margin: 0 0 22px
}

.lp-body {
    font-size: 16.5px;
    line-height: 1.9;
    margin: 0 0 32px;
    max-width: 38em
}

.lp-cta-row {
    margin: 0
}

.lp-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 14px 32px;
    border-radius: 12px;
    background: var(--brand);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 24px -12px rgba(14, 110, 92, .55)
}

.lp-cta:hover {
    background: #0b5c4c
}

/* ---- hero preview: the stored sample report's verdict and KPI cards (real text) ---- */
.lp-preview {
    position: relative;
    margin: 0
}

.pv-card {
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 16px;
    box-shadow: 0 2px 0 rgba(0, 0, 0, .02), 0 24px 56px -28px rgba(28, 43, 42, .35);
    padding: 20px
}

.pv-store {
    margin: 0 0 12px;
    font-weight: 700;
    font-size: 16px
}

.pv-period {
    display: block;
    font-weight: 400;
    font-size: 12px;
    color: var(--ink-2)
}

/* "Fictional store": a small, quiet label next to the store name */
.pv-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border: 1px solid var(--rule);
    border-radius: 999px;
    background: #f7f6f1;
    color: var(--ink-2);
    font-size: 11.5px;
    font-weight: 500;
    vertical-align: 2px;
    white-space: nowrap
}

.pv-verdict {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.6;
    background: var(--pos-bg);
    color: var(--ink)
}

.pv-verdict.warn {
    background: #f7efdd;
    color: #4f3c0e
}

.pv-verdict.alert {
    background: var(--alert-bg);
    color: #6e2a1d
}

.pv-badge {
    display: inline-block;
    margin: 0 8px 4px 0;
    padding: 1px 9px;
    border-radius: 999px;
    background: var(--pos);
    color: #fff;
    font-size: 12px;
    font-weight: 700
}

.pv-verdict.warn .pv-badge {
    background: #8a6212
}

.pv-verdict.alert .pv-badge {
    background: var(--alert)
}

.pv-kpis {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px
}

.pv-kpis li {
    border: 1px solid var(--rule);
    border-radius: 10px;
    padding: 10px 12px;
    min-width: 0
}

.pv-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--ink-2)
}

.pv-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ink-3);
    flex: none
}

.pv-dot.pos {
    background: var(--pos)
}

.pv-dot.warn {
    background: var(--warn)
}

.pv-dot.alert {
    background: var(--alert)
}

.pv-value {
    display: block;
    font-size: 19px;
    font-weight: 700;
    font-feature-settings: "tnum" 1;
    font-variant-numeric: tabular-nums;
    white-space: nowrap  /* a figure never breaks */
}

.pv-sub {
    display: block;
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--ink-2)
}

.lp-preview figcaption {
    margin: 12px 0 0;
    font-size: 13.5px;
    text-align: center
}

.pv-link {
    color: var(--brand);
    font-weight: 700
}

/* the whole preview is clickable (one link: the caption) */
.pv-link::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px
}

/* ---- rows of three ---- */
.lp-grid3 {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px
}

.lp-problems li {
    position: relative;
    padding: 20px 20px 20px 52px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--rule);
    font-size: 16px;
    line-height: 1.7
}

.lp-problems li::before {
    content: "?";
    position: absolute;
    left: 18px;
    top: 21px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 22px;
    text-align: center
}

.lp-steps {
    counter-reset: step;
    gap: 28px
}

.lp-steps li {
    counter-increment: step
}

.lp-steps li::before {
    content: counter(step);
    display: block;
    width: 44px;
    height: 44px;
    margin: 0 0 14px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    line-height: 44px;
    text-align: center
}

.lp-steps p,
.lp-cards p {
    margin: 0;
    color: var(--ink-2);
    line-height: 1.85
}

/* what you get (A69): 1 column on phones, 2×2 from 600 px, 4 in a row from 1100 px */
.lp-grid4 {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px
}

.lp-lead {
    max-width: 860px;
    margin: calc(-1 * clamp(8px, 1.6vw, 20px)) 0 clamp(24px, 3vw, 36px);
    color: var(--ink-2);
    font-size: 17px;
    line-height: 1.8
}

@media (min-width: 600px) {
    .lp-grid4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px
    }
}

@media (min-width: 1100px) {
    .lp-grid4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 24px
    }
}

.lp-cards li {
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 14px;
    padding: 24px
}

/* closing call to action: centred, one line + the button */
.lp-closing {
    text-align: center
}

.lp-closing-line {
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 700;
    line-height: 1.6;
    margin: 0 0 24px
}

/* pricing (A91): one plan card */
.lp-plan {
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 14px;
    padding: 24px;
    max-width: 560px
}

/* Japanese breaks between phrases, never one character on its own line */
.lp-plan p,
.lp-plan li,
.lp-faq dd {
    word-break: auto-phrase;
    text-wrap: pretty
}

.lp-plan h3 {
    margin: 0 0 12px;
    font-size: 18px
}

.lp-price {
    font-size: clamp(24px, 3vw, 30px);
    font-weight: 700;
    margin: 0
}

.lp-annual {
    margin: 8px 0 0;
    text-wrap: pretty
}

.lp-free {
    margin: 12px 0 0;
    font-weight: 700;
    color: var(--brand)
}

.lp-plan h4 {
    margin: 20px 0 8px;
    font-size: 15px
}

.lp-includes {
    margin: 0;
    padding-left: 1.2em
}

.lp-includes li + li {
    margin-top: 6px
}

.lp-total-note {
    margin: 8px 0 0;
    font-size: 14px;
    color: var(--ink-2)
}

.lp-tax-note {
    margin: 16px 0 0;
    font-size: 13px;
    color: var(--ink-2)
}

.lp-currency {
    margin: 0 0 12px
}

.lp-currency select {
    font: inherit;
    margin-left: 8px;
    min-height: 40px
}

.lp-faq {
    margin: 0
}

.lp-faq div {
    padding: 20px 0;
    border-top: 1px solid var(--rule)
}

.lp-faq div:last-child {
    border-bottom: 1px solid var(--rule)
}

.lp-faq dt {
    font-weight: 700;
    font-size: 16.5px;
    margin: 0 0 6px
}

.lp-faq dd {
    margin: 0;
    color: var(--ink-2);
    line-height: 1.85
}

.lp-foot {
    padding: 28px 0;
    background: #f7f6f1;
    border-top: 1px solid var(--rule)
}

.lp-foot nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    font-size: 14px
}

.lp-foot a,
.lp-placeholder a {
    color: var(--brand)
}

.lp-legal h1 {
    font-size: clamp(22px, 3vw, 30px);
    margin: 0 0 20px;
    text-wrap: balance
}

.lp-legal-rows {
    margin: 0 0 24px;
    border-top: 1px solid var(--rule)
}

.lp-legal-rows > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 14px 0;
    border-bottom: 1px solid var(--rule)
}

.lp-legal-rows dt {
    font-weight: 700
}

.lp-legal-rows dd {
    margin: 0;
    overflow-wrap: anywhere
}

.lp-legal-rows dd p {
    margin: 0
}

.lp-legal-rows dd p + p {
    margin-top: 8px
}

.lp-legal a {
    color: var(--brand)
}

@media (min-width: 640px) {
    .lp-legal-rows > div {
        grid-template-columns: 13em minmax(0, 1fr);
        gap: 16px
    }
}

/* the Terms and the Privacy Policy (A110): long text from docs/legal/*.md */
.lp-doc-notice {
    max-width: 860px;
    margin: 0 0 12px;
    padding: 10px 14px;
    border-left: 4px solid var(--warn);
    background: var(--warn-bg);
    font-weight: 700
}

.lp-doc-updated {
    margin: 0 0 24px;
    color: var(--ink-2);
    font-size: 14px
}

.lp-doc-body {
    max-width: 860px;
    line-height: 1.8;
    overflow-wrap: anywhere
}

/* section headings: plain, like the 特商法 page's labels (not the LP's section titles) */
body.lp .lp-doc-body h2 {
    font-size: 18px;
    line-height: 1.5;
    margin: 28px 0 8px;
    padding-top: 14px;
    border-top: 1px solid var(--rule)
}

body.lp .lp-doc-body h2::before {
    content: none
}

.lp-doc-body p,
.lp-doc-body li {
    margin: 0 0 6px
}

.lp-doc-body ol,
.lp-doc-body ul {
    margin: 0 0 12px;
    padding-left: 1.6em
}

.lp-doc-body li > ul {
    margin: 4px 0 0;
    padding-left: 0.4em;
    list-style: none
}

.lp-doc-table {
    overflow-x: auto;
    margin: 8px 0 16px
}

.lp-doc-table table {
    border-collapse: collapse;
    min-width: 640px;
    font-size: 14px
}

.lp-doc-table th,
.lp-doc-table td {
    border: 1px solid var(--rule);
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
    overflow-wrap: normal;
    word-break: normal
}

.lp-doc-table td:first-child {
    min-width: 8em
}

.lp-doc-table th {
    background: #f6f7f8
}

.lp-placeholder h1 {
    font-size: clamp(24px, 3vw, 32px);
    margin: 0 0 16px
}

@media (min-width: 840px) {
    .lp-wrap {
        padding: 0 32px
    }

    .lp-grid3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px
    }
}

@media (min-width: 960px) {
    .lp-hero-grid {
        grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);  /* 60 / 40 */
        gap: 48px;
        align-items: center
    }

    .lp-hero-grid.no-preview {
        grid-template-columns: minmax(0, 1fr)
    }

    .lp-wide {
        display: block
    }
}

/* ---- above a sample report (the report keeps its own design) ---- */
.lp-samplebar {
    max-width: 860px;
    margin: -16px auto 16px
}

.lp-samplebar .lp-top {
    background: transparent;
    border: 0
}

.lp-samplebar .lp-wrap {
    padding: 0;
    max-width: none
}

.lp-samplebar .lp-top-in {
    min-height: 0;
    padding: 0 0 10px
}

.lp-banner {
    margin: 0;
    padding: 10px 14px;
    border-radius: 10px;
    background: #f7efdd;
    color: #5a4410;
    font-size: 14px;
    line-height: 1.6
}

.lp-banner a {
    color: #0e6e5c;
    font-weight: 700
}

/* ---- in-app guide (/ja/help, /en/help; A67): one readable column, contents first ---- */
.help-wrap {
    max-width: 760px
}

.lp-help {
    padding-top: clamp(32px, 5vw, 64px)
}

.lp-help h1 {
    font-family: var(--serif);
    font-size: clamp(26px, 3.2vw, 34px);
    line-height: 1.4;
    margin: 0 0 12px;
    color: var(--ink)
}

.help-lead {
    margin: 0 0 28px;
    color: var(--ink-2);
    line-height: 1.8
}

.help-toc {
    margin: 0 0 48px;
    padding: 18px 20px;
    border: 1px solid var(--rule);
    border-radius: 12px;
    background: #f7f6f1
}

.help-toc-h {
    margin: 0 0 8px;
    font-weight: 700
}

.help-toc ol {
    margin: 0;
    padding-left: 1.2em;
    line-height: 1.9
}

.help-toc > ol {
    list-style: none;
    padding-left: 0
}

.help-toc > ol > li > a {
    font-weight: 700
}

.help-toc ol ol {
    font-size: 14px;
    margin: 0 0 6px
}

.help-back {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px
}

/* "See the full guide →" under the steps (A72) */
.lp-more {
    margin: clamp(24px, 3vw, 36px) 0 0
}

.lp-more a {
    color: var(--brand);
    font-weight: 700
}

.help-toc a,
.help-top a,
.help-back a {
    color: var(--brand);
    overflow-wrap: anywhere
}

.help-ch {
    margin: 0 0 40px;
    scroll-margin-top: 16px
}

.help-ch h3 {
    margin-top: 28px;
    scroll-margin-top: 16px
}

.help-ch p,
.help-ch li {
    line-height: 1.85;
    overflow-wrap: anywhere
}

.help-ch p {
    margin: 0 0 12px
}

.help-ch ul {
    margin: 0 0 12px;
    padding-left: 1.3em
}

/* annotated screenshots (A73): full column width, scaled down on phones; the numbers
   below match the circles in the image */
.help-shot {
    margin: 4px 0 14px
}

.help-shot a {
    display: block
}

/* desktop captures are 880 px wide (A74): from 1000 px the figure grows past the text
   column (centred on it) so the UI text shows at its real size, like the body text */
@media (min-width: 1000px) {
    .help-shot {
        width: min(880px, calc(100vw - 64px));
        margin-left: calc((100% - min(880px, calc(100vw - 64px))) / 2)
    }
}

.help-shot img {
    display: block;
    /* the width attribute (the capture's CSS size) decides: a narrow crop is never
       enlarged, a wide one is shrunk to fit */
    max-width: 100%;
    height: auto;
    border: 1px solid var(--rule);
    border-radius: 10px;
    background: #f7f6f1
}

.help-steps {
    list-style: none;
    margin: 0 0 12px;
    padding: 0
}

.help-steps li {
    display: flex;
    gap: 8px;
    margin: 0 0 8px
}

.help-n {
    flex: none;
    color: #e8590c;
    font-weight: 700;
    line-height: 1.85
}

.help-top {
    font-size: 14px;
    margin-top: 20px
}
