/* ==================================================
   QuantumMesh Service Page
   Compact Edition
================================================== */

.qm-service-page {
    overflow: hidden;
    color: var(--qm-color-navy);
}

.qm-service-page *,
.qm-service-page *::before,
.qm-service-page *::after {
    box-sizing: border-box;
}

.qm-service-section {
    position: relative;
    padding: 78px 20px;
}

/* Service contact card: matches the completed Home CTA. */
.qm-service-page .qm-contact-cta {
    min-height: 0;
    height: auto;
    padding: clamp(44px, 6vw, 72px) 24px;
    background: var(--qm-bg-standard, #f5f8fc);
}

.qm-service-contact-card {
    display: flex;
    width: min(100%, 820px);
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: clamp(22px, 4vw, 38px);
    margin-inline: auto;
    padding: clamp(25px, 4vw, 36px) clamp(24px, 5vw, 48px);
    border: 1px solid #0878e8;
    border-radius: 18px;
    color: #102b4c;
    background: #fff;
    box-shadow: 0 10px 26px rgba(18, 62, 105, .09);
    text-align: left;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.qm-service-contact-card:link,
.qm-service-contact-card:visited,
.qm-service-contact-card:active { color: #102b4c; }

.qm-service-contact-card__icon {
    display: grid;
    width: 76px;
    height: 64px;
    flex: 0 0 76px;
    place-items: center;
    color: #0878e8;
    transition: color .2s ease;
}

.qm-service-contact-card__icon svg {
    display: block;
    width: 76px;
    height: 64px;
    overflow: visible;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.qm-service-contact-card__copy {
    display: block;
    min-width: 0;
    max-width: 620px;
}

.qm-service-contact-card__label,
.qm-service-contact-card__title,
.qm-service-contact-card__description { display: block; }

.qm-service-contact-card__label {
    margin-bottom: 7px;
    color: #0878e8;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .2em;
    transition: color .2s ease;
}

.qm-service-contact-card__title {
    color: #102b4c;
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -.025em;
    overflow-wrap: break-word;
    transition: color .2s ease;
}

.qm-service-contact-card__arrow {
    display: inline;
    color: #0878e8;
    white-space: nowrap;
    transition: color .2s ease;
}

.qm-service-contact-card__description {
    margin-top: 7px;
    color: #111b2c;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.65;
    overflow-wrap: break-word;
    transition: color .2s ease;
}

.qm-service-contact-card:focus-visible {
    outline: 3px solid #005cff;
    outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
    .qm-service-contact-card:hover {
        border-color: #66e8ff;
        color: #fff;
        background: #0878e8;
    }

    .qm-service-contact-card:hover .qm-service-contact-card__icon,
    .qm-service-contact-card:hover .qm-service-contact-card__title,
    .qm-service-contact-card:hover .qm-service-contact-card__description { color: #fff; }

    .qm-service-contact-card:hover .qm-service-contact-card__label,
    .qm-service-contact-card:hover .qm-service-contact-card__arrow { color: #9ff7ff; }
}

@media (max-width: 760px) {
    .qm-service-page .qm-contact-cta { padding: 40px 16px; }

    .qm-service-contact-card {
        gap: 20px;
        padding: 26px 22px;
    }

    .qm-service-contact-card__icon,
    .qm-service-contact-card__icon svg {
        width: 64px;
        height: 54px;
    }

    .qm-service-contact-card__icon { flex-basis: 64px; }
}

@media (max-width: 520px) {
    .qm-service-contact-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 24px 20px;
        border-radius: 16px;
    }

    .qm-service-contact-card__title {
        font-size: 1.25rem;
        line-height: 1.4;
    }

    .qm-service-contact-card__description { font-size: 13px; }
}

@media (min-width: 1101px) {
    .qm-service-page .qm-contact-cta {
        min-height: 0;
        height: auto;
        padding: 0 24px 64px;
    }
}

/* Match the Home Service introduction typography from its desktop breakpoint. */
@media (min-width: 1025px) and (max-width: 1100px) {
    .qm-service-page .qm-service-section-lead {
        font-size: 14px;
        line-height: 1.68;
        letter-spacing: 0.02em;
    }

    html[lang="ja"] .qm-service-page .qm-service-section-lead {
        font-size: 16px;
        line-height: 1.8;
    }
}

.qm-service-content-surface {
    background: var(--qm-bg-standard);
}

.qm-service-section-label {
    margin: 0 0 14px;
    color: var(--qm-color-primary);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.qm-service-section-label--light {
    color: rgba(255, 255, 255, 0.68);
}

.qm-service-heading {
    margin: 0;
    color: var(--qm-color-navy);
    font-size: clamp(32px, 3.6vw, 50px);
    font-weight: 700;
    line-height: 1.26;
    letter-spacing: -0.035em;
}

.qm-service-heading--large {
    font-size: clamp(36px, 4vw, 54px);
}

.qm-service-heading--light {
    color: #ffffff;
}

.qm-service-section-lead {
    width: min(100%, 470px);
    margin: 4px 0 0;
    color: #111b2c;
    font-size: 17px;
    font-weight: 400;
    line-height: 2;
    letter-spacing: 0.02em;
}

.qm-service-section-header {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    align-items: end;
    gap: 56px;
    margin-bottom: 42px;
}

/* ==================================================
   Introduction
================================================== */

.qm-service-intro {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.qm-service-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(400px, 1.05fr);
    align-items: center;
    gap: 64px;
}

.qm-service-intro-copy {
    max-width: 650px;
    margin-top: 28px;
}

.qm-service-intro-copy p {
    margin: 0 0 14px;
    color: var(--qm-color-muted);
    font-size: 15px;
    line-height: 1.9;
}

.qm-service-intro-copy p:last-child {
    margin-bottom: 0;
}

.qm-service-intro-visual {
    position: relative;
    min-height: 410px;
    overflow: hidden;
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(4, 19, 46, 0.06), rgba(4, 19, 46, 0.7)),
        linear-gradient(135deg, #dfe9f6 0%, #7c98b8 45%, #102b4f 100%);
    box-shadow: 0 24px 64px rgba(8, 30, 61, 0.14);
}

.qm-service-intro-visual::before {
    position: absolute;
    inset: 12% 14%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    content: "";
}

.qm-service-intro-visual::after {
    position: absolute;
    top: 16%;
    right: 12%;
    width: 42%;
    height: 58%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background:
        repeating-linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.12) 0,
            rgba(255, 255, 255, 0.12) 1px,
            transparent 1px,
            transparent 34px
        );
    content: "";
}

.qm-service-visual-badge {
    position: absolute;
    top: 22px;
    left: 22px;
    z-index: 2;
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.qm-service-visual-badge span {
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(8, 27, 55, 0.28);
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
    backdrop-filter: blur(10px);
}

.qm-service-visual-caption {
    position: absolute;
    right: 26px;
    bottom: 26px;
    left: 26px;
    z-index: 2;
    color: #ffffff;
}

.qm-service-visual-caption span {
    display: block;
    margin-bottom: 7px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.qm-service-visual-caption strong {
    display: block;
    font-size: clamp(28px, 3.4vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

/* ==================================================
   Service Overview
================================================== */

.qm-service-overview {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.qm-service-card-list {
    padding-block: 0;
    overflow: visible;
    background: transparent;
}

.qm-service-card-list .qm-front-service-grid {
    width: 100%;
}

/* One public service uses a single introduction and an image/text feature. */
.qm-service-page .qm-service-overview--single .qm-service-section-header {
    display: block;
}

.qm-service-page .qm-service-overview--single .qm-service-heading {
    white-space: normal;
    text-wrap: balance;
}

.qm-service-page .qm-service-overview--single .qm-service-section-lead {
    width: auto;
    max-width: 940px;
    margin-top: 16px;
    white-space: normal;
}

/* ==================================================
   Featured KAMUI
================================================== */

.qm-service-featured {
    background:
        radial-gradient(circle at 82% 16%, rgba(45, 111, 230, 0.22), transparent 28%),
        #071d39;
}

.qm-service-featured-grid {
    display: grid;
    grid-template-columns: minmax(380px, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 62px;
}

.qm-service-featured-visual {
    position: relative;
    min-height: 440px;
    overflow: hidden;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(3, 16, 34, 0.06), rgba(3, 16, 34, 0.52)),
        linear-gradient(135deg, #859bb1 0%, #355675 44%, #071b34 100%);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.24);
}

.qm-service-featured-visual::before {
    position: absolute;
    inset: 20px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    content: "";
}

.qm-service-featured-mark {
    position: absolute;
    right: 26px;
    bottom: 24px;
    left: 26px;
    color: #ffffff;
}

.qm-service-featured-mark span {
    display: block;
    margin-bottom: 7px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.qm-service-featured-mark strong {
    display: block;
    font-size: clamp(48px, 6vw, 76px);
    line-height: 1;
    letter-spacing: -0.055em;
}

.qm-service-featured-lead {
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    line-height: 1.9;
}

.qm-service-featured-list {
    display: grid;
    gap: 0;
    margin: 24px 0 28px;
    padding: 0;
    list-style: none;
}

.qm-service-featured-list li {
    position: relative;
    padding: 12px 0 12px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    line-height: 1.65;
}

.qm-service-featured-list li::before {
    position: absolute;
    top: 20px;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #63a2ff;
    box-shadow: 0 0 14px rgba(99, 162, 255, 0.75);
    content: "";
}

.qm-service-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-width: 280px;
    padding: 13px 17px 13px 20px;
    border: 1px solid var(--qm-color-navy);
    border-radius: 999px;
    color: var(--qm-color-navy);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.qm-service-button:hover {
    transform: translateY(-2px);
}

.qm-service-button--light {
    border-color: rgba(255, 255, 255, 0.34);
    color: #ffffff;
}

.qm-service-button--light:hover {
    background: #ffffff;
    color: #071d39;
}

/* ==================================================
   Process
================================================== */

.qm-service-process {
    background: var(--qm-bg-standard);
}

.qm-service-section-header--process {
    margin-bottom: 48px;
}

.qm-service-process-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
    gap: 58px;
    align-items: stretch;
}

.qm-service-process-visual {
    position: sticky;
    top: 110px;
    align-self: start;
    min-height: 420px;
    overflow: hidden;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(6, 25, 49, 0.04), rgba(6, 25, 49, 0.68)),
        linear-gradient(145deg, #d5e2ef 0%, #6785a4 45%, #102d50 100%);
}

.qm-service-process-visual::before {
    position: absolute;
    inset: 14%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background:
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 34px 34px;
    content: "";
}

.qm-service-process-visual-content {
    position: absolute;
    right: 24px;
    bottom: 24px;
    left: 24px;
    color: #ffffff;
}

.qm-service-process-visual-content span {
    display: block;
    margin-bottom: 7px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.qm-service-process-visual-content strong {
    display: block;
    font-size: clamp(34px, 4.2vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.qm-service-process-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.qm-service-process-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 20px;
    padding: 22px 0;
    border-top: 1px solid rgba(10, 42, 80, 0.12);
}

.qm-service-process-item:last-child {
    border-bottom: 1px solid rgba(10, 42, 80, 0.12);
}

.qm-service-process-number {
    padding-top: 4px;
    color: var(--qm-color-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.qm-service-process-en {
    margin: 0 0 6px;
    color: var(--qm-color-primary);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.qm-service-process-item h3 {
    margin: 0 0 8px;
    color: var(--qm-color-navy);
    font-size: 22px;
    line-height: 1.4;
}

.qm-service-process-item p:last-child {
    margin: 0;
    color: var(--qm-color-muted);
    font-size: 14px;
    line-height: 1.8;
}

/* ==================================================
   Why QuantumMesh
================================================== */

.qm-service-why {
    background: var(--qm-bg-standard);
}

.qm-service-why-header {
    margin-bottom: 44px;
}

.qm-service-why-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid rgba(10, 42, 80, 0.16);
    border-bottom: 1px solid rgba(10, 42, 80, 0.16);
}

.qm-service-why-item {
    position: relative;
    min-height: 260px;
    padding: 28px 28px 30px 0;
}

.qm-service-why-item + .qm-service-why-item {
    padding-left: 28px;
    border-left: 1px solid rgba(10, 42, 80, 0.16);
}

.qm-service-why-index {
    margin-bottom: 42px;
    color: rgba(9, 42, 81, 0.32);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.qm-service-why-label {
    margin: 0 0 10px;
    color: var(--qm-color-primary);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.qm-service-why-item h3 {
    margin: 0 0 12px;
    color: var(--qm-color-navy);
    font-size: 24px;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

.qm-service-why-item p:last-child {
    margin: 0;
    color: var(--qm-color-muted);
    font-size: 14px;
    line-height: 1.8;
}

/* ==================================================
   Contact CTA
================================================== */

.qm-service-cta {
    padding: 0 20px 78px;
    background: var(--qm-bg-standard);
}

.qm-service-cta-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 56px;
    overflow: hidden;
    border-radius: 26px;
    padding: 48px 52px;
    background:
        radial-gradient(circle at 90% 10%, rgba(61, 131, 255, 0.34), transparent 28%),
        linear-gradient(145deg, #0b2d57 0%, #061a34 100%);
    box-shadow: 0 24px 64px rgba(7, 31, 61, 0.18);
}

.qm-service-cta-inner::after {
    position: absolute;
    right: -90px;
    bottom: -130px;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    content: "";
}

.qm-service-cta-copy {
    position: relative;
    z-index: 2;
}

.qm-service-cta-copy h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.28;
    letter-spacing: -0.04em;
}

.qm-service-cta-copy > p:last-child {
    max-width: 650px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 14px;
    line-height: 1.8;
}

.qm-service-cta-action {
    position: relative;
    z-index: 2;
    min-width: 260px;
}

.qm-service-contact-text-link {
    position: relative;
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 12px;
    padding: 8px 2px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.025em;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.qm-service-contact-text-link::after {
    position: absolute;
    right: 2px;
    bottom: 5px;
    left: 2px;
    height: 1px;
    content: "";
    background: rgba(89, 216, 255, 0.58);
    transform: scaleX(1);
    transform-origin: right center;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.qm-service-contact-text-link span:last-child {
    color: #59d8ff;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.qm-service-contact-text-link:hover {
    color: #59d8ff;
}

.qm-service-contact-text-link:hover::after {
    transform: scaleX(0.22);
}

.qm-service-contact-text-link:hover span:last-child {
    transform: translateX(2px);
}

.qm-service-contact-text-link:focus-visible {
    outline: 2px solid #59d8ff;
    outline-offset: 4px;
}

.qm-service-cta-action p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 11px;
    text-align: center;
}

/* ==================================================
   Tablet
================================================== */

@media (max-width: 1100px) {
    .qm-service-section {
        padding: 72px 24px;
    }

    .qm-service-intro-grid,
    .qm-service-featured-grid {
        gap: 44px;
    }

    .qm-service-intro-grid {
        grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    }

    .qm-service-intro-visual {
        min-height: 390px;
    }

    .qm-service-featured-visual {
        min-height: 420px;
    }

    .qm-service-process-layout {
        gap: 44px;
    }

    .qm-service-cta-inner {
        padding: 44px;
    }
}

/* ==================================================
   Mobile / Small Tablet
================================================== */

@media (max-width: 900px) {
    .qm-service-section {
        padding: 68px 20px;
    }

    .qm-service-section-header,
    .qm-service-intro-grid,
    .qm-service-featured-grid,
    .qm-service-process-layout,
    .qm-service-cta-inner {
        grid-template-columns: 1fr;
    }

    .qm-service-section-header {
        align-items: start;
        gap: 24px;
        margin-bottom: 38px;
    }

    .qm-service-section-lead {
        width: 100%;
        max-width: 680px;
        margin-top: 0;
    }

    .qm-service-intro-grid,
    .qm-service-featured-grid,
    .qm-service-process-layout {
        gap: 38px;
    }

    .qm-service-intro-visual {
        min-height: 430px;
    }

    .qm-service-featured-visual {
        min-height: 460px;
    }

    .qm-service-process-visual {
        position: relative;
        top: auto;
        min-height: 390px;
    }

    .qm-service-why-grid {
        grid-template-columns: 1fr;
    }

    .qm-service-why-item {
        min-height: auto;
        padding: 30px 0;
    }

    .qm-service-why-item + .qm-service-why-item {
        padding-left: 0;
        border-top: 1px solid rgba(10, 42, 80, 0.16);
        border-left: 0;
    }

    .qm-service-why-index {
        margin-bottom: 30px;
    }

    .qm-service-cta-inner {
        align-items: start;
        gap: 34px;
    }

    .qm-service-cta-action {
        width: 100%;
        max-width: 360px;
    }
}

/* ==================================================
   Mobile
================================================== */

@media (max-width: 680px) {
    .qm-service-section {
        padding: 58px 16px;
    }

    .qm-service-section-label {
        margin-bottom: 12px;
        font-size: 9px;
    }

    .qm-service-heading {
        font-size: var(--qm-mobile-section-title-size);
        line-height: var(--qm-mobile-section-title-leading);
        text-wrap: pretty;
        word-break: auto-phrase;
        overflow-wrap: normal;
    }

    .qm-service-heading--large {
        font-size: 34px;
    }

    .qm-service-intro-copy {
        margin-top: 22px;
    }

    .qm-service-intro-copy p {
        font-size: 14px;
        line-height: 1.85;
    }

    .qm-service-page .qm-service-section-lead {
        font-size: 15px;
        line-height: 1.9;
    }

    .qm-service-intro-visual {
        min-height: 360px;
        border-radius: 18px;
    }

    .qm-service-visual-badge {
        top: 16px;
        left: 16px;
    }

    .qm-service-visual-caption {
        right: 18px;
        bottom: 20px;
        left: 18px;
    }

    .qm-service-featured-visual {
        min-height: 390px;
        border-radius: 18px;
    }

    .qm-service-featured-mark {
        right: 20px;
        bottom: 22px;
        left: 20px;
    }

    .qm-service-featured-lead {
        margin-top: 20px;
        font-size: 14px;
        line-height: 1.85;
    }

    .qm-service-button {
        width: 100%;
        min-width: 0;
    }

    .qm-service-process-visual {
        min-height: 340px;
        border-radius: 18px;
    }

    .qm-service-process-item {
        grid-template-columns: 44px 1fr;
        gap: 10px;
        padding: 22px 0;
    }

    .qm-service-process-item h3 {
        font-size: 21px;
    }

    .qm-service-why-header {
        margin-bottom: 38px;
    }

    .qm-service-why-item h3 {
        font-size: 23px;
    }

    .qm-service-cta {
        padding: 0 16px 58px;
    }

    .qm-service-cta-inner {
        gap: 30px;
        border-radius: 20px;
        padding: 36px 22px;
    }

    .qm-service-cta-copy h2 {
        font-size: 31px;
        line-height: 1.36;
    }

    .qm-service-cta-action {
        width: 100%;
        min-width: 0;
    }
}


/* ==================================================
   Final Polish — Service Hero / Rhythm / Details
================================================== */

/* Continuous visual flow for process */
.qm-service-process-list {
    position: relative;
}

.qm-service-process-list::before {
    position: absolute;
    top: 34px;
    bottom: 34px;
    left: 31px;
    width: 1px;
    background: linear-gradient(to bottom, rgba(47, 131, 255, 0.42), rgba(47, 131, 255, 0.06));
    content: "";
}

.qm-service-process-number {
    position: relative;
    z-index: 2;
}

.qm-service-process-number::before {
    position: absolute;
    top: 2px;
    left: 24px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2f83ff;
    box-shadow: 0 0 0 5px #ffffff;
    content: "";
}

/* Larger, more intentional Why numbers */
.qm-service-why-index {
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.04em;
    color: rgba(9, 42, 81, 0.14);
}

/* Slightly richer CTA interaction */
.qm-service-cta-inner {
    isolation: isolate;
}

.qm-service-cta-inner::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(105deg, transparent 0 56%, rgba(255, 255, 255, 0.025) 56% 57%, transparent 57%),
        linear-gradient(75deg, transparent 0 72%, rgba(255, 255, 255, 0.025) 72% 73%, transparent 73%);
    content: "";
}

@media (max-width: 680px) {
    .qm-service-process-list::before {
        left: 21px;
    }

    .qm-service-process-number::before {
        left: 14px;
    }
}

/* ==================================================
   Service Page / Desktop refinement
================================================== */

@media (min-width: 1025px) {
    .qm-service-page .qm-service-intro .qm-service-section-label,
    .qm-service-page .qm-service-overview .qm-service-section-label {
        font-size: 14px;
        letter-spacing: 2.4px;
    }

    .qm-service-page .qm-service-intro {
        z-index: 0;
        isolation: isolate;
        overflow: hidden;
        background: #071a32;
        box-sizing: border-box;
    }

    .qm-service-page .qm-service-intro::before {
        position: absolute;
        inset: 0;
        z-index: -2;
        content: "";
        background: url("../../images/service/service-hero.png") center 50% / cover no-repeat;
    }

    .qm-service-page .qm-service-intro::after {
        position: absolute;
        inset: 0;
        z-index: -1;
        content: "";
        background: linear-gradient(
            90deg,
            rgba(5, 48, 92, 0.16) 0%,
            rgba(5, 48, 92, 0.1) 36%,
            rgba(5, 48, 92, 0.04) 52%,
            rgba(5, 48, 92, 0) 68%
        );
        pointer-events: none;
    }

    .qm-service-page .qm-service-intro .qm-service-section-label,
    .qm-service-page .qm-service-intro .qm-service-heading,
    .qm-service-page .qm-service-intro-copy p {
        color: #ffffff;
        text-shadow: 0 2px 10px rgba(2, 12, 28, 0.42);
    }

    .qm-service-page .qm-service-intro > .qm-container {
        position: relative;
        z-index: 1;
    }

    .qm-service-page .qm-service-intro-grid {
        display: block;
    }


    .qm-service-page .qm-service-intro-visual {
        display: none;
    }

    .qm-service-page .qm-service-intro-visual::before,
    .qm-service-page .qm-service-intro-visual::after {
        display: none;
    }

    .qm-service-page .qm-service-overview {
        padding-block: 64px;
    }

    .qm-service-page .qm-service-section-header {
        display: block;
        margin-bottom: 32px;
    }

    .qm-service-page .qm-service-section-header .qm-service-heading {
        font-size: 42px;
        line-height: 1.25;
        white-space: nowrap;
    }

    .qm-service-page .qm-service-section-lead {
        width: auto;
        max-width: none;
        margin-top: 16px;
        font-size: 14px;
        line-height: 1.68;
        letter-spacing: 0.02em;
        white-space: nowrap;
    }

    html[lang="ja"] .qm-service-page .qm-service-section-lead {
        font-size: 16px;
        line-height: 1.8;
    }

    .qm-service-page .qm-service-cta {
        padding-bottom: 72px;
    }

    .qm-service-page .qm-service-cta-action {
        align-self: center;
    }

    .qm-service-page .qm-service-cta-copy > p:last-child {
        font-size: 16px;
    }

    .qm-service-page .qm-service-contact-text-link {
        font-size: 17px;
    }
}


/* Mobile/tablet Hero: keep copy in one column over the existing photograph. */
@media (max-width: 1024px) {
    .qm-service-page .qm-service-intro {
        background: #071a32 url("../../images/service/service-hero.png") 60% center / cover no-repeat;
    }
    .qm-service-page .qm-service-intro .qm-service-intro-grid { display: block; }
    .qm-service-page .qm-service-intro-visual { display: none; }
    .qm-service-page .qm-service-intro::before { content: none; }
}
