.bpm-standalone-page {
    margin: 0;
    background: var(--bpm-bg, #fff7df);
    color: #263238;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
}

.bpm-wrap {
    min-height: 100vh;
    background: var(--bpm-bg, #fff7df);
    padding: 0 16px 34px;
    box-sizing: border-box;
}

.bpm-topbar {
    min-height: 76px;
    margin: 0 -16px 28px;
    background: #ff8708;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .08);
}

.bpm-home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 154px;
    min-height: 36px;
    padding: 6px 24px;
    border-radius: 999px;
    background: #fff;
    border: 2px solid rgba(39, 45, 51, .46);
    box-shadow: 0 2px 0 rgba(0, 0, 0, .16);
    color: #253041;
    font-weight: 800;
    text-decoration: none;
    line-height: 1.2;
}

.bpm-shell {
    width: min(920px, 100%);
    margin: 0 auto;
}

.bpm-card-on {
    background: #fff;
    border: 1px solid #e8d9b8;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(116, 88, 35, .12);
    padding: clamp(24px, 5vw, 46px);
}

.bpm-card-off {
    padding: clamp(8px, 3vw, 22px) 0;
}

.bpm-title {
    margin: 0 0 26px;
    text-align: center;
    font-size: clamp(24px, 4.2vw, 34px);
    font-weight: 900;
    letter-spacing: 0;
    color: #283241;
}

.bpm-hero-image {
    margin: 0 auto 24px;
    text-align: center;
}

.bpm-hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid #e7eef5;
    display: inline-block;
}

.bpm-faq-list {
    display: grid;
    gap: 12px;
}

.bpm-faq-item {
    border: 1px solid #d9edf7;
    background: #f5fcff;
    border-radius: 12px;
    overflow: hidden;
}

.bpm-faq-item summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 17px 18px;
    font-weight: 800;
}

.bpm-faq-item summary::-webkit-details-marker {
    display: none;
}

.bpm-faq-icon::before {
    content: "+";
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ff9b2f;
    color: #fff;
    font-weight: 900;
}

.bpm-faq-item[open] .bpm-faq-icon::before {
    content: "-";
}

.bpm-faq-answer {
    padding: 0 18px 18px;
    color: #44515c;
    line-height: 1.9;
}

.bpm-richtext,
.bpm-law-table td,
.bpm-faq-answer {
    font-size: 16px;
    line-height: 2 !important;
}

.bpm-richtext p,
.bpm-faq-answer p,
.bpm-law-table p {
    margin: 0 0 1.3em;
}

.bpm-page-law .bpm-law-table td,
.bpm-page-term .bpm-richtext,
.bpm-page-precautions .bpm-richtext,
.bpm-page-precautions .bpm-callout,
.bpm-page-longflow .bpm-richtext {
    line-height: 2.15 !important;
    letter-spacing: 0;
}

.bpm-page-law .bpm-law-table th,
.bpm-page-law .bpm-law-table td {
    vertical-align: middle;
    text-align: left;
}

.bpm-page-law .bpm-law-table th,
.bpm-page-law .bpm-law-table td {
    padding-top: 24px;
    padding-bottom: 24px;
}

.bpm-page-law .bpm-law-table p {
    margin: 0;
}

.bpm-page-law .bpm-law-table ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.bpm-page-law .bpm-law-table li {
    margin: 0 0 .55em;
    padding-left: 0;
    text-align: left;
}

.bpm-page-law .bpm-law-table li:last-child {
    margin-bottom: 0;
}

.bpm-page-term .bpm-title {
    letter-spacing: 0;
}

.bpm-table-scroll {
    overflow-x: auto;
}

.bpm-law-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.bpm-law-table th,
.bpm-law-table td {
    text-align: left;
    vertical-align: top;
    padding: 16px 18px;
    border-bottom: 1px solid #e2e8f0;
}

.bpm-law-table th {
    width: 28%;
    min-width: 150px;
    background: #fff4d5;
    color: #2e3540;
    font-weight: 800;
}

.bpm-law-table tr:last-child th,
.bpm-law-table tr:last-child td {
    border-bottom: 0;
}

.bpm-section-block + .bpm-section-block,
.bpm-notice-block + .bpm-notice-block,
.bpm-flow-step + .bpm-flow-step {
    margin-top: 28px;
}

.bpm-section-block h2,
.bpm-notice-block h2,
.bpm-flow-step h2 {
    margin: 0 0 14px;
    font-size: clamp(20px, 3vw, 26px);
    color: #263241;
}

.bpm-page-term .bpm-section-block h2 {
    text-align: center;
    font-size: clamp(22px, 3.3vw, 30px);
    margin: 0 0 26px;
}

.bpm-term-heading,
.bpm-term-updated {
    display: block;
    text-align: center;
    font-weight: 900;
    color: #263241;
}

.bpm-term-heading {
    margin: 2.4em 0 1.25em !important;
    font-size: 1.1em;
    line-height: 1.65;
}

.bpm-term-updated {
    margin: 4em 0 0 !important;
    padding-top: .8em;
    line-height: 1.9;
}

.bpm-term-text a {
    color: #006bd6;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bpm-notice-block {
    border-left: 7px solid var(--bpm-accent, #f59e0b);
    background: #fffdfa;
    border-radius: 12px;
    padding: 24px 26px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04);
}

.bpm-callout {
    margin-top: 22px;
    padding: 18px 20px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--bpm-accent, #f59e0b) 12%, white);
    border: 1px solid color-mix(in srgb, var(--bpm-accent, #f59e0b) 24%, white);
}

.bpm-flow {
    counter-reset: bpm-step;
}

.bpm-flow-step {
    position: relative;
    padding: 28px 26px 28px 82px;
    border: 1px solid #d9edf7;
    border-radius: 14px;
    background: #f8fdff;
}

.bpm-step-badge {
    position: absolute;
    left: 18px;
    top: 28px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #ff8708;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
}

.bpm-flow-step h3 {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff4d5;
    font-size: 17px;
}

.bpm-footer {
    width: min(920px, 100%);
    margin: 28px auto 0;
    text-align: center;
}

.bpm-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
}

.bpm-footer a {
    color: #4a3a25;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
}

.bpm-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .bpm-wrap {
        padding-left: 12px;
        padding-right: 12px;
    }

    .bpm-topbar {
        min-height: 64px;
        margin-left: -12px;
        margin-right: -12px;
    }

    .bpm-card-on {
        padding: 22px 16px;
        border-radius: 12px;
    }

    .bpm-law-table,
    .bpm-law-table tbody,
    .bpm-law-table tr,
    .bpm-law-table th,
    .bpm-law-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .bpm-law-table th {
        border-bottom: 0;
    }

    .bpm-flow-step {
        padding: 76px 16px 18px;
    }

    .bpm-step-badge {
        top: 18px;
    }
}
