@charset "utf-8";

/*============================
社員インタビュー
============================*/
#interview section:not(:last-of-type) {
    margin-bottom: 80px;
}

#interview .introduction.flex .flex {
    align-items: center;
    margin-bottom: 40px;
}

/*
#interview .introduction.flex .flex .photo {
    width: 300px;
    border-radius: 10px;
    overflow: hidden;
}

#interview .introduction.flex .flex .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
*/

#interview .introduction.flex .flex .photo {
    width: 300px;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
}

#interview .introduction.flex .flex .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#interview .introduction .hand_w {
    font-size: 125px;
    line-height: 1.1;
}

#interview .box p.name {
    font-size: 28px;
}

#interview .box p.position {
    font-size: 20px;
    margin-top: 0;
}

.qa_box {
    counter-reset: number 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    grid-gap: 40px;
}

.qa_box dl {
    width: 500px;
    padding: 30px;
    background: #fffcf0;
    border-radius: 10px;
}

.qa_box dl dt {
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid #fe7f40;
    padding-bottom: 15px;
    margin-bottom: 15px;
    position: relative;
    padding-left: 40px;
}

.qa_box dl dt::before {
    counter-increment: number 1;
    content: "Q"counter(number) " ";
    font-family: "Poppins", sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
    color: #fe7f40;
    position: absolute;
    top: 2px;
    left: 0;
}

.qa_box dl dd {
    font-size: 14px;
}

/*奇数の時*/
#interview section:nth-child(odd) .introduction.flex {
    flex-direction: row-reverse;
}

#interview section:nth-child(odd) .introduction.flex .flex .photo {
    margin-right: 30px;
}

#interview section:nth-child(odd) .introduction .hand_w {
    text-align: right;
}

/*偶数の時*/
#interview section:nth-child(even) .introduction.flex .flex {
    flex-direction: row-reverse;
}

#interview section:nth-child(even) .introduction.flex .flex .photo {
    margin-left: 30px;
}

#interview section:nth-child(even) .introduction.flex .flex .box {
    text-align: right;
}

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

    #interview section:not(:last-of-type) {
        margin-bottom: 40px;
    }

    #interview .introduction.flex .flex {
        align-items: center;
        margin-bottom: 20px;
        width: 100%;
    }

    /*
     #interview .introduction.flex .flex .photo {
        width: 300px;
        border-radius: 10px;
        overflow: hidden;
    }
    
    #interview .introduction.flex .flex .photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
*/

    #interview .introduction.flex .flex .photo {
        width: 100%;
        height: 0;
        padding-top: 53.73%;
        margin-bottom: 20px;
        position: relative;
    }

    #interview .introduction.flex .flex .photo img {
        width: 100%;
        height: auto;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    #interview .introduction.flex .flex .box {
        width: 100%;
    }

    #interview .introduction .hand_w {
        font-size: 60px;
    }

    #interview .box p.name {
        font-size: 18px;
    }

    #interview .box p.position {
        font-size: 15px;
    }

    .qa_box {
        grid-gap: 20px;
    }

    .qa_box dl {
        width: 100%;
        padding: 20px;
    }

    .qa_box dl dt {
        padding-bottom: 10px;
        margin-bottom: 10px;
    }

    .qa_box dl dt::before {}

    .qa_box dl dd {}

    /*奇数の時*/
    #interview section:nth-child(odd) .introduction.flex {
        flex-direction: inherit;
    }

    #interview section:nth-child(odd) .introduction.flex .flex .photo {
        margin-right: 0;
        margin-bottom: 5px;
    }

    #interview section:nth-child(odd) .introduction .hand_w {
        text-align: left;
    }

    /*偶数の時*/
    #interview section:nth-child(even) .introduction.flex .flex {
        flex-direction: inherit;
    }

    #interview section:nth-child(even) .introduction.flex .flex .photo {
        margin-left: 0;
        margin-bottom: 5px;
    }

    #interview section:nth-child(even) .introduction.flex .flex .box {
        text-align: left;
    }
}
