@charset "UTF-8";

/* ステップリスト全体 */
.entry-content .step-list {
    --step-size: 32px;
    --step-indent: 52px;
    --step-accent: #506d88;
    --step-line: #d9e3eb;
    counter-reset: step;
    margin: 28px 0;
}

/* 各ステップ */
.entry-content .step-list > .step-item {
    position: relative;
    counter-increment: step;
    padding: 0 0 28px var(--step-indent);
    margin: 0;
    min-height: var(--step-size);
    box-sizing: border-box;
}

/* 番号 */
.entry-content .step-list > .step-item::before {
    content: counter(step);
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--step-size);
    height: var(--step-size);
    box-sizing: border-box;
    padding: 0 0 1px;
    border-radius: 50%;
    background: var(--step-accent);
    box-shadow: 0 0 0 4px #f0f4f8;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    z-index: 1;
}

/* 縦線 */
.entry-content .step-list > .step-item::after {
    content: "";
    position: absolute;
    top: calc(var(--step-size) + 6px);
    bottom: 6px;
    left: 15px;
    width: 2px;
    background: var(--step-line);
    border-radius: 2px;
}

/* 最後のステップ */
.entry-content .step-list > .step-item:last-child {
    padding-bottom: 0;
}

.entry-content .step-list > .step-item:last-child::after {
    display: none;
}

/* タイトル：任意 */
.entry-content .step-item .step-title {
    font-weight: bold;
    font-size: 17px;
    color: #365a78;
    margin: 0 0 12px;
}

/* 先頭の段落の1行目を、32pxの番号の中央に揃える */
.entry-content .step-list > .step-item > p:first-child::first-line,
.entry-content .step-list > .step-item > .wp-block-group__inner-container > p:first-child::first-line {
    line-height: var(--step-size);
}

/* 通常の文章 */
.entry-content .step-item p:not(.step-title) {
    margin: 0 0 12px;
}

/* 画像 */
.entry-content .step-item figure {
    margin: 16px 0 0;
}

.entry-content .step-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* 各手順の末尾に余白を重ねない */
.entry-content .step-list > .step-item > :last-child,
.entry-content .step-list > .step-item > .wp-block-group__inner-container > :last-child {
    margin-bottom: 0;
}

@media screen and (max-width: 480px) {
    .entry-content .step-list {
        --step-indent: 44px;
        margin: 24px 0;
    }

    .entry-content .step-list > .step-item:not(:last-child) {
        padding-bottom: 24px;
    }
}
