body {
    --stage-h: 70vh;
}

.hero {
    padding: 60px 0 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 80px;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.5;
    background: #000;
    animation: fadeUp 1s 0.2s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 0;
    }
}

.flow {
    background: #fff;
}
.sec-txt {
    margin: 0 0 32px;
    color: #555;
    font-size: 1.25rem;
    line-height: 1.6;
    font-weight: 400;
}

.flow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    position: relative;
    margin-top: 4rem;
}
.flow-card {
    background: #fff;
    padding: 22px 20px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
    position: relative;
}
.flow-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 4px;
    background: var(--grad2);
}
.flow-card h3 {
    margin: 0.2em 0 0.5em;
    font-size: 1.25rem;
    text-align: center;
    font-weight: 900;
    color: var(--accent-2);
}
.flow-card ul {
    margin: 0;
    padding-left: 1.1em;
    color: #555;
}
.flow-card .icon-grad {
    display: block;
    width: 60%;
    height: auto;
    object-fit: contain;
    margin: auto;
}
.icon-grad{
  /* 好きなグラデーションに変更 */
  background: linear-gradient(135deg, #ffffff, #cb5543);
  -webkit-mask: var(--mask) center / contain no-repeat;
  mask: var(--mask) center / contain no-repeat;
  display:inline-block;
}
.flow-grid .flow-card:not(:last-child)::after {
    content: "➜";
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: #999;
}
.flow-grid .flow-card__ribbon {
    /* ribbon params */
    --ribbon-w: 96px; /* リボンの横幅 */
    --ribbon-h: 28px; /* リボンの高さ */
    --ribbon-cut: 16px; /* 右端の斜めカット幅 */
    --ribbon-left: 16px; /* 左余白 */
    position: absolute;
    top: -14px;
    left: 0;
    width: var(--ribbon-w);
    height: var(--ribbon-h);
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.08em;
    font-size: 14px;
    background: var(--grad2);
    -webkit-clip-path: polygon(
        0 0,
        calc(100% - var(--ribbon-cut)) 0,
        100% 50%,
        calc(100% - var(--ribbon-cut)) 100%,
        0 100%
    );
    clip-path: polygon(0 0, calc(100% - var(--ribbon-cut)) 0, 100% 100%, calc(100% - var(--ribbon-cut)) 100%, 0 100%);
}
.flow-grid .flow-card__ribbon::after {
    content: "";
    position: absolute;
    right: -10px;
    top: 0;
    border-width: 10px 0 0 10px;
    border-style: solid;
    border-color: transparent transparent transparent var(--grad-b);
}
@media (max-width: 980px) {
    .flow-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .flow-grid .flow-card:not(:last-child)::after {
        content: "↓";
        right: 50%;
        top: auto;
        bottom: -10px;
        transform: translateX(50%);
    }
}

/* ===== スクロール固定・フェード切替（入れ子レイアウト対応） ===== */
.sv-nest {
    background: #f8f8f8;
    position: relative;
    z-index: -1;
}
.sv-nest .sv-title {
    font-size: clamp(22px, 3.4vw, 34px);
    line-height: 1.25;
    margin: 0.2em 0 0.6em;
}

.svc-row {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    align-items: stretch;
    min-height: 80vh;
    padding: 6vh 0;
}
.svc-row.rev .col--text {
    order: 2;
}
.svc-row.rev .col--media {
    order: 1;
}

.col--media {
    position: relative;
    align-self: stretch;
}
.stage {
    position: fixed;
    top: 0;
    overflow: hidden;
    background: #fafafa;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
    isolation: isolate;
    opacity: 0;
    transition: 0.6s;
}
.stage > img {
    /* width: auto; */
    /* height: 100%; */
    object-fit: cover;
    transition: 3s;
}
.col--media.is-active .stage {
    opacity: 1;
    width: calc(100% + (100vw - 100%) / 2);
}

.col--media.is-active .stage img {
    transform: scale(1.05);
}

/* 片側フルブリード（固定画像のみ） */
.svc-row1 .col--media.bleed-right .stage {
    margin-right: calc((100vw - 100%) / -2);
    right: 0;
}
.col--media.bleed-left .stage {
    margin-left: calc((100vw - 100%) / -2);
    right: 40vw;
}
.svc-row3 .col--media.bleed-right .stage {
    margin-right: calc((100vw - 100%) / -2);
    left: calc(50% - 20vw);
    filter: brightness(0.86);
    height: 90%;
}

.svc-row3 .col--media.bleed-right .stage img {
    height: 100%;
}

.col--text {
    align-self: center;
    background: #fff;
    padding: 4em;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
}
.svc-title {
    margin: 0 0 0.3em;
    font-weight: 900;
    font-size: clamp(20px, 2.8vw, 28px);
}
.svc-sub {
    display: inline-block;
    color: #ff5811;
    font-weight: 800;
    font-size: 1rem;
    margin: 0.2em 0 1em;
}
.svc-list {
    margin: 0.6em 0 0;
    padding-left: 1.1em;
    color: #555;
}

@media (max-width: 980px) {
    .svc-row {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 6vh 0;
    }
    .svc-row.rev .col--text {
        order: 2;
    }
    .svc-row.rev .col--media {
        order: 1;
    }
    .col--text {
        padding: 3em;
    }
    .stage img {
        width: auto;
        height: 100%;
        object-fit: cover;
    }
    /* モバイルは両側フルブリードで見やすく */
    .col--media.is-active .stage {
        height: 100vh!important;
        width: 100vw!important;
        margin-left: 0;
        margin-right: 0;
        top: 7%!important;
        left: 0!important;
    }
}

/* 動きの軽減に配慮 */
@media (prefers-reduced-motion: reduce) {
    .stage > img {
        transition: none;
    }
}

.lgs-marquee {
    padding-top: 4rem !important;
}

.usage-flow {
    background: #f8f8f8;
    padding: 180px 0;
}
.usage-flow__title {
    font-size: clamp(22px, 3.4vw, 34px);
    line-height: 1.25;
    margin: 0 0 1em;
}

.usage-flow .section_title_shadow {
    letter-spacing: -0.05em;
}
.usage-flow__list {
    list-style: none;
    padding: 0;
    counter-reset: usage-flow;
}
.usage-flow__item {
    position: relative;
    padding-left: 2em;
    margin-bottom: 1em;
}
.usage-flow__item::before {
    content: counter(usage-flow) " ";
    counter-increment: usage-flow;
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
    color: #5a68ff;
}

.uf {
    position: relative;
    padding: 72px 0;
    background: #f6f7fb;
    overflow: hidden;
}
.uf .container {
    position: relative;
}
.uf__title {
    margin: 0 0 32px;
    text-align: center;
    font-weight: 700;
    font-size: clamp(22px, 3.2vw, 32px);
}
.uf__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.uf-card {
    background: #fff;

    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.uf-card__media {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.uf-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.uf-card__step {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #0f0f12;
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 0.35em 0.6em;
}
.uf-card__body {
    padding: 14px 16px;
}
.uf-card__body h3 {
    margin: 0.1em 0 0.35em;
    font-size: 1.05rem;
}
.uf-card__body p {
    margin: 0;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
}
.uf__cta {
    margin-top: 34px;
    background: #5b57ff;
    color: #fff;

    padding: 24px;
}
.uf__cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.uf__cta h3 {
    margin: 0;
    font-size: clamp(18px, 2.4vw, 24px);
}
.uf__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.8em 1.2em;
    background: #fff;
    color: #333;
    font-weight: 800;
}
/* STEP01：左上コーナーの三角バッジ（ロゴと同グラデーション） */
.uf-card__step {
    top: 0;
    left: 0;
    width: 90px;
    height: 90px;
    padding: 10px 12px;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.03em;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    /* 三角形に切り抜き */
    clip-path: polygon(0 0, 100% 0, 0 100%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    font-size: 1.5rem;
}

@media (max-width: 980px) {
    .uf__grid {
        grid-template-columns: 1fr;
    }
    .uf__cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .usage-flow .section_title_shadow {
        transform: translateY(0);
    }
}
