/*
 * choku-blocks.css
 * 本文ブロックの「スタイル」で選べる ちょくちょく用の見た目
 * （登録は mu-plugins/choku/shikata-parts.php。記事ページと編集画面の両方で読み込まれる）
 */

/* 事務局のひとこと（段落 → スタイル「事務局のひとこと」） */
p.is-style-choku-voice {
    position: relative;
    margin-left: 46px !important;
    padding: 10px 14px;
    border: 1px solid var(--choku-line, #e4dedb);
    background: #fff;
    font-size: 0.93em;
    line-height: 1.8;
    color: var(--choku-ink-sub, #6b6260);
}
p.is-style-choku-voice::before {
    content: "事務局のひとこと";
    display: block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--choku-key, #bb5548);
    margin-bottom: 2px;
}
p.is-style-choku-voice::after {
    content: "";
    position: absolute;
    left: -46px;
    top: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--choku-line, #e4dedb);
    background: radial-gradient(circle, var(--choku-key, #bb5548) 0 4px, #fff 5px);
}

/* ポイント／注意（グループ → スタイル「ポイント」「注意」） */
.wp-block-group.is-style-choku-point,
.wp-block-group.is-style-choku-caution {
    position: relative;
    padding: 14px 16px 14px 44px;
    font-size: 0.93em;
    line-height: 1.8;
    color: var(--choku-ink-sub, #6b6260);
}
.wp-block-group.is-style-choku-point {
    background: #f9efed;
    border: 1px solid #ebcdc8;
}
.wp-block-group.is-style-choku-caution {
    background: #fdf1eb;
    border: 1px solid #f6cdb9;
}
.wp-block-group.is-style-choku-point::before,
.wp-block-group.is-style-choku-caution::before {
    position: absolute;
    left: 16px;
    top: 14px;
    width: 18px;
    text-align: center;
    font-weight: 700;
}
.wp-block-group.is-style-choku-point::before {
    content: "✓";
    color: var(--choku-key, #bb5548);
}
.wp-block-group.is-style-choku-caution::before {
    content: "!";
    color: var(--choku-accent, #ed6d3d);
}
.wp-block-group.is-style-choku-point > *,
.wp-block-group.is-style-choku-caution > * {
    margin-top: 0.4em;
    margin-bottom: 0;
}
.wp-block-group.is-style-choku-point > :first-child,
.wp-block-group.is-style-choku-caution > :first-child {
    margin-top: 0;
}
.wp-block-group.is-style-choku-point strong,
.wp-block-group.is-style-choku-caution strong {
    color: var(--choku-ink, #2b2523);
    font-weight: 500;
}

/* ステップ（番号付きリスト → スタイル「ステップ」） */
ol.is-style-choku-steps {
    list-style: none;
    padding-left: 0 !important;
    counter-reset: choku-step;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
ol.is-style-choku-steps > li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 0;
    counter-increment: choku-step;
}
ol.is-style-choku-steps > li::before {
    content: counter(choku-step);
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-top: 2px;
    border-radius: 50%;
    background: var(--choku-key, #bb5548);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    display: grid;
    place-items: center;
}
