@charset "UTF-8";

/* CSS Document */
@media (min-width:769px) {
    .pc{
        display: block !important;
    }
    .sp{
        display: none !important;
    }
    main {
        background: url(../img/enokida/bg-lab.png) no-repeat center 760px;
        background-size: 1300px;
        overflow: hidden;
    }

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

    #chara-box {
        margin-top: -450px;
        margin-left: 80px;
    }

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

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

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

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

    #task-box,
    #result-box,
    #if-box,
    #lifestyle-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: 170px 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.h02 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: right;
        width: 360px;
        height: 70px;
        margin: 0px 0px 0px 800px;
        padding: 0;
    }

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

    .hashigo-tate-box.h03 {
        clear: both;
        width: 510px;
        height: 105px;
        margin: -50px auto 0 20px;
        padding-top: 30px;
        padding-bottom: 20px;
    }

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

    .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: right;
        margin-top: -460px;
        margin-right: 145px;
    }

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

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

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

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

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

    #future-box .future-img {
        width: 50%;
        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: -170px;
        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;
    }

    #curves-img-box {
        position: relative;
        z-index: 1;
        background: url(../img/enokida/img21.png) no-repeat 240px center;
        background-size: contain;
        padding: 20px 0 60px;
        margin-top: -20px;
    }

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

    #curves2-img-box {
        position: relative;
        z-index: 1;
        margin-top: 280px;
        background: url(../img/enokida/img24.png) no-repeat 420px center;
        background-size: contain;
        padding: 110px 0 30px;
    }

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

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

    #item-box .item1 .item-name,
    #item-box .item1 .item-detail {
        width: calc(100% - 200px);
        float: right;
        line-height: 1.4rem;
    }

    #item-box .item2 {
        background: url(../img/enokida/img10.png) no-repeat top center;
        background-size: 70%;
        width: 49%;
        float: left;
        padding-top: 160px;
    }

    #item-box .item3 {
        background: url(../img/enokida/img11.png) no-repeat top center;
        background-size: 70%;
        width: 49%;
        float: right;
        padding-top: 160px;
    }

    #item-box .item2 .item-name,
    #item-box .item3 .item-name {
        width: 100%
    }

    #before-lifestyle-box {
        float: right;
        padding-right: 240px;
    }

    #before-lifestyle-box img {
        display: block;
        width: 140px;
        position: relative;
        z-index: 1;
    }

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

    #point-box img,
    #student-box img {
        width: 300px;
        display: block;
        margin: 0 auto;
    }

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

    #if-box img {
        width: 180px;
    }

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

    #recommend-img-box {
        background: url(../img/enokida/bg-recimg.png) no-repeat right top;
        background-size: contain;
        margin-top: 50px;
        margin-left: -50px;
        padding-top: 50px;
        padding-right: 50px;
        padding-bottom: 30px;
    }

    #recommend-img-box img {
        width: 320px;
        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: 870px;
        display: block;
        position: relative;
        margin: 0 auto 0 0;
        top: -90px;
    }

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

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

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

    #lifestyle-box {}

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

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

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

    #if-box h3 {
        letter-spacing: -0.08rem;
    }
}


@media screen and (max-width:768px) {
    .pc{
        display: none !important;
    }
    .sp{
        display: block !important;
    }
    #photo-sp-box .mini-box {
        width: 50%;
    }

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

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

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

    .img-conclusion {
        display: none;
    }

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


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

    #item-box .item2 .sp-item-img,
    #item-box .item3 .sp-item-img {
        width: 37%;
        margin: 0 auto;
        float: left;
    }
    #item-box .item2 .item-name,
    #item-box .item3 .item-name {
        width: 58%;
        margin: 0 auto;
        float: right;
    }

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

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

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

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

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

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

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

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

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

    .sp-tate-box.long.two {
        padding-top: 8px;
        height: 100px;
    }

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

    #recommend-box .spbox {
        position: relative;
        z-index: 4;
    }

    #recommend-box .sp-img-box {
        height: 0;
        margin-top: -560px;
    }

    #recommend-box .sp-img-box img.img01 {
        float: left;
        width: 130px;
        margin-top: -30px;
        margin-left: -20px;
    }


    #recommend-box .sp-img-box img.img02 {
        float: right;
        width: 25%;
        margin-top: -10px;
        margin-right: 20px;
    }

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

    }

    #before-footer-box img {
        width: 100%;
        height: auto;
    }
}
