/* ===================================
   Service Page CSS
   ベース: 1440px PC-First
   SP: @media (max-width: 767px) 375px基準
=================================== */
/* ===================================
   LINEUP（共通レイアウト）
=================================== */
.service-lineup {
    position: relative;
    padding: 14rem 14.2rem 12rem;
    background-color: var(--color-white);
}
.service__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 115.6rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 9.6rem;
}
/* セクションタイトル */
.service__section-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
}
.service__section-en {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 6rem;
    line-height: 1.5;
    letter-spacing: 0.1em;
    color: var(--color-light-blue);
}
.service__section-ja {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 500;
    font-size: 2.3rem;
    line-height: 1.45;
    letter-spacing: 0.13em;
    color: var(--color-gray);
}
/* ===================================
   Service Card（共通）
=================================== */
.service-card {
    display: flex;
    flex-direction: column;
    width: 96.6rem;
    margin: 0 auto;
}
/* ─── カード上部：テキストエリア ─── */
.service-card__top {
    width: 100%;
    background: rgba(213, 236, 255, 0.4);
    border-radius: 2rem 2rem 0 0;
    padding: 5.6rem 7.2rem;
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
}
/* 小売事業：上部の下端に radius なし（写真が直接続く） */
.service-card__top--kouri {
    border-radius: 2rem 2rem 0 0;
}
.service-card__title {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 700;
    font-size: 5rem;
    line-height: 1.4;
    color: var(--color-navy);
}
.service-card__body {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 400;
    font-size: 1.6rem;
    line-height: 1.7;
    color: var(--color-navy);
    text-align: justify;
    display: flex;
    flex-direction: column;
    gap: 1em;
}
/* ─── カード中部：写真 ─── */
.service-card__photo {
    position: relative;
    width: 100%;
    height: 45rem;
    overflow: hidden;
    flex-shrink: 0;
}
/* 小売事業：写真がカード底部（角丸下） */
.service-card__photo--kouri {
    border-radius: 0 0 2rem 2rem;
}
.service-card__photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.service-card__photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(80, 146, 212, 0.5);
}
/* ─── カード下部：詳細エリア ─── */
.service-card__bottom {
    width: 100%;
    background: rgba(213, 236, 255, 0.4);
    border-radius: 0 0 2rem 2rem;
    padding: 5.6rem 7.2rem 6.4rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}
/* ===================================
   課題ボックス（コンサルティング）
=================================== */
/* 課題ボックス + 区切り画像をまとめて隙間なしで積む */
.service-card__challenge-wrap {
    display: flex;
    flex-direction: column;
}
.service-card__challenge {
    background: linear-gradient(0deg, #FFFAE7 0%, rgba(255, 253, 245, 0.7) 50%, rgba(255, 250, 231, 0.2) 75%, transparent 100%);
    padding: 4rem 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.4rem;
}
/* 課題ヘッダー（青いピル） */
.service-card__challenge-header {
    background: var(--color-light-blue);
    color: var(--color-white);
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 500;
    font-size: 2.5rem;
    line-height: 1.7;
    text-align: center;
    padding: 1.6rem 10.4rem;
    border-radius: 7.2rem;
    white-space: nowrap;
}
/* 課題リスト */
.service-card__challenge-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}
.service-card__challenge-list li {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 400;
    font-size: 1.6rem;
    line-height: 1.7;
    color: var(--color-navy);
}
.service-card__challenge-list li::before {
    content: '';
    display: block;
    flex-shrink: 0;
    width: 2.4rem;
    height: 2.4rem;
    background: url('/img/service/consulting_text_top.webp') no-repeat center center / contain;
}
/* 課題まとめテキスト */
.service-card__challenge-summary {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 700;
    font-size: 2.4rem;
    line-height: 1.5;
    color: var(--color-navy);
    text-align: center;
}
/* ─── 区切り画像 ─── */
.service-card__separator {
    width: 100%;
    line-height: 0;
    overflow: hidden;
}
.service-card__separator-img {
    width: 100%;
    height: auto;
    display: block;
}
/* ===================================
   アイコングリッド
=================================== */
.service-card__icons {
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
}
/* コンサル：上段3個 */
.service-card__icons-row {
    display: flex;
    gap: 2.4rem;
    justify-content: center;
}
/* コンサル：下段2個（中央寄せ、固定幅） */
.service-card__icons-row--center2 {
    justify-content: center;
}
.service-card__icons-row--center2 .service-card__icon-item {
    flex: none;
    width: 26.1rem;
}
/* EC：3列横並び（flex直接） */
.service-card__icons--3col {
    flex-direction: row;
    justify-content: center;
    gap: 2.4rem;
}
.service-card__icon-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}
/* アイコン円（画像に丸が含まれているためCSS装飾なし） */
.service-card__icon-circle {
    width: 19rem;
    height: 19rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.service-card__icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/* アイコン番号 */
.service-card__icon-num {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2.8rem;
    letter-spacing: 0.1em;
    color: var(--color-light-blue);
    text-align: center;
    line-height: 1.5;
    margin-top: 0.4rem;
}
/* アイコンタイトル */
.service-card__icon-title {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    line-height: 1.7;
    color: var(--color-navy);
    text-align: center;
    margin-top: -1rem;
}
/* コンサル：アイコン説明文（paragraph） */
.service-card__icon-desc {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 400;
    font-size: 1.3rem;
    line-height: 1.7;
    color: var(--color-navy);
    text-align: justify;
}
/* EC：アイコン説明文（list） */
.service-card__icon-list {
    list-style: none;
    padding-left: 0;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 400;
    font-size: 1.3rem;
    line-height: 1.7;
    color: var(--color-navy);
    align-self: stretch;
}
.service-card__icon-list li {
    display: flex;
    align-items: flex-start;
}
.service-card__icon-list li::before {
    content: '・';
    flex-shrink: 0;
    line-height: inherit;
}
/* ===================================
   説明文ボックス（白背景）
=================================== */
.service-card__desc-box {
    background: var(--color-white);
    padding: 4.4rem 4.8rem 4.8rem;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 1.7;
    color: var(--color-navy);
    text-align: justify;
}
.service-card__desc-list {
    list-style: none;
    padding-left: 0;
    font-size: 1.5rem;
    line-height: 1.7;
    color: var(--color-navy);
}
.service-card__desc-list li {
    display: flex;
    align-items: flex-start;
}
.service-card__desc-list li::before {
    content: '・';
    flex-shrink: 0;
    line-height: inherit;
}
/* ===================================
   ECモールバッジ（小売事業）
=================================== */
.service-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    align-items: center;
}
/* PC: ラッパーを透過させてバッジが直接並ぶように見せる */
.service-card__badges-row {
    display: contents;
}
.service-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 2.4rem 0.3rem;
    height: 4.6rem;
    border-radius: 5.5rem;
    background: linear-gradient(124deg, #006FA8 14.62%, #003788 35.64%, #003788 64.79%, #006FA8 85.81%);
    background-size: 200% 100%;
    background-position: 100% 0;
    transition: background-position 0.4s ease;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 500;
    font-size: 1.8rem;
    letter-spacing: 0.05em;
    color: var(--color-white);
    white-space: nowrap;
    line-height: 0;
    text-decoration: none;
}
/* ===================================
   Responsive: スマホ (max-width: 767px)
   375px基準: 1rem = 10px
=================================== */
@media (max-width: 767px) {
    /* ===== LINEUP ===== */
    .service-lineup {
        padding: 6.4rem 0;
    }
    .service__inner {
        max-width: none;
        padding: 0 2.4rem;
        gap: 4.8rem;
    }
    .service__section-header {
        gap: 0.4rem;
    }
    .service__section-en {
        font-size: 3.4rem;
    }
    .service__section-ja {
        font-size: 1.8rem;
        letter-spacing: 0.1em;
    }
    /* ===== カード ===== */
    .service-card {
        width: 100%;
    }
    .service-card__top {
        padding: 2.4rem;
        border-radius: 1.7rem 1.7rem 0 0;
        gap: 1.6rem;
    }
    .service-card__title {
        font-size: 2.2rem;
        line-height: 1.5;
    }
    .service-card__body {
        font-size: 1.4rem;
        letter-spacing: -0.02em;
        gap: 0.8em;
    }
    .service-card__photo {
        height: 15.2rem;
    }
    .service-card__photo--kouri {
        border-radius: 0 0 1.7rem 1.7rem;
    }
    .service-card__bottom {
        padding: 2.4rem;
        gap: 2.4rem;
        border-radius: 0 0 1.7rem 1.7rem;
    }
    /* ===== 課題ボックス ===== */
    .service-card__challenge {
        padding: 2.4rem 1.6rem 0;
        gap: 2rem;
    }
    .service-card__challenge-header {
        font-size: 1.5rem;
        padding: 1.2rem 0;
        border-radius: 5rem;
        white-space: normal;
        line-height: 1.4;
        width: 100%;
    }
    .service-card__challenge-list {
        width: 100%;
        gap: 1.2rem;
    }
    .service-card__challenge-list li {
        font-size: 1.3rem;
        gap: 1rem;
    }
    .service-card__challenge-summary {
        font-size: 1.7rem;
        line-height: 1.5;
    }
    /* ===== アイコングリッド ===== */
    /* SP：すべて縦並び */
    .service-card__icons, .service-card__icons--3col {
        flex-direction: column;
        gap: 3.2rem;
    }
    .service-card__icons-row, .service-card__icons-row--center2 {
        flex-direction: column;
        gap: 3rem;
    }
    .service-card__icon-item {
        flex: none;
        width: 100%;
    }
    .service-card__icons-row--center2 .service-card__icon-item {
        width: 100%;
    }
    .service-card__icon-circle {
        width: 19rem;
        height: 19rem;
    }
    .service-card__icon-num {
        font-size: 2.4rem;
    }
    .service-card__icon-title {
        font-size: 1.6rem;
    }
    .service-card__icon-desc {
        font-size: 1.3rem;
    }
    .service-card__icon-list {
        font-size: 1.3rem;
    }
    /* ===== 説明文ボックス ===== */
    .service-card__desc-box {
        padding: 1.6rem;
        font-size: 1.4rem;
    }
    .service-card__desc-list {
        font-size: 1.4rem;
    }
    /* ===== ECモールバッジ ===== */
    .service-card__badges {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    /* SP: ラッパーを行レイアウトに切り替え */
    .service-card__badges-row {
        display: flex;
        gap: 1rem;
    }
    .service-card__badges-row .service-card__badge {
        flex: 1;
    }
    /* Yahoo!ショッピング行：横長ボタン */
    .service-card__badges-row--full .service-card__badge {
        width: 100%;
        flex: none;
    }
    .service-card__badge {
        font-size: 1.4rem;
        padding: 0 1.6rem 0.1rem;
        height: 3.6rem;
        justify-content: center;
    }
}
/* ============================================================
   アンカーリンク スクロール余白
   ============================================================ */
#consulting, #ec-marketing, #kouri {
    scroll-margin-top: 10rem;
}
@media (max-width: 767px) {
    #consulting, #ec-marketing, #kouri {
        scroll-margin-top: 4rem;
    }
}
/* ============================================================
   WORKS（実績紹介）
   ============================================================ */
.service-works {
    position: relative;
    overflow: hidden;
    padding: 9.6rem 14.2rem 0;
}
.service-works .service__inner {
    gap: 0;
}
.service-works .service__section-header {
    margin-bottom: 7rem;
}
/* 背景装飾テキスト */
.service-works__bg-text {
    position: absolute;
    bottom: 2rem;
    left: -1.7rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 100;
    font-size: 14rem;
    letter-spacing: 0.1em;
    white-space: nowrap;
    color: transparent;
    background: linear-gradient(173.53deg, #E5F3FF 29.24%, #FFFADB 71.27%);
    -webkit-background-clip: text;
    background-clip: text;
    pointer-events: none;
    line-height: 1;
    user-select: none;
}
/* ─── 2列グリッド ─── */
.works-grid {
    display: grid;
    grid-template-columns: repeat(2, 46.8rem);
    gap: 4.8rem 3.2rem;
    justify-content: center;
}
/* 奇数（1列）：左カラムに揃える */
.works-grid--single {
    grid-template-columns: 46.8rem;
    justify-content: start;
    margin-left: calc((115.6rem - 96.8rem) / 2);
}
/* ─── カード ─── */
.works-card {
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
}
.works-card__img {
    position: relative;
    width: 100%;
    height: 28.8rem;
    border-radius: 2rem;
    overflow: hidden;
    flex-shrink: 0;
}
.works-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.works-card__img-overlay {
    position: absolute;
    inset: 0;
    background: rgba(80, 146, 212, 0.5);
}
.works-card__info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.works-card__header {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.works-card__title {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 700;
    font-size: 1.9rem;
    line-height: 1.4;
    color: var(--color-navy);
    text-align: center;
}
.works-card__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.34rem;
    padding: 0.5rem 0;
    border-radius: 5.75rem;
    background: var(--color-light-blue);
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.3;
    letter-spacing: 0.07rem;
    color: var(--color-white);
    text-align: center;
}
.works-br-sp {
    display: none;
}
.works-card__text {
    height: 17.5rem;
    overflow: hidden;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 400;
    font-size: 1.3rem;
    line-height: 1.7;
    color: var(--color-navy);
    white-space: pre-line;
}
.works-card__text a {
    color: var(--color-blue);
    text-decoration: underline;
    word-break: break-all;
    transition: color 0.3s ease, opacity 0.3s ease;
}
.works-card__text a:hover {
    color: var(--color-light-blue);
    opacity: 1;
}
.works-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 2rem;
    letter-spacing: 0.1em;
    color: var(--color-navy);
    transition: color 0.3s ease, opacity 0.3s ease;
}
.works-card__btn:hover {
    color: var(--color-light-blue);
    opacity: 1;
}
.works-card__btn-icon {
    flex-shrink: 0;
    width: 1.8rem;
    height: 1.8rem;
}
.works-card__btn-icon line {
    stroke-width: 2.5;
}
/* ─── VIEW MORE アコーディオン ─── */
.works-more {
    height: 0;
    overflow: hidden;
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.works-more__inner {
    padding-top: 4.8rem;
}
.works-viewmore {
    display: block;
    margin: 4.8rem auto 0;
    padding: 1.2rem 3.6rem;
    border-radius: 4.16rem;
    background: linear-gradient(124deg, #006FA8 14.62%, #003788 35.64%, #003788 64.79%, #006FA8 85.81%);
    background-size: 200% 100%;
    background-position: 100% 0;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 1.9rem;
    letter-spacing: 0.1em;
    color: var(--color-white);
    transition: background-position 0.6s ease;
}
.works-viewmore:hover {
    background-position: 0% 0;
    opacity: 1;
}
/* ─── モーダル オーバーレイ ─── */
.works-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    z-index: 1000;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.works-modal-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}
/* ─── モーダル本体 ─── */
.works-modal {
    display: none;
    flex-direction: column;
    width: 89.3rem;
    border-radius: 2rem;
    overflow: hidden;
    margin: auto;
    flex-shrink: 0;
    opacity: 0;
    transform: scale(0.92) translateY(3.2rem);
    pointer-events: none;
    transition:
        opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1);
}
/* display: flex を有効化（アニメーション直前に付与） */
.works-modal.is-shown {
    display: flex;
}
.works-modal.is-active {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}
/* ヘッダー（青） */
.works-modal__header {
    background: var(--color-light-blue);
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 5.6rem 7.2rem;
    position: relative;
}
.works-modal__thumb {
    width: 32rem;
    height: 19.7rem;
    border-radius: 1rem;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}
.works-modal__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.works-modal__thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(80, 146, 212, 0.5);
}
.works-modal__meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    align-items: center;
}
.works-modal__title {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 700;
    font-size: 1.9rem;
    line-height: 1.4;
    color: var(--color-white);
    text-align: center;
    width: 100%;
}
.works-modal__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.34rem;
    padding: 0.5rem 2.6rem;
    border-radius: 5.75rem;
    background: var(--color-white);
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.3;
    letter-spacing: 0.08em;
    color: var(--color-navy);
    text-align: center;
    width: 100%;
}
/* × 閉じるボタン（右上）PC 用 */
.works-modal__x {
    position: absolute;
    top: 1.6rem;
    right: 2.4rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.works-modal__x:hover {
    opacity: 1;
}
/* ラッパー（overflow:hidden なし → SP バツボタンがモーダル外にはみ出せる） */
.works-modal-wrap {
    display: none;
    position: relative;
    margin: auto 0;
}
.works-modal-wrap.is-shown {
    display: block;
}
/* × 閉じるボタン SP 用（ラッパー内・モーダルの外 → スクロールに追従） */
.works-modal__x-sp {
    display: none;
    position: absolute;
    top: 1.4rem;
    right: 0.1rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.6rem;
    align-items: center;
    justify-content: center;
    color: var(--color-light-blue);
    transition: color 0.3s ease, opacity 0.3s ease;
}
.works-modal__x-sp:hover {
    color: #fff;
    opacity: 1;
}
/* ボディ（薄青） */
.works-modal__body {
    background: #EEF7FF;
    padding: 5.6rem 7.2rem 6.4rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}
.works-modal__text {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 400;
    font-size: 1.6rem;
    line-height: 1.7;
    color: var(--color-navy);
    text-align: justify;
    white-space: pre-wrap;
}
.works-modal__text a {
    color: var(--color-blue);
    text-decoration: underline;
    word-break: break-all;
    transition: color 0.3s ease, opacity 0.3s ease;
}
.works-modal__text a:hover {
    color: var(--color-light-blue);
    opacity: 1;
}
.works-modal__text hr {
    border: none;
    border-top: 1px solid rgba(35, 54, 102, 0.2);
    margin: 2.4rem 0;
}
.works-modal__close {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 2rem;
    letter-spacing: 0.1em;
    color: var(--color-navy);
    transition: color 0.3s ease, opacity 0.3s ease;
}
.works-modal__close:hover {
    color: var(--color-light-blue);
    opacity: 1;
}
/* ===================================
   WORKS Responsive (max-width: 767px)
=================================== */
@media (max-width: 767px) {
    .service-works {
        padding: 6.4rem 0 0;
    }
    .service-works .service__inner {
        max-width: none;
        padding: 0 2.4rem;
        gap: 0;
    }
    .works-br-sp {
        display: inline;
    }
    .works-grid {
        grid-template-columns: 1fr;
        gap: 5.6rem;
    }
    .works-grid--single {
        grid-template-columns: 1fr;
        margin-left: 0;
    }
    .works-more__inner {
        padding-top: 5.6rem;
    }
    .works-card__img {
        height: auto;
        aspect-ratio: 328 / 202;
    }
    .works-card__btn {
        font-size: 1.6rem;
    }
    .works-card__btn-icon {
        width: 1.46rem;
        height: 1.46rem;
    }
    .works-viewmore {
        font-size: 1.6rem;
        padding: 1rem 2.6rem;
    }
    .works-modal-overlay {
        padding: 3.2rem 1.6rem 1.6rem;
        align-items: flex-start;
    }
    .works-modal.is-shown {
        width: 100%;
        border-radius: 1.7rem;
        margin: 0 auto;
        transform: scale(0.94) translateY(2.4rem);
    }
    .works-modal__header {
        flex-direction: column;
        gap: 1.6rem;
        padding: 2.4rem;
        border-radius: 1.7rem 1.7rem 0 0;
    }
    .works-modal__thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 328 / 202;
    }
    .works-modal__x {
        display: none;
    }
    .works-modal__x-sp {
        display: flex;
    }
    .works-modal__body {
        padding: 2.4rem;
        gap: 1.6rem;
        border-radius: 0 0 1.7rem 1.7rem;
    }
    .works-modal__text {
        font-size: 1.4rem;
    }
    .works-modal__close {
        font-size: 1.6rem;
    }
    .service-works__bg-text {
        font-size: 8rem;
    }
    #ec-marketing .service-card__title {
        font-size: 1.8rem;
    }
    .service-works .service__section-header {
        margin-bottom: 3rem;
    }
}
/* ===================================
   背景モヤ装飾（service-haze）
=================================== */
.service-haze-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.service-haze-inner {
    max-width: 144rem;
    margin: 0 auto;
    height: 100%;
    position: relative;
}
.service-haze {
    position: absolute;
    pointer-events: none;
    will-change: transform;
}
/* filter は img に分けて適用（transform + filter の競合を回避） */
.service-haze img {
    width: 100%;
    height: auto;
    display: block;
    filter: blur(10px);
}
/* PC: 各ハゼ配置 */
.service-haze--01 {
    width: 90rem;
    right: -28rem;
    top: -3rem;
    animation: serviceHaze1 7s ease-in-out infinite;
}
.service-haze--02 {
    width: 75rem;
    left: -22rem;
    top: 90rem;
    animation: serviceHaze2 8s ease-in-out infinite;
}
.service-haze--03 {
    width: 65rem;
    right: -20rem;
    top: 185rem;
    animation: serviceHaze1 9s ease-in-out infinite;
}
.service-haze--04 {
    width: 85rem;
    left: -38rem;
    top: 300rem;
    animation: serviceHaze2 7s ease-in-out infinite;
}
.service-haze--05 {
    width: 65rem;
    right: -20rem;
    top: 440rem;
    animation: serviceHaze1 8s ease-in-out infinite;
}
.service-haze--06 {
    width: 70rem;
    left: -22rem;
    top: 515rem;
    animation: serviceHaze2 9s ease-in-out infinite;
}
.service-haze--07 {
    width: 105rem;
    right: -55rem;
    top: 5rem;
    animation: serviceHaze1 7s ease-in-out infinite;
}
.service-haze--08 {
    width: 65rem;
    left: -28rem;
    bottom: 50rem;
    animation: serviceHaze2 8s ease-in-out infinite;
}
@keyframes serviceHaze1 {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(-5rem, 1.5rem) rotate(30deg);
    }
    66% {
        transform: translate(4rem, -1.5rem) rotate(-20deg);
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}
@keyframes serviceHaze2 {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    40% {
        transform: translate(6rem, -1.5rem) rotate(-25deg);
    }
    72% {
        transform: translate(-4rem, 1.5rem) rotate(20deg);
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}
@media (max-width: 767px) {
    .service-haze img {
        filter: none;
    }
    .service-haze--01 {
        width: 40rem;
        right: -13rem;
        top: 3rem;
        animation-duration: 14s;
    }
    .service-haze--02 {
        width: 25rem;
        left: -6rem;
        top: 90rem;
        animation-duration: 18s;
    }
    .service-haze--03 {
        width: 22rem;
        right: -5rem;
        top: 213rem;
        animation-duration: 16s;
    }
    .service-haze--04 {
        width: 39rem;
        left: -15rem;
        top: 385rem;
        animation-duration: 14s;
    }
    .service-haze--05 {
        width: 22rem;
        right: -5rem;
        top: 505rem;
        animation-duration: 16s;
    }
    .service-haze--06 {
        width: 25rem;
        left: -6rem;
        top: 667rem;
        animation-duration: 18s;
    }
    .service-haze--07 {
        width: 38rem;
        right: -15rem;
        top: 3rem;
        animation-duration: 14s;
    }
    .service-haze--08 {
        width: 22rem;
        left: -10rem;
        bottom: 35rem;
        animation-duration: 16s;
    }
}