/*============================================================================

	#mainvisual

============================================================================*/

#mainvisual {
    height: 760px;
    background-color: transparent;
    background-image: url(../images/mainvisual_slide1.png);
}

#mainvisual h2 {
    position: relative;
    margin-left: -24px;
}

nav {
    top: 905px;
    /* headerのheightと同じ値にする */
}

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

    /* スマホ */
    #mainvisual {
        height: 450px;
    }

    .pagetop {
        display: none;
    }

    #mainvisual {
        background-color: transparent;
        background-image: url(../images/mainvisual_slide1.png);
        width: 100%;
        background-size: contain;
        background-size: 500px;
        background-position: top 15px center;
    }

    .top_character .box1 {
        position: relative;
        width: auto;
        margin: 0 auto 35px;
        padding: 190px 0 0;
    }

    .top_character .box1 .inner {
        width: 100%;
        max-width: initial;
        max-width: auto;
        margin: 0 115px 0 0;
        padding: 35px 0 0;
    }

    .mainvisual_catch {
        position: absolute;
        top: 50px;
        width: 100%;
        text-shadow: 0px 0px 4px #ffffff;
        padding: 0 2%;
        text-align: center;
    }

    /*--------麻生区ドクターズ----------*/
    .top_interview .box1 h3.tit01 {
        margin: 0;
    }

    .top_interview {
        height: 555px;
    }

    .top_interview .box1 {
        position: inherit;
        width: auto;
        margin: 0 auto;
        padding: 50vw 0 0;
        display: block;
    }

    .top_interview .inner {
        flex-wrap: wrap;
        display: block;
        margin: 0 auto;
        text-align: center;
    }

    .top_interview .inner p {
        width: 60%;
        display: block;
        margin: 0 auto;
    }

    .top_interview .inner p:first-child {
        margin-bottom: 1.5vh;
    }

    #mainvisual h2 {
        position: relative;
        margin-left: 0;
    }

    .mainvisual_catch h2 span.mvch2 {
        font-size: 25px;
        text-align: center;
        letter-spacing: -0.05em;
    }

    .mainvisual_catch h2 span.mvch2:first-child span:nth-of-type(2) {
        color: #ed636c;
        margin: 0 0 0 -25px;
    }

    .mainvisual_catch h2 span.mvch2:last-child span:nth-of-type(2) {
        margin: 0 0 0 -15px;
    }

    .mainvisual_catch h2 span.mvch2:last-child {
        text-align: center;
    }

    .top_character .box1 .inner ul li:first-child {
        width: auto;
        float: left;
    }

    .top_character .box1 .inner ul li:first-child img:first-child {
        margin: 0;
    }

    .top_character .box1 .inner ul li:last-child {
        width: auto;
        float: left;
    }

    .top_character .box1 .inner ul li:last-child img:first-child {
        margin: 0;
    }

    .top_character .box1 .inner ul li:last-child img:last-child {
        margin: 0;
    }

    .btn01 a::after {
        left: 0;
    }

    .top_news_hedgehog {
        display: none;
    }

    .mainvisual_open {
        position: static;
        margin: 150px auto 20px;
        max-width: 370px;
    }

    .mainvisual_calendar {
        position: absolute;
        top: 220px;
        right: 3%;
        width: 46%;
    }

    .mainvisual_recruit {
        position: static;
        margin: 25px auto 20px;
        max-width: 370px;
    }

    .mainvisual_recruit img {
        width: 75%;
    }

    .mainvisual_catch p.mc_txt {
        display: block;
        letter-spacing: 0.08em;
        font-size: 14px;
        line-height: 2;
        font-family: Shuei MaruGo B, sans-serif;
        top: 380px;
        margin: 0 auto;
        width: 100%;
        text-align: left;
    }

    .mainvisual_catch p:nth-child(n+4) {
        font-size: 22px;
        font-family: DS-kirigirisu, Hiragino Kaku Gothic ProN, Osaka, MS PGothic, sans-serif;
        text-align: right;
        width: 100%;
        margin: 0;
    }

    #container {
        padding-top: 20rem;
        /* padding-bottom: 100px; */
    }

    .top_news {
        /*font-size:14.5px;*/
        background: url(../images/top_news_bg2.png), url(../images/top_news_bg1.png);
        background-repeat: no-repeat,
            /* 最前面の背景レイヤーに対応 */
            repeat;
        padding: 0 0 70px;
        /*z-index: -9 !important;*/
        position: relative;
        top: 150px;
    }

    /*.top_news_flame {
    padding: 50px;
    width: 100%;
    float: none;
    background: url(../images/news_sp.png) center no-repeat;
    z-index: 2 !important;
    position: relative;
}*/
    .top_news_flame {
        /* padding: 5vw;*/
        padding: 3vw 1.5rem 3vw 2rem;
        width: 100%;
        float: none;
        z-index: 2 !important;
        position: relative;
        background: no-repeat;
        /* background: #e9e0d0;*/
    }

    .mCSB_container_wrapper {
        margin-right: 10px !important;
    }

    .mCSB_container_wrapper>.mCSB_container {
        padding-right: 0;
    }

    .top_character {
        height: auto;
        background: url(../images/top_feature_bg1.png) top center no-repeat, url(../images/top_feature_bg3.png) top left no-repeat, url(../images/top_feature_bg4.png) top right no-repeat;
        background-color: rgba(0, 0, 0, 0);
        background-color: #FFFFFF;
        background-size: auto, 70%, 70%;
        position: relative;
        top: 120px;
        padding: 0 0 10px;
    }

    .top_character .box1 p {
        font-size: 23px;
        letter-spacing: -0.05em;
    }

    .top_character .box1 .inner ul li:first-child {
        width: 95%;
        float: none;
        margin: 0 auto;
    }

    .top_character .box1 .inner ul li:last-child {
        width: 95%;
        float: none;
        margin: 0 auto;
    }

    .top_character .box1 .inner ul li:first-child img:last-child,
    .top_character .box1 .inner ul li:last-child img:last-child {
        margin: 30px 0;
    }

    .top_character .box1 .inner+div {
        margin: 0 auto;
        text-align: center !important;
    }

    .top_character .box1 .inner+div .btn01 {
        width: 95%;
        margin: 0 auto;
    }

    .top_character .box1 .inner+div .btn01 a {
        padding: 20px;
    }
}

@media screen and (max-width:320px) {
    .mainvisual_catch h2 span.mvch2 {
        font-size: 21px;
        text-align: center;
        letter-spacing: -0.05em;
    }

    .mainvisual_open {}

    .mainvisual_calendar {
        position: absolute;
        top: 210px;
        right: 3%;
        width: 46%;
    }

    .mainvisual_catch p.mc_txt {
        /* display: block;
 letter-spacing: 0.08em;
 font-size: 14px;
 line-height: 2;
 font-family: Shuei MaruGo B, sans-serif;
 top: 352px;
 position: relative;
 margin: 0 auto;
 width: 100%;
 text-align: left;*/
    }

    .mainvisual_catch p:nth-child(4) {
        /* font-size: 22px;
 font-family: DS-kirigirisu, Hiragino Kaku Gothic ProN, Osaka, MS PGothic, sans-serif;
 text-align: right;
 width: 100%;
 margin: 0;
 position: relative;
 top: 370px;*/
    }

    #container {
        padding-top: 185px;
        /* padding-bottom: 100px; */
    }

    .top_news {
        /*font-size:14.5px;*/
        background: url(../images/top_news_bg2.png), url(../images/top_news_bg1.png);
        background-repeat: no-repeat,
            /* 最前面の背景レイヤーに対応 */
            repeat;
        padding: 0 0 70px;
        /*z-index: -9 !important;*/
        position: relative;
        top: 130px;
    }

    .top_news_flame {
        padding: 3vw;
    }

    .top_character .box1 p {
        font-size: 20px;
        letter-spacing: -0.1em;
    }

    .top_character {
        padding: 0 0 5px;
    }

    .top_interview {
        height: 330px;
    }

    .top_interview .box1 {
        padding: 42vw 0 0;
    }

    .top_interview {
        height: 400px;
    }
}

ul.webbnr ul {
    display: flex;
    position: absolute;
    bottom: -5px;
    right: 2rem;
}

ul.webbnr ul li a img {
    transition: all 300ms ease 0s;
}

ul.webbnr ul li a:hover img {
    opacity: 0.8 !important;
    transform: translateY(-3px);
}

.bnr-slide li {
    margin: 2rem 16px 3rem;
}

.bnr-slide a {
    display: inline-flex;
    padding: 0 12px;
}

.bnr-slide img {
    width: 100%;
    height: auto;
}

@media screen and (max-width:640px) {
    .slide-bnr-area {
        margin-bottom: -9rem;
    }

    .bnr-slide img {
        width: 300px;
    }
}