:root {
    --poc-ink: #172033;
    --poc-muted: #5f6777;
    --poc-line: rgba(23, 32, 51, 0.12);
    --poc-soft: #eef7fb;
    --poc-paper: #ffffff;
    --poc-shadow: 0 18px 60px rgba(13, 20, 32, 0.12);
}

.poc-page {
    background: var(--jg-bg-gray);
    color: var(--jg-text);
}

.poc-container {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}

.poc-kicker,
.poc-step-label {
    margin: 0 0 12px;
    font-family: var(--font-en);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--jg-primary);
}

.poc-hero {
    position: relative;
    min-height: 680px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--jg-navy);
}

.poc-hero__media,
.poc-hero__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.poc-hero__media img {
    object-fit: cover;
    object-position: center;
    filter: saturate(1.02) contrast(1.04);
}

.poc-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 17, 30, 0.92) 0%, rgba(8, 17, 30, 0.72) 48%, rgba(8, 17, 30, 0.2) 100%),
        linear-gradient(180deg, rgba(8, 17, 30, 0.28) 0%, rgba(8, 17, 30, 0.72) 100%);
}

.poc-hero__inner {
    position: relative;
    z-index: 1;
    padding: 132px 0 84px;
    color: #fff;
}

.poc-hero h1 {
    max-width: 820px;
    margin: 0 0 24px;
    font-size: clamp(3.2rem, 4.8vw, 5.6rem);
    line-height: 1.24;
    font-weight: 900;
}

.poc-hero__lead {
    max-width: 700px;
    margin: 0 0 28px;
    font-size: clamp(1.55rem, 1.4rem + 0.35vw, 1.9rem);
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.84);
}

.poc-hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 34px;
}

.poc-hero__facts span {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 1.3rem;
    line-height: 1.4;
}

.poc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    gap: 8px;
    border-radius: 8px;
    padding: 12px 22px;
    border: 1px solid transparent;
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.poc-btn:hover {
    transform: translateY(-1px);
}

.poc-btn:focus-visible,
.poc-field input:focus,
.poc-field textarea:focus,
.poc-field select:focus {
    outline: 3px solid rgba(0, 162, 250, 0.28);
    outline-offset: 2px;
}

.poc-btn--primary {
    background: var(--jg-primary);
    color: #fff;
    box-shadow: 0 12px 32px rgba(0, 162, 250, 0.26);
}

.poc-btn--primary:hover {
    background: var(--jg-primary-hover);
}

.poc-btn--ghost {
    background: #fff;
    color: var(--poc-ink);
    border-color: var(--poc-line);
}

.poc-btn--accent {
    background: var(--jg-accent);
    color: #fff;
    box-shadow: 0 14px 34px rgba(233, 58, 131, 0.24);
}

.poc-btn--accent:hover {
    background: #c92c6d;
}

.poc-btn--small {
    min-height: 40px;
    padding: 9px 14px;
    font-size: 1.3rem;
    color: #fff;
    background: var(--jg-navy);
}

.poc-btn:disabled {
    cursor: not-allowed;
    opacity: 0.62;
    transform: none;
    box-shadow: none;
}

.poc-flow-band {
    padding: 80px 0 104px;
}

.poc-flow-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 40px;
    align-items: end;
    margin-bottom: 28px;
}

.poc-flow-head h2,
.poc-panel h2,
.poc-done h2 {
    margin: 0;
    color: var(--poc-ink);
    font-size: clamp(2.6rem, 2.2rem + 1vw, 3.8rem);
    line-height: 1.3;
    font-weight: 900;
}

.poc-flow-head p,
.poc-panel__lead {
    margin: 0;
    color: var(--poc-muted);
    line-height: 1.85;
}

.poc-stepper {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.poc-stepper li {
    min-height: 74px;
    padding: 12px;
    border: 1px solid var(--poc-line);
    border-radius: 8px;
    background: #fff;
    color: var(--poc-muted);
}

.poc-stepper span {
    display: inline-flex;
    width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    border-radius: 999px;
    background: var(--jg-bg-gray);
    color: var(--poc-muted);
    font-family: var(--font-number);
    font-size: 1.3rem;
    font-weight: 700;
}

.poc-stepper strong {
    display: block;
    font-size: 1.25rem;
    line-height: 1.35;
}

.poc-stepper li.is-active {
    border-color: rgba(0, 162, 250, 0.5);
    background: linear-gradient(180deg, #fff 0%, #eef8ff 100%);
    color: var(--poc-ink);
}

.poc-stepper li.is-active span {
    background: var(--jg-primary);
    color: #fff;
}

.poc-stepper li.is-done span {
    background: var(--jg-success);
    color: #fff;
}

.poc-form {
    display: block;
}

.poc-panel {
    display: none;
    padding: 42px;
    border: 1px solid var(--poc-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--poc-shadow);
}

.poc-panel.is-active {
    display: block;
}

.poc-panel__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1fr);
    gap: 40px;
}

.poc-summary {
    padding: 28px;
    border: 1px solid rgba(0, 162, 250, 0.2);
    border-radius: 8px;
    background: linear-gradient(180deg, #f6fbff 0%, #fff 100%);
}

.poc-summary h3 {
    margin: 0 0 10px;
    font-size: 1.7rem;
    color: var(--poc-ink);
}

.poc-summary h3:not(:first-child) {
    margin-top: 24px;
}

.poc-summary p,
.poc-summary li {
    color: var(--poc-muted);
    font-size: 1.45rem;
    line-height: 1.8;
}

.poc-summary ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.poc-summary li {
    position: relative;
    padding-left: 18px;
}

.poc-summary li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.82em;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--jg-primary);
}

.poc-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 24px;
    margin-top: 28px;
}

.poc-fieldset {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
    margin: 0;
    padding: 20px;
    border: 1px solid var(--poc-line);
    border-radius: 8px;
    background: #fbfcff;
}

.poc-fieldset legend {
    padding: 0 8px;
    color: var(--poc-ink);
    font-size: 1.45rem;
    font-weight: 900;
}

.poc-field {
    display: grid;
    gap: 8px;
}

.poc-field--wide {
    grid-column: 1 / -1;
}

.poc-field span {
    color: var(--poc-ink);
    font-size: 1.3rem;
    font-weight: 800;
}

.poc-field em {
    display: inline-block;
    margin-left: 6px;
    color: var(--jg-accent);
    font-size: 1.1rem;
    font-style: normal;
}

.poc-field input,
.poc-field textarea,
.poc-field select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--poc-line);
    border-radius: 8px;
    background: #fff;
    color: var(--poc-ink);
    padding: 12px 14px;
    font-family: var(--font-primary);
    font-size: 1.5rem;
    line-height: 1.55;
}

.poc-field textarea {
    min-height: 110px;
    resize: vertical;
}

.poc-field input::placeholder,
.poc-field textarea::placeholder {
    color: #777f8d;
}

.poc-consent-list {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.poc-consent-list label {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    min-height: 58px;
    padding: 16px;
    border: 1px solid var(--poc-line);
    border-radius: 8px;
    background: #fff;
}

.poc-consent-list input {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    accent-color: var(--jg-success);
}

.poc-consent-list span {
    color: var(--poc-ink);
    font-size: 1.48rem;
    line-height: 1.75;
}

.poc-consent-all {
    margin-top: 16px;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid rgba(10, 191, 182, 0.4);
    border-radius: 8px;
    background: rgba(10, 191, 182, 0.1);
    color: var(--poc-ink);
    font-weight: 800;
}

.poc-contract-source {
    position: fixed;
    left: -1200px;
    top: 0;
    width: 794px;
    height: 1px;
    overflow: visible;
    pointer-events: none;
}

.poc-contract {
    width: 794px;
    min-height: 1123px;
    margin: 0 auto;
    padding: 54px 58px;
    background: #fff;
    color: #111827;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
    font-family: "Noto Sans JP", "Yu Gothic", sans-serif;
    font-size: 12px;
    line-height: 1.75;
}

.poc-contract h1 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.35;
    text-align: center;
}

.poc-contract .doc-sub {
    margin: 0 0 22px;
    text-align: center;
    color: #4b5563;
}

.poc-contract h2 {
    margin: 22px 0 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #cbd5e1;
    color: #111827;
    font-size: 15px;
}

.poc-contract h3 {
    margin: 16px 0 6px;
    font-size: 13px;
}

.poc-contract p {
    margin: 0 0 8px;
}

.poc-contract table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0 12px;
}

.poc-contract th,
.poc-contract td {
    border: 1px solid #d8dee8;
    padding: 7px 8px;
    vertical-align: top;
}

.poc-contract th {
    width: 30%;
    background: #f3f6fa;
    text-align: left;
}

.poc-contract ul {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
}

.poc-contract li {
    position: relative;
    padding-left: 14px;
    margin-bottom: 4px;
}

.poc-contract li::before {
    content: "";
    position: absolute;
    top: 0.85em;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: #111827;
}

.poc-contract .doc-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 12px;
    margin: 0 0 16px;
    color: #4b5563;
    font-size: 11px;
}

.poc-contract .doc-sign {
    margin-top: 20px;
}

.poc-final-note {
    margin-top: 18px;
    padding: 18px 20px;
    border-radius: 8px;
    background: #fff7d7;
    color: var(--poc-ink);
}

.poc-final-note p {
    margin: 5px 0 0;
    color: #4c421f;
    font-size: 1.45rem;
    line-height: 1.75;
}

.poc-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 32px;
}

.poc-done {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.poc-done p {
    color: var(--poc-muted);
}

.poc-done dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 28px 0;
    text-align: left;
}

.poc-done dl div {
    padding: 18px;
    border: 1px solid var(--poc-line);
    border-radius: 8px;
    background: var(--jg-bg-gray);
}

.poc-done dt {
    color: var(--poc-muted);
    font-size: 1.25rem;
    font-weight: 800;
}

.poc-done dd {
    margin: 4px 0 0;
    color: var(--poc-ink);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.poc-done a {
    color: var(--jg-primary-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.poc-done__sub {
    margin-bottom: 24px;
}

.poc-sticky {
    display: none;
}

.poc-alert {
    margin: 18px 0 0;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fff0f5;
    color: #9d174d;
    font-size: 1.35rem;
    font-weight: 700;
}

@media (max-width: 900px) {
    .poc-container {
        width: min(100% - 28px, 720px);
    }

    .poc-hero {
        min-height: 620px;
    }

    .poc-flow-band {
        padding: 56px 0 80px;
    }

    .poc-flow-head,
    .poc-panel__grid {
        grid-template-columns: 1fr;
    }

    .poc-stepper {
        display: flex;
        overflow-x: auto;
        padding-bottom: 6px;
    }

    .poc-stepper li {
        min-width: 126px;
    }

    .poc-panel {
        padding: 26px 18px;
    }

    .poc-form-grid,
    .poc-fieldset,
    .poc-done dl {
        grid-template-columns: 1fr;
    }

    .poc-actions {
        justify-content: stretch;
    }

    .poc-actions .poc-btn {
        flex: 1 1 180px;
    }

}

@media (max-width: 560px) {
    .poc-hero__inner {
        padding: 106px 0 64px;
    }

    .poc-hero h1 {
        font-size: 3.1rem;
    }

    .poc-hero__facts span {
        width: 100%;
    }

    .poc-summary {
        padding: 20px;
    }

    .poc-panel {
        box-shadow: 0 12px 32px rgba(13, 20, 32, 0.1);
    }

    .poc-consent-list label {
        padding: 14px;
    }
}

@media print {
    body * {
        visibility: hidden !important;
    }

    #contractPreview,
    #contractPreview * {
        visibility: visible !important;
    }

    #contractPreview {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        box-shadow: none;
    }

    @page {
        size: A4;
        margin: 12mm;
    }
}
