@media screen and (min-width: 900px) {
    .elmbox-parent-flex-column {
        display: flex;
        flex-flow: column;
        justify-content: space-between;
    }
}

.mercury {
    background-color: var(--color-skin);
}

:root {
    --color-skin: #fcf1d8;
    --color-white: #fff;
    --color-blue: #0b5bce;
    --color-gray: #707070;
    --color-default-text: #333;
    --step-font-family: "Hiragino Sans", "ヒラギノ角ゴシック", sans-serif;
    --max-width-pc: 900px;
    --step-title-h1: 40px;
    --step-title-h1-sp: 23px;
    --step-font-gr0: 20px;
    --step-font-gr1: 16px;
    --step-font-gr2: 15px;
    --step-font-gr3: 14px;
    --step-font-gr4: 13px;
}

.step-container {
    font-family: var(--step-font-family);
    color: var(--color-default-text);
}

.step-container-inner {
    margin: 0 auto;
    padding: 70px 0 108px;
    width: 900px;
}

/* タイトル */
.step-title-lv1 {
    display: flex;
    min-height: 60px;
    justify-content: center;
    align-items: flex-start;
    text-align: center;

    & .step-title-lv1-text {
        font-size: var(--step-title-h1);
        font-weight: 600;
        line-height: 1;
    }
}

/* メインビジュアル画像 */
.step-fig {
    max-width: 350px;
    margin: 39px auto 0;
    .step-fig-img {
        width: 100%;
    }
}

/* 診断選択リスト */
.step-diagnosis-list {
    display: flex;
    gap: 60px;
    margin-top: 27px;

    & .step-diagnosis-list-item {
        flex: 1;
        max-width: 420px;
        overflow: hidden;
        border: 2px solid var(--color-default-text);
        border-radius: 20px;
        box-sizing: border-box;
        background-color: var(--color-default-text);
        display: flex;
        flex-direction: column;
        & p {
            margin: 0;
        }
    }

    & .step-diagnosis-heading {
        background-color: var(--color-default-text);
        text-align: center;
    }

    & .step-diagnosis-title {
        color: var(--color-white);
        font-size: var(--step-font-gr0);
        line-height: 1;
        padding: 16px 0;
        font-weight: 600;
    }

    & .step-diagnosis-content {
        flex: 1;
        background-color: var(--color-white);
        padding: 0 15px 30px;
        > .step-diagnosis-btn-wrap,
        p {
            margin-top: 30px;
        }
    }

    /* ボタン */
    & .step-diagnosis-btn-wrap {
        max-width: 340px;
        margin: 0 auto;
    }

    & .step-diagnosis-btn {
        position: relative;
        display: inline-flex;
        padding: 3px 40px;
        min-height: 50px;
        border-radius: 25px;
        text-align: center;
        justify-content: center;
        align-items: center;
        box-sizing: border-box;
        width: 100%;
        font-size: inherit;
        line-height: inherit;
        outline: none;
        cursor: pointer;
        text-decoration: none;
        transition: opacity 0.4s;

        &[data-step-diagnosis-btn-color="blue"] {
            background: #0b5bce;
            background: -webkit-gradient(
                linear,
                left top,
                left bottom,
                from(#0b5bce),
                to(#0f82b8)
            );
            background: linear-gradient(to bottom, #0b5bce 0%, #0f82b8 100%);
            border: none;
            color: #fff;
        }

        &[data-step-diagnosis-btn-color="white"] {
            background: #fff;
            border: 1px solid #707070;
            color: #333;
        }

        & .icon-svg {
            display: inline-block;
            position: absolute;
            right: 20px;
            top: 0;
            bottom: 0;
            margin: auto;
            width: 14px;
            height: 14px;
        }
    }
}

/* 注釈 */
.step-note {
    margin-top: 20px;
}

.step-note-item {
    padding-left: 20px;
    text-indent: -20px;
    font-size: var(--step-font-gr3);
}
.step-note-item::before {
    content: "※";
    margin-right: 10px;
}
.step-note-link {
    color: var(--color-blue);
    text-decoration: underline;
}

@media screen and (min-width: 901px) {
    .step-diagnosis-btn:hover {
        opacity: 0.6;
    }
}

@media screen and (max-width: 900px) {
    .step-container-inner {
        padding: 30px 0 120px;
        width: 100%;

        & p,
        a {
            font-size: var(--step-font-gr2);
        }
    }

    /* タイトル */
    .step-title-lv1 {
        display: flex;
        min-height: 60px;
        align-items: center;
        padding: 0;

        & .step-title-lv1-text {
            font-size: var(--step-title-h1-sp);
            line-height: 1.15;
        }
    }

    /* メインビジュアル */
    .step-fig {
        max-width: 360px;
        margin: 30px auto 0;
    }

    /* 診断選択リスト */
    .step-diagnosis-list {
        flex-direction: column;
        align-items: center;
        margin-top: 30px;
        gap: 20px;

        & .step-diagnosis-title {
            font-size: var(--step-font-gr2);
            padding: 9px 0;
        }

        & .step-diagnosis-content {
            padding: 0 15px 22px;
            > .step-diagnosis-btn-wrap,
            p {
                margin-top: 20px;
            }
        }

        & .step-diagnosis-btn {
            min-height: 40px;
        }

        & .step-diagnosis-btn-wrap {
            max-width: 280px;
        }
    }

    /* 注釈 */
    .step-note-item {
        font-size: var(--step-font-gr4);
    }
}
