/* Buyer evaluation sections use each product's established palette. */
.pe-jump { display: inline-flex; align-items: center; gap: 15px; margin-top: 28px; padding-bottom: 7px; border-bottom: 1px solid currentColor; color: inherit; font-size: 1.35rem; font-weight: 600; line-height: 1.8; text-decoration: none; text-underline-offset: 5px; }
.pe-jump span { font-size: 1.7rem; transition: transform .2s; }
.pe-jump:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }

.project-engagement {
    --pe-accent: var(--brand-deep-cyan, #00657f);
    --pe-accent-surface: rgba(0, 168, 212, .07);
    --pe-heading: var(--brand-navy, #0f1d4a);
    --pe-text: #4a5670;
    --pe-line: #dce5ed;
    --pe-paper: #fff;
    --pe-surface: #f5f8fb;
    --pe-button-text: #fff;
    padding: 106px 24px 92px;
    scroll-margin-top: 110px;
    background: var(--pe-paper);
    color: var(--pe-text);
    border-top: 1px solid var(--pe-line);
    font-family: "Noto Sans JP", sans-serif;
}

.project-engagement.pe-at {
    --pe-accent: var(--at-brand-bright, #75fff1);
    --pe-accent-surface: rgba(49, 225, 208, .055);
    --pe-heading: var(--at-text-primary, #f7fafc);
    --pe-text: var(--at-text-secondary, #9aa8b2);
    --pe-line: var(--at-border, #263943);
    --pe-paper: var(--at-midnight, #02080c);
    --pe-surface: var(--at-surface, #0d1820);
    --pe-button-text: var(--at-midnight, #02080c);
}

.project-engagement.pe-er {
    --pe-accent: var(--er-red-dark, #b30f10);
    --pe-accent-surface: var(--er-red-tint, rgba(227, 19, 20, .08));
    --pe-heading: var(--er-ink, #172024);
    --pe-text: var(--er-muted, #5c6b73);
    --pe-line: var(--er-line, #e2e8ec);
    --pe-surface: var(--er-fog, #f4f6f8);
}

.project-engagement.pe-li {
    --pe-accent: var(--li-cyan-dark, #00657f);
    --pe-heading: var(--li-navy, #14213d);
}

.pe-shell { max-width: 1180px; margin: 0 auto; }
.pe-heading { max-width: 810px; margin-bottom: 48px; }
.pe-eyebrow, .pe-label { display: block; font-size: 1.15rem; font-weight: 700; line-height: 1.7; letter-spacing: .13em; }
.pe-eyebrow { display: flex; align-items: center; gap: 11px; color: var(--pe-accent); margin-bottom: 18px; }
.pe-eyebrow > span { width: 24px; height: 2px; background: currentColor; }
.pe-label { color: var(--pe-accent); }
.project-engagement .pe-heading h2 { margin: 0 0 22px; color: var(--pe-heading); font-size: clamp(2.8rem, 3.4vw, 4.6rem); line-height: 1.4; font-weight: 700; letter-spacing: -.035em; }
.pe-heading > p { margin: 0; font-size: 1.65rem; line-height: 1.95; max-width: 740px; }
.pe-explorer { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); border: 1px solid var(--pe-line); border-radius: 18px; overflow: hidden; }
.pe-scenarios { background: var(--pe-surface); padding: 32px; }
.pe-scenarios > .pe-label { margin: 0 0 22px; }
.pe-scenario-buttons { display: flex; flex-direction: column; gap: 9px; }
.project-engagement .pe-scenario { width: 100%; display: grid; grid-template-columns: 25px 1fr 22px; gap: 15px; align-items: center; min-height: 70px; border: 1px solid transparent; border-radius: 8px; padding: 16px; color: var(--pe-text); text-align: left; background: transparent; font-size: 1.5rem; font-weight: 600; line-height: 1.7; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.pe-scenario-number { font-family: "Roboto Condensed", sans-serif; font-size: 1.35rem; opacity: .7; }
.project-engagement .pe-scenario.is-selected { color: var(--pe-heading); background: var(--pe-paper); border-color: var(--pe-line); }
.pe-scenario.is-selected .pe-scenario-number { color: var(--pe-accent); opacity: 1; }
.project-engagement .pe-scenario svg, .pe-contact svg, .pe-checkpoint > svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pe-scenario svg { opacity: .35; transition: transform .2s, opacity .2s; }
.pe-scenario.is-selected svg { color: var(--pe-accent); opacity: 1; }
.pe-scenario-panel { display: flex; align-items: center; padding: 40px 44px; background: var(--pe-paper); }
.pe-scenario-content { width: 100%; animation: pe-content-in .35s ease-out both; }
.project-engagement .pe-scenario-panel h3 { margin: 16px 0; color: var(--pe-heading); font-size: 2.65rem; font-weight: 700; line-height: 1.5; letter-spacing: -.025em; }
.pe-scenario-content > p { font-size: 1.55rem; line-height: 1.95; margin: 0 0 26px; }
.pe-checkpoint { display: flex; align-items: flex-start; gap: 14px; background: var(--pe-accent-surface); border-left: 2px solid var(--pe-accent); padding: 19px 20px; }
.pe-checkpoint > svg { flex: 0 0 22px; color: var(--pe-accent); margin-top: 2px; }
.pe-checkpoint strong { font-size: 1.2rem; color: var(--pe-accent); line-height: 1.7; font-weight: 700; }
.pe-checkpoint p { margin: 7px 0 0; color: var(--pe-heading); font-size: 1.4rem; line-height: 1.85; }
.pe-evaluation { display: grid; grid-template-columns: 1fr 1.15fr; gap: 80px; margin: 78px 0; }
.project-engagement .pe-evaluation-intro h3, .project-engagement .pe-questions-intro h3 { margin: 14px 0 18px; color: var(--pe-heading); font-size: clamp(2.4rem, 2.7vw, 3.4rem); font-weight: 700; line-height: 1.5; letter-spacing: -.035em; }
.pe-evaluation-intro > p, .pe-questions-intro > p { margin: 0; max-width: 440px; font-size: 1.5rem; line-height: 1.95; }
.pe-steps { list-style: none; margin: 0; padding: 0; }
.pe-steps li { display: flex; position: relative; gap: 24px; padding: 0 0 32px; }
.pe-steps li:last-child { padding-bottom: 0; }
.pe-steps li:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 45px; bottom: 5px; width: 1px; background: var(--pe-line); }
.pe-step-number { position: relative; flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--pe-line); border-radius: 50%; background: var(--pe-paper); color: var(--pe-accent); font-family: "Roboto Condensed", sans-serif; font-size: 1.4rem; }
.pe-steps h4 { margin: 7px 0 9px; color: var(--pe-heading); font-size: 1.65rem; font-weight: 700; line-height: 1.7; }
.pe-steps p { margin: 0; font-size: 1.4rem; line-height: 1.95; }
.pe-questions { display: grid; grid-template-columns: 1fr 1.5fr; gap: 70px; padding: 54px 0; border-top: 1px solid var(--pe-line); }
.pe-faq-list details { border-bottom: 1px solid var(--pe-line); }
.pe-faq-list details:first-child { border-top: 1px solid var(--pe-line); }
.pe-faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 25px; padding: 22px 2px; color: var(--pe-heading); cursor: pointer; font-size: 1.5rem; font-weight: 600; line-height: 1.8; list-style: none; }
.pe-faq-list summary::-webkit-details-marker { display: none; }
.pe-plus { position: relative; display: block; flex: 0 0 16px; width: 16px; height: 16px; color: var(--pe-accent); }
.pe-plus::before, .pe-plus::after { content: ""; position: absolute; top: 7px; left: 0; width: 16px; height: 1.5px; background: currentColor; }
.pe-plus::after { transform: rotate(90deg); transition: transform .2s; }
.pe-faq-list details[open] .pe-plus::after { transform: rotate(0); }
.pe-faq-list details > p { margin: -2px 34px 24px 2px; font-size: 1.4rem; line-height: 1.95; }
.pe-next { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 32px 36px; background: var(--pe-surface); border: 1px solid var(--pe-line); border-radius: 12px; }
.pe-next p { color: var(--pe-heading); margin: 7px 0 0; font-size: 1.5rem; font-weight: 500; line-height: 1.85; max-width: 670px; }
.project-engagement .pe-contact { display: inline-flex; justify-content: center; align-items: center; flex-shrink: 0; gap: 20px; min-height: 50px; padding: 13px 22px; border: 1px solid transparent; border-radius: 6px; background: var(--pe-accent); color: var(--pe-button-text); font-size: 1.4rem; font-weight: 700; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.pe-contact svg { transition: transform .2s; }
.project-engagement :is(button, summary):focus-visible { outline: 3px solid var(--pe-accent); outline-offset: 4px; }

@media (hover: hover) {
    .pe-jump:hover { color: inherit; }
    .pe-jump:hover span { transform: translate(2px, -2px); }
    .project-engagement .pe-scenario:hover { border-color: var(--pe-accent); color: var(--pe-heading); }
    .pe-scenario:hover svg, .pe-contact:hover svg { transform: translateX(3px); opacity: 1; }
    .project-engagement .pe-contact:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(15, 29, 74, .12); }
    .pe-faq-list summary:hover { color: var(--pe-accent); }
}

@keyframes pe-content-in {
    from { opacity: .3; transform: translateY(7px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
    .project-engagement { padding: 72px 24px 64px; }
    .pe-scenarios { padding: 24px 18px; }
    .pe-scenario-panel { padding: 28px; }
    .pe-evaluation { gap: 35px; margin: 58px 0; }
    .pe-questions { gap: 35px; }
    .pe-next { padding: 26px; gap: 24px; }
}

@media (max-width: 640px) {
    .project-engagement { padding: 56px 20px; }
    .pe-heading { margin-bottom: 30px; }
    .pe-heading > p { font-size: 1.5rem; }
    .pe-explorer, .pe-evaluation, .pe-questions { grid-template-columns: minmax(0, 1fr); }
    .pe-scenarios { padding: 22px 18px; }
    .pe-scenarios > .pe-label { margin-bottom: 12px; }
    .pe-scenario-buttons { gap: 5px; }
    .project-engagement .pe-scenario { min-height: 56px; padding: 11px 13px; font-size: 1.4rem; }
    .pe-scenario-panel { border-top: 1px solid var(--pe-line); padding: 27px 22px; }
    .project-engagement .pe-scenario-panel h3 { font-size: 2.2rem; }
    .pe-scenario-content > p { font-size: 1.4rem; }
    .pe-checkpoint { padding: 16px; }
    .pe-evaluation { gap: 30px; margin: 44px 0; }
    .pe-steps li { gap: 18px; }
    .pe-questions { padding: 36px 0; gap: 26px; }
    .pe-next { align-items: stretch; flex-direction: column; gap: 20px; padding: 24px; }
    .pe-faq-list summary { font-size: 1.4rem; }
    .project-engagement .pe-contact { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .pe-jump span { transition: none; }
    .project-engagement *, .project-engagement *::before, .project-engagement *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
