/* 全体のラップ */
.service_wrap {
    background: url("../img/initial/bg.webp")repeat left/80%;

}

.service_flex {
    display: flex;
    width: 100%;
    margin-top: 100px;
}

/* ボタン */
.service_btn {
    background-color: var(--blue);
    color: var(--dark-blue);

    border-radius: 1.5rem;
    box-sizing: border-box;
    cursor: pointer;
    display: inline-block;
    font-size: 1rem;
    letter-spacing: 0.1rem;
    line-height: 1;
    padding: 0.8rem 1.6rem;
    text-align: center;
    text-decoration: none #0d172a solid;
    text-decoration-thickness: auto;
    transition: all .1s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 3px 3px 0px rgba(84, 84, 85, 0.673);
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    border: solid 2px var(--dark-blue);
    white-space: nowrap;
    font-weight: bold;
}

.service_btn:hover {
    background-color: var(--dark-blue);

    color: white;
    border: 2 solid #e2e8f0;
    transform: translate(3px, 3px);
    box-shadow: 0px 0px;
    transition: all 0.2s;
}

/* メニュー */
.service_aside {
    width: 230px;
    height: fit-content;
    position: fixed;
    background-color: rgba(255, 255, 255, 0.679);
    border-radius: 0 30px 30px 0;
    margin-top: 1rem;
    line-height: 1.3rem;
}

.service_aside_title {
    font-weight: 600;
    padding-left: 2.5rem;
    margin: 1rem 0;
}

.service_aside_cont {
    font-weight: initial;
    padding: 0 0.5rem;
    font-size: 0.9rem;
    line-height: 2rem;
    display: inline-block;
    transition: all 0.1s;
}

.service_aside_cont .span1 {

    background-image: linear-gradient(to top, var(--dark-blue) 3px, transparent 3px);
    background-position: left bottom;
    background-repeat: no-repeat;
    background-size: 0% 100%;
}

.service_aside_cont .span1:hover {
    animation-name: kf_c06a, kf_c06b;
    animation-duration: 1s, 0s;
    animation-delay: 0s, 0.5s;
    animation-fill-mode: forwards;
}

@keyframes kf_c06a {
    50% {
        background-size: 100% 100%;
    }

    100% {
        background-size: 0% 100%;
    }
}

@keyframes kf_c06b {
    100% {
        background-position: right bottom;
    }
}

/* コンテンツ表示 */
.service_view {
    width: calc(100% - 230px);
    margin-left: 230px;
    padding-right: 10vw;
    padding-left: 5vw;
}

/* ////////////////////////////
/* 事業所 */
.service_content_wrap {
    width: 100%;
    display: flex;
    padding-top: 100px;
    position: relative;
}
.service_content_wrap:nth-of-type(1) {
    margin-top: -30px;
    padding-top: -30px;
}

.service_content_left {
    width: 35%;
    padding: 20px 0;
    z-index: 5;
    max-height: 600px;
}

.service_content_img1 {
    /* width: 90%; */
    height: 100%;
    overflow: hidden;
    border-radius: 300px 0 0 0/300px 0 0 0;
    box-shadow: 2px 2px 10px var(--dark-green);
}

.service_content_img1 img {
    object-fit: cover;
}

.service_content_texts {
    width: 65%;
    padding: 20px;
    z-index: 5;
}

.service_content_titlewrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0.8rem;
    background-color: white;
    border-radius: 0 30px 30px 0;
    border-left: 10px solid var(--dark-blue);
    box-shadow: 2px 2px 4px var(--dark-blue);
}

.service_content_titlewrap .flex {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.service_content_titlewrap h2 {
    width: 80%;
    font-weight: 500;
    color: var(--dark-blue);
    font-size: 1.7rem;
    line-height: 2rem;
    padding-right: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--orange);
    text-shadow: 2px 2px 6px #bec5c4;
}

.service_content_titlewrap .type {
    font-size: 0.9rem;
    padding-top: 0.2rem;
    color: #6f757f;
    letter-spacing: 0.05rem;
}

.service_content_texts_summary {
    border: 2px solid var(--dark-blue);
    margin-top: 10px;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;

    background-color: rgba(255, 255, 255, 0.652);
    font-size: 1.1rem;
}

.service_content_texts_flexwrap {
    display: flex;
    width: 100%;
    padding: 0.4rem;
}

.service_content_texts_flexwrap2 {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0.4rem;
}

.service_content_texts_flexwrap2 p,
.service_content_texts_message_inner {
    text-align: justify;
}

.service_content_texts_left {
    width: 8rem;
    text-align: center;
    background-color: var(--blue);
    border-radius: 7px;
    color: var(--dark-blue);
    font-family: var(--noto);
    font-weight: 700;
}

.service_content_texts_center {
    width: 100%;
    text-align: center;
    background-color: var(--blue);
    border-radius: 7px;
    font-family: var(--noto);
    font-weight: 700;
    color: var(--dark-blue);
}

.service_content_texts_flexwrap p {
    width: calc(100% - 8rem);
    margin-left: 0.6rem;
    padding: 0 1rem 0 0.5rem;
    background-color: white;
    border-radius: 7px;
}

.service_content_texts_flexwrap2 p {
    margin-top: 0.6rem;
    padding: 0 1rem 0 0.5rem;
    background-color: white;
    border-radius: 7px;
}

.service_content_texts_message_inner {
    border: dotted 4px var(--dark-blue);
    background-color: var(--orange);
    padding: 0.9rem;
    border-radius: 20px;
}

.service_content_texts_message {
    position: relative;
    z-index: 0;
    margin-top: 25px;
    padding: 30px;
}

.service_content_texts_message::before {
    content: "";
    position: absolute;
    top: -23px;
    left: 0;
    width: 150px;
    height: 80px;
    z-index: 1;
    background: url("../img/initial/service-message.webp") no-repeat top/contain;
}

.service_bg {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 500px;
    clip-path: polygon(63% 8%, 93% 27%, 100% 77%, 61% 99%, 10% 84%, 0 54%, 17% 18%);
}

.service_bg2 {
    width: 100%;
    height: 100%;
    background-color: white;
    opacity: 0.5;
}

@media screen and (max-width:1200px) {
    .service_content_wrap {
        flex-direction: column;
    }

    .service_content_left,
    .service_content_texts {
        width: 100%;
    }

    .service_content_img1 {
        height: 400px;
    }

    .service_content_img1 img {
        height: 400px;

    }
}

@media screen and (max-width:767px) {
    .service_flex {
        margin-top: 50px;
    }

    .service_aside {
        display: none;
    }

    .service_view {
        margin-left: 0;
        width: 100%;
        padding-right: 5vw;
    }
}

@media screen and (max-width:500px) {
    .service_content_texts_summary p {
        font-size: 0.9rem;
        line-height: 1.6rem;
    }

    .service_content_titlewrap {
        flex-direction: column;
        background-color: transparent;
        border-left: transparent;
    }

    .service_content_titlewrap h2 {
        width: 100%;
        padding-right: 0;
        border-bottom: 2px solid var(--orange);
    }

    .service_content_titlewrap .flex {
        text-align: center;
    }

    .service_content_texts_flexwrap {
        flex-direction: column;
    }

    .service_content_texts_left,
    .service_content_texts_flexwrap p {
        width: 100%;
        margin-left: 0;
        margin-top: 0.6rem;
    }

    .service_content_texts_message {
        padding-right: 0;
        padding-left: 0;
    }

    .service_content_texts {
        padding: 0;
    }

    .service_btn {
        padding: 0.4rem 0.8rem;
        margin-top: 0.5rem;
        margin-bottom: 0.4rem;
    }


    .service_content_titlewrap {
        box-shadow: none;
    }

}