@charset "utf-8";
@import url("base.css");


/* home1
---------------------------------------------------- */

#home1 p {
    line-height: 2.6;
    margin-bottom: 140px;
}

#home1 li {
    display: block;
    float: left;
    border-bottom: 1px solid #e7e7e7;
    box-sizing: border-box;
    max-height: 1000px;
    overflow: hidden;
}

#home1 li img {
    box-sizing: border-box;
    width: 100%;
    height: auto;
    border-top: 1px solid #e7e7e7;
    border-left: 1px solid #e7e7e7;
    border-right: 1px solid #e7e7e7;
    display: block;
}

#home1 li:nth-child(1) {
    width: 47%;
}

#home1 li:nth-child(2) {
    width: 29%;
    margin: 0px 2%;
}

#home1 li:nth-child(3) {
    width: 20%;
}

#home1 li:nth-child(3) img:first-child {
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
}

@media screen and (max-width: 768px) {
    #home1 p {
        margin-bottom: 100px;
    }
    #home1 li {
        max-height: 500px;
    }
}

@media screen and (max-width: 480px) {
    #home1 p {
        line-height: 2.2;
        margin-bottom: 60px;
    }
    #home1 li {
        max-height: 300px;
    }
    #home1 li:nth-child(1) {
        width: 49%;
    }
    #home1 li:nth-child(2) {
        width: 49%;
        margin: 0px;
        float: right;
    }
    #home1 li:nth-child(3) {
        width: 100%;
        margin-top: 10px;
    }
    #home1 li:nth-child(3) a {
        width: 49%;
        display: block;
    }
    #home1 li:nth-child(3) a:nth-child(1) {
        float: left;
    }
    #home1 li:nth-child(3) a:nth-child(2) {
        float: right;
    }
}

/* home2
---------------------------------------------------- */

.home2 li {
    display: block;
    float: left;
    width: 46%;
}

.home2 li:last-child {
    float: right;
}

.home2 img {
    float: left;
    width: 41%;
    height: auto;
    border: 1px solid #e7e7e7;
}

.home2 dl {
    float: right;
    width: 53%;
}

.home2 dt {
    font-size: 18px;
    line-height: 2;
    margin-bottom: 30px;
}

.home2 dt a:hover {
    color: #d00;
}

.home2 dd p:first-child {
    font-size: 13px;
    line-height: 2.4;
    margin-bottom: 20px;
}

.home2 dd p:last-child {
    line-height: 2;
    margin: 0px;
    font-size: 15px;
}

@media screen and (max-width: 1000px) {
    .home2 li,
    .home2 li:last-child {
        float: none;
        width: auto;
    }
    .home2 li:last-child {
        margin-top: 60px;
    }
    .home2 img {
        float: left;
        width: 150px;
        height: auto;
        border: 1px solid #e7e7e7;
    }
    .home2 dl {
        float: none;
        width: auto;
        margin-left: 180px;
    }
}

@media screen and (max-width: 768px) {
    .home2 dt {
        margin-bottom: 8px;
    }
    .home2 dd p:first-child {
        margin-bottom: 8px;
        font-size: 12px;
    }
}

@media screen and (max-width: 520px) {
    .home2 img {
        float: right;
        margin: 0px 0px 10px 30px;
    }
    .home2 dl {
        margin-left: 0px;
    }
    .home2 dt br {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .home2 img {
        width: 100px;
        height: auto;
        margin: 5px 0px 5px 20px;
    }
    .home2 dt {
        font-size: 16px;
        margin-bottom: 5px;
    }
    .home2 dd p:first-child {
        margin-bottom: 5px;
        font-size: 11px;
    }
    .home2 dd p:last-child {
        font-size: 14px;
    }
}

/* home3
---------------------------------------------------- */

#home3 li {
    width: 32%;
    margin-right: 2%;
    float: left;
    font-size: 20px;
    border-radius: 50px;
    line-height: 1;
    background: linear-gradient(-125deg, #ffeefa 0%, #e0f5ff 100%);
}

#home3 li:nth-child(1),
#home3 li:nth-child(2),
#home3 li:nth-child(3) {
    margin-bottom: 40px;
}

#home3 li:nth-child(4) {
    clear: both;
}

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

#home3 li a {
    display: block;
    border: 2px solid #000;
    border-radius: 50px;
    padding: 20px 0px;
    text-align: center;
    background: rgba(255, 255, 255, 1);
    transition: background 1s;
}

#home3 li a:hover {
    background: rgba(255, 255, 255, 0);
}

@media screen and (max-width: 1080px) {
    #home3 li {
        font-size: 16px;
    }
}

@media screen and (max-width: 950px) {
    #home3 li,
    #home3 li:nth-child(1),
    #home3 li:nth-child(2),
    #home3 li:nth-child(3),
    #home3 li:nth-child(3n) {
        width: 49%;
        margin: 0px 2% 30px 0px
    }
    #home3 li:nth-child(4) {
        clear: none;
    }
    #home3 li:nth-child(2n) {
        margin-right: 0px;
    }
    #home3 li:nth-child(2n + 1) {
        clear: both;
    }
}

@media screen and (max-width: 640px) {
    #home3 li,
    #home3 li:nth-child(1),
    #home3 li:nth-child(2),
    #home3 li:nth-child(3),
    #home3 li:nth-child(3n) {
        width: auto;
        float: none;
        margin: 0px 0px 20px;
    }
}
