/* Native blocks used in the documents body and its block-editor canvas. */
:is(.kd-documents .kd-document-body, .editor-styles-wrapper) {
  color: #333;
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.9;
}

:is(.kd-documents .kd-document-body, .editor-styles-wrapper) :is(h2, h3, h4, h5, h6) {
  color: #333;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

:is(.kd-documents .kd-document-body, .editor-styles-wrapper) h2 {
  margin: 34px 0 20px;
  padding: 8px 12px;
  background: #004b91;
  color: #fff;
  font-size: 18px;
  line-height: 1.8;
  letter-spacing: .1em;
}
:is(.kd-documents .kd-document-body, .editor-styles-wrapper) h3 {
  margin: 28px 0 12px;
  padding: 0 0 8px 12px;
  border-left: 4px solid #004b91;
  border-bottom: 1px solid #dce4e9;
  color: #004b91;
  font-size: 18px;
}
:is(.kd-documents .kd-document-body, .editor-styles-wrapper) :is(h4, h5, h6) { margin: 24px 0 10px; font-size: 16px; }
:is(.kd-documents .kd-document-body, .editor-styles-wrapper) p { font-family: "Noto Sans JP", sans-serif; font-size: 15px; line-height: 1.9; }
:is(.kd-documents .kd-document-body, .editor-styles-wrapper) :is(ul, ol) { font-family: "Noto Sans JP", sans-serif; }
:is(#leftWrap .kd-document-body, .editor-styles-wrapper) :is(ul, ol):not(.is-style-kd-check):not(.is-style-kd-steps) {
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 24px;
  padding-inline-start: 1.8em;
  list-style-position: outside;
}
:is(#leftWrap .kd-document-body, .editor-styles-wrapper) ul:not(.is-style-kd-check):not(.is-style-kd-steps) { list-style-type: disc; }
:is(#leftWrap .kd-document-body, .editor-styles-wrapper) ol:not(.is-style-kd-check):not(.is-style-kd-steps) { list-style-type: decimal; }
:is(#leftWrap .kd-document-body, .editor-styles-wrapper) :is(ul, ol):not(.is-style-kd-check):not(.is-style-kd-steps) > li {
  display: list-item;
  margin: 0 0 8px;
  padding: 0;
  line-height: 1.8;
}
:is(#leftWrap .kd-document-body, .editor-styles-wrapper) :is(ul, ol):not(.is-style-kd-check):not(.is-style-kd-steps) > li::marker {
  color: #004b91;
  font-weight: 700;
}
.kd-documents .kd-document-body > :first-child { margin-top: 0; }
.kd-documents .kd-document-body > :last-child { margin-bottom: 0; }

/* Optional heading style: the blue bar from the supplied mock. */
:is(.kd-documents .kd-document-body, .editor-styles-wrapper) :is(h2, h3, h4).is-style-kd-bar {
  margin: 34px 0 20px;
  padding: 8px 12px;
  background: #004b91;
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: .1em;
}
.kd-documents .kd-document-body > h2:first-child { margin-top: 0; }

/* Optional checklist and numbered steps, both made from core/list. */
:is(.kd-documents .kd-document-body, .editor-styles-wrapper) :is(ul, ol).is-style-kd-check {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
:is(.kd-documents .kd-document-body, .editor-styles-wrapper) :is(ul, ol).is-style-kd-check > li {
  position: relative;
  margin: 0;
  padding: 12px 0 12px 34px;
  border-bottom: 1px dotted #d6d6d6;
  font-size: 15px;
  line-height: 1.7;
}
:is(.kd-documents .kd-document-body, .editor-styles-wrapper) :is(ul, ol).is-style-kd-check > li:last-child { border-bottom: 0; }
:is(.kd-documents .kd-document-body, .editor-styles-wrapper) :is(ul, ol).is-style-kd-check > li::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #004b91;
}
:is(.kd-documents .kd-document-body, .editor-styles-wrapper) :is(ul, ol).is-style-kd-check > li::after {
  content: "";
  position: absolute;
  top: 19px;
  left: 9px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

:is(.kd-documents .kd-document-body, .editor-styles-wrapper) :is(ul, ol).is-style-kd-steps {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  counter-reset: kd-step;
}
:is(.kd-documents .kd-document-body, .editor-styles-wrapper) :is(ul, ol).is-style-kd-steps > li {
  position: relative;
  min-height: 58px;
  margin: 0;
  padding: 14px 0 14px 90px;
  border-bottom: 1px solid #eee;
  font-size: 15px;
  line-height: 1.7;
  counter-increment: kd-step;
}
:is(.kd-documents .kd-document-body, .editor-styles-wrapper) :is(ul, ol).is-style-kd-steps > li:last-child { border-bottom: 0; }
:is(.kd-documents .kd-document-body, .editor-styles-wrapper) :is(ul, ol).is-style-kd-steps > li strong { display: block; margin-bottom: 2px; font-size: 16px; }
:is(.kd-documents .kd-document-body, .editor-styles-wrapper) :is(ul, ol).is-style-kd-steps > li::before {
  content: counter(kd-step, decimal-leading-zero);
  position: absolute;
  top: 16px;
  left: 0;
  width: 76px;
  padding: 3px 0;
  border-radius: 40px;
  background: #004b91;
  color: #fff;
  font-family: "Noto Serif JP", serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.6;
  text-align: center;
}

/* Optional three-point layout built with core/columns and editable core blocks. */
:is(.kd-documents .kd-document-body, .editor-styles-wrapper) .wp-block-columns.is-style-kd-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 24px;
  counter-reset: kd-point;
}
:is(.kd-documents .kd-document-body, .editor-styles-wrapper) .wp-block-columns.is-style-kd-points > .wp-block-column {
  min-width: 0;
  margin: 0;
  padding: 18px 16px;
  background: #f1f5fa;
  counter-increment: kd-point;
}
:is(.kd-documents .kd-document-body, .editor-styles-wrapper) .wp-block-columns.is-style-kd-points > .wp-block-column::before {
  content: counter(kd-point, decimal-leading-zero);
  display: block;
  margin-bottom: 6px;
  color: #004b91;
  font-family: "Noto Serif JP", serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
}
:is(.kd-documents .kd-document-body, .editor-styles-wrapper) .wp-block-columns.is-style-kd-points h3 {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  color: #004b91;
  font-size: 16px;
  line-height: 1.5;
}
:is(.kd-documents .kd-document-body, .editor-styles-wrapper) .wp-block-columns.is-style-kd-points p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
}

:is(.kd-documents .kd-document-body, .editor-styles-wrapper) p.is-style-kd-note {
  margin: 14px 0 24px;
  color: #777;
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 767px) {
  :is(.kd-documents .kd-document-body, .editor-styles-wrapper) h2 { font-size: 18px; }
  :is(.kd-documents .kd-document-body, .editor-styles-wrapper) h3 { font-size: 17px; }
  :is(.kd-documents .kd-document-body, .editor-styles-wrapper) .wp-block-columns.is-style-kd-points { grid-template-columns: 1fr; }
}

/* Center the editing column, not the text. The document block margins above
   otherwise replace Gutenberg's automatic side margins on top-level blocks. */
.editor-styles-wrapper .is-root-container > :is(.wp-block, .block-editor-block-list__block):not(.alignfull):not(.alignwide):not([data-align="full"]):not([data-align="wide"]) {
  margin-right: auto !important;
  margin-left: auto !important;
}
