.service-detail-hero {
    margin-top: 0;
    padding: 48px 0 44px;
    background: linear-gradient(135deg, #f0f4f8 0%, #dce8f4 100%);
}

.service-detail-hero .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.service-detail-num {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #0066cc;
    margin-bottom: 12px;
}

.service-detail-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 900;
    color: #003366;
    line-height: 1.4;
    margin: 0 0 16px;
}

.service-detail-lead {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #444;
    margin: 0;
}

.service-detail-main {
    padding: 0 0 80px;
}

.service-detail-main > .container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.service-detail-layout {
    display: grid;
    grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 48px);
    align-items: start;
    max-width: 1120px;
    padding-top: 56px;
}

/* サイト制作: 画像カラムなし → 進め方をフル幅で表示 */
.service-detail-layout--full,
.service-detail-layout:not(:has(.service-detail-visual)) {
    grid-template-columns: 1fr;
}

.service-detail-layout--full .service-detail-content,
.service-detail-layout:not(:has(.service-detail-visual)) .service-detail-content {
    width: 100%;
    max-width: 100%;
}

/* 事業一覧（service-overview）と同じ画像枠 */
.service-detail-visual {
    margin: 0;
    aspect-ratio: 1948 / 1178;
    background: linear-gradient(165deg, #f4f7fb 0%, #eef2f7 100%);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.service-detail-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    border-radius: 0;
    box-shadow: none;
}

.service-detail-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #003366;
    margin: 40px 0 16px;
}

.service-detail-content h2:first-of-type {
    margin-top: 0;
}

/* --- 提供内容（横一列・フル幅バンド） --- */
.service-deliverables-band {
    width: 100%;
    padding: 48px 0 52px;
    background: linear-gradient(165deg, #f4f7fb 0%, #fafbfc 48%, #fff 100%);
    border-top: 1px solid #e6ebf2;
    border-bottom: 1px solid #e6ebf2;
}

.service-deliverables-band .container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.service-deliverables {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
}

.service-deliverables__head {
    margin-bottom: 32px;
}

.service-deliverables__label {
    margin: 0 0 8px;
    font-family: "Jost", "Helvetica Neue", Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    color: rgba(0, 102, 204, 0.72);
}

.service-deliverables__head h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2.8vw, 1.65rem);
    font-weight: 800;
    letter-spacing: 0.03em;
    color: #1a1f2b;
}

.service-deliverables__row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}

.service-deliverable {
    position: relative;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.service-deliverable:not(:first-child)::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8%;
    bottom: 8%;
    width: 1px;
    background: linear-gradient(180deg, transparent 0%, #d8e0ea 18%, #d8e0ea 82%, transparent 100%);
}

.service-deliverable__figure {
    position: relative;
    margin: 0 0 22px;
    width: 100%;
    aspect-ratio: 1948 / 1178;
    background: radial-gradient(ellipse at 50% 42%, #fff 0%, #f0f4f9 100%);
    overflow: hidden;
}

.service-deliverable__figure img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-deliverable:hover .service-deliverable__figure img {
    transform: scale(1.03);
}

.service-deliverable__num {
    margin: 0 0 10px;
    font-family: "Jost", "Helvetica Neue", Arial, sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: rgba(0, 102, 204, 0.65);
}

.service-deliverable__title {
    margin: 0 0 10px;
    font-size: 0.98rem;
    font-weight: 700;
    color: #1a1f2b;
    line-height: 1.45;
    letter-spacing: 0.04em;
}

.service-deliverable__desc {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.8;
    color: #5c6578;
}

.service-process-flow {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    position: relative;
    width: 100%;
}

body.nhm-lp .service-process-flow,
body.nhm-lp .service-process-flow > li {
    list-style: none !important;
    margin-left: 0 !important;
}

body.nhm-lp .service-process-step__body .service-process-step__title {
    margin: 0 0 6px;
    padding: 0;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.45;
}

.service-process-step {
    position: relative;
    padding: 0 12px 0 0;
}

.service-process-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 22px;
    left: calc(100% - 12px);
    width: calc(100% - 44px);
    height: 2px;
    background: linear-gradient(90deg, #0066cc 0%, #c5d4e8 100%);
    pointer-events: none;
}

.service-process-step__marker {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0066cc;
    background: #fff;
    margin-bottom: 14px;
}

.service-process-step__num {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #0066cc;
}

.service-process-step__title {
    margin: 0 0 6px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #003366;
    line-height: 1.45;
}

.service-process-step__desc {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.7;
    color: #5c6578;
}

@media (max-width: 900px) {
    .service-detail-layout--full {
        padding-top: 40px;
    }

    .service-detail-content h2 {
        margin-bottom: 20px;
    }

    .service-process-flow {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0;
        margin: 0;
        border: none;
        width: 100%;
    }

    .service-process-step {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 0 14px;
        align-items: start;
        position: relative;
        padding: 0 0 28px;
    }

    .service-process-step:last-child {
        padding-bottom: 0;
    }

    .service-process-step:not(:last-child)::after,
    .service-process-step:nth-child(odd):not(:last-child)::after {
        display: none !important;
    }

    .service-process-step:not(:last-child)::before {
        content: "";
        position: absolute;
        left: 21px;
        top: 44px;
        bottom: 0;
        width: 2px;
        background: #d8e4f2;
        transform: translateX(-50%);
    }

    .service-process-step__marker {
        position: relative;
        z-index: 1;
        width: 44px;
        height: 44px;
        margin: 0;
        flex-shrink: 0;
    }

    .service-process-step__body {
        min-width: 0;
        padding-top: 2px;
    }

    .service-process-step__title {
        font-size: 1rem;
    }

    .service-process-step__desc {
        font-size: 0.875rem;
        margin: 0;
    }
}

@media (max-width: 900px) {
    .service-deliverables__row {
        grid-template-columns: repeat(4, minmax(200px, 1fr));
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 0;
        padding-bottom: 6px;
        margin: 0 -24px;
        padding-left: 24px;
        padding-right: 24px;
        scrollbar-width: none;
    }

    .service-deliverables__row::-webkit-scrollbar {
        display: none;
    }

    .service-deliverable {
        scroll-snap-align: start;
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .service-deliverables-band {
        padding: 36px 0 40px;
    }

    .service-deliverables__row {
        grid-template-columns: none;
        display: flex;
        gap: 14px;
    }

    .service-deliverable {
        flex: 0 0 min(240px, 72vw);
        padding: 18px 16px 20px;
        background: rgba(255, 255, 255, 0.88);
        box-shadow: 0 8px 32px rgba(15, 35, 64, 0.06);
    }

    .service-deliverable::before {
        display: none;
    }

    .service-deliverable__figure {
        margin-bottom: 16px;
        border-radius: 2px;
    }
}

@media (max-width: 520px) {
    .service-detail-content h2 {
        font-size: 1.15rem;
        margin-top: 36px;
    }
}

.service-detail-content p {
    line-height: 1.85;
    color: #444;
    margin: 0 0 24px;
}

.service-detail-content .service-process-step__desc {
    margin: 0;
    color: #5c6578;
    line-height: 1.7;
}

@media (max-width: 520px) {
    .service-detail-hero {
        padding: 28px 0 32px;
    }

    .service-detail-lead {
        font-size: 1rem;
        line-height: 1.85;
    }

    .service-detail-main {
        padding: 48px 0 64px;
    }

    .service-detail-content h2 {
        font-size: 1.15rem;
    }

    .service-detail-list {
        margin-bottom: 24px;
    }
}

.service-detail-list {
    margin: 0 0 32px;
    padding-left: 1.2em;
    line-height: 1.85;
    color: #444;
}

.service-detail-list li {
    margin-bottom: 8px;
}

.service-detail-flow {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: flow;
}

.service-detail-flow li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 16px;
    line-height: 1.7;
    color: #444;
}

.service-detail-flow li::before {
    counter-increment: flow;
    content: counter(flow, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 900;
    color: #0066cc;
    font-size: 0.9rem;
}

.service-detail-related {
    padding: 48px 0;
    background: #f6f7f9;
    border-top: 1px solid #e2e6ee;
}

.service-detail-related .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.service-detail-related h2 {
    font-size: 1.1rem;
    margin: 0 0 20px;
    color: #333;
}

.service-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.service-related-card {
    display: block;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #e2e6ee;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-weight: 700;
    font-size: 0.92rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-related-card:hover {
    border-color: #0066cc;
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.1);
    color: #0066cc;
    opacity: 1;
}

@media (max-width: 900px) {
    .service-detail-layout {
        grid-template-columns: 1fr;
    }

    .service-detail-visual {
        max-width: 520px;
        margin: 0 auto;
        width: 100%;
    }

    .service-related-grid {
        grid-template-columns: 1fr;
    }
}
