.stepItem {
    border: 1px solid #000;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 24px;
    position: relative;
    margin-bottom: 30px;
}

.stepItem::after {
    content: "";
    display: block;
    width: 1px;
    height: 30px;
    background: #000;
    position: absolute;
    bottom: -30px;
    left: 50%;
}

.stepItem:last-child::after {
    display: none;
}

.stepItem>div {
    display: flex;
    align-items: center;
}

#contents .stepItem p {
    margin: 0;
}

#contents p.stepTitle {
    font-weight: bold;
    width: 13em;
    text-align: center;
}

.voiceItem {
    display: flex;
    margin-bottom: 30px;
}

#contents .voiceItem>p {
    margin: 0 30px 0 0;
    width: 140px;
}

#contents .voiceItem>div {
    flex: 1;
}

#contents .voiceName {
    font-weight: bold;
    margin-bottom: 8px;
}

#contents .voiceText {
    border: 1px solid #000;
    border-radius: 12px;
    background: #FFF;
    padding: 12px 20px;
    position: relative;
}

/* 外側の黒枠の細い三角 */
.voiceText::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-width: 7px 20px 7px 0;
    border-style: solid;
    border-color: transparent #000 transparent transparent;
}

/* 内側の白い細い三角 */
.voiceText::after {
    content: "";
    position: absolute;
    left: -18px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-width: 6px 20px 6px 0;
    border-style: solid;
    border-color: transparent #FFF transparent transparent;
}

.voiceItem:nth-child(2n) {
    flex-direction: row-reverse;
}

#contents .voiceItem:nth-child(2n)>p {
    margin: 0 0 0 30px;
    width: 140px;
}

.voiceItem:nth-child(2n) .voiceText::before {
    left: auto;
    right: -20px;
    border-width: 7px 0 7px 20px;
    border-color: transparent transparent transparent #000;
}

.voiceItem:nth-child(2n) .voiceText::after {
    left: auto;
    right: -18px;
    border-width: 6px 0 6px 20px;
    border-color: transparent transparent transparent #FFF;
}

.answer {
    display: flex;
    padding-left: 1em;
}

.imageR {
    display: flex;
    margin-bottom: 2em;
}

.imageR .overflow {
    margin-right: 20px;
    flex: 1;
}


@media screen and (max-width:479px) {
    .imageR {
        flex-direction: column;
    }

    .imageR .overflow {
        margin-right: 0;
        margin-bottom: 1em;
    }

    .imageR>p {
        text-align: center;
    }

    .stepItem {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 24px;
        gap: 12px 0;
    }

    #contents p.stepTitle {
        text-align: left;
        padding-left: 10px;
        font-size: 1.125rem;
        width: 100%;
    }

    #contents p.stepTitle br {
        display: none;
    }

    .voiceItem {
        position: relative;
        display: block;
        border: 1px solid #000;
        border-radius: 8px;
        padding: 16px 0 0;
    }

    #contents .voiceText {
        border: none;
    }

    #contents .voiceText::before,
    #contents .voiceText::after {
        display: none;
    }

    #contents .voiceItem > p,
    #contents .voiceItem:nth-child(2n) > p {
        width: 100px;
        margin: 0;
        position: absolute;
        top: 10px;
        left: 10px;
    }

    #contents .voiceName {
        font-size: 1.2rem;
        margin: 8px 0 24px 120px;
        text-align: center;
    }

    .spFlex {
        text-align: center;
    }
}