@charset "UTF-8";

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

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

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

    #chara-box img {
        width: 430px;
        height: auto;
    }

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

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

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

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

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

    .hashigo-yoko-box.h02 {
        float: right;
        width: 68px;
        height: 120px;
        margin: 130px -15px 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;
        margin-left: 356px;
        float: none;
    }

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

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

    .hashigo-tate-box.h01 {
        float: right;
        width: 520px;
        height: 65px;
        margin: -85px 0 0 0;
        padding: 0 0 30px 100px;
        background-position: 407px center;
    }

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

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

    .hashigo-tate-box.h04 {
        float: left;
        width: 280px;
        height: 130px;
        margin: -53px 156px 0 auto;
        padding: 0;
    }

    .hashigo-tate-box.h06 {
        position: relative;
        z-index: 1;
        height: 130px;
        width: 70px;
        float: right;
        margin-top: -500px;
        margin-right: 146px;
    }

    .hashigo-yoko-box.h05 {
        width: 68px;
        height: 30px;
        margin-top: 150px;
        padding: 20px 0;
    }

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

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

    #result-box {
        margin-left: 15px;
    }

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

    .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: 175px;
        width: auto;
        margin-top: -98px;
        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: 200px;
    }

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

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

    #curves-img-box {
        position: relative;
        z-index: 1;
        background: url(../img/shirosaki/img21.png) no-repeat 380px center;
        background-size: contain;
        padding: 20px 0 70px;
    }

    #curves-img-box img {
        height: 100px;
        margin: 0 0 0 470px;
        display: block;
    }

    #item-box {
        margin-left: 260px;
    }


    #item-box .item1 {
        background: url(../img/shirosaki/img09.png) no-repeat left center;
        background-size: 40%;
        margin-bottom: 10px;
    }

    #item-box .item2 {
        background: url(../img/shirosaki/img10.png) no-repeat left center;
        background-size: 40%;
        margin-bottom: 10px;
    }

    #item-box .item3 {
        background: url(../img/shirosaki/img11.png) no-repeat left center;
        background-size: 40%;
        margin-bottom: 10px;
    }

    #item-box .item-detail {
        padding-bottom: 30px;
    }

    #before-item-box {
        float: right;
    }

    #before-item-box img {
        display: block;
        width: 130px;
        position: relative;
        z-index: 1;
        margin: -104px 40px 0 0;
    }

    #student-box {
        margin-top: 30px;
    }

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

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

    #recommend-img-box {
        background: url(../img/shirosaki/bg-recimg.png) no-repeat center top;
        background-size: cover;
        margin-top: 100px;
    }

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

    #last-box {}

    #before-footer-box img {
        width: 250px;
        display: block;
        position: relative;
        margin: 0 auto 0 0;
        top: -180px;
    }

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

    #before-recommend-box img {
        width: 580px;
        display: block;
        position: relative;
        top: -54px;
        margin: 0 470px 0 auto;
    }

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

    #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 {
        margin-top: -510px;
    }

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

    #interest-box .arrow-box {
        height: 190px;
    }

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

@media screen and (max-width:768px) {
    #number2-box img {
        width: 158px; }

    #before-item-box,
    #recommend-img-box {
        display: none;
    }

    #result-box .result-img {
        width: 60%;
        max-width: 350px;
        display: block;
        margin: 15px auto 0;
    }

    .img-conclusion {
        display: none;
    }

    #conclusion-box {
        background-image: url(../img/shirosaki/img20.png);
        background-repeat: no-repeat;
        background-position: right top;
        background-size: 50%;
    }


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

    #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;
    }

    #lifestyle-box .spe01 {
        width: 45%;
        float: right;
        margin-left: 10px;
    }

    #lifestyle-box .spe01 img {
        width: 100%;
        height: auto;
        margin-top: 30px;
    }

    #if-box .spbox {
        float: right;
        display: block;
        width: 120px;
        margin-left: 10px;
    }

    #if-box .spbox img {
        width: 100%;
    }

    #before-recommend-box {
        max-width: 420px;
        width: calc(100% - 40px);
        margin: 0 auto -10px;
    }

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

    #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: -10px;
        top: -40px;
        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);
    }

    .sp-tate-box.long img {
        height: 80px;
        width: auto;
    }

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

    }

    #before-footer-box img {
        width: 160px;
        height: auto;
    }

}
