/*
 * はたらく選択ノート Career Cluster
 * Mobile-first presentation layer for plugin-managed pages.
 */

body.hncc-v3-managed {
    --hn-ink: #24342f;
    --hn-muted: #5f6f69;
    --hn-green: #397565;
    --hn-green-dark: #28594d;
    --hn-green-soft: #e3f2eb;
    --hn-blue-soft: #e2edf8;
    --hn-peach: #f8d9c9;
    --hn-peach-soft: #fff0e7;
    --hn-yellow-soft: #faedb7;
    --hn-lilac-soft: #eee7f6;
    --hn-paper: #fffdfa;
    --hn-surface: #ffffff;
    --hn-line: #d7e0dc;
    --hn-shadow: 0 14px 36px rgba(42, 66, 58, 0.09);
    background: #f8f7f3;
    color: var(--hn-ink);
}

body.hncc-v3-managed,
body.hncc-v3-managed button,
body.hncc-v3-managed input,
body.hncc-v3-managed select,
body.hncc-v3-managed textarea {
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
}

/* Remove article chrome that competes with the portal experience. */
body.hncc-v3-managed #sidebar,
body.hncc-v3-managed .sidebar,
body.hncc-v3-managed .sidebar-scroll,
body.hncc-v3-managed .date-tags,
body.hncc-v3-managed .post-date,
body.hncc-v3-managed .post-update,
body.hncc-v3-managed .entry-date,
body.hncc-v3-managed .sns-share,
body.hncc-v3-managed .sns-share-message,
body.hncc-v3-managed .sns-follow,
body.hncc-v3-managed .author-box,
body.hncc-v3-managed .breadcrumb,
body.hncc-v3-managed .mobile-footer-menu-buttons,
body.hncc-v3-managed .mobile-footer-menu,
body.hncc-v3-managed .related-entry-heading,
body.hncc-v3-managed .related-entry-card-wrap,
body.hncc-v3-managed .entry-title,
body.hncc-v3-managed .eye-catch-wrap {
    display: none !important;
}

body.hncc-v3-managed .content-in {
    display: block !important;
}

body.hncc-v3-managed #main,
body.hncc-v3-managed .main {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0;
    background: transparent;
    box-shadow: none;
}

body.hncc-v3-managed .article,
body.hncc-v3-managed .entry-content {
    margin: 0 !important;
    padding: 0 !important;
}

body.hncc-v3-managed .footer-bottom-logo,
body.hncc-v3-managed .footer-bottom-content {
    max-width: 1120px;
    margin-inline: auto;
}

.hn-portal,
.hn-portal *,
.hn-portal *::before,
.hn-portal *::after {
    box-sizing: border-box;
}

.hn-portal {
    --hn-pastel-sprite: url("portal-scenes.jpg");
    width: min(100%, 1180px);
    margin-inline: auto;
    padding: 0 16px 72px;
    color: var(--hn-ink);
    font-size: 16px;
    line-height: 1.8;
}

.hn-portal :where(h1, h2, h3, h4, p, ul, ol, figure) {
    margin-top: 0;
}

.hn-portal :where(h1, h2, h3, h4) {
    color: var(--hn-ink);
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.4;
}

.hn-portal a {
    color: var(--hn-green-dark);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

.hn-portal img {
    max-width: 100%;
    height: auto;
}

.hn-portal :where(a, button, input, select, summary):focus-visible {
    outline: 3px solid #1e6fbd;
    outline-offset: 3px;
}

.hn-ad-disclosure,
.hncc-ad-disclosure {
    margin: 8px 2px 10px auto;
    color: #53625d;
    font-size: 12px;
    line-height: 1.5;
    text-align: right;
}

.hn-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: 0 0 28px;
    padding: clamp(28px, 7vw, 52px) clamp(20px, 6vw, 46px);
    border: 1px solid rgba(77, 104, 94, 0.12);
    border-radius: 26px;
    background:
        radial-gradient(circle at 92% 12%, rgba(255, 255, 255, 0.84) 0 11%, transparent 12%),
        linear-gradient(145deg, var(--hn-peach-soft) 0%, #fff8ec 54%, var(--hn-green-soft) 100%);
    box-shadow: var(--hn-shadow);
}

.hn-hero::before,
.hn-hero::after {
    position: absolute;
    z-index: -1;
    border-radius: 999px;
    content: "";
    opacity: 0.72;
}

.hn-hero::before {
    top: -56px;
    right: -38px;
    width: 174px;
    height: 174px;
    background: var(--hn-yellow-soft);
}

.hn-hero::after {
    bottom: -64px;
    left: -44px;
    width: 190px;
    height: 138px;
    background: var(--hn-blue-soft);
    transform: rotate(-12deg);
}

.hn-hero__copy {
    position: relative;
    z-index: 1;
}

.hn-eyebrow,
.hn-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    color: var(--hn-green-dark);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hn-eyebrow::before,
.hn-kicker::before {
    width: 24px;
    height: 3px;
    border-radius: 999px;
    background: var(--hn-green);
    content: "";
}

.hn-hero h1 {
    max-width: 18em;
    margin-bottom: 16px;
    font-size: clamp(1.8rem, 7.5vw, 3.35rem);
    line-height: 1.26;
}

.hn-portal--process .hn-hero h1 {
    font-size: clamp(1.7rem, 6vw, 3rem);
    white-space: nowrap;
}

.hn-hero__lead,
.hn-lead {
    max-width: 42em;
    margin-bottom: 22px;
    color: #43534d;
    font-size: clamp(1rem, 3.8vw, 1.18rem);
    line-height: 1.85;
}

.hn-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.hn-hero__visual {
    min-height: 220px;
    margin-top: 22px;
}

/*
 * Illustration sprite hooks. Set --hn-pastel-sprite on .hn-portal or an
 * individual illustration when the generated WebP sprite is available.
 */
.hn-illustration,
.hn-illustration-sprite {
    --hn-sprite-position: 0% 0%;
    position: relative;
    width: min(100%, 420px);
    min-height: 0;
    aspect-ratio: 1;
    margin-inline: auto;
    overflow: hidden;
    border: 2px solid rgba(64, 103, 89, 0.18);
    border-radius: 38% 62% 48% 52% / 58% 43% 57% 42%;
    background-color: #fffaf2;
    background-image:
        var(--hn-pastel-sprite, none),
        radial-gradient(circle at 30% 32%, rgba(248, 217, 201, 0.95) 0 17%, transparent 18%),
        radial-gradient(circle at 69% 60%, rgba(226, 237, 248, 0.95) 0 24%, transparent 25%),
        linear-gradient(145deg, #fffdfa, #e8f2ec);
    background-position: var(--hn-sprite-position), center, center, center;
    background-repeat: no-repeat;
    background-size: 400% 200%, auto, auto, cover;
    box-shadow: 8px 10px 0 rgba(63, 116, 102, 0.08);
}

.hn-illustration::before,
.hn-illustration-sprite::before {
    position: absolute;
    top: 14%;
    right: 10%;
    width: 22%;
    aspect-ratio: 1;
    border: 3px solid rgba(57, 117, 101, 0.24);
    border-radius: 46% 54% 48% 52%;
    content: "";
    transform: rotate(12deg);
}

.hn-illustration--career,
.hn-sprite--career,
[data-hn-illustration="career"] { --hn-sprite-position: 0% 0%; }
.hn-illustration--moving,
.hn-sprite--moving,
[data-hn-illustration="moving"] { --hn-sprite-position: 33.333% 0%; }
.hn-illustration--utilities,
.hn-sprite--utilities,
[data-hn-illustration="utilities"] { --hn-sprite-position: 66.666% 0%; }
.hn-illustration--money,
.hn-sprite--money,
[data-hn-illustration="money"] { --hn-sprite-position: 100% 0%; }
.hn-illustration--learning,
.hn-sprite--learning,
[data-hn-illustration="learning"] { --hn-sprite-position: 0% 100%; }
.hn-illustration--legal,
.hn-sprite--legal,
[data-hn-illustration="legal"] { --hn-sprite-position: 33.333% 100%; }
.hn-illustration--resignation,
.hn-sprite--resignation,
[data-hn-illustration="resignation"] { --hn-sprite-position: 66.666% 100%; }
.hn-illustration--part-time,
.hn-sprite--part-time,
[data-hn-illustration="part-time"] { --hn-sprite-position: 100% 100%; }

/* Positions in the generated 4 x 2 portal-scenes sprite. */
.hn-illustration--home { --hn-sprite-position: 0% 0%; }
.hn-illustration--start,
.hn-illustration--moving,
.hn-illustration--electricity,
.hn-illustration--gas,
.hn-illustration--credit,
.hn-illustration--housing { --hn-sprite-position: 33.333% 0%; }
.hn-illustration--reskilling { --hn-sprite-position: 66.666% 0%; }
.hn-illustration--legal { --hn-sprite-position: 100% 0%; }
.hn-illustration--resignation { --hn-sprite-position: 0% 100%; }
.hn-illustration--career { --hn-sprite-position: 33.333% 100%; }
.hn-illustration--part-time { --hn-sprite-position: 66.666% 100%; }
.hn-illustration--matching { --hn-sprite-position: 100% 100%; }

.hn-button,
.hn-portal :where(button[type="submit"], button[data-hn-action]) {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: 2px solid var(--hn-green);
    border-radius: 999px;
    background: var(--hn-green);
    box-shadow: 0 6px 0 rgba(40, 89, 77, 0.16);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.45;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.hn-button:hover,
.hn-portal :where(button[type="submit"], button[data-hn-action]):hover {
    background: var(--hn-green-dark);
    color: #fff;
    transform: translateY(-1px);
}

.hn-button:active,
.hn-portal :where(button[type="submit"], button[data-hn-action]):active {
    box-shadow: 0 2px 0 rgba(40, 89, 77, 0.16);
    transform: translateY(2px);
}

.hn-button[aria-disabled="true"],
.hn-button:disabled,
.hn-portal button[type="submit"]:disabled {
    border-color: #a7b4af;
    background: #a7b4af;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.hn-button--secondary {
    border-color: var(--hn-green);
    background: #fff;
    box-shadow: none;
    color: var(--hn-green-dark);
}

.hn-section {
    margin-top: 28px;
    padding: clamp(22px, 5vw, 38px) clamp(18px, 5vw, 38px);
    border: 1px solid var(--hn-line);
    border-radius: 22px;
    background: var(--hn-surface);
    box-shadow: 0 10px 28px rgba(48, 74, 64, 0.055);
}

.hn-section--tint {
    background: var(--hn-paper);
}

.hn-section__head,
.hn-section__heading {
    max-width: 720px;
    margin-bottom: 22px;
}

.hn-section h2 {
    margin-bottom: 10px;
    font-size: clamp(1.45rem, 5vw, 2.15rem);
}

.hn-section h3 {
    margin-bottom: 8px;
    font-size: clamp(1.15rem, 4vw, 1.42rem);
}

.hn-grid,
.hn-cards,
.hn-result-list,
[data-hn-result-list] {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.hn-card,
[data-hn-service] {
    position: relative;
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--hn-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(49, 77, 66, 0.06);
}

.hn-card--peach { background: var(--hn-peach-soft); }
.hn-card--blue { background: #f2f7fc; }
.hn-card--green { background: #f1f8f4; }
.hn-card--yellow { background: #fffaf0; }
.hn-card--lilac { background: #f8f5fb; }
.hn-card--plain { background: #fafafa; box-shadow: none; }

.hn-card--link {
    display: grid;
    gap: 4px;
    min-height: 112px;
    align-content: center;
    color: var(--hn-ink) !important;
    text-decoration: none !important;
}

.hn-card--link::after {
    position: absolute;
    right: 16px;
    bottom: 12px;
    color: var(--hn-green);
    content: "→";
    font-size: 1.15rem;
    font-weight: 900;
}

.hn-card--link span {
    color: var(--hn-muted);
    font-size: 0.88rem;
}

.hn-card p:last-child,
.hn-note p:last-child,
.hn-offer p:last-child {
    margin-bottom: 0;
}

.hn-card__label,
.hn-chip,
.hn-badge {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--hn-green-soft);
    color: var(--hn-green-dark);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.35;
}

.hn-note {
    display: grid;
    gap: 5px;
    padding: 15px 17px;
    border-left: 4px solid #d79b72;
    border-radius: 12px;
    background: #fff8f2;
    color: #46554f;
}

.hn-note--important {
    border-left-color: var(--hn-green);
    background: #f2f8f5;
}

.hn-local-nav,
.hn-tabs,
.hn-chip-nav {
    display: flex;
    gap: 8px;
    margin: 18px 0 24px;
    padding: 4px 2px 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
}

.hn-local-nav a,
.hn-tabs a,
.hn-chip-nav a {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 9px 15px;
    border: 1px solid var(--hn-line);
    border-radius: 999px;
    background: #fff;
    color: var(--hn-ink);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.hn-local-nav a[aria-current="page"],
.hn-tabs a[aria-current="page"],
.hn-chip-nav a[aria-current="page"] {
    border-color: var(--hn-green);
    background: var(--hn-green);
    color: #fff;
}

/* Three-question diagnosis */
[data-hn-diagnosis] {
    width: min(100%, 780px);
    margin-inline: auto;
}

[data-hn-diagnosis] fieldset,
fieldset[data-hn-question] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
    margin: 0 0 18px;
    padding: 18px 14px;
    border: 1px solid var(--hn-line);
    border-radius: 18px;
    background: #fbfefd;
}

[data-hn-diagnosis] legend,
fieldset[data-hn-question] legend {
    grid-column: 1 / -1;
    width: 100%;
    padding: 0;
    color: var(--hn-ink);
    font-size: clamp(1.08rem, 4.5vw, 1.3rem);
    font-weight: 800;
    line-height: 1.5;
}

[data-hn-question] > :not([data-hn-option]),
[data-hn-question] > .hn-options,
[data-hn-question] > [data-hn-options],
[data-hn-question] > .hn-option-grid {
    grid-column: 1 / -1;
}

.hn-question-number {
    display: inline-flex;
    min-width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--hn-peach);
    color: #603f31;
    font-size: 0.85rem;
    font-weight: 900;
    vertical-align: middle;
}

.hn-options,
[data-hn-options],
.hn-option-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

[data-hn-option],
.hn-option {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 9px 34px 9px 12px;
    border: 2px solid #ccd9d4;
    border-radius: 15px;
    background: #fff;
    color: var(--hn-ink);
    font-size: 0.92rem;
    font-weight: 750;
    line-height: 1.45;
    text-align: center;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

[data-hn-option]:hover,
.hn-option:hover {
    border-color: #78a497;
    background: #f7fbf9;
}

[data-hn-option]::after,
.hn-option::after {
    position: absolute;
    top: 50%;
    right: 10px;
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border: 2px solid #a8b8b2;
    border-radius: 50%;
    background: #fff;
    color: #fff;
    content: "";
    font-size: 0.75rem;
    line-height: 1;
    transform: translateY(-50%);
}

[data-hn-option].is-selected,
.hn-option.is-selected,
[data-hn-option]:has(input:checked),
.hn-option:has(input:checked) {
    border-color: var(--hn-green);
    background: var(--hn-green-soft);
    box-shadow: 0 0 0 2px rgba(57, 117, 101, 0.1);
}

[data-hn-option].is-selected::after,
.hn-option.is-selected::after,
[data-hn-option]:has(input:checked)::after,
.hn-option:has(input:checked)::after {
    border-color: var(--hn-green);
    background: var(--hn-green);
    content: "✓";
}

[data-hn-option] input,
.hn-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0.001;
    pointer-events: none;
}

[data-hn-option]:focus-within,
.hn-option:focus-within {
    outline: 3px solid #1e6fbd;
    outline-offset: 3px;
}

[data-hn-question][aria-invalid="true"] {
    border-color: #b54444;
    box-shadow: 0 0 0 2px rgba(181, 68, 68, 0.09);
}

.hn-diagnosis__footer,
.hn-form-actions {
    display: grid;
    gap: 10px;
    justify-items: center;
    margin-top: 20px;
}

.hn-diagnosis__footer .hn-button,
.hn-diagnosis__footer button[type="submit"],
.hn-form-actions .hn-button,
.hn-form-actions button[type="submit"] {
    width: min(100%, 420px);
}

.hn-diagnosis-status,
[data-hn-diagnosis-status] {
    min-height: 1.5em;
    margin: 0;
    color: #6b4747;
    font-size: 0.88rem;
    font-weight: 700;
    text-align: center;
}

.hn-privacy-line,
.hn-form-note {
    margin: 0;
    color: var(--hn-muted);
    font-size: 0.78rem;
    text-align: center;
}

[data-hn-results][hidden],
[data-hn-service][hidden] {
    display: none !important;
}

[data-hn-results] {
    scroll-margin-top: 20px;
}

.hn-results {
    margin-top: 30px;
    padding-top: 26px;
    border-top: 2px dashed #b9cec5;
}

[data-hn-results].is-ready {
    animation: hn-reveal 360ms ease both;
}

.hn-selection-summary,
[data-hn-selection-summary] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

[data-hn-service] {
    display: flex;
    flex-direction: column;
    border-top: 5px solid var(--hn-green);
}

[data-hn-service][data-hn-rank="1"] {
    border-top-color: #d99665;
    background: #fffaf6;
}

.hn-result-rank,
.hn-card__number,
[data-hn-result-rank] {
    display: inline-grid;
    width: 32px;
    height: 32px;
    place-items: center;
    margin-bottom: 10px;
    border-radius: 50%;
    background: var(--hn-green);
    color: #fff;
    font-weight: 900;
}

[data-hn-service][data-hn-rank="1"] [data-hn-result-rank] {
    background: #b8663b;
}

[data-hn-service] .hn-button,
[data-hn-service] .hn-offer {
    margin-top: auto;
}

.hn-result-reason,
[data-hn-result-reason] {
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--hn-green-soft);
    color: #314a41;
    font-size: 0.9rem;
}

.hn-offer {
    position: relative;
    padding: 16px;
    border: 1px solid #d2dfda;
    border-radius: 14px;
    background: #f7fbf9;
}

.hn-offer-link {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--hn-green);
    color: #fff !important;
    font-weight: 800;
    text-align: center;
    text-decoration: none !important;
}

.hn-offer img[width="1"][height="1"] {
    position: absolute;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden;
    clip-path: inset(50%);
}

/* Native, keyboard-friendly accordions. */
[data-hn-accordion] {
    display: grid;
    gap: 12px;
}

[data-hn-accordion] details {
    overflow: hidden;
    border: 1px solid var(--hn-line);
    border-radius: 15px;
    background: #fff;
}

.hn-accordion--career details {
    scroll-margin-top: 18px;
}

[data-hn-accordion] summary {
    position: relative;
    min-height: 54px;
    padding: 14px 48px 14px 16px;
    color: var(--hn-ink);
    font-weight: 800;
    line-height: 1.55;
    list-style: none;
    cursor: pointer;
}

[data-hn-accordion] summary::-webkit-details-marker {
    display: none;
}

[data-hn-accordion] summary::after {
    position: absolute;
    top: 50%;
    right: 16px;
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 50%;
    background: var(--hn-green-soft);
    color: var(--hn-green-dark);
    content: "+";
    font-size: 1.25rem;
    line-height: 1;
    transform: translateY(-50%);
}

[data-hn-accordion] details[open] summary {
    background: #f4f9f6;
}

[data-hn-accordion] details[open] summary::after {
    content: "−";
}

.hn-accordion__content,
[data-hn-accordion] details > :not(summary) {
    margin: 0;
    padding: 0 16px 18px;
}

.hn-compare-wrap,
.hn-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--hn-line);
    border-radius: 14px;
    background: #fff;
    -webkit-overflow-scrolling: touch;
}

.hn-compare {
    width: 100%;
    min-width: 660px;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.hn-compare th,
.hn-compare td {
    padding: 13px 14px;
    border: 0;
    border-bottom: 1px solid var(--hn-line);
    text-align: left;
    vertical-align: top;
}

.hn-compare th {
    background: #edf6f1;
    color: var(--hn-green-dark);
    font-weight: 800;
}

.hn-compare tr:last-child td {
    border-bottom: 0;
}

.hn-check-list,
.hn-checklist {
    display: grid;
    gap: 8px;
    padding: 0;
    list-style: none;
}

.hn-check-list li,
.hn-checklist li {
    position: relative;
    padding-left: 29px;
}

.hn-check-list li::before,
.hn-checklist li::before {
    position: absolute;
    top: 0.27em;
    left: 0;
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 50%;
    background: var(--hn-green-soft);
    color: var(--hn-green-dark);
    content: "✓";
    font-size: 0.75rem;
    font-weight: 900;
}

.hn-checklist li {
    display: grid;
    gap: 2px;
}

.hn-checklist li strong,
.hn-checklist li span {
    display: block;
}

.hn-checklist li span {
    color: var(--hn-muted);
}

.hn-compact-list {
    display: grid;
    gap: 8px;
    margin: 14px 0 0;
    padding-left: 1.35em;
}

.hn-compact-list li {
    padding-left: 4px;
}

.hn-steps {
    display: grid;
    gap: 12px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: hn-step;
}

.hn-steps li {
    position: relative;
    display: grid;
    gap: 3px;
    min-height: 58px;
    padding: 13px 14px 13px 54px;
    border: 1px solid var(--hn-line);
    border-radius: 14px;
    background: #fff;
    counter-increment: hn-step;
}

.hn-steps li::before {
    position: absolute;
    top: 13px;
    left: 13px;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: var(--hn-green);
    color: #fff;
    content: counter(hn-step);
    font-size: 0.85rem;
    font-weight: 900;
}

.hn-steps li span {
    color: var(--hn-muted);
}

.hn-phase-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hn-phase-nav a {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 2px 9px;
    min-height: 88px;
    align-content: center;
    padding: 13px;
    border: 1px solid var(--hn-line);
    border-radius: 14px;
    background: #fff;
    color: var(--hn-ink) !important;
    text-decoration: none !important;
}

.hn-phase-nav a > span {
    grid-row: 1 / span 2;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    align-self: center;
    border-radius: 50%;
    background: var(--hn-green);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 900;
}

.hn-phase-nav strong {
    line-height: 1.4;
}

.hn-phase-nav small {
    color: var(--hn-muted);
    font-size: 0.76rem;
    line-height: 1.4;
}

.hn-phase-nav + .hn-note {
    margin-top: 18px;
}

.hn-process-list {
    width: min(100%, 920px);
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.hn-process-step {
    position: relative;
    padding-left: 64px;
    scroll-margin-top: 24px;
}

.hn-process-step + .hn-process-step {
    margin-top: 18px;
}

.hn-process-step:not(:last-child)::after {
    position: absolute;
    z-index: 0;
    top: 50px;
    bottom: -20px;
    left: 24px;
    width: 2px;
    background: #cbdcd5;
    content: "";
}

.hn-process-step__number {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    display: grid;
    width: 50px;
    height: 50px;
    place-content: center;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--hn-green);
    box-shadow: 0 0 0 1px var(--hn-line);
    color: #fff;
    line-height: 1;
    text-align: center;
}

.hn-process-step__number small,
.hn-process-step__number strong {
    display: block;
}

.hn-process-step__number small {
    font-size: 0.52rem;
    letter-spacing: 0.03em;
}

.hn-process-step__number strong {
    margin-top: 2px;
    font-size: 0.86rem;
}

.hn-process-step__panel {
    padding: 20px;
    border: 1px solid var(--hn-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(49, 77, 66, 0.06);
}

.hn-process-step--primary .hn-process-step__panel {
    border-color: #96c4b3;
    box-shadow: 0 10px 26px rgba(57, 117, 101, 0.12);
}

.hn-process-step__panel h3 {
    margin-bottom: 8px;
}

.hn-process-step__panel h4 {
    margin: 0 0 8px;
    font-size: 1.08rem;
}

.hn-process-step__phase {
    display: inline-flex;
    margin-bottom: 7px;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--hn-green-soft);
    color: var(--hn-green-dark);
    font-size: 0.76rem;
    font-weight: 800;
}

.hn-process-step__summary {
    color: #43534d;
    font-weight: 700;
}

.hn-process-step__actions,
.hn-process-offers {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.hn-process-step__actions > *,
.hn-process-offers > * {
    min-width: 0;
}

.hn-process-step__actions > .hn-button,
.hn-process-step__actions > .hn-text-link,
.hn-process-step__actions .hn-offer-link {
    width: 100%;
}

.hn-process-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 16px 0;
}

.hn-process-links a {
    display: grid;
    min-height: 72px;
    align-content: center;
    padding: 11px 12px;
    border: 1px solid var(--hn-line);
    border-radius: 12px;
    background: #f7fbf9;
    color: var(--hn-green-dark) !important;
    text-decoration: none !important;
}

.hn-process-links span {
    color: var(--hn-muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

.hn-process-step__subsection {
    margin-top: 20px;
    padding: 17px;
    border-radius: 14px;
    background: var(--hn-blue-soft);
    scroll-margin-top: 24px;
}

@media (hover: hover) {
    .hn-phase-nav a:hover,
    .hn-process-links a:hover {
        border-color: #9abdaf;
        background: #f2f8f5;
        transform: translateY(-1px);
    }
}

.hn-page-nav {
    display: grid;
    gap: 10px;
    margin-top: 28px;
}

.hn-page-nav a,
.hn-text-link {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid var(--hn-line);
    border-radius: 12px;
    background: #fff;
    color: var(--hn-green-dark) !important;
    font-weight: 800;
    text-decoration: none !important;
}

.hn-page-nav a::after,
.hn-text-link::after {
    content: "→";
}

.hn-next-step,
.hn-note-card {
    background: linear-gradient(145deg, #fffaf2, #f1f8f4);
}

.hn-link-panel {
    margin-top: 18px;
}

.hn-legal-route--work {
    border-top: 6px solid #7ca99a;
}

.hn-legal-route--debt {
    border-top: 6px solid #d39b76;
}

.hn-result-count {
    color: #a34e31;
    font-weight: 900;
}

.hn-service {
    display: flex;
    flex-direction: column;
}

[data-hn-accordion] summary > span:first-child {
    grid-row: 1 / span 2;
    align-self: center;
    color: #a45b3d;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

[data-hn-accordion] summary > strong {
    font-size: 1.03rem;
}

[data-hn-accordion] summary > small {
    color: var(--hn-muted);
    font-size: 0.8rem;
    font-weight: 500;
}

[data-hn-accordion] summary:has(> span:first-child) {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 0 8px;
}

.hn-accordion__body {
    padding: 0 16px 18px;
}

.hn-compare--skills tbody th {
    min-width: 150px;
    background: #fafcfb;
}

.hn-compare--services th:first-child {
    min-width: 130px;
}

@keyframes hn-reveal {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 700px) {
    .hn-portal {
        padding-inline: 24px;
        padding-bottom: 96px;
        font-size: 17px;
    }

    .hn-hero {
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
        gap: 34px;
        align-items: center;
    }

    .hn-hero__visual {
        margin-top: 0;
    }

    .hn-grid--two,
    .hn-grid[data-columns="2"],
    .hn-grid--five {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hn-grid--three,
    .hn-grid[data-columns="3"],
    .hn-grid--results,
    .hn-result-list,
    [data-hn-result-list] {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hn-page-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hn-phase-nav,
    .hn-process-links {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hn-process-step {
        padding-left: 82px;
    }

    .hn-process-step:not(:last-child)::after {
        top: 58px;
        left: 28px;
    }

    .hn-process-step__number {
        width: 58px;
        height: 58px;
    }

    .hn-process-step__number small {
        font-size: 0.58rem;
    }

    .hn-process-step__number strong {
        font-size: 0.96rem;
    }

    .hn-process-step__panel {
        padding: 28px;
    }

    .hn-process-step__actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hn-process-offers {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hn-section {
        margin-top: 36px;
    }

    [data-hn-diagnosis] fieldset,
    fieldset[data-hn-question] {
        gap: 12px;
        padding: 22px 20px;
    }

    [data-hn-option],
    .hn-option {
        min-height: 52px;
        padding-inline: 18px 40px;
        font-size: 0.98rem;
    }
}

@media (min-width: 1040px) {
    body.hncc-v3-managed #navi-in > .menu-header.menu-pc {
        flex-wrap: nowrap;
    }

    body.hncc-v3-managed #navi-in > .menu-header.menu-pc > li {
        width: auto;
        min-width: 0;
        flex: 1 1 0;
    }

    body.hncc-v3-managed #navi-in > .menu-header.menu-pc > li > a {
        padding-inline: 5px;
        font-size: 15px;
    }

    .hn-portal {
        padding-inline: 30px;
    }

    .hn-hero {
        min-height: 440px;
        padding: 54px 58px;
    }

    .hn-card,
    [data-hn-service] {
        padding: 24px;
    }

    .hn-grid--five {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 340px) {
    [data-hn-diagnosis] fieldset,
    fieldset[data-hn-question],
    .hn-options,
    [data-hn-options],
    .hn-option-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hn-phase-nav,
    .hn-process-links {
        grid-template-columns: minmax(0, 1fr);
    }

    .hn-process-step {
        padding-left: 54px;
    }

    .hn-process-step__number {
        width: 42px;
        height: 42px;
    }

    .hn-process-step:not(:last-child)::after {
        top: 42px;
        left: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hn-portal *,
    .hn-portal *::before,
    .hn-portal *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    body.hncc-v3-managed .header-container,
    body.hncc-v3-managed .navi,
    body.hncc-v3-managed .footer,
    .hn-local-nav,
    .hn-tabs,
    .hn-chip-nav,
    .hn-button,
    .hn-offer {
        display: none !important;
    }

    .hn-portal,
    .hn-section,
    .hn-card {
        width: 100%;
        max-width: none;
        border-color: #bbb;
        box-shadow: none;
    }
}
