.hero-section {
    margin-top: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 48px 0 44px;
    text-align: center;
}

.hero-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: bold;
    margin-bottom: 20px;
    color: #003366;
    line-height: 1.4;
}

.hero-desc {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #555;
    line-height: 1.8;
}

.hero-btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: #0066cc;
    color: #fff;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.problem-section {
    padding: 60px 0;
    text-align: center;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: bold;
    color: #333;
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background-color: #e67e22;
    margin: 15px auto 0;
}

.merit-section {
    padding: 60px 0;
    background: #f9f9f9;
}

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

.merit-item {
    background: #fff;
    padding: 40px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.merit-num {
    font-size: 2rem;
    font-weight: 900;
    color: #0066cc;
    display: block;
    margin-bottom: 12px;
}

.merit-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 12px;
    color: #0066cc;
}

.merit-desc {
    color: #555;
    line-height: 1.8;
    margin: 0;
    font-size: 0.95rem;
}

.detail-section {
    padding: 80px 0;
}

.detail-block {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}

.detail-block:last-child {
    margin-bottom: 0;
}

.detail-block:nth-child(even) {
    flex-direction: row-reverse;
}

.detail-img {
    flex: 1;
}

.detail-img img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.detail-text {
    flex: 1;
}

.detail-num {
    color: #e67e22;
    font-weight: bold;
    font-size: 1.2rem;
    display: block;
    margin-bottom: 10px;
}

.detail-head {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.detail-desc {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}

.detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-weight: bold;
    color: #444;
}

.detail-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #0066cc;
}

.service-page .cta-section {
    background-color: #003366;
    color: #fff;
}

.service-page .cta-section p {
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 991px) {
    .merit-grid {
        grid-template-columns: 1fr;
    }

    .detail-block,
    .detail-block:nth-child(even) {
        flex-direction: column;
    }
}

.service-page .detail-section--overview {
    padding-top: 24px;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 28px 16px 32px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-desc {
        font-size: 1rem;
        margin-bottom: 28px;
    }

    .hero-btn {
        display: inline-block;
        max-width: min(100%, 300px);
        padding: 14px 28px;
        white-space: normal;
        line-height: 1.5;
    }

    .problem-section,
    .merit-section,
    .detail-section {
        padding: 56px 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .problem-section p {
        font-size: 0.95rem;
        padding: 0 8px;
    }

    .detail-block {
        margin-bottom: 48px;
        gap: 24px;
    }

    .detail-head {
        font-size: 1.35rem;
    }

    .detail-desc,
    .detail-list li {
        font-size: 0.95rem;
    }

    .service-page .cta-section {
        padding: 56px 20px;
    }

    .service-page .cta-btn {
        display: inline-block;
        max-width: min(100%, 300px);
        white-space: normal;
        line-height: 1.5;
    }
}

/* --- 事業一覧（service/index） --- */
.service-page .detail-section .container {
    max-width: 1120px;
}

.service-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 40px;
}

.service-overview-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0;
    background: #fff;
    border: 1px solid #e2e6ee;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

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

.service-overview-card__figure {
    margin: 0;
    aspect-ratio: 1948 / 1178;
    background: linear-gradient(165deg, #f4f7fb 0%, #eef2f7 100%);
    overflow: hidden;
}

.service-overview-card__figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-overview-card:hover .service-overview-card__figure img {
    transform: scale(1.03);
}

.service-overview-card__body {
    padding: 16px 14px 20px;
}

.service-overview-card__num {
    font-size: 0.72rem;
    font-weight: 700;
    color: #0066cc;
    letter-spacing: 0.1em;
}

.service-overview-card__title {
    margin: 6px 0 8px;
    font-size: 0.98rem;
    font-weight: 700;
    color: #003366;
    line-height: 1.45;
}

.service-overview-card__desc {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.7;
    color: #555;
}

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

    .service-overview-grid::-webkit-scrollbar {
        display: none;
    }

    .service-overview-card {
        scroll-snap-align: start;
    }
}

@media (max-width: 768px) {
    .service-page .detail-section .container {
        padding-left: 0;
        padding-right: 0;
    }

    .service-overview-grid {
        display: flex;
        grid-template-columns: none;
        gap: 12px;
        margin-top: 32px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .service-overview-card {
        flex: 0 0 min(260px, 78vw);
    }

    .service-overview-card__body {
        padding: 14px 14px 18px;
    }
}

/* WordPress 固定ヘッダー分 */
body.nhm-lp.service-page {
    --lp-header-offset: var(--header-height, 110px);
}

body.admin-bar.nhm-lp.service-page {
    --lp-header-offset: calc(var(--header-height, 110px) + 32px);
}

@media (max-width: 782px) {
    body.admin-bar.nhm-lp.service-page {
        --lp-header-offset: calc(var(--header-height, 70px) + 46px);
    }
}

body.nhm-lp.service-page main {
    padding-top: var(--lp-header-offset);
}
