@charset "UTF-8";
/* CSS Document */

/*下層MV*/
#health #lower_mv {
    background: url("../../assets/img/service/health/mv.webp") no-repeat;/*各ページごとに変更*/
    background-size: cover;
    background-position: center;
}
#health main {
    margin-top: 80px;/*各ページごとに変更*/
}
@media (max-width: 768px) {
    #health main {
        margin-top: 40px;
    }
}


/*外部サイトリンク*/
#health_links_wrapper .wrap {
    display: flex;
    gap: 30px;
}
#health_links_wrapper .wrap .box {
    width: calc(50% - 15px);
}
#health_links_wrapper .wrap .box img {
    vertical-align: middle;
    transition: 0.3s;
}
#health_links_wrapper .wrap .box .link_box {
    position: relative;
    overflow: hidden;
}
#health_links_wrapper .wrap .box .text {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 12px 20px;
    background: rgba(0,0,0,.75);
    color: #FFFFFF;
    width: 100%;
    font-size: 2rem;
    font-weight: 400;
    text-align: center;
}
#health_links_wrapper .wrap .box .text span {
    position: relative;
}
#health_links_wrapper .wrap .box .text span::after {
    content: '';
    width: 12px;
    height: 12px;
    border-top: 2px solid var(--LB-color);
    border-right: 2px solid var(--LB-color);
    transform: rotate(45deg) translateY(-50%);
    position: absolute;
    top: 50%;
    right: -20px;
    transition: 0.3s;
}
#health_links_wrapper .wrap .box a:hover img {
    transform: scale(1.05);
}
#health_links_wrapper .wrap .box a:hover .text span::after {
    right: -25px;
}

#health_links_wrapper .wrap .box .text_box {
    text-align: center;
    margin-top: 16px;
}
#health_links_wrapper .wrap .box .text_box dt {
    display: inline-block;
    font-size: 1.6rem;
    letter-spacing: 1.8px;
    color: #FFFFFF;
    font-weight: 400;
    background: var(--LB-color);
    padding: 5px 16px 6px;
}
#health_links_wrapper .wrap .box .text_box dd {
    margin-top: 16px;
}
#health_links_wrapper .wrap .box .text_box a {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--LB-color);
    display: inline-block;
    margin-top: 8px;
    transition: 0.3s;
}
#health_links_wrapper .wrap .box .text_box a:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    #health_links_wrapper .wrap {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }
    #health_links_wrapper .wrap .box {
        width: 100%;
    }
    #health_links_wrapper .wrap .box .text_box dt {
        font-size: 1.5rem;
        letter-spacing: 1.2px;
        padding: 2px 12px 3px;
    }
    
    #health_links_wrapper .wrap .box .text {
        padding: 6px 12px;
        font-size: 1.6rem;
    }
    #health_links_wrapper .wrap .box .text span::after {
        width: 9px;
        height: 9px;
        right: -15px;
    }
}


/*画像*/
section.health_image {
    margin-top: 100px;
}
#health .health_image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    vertical-align: middle;
}
@media (max-width: 768px) {
    section.health_image {
        margin-top: 80px;
    }
}


/*事業内容一覧*/
@media (max-width: 768px) {
    #health .service-list {
        margin-top: 80px;
    }   
}