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


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



    .contents-top-wrap {
        background-size: 250% auto;
    }

    /* main-img-top */

    .main-img-top .box-img img {
        min-height: 300px;
    }

    .main-img-top .box-text {
        bottom: 12%;
        padding-left: 5%;
    }

    .main-img-top h2 img {
        width: 45%;
    }

    .main-img-top h3 {
        font-size: 24px;
        padding-top: 10px;
    }

    /* contents02 */

    .contents02 {
        padding-bottom: 180px;
        background-size: auto 120px;
    }

    /* contents03 */

    .contents03 {
        padding-top: 22px;
    }

    .contents03::before {
        height: 45px;
        margin-top: -22px;
    }

    /* layout01 */

    .layout01 {
        justify-content: center;
        gap: 90px;
        flex-direction: column;
        padding: 60px 0px 50px;
        width: 88%;
        margin: 0px auto;
    }

    .layout01 .box-detail::before {
        width: 100%;
        height: 110px;
        margin-right: 0%;
        margin-bottom: -90px;
    }

    .layout01 .box-img {
        width: 100%;
        border-radius: 30px;
    }

    .layout01 h2 {
        font-size: 55px;
        margin-bottom: 15px;
    }


    /* layout02 */

    .layout02 {
        padding-bottom: 150px;
        justify-content: center;
        flex-direction: column;
        gap: 50px;
        width: 88%;
        margin: 0px auto;
    }

    .layout02::before {
        left: 0%;
        bottom: 0px;
        background-position: center bottom;
        width: 100%;
        height: 120px;
    }

    .layout02 .box-detail {
        width: 100%;
        text-align: center;
        background-image: none;
    }

    .layout02 .box-img {
        width: 100%;
        border-radius: 30px;
        margin-top: 0px;
    }

    .layout02 h3.sp-view {
        font-family: var(--title-font);
        font-weight: var(--base-weight2);
        color: var(--color-sub);
        font-size: 22px;
        line-height: 2;
        letter-spacing: 0em;
        text-align: end;
        border-bottom-style: solid;
        border-color: var(--color-sub);
        border-width: 1px;
        padding-bottom: 5px;
        display: inline;
    }

    /* layout03 */

    .layout03 .box {
        height: auto;
        border-radius: 60px 60px 0px 0px;
        padding-top: 240px;
        text-align: center;
        background-size: auto 200px;
    }

    .layout03 .box::before {
        display: none;
    }

    .layout03 .box:not(:last-child) {
        margin-bottom: 50px;
    }

    .layout03 .service02 .box-inner {
        justify-content: center;
    }


    .layout03 h2,
    .layout03 h3,
    .layout03 h4 {
        letter-spacing: 0.2em;
    }

    .layout03 .service02 h2,
    .layout03 .service02 h3,
    .layout03 .service02 h4 {
        letter-spacing: 0.1em;
    }

    .layout03 h2 {
        color: var(--color-main);
        font-size: 20px;
        margin-bottom: 15px;
    }

    .layout03 h3,
    .layout03 h4 {
        color: var(--color-sub);
        font-size: 42px;
    }

    .layout03 h4,
    .layout03 h3::after {
        font-size: 26px;
    }

    .layout03 h6 a {
        padding: 15px 20px;
        font-size: 16px;
        min-width: 240px;
    }

    .layout03 h6 a::before {
        background-size: auto 22px;
    }

    .layout03 p {
        font-size: 14px;
        padding: 20px 0px 30px;
        line-height: 2;
        position: relative;
    }

    /* layout04 */

    .layout04 iframe {
        width: 100%;
        height: 250px;
    }


    .pc-view {
        display: none;
    }

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

}
