/* ========================================
   NJES サービス一覧ページ専用CSS
   assets/css/service.css
======================================== */


/* ========================================
   共通
======================================== */

.service-hero,
.service-introduction,
.service-list,
.service-contact {
    position: relative;
}

.service-hero__inner,
.service-introduction__inner,
.service-list__inner,
.service-contact__inner {
    width: min(1100px, calc(100% - 48px));
    margin-inline: auto;
}


/* ========================================
   ファーストビュー
======================================== */

.service-hero {
    overflow: hidden;
    padding: 94px 0 100px;
    background:
        linear-gradient(
            135deg,
            #f8fbff 0%,
            #eef6ff 52%,
            #effcff 100%
        );
}

.service-hero__background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.service-hero__grid {
    position: absolute;
    inset: 0;
    opacity: 0.55;
    background-image:
        linear-gradient(
            rgb(3 81 248 / 5%) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgb(3 81 248 / 5%) 1px,
            transparent 1px
        );
    background-size: 56px 56px;
    mask-image:
        linear-gradient(
            90deg,
            #000 0%,
            #000 55%,
            transparent 100%
        );
    -webkit-mask-image:
        linear-gradient(
            90deg,
            #000 0%,
            #000 55%,
            transparent 100%
        );
}

.service-hero__orb {
    position: absolute;
    border-radius: 50%;
}

.service-hero__orb--blue {
    top: -280px;
    right: -100px;
    width: 650px;
    height: 650px;
    background:
        radial-gradient(
            circle,
            rgb(3 81 248 / 17%) 0%,
            rgb(3 81 248 / 4%) 55%,
            transparent 72%
        );
}

.service-hero__orb--cyan {
    right: 24%;
    bottom: -300px;
    width: 520px;
    height: 520px;
    background:
        radial-gradient(
            circle,
            rgb(55 183 233 / 18%) 0%,
            transparent 70%
        );
}

.service-hero__line {
    position: absolute;
    top: 20%;
    right: -80px;
    width: 520px;
    height: 220px;
    border: 1px solid rgb(3 81 248 / 10%);
    border-radius: 50%;
    transform: rotate(-20deg);
}

.service-hero__line::before,
.service-hero__line::after {
    position: absolute;
    content: "";
    border: 1px solid rgb(55 183 233 / 12%);
    border-radius: 50%;
}

.service-hero__line::before {
    inset: 24px;
}

.service-hero__line::after {
    inset: 50px;
}

.service-hero__inner {
    position: relative;
    z-index: 1;
}

.service-hero__label {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 0 0 18px;
    color: var(--color-primary, #0351f8);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.2em;
}

.service-hero__label span {
    width: 42px;
    height: 2px;
    background:
        linear-gradient(
            90deg,
            var(--color-primary, #0351f8),
            var(--color-cyan, #37b7e9)
        );
    border-radius: 999px;
}

.service-hero__title {
    margin: 0;
    color: var(--color-navy, #102b4e);
    font-size: clamp(44px, 5vw, 68px);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

.service-hero__lead {
    margin: 28px 0 0;
    color: var(--color-navy, #102b4e);
    font-size: clamp(21px, 2.4vw, 30px);
    font-weight: 800;
    line-height: 1.65;
}

.service-hero__description {
    max-width: 720px;
    margin: 17px 0 0;
    color: #5f7489;
    font-size: 15px;
    line-height: 2;
}


/* ========================================
   共通ラベル・見出し
======================================== */

.service-section-label {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 0 0 14px;
    color: var(--color-primary, #0351f8);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.service-section-label span {
    width: 42px;
    height: 2px;
    background:
        linear-gradient(
            90deg,
            var(--color-primary, #0351f8),
            var(--color-cyan, #37b7e9)
        );
    border-radius: 999px;
}

.service-section-heading {
    margin-bottom: 44px;
}

.service-section-heading__title {
    margin: 0;
    color: var(--color-navy, #102b4e);
    font-size: clamp(34px, 4vw, 50px);
    font-weight: 850;
    line-height: 1.4;
    letter-spacing: 0.04em;
}

.service-section-heading__description {
    margin: 14px 0 0;
    color: #687d92;
    font-size: 14px;
    line-height: 1.9;
}


/* ========================================
   サービス紹介
======================================== */

.service-introduction {
    padding: 105px 0;
    background: #ffffff;
}

.service-introduction__inner {
    display: grid;
    grid-template-columns:
        minmax(330px, 0.9fr)
        minmax(0, 1.1fr);
    align-items: start;
    gap: 80px;
}

.service-introduction__title {
    margin: 0;
    color: var(--color-navy, #102b4e);
    font-size: clamp(30px, 3.5vw, 43px);
    font-weight: 850;
    line-height: 1.6;
    letter-spacing: 0.04em;
}

.service-introduction__content {
    padding-top: 33px;
}

.service-introduction__content p {
    margin: 0;
    color: #5f7489;
    font-size: 15px;
    line-height: 2.15;
}

.service-introduction__content p + p {
    margin-top: 20px;
}


/* ========================================
   サービス一覧
======================================== */

.service-list {
    padding: 110px 0 120px;
    background: #f7faff;
}

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


/* ========================================
   サービスカード
======================================== */

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    padding: 29px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #d9e6f2;
    border-radius: 20px;
    box-shadow:
        0 16px 40px rgb(26 72 119 / 7%);
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.service-card::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    content: "";
    background:
        linear-gradient(
            90deg,
            var(--color-primary, #0351f8),
            var(--color-cyan, #37b7e9)
        );
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left center;
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.service-card:hover {
    border-color: rgb(3 81 248 / 24%);
    box-shadow:
        0 24px 55px rgb(26 72 119 / 13%);
    transform: translateY(-6px);
}

.service-card:hover::before {
    opacity: 1;
    transform: scaleX(1);
}

.service-card__top {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.service-card__icon {
    display: grid;
    width: 94px;
    height: 94px;
    flex: 0 0 auto;
    place-items: center;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            #edf4ff 0%,
            #eafcff 100%
        );
    border: 1px solid #dce9f6;
    border-radius: 22px;
}

.service-card__icon img {
    display: block;
    width: 78px;
    height: 78px;
    object-fit: contain;
}

.service-card__number {
    margin: 2px 0 0;
    color: rgb(3 81 248 / 11%);
    font-size: 45px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
}

.service-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.service-card__title {
    min-height: 72px;
    margin: 25px 0 0;
    color: var(--color-navy, #102b4e);
    font-size: 19px;
    font-weight: 850;
    line-height: 1.65;
    letter-spacing: 0.02em;
}

.service-card__description {
    margin: 14px 0 0;
    color: #62778c;
    font-size: 13px;
    line-height: 1.95;
}

.service-card__examples {
    margin-top: auto;
    padding-top: 24px;
}

.service-card__examples-label {
    margin: 0 0 10px;
    color: var(--color-primary, #0351f8);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.08em;
}

.service-card__examples-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-card__examples-list li {
    position: relative;
    margin: 0;
    padding-left: 17px;
    color: #60758a;
    font-size: 12px;
    line-height: 1.7;
}

.service-card__examples-list li::before {
    position: absolute;
    top: 0.68em;
    left: 0;
    width: 6px;
    height: 6px;
    content: "";
    background: var(--color-cyan, #37b7e9);
    border-radius: 50%;
    transform: translateY(-50%);
}


/* ========================================
   お問い合わせ導線
======================================== */

.service-contact {
    overflow: hidden;
    padding: 90px 0;
    background:
        linear-gradient(
            135deg,
            #073364 0%,
            #094b80 58%,
            #08758f 100%
        );
}

.service-contact__background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.service-contact__circle {
    position: absolute;
    top: -320px;
    right: -170px;
    width: 650px;
    height: 650px;
    background:
        radial-gradient(
            circle,
            rgb(92 220 237 / 20%) 0%,
            transparent 68%
        );
    border-radius: 50%;
}

.service-contact__circle-small {
    position: absolute;
    bottom: -250px;
    left: -150px;
    width: 500px;
    height: 500px;
    background:
        radial-gradient(
            circle,
            rgb(3 81 248 / 22%) 0%,
            transparent 70%
        );
    border-radius: 50%;
}

.service-contact__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;
    align-items: center;
    gap: 55px;
}

.service-contact__label {
    margin: 0 0 12px;
    color: #83dce7;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.service-contact__title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(27px, 3.4vw, 42px);
    font-weight: 850;
    line-height: 1.55;
    letter-spacing: 0.03em;
}

.service-contact__description {
    margin: 18px 0 0;
    color: rgb(255 255 255 / 70%);
    font-size: 13px;
    line-height: 1.9;
}

.service-contact__button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    min-width: 280px;
    min-height: 62px;
    padding: 0 23px;
    color: #07537f;
    background: #ffffff;
    border-radius: 11px;
    box-shadow:
        0 15px 35px rgb(0 20 48 / 20%);
    font-size: 13px;
    font-weight: 850;
    line-height: 1.5;
    text-decoration: none;
    transition:
        color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.service-contact__button:hover {
    color: var(--color-primary, #0351f8);
    box-shadow:
        0 20px 45px rgb(0 20 48 / 28%);
    transform: translateY(-3px);
}


/* ========================================
   タブレット
======================================== */

@media (max-width: 960px) {
    .service-introduction__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .service-introduction__content {
        max-width: 760px;
        padding-top: 0;
    }

    .service-list__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .service-contact__inner {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .service-contact__button {
        width: 100%;
        max-width: 380px;
    }
}


/* ========================================
   スマートフォン
======================================== */

@media (max-width: 700px) {
    .service-hero__inner,
    .service-introduction__inner,
    .service-list__inner,
    .service-contact__inner {
        width: calc(100% - 28px);
    }


    /* ファーストビュー */

    .service-hero {
        padding: 68px 0 72px;
    }

    .service-hero__title {
        font-size: 39px;
    }

    .service-hero__lead {
        margin-top: 21px;
        font-size: 20px;
    }

    .service-hero__description {
        margin-top: 14px;
        font-size: 13px;
        line-height: 1.9;
    }


    /* サービス紹介 */

    .service-introduction {
        padding: 72px 0 75px;
    }

    .service-introduction__inner {
        gap: 24px;
    }

    .service-introduction__title {
        font-size: 27px;
        line-height: 1.55;
    }

    .service-introduction__title br {
        display: none;
    }

    .service-introduction__content p {
        font-size: 13px;
        line-height: 2;
    }

    .service-introduction__content p + p {
        margin-top: 15px;
    }


    /* サービス一覧 */

    .service-list {
        padding: 74px 0 80px;
    }

    .service-section-heading {
        margin-bottom: 30px;
    }

    .service-section-heading__title {
        font-size: 31px;
    }

    .service-section-heading__description {
        margin-top: 10px;
        font-size: 13px;
    }

    .service-list__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }


    /* サービスカード */

    .service-card {
        padding: 22px 20px;
        border-radius: 16px;
        box-shadow:
            0 12px 30px rgb(26 72 119 / 7%);
    }

    .service-card:hover {
        transform: none;
    }

    .service-card__top {
        align-items: center;
    }

    .service-card__icon {
        width: 76px;
        height: 76px;
        border-radius: 18px;
    }

    .service-card__icon img {
        width: 64px;
        height: 64px;
    }

    .service-card__number {
        font-size: 36px;
    }

    .service-card__title {
        min-height: 0;
        margin-top: 17px;
        font-size: 17px;
        line-height: 1.6;
    }

    .service-card__description {
        margin-top: 10px;
        font-size: 13px;
        line-height: 1.85;
    }

    /*
     * スマートフォンでは対応例を非表示にし、
     * ページが縦に長くなりすぎるのを防ぐ。
     */
    .service-card__examples {
        display: none;
    }


    /* お問い合わせ導線 */

    .service-contact {
        padding: 68px 0;
    }

    .service-contact__inner {
        gap: 28px;
    }

    .service-contact__title {
        font-size: 26px;
        line-height: 1.55;
    }

    .service-contact__title br {
        display: none;
    }

    .service-contact__description {
        margin-top: 14px;
        font-size: 12px;
        line-height: 1.9;
    }

    .service-contact__button {
        width: 100%;
        max-width: none;
        min-width: 0;
        min-height: 58px;
    }
}


/* ========================================
   小さいスマートフォン
======================================== */

@media (max-width: 420px) {
    .service-hero__inner,
    .service-introduction__inner,
    .service-list__inner,
    .service-contact__inner {
        width: calc(100% - 24px);
    }

    .service-hero {
        padding: 61px 0 65px;
    }

    .service-hero__title {
        font-size: 35px;
    }

    .service-hero__lead {
        font-size: 18px;
    }

    .service-hero__lead br {
        display: none;
    }

    .service-introduction {
        padding: 64px 0 67px;
    }

    .service-introduction__title {
        font-size: 24px;
    }

    .service-list {
        padding: 66px 0 72px;
    }

    .service-card {
        padding: 19px 17px;
    }

    .service-card__icon {
        width: 69px;
        height: 69px;
        border-radius: 16px;
    }

    .service-card__icon img {
        width: 58px;
        height: 58px;
    }

    .service-card__number {
        font-size: 32px;
    }

    .service-card__title {
        margin-top: 15px;
        font-size: 16px;
    }

    .service-card__description {
        font-size: 12px;
        line-height: 1.85;
    }

    .service-contact {
        padding: 61px 0;
    }

    .service-contact__title {
        font-size: 23px;
    }

    .service-contact__button {
        gap: 20px;
        padding-inline: 18px;
        font-size: 12px;
    }
}
/* ========================================
   サービス詳細：任意画像
======================================== */

/*
 * 画像は通常レイアウトから外して、
 * 既存の空きスペースの右中央へ表示する。
 * detail_image が空ならHTML自体が出ないため、
 * この領域も表示されない。
 */
.service-accordion__content {
    position: relative;
}

.service-accordion__detail-media {
    position: absolute;
    top: 50%;
    right: 0;
    width: min(160px, 28%);
    margin: 0;
    transform: translateY(-50%);
}

.service-accordion__detail-image-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 10px;
    cursor: zoom-in;
}

.service-accordion__detail-image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 130px;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
    background: #ffffff;
    border: 1px solid #dce5ee;
    border-radius: 10px;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .service-accordion__detail-image-button:hover
    .service-accordion__detail-image {
        transform: translateY(-2px);
        box-shadow: 0 8px 22px rgb(15 45 75 / 14%);
    }
}


/* ========================================
   サービス詳細：画像拡大
======================================== */

.service-detail-lightbox {
    width: min(96vw, 1400px);
    max-width: none;
    max-height: 94vh;
    margin: auto;
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
}

.service-detail-lightbox::backdrop {
    background: rgb(0 0 0 / 82%);
}

.service-detail-lightbox__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-height: 94vh;
    padding: 48px 18px 18px;
}

.service-detail-lightbox__image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(94vh - 66px);
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
    box-shadow: 0 14px 50px rgb(0 0 0 / 34%);
}

.service-detail-lightbox__close {
    position: absolute;
    top: 0;
    right: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    color: #ffffff;
    background: rgb(255 255 255 / 12%);
    border: 1px solid rgb(255 255 255 / 35%);
    border-radius: 999px;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
    .service-detail-lightbox__close:hover {
        background: rgb(255 255 255 / 22%);
    }
}

@media (max-width: 700px) {
    /*
     * スマートフォンではサービス詳細画像を非表示にする。
     * 本文・対応内容・お問い合わせ導線を優先し、
     * 画像による重なりや横幅圧迫を防ぐ。
     */
    .service-accordion__detail-media {
        display: none;
    }

    .service-detail-lightbox {
        width: 100%;
        max-height: 92vh;
    }

    .service-detail-lightbox__inner {
        max-height: 92vh;
        padding: 50px 12px 12px;
    }

    .service-detail-lightbox__image {
        max-height: calc(92vh - 62px);
    }

    .service-detail-lightbox__close {
        right: 12px;
    }
}