/* /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);
}

/* ファーストビュー：常に画面1枚（次セクションはスクロールまで見せない） */
body.page-service .service-hero.page-section {
    height: 100svh;
    max-height: 100svh;
    min-height: 100svh;
    overflow: hidden;
}

.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;
    isolation: isolate;
    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);
}

body.page-service .service-hero__backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

body.page-service .service-hero__illustration--pc,
body.page-service .service-hero__illustration--sp-bg {
    z-index: 0;
}

body.page-service .service-hero__inner.container {
    position: relative;
    z-index: 2;
}

.service-hero__inner.container {
    position: relative;
    z-index: 2;
    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, 60%) minmax(0, 40%);
    grid-template-rows: auto auto;
    grid-template-areas:
        'intro visual'
        'features visual';
    column-gap: clamp(12px, 1vw, 20px);
    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: 0;
        bottom: 0;
        right: 0;
        left: 38%;
        z-index: 0;
        display: flex;
        align-items: flex-end;
        justify-content: flex-end;
        width: auto;
        height: 100%;
        max-height: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
        line-height: 0;
        pointer-events: none;
        overflow: hidden;
    }

    body.page-service .service-hero__inner.container {
        height: 100%;
        box-sizing: border-box;
        overflow: visible;
    }
}

/* PC・縦幅 1700px 未満: カードは右カラム（下揃え） */
@media (min-width: 901px) and (max-height: 1699px) {
    body.page-service .service-hero__inner.container {
        position: relative;
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
    }

    body.page-service .service-hero__layout {
        position: relative;
        z-index: 1;
        flex: 1 1 auto;
        min-height: 0;
        overflow: visible;
        grid-template-columns: minmax(0, 60%) minmax(0, 40%);
        grid-template-areas:
            'intro visual'
            'features visual';
        column-gap: clamp(12px, 1vw, 20px);
        align-items: stretch;
    }

    body.page-service .service-hero__cards-bar {
        position: absolute;
        top: auto;
        right: 0;
        bottom: clamp(88px, 10vh, 120px);
        z-index: 2;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        width: min(54%, 54vw);
        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__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, 50%) 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;
        margin-bottom: clamp(16px, 2.5vh, 32px);
        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(800px, 100%);
    margin-top: 0;
    position: relative;
    z-index: 2;
}

.service-hero__features-col {
    grid-area: features;
    max-width: min(800px, 100%);
    position: relative;
    z-index: 2;
    isolation: isolate;
    padding: clamp(20px, 2.4vw, 28px);
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    box-shadow:
        0 0 0 1px rgba(2, 34, 84, 0.05),
        0 8px 32px rgba(2, 34, 84, 0.06);
}

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

.service-hero__ctas {
    margin-top: clamp(20px, 2.5vw, 28px);
    padding-top: clamp(18px, 2vw, 22px);
    width: 100%;
    border-top: 1px solid rgba(2, 34, 84, 0.07);
}

body.page-service .page-cta-pair--service-hero {
    width: 100%;
    flex-direction: row;
    align-items: stretch;
    gap: clamp(10px, 1.2vw, 14px);
}

body.page-service .page-cta-pair--service-hero .page-cta-pair__btn {
    flex: 1 1 calc(50% - 7px);
    width: auto;
    min-width: 0;
}

body.page-service .service-hero__ctas .chat-cta--service {
    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 picture,
.service-hero__illustration--sp-bg picture {
    display: block;
    line-height: 0;
}

.service-hero__illustration--pc .service-hero__illustration-img {
    display: block;
    width: 100%;
    max-width: 2114px;
    height: auto;
    max-height: min(1018px, 100%);
    margin: 0;
    object-fit: contain;
    object-position: right bottom;
    transform: none;
}

.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(5, minmax(0, 1fr));
    gap: clamp(14px, 1.6vw, 20px) clamp(12px, 1.4vw, 18px);
    width: 100%;
    /* % は幅基準。イラスト下半分へ重ねる（トップ並みの全体位置を維持） */
    margin-top: clamp(-180px, -13vw, -130px);
}

@media (min-width: 2001px) {
    .service-hero-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.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-text {
    margin: clamp(20px, 2.5vw, 28px) 0 0;
    font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
    font-weight: 400;
    line-height: 1.85;
    color: var(--service-hero-body);
    letter-spacing: 0.02em;
    word-break: normal;
    overflow-wrap: normal;
}

.service-hero__lead-line {
    display: block;
}

.service-hero__lead-line + .service-hero__lead-line {
    margin-top: 0.85em;
}

/* PC・縦幅 1300px 以下: リード2段落目を非表示 */
@media (min-width: 901px) and (max-height: 1300px) {
    body.page-service .service-hero__lead-line--detail {
        display: none;
    }
}

.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: center;
    gap: clamp(14px, 1.5vw, 18px);
    margin: 0 0 clamp(20px, 2.2vw, 26px);
    padding-bottom: clamp(20px, 2.2vw, 26px);
    border-bottom: 1px solid rgba(2, 34, 84, 0.07);
}

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

.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--no-icon .service-hero__feature-body {
    padding-left: 0;
}

.service-hero__feature-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: clamp(10px, 1.2vw, 14px);
    margin: 0 0 6px;
}

.service-hero__feature-title {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    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__feature-more-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
    padding: 5px 12px 5px 13px;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--service-hero-purple);
    text-decoration: none;
    letter-spacing: 0.04em;
    white-space: nowrap;
    border: 1px solid rgba(var(--page-accent-rgb, 116, 90, 173), 0.34);
    border-radius: 999px;
    background: rgba(var(--page-accent-rgb, 116, 90, 173), 0.07);
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.service-hero__feature-more-link::after {
    content: "";
    display: block;
    width: 5px;
    height: 5px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(-45deg) translateY(-0.5px);
}

.service-hero__feature-more-link:hover,
.service-hero__feature-more-link:focus-visible {
    text-decoration: none;
    background: rgba(var(--page-accent-rgb, 116, 90, 173), 0.14);
    border-color: rgba(var(--page-accent-rgb, 116, 90, 173), 0.52);
    box-shadow: 0 3px 10px rgba(var(--page-accent-rgb, 116, 90, 173), 0.12);
}

.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: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 10px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.84) 0%,
        rgba(255, 255, 255, 0.64) 100%
    );
    backdrop-filter: blur(20px) saturate(165%);
    -webkit-backdrop-filter: blur(20px) saturate(165%);
    box-shadow:
        0 4px 20px rgba(var(--page-accent-rgb), 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
    cursor: pointer;
    font: inherit;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-hero-grid__trigger:hover,
.service-hero-grid__trigger:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.92);
    box-shadow:
        0 8px 28px rgba(var(--page-accent-rgb), 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.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);
}

/* タブレット横（901〜1100px）: 1カラム+100svh固定を避け、SP同様の背景ロボ・縦CTA・コンパクト余白 */
@media (min-width: 901px) and (max-width: 1100px) {
    body.page-service.page-section-scroll .service-hero.page-section,
    body.page-service .service-hero.page-section {
        height: auto;
        min-height: 100svh;
        max-height: none;
        overflow-x: hidden;
        overflow-y: visible;
    }

    body.page-service .service-hero {
        height: auto;
        min-height: 100svh;
        max-height: none;
        overflow-x: hidden;
        overflow-y: visible;
    }

    body.page-service .service-hero__inner.container {
        justify-content: flex-start;
        padding-top: clamp(72px, 9vh, 88px);
        padding-bottom: clamp(32px, 4vh, 48px);
        height: auto;
        overflow: visible;
    }

    body.page-service .service-hero__layout {
        grid-template-columns: minmax(0, 58%) minmax(0, 42%);
        grid-template-areas:
            'intro visual'
            'features visual';
        margin-top: clamp(28px, 3.5vh, 40px);
        row-gap: clamp(12px, 1.6vh, 18px);
        column-gap: clamp(8px, 1vw, 14px);
        overflow: visible;
    }

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

    body.page-service .service-hero__features-col {
        padding: clamp(14px, 1.8vw, 20px);
    }

    body.page-service .service-hero__feature {
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

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

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

    body.page-service .service-hero__lead-text {
        margin-top: 14px;
    }

    body.page-service .service-hero__ctas {
        flex-direction: column;
        margin-top: 16px;
        padding-top: 16px;
    }

    body.page-service .page-cta-pair--service-hero {
        flex-direction: column;
    }

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

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

    /* PCロボ非表示 → SP背景ロボを表示 */
    body.page-service .service-hero__illustration--pc.visible-pc {
        display: none !important;
    }

    body.page-service .service-hero__illustration--sp-bg.visible-sp {
        display: flex !important;
    }

    body.page-service .service-hero__illustration--sp-bg {
        position: absolute;
        top: clamp(64px, 10vh, 80px);
        right: 0;
        bottom: auto;
        left: auto;
        z-index: 0;
        align-items: flex-end;
        justify-content: flex-end;
        width: min(62%, 62vw);
        max-width: 100%;
        /* ヒーロー全体ではなくファーストビュー1枚分に固定（縦縮小時に下から食い込まない） */
        height: calc(100svh - clamp(64px, 10vh, 80px) - clamp(32px, 4vh, 48px));
        max-height: calc(100svh - clamp(64px, 10vh, 80px));
        margin: 0;
        padding: 0;
        line-height: 0;
        overflow: hidden;
        pointer-events: none;
    }

    body.page-service .service-hero__illustration--sp-bg .service-hero__illustration-img {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 100%;
        margin: 0;
        object-fit: contain;
        object-position: right bottom;
        transform: scale(1.56);
        transform-origin: right bottom;
    }
}

/* iPad横向き等・縦幅が足りない 901〜1100px */
@media (min-width: 901px) and (max-width: 1100px) and (max-height: 860px) {
    body.page-service .service-hero__inner.container {
        padding-top: clamp(64px, 8vh, 72px);
        padding-bottom: clamp(24px, 3vh, 32px);
    }

    body.page-service .service-hero__layout {
        margin-top: clamp(16px, 2vh, 24px);
        row-gap: 10px;
    }

    body.page-service .service-hero__features-col {
        padding: 12px 14px;
    }

    body.page-service .service-hero__feature-text {
        font-size: 0.75rem;
        line-height: 1.65;
    }

    body.page-service .service-hero__feature {
        margin-bottom: 8px;
        padding-bottom: 8px;
    }

    body.page-service .service-hero__illustration--sp-bg .service-hero__illustration-img {
        transform: scale(1.32);
    }
}

/* PC: 白パネル下端（CTA）を切らない */
@media (min-width: 901px) {
    body.page-service .service-hero__inner.container {
        overflow: visible;
    }

    body.page-service .service-hero__layout {
        overflow: visible;
        max-height: none;
    }
}

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

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

    .service-section--web .service-section__container,
    .service-section--web .service-section__grid,
    .service-section--web .service-section__visual,
    .service-section--web .service-web-visual,
    .service-section--web .service-web-visual__content {
        min-width: 0;
        max-width: 100%;
    }

    .service-hero {
        position: relative;
        height: 100svh;
        max-height: 100svh;
        min-height: 100svh;
        overflow: hidden;
    }

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

    .service-hero__layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            'intro'
            'features'
            'visual';
        margin-top: clamp(24px, 4vh, 40px);
        min-width: 0;
        max-width: 100%;
    }

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

    .service-hero__features {
        display: block;
    }

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

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

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

    /* キャラクター（ロボット）をファーストビュー右下背景に */
    .service-hero__illustration--sp-bg {
        position: absolute;
        top: clamp(64px, 12vw, 88px);
        right: 0;
        bottom: auto;
        left: auto;
        z-index: 0;
        display: flex;
        align-items: flex-end;
        justify-content: flex-end;
        width: min(92%, 92vw);
        max-width: 100%;
        height: calc(100svh - clamp(64px, 12vw, 88px));
        max-height: calc(100svh - clamp(64px, 12vw, 88px));
        margin: 0;
        padding: 0;
        line-height: 0;
        overflow: hidden;
        pointer-events: none;
    }

    .service-hero__illustration--sp-bg .service-hero__illustration-img {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 100%;
        margin: 0;
        object-fit: contain;
        object-position: right bottom;
        transform: scale(1.98);
        transform-origin: right bottom;
    }

    body.page-service.page-section-scroll .service-hero.page-section {
        height: 100svh;
        max-height: 100svh;
        min-height: 100svh;
        overflow: hidden;
    }

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

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

    .service-hero__lead-text {
        margin-top: 16px;
    }

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

    body.page-service .page-cta-pair--service-hero {
        flex-direction: column;
    }

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

    .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-section--web .service-hero-slider {
        margin-top: 0;
    }

    .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: visible;
        padding: clamp(28px, 6vw, 36px) 0 clamp(28px, 6vw, 36px);
    }

    .service-section--ai .service-section__container {
        position: relative;
        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;
        top: 0;
        right: 0;
        left: auto;
        bottom: auto;
        z-index: 0;
        display: flex;
        align-items: flex-end;
        justify-content: flex-end;
        width: min(72vw, 480px);
        height: calc(100svh - var(--page-section-scroll-padding, 72px));
        max-height: calc(100svh - var(--page-section-scroll-padding, 72px));
        margin: 0;
        padding: 0 0 clamp(24px, 3vh, 36px);
        box-sizing: border-box;
        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;
        max-height: 100%;
        margin: 0;
        object-fit: contain;
        object-position: right bottom;
        background-color: transparent;
        filter: none;
        -webkit-filter: none;
        opacity: 1;
        mix-blend-mode: normal;
        transform: scale(1.404);
        transform-origin: right bottom;
    }

    .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: 0 0 16px;
    }

    .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: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.service-section--web .service-web-visual {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: clamp(420px, 42vw, 640px);
    overflow: hidden;
}

.service-section--web .service-web-visual__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: none; /* 試し：背景イラスト非表示 */
    align-items: center;
    justify-content: center;
    overflow: hidden;
    pointer-events: none;
}

.service-section--web .service-web-visual__bg .service-section__illustration {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    margin: 0;
    object-fit: contain;
    object-position: center center;
}

.service-section--web .service-web-visual__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(16px, 2vw, 24px);
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: inherit;
    padding: clamp(12px, 1.6vw, 20px);
    box-sizing: border-box;
}

.service-section--web .service-tags-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    align-self: stretch;
}

.service-section--web .service-web-cards {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-hero-grid--web-section {
    margin-top: 0;
    margin-inline: auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(10px, 1.1vw, 14px) clamp(8px, 1vw, 12px);
}

.service-hero-grid--web-section > [role='listitem'] {
    min-width: 0;
}

@media (min-width: 1400px) {
    .service-hero-grid--web-section {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.service-section--web .service-hero-grid--web-section .service-hero-grid__trigger {
    padding: clamp(12px, 1.2vw, 16px) clamp(6px, 0.8vw, 10px) clamp(10px, 1vw, 14px);
}

.service-section--web .service-hero-grid--web-section .service-hero-grid__label {
    font-size: clamp(0.625rem, 0.75vw, 0.75rem);
}

/* 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-web-visual {
        min-height: 100%;
        height: 100%;
    }

    .service-section--web .service-web-visual__content {
        justify-content: flex-start;
        align-items: center;
        min-height: 100%;
        padding: clamp(16px, 2vw, 24px);
    }

    .service-section--web .service-web-cards {
        flex: 1 1 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .service-section--web .service-tags-wrap {
        flex: 0 0 auto;
        align-self: stretch;
        margin-top: auto;
    }

    .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 {
    position: relative;
    overflow: visible;
    background-color: #ffffff;
    padding: clamp(40px, 5vw, 56px) 0 clamp(72px, 9vw, 112px);
}

body.page-service.page-section-scroll .service-section--ai.page-section {
    scroll-margin-top: var(--page-section-scroll-padding, 72px);
}

.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;
}

.service-section--ai .service-section__content {
    align-self: start;
}

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

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

    .service-section--ai .service-section__header {
        margin: 0 0 clamp(16px, 2vw, 20px);
    }

    .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: clamp(16px, 2vw, 24px) 0 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;
    }

    /* ヒーロー同様：セクション基準・高さ100svhで画面右下に固定 */
    .service-section--ai .service-section__visual {
        position: absolute;
        top: 0;
        right: 0;
        left: auto;
        bottom: auto;
        z-index: 0;
        display: flex;
        align-items: flex-end;
        justify-content: flex-end;
        width: min(58%, 58vw);
        height: calc(100svh - var(--page-section-scroll-padding, 72px));
        max-height: calc(100svh - var(--page-section-scroll-padding, 72px));
        margin: 0;
        padding: 0 0 clamp(24px, 3vh, 36px);
        box-sizing: border-box;
        overflow: visible;
        /* 上端だけクリップ（左右下は開放）＝左切れ対策を保ちつつ上のヒーローへの飛び出しを防ぐ */
        clip-path: inset(0 -100vw -100vw -100vw);
        pointer-events: none;
        background: transparent;
    }

    .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;
        /* 高さを「横基準(44vw)」と「縦基準(ファーストビュー高)」の小さい方で決定。
           幅は auto（アスペクト比 2114:1018 ≒ 高さは幅の0.48倍）で追従。
           縦が狭いと縦基準が勝って画像全体が縮む（上を切らない） */
        width: auto;
        max-width: none;
        height: min(44vw, calc(100svh - var(--page-section-scroll-padding, 72px) - clamp(24px, 3vh, 36px)));
        max-height: 100%;
        margin: 0;
        object-fit: contain;
        object-position: right bottom;
        background-color: transparent;
        filter: none;
        -webkit-filter: none;
        opacity: 1;
        mix-blend-mode: normal;
        transform: none;
        transform-origin: right bottom;
    }

    .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';
        min-width: 0;
    }

    .service-section--web .service-section__visual {
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
    }

    .service-section--web .service-web-visual {
        min-height: clamp(340px, 92vw, 480px);
    }

    .service-section--web .service-web-visual__content {
        padding: 12px 0 0;
        align-items: center;
    }

    .service-section--web .service-web-cards,
    .service-section--web .service-hero-slider {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin-inline: auto;
        overflow: hidden;
    }

    .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);
}

/* Web Service — モック準拠レイアウト */
.service-web-layout {
    padding: clamp(28px, 3.5vw, 40px) 0 clamp(48px, 6vw, 72px);
    background: #ffffff;
}

body.page-service.page-section-scroll .service-section--web.service-web-layout.page-section {
    scroll-margin-top: var(--page-section-scroll-padding, 72px);
    min-height: auto;
    height: auto;
    padding-top: clamp(12px, 1.6vw, 24px);
}

.service-web-layout__container {
    position: relative;
    max-width: none;
}

.service-web-layout__upper {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 0.95fr) minmax(0, 0.73fr);
    grid-template-areas:
        'intro intro .'
        'pillar01 pillar02 wide';
    gap: clamp(14px, 1.6vw, 20px);
    align-items: stretch;
    margin-bottom: clamp(28px, 3.5vw, 40px);
}

.service-web-layout__intro {
    grid-area: intro;
    min-width: 0;
}

.service-web-layout__intro .service-section__label {
    margin: 0 0 8px;
}

.service-web-layout__intro .service-section__title {
    margin: 0;
}

.service-web-layout__lead {
    margin: clamp(18px, 2.2vw, 24px) 0 0;
    max-width: 100%;
    font-size: clamp(1rem, 1.25vw, 1.1875rem);
    font-weight: 500;
    line-height: 1.85;
    letter-spacing: 0.02em;
    color: var(--page-text, #022254);
}

.service-web-layout__lead-row {
    display: block;
}

@media (min-width: 901px) {
    .service-web-layout__lead-row:first-child {
        white-space: nowrap;
    }
}

.service-web-layout__lead-accent {
    color: #3b6bdc;
    font-weight: 700;
}

.service-web-pillar--slot-01 {
    grid-area: pillar01;
}

.service-web-pillar--slot-02 {
    grid-area: pillar02;
}

.service-web-pillar {
    --service-web-pillar-pad: clamp(16px, 1.8vw, 22px);
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    padding: var(--service-web-pillar-pad);
    padding-bottom: 0;
    border-radius: 16px;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(2, 34, 84, 0.08);
}

.service-web-pillar--blue {
    background: linear-gradient(180deg, #edf3fc 0%, #f6f9fe 100%);
    box-shadow:
        0 6px 20px rgba(59, 107, 220, 0.07),
        0 2px 6px rgba(59, 107, 220, 0.04);
}

.service-web-pillar--purple {
    background: linear-gradient(180deg, #efedfc 0%, #f7f6fe 100%);
    box-shadow:
        0 6px 20px rgba(106, 92, 255, 0.07),
        0 2px 6px rgba(106, 92, 255, 0.04);
}

.service-web-pillar__header {
    margin-bottom: clamp(14px, 1.6vw, 18px);
}

.service-web-pillar__heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(1.0625rem, 1.3vw, 1.3125rem);
    line-height: 1.5;
}

.service-web-pillar__heading-body {
    flex: 1;
    min-width: 0;
}

.service-web-pillar__number {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    align-self: center;
    width: auto;
    min-width: 1.9em;
    min-height: 1.5em;
    padding: 0.12em 0.4em;
    border-radius: 6px;
    background: #3b6bdc;
    font-size: 0.82em;
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
}

.service-web-pillar--purple .service-web-pillar__number {
    background: #6a5cff;
}

.service-web-pillar__title {
    margin: 0;
    font-size: inherit;
    font-weight: 800;
    line-height: inherit;
    color: #3b6bdc;
}

.service-web-pillar--purple .service-web-pillar__title {
    color: #6a5cff;
}

.service-web-pillar--purple .service-hero-grid--web-pillar .service-hero-grid__icon {
    filter: brightness(0) saturate(100%) invert(45%) sepia(82%) saturate(4200%) hue-rotate(226deg) brightness(102%) contrast(101%);
    -webkit-filter: brightness(0) saturate(100%) invert(45%) sepia(82%) saturate(4200%) hue-rotate(226deg) brightness(102%) contrast(101%);
}

/* 紫線画など、フィルター済み・専用色のアイコンは再着色しない */
.service-web-pillar--purple .service-hero-grid--web-pillar .service-hero-grid__trigger[data-service-icon='matching_service.png'] .service-hero-grid__icon {
    filter: none;
    -webkit-filter: none;
    width: clamp(42px, 4vw, 50px);
    height: clamp(42px, 4vw, 50px);
    transform: scale(1.28);
    transform-origin: center center;
}

.service-web-pillar--purple .service-hero-grid--web-pillar .service-hero-grid__trigger[data-service-icon='ec_site_line.png'] .service-hero-grid__icon {
    filter: none;
    -webkit-filter: none;
    transform: scale(1.2);
    transform-origin: center center;
}

.service-web-pillar--purple .service-hero-grid--web-pillar .service-hero-grid__trigger[data-service-icon='online_lesson.png'] .service-hero-grid__icon {
    filter: none;
    -webkit-filter: none;
    transform: scale(1.2);
    transform-origin: center center;
}

.service-web-pillar--purple .service-hero-grid--web-pillar .service-hero-grid__trigger[data-service-icon='community.png'] .service-hero-grid__icon {
    filter: none;
    -webkit-filter: none;
    transform: scale(1.2);
    transform-origin: center center;
}

.service-web-pillar--purple .service-hero-grid--web-pillar .service-hero-grid__trigger[data-service-icon='app_integration.png'] .service-hero-grid__icon {
    filter: none;
    -webkit-filter: none;
    transform: scale(1.3);
    transform-origin: center center;
}

.service-web-pillar--purple .service-hero-grid--web-pillar .service-hero-grid__trigger[data-service-icon='reservation_system.png'] .service-hero-grid__icon,
.service-web-pillar--purple .service-hero-grid--web-pillar .service-hero-grid__trigger[data-service-icon='membership_site.png'] .service-hero-grid__icon,
.service-web-pillar--purple .service-hero-grid--web-pillar .service-hero-grid__trigger[data-service-icon='subscription_service.png'] .service-hero-grid__icon {
    filter: none;
    -webkit-filter: none;
}

.service-web-pillar__subtitle {
    margin: clamp(6px, 0.8vw, 8px) 0 0;
    font-size: clamp(0.6875rem, 0.78vw, 0.75rem);
    font-weight: 400;
    line-height: 1.65;
    color: var(--page-text-body, #242b6a);
}

.service-web-pillar__cards {
    margin: 0 0 clamp(10px, 1.2vw, 14px);
}

.service-web-pillar__cards .service-hero-grid {
    margin-top: 0;
}

.service-hero-grid--web-pillar {
    gap: 6px;
    align-items: start;
}

.service-hero-grid--web-pillar > [role='listitem'] {
    min-height: 0;
    height: auto;
}

.service-hero-grid--web-pillar.service-hero-grid--cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-hero-grid--web-pillar .service-hero-grid__trigger {
    min-height: 0;
    height: auto;
    padding: 8px 4px 6px;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(59, 107, 220, 0.08);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    gap: 4px;
}

.service-hero-grid--web-pillar .service-hero-grid__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    height: clamp(56px, 5.1vw, 64px);
    min-height: clamp(56px, 5.1vw, 64px);
    flex-shrink: 0;
    border-radius: 0;
    background: none;
}

.service-hero-grid--web-pillar .service-hero-grid__icon {
    width: clamp(36px, 3.4vw, 44px);
    height: clamp(36px, 3.4vw, 44px);
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
}

.service-hero-grid--web-pillar .service-hero-grid__label {
    margin-top: 8px;
    flex-shrink: 0;
    font-size: clamp(calc(0.5625rem + 2px), calc(0.62vw + 2px), calc(0.625rem + 2px));
    line-height: 1.25;
}

.service-web-pillar__footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(10px, 1.2vw, 14px);
    align-items: end;
    width: calc(100% + (var(--service-web-pillar-pad) * 2));
    margin-top: auto;
    margin-left: calc(-1 * var(--service-web-pillar-pad));
    margin-right: calc(-1 * var(--service-web-pillar-pad));
    padding: clamp(14px, 1.6vw, 18px) var(--service-web-pillar-pad);
    background: #ffffff;
}

.service-web-pillar__list-wrap {
    min-width: 0;
}

.service-web-pillar__list-title {
    margin: 0 0 10px;
    font-size: clamp(calc(0.75rem + 2px), calc(0.85vw + 2px), calc(0.8125rem + 2px));
    font-weight: 700;
    line-height: 1.5;
    color: #3b6bdc;
}

.service-web-pillar--purple .service-web-pillar__list-title {
    color: #6a5cff;
}

.service-web-pillar__list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: clamp(calc(0.6875rem + 2px), calc(0.75vw + 2px), calc(0.71875rem + 2px));
    font-weight: 400;
    line-height: 1.65;
    color: var(--page-text-body, #242b6a);
}

.service-web-pillar__list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.service-web-pillar__list li::before {
    content: '✓';
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    border-radius: 50%;
    background: #3b6bdc;
    font-size: 0.5625rem;
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
}

.service-web-pillar--purple .service-web-pillar__list li::before {
    background: #6a5cff;
}

.service-web-pillar__list li + li {
    margin-top: 8px;
}

.service-web-pillar__illustration {
    flex-shrink: 0;
    width: clamp(108px, 11vw, 148px);
    line-height: 0;
}

.service-web-pillar--purple .service-web-pillar__illustration {
    width: clamp(94px, 9.5vw, 128px);
}

.service-web-pillar__illustration-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: right bottom;
}

.service-web-wide {
    grid-area: wide;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-sizing: border-box;
}

.service-web-wide__panel {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: 100%;
    min-height: 100%;
    padding: clamp(18px, 2vw, 24px) clamp(16px, 1.8vw, 22px) clamp(20px, 2.2vw, 26px);
    border: 1px solid #e2e9f2;
    border-radius: 14px;
    background: #f0f4f8;
    box-sizing: border-box;
}

.service-web-wide__head {
    margin-bottom: clamp(14px, 1.6vw, 18px);
}

.service-web-wide__title {
    margin: 0;
    font-size: clamp(0.9375rem, 1.05vw, 1.0625rem);
    font-weight: 800;
    line-height: 1.45;
    color: #1a2b5f;
}

.service-web-wide__subtitle {
    margin: clamp(6px, 0.7vw, 8px) 0 0;
    font-size: clamp(0.75rem, 0.85vw, 0.8125rem);
    font-weight: 500;
    line-height: 1.6;
    color: var(--page-text-body, #242b6a);
}

.service-web-wide__tags {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(8px, 0.9vw, 10px);
    flex: 1 1 auto;
}

.service-web-wide__tags > [role='listitem'] {
    display: flex;
    min-width: 0;
}

.service-wide-tag {
    display: flex;
    min-width: 0;
}

.service-wide-tag__trigger {
    display: inline-flex;
    align-items: center;
    gap: clamp(6px, 0.7vw, 8px);
    min-height: 0;
    margin: 0;
    padding: clamp(7px, 0.8vw, 9px) clamp(12px, 1.2vw, 14px);
    border: 1px solid #e4e9f2;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: none;
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.service-wide-tag__trigger:hover,
.service-wide-tag__trigger:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(59, 107, 220, 0.35);
    box-shadow: 0 2px 8px rgba(59, 107, 220, 0.1);
}

.service-wide-tag__icon-wrap {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: clamp(22px, 2vw, 24px);
    height: clamp(22px, 2vw, 24px);
    line-height: 0;
}

.service-wide-tag__icon {
    display: block;
    width: clamp(22px, 2vw, 24px);
    height: clamp(22px, 2vw, 24px);
    object-fit: contain;
}

.service-wide-tag__label {
    font-size: clamp(0.6875rem, 0.78vw, 0.75rem);
    font-weight: 700;
    line-height: 1.3;
    color: #022254;
    white-space: nowrap;
}

.service-web-wide__note {
    margin: 0;
    margin-top: auto;
    padding-top: clamp(14px, 1.6vw, 18px);
    font-size: clamp(0.6875rem, 0.78vw, 0.75rem);
    font-weight: 500;
    line-height: 1.65;
    color: var(--page-text-body, #242b6a);
}

.service-web-layout__flow-panel {
    --service-web-flow-accent: var(--page-accent, #745aad);
    --service-web-flow-accent-soft: rgba(var(--page-accent-rgb), 0.14);
    --service-web-flow-accent-rgb: var(--page-accent-rgb);
    --service-web-flow-step-num-size: 56px;
    --service-web-flow-arrow-size: clamp(18px, 1.45vw, 22px);
    margin-top: clamp(28px, 3.5vw, 40px);
    padding: clamp(13px, 1.5vw, 18px) clamp(28px, 3.2vw, 40px);
    border: 1px solid #dce4f0;
    border-radius: 12px;
    background: #ffffff;
    box-sizing: border-box;
}

.service-web-layout__flow-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        'flow-title cta'
        'flow-steps cta';
    column-gap: clamp(24px, 2.8vw, 36px);
    row-gap: 0;
    align-items: start;
}

.service-web-flow__title {
    grid-area: flow-title;
    margin: 0 0 clamp(22px, 2.6vw, 30px);
    font-size: clamp(1.0625rem, 1.35vw, 1.25rem);
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
    color: var(--service-web-flow-accent);
}

.service-web-flow {
    grid-area: flow-steps;
    min-width: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}

.service-web-flow__steps {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-web-flow__step {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    text-align: center;
}

.service-web-flow__arrow {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    align-self: flex-start;
    margin: 0;
    padding: calc((var(--service-web-flow-step-num-size) - var(--service-web-flow-arrow-size)) / 2) 0 0;
    list-style: none;
}

.service-web-flow__arrow-icon {
    display: block;
    width: var(--service-web-flow-arrow-size);
    height: var(--service-web-flow-arrow-size);
    color: var(--service-web-flow-accent);
    flex-shrink: 0;
}

.service-web-flow__step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--service-web-flow-step-num-size);
    height: var(--service-web-flow-step-num-size);
    margin: 0 auto 10px;
    border-radius: 50%;
    background: var(--service-web-flow-accent-soft);
    font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
    font-weight: 800;
    line-height: 1;
    color: var(--service-web-flow-accent);
}

.service-web-flow__step-title {
    margin: 0 0 clamp(8px, 1vw, 10px);
    width: 100%;
    font-size: clamp(0.8125rem, 0.95vw, 0.875rem);
    font-weight: 800;
    line-height: 1.45;
    color: var(--page-text, #022254);
}

.service-web-flow__step-desc {
    margin: 0;
    width: 100%;
    font-size: clamp(0.6875rem, 0.78vw, 0.75rem);
    line-height: 1.6;
    color: var(--page-text-body, #242b6a);
}

.service-web-cta-box {
    grid-area: cta;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: center;
    width: max-content;
    max-width: 100%;
    min-width: 0;
    padding: clamp(16px, 2vw, 22px) clamp(24px, 2.8vw, 32px);
    border: 1px solid rgba(var(--service-web-flow-accent-rgb), 0.28);
    border-radius: 12px;
    background: #ffffff;
    box-sizing: border-box;
    text-align: center;
}

.service-web-cta-box__title {
    margin: 0 0 8px;
    font-size: clamp(1rem, 1.15vw, 1.125rem);
    font-weight: 800;
    line-height: 1.45;
    text-align: center;
    color: var(--service-web-flow-accent);
}

.service-web-cta-box__text {
    margin: 0 0 clamp(14px, 1.8vw, 18px);
    font-size: clamp(0.75rem, 0.85vw, 0.8125rem);
    line-height: 1.75;
    text-align: center;
    color: var(--page-text-body, #242b6a);
}

.service-web-cta-box__text-line {
    display: block;
    white-space: nowrap;
}

.service-web-cta-box__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-height: 52px;
    padding: 12px 16px;
    border-radius: 8px;
    background: var(--page-gradient, linear-gradient(135deg, #745aad 0%, #745aad 100%));
    box-shadow: none;
    font-size: clamp(0.8125rem, 0.95vw, 0.875rem);
    font-weight: 700;
    line-height: 1.4;
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.service-web-cta-box__btn:hover,
.service-web-cta-box__btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: none;
    color: #ffffff;
}

.service-web-cta-box__btn-icon {
    font-size: 1.25rem;
}

.service-web-layout__bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(20px, 2.5vw, 32px);
    align-items: start;
    margin-top: clamp(28px, 3.5vw, 40px);
}

.service-web-reasons {
    padding: clamp(20px, 2.5vw, 28px) clamp(16px, 2vw, 24px);
    background: #ffffff;
    border: 1px solid rgba(2, 34, 84, 0.1);
    border-radius: 16px;
}

.service-web-reasons__title,
.service-web-layout__tags .service-tags__heading {
    margin: 0 0 clamp(20px, 2.5vw, 28px);
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    font-weight: 800;
    line-height: 1.4;
    color: var(--page-accent, #745aad);
}

.service-web-reasons__title {
    text-align: center;
}

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

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

.service-web-reasons__item {
    text-align: center;
    padding: clamp(8px, 1vw, 12px) clamp(12px, 1.5vw, 16px);
}

.service-web-reasons__item:not(:last-child) {
    border-right: 1px solid rgba(2, 34, 84, 0.1);
}

.service-web-reasons__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    line-height: 0;
}

.service-web-reasons__icon-img {
    display: block;
    width: clamp(66px, 6.3vw, 78px);
    height: clamp(66px, 6.3vw, 78px);
    object-fit: contain;
}

.service-web-reasons__item-title {
    margin: 10px 0 4px;
    font-size: clamp(0.8125rem, 0.95vw, 0.875rem);
    font-weight: 800;
    line-height: 1.4;
    color: #3b6bdc;
}

.service-web-reasons__item-text {
    margin: 0;
    font-size: clamp(0.6875rem, 0.78vw, 0.75rem);
    line-height: 1.65;
    color: var(--page-text-body, #242b6a);
}

.service-web-reasons__item-text-line {
    display: block;
}

.service-web-layout__tags.service-tags-wrap {
    margin: 0;
    max-width: none;
    box-shadow: none;
    border-color: rgba(2, 34, 84, 0.1);
}

.service-web-layout__tags .service-tags {
    justify-content: flex-start;
    width: 100%;
}

.service-web-layout__tags .service-tags__item {
    border-color: rgba(var(--page-accent-rgb), 0.35);
    color: var(--page-accent, #745aad);
    font-size: calc(0.75rem + 2px);
}

.service-web-layout__seo {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 900px) {
    .service-web-layout__upper {
        grid-template-columns: 1fr;
        grid-template-areas:
            'intro'
            'pillar01'
            'pillar02'
            'wide';
    }

    .service-web-layout__flow-row {
        grid-template-columns: 1fr;
        grid-template-areas:
            'flow-title'
            'flow-steps'
            'cta';
        row-gap: clamp(20px, 2.5vw, 28px);
    }

    .service-web-cta-box {
        align-self: stretch;
        width: 100%;
        max-width: none;
    }

    .service-web-cta-box__text-line {
        white-space: normal;
    }

    .service-web-flow__steps {
        flex-direction: column;
        align-items: stretch;
    }

    .service-web-flow__step {
        flex: none;
        display: grid;
        grid-template-columns: var(--service-web-flow-step-num-size) minmax(0, 1fr);
        grid-template-rows: auto auto;
        gap: 4px 12px;
        align-items: start;
        text-align: left;
        padding-bottom: 14px;
        border-bottom: 1px solid #edf1f7;
    }

    .service-web-flow__arrow {
        display: none;
    }

    .service-web-flow__step-num {
        grid-row: 1 / span 2;
        margin: 0;
    }

    .service-web-flow__step-title,
    .service-web-flow__step-desc {
        grid-column: 2;
    }

    .service-web-flow__step:last-child {
        padding-bottom: 0;
        border-bottom: none;
    }

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

    .service-web-reasons__list {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .service-web-reasons__item:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid rgba(2, 34, 84, 0.1);
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .service-hero-grid--web-pillar.service-hero-grid--cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* 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);
}
