@charset "utf-8";

h2 {
    margin-bottom: 30px;
}

@media only screen and (max-width: 768px) {
    h2 {
        margin-bottom: 15px;
    }
}

/*============================
経営理念
============================*/

#philosophy .flex {
    counter-reset: num1 0;
    background: #e4f0fb;
    border-radius: 10px;
    padding: 40px;
    position: relative;
}

#philosophy .flex li {
    width: 440px;
    padding-left: 40px;
    position: relative;
}

#philosophy .flex li::before {
    counter-increment: num1 1;
    content: counter(num1) ",";
    font-family: "Geom", sans-serif;
    font-size: 25px;
    font-weight: 600;
    line-height: 1;
    position: absolute;
    top: 0;
    left: 0;
    color: #59b55b;
}

#philosophy .flex li:first-child::after {
    content: "";
    width: 1px;
    height: 100%;
    background: #59b55b;
    display: block;
    position: absolute;
    top: 0;
    right: -40px;
}

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

    #philosophy .flex {
        padding: 30px;
    }

    #philosophy .flex li {
        width: 100%;
        padding-left: 35px;
    }

    #philosophy .flex li:first-child {
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    #philosophy .flex li:first-child::after {
        content: "";
        width: 100%;
        height: 1px;
        position: absolute;
        top: auto;
        right: 0;
        left: 0;
        bottom: 0;
    }
}

/*============================
行動指針
============================*/

#guidelines .flex {
    align-items: stretch;
}

#guidelines .box {
    width: 320px;
    border-radius: 10px;
    border: 1px solid #59b55b;
    padding: 40px 35px;
    counter-reset: num2 0;
}

#guidelines .box h3 {
    font-size: 24px;
    color: #59b55b;
    margin-bottom: 20px;
}

#guidelines .box li {
    padding-left: 35px;
    position: relative;
}

#guidelines .box li::after {
    counter-increment: num2 1;
    content: counter(num2) " ";
    width: 24px;
    height: 24px;
    border-radius: 12px;
    display: block;
    background: #59b55b;
    color: #efea45;
    font-family: "Geom", sans-serif;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    line-height: 24px;
    position: absolute;
    top: 0;
    left: 0;
}

#guidelines .box li:not(:last-child) {
    margin-bottom: 15px;
}

#guidelines .box p {
    background: #f0fada;
    font-size: 14px;
    padding: 10px 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

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

    #guidelines .box {
        width: 100%;
        padding: 20px 30px;
    }

    #guidelines .box:not(:last-child) {
        margin-bottom: 20px;
    }

    #guidelines .box h3 {
        font-size: 20px;
        margin-bottom: 10px;
    }

}

/*============================
由来
============================*/
#origin .box {
    background: #fdf3f8;
    border-radius: 10px;
}

#origin .box div.flex {
    padding: 50px 60px 40px;
    justify-content: flex-start;
    border-bottom: 1px solid #59b55b;
}

#origin .box div.flex img {
    width: 290px;
    margin-right: 40px;
}

#origin .box div.flex h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

#origin .box ul.flex {
    padding: 40px 60px 60px;
    align-items: stretch;
}

#origin .box ul.flex li {
    width: 280px;
    background: #fff;
    border: 1px solid #59b55b;
    border-radius: 10px;
    padding: 40px 35px;
}

#origin .box ul.flex li .tag {
    width: 100%;
    background: #e4f0fb;
    display: block;
    text-align: center;
    position: relative;
    font-weight: 600;
    font-size: 40px;
    color: #59b55b;
    border-radius: 10px;
    margin-bottom: 30px;
}

#origin .box ul.flex li .tag::before {
    content: "";
    background: #fff;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
    position: absolute;
    top: calc(50% - 6px);
    left: 10px;
}

#origin .box ul.flex li .detail {
    font-size: 25px;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 15px;
}

#origin .box ul.flex li .detail span {
    color: #59b55b;
}

#origin .box ul.flex li dt {
    font-size: 14px;
    padding-bottom: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #59b55b;
    position: relative;
}

#origin .box ul.flex li dt::before {
    content: "";
    display: block;
    width: 9px;
    height: 9px;
    background: #fff;
    border-top: solid 1px #59b55b;
    border-right: solid 1px #59b55b;
    -webkit-transform: rotate(135deg);
    transform: rotate(135deg);
    position: absolute;
    bottom: -6px;
    right: 0;
    left: 0;
    margin: auto;
    z-index: 10;
}

#origin .box ul.flex li dd {
    font-size: 16px;
    font-weight: 700;
}

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

    #origin .box div.flex {
        padding: 30px;
    }

    #origin .box div.flex img {
        width: 100%;
        max-width: 290px;
        margin-right: 0;
        margin: 0 auto 20px;
    }

    #origin .box div.flex h3 {
        font-size: 18px;
    }

    #origin .box ul.flex {
        padding: 30px;
    }

    #origin .box ul.flex li {
        width: 100%;
        padding: 30px;
    }

    #origin .box ul.flex li:not(:last-child) {
        margin-bottom: 20px;
    }

    #origin .box ul.flex li .tag {
        font-size: 32px;
        margin-bottom: 20px;
    }

    #origin .box ul.flex li dt {
        margin-bottom: 20px;
    }
}

/*============================
代表挨拶
============================*/

#message .left_box {
    width: 340px;
}

#message .right_box {
    width: 660px;
}

#message .name {
    text-align: right;
    font-size: 16px;
    font-weight: bold;
}

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

    #message .left_box {
        width: 100%;
    }

    #message .left_box .photo {
        width: 100%;
        height: 0;
        padding-top: 80%;
        position: relative;
        margin-bottom: 15px;
    }

    #message .left_box .photo img {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    #message .right_box {
        width: 100%;
    }
}

/*============================
会社概要
============================*/
#company table.info tbody {
    width: 500px;
    display: block;
}

#company table.info td dl {
    display: flex;
}

#company table.info td dl dt {
    width: 125px;
    margin-right: 20px;
}

#company table.info td span {
        display: block;
        margin-top: 10px;
    }

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

    #company table.info tbody {
        width: 100%;
    }

    #company table.info tbody:not(:last-child) {
        margin-bottom: 10px;
    }

    #company table.info td dl {
        display: block;
    }

    #company table.info td dl:not(:last-child) {
        margin-bottom: 10px;
    }

    #company table.info td dl dt {
        margin-right: 10px;
        font-size: 13px;
    }

    #company table.info td dl dd {
        font-size: 16px;
    }
}
