
/*　共通ナビゲーションメニュー*/
.cmn-nav {
    margin: 4.5em 0.5em;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.cmn-nav > a {
    display: block;
    text-decoration: none;
    font-weight: bold;
    color: var(--main-color);
    padding: 13px 23px;
    border-bottom: #A8AFEE 1px solid;
    position: relative;
    width: 150px;
    max-width: 285px;
    margin: 0 10px;
    flex-basis: 250px;

}

.cmn-nav > a:last-child {
    border-bottom: none; 
}

.cmn-nav > a::after {
    content: url(nav.svg);
    display: block;
    position: absolute;
    padding-right: 25px;
    top: 25%;
    right: 0;
}


/* 経営理念 */
#mngmnt {
    background-image: url(philosophy.jpg);
    background-size: cover;
    padding-top: 1px;
    align-items: center;
    background-color: var(--main-color);
}

#mngmnt > h2 {
    width: fit-content;
    padding: 0.5em;
    margin: 1em auto;
    background-color: white;
    color: var(--main-color);
    height: fit-content;
}

#mngmnt > .kei {
    flex-basis: 50%;
    margin: 0;
}

.kei > span {
    display: inline-block;
    color: white;
    font-size: 1em;
}

/* 創業者の精神 */
#fondr {
    background-image: url(spirit.jpg);
    background-size: cover;
    align-items: center;
    padding-top: 1px;
}

#fondr > h2 {
    color: white;
    background-color: var(--main-color);
    width: fit-content;
    padding: 0.5em;
    margin: 1em auto;
    height: fit-content;
}

#fondr > .sou {
    flex-basis: 50%;
}

.sou > span {
    display: inline-block;
    color: var(--main-color);
    font-size: 1em;
}

/*  　　　　共通パーツ　　　　*/
/*  　経営理念・創業者の精神　*/
.c {
    padding: 1em;
    line-height: 50px;
}

.c > span > b {
    font-size: 2em;
    text-decoration: underline 5px #C8B405;
    text-underline-offset: -1px;
}

/* 経営方針 */
#policy {
    margin: 3em 1em;
}

#policy > h2 {
    background-color: var(--main-color);
    color: white;
    width: fit-content;
    padding: 4px 8px;
    flex-basis: 50%;
}

.box > div {
    color: var(--main-color);
    border: var(--main-color) 1px solid;
    margin: 22px auto;
    max-width: 420px;
}

.box > div > h3 {
    font-size: 18px;
    padding-left: 30px;
    position: relative;
}

.box > div > h3::before {
    content: "";
    width: 5px;
    height: 24px;
    background-color: var(--main-color);
    position: absolute;
    top: 2px;
    left: 20px;
}


.box > div > p {
    padding: 0 1em;
    color: inherit;
}

/* 経営基本目標 */
#mngmnt-plcy {
    padding: 50px 0.5em;
    background-color: var(--main-color);
}

#mngmnt-plcy {
    color: white;
    font-size: 1.5em;
}

.goal {
    margin: 3em auto;
    background-color: white;
    padding: 20px 0;
    max-width: 340px;
}

.goal > h3 {
    background-color: var(--main-color);
    color: white;
    font-size: 24px;
    width: fit-content;
    margin: 0 auto;
    margin-top: -40px;
    padding: 2px 24px;
}

.goal > dl > div {
    display: flex;
    border-bottom: dashed var(--main-color) 2px;
    max-height: 100px;
}

.goal > dl > div:last-child {
    border-bottom: none;
}

.goal > dl > div > dt {
    display: flex;
    align-items: center;
    color: var(--main-color);
    font-size: 2em;
    font-weight: bold;
    padding: 0.5em;
}

.goal > dl > div > dd {
    display: flex;
    color: #444444;
    font-size: 16px;
    margin: 0;
    padding: 10px; 
    font-weight: bold;
    align-items: center;
}

@media(min-width:450px) {
    .cmn-nav > a:last-child {
        border-bottom: #A8AFEE 1px solid;
    }
}

@media(min-width:640px) {

    #mngmnt {
        display: flex;
    }

    #mngmnt > h2 {
        font-size: 2.5em;
    }

    #fondr {
        display: flex;
    }

    #fondr > h2 {
        font-size: 2.5em;
    }
    /* 経営方針 */
    #policy > h2 {
        font-size: 2.5em;
        margin: 1em auto;
    }

    .box {
        display: flex;
        gap: 15px;
        justify-content: center;
    }

    .box > div {
        width: 33%;
        margin: 0;
    }


    /* 経営基本目標 */
    #mngmnt-plcy > h2 {
        font-size: 2.5em;
        margin: 0 auto;
        width: fit-content;
    }

    #mngmnt-plcy > div {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .goal {
        margin: 3em 0;
    }
}

@media(min-width:1024px) {
    .comn-sec {
        height: 380px;
    }

    .comn-sec > h2 {
        font-size: 3em;
    }

    .c {
        font-size: 2em;
    }

    .c > p {
        font-size: 2em;
    }

    .c > span > b {
        font-size: 48px;
    }

    .box > div > h3 {
        font-size: 32px;
    }

    .box > div > p {
        font-size: 18px;
    }

    .box > div > h3::before {
        content: "";
        width: 8px;
        height: 28px;
        background-color: var(--main-color);
        position: absolute;
        top: 10px;
        left: 12px;
    }

    #mngmnt-plcy > div {
        display: flex;
        flex-wrap: wrap;
        gap: 30px;
        justify-content: center;
    }
}