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


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

    .header .header-left {
        padding-left: 10px;
        padding-top: 15px;
    }

    .header .header-left img {
        height: 55px;
    }

    .hidden .header .header-left {
        padding-top: 15px;
    }

    .hidden .header .header-left img {
        height: 55px;
    }



    /* contents-top */

    .contents-top {
        padding-top: 35px;
    }

    .contents-top-wrap::before {
        background-size: 200% auto;
        margin-top: -80px;
    }

    .contents-top-wrap section:not(:last-child) {
        margin-bottom: 70px;
    }


    /* main-img-top */

    .main-img-top {
        margin-left: 10%;
        width: 90%;
    }

    .main-img-top::before {
        height: 150px;
        margin-left: -7%;
    }

    .main-img-top .box-text-top {
        position: static;
        width: 100%;
        padding-top: 30px;
        padding-left: 5%;
    }

    .main-img-top .box-text-top h2 img {
        width: 80%;
    }

    .main-img-top .box-text-top h3 img {
        width: 90%;
    }

    .main-img-top .box-text-top p {
        font-size: 3.6vw;
        padding-top: 6vw;
    }


    /* contents-tour */

    .contents-tour {
        padding-top: 70px;
    }

    .contents-tour .box-detail {
        width: 88%;
        border-radius: 20px;
    }

    .contents-tour .box-detail .lay01 {
        padding: 30px 8% 40px;
    }

    .contents-tour .box-detail .box-img img {
        max-width: 400px;
    }

    .contents-tour .box-detail h5 {
        font-size: 18px;
        letter-spacing: 0.1em;
        min-width: 250px;
        padding: 15px 0px;
    }

    .contents-tour .box-detail h6 a {
        font-size: 18px;
        letter-spacing: 0.15em;
        padding: 12px 30px;
    }

    .contents-tour .box-detail p {
        font-size: 16px;
        padding: 40px 0px 30px;
    }




    /* contents01 */

    .contents01 {
        /*        padding-top: 70px;*/
    }

    .contents02 .midashi-box,
    .contents03 .midashi-box {
        margin-bottom: 25px;
    }


    /* layout01 */

    .layout01 {
        justify-content: center;
        flex-direction: column;
        gap: 50px 8%;
    }

    .layout01 .box-img {
        width: 92%;
    }

    .layout01 .box-img .box {
        border-radius: 0px 25px 25px 0px;
    }

    .layout01 .box-img .box:not(:last-child) {
        margin-bottom: 20px;
    }

    .layout01 .box-detail {
        width: 88%;
        margin: 0px auto;
        padding-top: 0px;
    }

    .layout01 h4 {
        font-size: 22px;
        letter-spacing: 0.1em;
        padding-top: 50px;
        margin-bottom: 25px;
    }

    .layout01 h4::before {
        height: 25px;
    }

    /* layout02 */

    .layout02 {
        margin-bottom: 50px;
    }

    .layout02 .box {
        width: 48%;
    }

    .layout02 .box-text {
        padding-top: 20px;
    }

    .layout02 h4,
    .layout02 h6 {
        font-size: 17px;
        letter-spacing: 0.1em;
    }

    .layout02 h4 {
        margin-bottom: 0px;
        min-height: 55px;
    }

    .layout02 h6 {
        width: 90%;
        padding-right: 10px;
    }

    .layout02 h6::before {
        right: 20px;
        background-size: auto 10px;
    }


    /* layout03 */

    .layout03 {
        padding: 0px 6%;
        background-size: 100% auto;
        background-position: center 15%;
    }

    #treatment01 {
        margin-bottom: 70px;
        /*background-image: url("top/images/back02-sp.jpg");*/
        background-image: none;
    }

    #treatment02 {
        /*background-image: url("top/images/back03-sp.jpg");*/
        background-image: none;
    }

    .layout03 .box-title {
        margin-bottom: 35px;
    }

    .layout03 .box-text {
        margin-bottom: 40px;
    }

    .layout03 .box-detail {
        width: 100%;
        border-radius: 20px;
    }

    .layout03 .box-detail .lay01 {
        padding: 30px 8% 40px;
    }

    .layout03 .box-detail .lay02,
    .layout03 .box-detail .lay03 {
        padding: 30px 8%;
    }

    .layout03 .box-title h3 {
        font-size: 22px;
        letter-spacing: 0.1em;
        margin-bottom: 20px;
    }

    .layout03 .box-title h4 {
        font-size: 14px;
        letter-spacing: 0.1em;
        padding: 12px 40px 6px;
    }

    .layout03 .box-text p {
        line-height: 2.2;
        letter-spacing: 0.05em;
        text-align: left;
    }

    .layout03 .box-detail h5 {
        font-size: 18px;
        letter-spacing: 0.1em;
        min-width: 250px;
        padding: 15px 0px;
    }

    .layout03 .box-detail p {
        letter-spacing: 0.05em;
    }

    .layout03 .box-detail .lay02 p,
    .layout03 .box-detail .lay03 p {
        font-size: 16px;
    }

    .layout03 .box-detail .lay01 h6 {
        font-size: 20px;
        letter-spacing: 0.2em;
        margin-bottom: 25px;
    }

    .layout03 .box-detail .lay02 h6,
    .layout03 .box-detail .lay03 h6 {
        font-size: 18px;
        letter-spacing: 0.2em;
        min-width: 90%;
    }

    /* 角丸の内側で背景色をクリップして、はみ出しを止める */
    .layout03 .box-detail {
        overflow: hidden;
        /* ← visible にしてたら、ここで戻す */
    }

    /* SP：グループは折り返しOK */
    .layout03 .box-detail .terms span.group {
        white-space: normal;
    }

    /* 疾患名・治療名は途中で切らない */
    .layout03 .box-detail .terms span.group i {
        font-style: normal;
        white-space: nowrap;
    }

    /* layout04 */

    .layout04 {
        justify-content: center;
        margin-bottom: 40px;
        gap: 20px;
    }

    .layout04 .box-img {
        width: 100%;
        text-align: center;
    }

    .layout04 .box-img img {
        max-width: 380px;
    }

    .layout04 .box-detail {
        width: 100%;
    }

    .layout04 h5 {
        font-size: 50px;
    }

    .layout04 h6 {
        font-size: 28px;
        letter-spacing: 0.05em;
        margin: 20px 0px 40px;
    }

    .layout04 h6::before {
        font-size: 18px;
    }

    .layout04 p {
        padding-top: 60px;
    }

    .layout04 p::before {
        font-size: 22px;
    }


    /* layout05 */

    .layout05 {
        justify-content: center;
        border-radius: 20px;
        padding: 0px 6%;
    }

    .layout05 .box {
        width: 100%;
        padding: 30px 0px;
    }

    .layout05 .box:not(:last-child) {
        border-right-style: none;
        border-bottom-style: solid;
    }

    .layout05 h6 {
        font-size: 22px;
    }

    /* layout06 */

    .layout06 {
        gap: 25px 5%;
    }


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

        .contents-top .layout06 .box {
            width: 47%;
            text-align: center;
        }
    }

    .contents-top .layout06 .box img {
        max-width: 280px;
    }



    .pc-view {
        display: none;
    }

    .sp-view {
        display: inline-block;
    }

}
