@charset "UTF-8";

:root {
    /*カラー変数*/
    --main-color: #ef8c89;
    --main-color-r: 239;
    --main-color-g: 140;
    --main-color-b: 137;
}

.fx {
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
}

.bgc-mainclor_pale {
    background-color: rgba(var(--main-color-r), var(--main-color-g), var(--main-color-b), 0.1)
}

.el-txt_main {
    font-size: 1.6rem;
    line-height: 1.7;
    display: block;
    width: 100%;
    max-width: 720px;
    margin-right: auto;
    margin-left: auto;
}

.bl-mainVisual {
    padding-top: 27%;
    background: url(../img/common/top_visual.png) no-repeat center center;
    background-size: cover;
}

.el-ttl_head {
    padding-top: 27%;
    background: url(../img/common/head_visual.png) no-repeat center center;
    background-size: cover;
    position: relative;
}

.el-ttl_head h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: 600;
}

@media screen and (max-width:768px) {
    .bl-mainVisual {
        padding-top: 38%;
        background: url(../img/common/top_visual_sp.png) no-repeat center center;
        background-size: cover;
    }

    .el-ttl_head {
        padding-top: 36%;
        margin-bottom: 20px;
    }

    .el-ttl_head h1 {
        font-size: 2.2rem;
        width: 100%;
        text-align: center;
    }

}

.sec-recruit .el-ttl_head,
.sec-newslist .el-ttl_head {
    margin-bottom: 70px;
}

@media screen and (max-width:768px) {

    .sec-recruit .el-ttl_head,
    .sec-newslist .el-ttl_head {
        margin-bottom: 40px;
    }
}

/*———————————
トップ＿訪問診療
———————————*/

.page-visiting-care .news {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    margin-bottom: 10px;
}

@media screen and (max-width: 769px) {
    .page-visiting-care .news {
        -webkit-box-align: start;
        -webkit-align-items: flex-start;
        align-items: flex-start;
    }
}

.page-visiting-care .news__date {
    margin-right: 2em;
    font-size: 13px;
    font-size: 1.3rem;
}

.page-visiting-care .news__text {
    font-size: 16px;
    font-size: 1.6rem;
}

@media screen and (max-width: 769px) {
    .page-visiting-care .news__text {
        word-break: break-all;
        font-size: 14px;
        font-size: 1.4rem;
    }
}

.page-visiting-care .news-more {
    text-align: right;
    font-size: 14px;
    font-size: 1.4rem;
}

.page-visiting-care .news-more a {
    position: relative;
    display: inline-block;
    padding: 0 12px 0 0;
    vertical-align: middle;
    text-decoration: none;
}

.page-visiting-care .news-more a::after {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 2px;
    margin: auto;
    vertical-align: middle;
    content: "";
    width: 6px;
    height: 6px;
    border-top: 2px solid var(--main-color);
    border-right: 2px solid var(--main-color);
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

/*———————————
追加パーツ .bl-inlink
———————————*/

/*
インナーリンク
———————————*/
.bl-inlink {
    padding: 50px 20px 0;
    justify-content: space-around;
    flex-wrap: wrap;
    width: 500px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 60px;
    box-sizing: border-box;
}

.bl-inlink_item {
    width: 45%;
    max-width: 400px;
    justify-content: center;
    align-items: center;
    position: relative;
    border: 1px solid var(--main-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
    height: 50px;
    color: var(--main-color);
    box-sizing: border-box;
    transition: 0.5s;
}

.bl-inlink_item a {
    color: #000;
    width: 100%;
    padding-left: 10px;
    padding-right: 30px;
    text-align: center;
    transition: 0.5s;
    display: flex;
    justify-content: center;align-items: center;

}

.bl-inlink_item:hover {
    background-color: var(--main-color);
    color: #fff;
    transition: 0.5s;
}

.bl-inlink_item:hover a {
    color: #fff;
    transition: 0.5s;
    opacity: 1;
}

.bl-inlink_item a:before {
        font-family: "Font Awesome 5 Free";
    content: "\f054";
    font-weight: 900;
    position: absolute;
    right: 10px;
    color: var(--main-color);
    transition: 0.5s;
    font-size: 1.6rem;
}

.bl-inlink_item:hover a:before {
    color: #fff;
    transition: 0.5s;
}

@media screen and (max-width:768px) {
    .bl-inlink {
        width: 100%;
        justify-content: space-between;
    }

    .bl-inlink_item {
        width: 48%;
        margin-bottom: 15px;
        font-size: 1.6rem;
    }
}

/*
ニュースリスト
———————————*/
.sec-news_inner {
    align-items: stretch;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.bl-news {
    width: 29.1%;
    padding-left: 2%;
    padding-right: 2%;
    flex-direction: column;
    border-left: 1px solid #ddd;
}

.bl-news:nth-of-type(3n) {
    border-right: 1px solid #ddd;
}

.bl-news_imgWrap {
    aspect-ratio: 3 / 2;
    margin-bottom: 10px;
    overflow: hidden;
}

.bl-news_img {
    height: 100% !important;
    width: 100%;
    object-fit: cover;
}

.bl-news_txtWrap {
    width: 100%;
}

.bl-news_ttl {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.bl-news_ttl > span {
    font-size: 1.4rem;
    padding-bottom: 10px;
}

.bl-news_date {
    font-size: 1.4rem;
}

@media screen and (max-width:768px) {
    .sec-news_inner {
        flex-direction: column;

    }

    .bl-news {
        width: 100%;
        padding: 15px 0px;
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        border: none;
        border-top: 1px solid #ddd;

    }

    .bl-news:nth-of-type(3n) {
        border-right: none;
    }

    .bl-news:last-of-type {
        border-bottom: 1px solid #ddd;
    }

    .bl-news_imgWrap {
        width: 38%;
    }

    .bl-news_img {
        margin-bottom: 0;
    }

    .bl-news_txtWrap {
        width: 62%;
        padding: 0 0 0 15px;
    }
}

.sec-newslist .bl-news {
    margin-bottom: 20px;
}

@media screen and (max-width:768px) {
    .sec-newslist .bl-news {
        margin-bottom: 0;
    }
}

/*
リンク箱
———————————*/

.el-linkbox {
    justify-content: center;
}

.el-linkbox a {
    width: 30%;
    position: relative;
    font-size: 1.6rem;
    border: 1px solid var(--main-color);
    padding: 10px;
    justify-content: center;
}

.el-linkbox a::before {
    font-family: "Font Awesome 5 Free";
    content: "\f054";
    font-weight: 900;
    position: absolute;
    right: 10px;
    color: var(--main-color);

}

@media screen and (max-width:768px) {
    .el-linkbox a {
        width: 45%;
    }

}

/*———————————
トップページ追加
———————————*/

/*
.sec-summary
———————————*/
.bl-summary {
    flex-wrap: wrap;
    justify-content: space-between;
}

.bl-summary_item {
    width: 100%;
    margin-bottom: 40px;
    justify-content: space-between;
}

.bl-summary_item > div:nth-child(1) {
    width: 48%;
}

.bl-summary_item > div:nth-child(2) {
    width: 48%;

}

.bl-summary_imgWrap > img {
    width: 100%;
}

.bl-summary_txtWrap h3 {
    font-size: 2.2rem;
    font-weight: bold;
}

.bl-summary_txtWrap h3 span {
    font-size: 1.6rem;
    display: block;
    margin-bottom: 10px;
}

.bl-summary_txtWrap p {
    font-size: 1.6rem;
    margin-bottom: 15px;
}

@media screen and (max-width:768px) {
    .bl-summary_imgWrap {
        margin-bottom: 10px;
    }

}

.bl-summary_linkWrap {
    flex-wrap: wrap;
    justify-content: space-between;
    box-sizing: border-box;
}

.bl-summary_linkWrap > a {
    font-size: 1.6rem;
    width: 47%;
    margin-bottom: 10px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--main-color);
    color: var(--main-color);
    padding: 10px;
    box-sizing: border-box;

}

.bl-summary_linkWrap > a:before {
    font-family: "Font Awesome 5 Free";
    content: "\f054";
    font-weight: 900;
    color: var(--main-color);
    right: 10px;
    position: absolute;
}

.un-summry_1col {
    width: 47%;
    justify-content: center;
    align-items: stretch;
    text-align: center;
    flex-direction: column;
    box-sizing: border-box;
}

.un-summry_1col .bl-summary_txtWrap {
    border: 1px solid var(--main-color);
    border-top: none;
    padding-top: 10px;
    box-sizing: border-box;
}

.un-summry_1col > .bl-summary_imgWrap {
    width: 100%;
    display: contents;
}

.un-summry_1col > div:nth-child(2) {
    width: 100%;
}

.un-summry_1col .bl-summary_linkWrap {
    justify-content: center;
    margin-bottom: 10px;
}

@media screen and (max-width:768px) {
    .bl-summary_item {
        flex-direction: column;
    }

    .bl-summary_imgWrap {
        order: 1;
    }

    .bl-summary_txtWrap {
        order: 2;
    }

    .bl-summary_item > div:nth-child(1) {
        width: 100%;
    }

    .bl-summary_item > div:nth-child(2) {
        width: 100%;
    }

    .un-summry_1col {
        width: 100%;
    }

    .bl-summary_txtWrap h3 {
        font-size: 2rem;
    }

    .bl-summary_txtWrap p {
        font-size: 1.4rem;
    }

    .bl-summary_linkWrap > a {
        font-size: 1.5rem;
        padding: 6px;
        width: 48%;
    }

    .bl-summary_linkWrap > a:before {
        font-size: 1.3rem;
        right: 5px;
    }
}

.bl-treatment {
    padding: 30px;
}

@media screen and (max-width:768px) {}

.bl-treatment_other {
    border: 1px solid var(--main-color);
    background-color: #fff;
    padding: 20px;
    line-height: 1.6;
    font-size: 1.7rem;
    border-radius: 5px;
}

.bl-treatment_other span {
    display: block;
    text-align: center;
    font-size: 1.6rem;
    margin-top: 10px;
}

@media screen and (max-width:768px) {
    .sec-treatment.wrap {
        margin-left: 0;
        margin-right: 0;
    }

    .bl-treatment {
        padding: 30px 20px;
    }

    .bl-treatment_other {
        font-size: 1.6rem;
        padding: 17px 15px;
    }

    .bl-treatment_other span {
        font-size: 1.4rem;
    }

}

/*
流れ
———————————*/
.bl-flow {
    counter-reset: number 0;
}

.bl-flow li {
    background-color: var(--main-color);
    color: #fff;
    font-size: 2.2rem;
    font-weight: 500;
    position: relative;
    border-radius: 8px;
    padding: 10px 10px 10px 70px;
    margin-bottom: 40px;
    flex-direction: column;
    justify-content: center;
}

.bl-flow li > span {
    font-size: 1.8rem;
}

.bl-flow li a {
    color: #fff;
}

.bl-flow li::before {
    counter-increment: number 1;
    content: "0"counter(number);
    position: absolute;
    left: 15px;
    font-size: 3rem;
    font-weight: normal;
    border-right: 1px solid #fff;
    padding-right: 10px;
    line-height: 5;
}

.bl-flow li::after {
    content: "▼";
    position: absolute;
    font-size: 3rem;
    left: 16px;
    bottom: -30px;
    color: var(--main-color);
}

.bl-flow li:last-of-type::after {
    content: none;
}

@media screen and (max-width:768px) {
    .bl-flow li {
        font-size: 1.8rem;
    }

    .bl-flow li > span {
        font-size: 1.6rem;
    }

    .bl-flow li::before {
        font-size: 2.5rem;
    }
}

.sec-greeting {
    margin-bottom: 50px;
}
.sec-greeting img{
    width: 100%;
    margin: 30px auto 60px;
    display: block;
    max-width: 720px;
}

/* ケアプラン */

.el-box_full {
    text-align: center;
    padding: 30px 20px;
}

.el-box_full p {
    font-size: 2.6rem;
    margin-bottom: 10px;
    font-weight: bold;
}

p.el-box_notice {
    font-size: 1.5rem;
    font-weight: normal;
}

@media screen and (max-width:768px) {
    .el-box_full p {
        font-size: 2.2rem;
    }
}

.sec-area h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.sec-area br {
    display: none;
}

.sec-service .el-box_full p {
    font-size: 1.8rem;
    text-align: left;
    width: 100%;
    max-width: 500px;
    display: block;
    margin-right: auto;
    margin-left: auto;
}

@media screen and (max-width:768px) {
    .sec-area h3 {
        font-size: 1.6rem;
    }

    .sec-area br {
        display: block;
    }

    p.el-box_notice {
        font-size: 1.5rem;
        font-weight: normal;
    }

    .sec-service .el-box_full p {
        font-size: 1.6rem;
    }
}
