.content * {
    line-height: 1.5;
}

.content .center {
    max-width: 1200px;
}

.content article .entry-content {
    margin-bottom: 0;
}

.home .container, .home .row, .home .content, .home .span12 {
    max-width: 100%;
    width: 100%;
    margin: 0;
}

.padding-block {
    padding: 80px 0;
}

p {
    margin: 1em 0;
}

p:empty {
    display: none;
}

.top-text-area {
    background-color: #fef7dd;
    padding: 80px 0;
}

.top-text-in {
    width: 100%;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    color: var(--fontcolor);
}

.top-text-img {
    width: 39%;
}

.top-text-img img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    border-radius: 15px;
}

.top-text-main {
    width: 55%;
}

a.link-botan {
    display: inline-block;
    background: white url(images/botan-arrow-color.png);
    border: 2px solid #00afcc;
    padding: 10px 65px;
    border-radius: 50px;
    background-position: right 15px center;
    background-repeat: no-repeat;
    color: #00afcc;
    font-size: 21px;
    position: relative;
}

/* a.link-botan::after {
    content: " ";
    display: inline-block;
    border: 7px solid transparent;
    border-left-color: #00afcc;
    margin-left: 15px;
    font-weight: bold;
} */

a.link-botan:hover {
    opacity: 0.5;
    text-decoration: none;
}

.top-text-bottom {
    width: 100%;
    overflow: hidden;
    padding-top: 80px;
    margin-top: 40px;
    position: relative;
}

.top-text-bottom-back {
    background-color: #00afcc;
    border-radius: 0 15px 15px 0;
    height: 140px;
    width: calc((100% - 1000px) / 2 + 1000px);
}

.top-text-bottom ul {
    display: table;
    table-layout: fixed;
    position: absolute;
    right: calc((100% - 1000px) / 2);
    top: 0;
    width: 40%;
    padding-right: 20px;
}

.top-text-bottom ul li {
    display: table-cell;
    padding-left: 10px;
}

.top-text-bottom ul li img {
    border-radius: 10px;
}

img.top-nayami-title {
    display: block;
    margin: auto;
}

ul.top-nayami-list {
    margin-top: 20px;
    display: table;
    table-layout: fixed;
    width: 100%;
}

ul.top-nayami-list li {
    display: table-cell;
}

ul.top-nayami-list li img {
    display: block;
    margin: auto;
}

/* .back-color {
    background-color: whitesmoke;
} */

.top-back-borderimg {
    background-color: #fffbf3;
    background-image: url(images/border-back.png);
}

.back-borderimg {
    /* background-color: #f5f1e8; */
    padding: 25px;
    text-align: center;
    /* background-image: url(images/border-back.png); */
}

.back-border-title {
    display: table;
    margin: auto;
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: var(--fontcolor);
    background: linear-gradient(to bottom, transparent 60%, #fffab2 40%);
}

.back-border-title span {
    color: #00afcc;
}

.back-borderimg ul {
    display: flex;
    justify-content: space-between;
}

.back-borderimg ul li {
    width: 32%;
    color: var(--fontcolor);
}

.back-borderimg ul li img {
    display: block;
    margin: auto;
}

.back-borderimg ul li span {
    display: inline-block;
    margin: 0 5px;
    color: #00afcc;
    background: linear-gradient(to bottom, transparent 60%, #fffab2 40%);
    font-weight: bold;
}

.top-case {
    text-align: center;
    background-image: url(images/top-pagebottom.jpg);
    background-size: cover;
    background-position: center center;
}

.top-case-in {
    padding: 25px;
    padding-top: calc(25px + 10%);
    background-color: #fef4d9;
    position: relative;
    text-align: left;
    margin-bottom: 40px;
    margin-top: 10%;
}

.top-case-in ul {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.top-case-in ul li {
    width: 32%;
    margin-bottom: calc((100% - (32% * 3)) / 3);
    background-color: white;
    display: flex;
    align-items: center;
}

.top-case-in ul li .top-case-list {
    display: flex;
    /* justify-content: space-between; */
    align-items: center;
    width: 100%;
    padding: 15px;
    text-decoration: none;
    color: var(--fontcolor);
}

.top-case-in ul li .top-case-list b {
    color: #00afcc;
    font-size: 20px;
    display: block;
    margin-bottom: 5px;
}

.top-case-icon {
    margin-right: 10px;
}

img.top-case-title {
    display: block;
    margin: auto;
    position: absolute;
    left: 50%;
    top: -20%;
    transform: translateX(-50%);
}

h2.top {
    padding: 0;
    margin: 0;
    font-weight: normal;
    background: none;
    color: #00afcc;
    text-align: center;
    border: none;
    font-size: 32px;
    margin-bottom: 1em;
}

h3.top {
    padding: 0;
    margin: 0;
    font-weight: normal;
    background: none;
    color: #00afcc;
    border: none;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 1em;
}

ul.top-tokutyo {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

ul.top-tokutyo li {
    width: 32%;
    margin-bottom: calc((100% - (32% * 3)) / 3);
    background-color: white;
    display: block;
    padding: 10px;
    text-align: center;
    color: var(--fontcolor);
    border: 1px solid whitesmoke;
}

.top-tokutyo-bottom {
    background-color: white;
    margin-top: 40px;
    padding: 25px;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-around;
    width: 100%;
    color: var(--fontcolor);
    align-items: center;
}

.top-tokutyo-bottom > div {
    width: 50%;
}

.tokutyo-bottom-img img {
    display: block;
    margin: 0 auto 1rem;
}

.top-tokutyo-bottom .tokutyo-bottom-img img{
    margin: 0 auto ;
}

.top-aisatu {
    background-image: url(images/top-aisatu.jpg);
    background-size: cover;
    background-position: center center;
    padding-bottom: 80px;
}

.top-aisatu-in {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-aisatu-img {
    width: 37%;
}

.top-aisatu-text {
    width: 60%;
}

.top-aisatu-text {
    color: var(--fontcolor);
}

.top-aisatu-title {
    font-size: 16px;
}

.top-aisatu-text b {
    color: #00afcc;
    font-size:  20px;
}

.top-aisatu-title b {
    color: #00afcc;
    font-size: 28px;
    border-bottom: 1px solid #00afcc;
    padding-bottom: 5px;
    margin-bottom: 15px;
    display: block;
}

.top-aisatu-title b::after {
    content: "― 総院長からのメッセージ";
    font-size: 16px;
    display: inline-block;
    margin-left: 5px;
}

.top-aisatu-title span {
    display: block;
    background-color: white;
    border-radius: 10px;
    padding: 10px;
    font-size: 120%;
    margin-top: 10px;
    box-shadow: 0 4px 10px #ef970040;
}

.top-pagebanar {
    /* background-image: url(images/top-pagebanar.jpg); */
    background-size: cover;
    background-position: center center;
    /* padding-bottom: 0; */
}

.top-pagebanar-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* .top-pagebanar-in {
    transform: translateY(-120px);
} */

.top-pagebanar-top a {
    display: block;
    width: 48%;
    border: 2px solid #00afcc;
    border-radius: 15px;
    padding: 10px;
    padding-top: 260px;
    padding-left: 30%;
    background-image: url(images/first-banar-back.jpg);
    background-size: cover;
    background-position: center center;
    overflow: hidden;
    position: relative;
    transition: 0.2s;
}

.top-pagebanar-top a:last-of-type {
    background-image: url(images/flow-banar-back.jpg);
}

.top-pagebanar-top a span.top-pagebanar-title {
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #00afccba;
    font-size: 28px;
    color: white;
    /* font-weight: bold; */
    text-align: center;
}

.top-pagebanar-top a span.top-pagebanar-botan {
    display: block;
    padding: 15px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    background: #00afcc url(images/botan-arrow.png);
    background-position: right 15px center;
    background-repeat: no-repeat;
    text-align: center;
}

/* .top-pagebanar-top a span.top-pagebanar-botan::after {
    content: " ";
    display: inline-block;
    border: 5px solid transparent;
    border-left-color: white;
    margin-left: 10px;
} */

.top-pagebanar-top a:hover {
    text-decoration: none;
    opacity: 0.5;
    transform: scale(0.95);
}

.top-pagebanar-bottom a {
    display: block;
    background-image: url(images/qa-banar-back.jpg);
    background-size: 65%;
    background-position: right center;
    padding-right: 60%;
    margin-top: 2%;
    border: 2px solid #00afcc;
    border-radius: 15px;
    overflow: hidden;
    transition: 0.2s;
}

.top-pagebanar-bottom a .top-pagebanar-bottom-in {
    display: block;
    padding: 120px 15px;
    background-color: #00afcc;
    color: white;
}

.top-pagesbanar-bottom-title {
    font-size: 28px;
    color: white;
    display: block;
    margin-bottom: 10px;
    /* border-bottom: 1px solid white; */
}

.top-pagebanar-bottom a span {
    font-size: 18px;
}

.top-pagebanar-bottom a:hover {
    text-decoration: none;
    opacity: 0.5;
    transform: scale(0.95);
}

.top-pagebottom {
    background-image: url(images/top-pagebottom.jpg);
    background-size: cover;
    background-position: center center;
}

.top-pagebottom-top ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 20px;
}

.top-pagebottom-top ul li {
    width: 32%;
}

.top-pagebottom-top a img {
    margin: auto;
    width: auto;
    transition: 0.2s;
}

.top-pagebottom-top a:hover img {
    opacity: 0.5;
    transform: scale(0.95);
}

.top-banar-last a img {
    margin: auto;
    width: auto;
    transition: 0.2s;
}

.top-banar-last a:hover img {
    opacity: 0.5;
    transform: scale(0.95);
}

img.title-img {
    display: block;
    margin-bottom: 2em;
}

.top-banar-last {
    background-color: #fffcf3;
}

@media screen and (max-width: 1200px) {

    .top-pagebanar-top a {
        padding-left: 20%;
    }

    img.top-case-title {
        width: 70%;
    }

    .new-footer ul li a {
        font-size: 12px;
    }

}

@media screen and (max-width: 780px) {

    .home .container, .home .row, .home .content, .home .span12 {
        padding: 0;
    }

    .home .post {
        width: 100%;
    }

    .content .center {
        padding: 0 5%;
    }

    .padding-block {
        padding: 40px 0;
    }

    .top-text-area {
        padding: 40px 0;
    }

    .top-text-bottom-back {
        width: 90%;
    }

    .top-text-img, .top-text-main {
        width: 100%;
    }

    .top-text-in {
        flex-direction: column;
    }

    .top-text-bottom ul {
        display: table;
        table-layout: fixed;
        right: -40%;
        top: 0;
        width: 90%;
        padding-right: 0;
        transform: translateX(-50%);
    }

    .top-text-bottom {
        padding-top: 40px;
    }

    .top-text-bottom-back {
        height: 20vw;
    }

    .top-text-img img {
        height: 200px;
        margin-bottom: 40px;
    }

    a.link-botan {
        display: block;
        width: 75%;
        text-align: center;
        margin: auto;
        padding: 15px;
        font-size: 4vw;
    }

    ul.top-nayami-list {
        display: flex;
        overflow: hidden;
        justify-content: space-evenly;
        flex-wrap: wrap;
    }

    ul.top-nayami-list li {
        padding: 5px;
        width: 32%;
    }

    /* ul.top-nayami-list li:last-of-type {
        display: block;
        margin: auto;
        float: none;
    } */

    .back-borderimg {
        padding: 0;
    }

    .back-borderimg ul {
        flex-direction: column;
    }

    .back-borderimg ul li {
        width: 100%;
    }

    .top-case-in {
        padding: 0;
        background: none;
    }

    .top-case-in ul li {
        width: 50%;
        padding: 0;
        border: 4px solid #f5f1e8;
    }

    .top-case-in ul li a {
        text-align: center;
        margin: auto;
    }

    .top-case-icon {
        margin-right: 0;
    }

    .top-case-in ul li .top-case-list {
        padding: 10px;
        flex-direction: column;
        margin-bottom: 0;
    }

    .top-case-text {
        text-align: center;
    }

    .top-case-text span {
        font-size: 3vw;
        display: none;
    }

    img.top-case-title {
        position: static;
        transform: none;
        width: auto;
    }

    h2.top {
        font-size: 6vw;
    }

    h3.top {
        font-size: 5vw;
    }

    .top-tokutyo-bottom .tokutyo-bottom-img img{
        margin: 0 auto 1rem;
    }

    ul.top-tokutyo {
        align-items: stretch;
    }

    ul.top-tokutyo li {
        width: 49%;
        text-align: left;
        padding: 5px;
    }

    ul.top-tokutyo li p {
        font-size: 14px;
    }

    .top-tokutyo-bottom {
        padding: 10px;
        flex-direction: column;
    }

    .top-tokutyo-bottom > div {
        width: 100%;
    }

    .top-aisatu-in {
        flex-direction: column;
    }

    .top-aisatu-img {
        width: 100%;
    }

    .top-aisatu-img img {
        width: 100%;
        margin: 1rem auto 0;
        display: block;
    }

    .top-aisatu-text {
        width: 100%;
    }

    .top-pagebanar-in {
        transform: none;
    }

    .top-pagebanar-top a {
        width: 49%;
        margin-bottom: 20px;
        padding-top: 120px;
        padding-left: 0;
        background-position: bottom 30px center;
    }

    /* .top-pagebanar-top {
        flex-direction: column;
    } */

    .top-pagebanar-top a span.top-pagebanar-botan {
        font-size: 3vw;
        display: none;
    }

    .top-pagebanar-bottom a {
        padding: 0;
        padding-top: 160px;
        background-size: cover;
        position: relative;
        background-position: bottom;
    }

    .top-pagebanar-bottom a .top-pagebanar-bottom-in {
        padding: 10px;
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        text-align: center;
    }

    .top-pagesbanar-bottom-title {
        font-size: 5vw;
        border-bottom: none;
        margin-bottom: 0;
        background: url(images/botan-arrow.png);
        background-position: right 15px center;
        background-repeat: no-repeat;
    }

    /* .top-pagesbanar-bottom-title::after {
        content: " ";
        display: inline-block;
        border: 5px solid transparent;
        border-left-color: white;
        margin-left: 10px;
    } */

    .top-pagebanar-bottom a span {
        font-size: 3vw;
        display: none;
    }

    .top-pagebottom-top ul {
        flex-wrap: wrap;
        margin-bottom: 0;
    }

    .top-pagebottom-top ul li {
        width: 49%;
        margin-bottom: 10px;
    }

    .top-pagebanar-top a span.top-pagebanar-title {
        font-size: 4vw;
        bottom: 0;
        padding: 10px;
        top: auto;
        background: #00afcc url(images/botan-arrow.png);
        background-position: right 10px center;
        background-repeat: no-repeat;
        background-size: 10%;
        font-weight: normal;
    }

    .top-pagebanar-top a, .top-pagebanar-bottom a {
        border-radius: 5px;
    }

    /* .top-pagebanar-top a span.top-pagebanar-title::after {
        content: " ";
        display: inline-block;
        border: 5px solid transparent;
        border-left-color: white;
        margin-left: 10px;
    } */

    .top-pagebottom-top ul li img {
        display: block;
        margin: auto;
    }

    .back-borderimg ul li img {
        width: 55%;
    }

    .top-aisatu-title b {
        font-size: 6vw;
    }

    .top-aisatu-title b::after {
        font-size: 4vw;
    }

    img.title-img {
        width: auto;
        height: 70px;
    }

}

/**********************************************************/
/********お問い合わせ・CTA***********************************/
/**********************************************************/
#top_contact_area {
    display: flex;
    padding: 72px 0;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    background-image: url(../exray/images/contact_bg.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

#top_contact_area_inner {
    width: 100%;
    max-width: 900px;
    height: 100%;
    text-align: center;
    position: relative;
    z-index: 0;
    padding: 45px 0;
}

#top_contact_area #top_contact_area_inner::before {
    content: "";
    width: 100%;
    max-width: 900px;
    background: #fff;
    background-color: rgba(255, 255, 255, 0.67);
    display: block;
    height: 100%;
    z-index: -5;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 10px;
}

#top_contact_area_inner .contact_title {
    margin-bottom: 0;
}

#top_contact_area h2 {
    margin-top: 10px;
    color: #494949;
    background: none;
    font-size: 18px;
    letter-spacing: 1px;
    font-weight: 500;
    text-align: center;
    text-shadow: none;
    border-left: none;
}

#top_contact_area h3 {
    color: #663400;
    background: none;
    font-size: 32px;
    text-align: center;
    margin-top: 0;
    margin-bottom: 24px;
    line-height: 1.25em;
    letter-spacing: 3px;
    font-weight: 600;
    border-left: none;
    border-bottom: none;
    padding: 10px 0;
}

#top_contact_area ul {
    display: flex;
    gap: 0px;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 834px;
    margin: 0 auto;
}

#top_contact_area ul li {
    width: 48%;
}

#top_contact_area ul li:nth-child(1) {
    margin-bottom: 24px;
    width: 100%;
}

#top_contact_area ul li img {
    margin: 0 auto;
}

/*****768以下*****/
@media screen and (max-width:768px) {
    #top_contact_area {
        padding: 16% 3%;
    }

    #top_contact_area_inner {
        padding: 6% 4%;
    }

    #top_contact_area h2 {
        font-size: 4.5vw;
        border-left: none;
        margin-bottom: 0px;
    }

    #top_contact_area h3 {
        font-size: 4.35vw;
        letter-spacing: 0.6vw;
        margin-top: 0.5em;
        border-left: none;
        border-bottom: none;
        padding: 0 0 10px;
    }

    #top_contact_area ul {
        flex-direction: column;
        gap: 0;
    }

    #top_contact_area ul li {
        width: 100%;
        max-width: 450px;
        margin-bottom: 4%;
    }

    #top_contact_area ul li:nth-child(3) {
        background: #34b4e3;
        border-radius: 8px;
    }

    #content #top_contact_area ul li:nth-child(4) {
        background: #16bc12;
        border-radius: 8px;
    }

    #content #top_contact_area ul li label img {
        image-rendering: auto;
    }
}
.top-case-in a:hover {
    opacity: 0.7;
    color: unset;
    text-decoration: unset;
}