/* /service ページ全体（トップは変更しない） */
body.page-service {
    --page-bg: #fdfdfe;
    --page-accent: #745aad;
    --page-accent-soft: #745aad;
    --page-text: #022254;
    --page-text-body: #242b6a;
    --page-accent-rgb: 116, 90, 173;
    --page-gradient: linear-gradient(135deg, #745aad 0%, #745aad 100%);
    /* 青系PNG → #745aad 寄せ */
    --page-header-icon-filter: hue-rotate(55deg) saturate(1.05) brightness(0.94);
    --page-header-logo-filter: hue-rotate(45deg) saturate(1.05) brightness(0.98);
    /* お問合せボタン背景・枠（青系デフォルトの上書き） */
    --page-cta-contact-gradient: linear-gradient(90deg, #eee6f7 0%, #f2ecf9 22%, #f7f2fb 48%, #fbf9fd 72%, #fdfdfe 100%);
    --page-cta-contact-border: rgba(116, 90, 173, 0.42);

    background-color: var(--page-bg);
}

body.page-service #header.header-transparent {
    background: transparent;
    box-shadow: none;
}

body.page-service main {
    background-color: var(--page-bg);
}

/* ヘッダー：ロゴ・ナビアイコン・文言をサービスページの色合いに */
body.page-service #header .common-logo__img {
    filter: var(--page-header-logo-filter);
}

body.page-service #header .global-nav__icon-img,
body.page-service #header .global-nav__cta-img {
    filter: var(--page-header-icon-filter);
}

body.page-service #header .global-nav__title {
    color: var(--page-text);
}

body.page-service #header .global-nav__text {
    color: var(--page-text-body);
}

body.page-service #header .global-nav__link:hover,
body.page-service #header .global-nav__link:focus-visible {
    background: rgba(var(--page-accent-rgb), 0.06);
}

body.page-service #header .global-nav__link.is-active .global-nav__title,
body.page-service #header .global-nav__link.is-active .global-nav__text {
    color: var(--page-accent);
}

body.page-service #header .global-nav__link.is-active .global-nav__icon-img {
    filter: hue-rotate(48deg) saturate(1.35) brightness(0.92);
}

body.page-service #header .global-nav__vline {
    background-color: rgba(var(--page-accent-rgb), 0.18);
}

body.page-service #header .global-nav__cta--estimate {
    background-image: var(--page-gradient), var(--page-gradient);
    box-shadow: 0 2px 12px rgba(var(--page-accent-rgb), 0.22);
}

body.page-service #header .global-nav__cta--estimate .global-nav__cta-label {
    color: #ffffff;
}

body.page-service #header .global-nav__cta--contact {
    background-color: var(--page-bg);
    background-image: linear-gradient(var(--page-bg), var(--page-bg)), var(--page-gradient);
    box-shadow: 0 2px 12px rgba(var(--page-accent-rgb), 0.1);
}

body.page-service #header .global-nav__cta--contact .global-nav__cta-label {
    color: var(--page-accent);
}

body.page-service #header .global-nav__cta--estimate.is-active,
body.page-service #header .global-nav__cta--contact.is-active {
    box-shadow: 0 4px 16px rgba(var(--page-accent-rgb), 0.24);
}

body.page-service #header #button-smart {
    filter: var(--page-header-icon-filter);
}

/* CTA（見積・問合せ）をサービス基調色に */
body.page-service .page-cta-pair__btn--estimate {
    background: var(--page-gradient) !important;
    box-shadow: 0 6px 14px -5px rgba(var(--page-accent-rgb), 0.26) !important;
}

body.page-service .page-cta-pair__btn--estimate .page-cta-pair__icon {
    box-shadow: 0 2px 8px rgba(var(--page-accent-rgb), 0.12) !important;
}

body.page-service .page-cta-pair__btn--contact {
    background: var(--page-bg, #fdfdfe) !important;
    border-color: var(--page-cta-contact-border) !important;
    box-shadow: 0 2px 12px rgba(var(--page-accent-rgb), 0.1) !important;
}

body.page-service .page-cta-pair__btn--contact .page-cta-pair__icon {
    border-color: var(--page-cta-contact-border) !important;
}

body.page-service .page-cta-pair__icon-img,
body.page-service .page-cta-pair__icon img,
body.page-service .page-cta-pair__icon picture img {
    filter: var(--page-header-icon-filter);
    -webkit-filter: var(--page-header-icon-filter);
}

/* ファーストビュー */
.service-hero {
    --service-hero-bg: var(--page-bg, #fdfdfe);
    --service-hero-purple: var(--page-accent, #745aad);
    --service-hero-purple-soft: var(--page-accent-soft, #745aad);
    --service-hero-navy: var(--page-text, #022254);
    --service-hero-body: var(--page-text-body, #242b6a);
    --service-hero-muted: #5a6482;

    position: relative;
    overflow: hidden;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--service-hero-bg);
}

.service-hero__deco {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 0;
    width: min(58vw, 640px);
    pointer-events: none;
    opacity: 0.95;
}

.service-hero__deco-img {
    display: block;
    width: 100%;
    height: auto;
}

.service-hero__inner.container {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-width: none;
    /* トップ .hero-modern__copy の top と同じ */
    padding: clamp(88px, 11vh, 112px) 0 clamp(56px, 6vh, 80px);
}

.service-hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 44%) minmax(0, 56%);
    grid-template-rows: auto auto;
    grid-template-areas:
        'intro visual'
        'features visual';
    column-gap: clamp(28px, 3.5vw, 56px);
    row-gap: clamp(20px, 2.5vw, 32px);
    align-items: start;
    align-content: start;
    width: 100%;
    margin-top: 60px;
}

/* PC: メイン画像（ロボット）はビューポート高さに関係なく同じ見え方で固定 */
@media (min-width: 901px) {
    body.page-service .service-hero__inner.container {
        position: relative;
    }

    body.page-service .service-hero__layout {
        position: relative;
    }

    body.page-service .service-hero__illustration--pc {
        position: absolute;
        top: clamp(72px, 10vh, 96px);
        right: 0;
        left: auto;
        z-index: 0;
        width: min(56%, 56vw);
        max-width: none;
        margin: 0;
        pointer-events: none;
    }
}

/* PC・縦幅 1700px 未満: カードは右カラム（下揃え） */
@media (min-width: 901px) and (max-height: 1699px) {
    body.page-service .service-hero.page-section {
        height: auto;
        min-height: 100svh;
        max-height: none;
        overflow: visible;
    }

    body.page-service .service-hero__inner.container {
        position: relative;
        display: block;
        flex: none;
    }

    body.page-service .service-hero__layout {
        position: relative;
        z-index: 1;
        flex: none;
        grid-template-columns: minmax(0, 44%) minmax(0, 56%);
        grid-template-areas:
            'intro visual'
            'features visual';
        column-gap: clamp(28px, 3.5vw, 56px);
        align-items: stretch;
        min-height: calc(
            100svh - clamp(88px, 11vh, 112px) - clamp(56px, 6vh, 80px)
        );
    }

    body.page-service .service-hero__cards-bar {
        position: absolute;
        top: auto;
        right: 0;
        bottom: clamp(56px, 6vh, 80px);
        z-index: 2;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        width: min(56%, 56vw);
        max-width: none;
        margin-top: 0;
        padding: 0;
        background: transparent;
        border-top: none;
        pointer-events: none;
    }

    body.page-service .service-hero__cards-bar .service-hero-grid {
        margin-top: 0;
        pointer-events: auto;
    }
}

/* PC・縦幅 1700px 以上: カードをファーストビュー下端へ（トップ hero-menu 同様） */
@media (min-width: 901px) and (min-height: 1700px) {
    body.page-service .service-hero.page-section {
        height: 100svh;
        max-height: 100svh;
        overflow: hidden;
    }

    body.page-service .service-hero__inner.container {
        position: relative;
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        min-height: 0;
        justify-content: flex-start;
    }

    body.page-service .service-hero__layout {
        position: relative;
        z-index: 1;
        flex: 1 1 auto;
        grid-template-columns: minmax(0, 46%) 1fr;
        grid-template-areas:
            'intro intro'
            'features features';
        column-gap: 0;
        min-height: 0;
        align-content: start;
    }

    body.page-service .service-hero__cards-bar {
        position: relative;
        top: auto;
        right: auto;
        z-index: 2;
        flex: 0 0 auto;
        width: 100%;
        margin-top: auto;
        padding: clamp(6px, 1vh, 10px) 0 clamp(8px, 1.2vh, 12px);
        background: rgba(255, 255, 255, 0.97);
        border-top: 1px solid #edf2f7;
        pointer-events: auto;
    }

    body.page-service .service-hero__cards-bar .service-hero-grid {
        margin-top: 0;
    }
}

.service-hero__intro {
    grid-area: intro;
    max-width: min(560px, 100%);
    margin-top: 0;
}

.service-hero__features-col {
    grid-area: features;
    max-width: min(560px, 100%);
}

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

.service-hero__ctas {
    margin-top: clamp(20px, 2.5vw, 28px);
    width: 100%;
}

body.page-service .page-cta-pair--service-hero {
    width: 100%;
}

.service-page-cta {
    padding: clamp(40px, 5vw, 64px) 0 clamp(48px, 6vw, 72px);
    background: #f9f9f9;
}

.service-page-cta__inner {
    display: flex;
    justify-content: center;
}

.service-page-cta .page-cta-pair--flow {
    margin: 0 auto;
    width: min(100%, 920px);
}

.service-hero__illustration--pc {
    line-height: 0;
}

.service-hero__illustration--pc .service-hero__illustration-img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: none;
    margin: 0;
    object-fit: contain;
    object-position: right top;
    vertical-align: top;
}

.service-hero__illustration-img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    vertical-align: top;
}

.service-hero-grid {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(14px, 1.6vw, 20px) clamp(12px, 1.4vw, 18px);
    width: 100%;
    /* % は幅基準。イラスト下半分へ重ねる（トップ並みの全体位置を維持） */
    margin-top: clamp(-150px, -11vw, -100px);
}

.service-hero__eyebrow {
    margin: 0 0 12px;
    font-size: clamp(0.9375rem, 1.25vw, 1.0625rem);
    font-weight: 500;
    line-height: 1.7;
    color: var(--service-hero-purple-soft);
    letter-spacing: 0.04em;
}

.service-hero__headline {
    margin: 0;
    font-size: clamp(2.75rem, 5.8vw, 4.25rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: 0.02em;
    color: var(--service-hero-navy);
}

.service-hero__subheadline {
    margin: clamp(12px, 1.5vw, 18px) 0 0;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(1rem, 1.65vw, 1.25rem);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.05em;
    color: var(--service-hero-purple);
}

.service-hero__title {
    margin: 0;
    font-size: clamp(2.75rem, 5.8vw, 4.25rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: 0.02em;
    color: var(--service-hero-navy);
}

.service-hero__subtitle {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-top: clamp(12px, 1.5vw, 18px);
}

.service-hero__subtitle-text {
    font-size: clamp(1.5rem, 2.8vw, 2.125rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--service-hero-purple);
    letter-spacing: 0.02em;
}

.service-hero__rule {
    display: block;
    width: clamp(48px, 5vw, 64px);
    height: 5px;
    border-radius: 999px;
    background: var(--service-hero-purple);
    opacity: 0.85;
}

.service-hero__dots {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.service-hero__dots span {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--service-hero-purple);
    opacity: 0.35;
}

.service-hero__dots span:first-child {
    opacity: 0.7;
}

.service-hero__dots span:nth-child(2) {
    opacity: 0.5;
}

.service-hero__lead {
    margin: clamp(20px, 2.5vw, 28px) 0 0;
    font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
    font-weight: 400;
    line-height: 2;
    color: var(--service-hero-body);
    letter-spacing: 0.02em;
}

.service-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: clamp(10px, 1.5vw, 14px);
    margin-top: clamp(24px, 3vw, 32px);
}

.service-hero__cta {
    display: inline-flex;
    flex: 1 1 calc(50% - 8px);
    align-items: center;
    gap: clamp(8px, 1.2vw, 12px);
    min-width: min(100%, 220px);
    min-height: 56px;
    padding: 12px clamp(16px, 2vw, 22px);
    border: 2px solid transparent;
    border-radius: 999px;
    box-sizing: border-box;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(0.875rem, 1.05vw, 1rem);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-hero__cta:hover,
.service-hero__cta:focus-visible {
    transform: translateY(-1px);
}

.service-hero__cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}

.service-hero__cta-icon-img {
    display: block;
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.service-hero__cta-label {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.35;
    text-align: left;
}

.service-hero__cta-arrow {
    flex-shrink: 0;
    font-size: 1.25rem;
    line-height: 1;
}

.service-hero__cta--estimate {
    background-image: var(--page-gradient, linear-gradient(135deg, #745aad 0%, #745aad 100%));
    box-shadow: 0 4px 16px rgba(var(--page-accent-rgb, 116, 90, 173), 0.24);
    color: #ffffff;
}

.service-hero__cta--estimate .service-hero__cta-label,
.service-hero__cta--estimate .service-hero__cta-arrow {
    color: #ffffff;
}

.service-hero__cta--estimate .service-hero__cta-icon-img {
    filter: brightness(0) invert(1);
}

.service-hero__cta--estimate:hover,
.service-hero__cta--estimate:focus-visible {
    box-shadow: 0 8px 22px rgba(var(--page-accent-rgb, 116, 90, 173), 0.3);
    color: #ffffff;
}

.service-hero__cta--contact {
    background-color: #ffffff;
    border-color: var(--page-accent, #745aad);
    box-shadow: 0 2px 12px rgba(var(--page-accent-rgb, 116, 90, 173), 0.12);
    color: var(--page-accent, #745aad);
}

.service-hero__cta--contact .service-hero__cta-label,
.service-hero__cta--contact .service-hero__cta-arrow {
    color: var(--page-accent, #745aad);
}

.service-hero__cta--contact:hover,
.service-hero__cta--contact:focus-visible {
    box-shadow: 0 6px 18px rgba(var(--page-accent-rgb, 116, 90, 173), 0.18);
}

.service-hero__feature {
    display: flex;
    align-items: flex-start;
    gap: clamp(14px, 1.5vw, 18px);
    margin: 0 0 clamp(20px, 2.2vw, 26px);
}

.service-hero__feature:last-child {
    margin-bottom: 0;
}

.service-hero__feature-icon {
    flex-shrink: 0;
    display: block;
    width: clamp(56px, 5.5vw, 66px);
    height: clamp(56px, 5.5vw, 66px);
    line-height: 0;
}

.service-hero__feature-body {
    flex: 1 1 auto;
    min-width: 0;
}

.service-hero__feature-icon-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-hero__feature:nth-child(3) .service-hero__feature-icon-img {
    transform: scale(0.8);
    transform-origin: center center;
}

.service-hero__feature-title {
    margin: 0 0 6px;
    font-size: clamp(1rem, 1.15vw, 1.125rem);
    font-weight: 700;
    line-height: 1.5;
    color: var(--service-hero-purple);
}

.service-hero__feature-text {
    margin: 0;
    font-size: clamp(0.8125rem, 0.95vw, 0.9375rem);
    font-weight: 400;
    line-height: 1.75;
    color: var(--service-hero-muted);
}

.service-hero-grid__trigger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: clamp(16px, 1.8vw, 20px) clamp(8px, 1vw, 12px) clamp(14px, 1.6vw, 18px);
    border: none;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 2px 14px rgba(26, 32, 44, 0.07);
    cursor: pointer;
    font: inherit;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-hero-grid__trigger:hover,
.service-hero-grid__trigger:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--page-accent-rgb), 0.14);
}

.service-hero-grid__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(48px, 4.5vw, 56px);
    height: clamp(48px, 4.5vw, 56px);
    border-radius: 50%;
    background: rgba(var(--page-accent-rgb), 0.07);
}

.service-hero-grid__icon {
    display: block;
    width: clamp(34px, 3.2vw, 40px);
    height: clamp(34px, 3.2vw, 40px);
    object-fit: contain;
}

.service-hero-grid__label {
    display: block;
    margin-top: clamp(10px, 1.2vw, 14px);
    font-size: clamp(0.6875rem, 0.85vw, 0.8125rem);
    font-weight: 700;
    line-height: 1.35;
    color: var(--service-hero-navy);
}

@media (max-width: 1100px) {
    .service-hero {
        min-height: 0;
    }

    body.page-service.page-section-scroll .service-hero.page-section {
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .service-hero__inner.container {
        justify-content: flex-start;
        padding-top: clamp(80px, 10vh, 96px);
    }

    .service-hero__layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            'intro'
            'features'
            'visual';
        margin-top: clamp(40px, 5vh, 60px);
    }

    .service-hero__intro,
    .service-hero__features-col {
        max-width: none;
    }

    .service-hero__illustration--pc {
        grid-area: visual;
    }
}

@media (max-width: 700px) {
    .service-hero__inner.container {
        padding-top: 76px;
    }

    .service-hero__deco {
        width: 70vw;
        opacity: 0.55;
    }
}

/* SP（〜900px）: カードのみ2件横並びスライド。キャラは背景、本文は省略しない */
@media (max-width: 900px) {
    .service-hero {
        position: relative;
        min-height: 0;
        overflow: hidden;
    }

    .service-hero__inner.container {
        position: relative;
        z-index: 1;
        padding-bottom: clamp(40px, 6vh, 56px);
    }

    .service-hero__layout {
        margin-top: clamp(24px, 4vh, 40px);
    }

    .service-hero__features {
        display: block;
    }

    .service-hero__feature {
        margin-bottom: 18px;
    }

    body.page-service .service-hero__headline {
        font-size: clamp(calc(2.75rem - 2px), calc(5.8vw - 2px), calc(4.25rem - 2px));
    }

    /* 安心・安全なシステム */
    body.page-service .service-hero__feature:nth-child(3) {
        display: none;
    }

    /* キャラクター（ロボット）をファーストビュー背景に — トップ SP ヒーローと同趣旨 */
    .service-hero__illustration--sp-bg {
        position: absolute;
        top: clamp(64px, 12vw, 88px);
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 0;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        width: 100%;
        margin: 0;
        padding: 0;
        line-height: 0;
        pointer-events: none;
    }

    .service-hero__illustration--sp-bg .service-hero__illustration-img {
        display: block;
        width: 100vw;
        max-width: none;
        height: auto;
        margin: 0;
        object-fit: contain;
        object-position: center bottom;
    }

    body.page-service.page-section-scroll .service-hero.page-section {
        min-height: calc(100svh - var(--page-section-scroll-padding, 72px));
        height: auto;
        max-height: none;
    }

    .service-hero__cards-bar {
        display: none;
    }

    .service-hero-slider.visible-sp {
        display: block;
    }

    .service-hero__lead {
        margin-top: 16px;
        line-height: 1.85;
        display: block;
        overflow: visible;
        -webkit-line-clamp: unset;
    }

    .service-hero__ctas {
        flex-direction: column;
        margin-top: 20px;
    }

    .service-hero__cta {
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
    }

    .service-hero-slider {
        position: relative;
        width: 100%;
        margin: clamp(16px, 3vh, 24px) 0 0;
        padding: 0;
        box-sizing: border-box;
    }

    .service-hero-slider__viewport {
        overflow: hidden;
        width: 100%;
    }

    .service-hero-slider__track {
        display: flex;
        transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform;
    }

    .service-hero-slider__slide {
        flex: 0 0 100%;
        display: flex;
        gap: 12px;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .service-hero-slider__cell {
        flex: 1 1 0;
        min-width: 0;
    }

    .service-hero-slider__cell:only-child {
        flex: 0 0 calc(50% - 6px);
        max-width: calc(50% - 6px);
    }

    body.page-service .service-hero-slider .service-hero-grid__trigger {
        min-height: 132px;
        padding: 14px 10px 12px;
        background: rgba(255, 255, 255, 0.72);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.88);
        box-shadow: 0 4px 24px rgba(var(--page-accent-rgb), 0.1);
    }

    body.page-service .service-hero-slider .service-hero-grid__trigger:hover,
    body.page-service .service-hero-slider .service-hero-grid__trigger:focus-visible {
        background: rgba(255, 255, 255, 0.85);
        box-shadow: 0 6px 28px rgba(var(--page-accent-rgb), 0.14);
    }

    body.page-service .service-hero-slider .service-hero-grid__icon-wrap {
        background: rgba(255, 255, 255, 0.92);
        border: 1px solid rgba(255, 255, 255, 0.75);
    }

    body.page-service .service-hero-slider .service-hero-grid__label {
        font-size: 0.75rem;
        color: var(--service-hero-navy);
        opacity: 1;
    }

    .service-hero-slider__dots {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-top: 16px;
    }

    body.page-service .service-hero-slider .horizontal-slider__dot {
        background: rgba(var(--page-accent-rgb), 0.28);
    }

    body.page-service .service-hero-slider .horizontal-slider__dot.is-active {
        background: var(--page-accent);
    }
}

/* Web Service 以降のセクション */
.service-section {
    position: relative;
    padding: clamp(56px, 7vw, 88px) 0;
    background-color: var(--page-bg, #fdfdfe);
}

.service-section__container {
    max-width: none;
}

.service-section__grid {
    display: grid;
    grid-template-columns: minmax(0, 46%) minmax(0, 54%);
    grid-template-areas:
        'content visual'
        'panel panel';
    column-gap: clamp(24px, 3vw, 48px);
    row-gap: clamp(28px, 3.5vw, 40px);
    align-items: center;
}

.service-section__content {
    grid-area: content;
    align-self: center;
}

.service-section__header {
    margin: 0 0 clamp(20px, 2.5vw, 28px);
}

.service-section__label {
    margin: 0 0 8px;
    font-size: clamp(0.875rem, 1.1vw, 1rem);
    font-weight: 500;
    line-height: 1.6;
    color: var(--page-accent, #745aad);
    letter-spacing: 0.02em;
}

.service-section__title {
    margin: 0;
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.01em;
    color: var(--page-text, #022254);
}

.service-section__body p {
    margin: 0 0 1.25em;
    font-size: clamp(0.875rem, 1.05vw, 0.9375rem);
    font-weight: 400;
    line-height: 2;
    color: var(--page-text-body, #242b6a);
}

.service-section__body p:last-child {
    margin-bottom: 0;
}

.service-section__body strong {
    font-weight: 700;
    color: var(--page-accent, #745aad);
}

.service-section__text--lead {
    font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
    font-weight: 500;
    line-height: 1.95;
    color: var(--page-text, #022254);
}

.service-section__text--accent {
    margin-top: clamp(20px, 2.5vw, 28px);
    padding: clamp(14px, 1.8vw, 18px) clamp(16px, 2vw, 20px);
    border-left: 4px solid var(--page-accent, #745aad);
    border-radius: 0 8px 8px 0;
    background: rgba(var(--page-accent-rgb), 0.06);
    font-size: clamp(0.9375rem, 1.05vw, 1rem);
    font-weight: 500;
    line-height: 1.85;
    color: var(--page-text, #022254);
}

.service-section__text--accent strong {
    color: var(--page-accent, #745aad);
}

/* 見出し＋アイコン付き本文ブロック（Web 等・モック準拠） */
.service-section--web{
    background: #ffffff;
}
.service-section--web .service-section__body {
    --service-block-title-prefix: #1a1b4b;
    --service-block-title-accent: #6a5cff;
}

@media (min-width: 901px) {
    .service-section--web .service-section__body > .service-section__block:first-child {
        margin-top: 60px;
    }
}

.service-section__block {
    margin: 0 0 clamp(28px, 3.5vw, 36px);
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
}

.service-section__block:last-child {
    margin-bottom: 0;
}

.service-section__block-row {
    display: flex;
    align-items: flex-start;
    gap: clamp(12px, 1.8vw, 18px);
}

.service-section__block-icon-wrap {
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    line-height: 0;
}

.service-section__block-icon-img {
    display: block;
    width: 96px;
    height: 96px;
    object-fit: contain;
}

.service-section__block-content {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}

.service-section__block-heading {
    margin: 0 0 10px;
}

.service-section__block-title {
    display: block;
    font-size: clamp(1.0625rem, 1.35vw, 1.375rem);
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

.service-section__block-title-prefix {
    color: var(--service-block-title-prefix);
}

.service-section__block-title-accent {
    color: var(--service-block-title-accent);
}

.service-section__block-title-line {
    display: block;
    width: 79px;
    height: 14px;
    margin-top: 8px;
    background: url('../images/service/sections/web-blocks/title-line.png') no-repeat left center;
    background-size: 100% 100%;
}

.service-section__block-text {
    margin: 0;
    font-size: clamp(0.875rem, 1.05vw, 0.9375rem);
    font-weight: 400;
    line-height: 1.95;
    color: var(--page-text-body, #242b6a);
}

@media (max-width: 900px) {
    .service-section__block-icon-wrap {
        width: 84px;
        height: 84px;
    }

    .service-section__block-icon-img {
        width: 84px;
        height: 84px;
    }

    .service-section__block-title {
        font-size: 1rem;
    }

    .service-section__block-title-line {
        width: 68px;
        height: 12px;
        margin-top: 6px;
    }

    .service-section__block-text {
        font-size: 0.8125rem;
        line-height: 1.85;
    }
}

/* Web：継続支援（PC・SP 共通 HTML） */
.service-continuation {
    display: none;
    margin: 0;
}

.service-continuation__copy {
    text-align: center;
}

/* .service-section__body p より詳細度を上げる（PCは body 内に入るため） */
.service-continuation__intro,
.service-section__body .service-continuation__intro {
    margin: 0;
    font-size: calc(0.8125rem + 2px);
    font-weight: 400;
    line-height: 1.6;
    color: var(--page-text, #022254);
}

.service-continuation__title {
    margin: 0;
    font-weight: 800;
    line-height: 1.45;
    color: var(--page-text);
}

.service-continuation__title-line--accent {
    color: #6a5cff;
}

.service-continuation__features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-continuation__feature {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 10px;
    text-align: center;
}

.service-continuation__feature:not(:first-child)::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 0;
    width: 1px;
    background: rgba(var(--page-accent-rgb), 0.2);
}

.service-continuation__feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    line-height: 0;
}

.service-continuation__feature-icon-img {
    display: block;
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.service-continuation__feature-icon .material-symbols-outlined {
    font-size: 26px;
    line-height: 1;
    color: var(--page-accent);
}

.service-continuation__feature-title,
.service-section__body .service-continuation__feature-title {
    margin: 10px 0 4px;
    font-size: 0.6875rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--page-text);
}

.service-continuation__feature-text,
.service-section__body .service-continuation__feature-text {
    margin: 0;
    max-width: 10.5em;
    font-size: 0.625rem;
    font-weight: 400;
    line-height: 1.65;
    color: var(--page-text-body);
}

.service-continuation__feature-text-line {
    display: block;
}

.service-continuation--pc .service-continuation__top-space {
    display: none;
}

.service-continuation--pc.visible-pc,
.service-continuation--sp.visible-sp {
    border: 1px solid #e8ecf2;
    border-radius: 16px;
    background: #ffffff;
    padding: clamp(24px, 3vw, 36px) clamp(18px, 2.2vw, 24px);
    box-sizing: border-box;
}

/* PC：本文末 */
@media (min-width: 901px) {
    .service-continuation--pc.visible-pc {
        display: block;
        margin: clamp(28px, 3vw, 40px) 0 0;
    }

    .service-continuation--pc .service-continuation__intro,
    .service-section__body .service-continuation--pc .service-continuation__intro {
        margin: 0;
        font-size: calc(0.9375rem + 3px);
        font-weight: 400;
    }

    .service-continuation--pc .service-continuation__title {
        font-size: clamp(1.375rem, 1.6vw, 1.625rem);
    }

    .service-continuation--pc .service-continuation__title-line {
        display: inline;
    }

    .service-continuation--pc .service-continuation__features {
        margin-top: clamp(24px, 2.5vw, 32px);
    }

    .service-continuation--pc .service-continuation__feature-icon,
    .service-continuation--pc .service-continuation__feature-icon-img {
        width: 64px;
        height: 64px;
    }

    .service-continuation--pc .service-continuation__feature-icon .material-symbols-outlined {
        font-size: 30px;
    }

    .service-continuation--pc .service-continuation__feature-title,
    .service-section__body .service-continuation--pc .service-continuation__feature-title {
        margin-top: 10px;
        font-size: calc(0.875rem + 2px);
    }

    .service-continuation--pc .service-continuation__feature-text,
    .service-section__body .service-continuation--pc .service-continuation__feature-text {
        max-width: 12em;
        font-size: 0.8125rem;
        line-height: 1.7;
        white-space: normal;
    }
}

/* SP：AI Solutions */
@media (max-width: 900px) {
    .service-section--ai {
        position: relative;
        overflow: hidden;
        padding: 48px 0 clamp(200px, 52vw, 300px);
    }

    .service-section--ai .service-section__container {
        z-index: 1;
    }

    .service-section--ai .service-section__title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .service-section--ai .service-section__grid {
        grid-template-columns: 1fr;
        grid-template-areas: 'content';
        row-gap: 0;
        align-items: start;
    }

    .service-section--ai .service-section__content {
        position: relative;
        z-index: 1;
    }

    .service-section--ai .service-section__visual {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 0;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        width: 100%;
        margin: 0;
        padding: 0;
        line-height: 0;
        pointer-events: none;
        background-color: transparent;
    }

    .service-section--ai .service-section__illustration.visible-pc {
        display: none;
    }

    .service-section--ai .service-section__illustration--sp {
        display: block;
        width: min(72vw, 320px);
        max-width: none;
        height: auto;
        margin: 0 auto;
        object-fit: contain;
        object-position: center bottom;
        background-color: transparent;
        filter: none;
        -webkit-filter: none;
        opacity: 1;
        mix-blend-mode: normal;
    }

    .service-section--ai .service-section__panel {
        display: none;
    }

    .service-section--ai .service-section__body {
        margin: 30px 0;
    }

    .service-section--ai .service-section__body p {
        margin: 0 0 1.1em;
        font-size: 0.8125rem;
        line-height: 1.85;
        letter-spacing: 0.02em;
    }

    .service-section--ai .service-section__body p:last-child {
        margin-bottom: 0;
    }

    .service-section--ai .service-section__content .service-ai-cards {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px;
        margin-top: 20px;
        width: 100%;
        max-width: 100%;
        padding: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        overflow: visible;
        overflow-x: hidden;
    }

    .service-section--ai .service-section__header {
        margin: 20px 0;
    }

    .service-section--ai .service-ai-cards--feature .service-ai-cards__item--feature {
        padding: 40px 8px;
        border-radius: 20px;
        box-shadow: 0 4px 18px rgba(100, 120, 180, 0.1);
    }

    .service-section--ai .service-ai-cards--feature .service-ai-cards__icon-img {
        width: 90px;
    }

    .service-section--ai .service-ai-cards--feature .service-ai-cards__label {
        margin: 20px 0;
        font-size: clamp(0.8125rem, 3.6vw, 0.9375rem);
        line-height: 1.5;
    }

    .service-section--ai .service-ai-cards--feature .service-ai-cards__accent {
        height: 4px;
        min-width: 38px;
        max-width: 46px;
        margin-top: 0;
    }
}

/* SP：継続支援・タイトル直下 */
@media (max-width: 900px) {
    .service-continuation--sp.visible-sp {
        display: block;
    }

    .service-section--web .service-continuation--sp {
        width: 100%;
        margin: 0;
    }

    .service-section--web .service-continuation--sp.visible-sp {
        display: flow-root;
        padding: 0 clamp(18px, 2.2vw, 24px) clamp(24px, 3vw, 36px);
        padding-top: 0;
    }

    .service-section--web .service-continuation--sp .service-continuation__top-space {
        display: block;
        width: 100%;
        height: 100px;
        margin: 0;
        padding: 0;
    }

    .service-section--web .service-continuation--sp .service-continuation__copy {
        padding-top: clamp(24px, 3vw, 36px);
    }

    .service-section--web .service-continuation--sp .service-continuation__intro {
        margin-top: 0;
    }

    .service-section--web .service-section__body > .service-section__block:first-child {
        margin-top: 100px;
    }

    .service-continuation--sp .service-continuation__title {
        font-size: clamp(1.25rem, 4.8vw, 1.5rem);
    }

    .service-continuation--sp .service-continuation__title-line {
        display: block;
    }

    .service-continuation--sp .service-continuation__features {
        margin-top: clamp(20px, 4vw, 28px);
    }

    .service-continuation--sp .service-continuation__feature-icon,
    .service-continuation--sp .service-continuation__feature-icon-img {
        width: 48px;
        height: 48px;
    }

    .service-continuation--sp .service-continuation__feature-title {
        margin-top: 10px;
        font-size: 0.6875rem;
    }

    .service-continuation--sp .service-continuation__feature-text {
        max-width: 9.5em;
        font-size: 0.625rem;
        line-height: 1.65;
    }
}

/* SP：Smartphone App */
@media (max-width: 900px) {
    .service-section--app {
        overflow: hidden;
        padding-bottom: clamp(200px, 55vw, 320px);
        background-position: center bottom;
        background-size: 100% auto;
    }

    .service-section--app .service-section__container {
        z-index: 1;
    }

    .service-section--app .service-section__grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            'content'
            'panel';
        row-gap: 28px;
    }

    .service-section--app .service-section__content,
    .service-section--app .service-section__panel {
        position: relative;
        z-index: 1;
    }

    .service-section--app .service-section__label--badge {
        margin-bottom: 12px;
    }

    .service-section--app .service-section__subtitle {
        font-size: 1.0625rem;
        line-height: 1.65;
        margin-bottom: 20px;
    }

    .service-section--app .service-section__body p {
        font-size: calc(0.8125rem + 2px);
        line-height: 2;
        margin-bottom: 1.25rem;
    }

    .service-section--app .service-section__cta {
        margin-top: 22px;
        padding: 15px 18px 15px 14px;
        border-radius: 10px;
    }

    .service-section--app .service-section__cta-label {
        font-size: calc(0.8125rem + 2px);
        white-space: normal;
    }

    .service-section--app .service-section__cta-arrow {
        font-size: 1.625rem;
    }

    .service-section--app .service-section__visual {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 0;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        width: 100%;
        margin: 0;
        padding: 0;
        line-height: 0;
        pointer-events: none;
    }

    .service-section--app .service-section__illustration {
        display: block;
        width: min(92vw, 400px);
        max-width: none;
        height: auto;
        margin: 0 auto;
        opacity: 0.2;
        object-fit: contain;
        object-position: center bottom;
    }

    .service-app-tech-bar {
        flex-direction: column;
        flex-wrap: nowrap;
        border-radius: 14px;
    }

    .service-app-tech-bar__item {
        flex: none;
        width: 100%;
        min-width: 0;
        justify-content: flex-start;
        padding: 20px 18px;
    }

    .service-app-tech-bar__item::before {
        top: 0;
        right: 0;
        bottom: auto;
        left: 0;
        width: auto;
        height: 1px;
    }

    .service-app-tech-bar__item:first-child::before {
        display: none;
    }

    .service-app-tech-bar__item:nth-child(3n + 1)::before,
    .service-app-tech-bar__item:nth-child(n + 2)::before {
        display: block;
    }
}

.service-section__visual {
    grid-area: visual;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-section__illustration {
    display: block;
    width: min(100%, 530px);
    height: auto;
}

.service-section--web .service-section__grid {
    grid-template-columns: minmax(0, 46%) minmax(0, 54%);
    grid-template-areas: 'content visual';
}

.service-section--web .service-section__panel {
    display: none;
}

.service-section--web .service-section__visual {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: clamp(20px, 2.5vw, 32px);
    justify-content: center;
}

.service-section--web .service-section__illustration {
    width: min(100%, 795px);
    max-width: 100%;
    max-height: none;
    object-fit: contain;
    object-position: center center;
    margin-inline: auto;
}

.service-section--web .service-tags-wrap {
    width: 100%;
    max-width: none;
    margin: 0;
}

/* PC：Web 技術一覧 — 右カラム内で左カラム下端と下揃え */
@media (min-width: 901px) {
    .service-section--web .service-section__grid {
        align-items: stretch;
    }

    .service-section--web .service-section__content {
        align-self: stretch;
    }

    .service-section--web .service-section__visual {
        display: flex;
        flex-direction: column;
        align-self: stretch;
        justify-content: flex-start;
        align-items: stretch;
        min-height: 100%;
        height: 100%;
        gap: clamp(20px, 2.5vw, 32px);
    }

    .service-section--web .service-section__illustration {
        flex: 1 1 0;
        min-height: 0;
        align-self: center;
        width: min(100%, 795px);
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        object-position: center center;
        margin-inline: auto;
    }

    .service-section--web .service-tags-wrap {
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
        margin-top: 0;
        margin-bottom: 0;
    }

    .service-section--web .service-tags__heading {
        text-align: center;
    }

    .service-section--web .service-tags {
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
    }
}

.service-section__panel {
    grid-area: panel;
    width: 100%;
}

/* Web：技術タグ */
.service-tags-wrap {
    width: 100%;
    max-width: min(760px, 100%);
    margin: 0 auto;
    padding: clamp(20px, 2.5vw, 28px) clamp(16px, 2vw, 24px);
    border: 1px solid #e8ecf2;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 4px 24px rgba(26, 32, 44, 0.06);
    box-sizing: border-box;
}

.service-tags__heading {
    margin: 0 0 clamp(14px, 1.8vw, 18px);
    font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    color: var(--page-accent, #745aad);
    letter-spacing: 0.04em;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 10px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    box-sizing: border-box;
}

.service-tags__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border: 1px solid rgba(var(--page-accent-rgb), 0.35);
    border-radius: 6px;
    background: #ffffff;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--page-accent, #745aad);
    white-space: nowrap;
}

/* AI：カード列（共通） */
.service-ai-cards {
    display: flex;
    flex-wrap: nowrap;
    gap: clamp(8px, 1vw, 14px);
    justify-content: space-between;
    padding: clamp(12px, 1.5vw, 16px);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 24px rgba(26, 32, 44, 0.06);
    overflow-x: auto;
}

.service-ai-cards__item {
    flex: 1 1 0;
    min-width: 100px;
}

.service-ai-cards__img {
    display: block;
    width: 100%;
    height: auto;
}

/* AI Solutions セクション（モック準拠） */
.service-section--ai {
    background-color: #ffffff;
    padding: clamp(64px, 8vw, 100px) 0 clamp(72px, 9vw, 112px);
}

.service-section--ai .service-section__title {
    background: linear-gradient(90deg, #022254 0%, #3d52b8 42%, #7c5cff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.service-section--ai .service-section__label {
    color: #9b8fd9;
    font-weight: 700;
}

@media (min-width: 901px) {
    .service-section--ai .service-section__grid {
        grid-template-columns: minmax(0, 50%) minmax(0, 50%);
        grid-template-areas: 'content visual';
        row-gap: 0;
        column-gap: clamp(20px, 2.5vw, 40px);
        align-items: center;
        overflow: visible;
    }

    .service-section--ai .service-section__panel {
        display: none;
    }

    .service-section--ai .service-section__header {
        margin: 20px 0;
    }

    .service-section--ai .service-section__title {
        font-size: clamp(2.5rem, 4.2vw, 3.25rem);
        line-height: 1.08;
    }

    .service-section--ai .service-section__body {
        margin: 30px 0;
    }

    .service-section--ai .service-section__body p {
        font-size: clamp(calc(0.8125rem + 2px), calc(0.95vw + 2px), calc(0.9375rem + 2px));
        line-height: 1.85;
        letter-spacing: 0.02em;
        color: var(--page-text-body, #242b6a);
    }

    .service-section--ai .service-section__body p:last-child {
        margin-bottom: 0;
    }

    .service-section--ai .service-section__visual {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        overflow: visible;
        min-width: 0;
        align-self: center;
        padding-right: 3%;
        box-sizing: border-box;
        background-color: #ffffff;
    }

    .service-section--ai .service-section__content {
        position: relative;
        z-index: 1;
        padding-left: 3%;
        box-sizing: border-box;
    }

    .service-section--ai .service-section__illustration--sp {
        display: none;
    }

    .service-section--ai .service-section__illustration.visible-pc {
        display: block;
        flex: 0 0 auto;
        width: 135%;
        max-width: none;
        height: auto;
        margin: 0;
        object-fit: contain;
        object-position: right center;
        background-color: #ffffff;
        filter: none;
        -webkit-filter: none;
        opacity: 1;
        mix-blend-mode: normal;
    }

    .service-section--ai .service-section__content .service-ai-cards {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 40px;
        width: 100%;
        max-width: none;
        margin: clamp(24px, 2.5vw, 32px) 0 0;
        padding: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        overflow: visible;
    }

}

/* AI Solutions：機能カード（モック準拠・共通） */
.service-ai-cards--feature .service-ai-cards__item--feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    padding: 40px 10px;
    border: none;
    border-radius: clamp(18px, 2vw, 24px);
    background: #ffffff;
    box-shadow: 0 4px 24px rgba(100, 120, 180, 0.12);
    box-sizing: border-box;
}

.service-ai-cards--feature .service-ai-cards__icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
}

.service-ai-cards--feature .service-ai-cards__icon-img {
    display: block;
    width: 99px;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.service-ai-cards--feature .service-ai-cards__label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 20px 0;
    font-size: clamp(0.8125rem, 2.6vw, 0.9375rem);
    font-weight: 800;
    line-height: 1.5;
    text-align: center;
    color: #001540;
    letter-spacing: 0.02em;
}

.service-ai-cards--feature .service-ai-cards__label span {
    display: block;
}

.service-ai-cards__accent {
    display: block;
    flex-shrink: 0;
    width: 38%;
    min-width: 44px;
    max-width: 52px;
    height: 5px;
    margin: 0 auto;
    border-radius: 999px;
    background: linear-gradient(90deg, #6a5cff 0%, #9b84ff 52%, #c4b4ff 100%);
}

@media (min-width: 901px) {
    .service-section--ai .service-ai-cards--feature .service-ai-cards__item--feature {
        padding: 40px 10px;
        border-radius: clamp(20px, 1.8vw, 26px);
        box-shadow: 0 6px 28px rgba(100, 120, 180, 0.11);
    }

    .service-section--ai .service-ai-cards--feature .service-ai-cards__icon-img {
        width: 108px;
    }

    .service-section--ai .service-ai-cards--feature .service-ai-cards__label {
        margin: 20px 0;
        font-size: clamp(0.875rem, 1vw, 1rem);
        line-height: 1.48;
    }
}

/* カード：画像のみ（App プラットフォーム） */
.service-ai-cards__item--graphic {
    justify-content: center;
    padding: clamp(14px, 1.6vw, 18px) clamp(10px, 1.2vw, 14px);
}

.service-ai-cards__graphic {
    display: block;
    width: 100%;
    max-width: 132px;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

/* Smartphone App セクション（モック準拠） */
.service-section--app {
    position: relative;
    overflow: hidden;
    padding: clamp(64px, 8vw, 100px) 0 clamp(80px, 10vw, 120px);
    background-color: #ffffff;
    background-image: var(--service-section-bg);
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% auto;
}

.service-section--app::after {
    display: none;
}

.service-section--app .service-section__grid {
    grid-template-columns: minmax(0, 44%) minmax(0, 56%);
    grid-template-areas:
        'content visual'
        'panel panel';
    row-gap: clamp(40px, 5vw, 56px);
    column-gap: clamp(20px, 2.5vw, 40px);
    align-items: start;
}

.service-section--app .service-section__header {
    margin-bottom: 0;
}

.service-section--app .service-section__label--badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 clamp(14px, 1.8vw, 18px);
    padding: 8px 16px;
    border: 1px solid rgba(116, 90, 173, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: #745aad;
    font-size: clamp(0.8125rem, 0.95vw, 0.9375rem);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.02em;
}

.service-section--app .service-section__label-icon {
    font-size: 1.125rem;
    line-height: 1;
    color: #8b6fd4;
}

.service-section--app .service-section__title {
    font-size: clamp(2.25rem, 4.2vw, 3.25rem);
    line-height: 1.08;
    color: var(--page-text, #022254);
}

.service-section--app .service-section__subtitle {
    margin: clamp(10px, 1.2vw, 14px) 0 clamp(18px, 2.2vw, 24px);
    font-size: clamp(1.0625rem, 1.35vw, 1.25rem);
    font-weight: 700;
    line-height: 1.65;
    letter-spacing: 0.02em;
    color: #3d52b8;
}

.service-section--app .service-section__body {
    margin-top: 0;
}

.service-section--app .service-section__body p {
    margin: 0 0 1.375rem;
    font-size: calc(0.875rem + 2px);
    font-weight: 400;
    line-height: 2;
    letter-spacing: 0.02em;
    color: #3a4068;
}

.service-section--app .service-section__body p:last-child {
    margin-bottom: 0;
}

.service-section--app .service-section__body strong {
    font-weight: 700;
    color: #6a5cff;
}

.service-section--app .service-section__cta {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: auto;
    max-width: 100%;
    margin-top: clamp(24px, 3vw, 32px);
    padding: 17px 22px 17px 18px;
    border-radius: 10px;
    background: linear-gradient(90deg, #9b7fe8 0%, #7c5cff 42%, #6a5cff 100%);
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(106, 92, 255, 0.32);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-section--app .service-section__cta:hover,
.service-section--app .service-section__cta:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(116, 90, 173, 0.45);
    color: #ffffff;
}

.service-section--app .service-section__cta-icon {
    flex-shrink: 0;
    font-size: 1.375rem;
    line-height: 1;
    color: #ffffff;
}

.service-section--app .service-section__cta-label {
    flex: 0 1 auto;
    font-size: calc(0.9375rem + 2px);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.02em;
    text-align: left;
    white-space: nowrap;
}

.service-section--app .service-section__cta-arrow {
    flex-shrink: 0;
    margin-left: 8px;
    font-size: 1.875rem;
    font-weight: 300;
    line-height: 1;
}

.service-section--app .service-section__visual {
    justify-content: flex-end;
    align-items: flex-end;
    overflow: visible;
    min-width: 0;
}

.service-section--app .service-section__illustration {
    width: min(140%, 880px);
    max-width: none;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: right bottom;
    margin-right: 0;
}

.service-section--app .service-section__panel {
    display: flex;
    justify-content: center;
    padding-top: clamp(8px, 1vw, 16px);
}

/* App：技術バー（白背景・横並び） */
.service-app-tech-bar {
    display: flex;
    align-items: stretch;
    width: min(100%, 1200px);
    max-width: 100%;
    margin-inline: auto;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 4px 24px rgba(26, 32, 44, 0.08);
    overflow-x: auto;
    overflow-y: visible;
}

.service-app-tech-bar__item {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 1.2vw, 14px);
    min-width: max-content;
    padding: clamp(24px, 2.8vw, 32px) clamp(14px, 1.6vw, 22px);
    box-sizing: border-box;
}

.service-app-tech-bar__item:not(:first-child)::before {
    content: '';
    position: absolute;
    left: 0;
    top: 22%;
    bottom: 22%;
    width: 1px;
    background: #e8ecf2;
}

.service-app-tech-bar__icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: clamp(36px, 4vw, 44px);
    height: clamp(36px, 4vw, 44px);
}

.service-app-tech-bar__icon--ios {
    color: #9b96c4;
}

.service-app-tech-bar__icon--android {
    color: #3ddc84;
}

.service-app-tech-bar__icon--flutter,
.service-app-tech-bar__icon--react {
    color: transparent;
}

.service-app-tech-bar__icon--cross {
    width: clamp(40px, 4.5vw, 48px);
    height: clamp(40px, 4.5vw, 48px);
    border-radius: 50%;
    background: linear-gradient(135deg, #8b6fd4 0%, #5b8fd9 100%);
    box-shadow: 0 4px 14px rgba(116, 90, 173, 0.45);
}

.service-app-tech-bar__svg {
    display: block;
    width: 100%;
    height: 100%;
}

.service-app-tech-bar__icon-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-app-tech-bar__plus {
    font-size: clamp(1.5rem, 2vw, 1.75rem);
    font-weight: 300;
    line-height: 1;
    color: #ffffff;
}

.service-app-tech-bar__label {
    margin: 0;
    font-size: clamp(0.8125rem, 0.95vw, 0.9375rem);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.02em;
    color: var(--page-text, #022254);
    text-align: left;
    white-space: nowrap;
}

.service-app-tech-bar__label--stack {
    white-space: normal;
    line-height: 1.4;
}

.service-app-tech-bar__label--stack span {
    display: block;
}

@media (min-width: 901px) {
    .service-section--app .service-section__content {
        position: relative;
        z-index: 1;
        align-self: center;
        padding-left: clamp(8px, 1.5vw, 24px);
        box-sizing: border-box;
    }

    .service-section--app .service-section__subtitle {
        font-size: 1.25rem;
        line-height: 1.65;
        margin-bottom: 24px;
    }

    .service-section--app .service-section__body p {
        font-size: calc(0.875rem + 2px);
        line-height: 2;
        margin-bottom: 1.375rem;
    }

    .service-section--app .service-section__cta {
        margin-top: 28px;
        padding: 18px 24px 18px 20px;
    }

    .service-section--app .service-section__cta-label {
        font-size: calc(0.9375rem + 2px);
    }

    .service-section--app .service-section__cta-arrow {
        font-size: 2rem;
    }

    .service-section--app .service-section__visual {
        align-self: end;
        justify-content: flex-end;
        padding-right: 0;
        overflow: visible;
    }

    .service-section--app .service-section__illustration {
        width: min(165%, 1040px);
        max-width: none;
        object-position: right bottom;
    }
}

@media (max-width: 1100px) {
    .service-section__grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            'content'
            'visual'
            'panel';
    }

    .service-section__illustration {
        width: min(100%, 440px);
        margin: 0 auto;
    }

    .service-section--web .service-section__grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            'content'
            'visual';
    }

    .service-section--web .service-section__illustration {
        width: min(100%, 660px);
    }

    .service-section--app .service-section__grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            'content'
            'visual'
            'panel';
    }

    .service-section--app .service-section__visual {
        justify-content: flex-end;
        overflow: visible;
    }

    .service-section--app .service-section__illustration {
        width: min(130%, 820px);
        max-width: none;
        max-height: none;
        margin: 0;
        object-position: right bottom;
    }

    .service-app-tech-bar {
        flex-wrap: wrap;
    }

    .service-app-tech-bar__item {
        flex: 1 1 auto;
        min-width: max-content;
    }

    .service-app-tech-bar__item:nth-child(3n + 1)::before {
        display: none;
    }

    .service-app-tech-bar__item:nth-child(n + 2)::before {
        display: block;
    }

    .service-ai-cards {
        flex-wrap: wrap;
        justify-content: center;
    }

    .service-ai-cards__item {
        flex: 0 1 calc(33.333% - 10px);
        min-width: 120px;
    }
}

@media (max-width: 700px) {
    .service-section {
        padding: 40px 0;
    }

    .service-section--ai .service-section__content .service-ai-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow: visible;
        overflow-x: hidden;
    }

    .service-section--ai .service-section__content .service-ai-cards__item {
        min-width: 0;
    }

    .service-app-tech-bar {
        flex-direction: column;
        border-radius: 14px;
    }

    .service-app-tech-bar__item {
        flex: none;
        width: 100%;
        min-width: max-content;
        justify-content: flex-start;
        padding: 20px 18px;
    }

    .service-app-tech-bar__item::before {
        top: 0;
        right: 0;
        bottom: auto;
        left: 0;
        width: auto;
        height: 1px;
    }

    .service-app-tech-bar__item:first-child::before {
        display: none;
    }
}

/* フッター：ヘッダーと同じサービスページ配色（/service のみ） */
body.page-service #footer.footer-modern {
    color: var(--page-text);
    background: var(--page-bg);
}

body.page-service #footer.footer-modern .footer-modern__deco-corner {
    filter: hue-rotate(55deg) saturate(1.05) brightness(0.94)
        drop-shadow(0 8px 24px rgba(var(--page-accent-rgb), 0.14));
}

body.page-service #footer.footer-modern .footer-modern__cta-btn--estimate {
    background-image: var(--page-gradient), var(--page-gradient);
    color: #ffffff;
    box-shadow: 0 2px 12px rgba(var(--page-accent-rgb), 0.22);
}

body.page-service #footer.footer-modern .footer-modern__cta-btn--estimate .footer-modern__cta-text,
body.page-service #footer.footer-modern .footer-modern__cta-btn--estimate .footer-modern__cta-arrow {
    color: #ffffff;
}

body.page-service #footer.footer-modern .footer-modern__cta-btn--estimate .footer-modern__cta-icon-img {
    filter: brightness(0) invert(1);
}

body.page-service #footer.footer-modern .footer-modern__cta-btn--contact {
    background-color: var(--page-bg);
    background-image: linear-gradient(var(--page-bg), var(--page-bg)), var(--page-gradient);
    box-shadow: 0 2px 12px rgba(var(--page-accent-rgb), 0.1);
}

body.page-service #footer.footer-modern .footer-modern__cta-btn--contact .footer-modern__cta-text {
    color: var(--page-accent);
}

body.page-service #footer.footer-modern .footer-modern__cta-btn--contact .footer-modern__cta-arrow {
    color: var(--page-accent);
}

body.page-service #footer.footer-modern .footer-modern__cta-btn--contact .footer-modern__cta-icon-img {
    filter: var(--page-header-icon-filter);
}

body.page-service #footer.footer-modern .footer-modern__cta-btn:hover,
body.page-service #footer.footer-modern .footer-modern__cta-btn:focus-visible {
    box-shadow: 0 4px 16px rgba(var(--page-accent-rgb), 0.24);
}

body.page-service #footer.footer-modern .footer-modern__heading {
    color: var(--page-accent);
}

body.page-service #footer.footer-modern .footer-modern__heading-icon-wrap {
    border-color: rgba(var(--page-accent-rgb), 0.14);
    box-shadow: 0 4px 16px rgba(var(--page-accent-rgb), 0.14);
}

body.page-service #footer.footer-modern .footer-modern__heading-icon {
    color: var(--page-accent);
}

body.page-service #footer.footer-modern .footer-modern__heading-icon-img {
    filter: var(--page-header-icon-filter);
}

body.page-service #footer.footer-modern .footer-modern__list::before {
    background: rgba(var(--page-accent-rgb), 0.2);
}

body.page-service #footer.footer-modern .footer-modern__list li::before {
    background: var(--page-accent);
    box-shadow: 0 0 0 2px var(--page-bg);
}

body.page-service #footer.footer-modern .footer-modern__list li:nth-child(even)::before {
    background: rgba(var(--page-accent-rgb), 0.45);
}

body.page-service #footer.footer-modern .footer-modern__link {
    color: var(--page-accent);
}

body.page-service #footer.footer-modern .footer-modern__link--news,
body.page-service #footer.footer-modern .footer-modern__link--contact {
    color: var(--page-text);
}

body.page-service #footer.footer-modern .footer-modern__sns-btn {
    border-color: rgba(var(--page-accent-rgb), 0.14);
    background: #ffffff;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.9) inset,
        0 4px 16px rgba(var(--page-accent-rgb), 0.12);
}

body.page-service #footer.footer-modern .footer-modern__sns-btn:hover,
body.page-service #footer.footer-modern .footer-modern__sns-btn:focus-visible {
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.9) inset,
        0 8px 22px rgba(var(--page-accent-rgb), 0.18);
}

body.page-service #footer.footer-modern .footer-modern__logo-img {
    filter: var(--page-header-logo-filter);
}

body.page-service #footer.footer-modern .footer-modern__copyright {
    color: var(--page-accent);
    border-top-color: rgba(var(--page-accent-rgb), 0.18);
}

/* FAQ: セクション背景（ページ本体 #fdfdfe とは別のニュートラルグレー） */
body.page-service .faq-section--service {
    background-color: #f9f9f9;
}

/* FAQ: セクションスナップ対象（min-height はコンテンツ量） */
body.page-service.page-section-scroll .faq-section--service.page-section {
    min-height: auto;
    height: auto;
    scroll-margin-top: var(--page-section-scroll-padding, 72px);
    padding-bottom: clamp(48px, 6vw, 72px);
}
