<dl class="qanda">
 <dt><span>ここに質問を入力</span></dt><!-- 質問 -->
 <dd><p>ここに回答を入力</p></dd><!-- 回答 -->
</dl>
/*Q&A style.css 2811-2972行目
==================================================================================================*/

.qanda {
    width: 95%;
    margin: 10px;
    padding: 0px 10px;
    border: 1px solid #e2e2e2;
    background: #fff;
    line-height: 1.7;
    margin-left: auto;
    margin-right: auto;
}

.qanda dt span {
    display: table-cell;
    vertical-align: middle;
    text-align: left;
    font-size: 18px;
}

dd p {
    font-weight: 500;
    font-size: 16px;
    text-align: left;
    line-height: 1.75em;
}

.qanda dt {
    position: relative;
    display: table;
    width: 91%;
    min-height: 76px;
    padding: 5px 10px 10px 80px;
    border-bottom: 1px solid #efefec;
    font-weight: 600;
    margin: 0;
}

.qanda dt:before {
    position: absolute;
    top: 10px;
    left: 0;
    display: block;
    width: 55px;
    height: 55px;
    content: "Q";
    text-align: center;
    color: #fff;
    border: 4px solid #eeeeee;
    border-radius: 33px;
    background: #ff9800;
    font-family: RexBold, Open Sans, Noto Sans Japanese, 游ゴシック体, Yu Gothic, YuGothic, ヒラギノ角ゴ ProN W3, Hiragino Kaku Gothic ProN, メイリオ, Meiryo, sans-serif;
    font-size: 40px;
    font-size: 32px;
    line-height: 56px;
}

.qanda dd {
    position: relative;
    display: table;
    min-height: 76px;
    padding: 10px 10px 0px 60px;
    margin-left: 0;
}

.qanda dd:before {
    position: absolute;
    top: 5px;
    left: 0;
    display: block;
    width: 55px;
    height: 55px;
    content: "A";
    text-align: center;
    color: #ff5600;
    border: 4px solid #eeeeee;
    border-radius: 33px;
    font-family: RexBold, Open Sans, Noto Sans Japanese, 游ゴシック体, Yu Gothic, YuGothic, ヒラギノ角ゴ ProN W3, Hiragino Kaku Gothic ProN, メイリオ, Meiryo, sans-serif;
    font-size: 40px;
    font-size: 32px;
    line-height: 56px;
    background-color: #fff7e0;
}

@media (max-width: 763px) {
    .qanda {
        width: 88%;
        margin: 10px;
        padding: 0px 10px;
        border: 1px solid #e2e2e2;
        background: #fff;
        line-height: 1.7;
        margin-left: auto;
        margin-right: auto;
    }

    .qanda dt {
        position: relative;
        display: table;
        width: 83%;
        padding: 12px 10px 10px 48px;
        border-bottom: 1px solid #efefec;
        font-weight: 600;
        margin: 8px 0;
        font-size: 16px;
        min-height: auto;
    }

    .qanda dt:before {
        position: absolute;
        top: 2px;
        left: 0;
        display: block;
        width: 35px;
        height: 35px;
        content: "Q";
        text-align: center;
        color: #fff;
        border: 3px solid #eeeeee;
        border-radius: 33px;
        background: #ff9800;
        font-family: RexBold, Open Sans, Noto Sans Japanese, 游ゴシック体, Yu Gothic, YuGothic, ヒラギノ角ゴ ProN W3, Hiragino Kaku Gothic ProN, メイリオ, Meiryo, sans-serif;
        font-size: 18px;
        line-height: 35px;
    }

    .qanda dt span {
        display: table-cell;
        vertical-align: middle;
        text-align: left;
        font-size: 16px;
    }

    .qanda dd {
        position: relative;
        display: table;
        min-height: 76px;
        padding: 10px 10px 0px 50px;
    }

    .qanda dd:before {
        position: absolute;
        top: 5px;
        left: 0px;
        display: block;
        width: 35px;
        height: 35px;
        content: "A";
        text-align: center;
        color: #ff5600;
        border: 4px solid #eeeeee;
        border-radius: 33px;
        font-family: RexBold, Open Sans, Noto Sans Japanese, 游ゴシック体, Yu Gothic, YuGothic, ヒラギノ角ゴ ProN W3, Hiragino Kaku Gothic ProN, メイリオ, Meiryo, sans-serif;
        font-size: 40px;
        font-size: 24px;
        line-height: 36px;
        background-color: #fff7e0;
    }

    .qanda dd p {
        padding: 0;
        margin: 0px 0 16px 0;
    }
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.