@charset "utf-8";

.mainbg {
    background-color: #CC6B40;
}

#mainvisual {
    margin-bottom: 30px;
    text-align: center;
}

#mainvisual img {
    width: 100%;
    max-width: 480px;
    height: auto;
}

#mainvisual .pc {
    display: none;
}

#mainvisual .sp {
    display: block;
}

#about {
    margin-bottom: 60px;
    padding: 0 30px;
}

#about section {
    margin-bottom: 40px;
}

#about section.last {
    margin-bottom: 0;
}

#about section .icon {
    margin-bottom: 20px;
    text-align: center;
}

section .icon img {
    width: 268px;
}

#service {
    margin-bottom: 60px;
    padding: 0 20px;
}

#service section {
    margin-bottom: 40px;
}

#main .text01 {
    padding: 0 20px;
    text-align: center;
}

#service section .icon {
    margin-bottom: 20px;
    text-align: center;
}

#service section .icon img {
    border-radius: 30px;
    width: 100%;
}

#contact {
    margin-bottom: 60px;
    padding: 0 30px;
}

#contact section {
    margin-bottom: 40px;
}

#contact section.last {
    margin-bottom: 0;
}

#contact section .icon {
    margin-bottom: 20px;
    text-align: center;
}

#contact section .icon img {
    width: 268px;
}

#works {
    margin-bottom: 70px;
    padding: 0 20px;
}

#works li {
    margin-bottom: 40px;
    text-align: center;
}

#works li:last-child {
    margin-bottom: 0;
}

#works li img {
    width: 280px;
    height: 260px;
}

@media only screen and (min-width: 760px) {
    #mainvisual {
        margin-bottom: 80px;
        background-color: #ecebeb;
        text-align: center;
    }

    #mainvisual img {
        max-width: 960px;
        height: auto;
    }

    #mainvisual .pc {
        display: block;
    }

    #mainvisual .sp {
        display: none;
    }

    #about {
        max-width: 920px;
        margin: 0 5% 100px 5%;
        padding: 0;
    }

    #about section {
        float: left;
        width: 30%;
        height: auto;
        margin-right: 5%;
    }

    #about section.last {
        margin-right: 0;
    }

    #about section .icon {
        margin-bottom: 40px;
        text-align: center;
    }

    #about section .icon img {
        width: 98px;
        height: 102px;
    }

    #about section {
        margin-bottom: 0;
    }

    #about section.last {
        margin-bottom: 0;
    }

    #service {
        max-width: 920px;
        margin: 0 5% 100px 5%;
        padding: 0;
    }

    #service section {
        margin-bottom: 40px;
    }

    #service section.last {
        margin-right: 0;
    }

    #service section .icon {
        margin-bottom: 40px;
        text-align: center;
    }

    #service section .icon img {
        width: 100%;
    }

    #service section.last {
        margin-bottom: 0;
    }

    #main h3.title {
        margin-bottom: 16px;
        font-size: 22px;
    }

    #works {
        max-width: 920px;
        margin: 0 5% 100px 3%;
        padding: 0;
    }

    #works li {
        box-sizing: border-box;
        display: inline-block;
        width: 30%;
        margin-right: 5%;
        margin-bottom: 60px;
        border: 1px solid #e0e0e0;
        vertical-align: top;
    }

    #works li:nth-child(3n) {
        margin-right: 0;
    }

    #works li img {
        width: 100%;
        height: auto;
    }

    .toTop a {
        display: block;
        width: 24px;
        margin: 0 auto 20px auto;
        padding: 8px 20px;
    }

}

@media only screen and (min-width: 961px) {

    #about {
        width: 920px;
        margin: 0 auto 100px auto;
        padding: 0;
    }

    #about section {
        float: left;
        width: 280px;
        height: auto;
        margin-right: 40px;
    }

    #service {
        width: 920px;
        margin: 0 auto 100px auto;
        padding: 0;
    }

    #service section {
        height: auto;
        margin-bottom: 80px;
    }

    #main .text01 {
        padding: 0 40px;
    }

    #contact {
        width: 920px;
        margin: 0 auto 100px auto;
        padding: 0;
    }

    #contact section {
        float: left;
        width: 280px;
        height: auto;
        margin-right: 40px;
    }

    #main h2.title {
        margin-bottom: 65px;
        font-size: 50px;
    }

    #main h3.title {
        font-size: 25px;
    }

    #main p.title {
        font-size: 14px;
    }

    #works {
        width: 920px;
        margin: 0 auto 100px auto;
        padding: 0;
    }

    #works li {
        width: 280px;
        margin-right: 35px;
    }
}
