@charset "utf-8";

/*============================
働く人の声
============================*/

#voice section {
    border-radius: 10px;
    overflow: hidden;
}

#voice section:not(:last-child) {
    margin-bottom: 50px;
}

#voice section .prof,
#voice section .qa {
    padding: 60px;
}

#voice section .prof {
    height: 429px;
    position: relative;
}

#voice section .prof h2 {
    margin-top: 50px;
    margin-bottom: 40px;
}

#voice section .prof .name {
    font-size: 24px;
    margin-top: 0;
}

#voice section .prof .pattern {
    font-size: 17px;
}

#voice section .qa {
    background: #f0fada;
}

#voice section .qa .flex {
    align-items: stretch;
    grid-gap: 40px;
}

#voice section .prof .photo {
    width: 600px;
    position: absolute;
    top: 60px;
    right: 60px;
}

#voice section .prof i {
    color: #59b55b;
    /*反転させるとパディングも逆になるらしい*/
    padding-left: 6px;
}

#voice section .qa dl {
    width: 440px;
    padding: 40px;
    border-radius: 10px;
    background: #fff;
    font-weight: 600;
}

#voice section .qa dl dt {
    font-size: 17px;
    color: #59b55b;
    margin-bottom: 20px;
    position: relative;
    padding-left: 55px;
}

#voice section .qa dt::before {
    content: "Q";
    background: #59b55b;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #efea45;
    font-size: 18px;
    font-weight: 600;
    font-family: "Geom", sans-serif;
    position: absolute;
    top: -6px;
    left: 0;
}

/*個別の設定*/
#voice section.early_morning .prof {
    background: #e4f0fb;
    font-weight: 600;
}

#voice section.early_morning .prof::before {
    content: "";
    background: url(../../images/common/early_morning_illust.png)no-repeat center center;
    background-size: 100%;
    width: 154px;
    height: 64px;
    display: block;
    position: absolute;
    left: 30px;
    bottom: 0;
}

#voice section.daytime .prof {
    background: #fdf3f8;
}

#voice section.daytime .photo {
    right: auto;
    left: 60px;
}

#voice section.daytime h2,
#voice section.daytime .year,
#voice section.daytime .name,
#voice section.daytime .pattern {
    width: 270px;
    margin-left: auto;
}

#voice section.daytime .prof::before {
    content: "";
    background: url(../../images/common/daytime_illust.png)no-repeat center center;
    background-size: 100%;
    width: 167px;
    height: 64px;
    display: block;
    position: absolute;
    right: 20px;
    bottom: 20px;
}

@media only screen and (max-width: 768px) {
    #voice section {
        border-radius: 10px;
        overflow: hidden;
    }

    #voice section:not(:last-child) {
        margin-bottom: 50px;
    }

    #voice section .prof,
    #voice section .qa {
        padding: 30px;
    }

    #voice section .prof {
        height: auto;
        /*イラストの高さ*/
        padding-bottom: 60px;
    }

    #voice section .prof h2 {
        margin-top: 0;
        margin-bottom: 15px;
    }

    #voice section .prof .name {
        font-size: 20px;
    }

    #voice section .prof .pattern {
        font-size: 16px;
    }

    #voice section .qa .flex {
        grid-gap: 20px;
    }

    #voice section .prof .photo {
        width: 100%;
        position: static;
        margin-bottom: 15px;
    }

    #voice section .qa dl {
        width: 100%;
        padding: 30px;
    }

    #voice section .qa dl dt {
        padding-left: 50px;
        font-weight: 700;
        margin-bottom: 15px;
    }

    /*個別の設定*/

    #voice section.early_morning .prof::before {
        width: 107px;
        height: 40px;
        left: calc(50% - 64px);
        bottom: 0;
    }

    #voice section.daytime h2,
    #voice section.daytime .year,
    #voice section.daytime .name,
    #voice section.daytime .pattern {
        width: 100%;
        margin-left: auto;
    }

    #voice section.daytime .prof::before {
        width: 116px;
        height: 45px;
        left: calc(50% - 58px);
        right: auto;
        bottom: 10px;
    }
}
