@charset "UTF-8";

#face {
    background: #ccd6e0;
    height: 100vh;
    background-image: url(../office/img/top_img.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.face_content {
    margin-left: 25vw;
    padding: 20px;
    width: calc(100% - 25vw);
    position: relative;
}

.face_content .face_txt {
    position: absolute;
    left: 30px;
    bottom: 30px;
    line-height: 2;
}

@media all and (max-width: 1200px) {
    #face {
        min-height: auto;
        height: calc(100vh - 80px);
    }
    
    .face_content {
        margin-left: 0vw;
        padding: 20px;
        width: 100%;
    }
    
}

@media all and (max-width: 767px) {
    #face {
        height: calc(100vh - 50px);
        max-height: 400px;
    }

    .face_content .face_txt {
        left: 0px;
        bottom: 0px;
        line-height: 2;
        font-size: 13px;
        text-align: justify;
        margin: 0 20px 20px;
    }
}

/*------------------------
main
------------------------*/
.h2_common span {
    font-size: 40px;
}

.greeting_wrap {
    display: flex;
    justify-content: center;
}

.greeting_wrap .txt {
    width: 50%;
    line-height: 2;
    margin-right: 30px;
}

.greeting_wrap .txt .name {
    text-align: right;
    margin-top: 15px;
    font-size: 20px;
    font-weight: bold;
}

.greeting_wrap .txt .name span {
    margin-right: 1em;
    font-size: 80%;
}

.greeting_wrap figure {
    width: 250px;
}

.greeting_wrap figure img {
    width: 100%;
}

@media all and (max-width: 767px) {
    .h2_common span {
        font-size: 24px;
    }

    .greeting_wrap {
        flex-wrap: wrap;
    }

    .greeting_wrap .txt {
        width: 100%;
        margin-right: 0px;
        font-size: 14px;
    }

    .greeting_wrap .txt .name {
        margin-top: 10px;
        font-size: 16px;
        margin-bottom: 20px;
    }

    .greeting_wrap .txt .name span {
        margin-right: 1em;
        font-size: 80%;
    }

    .greeting_wrap figure {
        width: 200px;
    }

    .greeting_wrap figure img {
        width: 100%;
    }
}

.philosophy_wrap {
    width: 70%;
    margin: 0 auto;
}

.philosophy_wrap img {
    width: 400px;
    margin-bottom: 3vw;
}

.philosophy_wrap p {
    text-align: justify;
    line-height: 2;
}

@media all and (max-width: 767px) {
    .philosophy_wrap {
        width: 100%;
    }

    .philosophy_wrap img {
        width: 80%;
        margin-bottom: 5vw;
    }

    .philosophy_wrap p {
        font-size: 14px;
    }
}
.office_box {
    display: flex;
    width: 90%;
    margin: 0 auto;
    justify-content: space-between;
}

.office_box dl {
    width: 48%;
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    align-self: flex-start;
}

.office_box dl dt {
    font-weight: bold;
    width: 7em;
}

.office_box dl dd {
    width: calc(100% - 8em);
    text-align: justify;
}

.map {
    width: 100%;
}

.map iframe {
    width: 100%;
    height: 300px;
}

@media all and (max-width: 767px) {
    .office_box {
        width: 100%;
        flex-wrap: wrap;
    }

    .office_box dl {
        width: 100%;
        font-size: 14px;
        gap: 0;
    }
    
    .office_box dl dt {
        width: 100%;
        margin-bottom: 0.5em;
    }
    
    .office_box dl dt:not(:first-child),.office_box dl:not(:first-child) dt:first-child {
        margin-top: 1em;
    }

    .office_box dl dd {
        width: 100%;
    }
    
    .map iframe {
        height: 200px;
    }
}

.history_table {
    border-collapse: collapse;
    margin: 0 auto;
}

.history_table td {
    padding: 0.5em;
}

@media all and (max-width: 767px) {
    .history_table {
        width: 100%;
    }
    
    .history_table tr:not(:last-child) {
        border-bottom: 1px solid #ddd;
    }
    
    .history_table td {
        display: block;
        padding: 0 1em;
        font-size: 14px;
    }
    
    .history_table td:first-child {
        padding-top: 0.5em;
        font-weight: bold;
    }
    
    .history_table td:last-child {
        padding-bottom: 0.5em;
    }
}

.staff_list {
    display: flex;
    justify-content: center;
    gap: 3vw;
}

.staff_list li {
    width: 35%;
}

.staff_list .position {
    text-align: center;
    font-weight: bold;
    color: #005371;
    letter-spacing: 0.1em;
    font-size: 15px;
}

.staff_list .name {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 1em;
    letter-spacing: 0.1em;
}

.staff_list img {
    width: 100%;
}

@media all and (max-width: 767px) {
    .staff_list {
        flex-wrap: wrap;
        gap: 5vw;
    }

    .staff_list li {
        width: 100%;
    }

    .staff_list .position {
        font-size: 13px;
    }

    .staff_list .name {
        font-size: 16px;
        margin-bottom: 0.5em;
    }
}