/* =========================
   section2（サービス一覧）
========================= */
main > .section:nth-of-type(2) {
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, #dbe8dd 0%, #b8d0b9 45%, #9fba9d 100%);
    isolation: isolate;
    padding-bottom: 0;
}

/* =========================
   タイトル・本文
========================= */
#section-service .secTitle {
    color: var(--font-green);
}
#section-service .text-contents {
    color: var(--font-green);
    padding: 0 24px;
}

/* =========================
   横から出る葉っぱ
========================= */
.right-edge {
    position: fixed;
    top: 88%;
    right: -350px; /* ←最初は画面の外に隠す */
    transform: translateY(-50%);
    pointer-events: none;
    transition: right 1.7s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 10;
}
/* 表示状態 */
.right-edge.is-active {
    right: -180px; /* ← ひょいっと出る位置 */
}
.right-edge img {
    width: 350px;
    height: auto;
}

#section-service .sil-left-leaf img {
    --x: calc(50% - clamp(420px, 42vw, 1300px));
    --y: -270px;
    transform: translate(var(--x), var(--y)) scaleX(-1) rotate(5deg);
    width: 350px;
    height: auto;
}

/* =========================
   カード群
========================= */
.works-grid-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    margin: 0 auto;
    padding-inline: 24px;
}
.work-card {
    position: relative;
    background: var(--accent-beige);
    border-radius: 24px;
    padding: 32px 28px 28px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}
.work-card .icon {
    position: relative;
    margin: 0 auto 16px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #f6efe6;
    border: 2px solid var(--accent-green);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
    padding: 8px;
    box-sizing: border-box;
}
.work-card .icon image {
    width: 100%;
    height: 100%;
}
.work-card h3 {
    text-align: center;
    font-size: 1.4rem;
    margin: 6px 0 10px;
    color: var(--accent-green);
}
.work-card p {
    color: #445;
    line-height: 1.9;
    margin: 18px 0 18px;
    font-size: 12px;
}
.work-card .scene {
    font-size: 1rem;
    font-weight: 700;
    color: #223;
    display: flex;
    align-items: center;
    gap: 10px;
}
.work-card .scene::after {
    content: "";
    flex: 1 1 auto;
    height: 2px;
    background: linear-gradient(
        90deg,
        var(--accent-green) 40%,
        var(--accent-green) 40%
    );
    border-radius: 1px;
    opacity: 0.85;
}
.work-card .checks {
    list-style: none;
    margin: 0;
    padding: 0;
}
.work-card .checks li {
    position: relative;
    padding-left: 32px;
    line-height: 1.8;
    color: #334;
    font-size: 14px;
}
.work-card .checks li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.3em; /* ★ここがポイント */
    transform: none;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #eef7f2;
    color: var(--accent-green);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 12px;
}
.work-card h3 {
    display: flex;
    justify-content: center;
    text-align: center;
    line-height: 1.3;
    white-space: nowrap;
}

/* ======================================================================
   レスポンシブ対応
====================================================================== */
@media (max-width: 1200px) {
    .works-grid-cards {
        max-width: 720px;
        margin: 0 auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .work-card p {
        text-align: center;
    }
    .work-card .scene {
        margin: 0 0 8px 0;
    }
    .work-card .scene::before {
        content: "";
        flex: 1 1 auto;
        height: 2px;
        background: linear-gradient(
            90deg,
            var(--accent-green) 40%,
            var(--accent-green) 40%
        );
        border-radius: 1px;
        opacity: 0.85;
    }
}
@media (max-width: 1024px) {
    /* 表示状態 */
    .right-edge.is-active {
        right: -250px; /* ← ひょいっと出る位置 */
    }

}

@media (max-width: 768px) {
    .right-edge img {
        display: none;
    }
            #section-service .sil-left-leaf img {
                transform: translate(var(--x), var(--y)) scaleX(-1) rotate(15deg);
        width: 320px;
        height: auto;
    }
}

@media (max-width: 600px) {
    .works-grid-cards {
        grid-template-columns: 1fr;
    }
    .work-card h3 {
        font-size: 18px;
    }
    .work-card .scene {
        font-size: 15px;
    }
}




.fit-slider-section {
    background: #fff;
    padding: 40px 0; /* 緑波形との余白 */
}

.fit-slider {
    position: relative;
    width: 100%;
    height: 40vh; /* PC */
    overflow: hidden;
}

@media (max-width: 768px) {
    .fit-slider {
        height: 32vh; /* SPはちょい低め */
    }
}

.fit-slider .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.6s ease;
}

.fit-slider .slide.active {
    opacity: 1;
}

.fit-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoom 12s ease-in-out infinite;
}

@keyframes zoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.07); }
}

/* 木漏れ日レイヤー */
.slider-lights {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(
        circle,
        rgba(255,255,255,0.25) 0%,
        rgba(255,255,255,0) 70%
    );
    animation: lightMove 7s ease-in-out infinite alternate;
}

@keyframes lightMove {
    0%   { transform: translate(-10%, -10%); opacity: 0.08; }
    100% { transform: translate(10%, 10%); opacity: 0.18; }
}
