@charset "utf-8";

@media screen and (max-width: 767px) {
    .firstview {
        background: url(../images/caries/firstview.png);
        height: 666px;
        /* background-size: cover; */
        margin-top: -187px;
        background-repeat: no-repeat;
        background-position: center;
    }

    .firstview .text .box {
        position: absolute;
        top: 245px!important;
        right: 5px!important;
        text-shadow: #fff 1px 1px 1px, #fff -1px 0px 1px, #fff 0px -1px 1px, #fff 0px 1px 1px, #fff 1px 1px 1px, #fff -1px 1px 1px, #fff 1px -1px 1px, #fff -1px -1px 1px, #fff 1px 1px 1px, #fff -1px 1px 1px, #fff 1px -1px 1px, #fff -1px -1px 1px, #fff 1px 1px 1px, #fff -1px 1px 1px, #fff 1px -1px 1px, #fff -1px -1px 1px;
    }
    
    .sec01 {
        background: url(../images/caries/back_white.png);
        margin-top: -290px;
        background-position: top;
        background-repeat: no-repeat;
        padding-top: 0;
    }
    
    .sec01 .contents {
        padding-top: 40px;
        text-align: center;
        position: relative;
        width: 100%;
        margin: 0 auto;
    }
    
    .sec01 .contents .title {
        font-size: 20px;
        font-weight: 700;
        margin-top: 10px;
        line-height: 1.7;
        width: 90%;
        margin: 10px auto 0;
    }
    
    .sec01 .contents p:nth-child(3) {
        line-height: 2;
        margin-top: 30px;
    }
    
    .sen {
        border-bottom: dotted 4px #cb991d;
        font-weight: 600;
    }
    
    .sec02 {
        background: url(../images/index/top_back.png);
        background-position: top;
        margin-top: 40px;
        background-size: cover;
    }
    
    .sec02 .contents {
        text-align: center;
    }
    
    .sec02 .contents .top {
        position: relative;
        padding-top: 50px;
        max-width: 351px;
        margin: 0 auto;
    }

    .sec02 .contents .top p:nth-child(2) img{
        width: 100%;
    }
    
    .sec02 .contents .top .title {
        position: relative;
        color: #fff;
        font-size: 22px;
        font-weight: 700;
        top: -74px;
        line-height: 1.3;
    }
    
    .sec02 .contents .subtitle {
        font-size: 22px;
        font-weight: 500;
        letter-spacing: 3px
    }
    
    .hook {
        color: #cb991d;
        font-size: 24px;
        font-weight: 500;
    }
    
    .sec02 .contents .top_ander {
        position: relative;
        width: 100%;
        margin: 0 auto;
    }
    
    .sec02 .contents .top_ander p:nth-child(3) {
        margin-top: -9px;
    }
    
    .sec02 .contents .top_ander p:nth-child(4) img {
        position: absolute;
        top: 24px;
        right: 5px;
    }
    
    .sec02 .contents .one, .sec02 .contents .two {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: 120px;
        background: url(../images/caries/kodawari.png);
        padding: 50px 0;
        flex-wrap: wrap;
    }
    
    .sec02 .contents .one .left {
        background: url(../images/new/119.jpg);
        width: 100%;
        background-repeat: no-repeat;
        background-size: 189%;
        height: 354px;
        margin-top: -125px;
        position: relative;
        background-position: center -62px;
    }

    @media screen and (min-width: 745px) and (max-width: 767px) {
        .sec02 .contents .one .left {
            background: url(../images/new/123.jpg);
            width: 100%;
            background-repeat: no-repeat;
            background-size: 95%;
            height: 354px;
            margin-top: -125px;
            position: relative;
            background-position: top;
        }
    }
    
    .sec02 .contents .one .left p img {
        position: absolute;
        bottom: -112px;
        left: 10px;
    }
    
    .sec02 .contents .two .right {
        background: url(../images/caries/lover.png)center;
        width: 100%;
        background-repeat: no-repeat;
        background-size: cover;
        height: 354px;
        margin-top: 20px;
        position: relative;
    }
    
    .sec02 .contents .two .right p img {
        position: absolute;
        bottom: -70px;
        right: 10px;
    }
    
    .sec02 .contents .one .right ,.sec02 .contents .two .left {
        width: 90%;
    }
    
    .sec02 .contents .one .right .box {
        width: 100%;
        margin-left: auto;
        text-align: left;
        margin-top: 20px;
    }
    
    .sec02 .contents .two .left .box {
        width: 100%;
        margin: 0 40px 0 auto;
        text-align: left;
        position: relative;
    }
    
    .sec02 .contents .one .right .box p:nth-child(2) ,.sec02 .contents .two .left .box p:nth-child(2) {
        line-height: 2;
    }
    
    .sec02 .contents .one .right .top ,.sec02 .contents .two .left .top {
        display: flex;
        align-items: center;
        padding: 0;
        flex-direction: column;
    }
    
    .sec02 .contents .one .right .top p:nth-child(2) ,.sec02 .contents .two .left .top p:nth-child(2) {
        margin-left: 0px;
        line-height: 1.7;
        color: #cb991d;
        font-size: 20px;
        padding-bottom: 20px;
    }
    
    .sec02 .contents .two .left .box .bar p img {
        position: absolute;
        top: 225px;
        left: 2px;
    }
    
    .sec02 .contents .two {
        padding-bottom: 30px;
        margin-top: 50px;
        flex-wrap: wrap-reverse;
    }
    
    .sec02 .contents .bottom .inner {
        position: relative;
    }
    
    .sec02 .contents .bottom .inner .inneres {
        margin-top: 20px;
    }
    
    .sec02 .contents .bottom .inner p:nth-child(1) img {
        margin-top: -125px;
    }
    
    .sec02 .contents .bottom .inner .boxs {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .sec02 .contents .bottom .inner .box1 {
        width: 90%;
        margin: 10px;
    } 
    
    .sec02 .contents .bottom .inner .box1 p:nth-child(2) ,.sec02 .contents .bottom .inner .box2 p:nth-child(2) ,.sec02 .contents .bottom .inner .box3 p:nth-child(2) {
        text-align: left;
        padding: 15px 15px;
        line-height: 1.7;
    }
    
    .sec02 .contents .bottom .inner .box1 .top, .sec02 .contents .bottom .inner .box2 .top ,.sec02 .contents .bottom .inner .box3 .top {
        background: url(../images/caries/box_top.png);
        background-repeat: no-repeat;
        background-size: cover;
        height: 95px;
        padding: 0;
        margin-top: 10px;
        padding-top: 30px;
    }
    
    .sec02 .contents .bottom .inner .box2 {
        width: 90%;
        margin: 10px;
    } 
    
    .sec02 .contents .bottom .inner .box3 {
        width: 90%;
        margin: 10px;
    } 
    
    .sec02 .contents .bottom .inner .boxs .top p:nth-child(2) {
        font-size: 20px;
        font-weight: 500;
        text-align: center;
        padding: 0;
        line-height: unset;
    }
    
    .sec02 .contents .bottom .inner .illust {
        position: relative;
        width: 100%;
        margin: 0 auto;
    }
    
    .sec02 .contents .bottom .inner .illust p img {
        position: absolute;
        right: 0;
        top: 95px;
    }
    
    .sec02 .contents .ander {
        margin-top: 0px;
    }
    
    .sec02 .contents .ander .top {
        width: 90%;
        margin: 0 auto;
        border-bottom: dashed #18973b;
        padding-bottom: 20px;
        line-height: 1.7;
    }
    
    .sec02 .contents .ander .bottom {
        background: url(../images/caries/white_back.png);
        background-repeat: no-repeat;
        margin-top: 60px;
        background-position: top right;
        padding-bottom: 0px;
    }
    
    .sec02 .contents .ander .bottom .inner {
        display: flex;
        flex-wrap: wrap;
    }
    
    .sec02 .contents .ander .bottom .inner .left {
        width: 100%;
    }
    
    .sec02 .contents .ander .bottom .inner .left p img {
        margin: 0;
    }
    
    .sec02 .contents .ander .bottom .inner .right {
        max-width: 362px;
        margin: 25px auto 0;
        position: relative;
        width: 100%;
    }
    
    .sec02 .contents .ander .bottom .inner .right p:nth-child(1) {
        width: 93%;
        text-align: left;
        line-height: 2;
        margin: 0 auto;
    }
    
    .sec02 .contents .ander .bottom .inner .right a p:nth-child(1) {
        width: 100%;
        margin-top: 52px;
        text-align: center;
    }
    
    .sec02 .contents .ander .bottom .inner .right a p:nth-child(2) {
        position: absolute;
        bottom: 11px;
        left: 22px;
        font-size: 22px;
        font-weight: 500;
        letter-spacing: 5px;
        width: auto;
        right: auto;
    }
    
    .sec02 .contents .last {
        background: url(../images/caries/back_white.png);
        background-position: top;
        margin-top: 70px;
    }
    
    .sec02 .contents .last .inner {
        background: url(../images/caries/bottom.png);
        background-position: top;
        position: relative;
        bottom: 13px;
    }
    
    .sec02 .contents .last .inner .box {
        width: 100%;
        margin: 0 auto;
        position: relative;
    }
    
    .sec02 .contents .last .inner .box p:nth-child(1) img {
        position: relative;
        right: 420px;
        bottom: 30px;
    }
    
    .sec02 .contents .last .inner .box p:nth-child(2) {
        font-size: 18px;
        line-height: 3;
        position: relative;
        bottom: 65px;
    }
    
    .sec02 .contents .last .inner .box p:nth-child(3) img {
        position: absolute;
        bottom: 0;
        right: -30px;
    }

    .sec02 .contents .ander .bottom .inner .right a {
        position: unset;
    }

    .sec02 .contents .ander .bottom .inner .right p:nth-child(2) {
        width: auto;
        height: 54px;
        margin: 15px auto 0;
    }

    .sec02 .contents .last .inner .box p:nth-child(1) img {
        position: relative;
        right: 125px;
        top: 442px!important;
    }
}