@charset "utf-8";

.cont h1 {
    background-image: url(../images/title.png);
}

.primary {
    width: 980px;
}

/*============================
#only
============================*/
article#only div.lead p.catch {
    width: 727px;
    padding-top: 77px;
    padding-bottom: 0;
    height: 0;
    overflow: hidden;
    background: url(../images/lead.png) no-repeat left top;
    background-size: 100%;
    margin-bottom: 23px;
}

.pers {
    -js-display: flex;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 20px;
}

.pers img {
    width: 230px;
}

.house {
    margin-top: 60px;
}

#only h3 {
    border-left: 0;
    border-bottom: 0;
    font-size: 20px;
    font-weight: bold;
    color: #001c58;
    text-align: center;
    background: url(../images/trimming_house.png)no-repeat center bottom 0px;
    padding-bottom: 180px;
    margin-top: 0;
}

#only h3 span {
    background: url(../images/only_title.png) no-repeat center center;
    background-size: 100%;
    width: 607px;
    height: 0;
    padding-top: 41px;
    overflow: hidden;
    display: block;
    margin: 0 auto 20px;
}

/*吹き出し*/
#only .house ul li {
    background: #eee;
    width: 600px;
    text-align: center;
    position: relative;
    padding: 20px;
    margin-bottom: 30px;
}

#only .house ul li::after {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 14px 14px 0 14px;
    border-color: #eee transparent transparent transparent;
    position: absolute;
    bottom: -14px;
    left: 0;
    right: 0;
    margin: auto;
}

#only .house ul li:nth-child(even) {
    margin-left: auto;
}

#only .house ul li:last-child {
    margin-bottom: 40px;
}

/*初心者*/

.beginner {
    border: 1px solid #001c58;
    padding: 30px;
    background: url(../images/beginner.png) no-repeat center left 30px;
}

.beginner p {
    width: 830px;
    margin-left: auto;
}

.beginner .title {
    font-size: 20px;
    font-weight: bold;
    color: #001c58;
}

#only section {
    padding-top: 60px;
}


#only h4 {
    background: #001c58;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    padding: 16px;
    margin-bottom: 25px;
}

#only h5 {
    border-left: 8px solid #001c58;
    padding: 10px 0 10px 10px;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 15px;
}

#only section div p:not(:last-child) {
    margin-bottom: 15px;
}

#only section.box1 .clearfix:last-of-type {
    margin-top: 40px;
}

#only section div:first-child img {
    float: left;
    margin-right: 40px;
}

#only section div:nth-child(2) img {
    float: right;
    margin-left: 40px;
}

/*============================
#flow&#contact
============================*/

#flow h2,
#contact h2 {
    border-left: 0;
    background: none;
    text-align: center;
    position: relative;
    padding-left: 0;
}

#flow h2::before,
#contact h2::before,
#flow h2::after,
#contact h2::after {
    content: "";
    background: #cc9900;
    display: inline-block;
    width: 18px;
    height: 18px;
    position: absolute;
    top: 18px;
    margin: 0 auto;
}

#flow h2::before,
#contact h2::before {
    left: 0;
    right: 150px;
}

#flow h2::after,
#contact h2::after {
    left: 150px;
    right: 0;
}

.flex_box {
    -js-display: flex;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

/*============================
#flow
============================*/
.flex_box {
    counter-reset: number 0;
}

.flex_box dl {
    background: #f2f2f2;
    width: 230px;
    height: 210px;
    padding: 20px;
}

.flex_box dl:nth-child(-n+4) {
    margin-bottom: 20px;
}

.flex_box dl::before {
    counter-increment: number 1;
    /* number カウンタを増加 */
    content: counter(number, decimal-leading-zero);
    font-size: 30px;
    text-align: center;
    display: block;
    border-bottom: 1px solid #444444;
    margin-bottom: 5px;
}

.flex_box dl dt {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

.flex_box dl dd {
    text-align: justify;
}

/*============================
#contact
============================*/
#contact img {
    width: 470px;
}

#contact p {
    width: 470px;
}


@media only screen and (max-width: 768px) {
    .cont h1 {
        background-image: url(../images/title_sp.png);
    }

    .primary {
        width: 90.625%;
    }

    /*
    article#only div.lead p.catch {
        width: 100%;
        padding-top: 13.58208955%;
        padding-bottom: 0;
        height: 0;
        overflow: hidden;
        background-image: url(../images/lead_sp.png);
        background-size: 100%;
        margin-bottom: 23px;
    }

    article#only div.lead img {
        width: 100%;
        padding-top: 85.52238805%;
        padding-bottom: 0;
        height: 0;
        overflow: hidden;
        background: url(../images/01_sp.jpg) no-repeat top left;
        background-size: 100%;
    }


    article#only div.lead div.text img {
        float: none;
        margin: 0;
        width: 100%;
        padding-top: 14.516129%;
        height: 0;
        overflow: hidden;
        background: url(../images/gd_icon_sp.png) no-repeat left top;
        background-size: 100%;
        margin: auto;
    }

    article#only div.lead div.text p span {
        font-size: 17px;
    }



    .link {
        display: block;
    }

    .link li {
        margin: 0 auto 20px auto;
    }

    .link li:last-child {
        margin: 0 auto 0 auto;
    }
*/
    /*============================
#only
============================*/
    article#only div.lead p.catch {
        width: 100%;
        padding-top: 33.13%;
        background-image: url(../images/lead_sp.png);
    }

    .pers {}

    .pers img {
        background: url(../images/01_sp.jpg) no-repeat center center;
        background-size: 100%;
        width: 48%;
        height: 0;
        padding-top: 48%;
        overflow: hidden;
    }

    .pers .img01 {
        background-image: url(../images/01_sp.jpg);
        margin-bottom: 4%;
    }

    .pers .img02 {
        background-image: url(../images/02_sp.jpg);
        margin-bottom: 4%;
    }

    .pers .img03 {
        background-image: url(../images/03_sp.jpg);
    }

    .pers .img04 {
        background-image: url(../images/04_sp.jpg);
    }

    .house {
        margin-top: 40px;
    }

    #only h3 {
        font-size: 16px;
        background: url(../images/trimming_house_sp.png)no-repeat center bottom 0px;
        background-size: 200px;
        padding: 0;
        padding-bottom: 150px;
        margin-top: 0;
    }

    #only h3 span {
        background-image: url(../images/only_title_sp.png);
        width: 100%;
        padding-top: 6.75%;
        margin: 0 auto 10px;
    }

    /*吹き出し*/
    #only .house ul li {
        width: 100%;
        position: relative;
        margin-bottom: 30px;
        text-align: left;
    }

    #only .house ul li::after {}

    #only .house ul li:nth-child(even) {
        margin-left: auto;
    }

    #only .house ul li:last-child {
        margin-bottom: 40px;
    }

    /*初心者*/

    .beginner {
        padding: 20px;
        background: url(../images/beginner_sp.png) no-repeat center top 20px;
        background-size: 50px;
    }

    .beginner p {
        width: 100%;
        margin-left: auto;
        text-align: justify;
    }

    .beginner .title {
        font-size: 20px;
        font-weight: bold;
        color: #001c58;
        padding-top: 90px;
    }

    #only section {
        padding-top: 40px;
    }


    #only h4 {
        text-align: left;
        margin-bottom: 15px;
    }

    #only h5 {
        border-left: 8px solid #001c58;
        padding: 10px 0 10px 10px;
        font-weight: bold;
        font-size: 16px;
        margin-bottom: 15px;
    }

    #only section div p:not(:last-child) {}

    #only section.box1 .clearfix:last-of-type {
        margin-top: 40px;
    }

    #only section div:first-child img {
        float: none;
        margin-right: 0;
        margin-bottom: 15px;
        background: url(../images/a1_sp.jpg)no-repeat center center;
        background-size: 100%;
        width: 100%;
        height: 0;
        padding-top: 52.29%;
        overflow: hidden;
    }

    #only section div img.a1 {
        background-image: url(../images/a1_sp.jpg);
    }

    #only section div img.b1 {
        background-image: url(../images/b1_sp.jpg);
    }

    #only section div:nth-child(2) img {
        float: none;
        margin-left: 0;
        margin-bottom: 20px;
        background: url(../images/a2_sp.png) no-repeat center center;
        background-size: 100%;
        width: 70%;
        height: 0;
        padding-top: 70%;
        overflow: hidden;
        margin: 0 auto 15px;
        display: block;
    }

    /*============================
#flow&#contact
============================*/

    .cont #flow h2,
    .cont #contact h2 {
        margin-bottom: 15px;
    }

    #flow h2::before,
    #contact h2::before,
    #flow h2::after,
    #contact h2::after {}

    #flow h2::before,
    #contact h2::before {}

    #flow h2::after,
    #contact h2::after {}

    .flex_box {}

    /*============================
#flow
============================*/
    .flex_box {
        counter-reset: number 0;
    }

    .flex_box dl {
        width: 100%;
        height: auto;
    }

    .flex_box dl:not(:last-of-type) {
        margin-bottom: 20px;
    }

    .flex_box dl::before {
        font-size: 30px;
        text-align: center;
        display: block;
        border-bottom: 1px solid #444444;
        margin-bottom: 5px;
    }

    .flex_box dl dt {}

    .flex_box dl dd {}

    /*============================
#contact
============================*/
    #contact img {
        width: 100%;
        margin-bottom: 15px;
    }

    #contact p {
        width: 100%;
    }



}
