@charset "UTF-8";

/* CSS Document */
@media (min-width:769px) {
    main {
        background: url(../img/tanaka/bg-lab.png) no-repeat center 900px;
        background-size: 1300px;
        overflow: hidden;
    }

    #introduction-box #photo-box {
        width: 465px;
        height: 640px;
        background: url(../img/tanaka/img-intro.jpg) no-repeat center center;
        background-size: cover;
    }

    #chara-box {
        margin-top: -400px;
        margin-left: 10px;
    }

    #chara-box img {
        width: 500px;
        height: auto;
        position: absolute;
    }

    #research-box,
    #future-box,
    #point-box,
    #item-box,
    #if-box,
    #student-box,
    #lifestyle-box {
        float: left;
    }

    #task-box,
    #result-box,
    #schedule-box {
        float: right;
    }

    /**幅を決める**/
    #research-box,
    #future-box,
    #point-box {
        width: 510px;
        position: relative;
        z-index: 2;
        background-color: #fefefe;
    }

    #task-box,
    #result-box,
    #student-box {
        width: 300px;
        position: relative;
        z-index: 2;
        background-color: #fefefe;
    }

    #schedule-box,
    #lifestyle-box,
    #if-box {
        width: 420px;
        position: relative;
        z-index: 2;
        background-color: #fefefe;
    }

    #item-box {
        width: 370px;
        position: relative;
        z-index: 2;
        background-color: #fefefe;
    }

    #if-box {
        margin-top: 60px;
    }

    .hashigo-yoko-box.h01 {
        margin-top: 130px;
        float: left;
        width: 68px;
        height: 70px;
    }

    .hashigo-yoko-box.h02 {
        float: right;
        width: 68px;
        height: 120px;
        margin: 90px 0 0 0;
    }

    .hashigo-yoko-box.h04,
    .hashigo-yoko-box.h05 {
        margin-top: 120px;
        float: left;
        width: 68px;
    }

    .hashigo-yoko-box.h04 {
        height: 70px;
        margin-top: 180px;
    }

    .hashigo-yoko-box.h01 img,
    .hashigo-yoko-box.h05 img {
        width: 50px;
        display: block;
        margin: 0 auto;
    }

    .hashigo-tate-box.h07 img {
        width: 105px;
        display: block;
        margin: 0 0 0 -26px;
    }

    .hashigo-tate-box.h01 {
        float: left;
        width: 100px;
        height: 50px;
        margin: -100px 0px 0px 750px;
        padding: 30px 0;
    }

    .hashigo-tate-box.h01 img {
        display: block;
        width: 100px;
        margin: 0 auto;
    }

    .hashigo-tate-box.h02 {
        float: left;
        width: 510px;
        height: 68px;
        margin: 0 auto 0 20px;
        padding: 0;
    }

    .hashigo-tate-box.h03 {
        float: left;
        width: 510px;
        height: 75px;
        margin: 0 auto 0 20px;
    }

    .hashigo-tate-box.h04 {
        float: left;
        width: 550px;
        height: 138px;
        margin: 0;
        padding: 0;
    }

    .hashigo-yoko-box.h05 {
        margin-top: -97px;
        width: 159px;
        height: 80px;
        float: right;
    }

    .hashigo-tate-box.h06 {
        position: relative;
        z-index: 1;
        height: 150px;
        width: 510px;
        float: left;
        margin-left: 90px;
    }

    .hashigo-tate-box.h07 {
        float: left;
        padding: 45px 0;
        width: 70px;
        margin-left: 144px;
    }

    #future-box {
        margin-top: 60px;
    }

    #result-box img {
        width: 100%;
        display: block;
        margin: 20px auto 0;
    }

    #future-box img {
        width: 100%;
        float: left;
        margin: 0;
    }
    #future-box .future-sub-box {
        float: right;
        width:62%;
        margin-left: 200px;
        margin-top: -84px;
    }

    #schedule-box {
        margin-top: -20px;
    }

    .imagetestbox {
        width: 300px;
        height: 200px;
        float: right;
        background-color: #ccc;
    }

    .middle-img-box {
        height: 0;
        width: 100%;
        text-align: right;
    }

    .middle-img-box img {
        position: relative;
        z-index: 1;
        height: 230px;
        width: auto;
        margin-top: -140px;
        margin-right: 20px;
    }

    #conclusion-box {
        z-index: 2;
        position: relative;
    }

    #conclusion-box p {
        margin: 15px 0 0 0;
        line-height: 1.4;
    }

    .img-conclusion {
        float: right;
        margin-right: 20px;
        width: 150px;
        margin-top: 30px;
    }

    #curves-img-box {
        float: left;
        position: relative;
        z-index: 1;
        background: url(../img/tanaka/img21.png) no-repeat left top;
        background-size: 100%;
        margin-top: 30px;
        margin-left: -110px;
        padding: 0px 0 0 200px;
        height: 140px;
        width: 250px;
    }

    #curves-img-box img {
        height: 80px;
        display: block;
    }

    #curves2-img-box {
        position: relative;
        z-index: 1;
        background: url(../img/tanaka/img21a.png) no-repeat left top;
        background-size: contain;
        padding: 110px 0 0 100px;
        float: left;
        height: 162px;
        width: 210px;
        margin-left: -12px;
        margin-top: -100px;
    }

    #curves2-img-box img {
        display: block;
        width: 130px;
    }

    #curves3-img-box {
        position: relative;
        z-index: 1;
        background: url(../img/tanaka/img21b.png) no-repeat left top;
        background-size: contain;
        float: left;
        width: 674px;
        height: 225px;
        margin-left: -340px;
        margin-top: -60px;
    }

    #curves3-img-box img {
        display: block;
        width: 130px;
    }

    #item-box .item1 {
        background: url(../img/tanaka/img09.png) no-repeat center top;
        background-size: 46%;
        margin-bottom: 10px;
        width: 46%;
        float: left;
        padding-top: 150px;
    }

    #item-box .item1 .item-name,
    #item-box .item1 .item-detail {
        width: 100%;
        margin: 0;
    }

    #item-box .item2 {
        background: url(../img/tanaka/img10.png) no-repeat center top;
        background-size: 100%;
        padding-top: 20px;
        margin-bottom: 10px;
        width: 46%;
        float: right;
        padding-top: 150px;
    }

    #item-box .item2 .item-name,
    #item-box .item2 .item-detail {
        width: 100%;
        margin: 0;
    }

    #item-box .item3 {
        background: url(../img/tanaka/img11.png) no-repeat right top;
        background-size: 50%;
        height: 245px;
    }

    #item-box .item3 .item-name,
    #item-box .item3 .item-detail {
        width: 46%;
        margin: 0;
    }

    #before-schedule-box {
        float: left;
        width: 470px;
        margin-top: 20px;
        height: 0px;
    }

    #before-schedule-box img {
        display: block;
        width: 120px;
        position: relative;
        z-index: 1;
        margin: 0 0 0 auto;
        margin-top: -146px;
    }

    #before-student-box {
        float: right;
        height: 0px;
    }

    #before-student-box img {
        display: block;
        height: 200px;
        position: relative;
        z-index: 1;
        top: 23px;
        right: 40px;
    }

    #student-box {
        margin-top: 20px;
        float: right;
    }

    #point-box img {
        width: 90%;
        display: block;
        margin: 10px auto 0;
    }

    #if-box img {
        width: 60%;
        display: block;
        margin: 10px auto 0;
    }

    #recommend-img-box {
        background: url(../img/tanaka/bg-recimg.png) no-repeat left top;
        position: relative;
        z-index: 2;
        margin-top: 33px;
        margin-right: -70px;
        padding: 30px 60px 0 0;
    }

    #recommend-img-box img {
        width: 290px;
        display: block;
        position: relative;
        -moz-transform: rotate(10deg);
        -webkit-transform: rotate(10deg);
        -o-transform: rotate(10deg);
        -ms-transform: rotate(10deg);
        transform: rotate(10deg);
    }

    #last-box {}

    #before-footer-box {
        width: 1280px;
        margin: -27px auto 0;
        padding-left: 100px;
    }

    #before-footer-box .img01 {
        width: 400px;
        display: block;
        position: relative;
        float: left;
        margin-top: -110px;
        position: absolute;
    }

    #before-recommend-box {
        width: 100%;
        height: 150px;
        z-index: 1;
        position: relative;
    }

    #before-recommend-box img {
        width: 280px;
        display: block;
        position: relative;
    }

    #message-box::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 100%;
        margin-top: -15px;
        border: 10px solid transparent;
        border-left: 25px solid #eb8a7d;
    }

    #lifestyle-box {
        margin-top: 35px;
    }

    #lifestyle-box .spe01 {
        width: 200px;
        float: right;
        margin: 0 0 0 20px;
        font-size: 0.75rem;
        line-height: 0;
    }

    #lifestyle-box .spe01 img {
        width: 200px;
        margin: 0 0 10px;
    }

    #schedule-box table th.tim,
    #schedule-box table td {
        height: 100px;
    }

    #conclusion-box .one-word {
        display: table;
        margin-right: 10px;
    }

    #interest-box .onebox {
        height: 310px;
    }

    #interest-box .onebox2 {
        float: left;
        width: 30%;
    }

    #interest-box .onebox3 {
        width: 100%;
        background-color: #ebebec;
        border-radius: 10px;
        -webkit-border-radius: 10px;
        -moz-border-radius: 10px;
        color: #000;
        padding: 3px 0;
        height: 330px;
        margin-bottom: 10px;
    }

    #interest-box .onebox4 {
        width: 100%;
        background-color: #ebebec;
        border-radius: 10px;
        -webkit-border-radius: 10px;
        -moz-border-radius: 10px;
        color: #D87EA2;
        padding: 20px 0;
        text-align: center;
    }

    #interest-box .onebox.box02 {
        height: 330px;
    }

    #interest-box .onebox.box03 {
        height: 430px;
    }

    #interest-box .m-arrow {
        float: left;
        width: 40%;
        height: 0;
    }

    #interest-box .m-arrow img {
        width: 100%;
        margin-top: 355px;
    }

    #interest-box img.onebox3-img {
        display: block;
        width: 100px;
        margin: 30px auto 0;
    }

    #afterred-img-box {
        position: relative;
        z-index: 2;
        height: 0;
        width: 100%;
    }

    #afterred-img-box img {
        margin: 0 auto 0 20px;
        width: 140px;
    }
}

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

    #before-if-box,
    #before-lifestyle-box,
    #before-schedule-box,
    #interest-box img.onebox3-img,
    #recommend-img-box,
    #curves2-img-box,
    #curves3-img-box,
    #before-student-box {
        display: none;
    }

    #point-box img,
    #result-box img {
        display: block;
        width: 90%;
        margin: 10px auto 0;
    }

    #future-box img {
        width: 80px;
        float: right;
        margin: 0 0 10px 10px;
    }

    .img-conclusion {
        display: none;
    }

    #conclusion-box {
        background-image: url(../img/tanaka/img20.png);
        background-repeat: no-repeat;
        background-position: calc(100% - 10px) 10px;
        background-size: 20%;
    }




    #item-box .sp-item-img {
        width: 40%;
        float: left;
        padding-top: 20px;
    }
    #item-box .item1 .sp-item-img {
        width: 23%;
        float: left;
        padding: 20px 22px 0;
    }

    #item-box .sp-item-img img {
        width: 100%;
        height: auto;
    }

    #item-box .item-name,
    #item-box .item-detail {
        width: 58%;
        float: right;
    }

    #item-box .item1 {
        margin-bottom: 10px;
    }

    #item-box .item2 {
        margin-bottom: 10px;
    }

    #item-box .item3 {
        margin-bottom: 10px;
    }

    #if-box img {
        width: 70%;
        display: block;
        margin: 10px auto 0;
    }

    #lifestyle-box .spe01 {
        font-size: 12px;
        width: 100%;
        text-align: center;
        padding: 10px 0 0;
    }

    #lifestyle-box .spe01 img {
        width: 80%;
        display: block;
        margin: 0 auto 5px;
    }

    #before-recommend-box {
        width: 150px;
        margin: 0 auto -10px 10px;
    }

    #before-recommend-box img {
        width: 100%;
    }

    #interest-box .onebox2 {
        width: calc(100% - 30px);
        background-color: #ebebec;
        border-radius: 10px;
        -webkit-border-radius: 10px;
        -moz-border-radius: 10px;
        color: #000;
        padding: 15px;
    }

    #interest-box .onebox2 ul li {
        list-style: none;
        margin-left: 20px;
    }

    #photo-sp-box img {
        margin: 0 20px 0 auto;
    }

    #photo-sp-box .mini-box {
        height: 130px;
        width: 200px;
        margin: -130px auto 0 -7px;
    }

    #photo-sp-box .mini-box img {
        margin-left: -25px;
        top: -55px;
        position: relative;
        -moz-transform: scale(1) rotate(-8deg);
        -webkit-transform: scale(1) rotate(-8deg);
        -o-transform: scale(1) rotate(-8deg);
        -ms-transform: scale(1) rotate(-8deg);
        transform: scale(1) rotate(-8deg);
    }

    #interest-box .onebox.box03 ul.midori {
        width: calc(100% - 110px);
        float: left;
    }

    #interest-box img.onebox3-img {
        display: block;
        width: 100px;
        float: right;
    }

    #before-footer-box {
        display: block !important;
        z-index: 2;
        position: relative;
        width: 100%;
        text-align: right;
        height: 80px;
        margin-top: -90px; }
    #before-footer-box img {
        width: 60%;
        height: auto;
        margin-top: 29px; }

}
