/* flat-p3.css — phase-3 restyle layer for the 18 reshelled
   flat pages (about/agentrpo/careers/contact/methodology/
   newsletter/refer/roi/scout-scheduling, EN+JA).
   Loads AFTER styles-p3.css. Polish session 4 · 2026-08-25.
   PART A extracted verbatim from css/styles.css by
   tools/extract_flat_css.py; PARTs B/C hand-written. */

/* PART A — ported v15 component rules (verbatim blocks; 267 rules). Source: css/styles.css. Token names are the shared 43-name spine, so p3 values apply. */
.lang-ja h1, .lang-ja h2, .lang-ja h3, .lang-ja p, .lang-ja li,
.lang-ja .hero-sub, .lang-ja .section-sub {
    word-break: auto-phrase;
    overflow-wrap: anywhere;
    line-break: strict;
}
.section-header .section-sub { font-size: 18px; color: var(--fg-2); line-height: 1.65;
}
.section-sub .fn-marker {
    color: var(--brand);
    font-weight: 600;
    margin-left: 1px;
    font-size: 0.85em;
    vertical-align: super;
    line-height: 0;
}
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.card-num {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--brand);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}
.flow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    position: relative;
}
.flow-step {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px 22px;
    text-align: center;
    position: relative;
}
.flow-num {
    display: inline-flex;
    width: 32px; height: 32px;
    background: var(--fg);
    color: var(--fg-inverse);
    border-radius: 50%;
    align-items: center; justify-content: center;
    font-weight: 600; font-size: 14px;
    margin-bottom: 14px;
}
.flow-step h3, .flow-step h4 { margin-bottom: 6px; font-size: 16px; font-weight: 600; letter-spacing: -0.005em;
}
.contact-info-card h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.005em; margin-bottom: 8px;
}
.flow-step p { font-size: 13.5px; color: var(--fg-3); margin-bottom: 10px;
}
.flow-step .flow-time {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--brand);
    background: var(--brand-soft);
    padding: 4px 9px;
    border-radius: var(--r-sm);
    font-weight: 600;
}
.price-card.featured {
    border: 2px solid var(--fg);
    box-shadow: var(--shadow-lg);
}
.cta-section { background: var(--bg-dark); color: var(--fg-inverse); padding: 96px 0;
}
.cta-section h2 { color: var(--fg-inverse); text-align: center; max-width: 720px; margin: 0 auto 16px;
}
.cta-section .cta-sub { color: rgba(255,255,255,0.72); text-align: center; font-size: 18px; max-width: 600px; margin: 0 auto 40px;
}
.page-hero {
    padding: 72px 0 56px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.page-hero h1 { margin-bottom: 16px;
}
.page-hero .lead { max-width: 680px; margin: 0 auto; color: var(--fg-2);
}
.prose { max-width: 720px; margin: 0 auto; font-size: 16px; line-height: 1.75; color: var(--fg-1);
}
.prose h2 { margin: 40px 0 16px; font-size: 26px;
}
.prose h3 { margin: 28px 0 12px; font-size: 20px;
}
.prose p { margin-bottom: 18px;
}
.prose ul, .prose ol { margin: 0 0 18px 22px;
}
.prose li { margin-bottom: 8px;
}
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px;
}
.prose a:hover { color: var(--brand-hover);
}
.prose strong { color: var(--fg); font-weight: 600;
}
@media (max-width: 1024px) {
  .grid-3, .funnel-grid, .price-grid, .flow { grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 768px) {
  .grid-3, .grid-4, .grid-2, .funnel-grid, .price-grid, .flow, .trust-grid { grid-template-columns: minmax(0, 1fr);
}
  .grid-2 > *, .grid-3 > *, .grid-4 > *,
    .funnel-grid > *, .price-grid > *, .flow > *,
    .trust-grid > *, .ats-grid > * { min-width: 0; overflow-wrap: anywhere;
}
  .card-num, .module-num { overflow-wrap: anywhere; word-break: break-word;
}
  .page-hero { padding: 56px 0 40px;
}
  .flow-step { padding: 22px 18px;
}
  .cta-section { padding: 72px 0;
}
}
.price-card.featured { border: 2px solid var(--brand); box-shadow: var(--shadow-brand);
}
.price-card.featured .featured-badge { background: var(--brand); color: var(--fg-inverse);
}
.faq-section { padding: 96px 0 72px; background: var(--bg);
}
.faq-wrap { max-width: 860px; margin: 0 auto;
}
.faq-list { margin-top: 32px;
}
.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 4px 0;
}
.faq-item[open] { background: var(--bg-alt); border-radius: var(--r-md); padding: 4px 16px; margin: 4px -16px; border-bottom: 1px solid transparent;
}
.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--fg);
    list-style: none;
    gap: 16px;
    line-height: 1.45;
}
.faq-q::-webkit-details-marker { display: none;
}
.faq-q::after {
    content: '';
    width: 14px; height: 14px;
    border-right: 2px solid var(--fg-3);
    border-bottom: 2px solid var(--fg-3);
    transform: rotate(45deg);
    transform-origin: center;
    transition: transform 200ms var(--ease);
    flex-shrink: 0;
    margin-right: 4px;
    margin-top: -4px;
}
.faq-item[open] .faq-q::after { transform: rotate(-135deg); margin-top: 2px;
}
.faq-a {
    padding: 0 0 20px;
    color: var(--fg-2);
    line-height: 1.7;
    font-size: 15px;
}
.faq-a p + p { margin-top: 10px;
}
@media (max-width: 640px) {
  .faq-q { font-size: 15px; padding: 16px 0;
}
  .faq-a { font-size: 14px;
}
}
.ready-strip {
    padding: 72px 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.ready-strip .ready-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
}
.ready-strip h2 {
    margin-bottom: 8px;
    font-size: 28px;
}
.ready-strip p {
    font-size: 16px;
    color: var(--fg-2);
    margin: 0;
    max-width: 540px;
}
.ready-strip .ready-ctas {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
@media (max-width: 768px) {
  .ready-strip .ready-inner {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 20px;
}
  .ready-strip .ready-ctas {
        flex-direction: column;
}
  .ready-strip .ready-ctas .btn {
        width: 100%;
}
}
.article-byline .role {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--fg-3);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.refer-hero {
    padding: 80px 0 64px;
    background:
        radial-gradient(circle at 100% 0%, rgba(5,150,105,0.08) 0%, transparent 50%),
        linear-gradient(180deg, var(--brand-soft) 0%, var(--bg) 70%);
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.refer-hero h1 {
    margin-bottom: 18px;
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.025em;
}
.refer-hero h1 .brand-text { color: var(--brand);
}
.refer-hero .lead {
    max-width: 640px;
    margin: 0 auto 30px;
    font-size: 18px;
    color: var(--fg-1);
    line-height: 1.6;
}
.refer-hero .lead strong { color: var(--fg); font-weight: 600;
}
.refer-pair {
    display: inline-grid;
    grid-template-columns: auto auto auto;
    align-items: center;
    gap: 22px;
    padding: 22px 36px;
    background: var(--bg);
    border: 1px solid var(--brand-soft-2);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-sm);
    margin: 0 auto 28px;
}
.refer-pair .pair-side { text-align: center; min-width: 130px;
}
.refer-pair .pair-n {
    font-family: var(--font-serif);
    font-size: 56px;
    line-height: 1;
    color: var(--brand);
    letter-spacing: -0.02em;
    display: block;
    margin-bottom: 4px;
}
.lang-ja .refer-pair .pair-n { font-family: var(--font-display); font-weight: 700;
}
.refer-pair .pair-label {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--fg-3);
}
.refer-pair .pair-plus {
    font-family: var(--font-serif);
    font-size: 36px;
    color: var(--fg-3);
    line-height: 1;
}
.refer-hero .refer-microproof {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
    margin-top: 8px;
    font-size: 13px;
    color: var(--fg-2);
}
.refer-hero .refer-microproof span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.refer-hero .refer-microproof svg { color: var(--brand); flex-shrink: 0;
}
.refer-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}
.refer-step {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px 26px;
    position: relative;
}
.refer-step .step-num {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--brand);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 12px;
}
.refer-step h3 {
    font-size: 18px;
    line-height: 1.35;
    margin-bottom: 10px;
    color: var(--fg);
    letter-spacing: -0.01em;
}
.refer-step p {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--fg-2);
    margin: 0;
}
@media (max-width: 760px) {
  .refer-steps { grid-template-columns: 1fr;
}
}
.refer-recipients {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px 30px;
    max-width: 720px;
    margin: 0 auto;
}
.refer-recipients h3 {
    font-size: 18px;
    margin-bottom: 14px;
    color: var(--fg);
    letter-spacing: -0.01em;
}
.refer-recipients ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
}
.refer-recipients li {
    font-size: 14.5px;
    color: var(--fg-1);
    line-height: 1.5;
    padding-left: 22px;
    position: relative;
}
.refer-recipients li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    background: var(--brand);
    border-radius: 50%;
}
@media (max-width: 600px) {
  .refer-recipients ul { grid-template-columns: 1fr;
}
  .refer-pair { padding: 18px 24px; gap: 14px;
}
  .refer-pair .pair-side { min-width: 100px;
}
  .refer-pair .pair-n { font-size: 44px;
}
}
.newsletter-form {
    display: flex;
    gap: 8px;
    align-items: stretch;
    width: 100%;
}
.newsletter-form .nf-email {
    flex: 1 1 auto;
    min-width: 0;
    padding: 12px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: var(--r-sm);
    color: var(--fg-inverse);
    font-size: 14px;
    font-family: inherit;
    transition: border-color var(--dur), background var(--dur);
}
.newsletter-form .nf-email::placeholder { color: rgba(255,255,255,0.45);
}
.newsletter-form .nf-email:focus {
    outline: none;
    border-color: var(--brand);
    background: rgba(255,255,255,0.09);
}
.newsletter-form .nf-submit {
    flex: 0 0 auto;
    padding: 12px 18px;
    font-size: 14px;
    white-space: nowrap;
}
.newsletter-form .nf-hp { display: none !important;
}
.newsletter-form.nf-light .nf-email {
    background: var(--bg);
    border-color: var(--border-strong);
    color: var(--fg);
}
.newsletter-form.nf-light .nf-email::placeholder { color: var(--fg-4);
}
.newsletter-form.nf-light .nf-email:focus {
    border-color: var(--brand);
    background: var(--bg);
    box-shadow: 0 0 0 3px var(--brand-ring);
}
@media (max-width: 600px) {
  .newsletter-form { flex-direction: column;
}
  .newsletter-form .nf-submit { width: 100%;
}
}
.newsletter-hero {
    padding: 80px 0 64px;
    background: linear-gradient(180deg, var(--bg) 0%, var(--brand-soft) 100%);
    border-bottom: 1px solid var(--brand-soft-2);
}
.newsletter-hero .container { text-align: center;
}
.newsletter-hero .eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand-hover);
    margin: 0 0 14px;
}
.newsletter-hero h1 {
    font-size: clamp(36px, 5vw, 52px);
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin: 0 0 18px;
}
.newsletter-hero .lead {
    max-width: 640px;
    margin: 0 auto 32px;
    font-size: 18px;
    line-height: 1.6;
    color: var(--fg-2);
}
.lang-ja .newsletter-hero h1 { font-size: clamp(28px, 4.5vw, 42px); line-height: 1.25;
}
.lang-ja .newsletter-hero .lead { font-size: 16.5px; line-height: 1.75;
}
.newsletter-hero-form {
    max-width: 480px;
    margin: 0 auto;
}
.newsletter-hero-microproof {
    margin: 20px auto 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px 24px;
    font-size: 13px;
    color: var(--fg-3);
}
.newsletter-hero-microproof > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.newsletter-hero-microproof svg {
    color: var(--brand);
    flex: 0 0 14px;
}
.newsletter-body {
    padding: 64px 0;
}
.newsletter-body .container-narrow { max-width: 760px;
}
.newsletter-expect {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 40px 0;
}
.newsletter-expect .ne-card {
    padding: 22px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
}
.newsletter-expect .ne-card .ne-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--r-sm);
    background: var(--brand-soft);
    color: var(--brand-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.newsletter-expect .ne-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 6px;
    color: var(--fg);
    letter-spacing: -0.01em;
}
.newsletter-expect .ne-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--fg-2);
}
@media (max-width: 760px) {
  .newsletter-expect { grid-template-columns: 1fr; gap: 16px;
}
  .newsletter-hero { padding: 56px 0 48px;
}
  .newsletter-body { padding: 48px 0;
}
}
.newsletter-recent {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}
.newsletter-recent h2 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin: 0 0 6px;
}
.newsletter-recent p.recent-intro {
    color: var(--fg-2);
    margin: 0 0 24px;
    font-size: 15px;
}
.newsletter-recent ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}
.newsletter-recent li a {
    display: block;
    padding: 16px 18px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    text-decoration: none;
    color: var(--fg);
    font-weight: 500;
    transition: border-color var(--dur), background var(--dur);
}
.newsletter-recent li a:hover {
    border-color: var(--brand);
    background: var(--brand-soft);
}
.newsletter-recent li a span.r-meta {
    display: block;
    font-size: 12.5px;
    font-weight: 400;
    color: var(--fg-3);
    margin-top: 4px;
}
.newsletter-trust {
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid var(--border);
    font-size: 13.5px;
    color: var(--fg-3);
    line-height: 1.65;
}
.newsletter-trust strong { color: var(--fg-2); font-weight: 600;
}
.newsletter-hero.nf-dark { background: var(--bg-dark); color: var(--fg-inverse);
}
.newsletter-hero.nf-dark h1,
.newsletter-hero.nf-dark .lead { color: var(--fg-inverse);
}
.roi-section { padding-top: 32px; padding-bottom: 32px;
}
.roi-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
    padding: 32px;
    margin: 0 auto;
}
.roi-mode-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 28px;
}
.roi-mode-card {
    position: relative;
    display: block;
    cursor: pointer;
    border: 2px solid var(--border);
    border-radius: var(--r-md);
    padding: 18px 20px;
    background: var(--bg);
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
.roi-mode-card:hover { border-color: var(--border-strong);
}
.roi-mode-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.roi-mode-card:has(input:checked) {
    border-color: var(--brand);
    background: var(--brand-soft);
    box-shadow: var(--shadow-xs);
}
.roi-mode-card:focus-within {
    outline: 3px solid var(--brand-ring);
    outline-offset: 2px;
}
.roi-mode-card-inner { display: flex; flex-direction: column; gap: 4px;
}
.roi-mode-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--fg);
    line-height: 1.3;
}
.roi-mode-sub {
    font-size: 13px;
    color: var(--fg-2);
    line-height: 1.35;
}
.lang-ja .roi-mode-name { font-size: 14px;
}
.lang-ja .roi-mode-sub { font-size: 12px;
}
.roi-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.roi-inputs { display: flex; flex-direction: column; gap: 22px;
}
.roi-inputs[hidden] { display: none;
}
.roi-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.roi-field > label,
.roi-field-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--fg);
    line-height: 1.4;
}
.lang-ja .roi-field > label,
.lang-ja .roi-field-label { font-size: 13px;
}
.roi-field input[type="number"],
.roi-field input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--r-sm);
    background: var(--bg);
    color: var(--fg);
    font-size: 15px;
    font-family: var(--font-mono);
    transition: border-color 120ms ease, box-shadow 120ms ease;
}
.roi-field input[type="number"]:hover,
.roi-field input[type="text"]:hover {
    border-color: var(--fg-3);
}
.roi-field input[type="number"]:focus,
.roi-field input[type="text"]:focus {
    border-color: var(--brand);
    outline: none;
    box-shadow: 0 0 0 3px var(--brand-ring);
}
.roi-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.roi-help {
    font-size: 12.5px;
    color: var(--fg-2);
    line-height: 1.5;
}
.roi-cite {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--brand);
    background: var(--brand-soft);
    padding: 1px 5px;
    border-radius: var(--r-xs);
    white-space: nowrap;
}
.roi-warn {
    font-size: 12.5px;
    color: var(--warn);
    background: rgba(217,119,6,0.06);
    border-left: 3px solid var(--warn);
    padding: 6px 10px;
    border-radius: 0 var(--r-xs) var(--r-xs) 0;
    line-height: 1.4;
}
.roi-field-radio {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.roi-radio {
    position: relative;
    display: block;
    cursor: pointer;
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    padding: 12px 14px;
    background: var(--bg);
    transition: border-color 140ms ease, background-color 140ms ease;
}
.roi-radio:hover { border-color: var(--border-strong);
}
.roi-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.roi-radio:has(input:checked) {
    border-color: var(--brand);
    background: var(--brand-soft);
}
.roi-radio:focus-within {
    outline: 3px solid var(--brand-ring);
    outline-offset: 1px;
}
.roi-radio-inner { display: flex; flex-direction: column; gap: 3px;
}
.roi-radio-name {
    font-weight: 600;
    font-size: 13.5px;
    color: var(--fg);
    line-height: 1.35;
}
.roi-radio-sub {
    font-size: 12px;
    color: var(--fg-2);
    line-height: 1.45;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: baseline;
}
.roi-advanced {
    border-top: 1px dashed var(--border-strong);
    padding-top: 18px;
    margin-top: 4px;
}
.roi-advanced > summary {
    cursor: pointer;
    list-style: none;
    user-select: none;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--fg-2);
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.roi-advanced > summary::-webkit-details-marker { display: none;
}
.roi-advanced > summary::before {
    content: "›";
    font-family: var(--font-mono);
    font-size: 18px;
    line-height: 1;
    color: var(--fg-3);
    transition: transform 160ms ease;
    display: inline-block;
}
.roi-advanced[open] > summary::before { transform: rotate(90deg);
}
.roi-advanced > .roi-field { margin-top: 14px;
}
.roi-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 6px;
}
.roi-result {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 2px solid var(--brand-soft);
}
.roi-headline { margin: 0 0 24px;
}
.roi-headline-label {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--fg-2);
}
.roi-headline-value {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(38px, 6vw, 56px);
    line-height: 1.05;
    font-weight: 800;
    color: var(--brand-deep);
    letter-spacing: -0.02em;
}
.lang-ja .roi-headline-value { font-size: clamp(34px, 5.4vw, 50px);
}
.roi-status {
    margin: 8px 0 0;
    font-size: 13.5px;
    color: var(--fg-3);
    font-style: italic;
}
.roi-status:empty { display: none;
}
.roi-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}
.roi-stats:empty { display: none;
}
.roi-math {
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: var(--bg-alt);
    margin: 4px 0 20px;
}
.roi-math > summary {
    cursor: pointer;
    list-style: none;
    user-select: none;
    padding: 12px 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--fg-1);
    display: flex;
    align-items: center;
    gap: 10px;
}
.roi-math > summary::-webkit-details-marker { display: none;
}
.roi-math > summary::before {
    content: "›";
    font-family: var(--font-mono);
    font-size: 18px;
    line-height: 1;
    color: var(--brand);
    transition: transform 160ms ease;
}
.roi-math[open] > summary::before { transform: rotate(90deg);
}
.roi-math-toggle-label { line-height: 1;
}
.roi-math-body {
    margin: 0;
    padding: 0 16px 16px;
    border-top: 1px solid var(--border);
    background: var(--bg);
    border-radius: 0 0 var(--r-md) var(--r-md);
}
.roi-math-body:empty { display: none;
}
.roi-copy-msg {
    font-size: 13px;
    color: var(--brand);
    font-weight: 500;
}
.roi-copy-msg[hidden] { display: none;
}
.roi-cite-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.roi-cite-list li {
    background: var(--bg);
    border: 1px solid var(--border);
    border-left: 3px solid var(--brand);
    border-radius: var(--r-sm);
    padding: 14px 18px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--fg-1);
}
.roi-cite-list strong { color: var(--fg);
}
.roi-cite-list a {
    color: var(--brand);
    font-weight: 500;
    text-decoration: none;
}
.roi-cite-list a:hover { text-decoration: underline;
}
.roi-disclaimer { color: var(--fg-1);
}
.roi-disclaimer h2 { font-size: 22px; margin-bottom: 12px;
}
.roi-disclaimer p {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--fg-2);
}
@media (max-width: 720px) {
  .roi-widget { padding: 22px 18px;
}
  .roi-mode-toggle { grid-template-columns: 1fr; gap: 10px;
}
  .roi-field-row { grid-template-columns: 1fr;
}
  .roi-headline-value { font-size: clamp(32px, 9vw, 44px);
}
  .roi-actions { justify-content: stretch;
}
  .roi-actions .btn { width: 100%;
}
}
@media (prefers-reduced-motion: reduce) {
  .roi-mode-card, .roi-radio, .roi-advanced > summary::before,
    .roi-math > summary::before {
        transition: none;
}
}
@media print {
  .roi-mode-toggle, .roi-actions, .roi-share, .roi-advanced > summary {
        display: none;
}
  .roi-widget { box-shadow: none; border: 1px solid #ccc;
}
  .roi-math { background: none;
}
  .roi-math > summary { display: none;
}
  .roi-math-body { padding: 0; border: none; background: none;
}
  .roi-advanced { border: none; padding-top: 0;
}
  .roi-advanced > .roi-field { display: block;
}
}
.roi-recipient-ribbon {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: -4px 0 20px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fcd34d;
    border-radius: var(--r-md);
    font-size: 13.5px;
    line-height: 1.45;
    color: #78350f;
}
.roi-recipient-ribbon[hidden] { display: none;
}
.roi-recipient-icon {
    font-family: var(--font-mono);
    font-size: 16px;
    line-height: 1;
    color: #b45309;
    flex-shrink: 0;
}
.roi-recipient-msg { flex: 1;
}
.roi-recipient-reset {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0 0 0 4px;
    color: #92400e;
    font: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 2px;
    cursor: pointer;
}
.roi-recipient-reset:hover { color: #78350f;
}
.roi-recipient-close {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 4px 6px;
    margin-left: auto;
    color: #92400e;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    border-radius: var(--r-xs);
}
.roi-recipient-close:hover { background: rgba(146,64,14,0.08); color: #78350f;
}
.roi-mag-note {
    margin: 0 0 4px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--fg-2);
    font-style: italic;
}
.roi-mag-note:empty { display: none;
}
.roi-mag-note .roi-mag-band {
    display: inline-block;
    margin-right: 6px;
    padding: 1px 8px;
    border-radius: var(--r-pill);
    background: var(--brand-soft);
    color: var(--brand-deep);
    font-family: var(--font-mono);
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: 1px;
}
.roi-mag-note.is-low .roi-mag-band { background: #fef3c7; color: #78350f;
}
.roi-mag-note.is-high .roi-mag-band { background: #dbeafe; color: #1e3a8a;
}
.roi-cta-card {
    position: relative;
    margin: 0 0 24px;
    padding: 22px 22px 18px 28px;
    background: linear-gradient(180deg, var(--brand-soft) 0%, #ffffff 65%);
    border: 1px solid var(--brand-soft-2);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
}
.roi-cta-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--brand) 0%, var(--brand-deep) 100%);
}
.roi-cta-card[hidden] { display: none;
}
.roi-cta-eyebrow {
    margin: 0 0 4px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-deep);
}
.roi-cta-h {
    margin: 0 0 6px;
    font-family: var(--font-display);
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--fg);
    letter-spacing: -0.01em;
}
.lang-ja .roi-cta-h { font-family: var(--font-jp); font-size: 19px;
}
.roi-cta-lead {
    margin: 0 0 16px;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--fg-1);
    max-width: 64ch;
}
.roi-cta-lead .roi-cta-val {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--brand-deep);
    white-space: nowrap;
}
.roi-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}
.roi-cta-actions .btn { margin: 0;
}
.roi-cta-actions .roi-cta-trial { 
    background: var(--brand);
    border-color: var(--brand);
    color: var(--fg-inverse);
    font-weight: 600;
}
.roi-cta-actions .roi-cta-trial:hover {
    background: var(--brand-hover);
    border-color: var(--brand-hover);
    box-shadow: var(--shadow-brand);
    transform: translateY(-1px);
}
.roi-cta-trial-meta {
    display: block;
    margin-top: 2px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.06em;
    opacity: 0.85;
    text-transform: uppercase;
}
.roi-share-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    align-items: center;
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px dashed var(--brand-soft-2);
    font-size: 13.5px;
}
.roi-share-btn {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 4px 0;
    margin: 0;
    color: var(--brand-deep);
    font: inherit;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    border-radius: var(--r-xs);
    transition: color var(--dur);
}
.roi-share-btn:hover { color: var(--brand-hover); text-decoration: underline; text-underline-offset: 3px;
}
.roi-share-btn:focus-visible { outline: 2px solid var(--brand-ring); outline-offset: 3px;
}
.roi-share-btn svg {
    width: 14px; height: 14px;
    flex-shrink: 0;
    opacity: 0.8;
}
.roi-share-msg {
    margin-left: auto;
    color: var(--fg-3);
    font-size: 12.5px;
    font-style: italic;
}
.roi-share-msg[hidden] { display: none;
}
.roi-mobile-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;             
    background: linear-gradient(180deg, rgba(10,10,10,0.96) 0%, rgba(10,10,10,1) 100%);
    border-top: 1px solid rgba(5,150,105,0.35);
    box-shadow: 0 -8px 24px -8px rgba(10,10,10,0.4);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    transform: translateY(110%);
    transition: transform 260ms var(--ease);
    pointer-events: none;
}
.roi-mobile-sticky.is-shown {
    transform: translateY(0);
    pointer-events: auto;
}
.roi-mobile-sticky[hidden] { display: none;
}
.roi-mobile-sticky-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 560px;
    margin: 0 auto;
}
.roi-mobile-sticky-num {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}
.roi-mobile-sticky-label {
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    line-height: 1.1;
    margin-bottom: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.roi-mobile-sticky-value {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 800;
    color: #34d399;             
    line-height: 1.15;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.roi-mobile-sticky .btn {
    flex-shrink: 0;
    background: var(--brand);
    border-color: var(--brand);
    color: var(--fg-inverse);
    font-weight: 600;
}
.roi-mobile-sticky .btn:hover {
    background: var(--brand-hover);
    border-color: var(--brand-hover);
}
.roi-mobile-sticky-close {
    appearance: none;
    background: transparent;
    border: 0;
    width: 28px; height: 28px;
    padding: 0;
    color: rgba(255,255,255,0.55);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    border-radius: var(--r-xs);
    flex-shrink: 0;
}
.roi-mobile-sticky-close:hover { color: #fff; background: rgba(255,255,255,0.08);
}
@media (min-width: 641px) {
  .roi-mobile-sticky { display: none !important;
}
}
@media (max-width: 520px) {
  .roi-cta-card {
        padding: 18px 16px 14px 22px;
}
  .roi-cta-h { font-size: 18px;
}
  .roi-cta-lead { font-size: 14px;
}
  .roi-cta-actions { flex-direction: column; align-items: stretch;
}
  .roi-cta-actions .btn { width: 100%; justify-content: center;
}
  .roi-share-row { flex-direction: column; align-items: flex-start; gap: 8px;
}
  .roi-share-msg { margin-left: 0;
}
}
@media print {
  .roi-recipient-ribbon,
    .roi-cta-card,
    .roi-mobile-sticky,
    .roi-share-row,
    .site-nav,
    .site-footer {
        display: none !important;
}
}
/* ============================================================
   PART D — per-page component styles, ported verbatim from the
   pages' own inline <style> blocks (dropped by the reshell).
   .bio ships in PART C; data-lang preamble is dead (no
   [data-lang] markup remains) and is excluded.
   ============================================================ */
/* — from agentrpo.html — */
.tier-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin:48px 0; }
.tier-card { background:var(--bg); border:1px solid var(--border); border-radius:16px; padding:32px; display:flex; flex-direction:column; }
.tier-card.featured { border-color:var(--brand); box-shadow:0 0 0 3px var(--brand-soft); }
.tier-card .tier-name { font-family:var(--font-mono); font-size:11px; color:var(--fg-3); letter-spacing:0.1em; text-transform:uppercase; margin-bottom:8px; }
.tier-card h3 { font-size:26px; margin-bottom:16px; }
.tier-card .tier-scope { font-size:14px; color:var(--fg-2); margin-bottom:20px; line-height:1.6; min-height:72px; }
.tier-card .tier-price { font-family:var(--font-serif); font-size:36px; color:var(--fg); letter-spacing:-0.02em; margin-bottom:6px; }
.tier-card .tier-price-sub { font-size:13px; color:var(--fg-3); margin-bottom:20px; font-family:var(--font-mono); }
.tier-card ul { list-style:none; padding:0; margin:0 0 24px 0; font-size:14px; color:var(--fg-1); display:flex; flex-direction:column; gap:10px; }
.tier-card ul li { display:flex; gap:10px; align-items:flex-start; }
.tier-card ul li svg { flex-shrink:0; color:var(--brand); margin-top:3px; }
.tier-card .btn { margin-top:auto; }
@media (max-width:900px){ .tier-grid{grid-template-columns:1fr} .tier-card .tier-scope{min-height:auto} }
/* — from careers.html — */
.role-card { display:flex; justify-content:space-between; align-items:center; padding:24px 28px; background:var(--bg); border:1px solid var(--border); border-radius:12px; margin-bottom:12px; transition:border-color .15s ease, transform .15s ease; text-decoration:none; color:inherit; }
.role-card:hover { border-color:var(--brand); transform:translateY(-1px); }
.role-card .role-meta { display:flex; gap:16px; font-size:13px; color:var(--fg-3); font-family:var(--font-mono); margin-top:6px; }
.role-card h3 { font-size:18px; margin:0; }
.role-card .arrow { font-size:20px; color:var(--brand); font-weight:500; }
@media (max-width:640px){ .role-card{flex-direction:column; align-items:flex-start; gap:12px} .role-card .arrow{align-self:flex-end} }
/* — from contact.html — */
.contact-grid { display:grid; grid-template-columns:1.2fr 1fr; gap:56px; }
.contact-grid input, .contact-grid select, .contact-grid textarea { padding:13px 15px; background:var(--bg); border:1px solid var(--border); border-radius:8px; font-size:14px; font-family:inherit; width:100%; color:var(--fg); }
.contact-grid input:focus, .contact-grid select:focus, .contact-grid textarea:focus { outline:none; border-color:var(--brand); box-shadow:0 0 0 3px var(--brand-soft); }
.contact-form { display:flex; flex-direction:column; gap:12px; }
.contact-info-card { background:var(--bg-alt); border:1px solid var(--border); border-radius:12px; padding:28px; margin-bottom:16px; }
.contact-info-card h4 { margin-bottom:12px; font-size:14px; font-family:var(--font-mono); letter-spacing:0.05em; text-transform:uppercase; color:var(--fg-3); }
.contact-info-card p { font-size:15px; color:var(--fg-1); line-height:1.7; }
.contact-info-card a { color:var(--brand); text-decoration:none; font-weight:500; }
.contact-info-card a:hover { text-decoration:underline; }
@media (max-width:900px){ .contact-grid{grid-template-columns:1fr; gap:40px} }
/* — from methodology.html — */
.last-updated { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 8px; }
.dataset-grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin: 28px 0; }
.dataset { border: 1px solid var(--border); border-radius: var(--r-md); padding: 24px 26px; background: var(--bg-card); }
.dataset .ds-label { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.dataset h3 { margin: 0 0 12px; font-size: 19px; }
.dataset .ds-meta { display: flex; flex-wrap: wrap; gap: 18px; font-family: var(--font-mono); font-size: 12px; color: var(--fg-2); margin-bottom: 14px; padding: 10px 14px; background: var(--bg-alt); border-radius: var(--r-sm); }
.dataset .ds-meta strong { color: var(--fg); font-weight: 600; }
.dataset p { margin-bottom: 12px; line-height: 1.65; color: var(--fg-1); font-size: 15px; }
.dataset p:last-child { margin-bottom: 0; }

/* ============================================================
   PART B — p3 alignment layer (hand-written, polish session 4).
   Only overrides; never transforms PART A blocks.
   ============================================================ */
/* bare .eyebrow (heroes) — p3 only styles .section-header .eyebrow */
.eyebrow{display:inline-block;font-family:var(--font-mono);font-size:12px;
  letter-spacing:.12em;text-transform:uppercase;color:var(--brand);margin-bottom:12px}
/* hero rhythm to p3 scale */
.page-hero{padding:88px 0 64px}
.page-hero .lead{max-width:640px;margin-left:auto;margin-right:auto}
.newsletter-hero{padding:88px 0 64px}
.refer-hero{padding:88px 0 64px}
.section-sub{color:var(--fg-2)}
/* newsletter-shape FAQ → the pricing-page look (markup unchanged) */
.faq{max-width:760px;margin:0 auto}
.faq-item{padding:4px 0;border-bottom:1px solid var(--border)}
.faq-item > summary{display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:16px 2px;cursor:pointer;list-style:none}
.faq-item > summary::-webkit-details-marker{display:none}
.faq-item > summary::before{content:none}
.faq-item > summary h3{font-size:16px;font-weight:600;margin:0;letter-spacing:0;flex:1;text-align:left}
.faq-item > summary::after{content:"+";font-size:20px;font-weight:400;color:var(--fg-3);
  flex:0 0 auto;transition:transform var(--dur) var(--ease)}
.faq-item[open] > summary::after{transform:rotate(45deg)}
.faq-body{padding:0 2px 18px;font-size:14.5px;line-height:1.75;color:var(--fg-2)}
/* prose long-form rhythm */
.prose h2{margin-top:1.9em}
.prose h2:first-child{margin-top:0}
.prose ul{padding-left:22px;color:var(--fg-1)}
.prose li{margin:6px 0}
/* dark CTA parity with p3 .bg-dark language */
.cta-section h2{color:var(--fg-inverse)}
@media (max-width:640px){
  .page-hero,.newsletter-hero,.refer-hero{padding:64px 0 48px}
}

/* ============================================================
   PART C — .bio / .role, ported from en|ja/about.html inline
   <style> (that block is dropped by the reshell).
   ============================================================ */
.bio{display:grid;grid-template-columns:auto 1fr;gap:24px;align-items:start}
.bio img{width:120px;height:120px;border-radius:50%;object-fit:cover;border:1px solid var(--border)}
.bio h3{margin-bottom:4px}
.bio .role{font-family:var(--font-mono);font-size:12px;color:var(--fg-3);
  letter-spacing:0.05em;text-transform:uppercase;margin-bottom:12px}
@media (max-width:640px){.bio{grid-template-columns:1fr;text-align:left}
  .bio img{width:96px;height:96px}}


/* ============================================================
   Japanese line-breaking (added polish5-ja)
   Default UA rules let a Japanese line break between almost any
   two characters, stranding small kana and prolonged sound marks
   at the start of a line (クリ|ック, リクル|ーティング) and leaving
   one- or two-character orphan tails under headings.
   ============================================================ */

/* Body copy: break at phrase boundaries where the engine can find
   them (Chrome 119+; other engines fall back to normal cleanly),
   and never start a line with ぁぃっャュョ, ー or closing punctuation. */
:lang(ja) p, :lang(ja) li, :lang(ja) td, :lang(ja) th,
:lang(ja) dd, :lang(ja) dt, :lang(ja) figcaption, :lang(ja) blockquote,
:lang(ja) .hero-sub, :lang(ja) .section-sub, :lang(ja) .lead {
    word-break: auto-phrase;
    line-break: strict;
    overflow-wrap: anywhere;
}

/* Headings: deliberately NOT auto-phrase. A compound-noun heading
   (プライバシーポリシー) is a single phrase, so auto-phrase leaves the
   balancer no legal break point and the greedy fallback strands a
   tail — プライバシーポリ|シー. `normal` keeps every kinsoku-legal
   opportunity available, and text-wrap: balance then evens the
   lines: プライバ|シーポリシー. */
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) h4 {
    word-break: normal;
    line-break: strict;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

/* Japanese runs also appear inside English pages (the MHLW 人材サービス総合サイト
   registry line in the footer, company names). line-break only has meaning for
   CJK text, so applying strict kinsoku unconditionally is safe for Latin copy
   and stops 人材サ|ービス breaking mid-word on an <html lang="en"> page. */
/* A forced <br> makes Chromium's line balancer bail on the whole heading, so
   the segment after the break falls back to greedy fill and strands a tail
   (…候補者に会え|る。). text-wrap: pretty has no such limitation, so use it for
   exactly the headings that carry a forced break, and leave balance — which
   measures better everywhere else — on the rest. */
:lang(ja) h1:has(br), :lang(ja) h2:has(br),
:lang(ja) h3:has(br), :lang(ja) h4:has(br) {
    text-wrap: pretty;
}

body { line-break: strict; }
