@charset "UTF-8";

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

    #introduction-box {
        position: relative;
    }

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

    #chara-box {
        margin-top: -380px;
        margin-left: -120px;
        position: absolute;
    }

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

    #chara-box2 {
        width: 50px;
        z-index: 100;
        position: absolute;
        top: 18px;
        left: 380px;
    }

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

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

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

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

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

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

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

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

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

    .hashigo-yoko-box.h04 {
        height: 70px;
        position: relative;
        z-index: 1;
        float: none;
        margin-left: 468px;
    }

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

    .hashigo-tate-box.h01 {
        float: right;
        width: 360px;
        height: 70px;
        margin: 0px 0px 0px 800px;
        padding: 0;
    }

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

    .hashigo-tate-box.h03 {
        clear: both;
        width: 510px;
        height: 68px;
        margin: 0 auto 0 20px;
        padding: 0;
    }

    .hashigo-tate-box.h04 {
        float: left;
        width: 300px;
        height: 98px;
        margin: -19px 160px 0 auto;
        padding: 0;
    }

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

    .hashigo-tate-box.h07 {
        clear: both;
        width: 510px;
        height: 68px;
        margin: 0 auto 0 20px;
        padding: 0;
    }

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

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

    .hashigo-tate-box.h08 {
        float: right;
        width: 470px;
        height: 90px;
        margin-left: 164px;
    }

    #before-future-box {
        float: left;
        width: 510px;
        height: 0;
        position: relative;
        z-index: 1;
    }

    #before-future-box img {
        height: 117px;
        margin-top: 35px;
        margin-left: 150px;
    }

    .box-img {
        width: 100%;
    }

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

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

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

    #conclusion-box {
        z-index: 2;
        position: relative;
        margin-top: 20px;
    }

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

    .img-conclusion {
        float: right;
        margin-right: 20px;
        width: 200px;
    }

    #curves-img-box {
        position: relative;
        z-index: -1;
        background: url(../img/terai/img21.png) no-repeat 320px top;
        height: 203px;
    }

    #curves-img-box img {
        height: 80px;
        margin: 30px 0 0 615px;
        display: block;
    }

    #curves2-img-box {
        position: relative;
        z-index: 1;
        height: 320px;
        margin-top: 250px;
        background: url(../img/terai/img24.png) no-repeat 90px center;
        background-size: contain;
    }

    #curves2-img-box img {
        display: block;
        height: 100px;
        margin: 0 0 0 697px;
    }

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

    #item-box .item1 {
        background: url(../img/terai/img09.png) no-repeat top right;
        background-size: 45%;
        margin-bottom: 10px;
        min-height: 160px;
    }

    #item-box .item2 {
        background: url(../img/terai/img10.png) no-repeat top right;
        background-size: 45%;
        margin-bottom: 10px;
    }

    #item-box .item3 {
        background: url(../img/terai/img11.png) no-repeat top right;
        background-size: 45%;
        margin-bottom: 10px;
    }

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

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

    #before-student-box img {
        display: block;
        width: 130px;
        position: relative;
        margin-top: -96px;
        margin-left: 95px;
        padding-top: 10px;
    }

    #after-student-box img {
        width: 175px;
        display: block;
        margin: 0 auto;
    }

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

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

    #recommend-img-box img {
        width: 390px;
        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: 1150px;
    }

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

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

    #before-recommend-box img {
        width: 440px;
        display: block;
        position: relative;
        left: 130px;
        top: -80px;
    }

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

    #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: -115px;
    }

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

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

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

}


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

    #before-future-box,
    #before-lifestyle-box,
    #after-lifestyle-box,
    #recommend-img-box,
    #before-student-box,
    #curves2-img-box {
        display: none;
    }

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

    .img-conclusion {
        display: none;
    }

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

    #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 {
        max-width: 321px;
        width: calc(100% - 40px);
        margin: 0 20px -10px auto;
    }

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

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

    #photo-sp-box .mini-box img {
        margin-left: 50px;
    }

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



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

    #after-student-box img {
        width: 100px;
        display: block;
        margin: 10px auto 0;
    }

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

    #before-footer-box img {
        width: 200px;
    }

    #recommend-box {
        margin-bottom: 0;
    }

}
