@charset "utf-8";

/* =========================
  業務内容タブ
========================= */
/* =========================
  事業内容：スマホ版
========================= */

.shiru_area {
    margin: 50px 20px;
}

.shiru_area h2 {

    width: fit-content;
    margin: 0 auto;
    position: relative;
    text-align: center;

}


.shiru_area h2::before {
    content: "";
    position: absolute;
    width: 32px;
    height: 32px;
    background-image: url("../../img/logo/asirai_maru.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;

    top: -8px;
    right: -17px;
}

.shiru_area h2::after {
    content: "";
    display: block;
    width: 200px;
    height: 1px;
    background-color: #4C9153;
    margin: 10px auto 0;
}


/* タブ */
.service_tab {
    display: flex;
    justify-content: center;
    margin: 40px auto 0;
    padding: 0;
    list-style: none;
}

.service_tab li {
    width: 220px;
    padding: 16px 10px;
    text-align: center;
    background-color: #fff;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    border: 1px solid #b8d8a8;
    color: #4c9153;
    font-weight: 500;
    transition: 0.3s;
    border-radius: 3px;
}

.service_tab li.active {
    background: #6abf4b;
    color: #fff;
}

/* タブ：光が流れるホバーエフェクト */
.service_tab li {
    position: relative;
    overflow: hidden;
}

/* 光の線 */
.service_tab li::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;

    width: 100%;
    height: 100%;

    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.55),
            transparent);

    transition: left 0.6s ease;
}

/* ホバーした時に光を流す */
.service_tab li:hover::before {
    left: 120%;
}

/* タブの中身 */
/* スマホ版 */
.service_content {
    display: none;
    max-width: 1000px;
    margin: 40px auto 0;
    padding: 30px 20px;
    background-image: url("../../img/logo/bc_green.webp");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: left top;
    border-radius: 20px;
    box-shadow: 0 8px 8px rgba(76, 145, 83, 0.3);
}

.service_content.active {
    display: block;
}

.service_body {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.service_info {
    width: 100%;
}

.service_head {
    text-align: center;
}

.service_head h3 {
    color: #4c9153;
    font-size: 20px;
    width: fit-content;
    margin: 0 auto;
    position: relative;
}

.service_head h3::after {
    content: "";
    display: block;
    width: 200px;
    height: 1px;
    background-color: #4c9153;
    margin: 5px auto 0;
}

.service_copy {
    width: fit-content;
    margin: 40px auto;
    color: #e3a72f;
    font-family: "Klee One";
    font-size: 20px;
    font-weight: 500;
    text-align: left;
}

.service_img {
    width: 100%;
}

.service_img img {
    width: 100%;
    display: block;
    border-radius: 4px;
}

.service_scheduleimg {
    margin: 40px auto 0;
}

/* =====================
  事業紹介 写真スライドショー
===================== */

.service_slider {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 6px;
}

.service_slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;

    opacity: 0;
    transform: scale(1.06);
    transition:
        opacity 1.2s ease,
        transform 4s ease;
}

.service_slide.active {
    opacity: 1;
    transform: scale(1);
}

/* スマホ */
/* =========================
  事業内容：PC版
========================= */
@media (min-width: 768px) {




    .service_tab li {
        width: 400px;


    }

    .service_content {
        padding: 60px 70px;
    }

    .service_body {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 60px;
    }

    .service_info {
        width: 50%;
    }

    .service_img {
        width: 50%;
        margin-top: 60px;
    }

    .service_head h3 {
        font-size: 40px;
    }

    .service_copy {
        font-size: 24px;
        margin: 35px auto 45px;
        text-align: center;
    }

    .service_scheduleimg {
        width: 50%;
        margin: 100px auto 0;
    }


}