/* ==========================================================================
   カスタムリストスタイル
   ========================================================================== */

/* Type A: (a) (b) (c) スタイル */
.wp-block-list.is-style-type-a {
  list-style-type: lower-alpha !important;
}

.wp-block-list.is-style-type-a > li::marker {
  content: "(" counter(list-item, lower-alpha) ") ";
}

/* Type B: a) b) c) スタイル */
.wp-block-list.is-style-type-b {
  list-style-type: lower-alpha !important;
}

.wp-block-list.is-style-type-b > li::marker {
  content: counter(list-item, lower-alpha) ") ";
}

/* Type C: (1) (2) (3) スタイル */
.wp-block-list.is-style-type-c {
  list-style-type: decimal;
}

.wp-block-list.is-style-type-c > li::marker {
  content: "(" counter(list-item) ") ";
}

/* Type D: (i) (ii) (iii) スタイル */
.wp-block-list.is-style-type-d {
  list-style-type: lower-roman !important;
}

.wp-block-list.is-style-type-d > li::marker {
  content: "(" counter(list-item, lower-roman) ") ";
}

/* Type No: マーカーなしスタイル */
.wp-block-list.is-style-type-no {
  list-style-type: none !important;
  padding-left: 0;
}

.wp-block-list.is-style-type-no > li {
  list-style-type: none !important;
  margin-left: 0;
}

/* Type Indent: インデント付きスタイル（マーカーなし） */
.wp-block-list.is-style-type-indent {
  list-style-type: none !important;
  padding-left: 0;
}

.wp-block-list.is-style-type-indent > li {
  list-style-type: none !important;
  margin-left: 0;
  text-indent: -1.5rem;
  padding-left: 1.5rem;
}

/* Type Indent: マイナスマージン */
.wp-block-list.is-style-type-mainus {
  list-style-type: none !important;
  padding-left: 0 !important;
  margin-left: -1.5em !important;
}

.wp-block-list.is-style-type-mainus > li {
  list-style-type: none !important;
  padding-left: 0 !important;
}

/* エディタ内でも同じスタイルを適用 */
.editor-styles-wrapper .wp-block-list.is-style-type-a {
  list-style-type: lower-alpha !important;
}

.editor-styles-wrapper .wp-block-list.is-style-type-a > li::marker {
  content: "(" counter(list-item, lower-alpha) ") ";
}

.editor-styles-wrapper .wp-block-list.is-style-type-b {
  list-style-type: lower-alpha !important;
}

.editor-styles-wrapper .wp-block-list.is-style-type-b > li::marker {
  content: counter(list-item, lower-alpha) ") ";
}

.editor-styles-wrapper .wp-block-list.is-style-type-c {
  list-style-type: decimal;
}

.editor-styles-wrapper .wp-block-list.is-style-type-c > li::marker {
  content: "(" counter(list-item) ") ";
}

.editor-styles-wrapper .wp-block-list.is-style-type-d {
  list-style-type: lower-roman !important;
}

.editor-styles-wrapper .wp-block-list.is-style-type-d > li::marker {
  content: "(" counter(list-item, lower-roman) ") ";
}

.editor-styles-wrapper .wp-block-list.is-style-type-no {
  list-style-type: none !important;
  padding-left: 0;
}

.editor-styles-wrapper .wp-block-list.is-style-type-no > li {
  list-style-type: none !important;
  margin-left: 0;
}

.editor-styles-wrapper .wp-block-list.is-style-type-indent {
  list-style-type: none !important;
  padding-left: 0;
}

.editor-styles-wrapper .wp-block-list.is-style-type-indent > li {
  list-style-type: none !important;
  margin-left: 0;
  text-indent: -1.5rem;
  padding-left: 1.5rem;
}

.editor-styles-wrapper .wp-block-list.is-style-type-mainus {
  list-style-type: none !important;
  padding-left: 0 !important;
  margin-left: -1.5em !important;
}

.editor-styles-wrapper .wp-block-list.is-style-type-mainus > li {
  list-style-type: none !important;
  padding-left: 0 !important;
}

.wp-block-list.is-style-type-b li {
    text-indent: 0;
}