/* Single Post Content (Gutenberg sync)  */

/* font-family */
body,
.neosBlog-text,
.editor-styles-wrapper,
.editor-styles-wrapper .block-editor-block-list__layout {
  font-family: "Noto Sans JP", sans-serif;
}

/* body size (editor + frontend を 18px で完全固定) */
.neosBlog-text,
.editor-styles-wrapper {
  font-size: 18px !important;
}

/* lists */
:is(.neosBlog-text, .editor-styles-wrapper) ul,
:is(.neosBlog-text, .editor-styles-wrapper) ol {
  margin-block-start: 1em;
  margin-block-end: 1em;
  margin-inline-start: 0;
  margin-inline-end: 0;
  padding-inline-start: 24px;
  margin-bottom: 1em !important;
  font-size: inherit !important;
}

:is(.neosBlog-text, .editor-styles-wrapper) ul {
  list-style: disc outside;
}

:is(.neosBlog-text, .editor-styles-wrapper) ol {
  list-style: decimal outside;
}

:is(.neosBlog-text, .editor-styles-wrapper) li {
  list-style: inherit;
  margin-bottom: 0.4em;
  line-height: 1.8;
  font-size: inherit !important;
}

:is(.neosBlog-text, .editor-styles-wrapper) li > ul,
:is(.neosBlog-text, .editor-styles-wrapper) li > ol {
  margin-top: 0.4em;
  margin-bottom: 0.4em !important;
}

/* headings */
:is(.neosBlog-text, .editor-styles-wrapper) h1,
:is(.neosBlog-text, .editor-styles-wrapper) h2,
:is(.neosBlog-text, .editor-styles-wrapper) h3,
:is(.neosBlog-text, .editor-styles-wrapper) h4,
:is(.neosBlog-text, .editor-styles-wrapper) h5,
:is(.neosBlog-text, .editor-styles-wrapper) h6 {
  display: block;
  line-height: 1.3;
  margin-top: 1.6em;
  margin-bottom: 0.8em;
}

:is(.neosBlog-text, .editor-styles-wrapper) h1 { font-size: 36px; }
:is(.neosBlog-text, .editor-styles-wrapper) h2 { font-size: 30px; }
:is(.neosBlog-text, .editor-styles-wrapper) h3 { font-size: 26px; }
:is(.neosBlog-text, .editor-styles-wrapper) h4 { font-size: 22px; }
:is(.neosBlog-text, .editor-styles-wrapper) h5 { font-size: 20px; }
:is(.neosBlog-text, .editor-styles-wrapper) h6 { font-size: 18px; }

:is(.neosBlog-text, .editor-styles-wrapper) h1:first-child,
:is(.neosBlog-text, .editor-styles-wrapper) h2:first-child,
:is(.neosBlog-text, .editor-styles-wrapper) h3:first-child,
:is(.neosBlog-text, .editor-styles-wrapper) h4:first-child,
:is(.neosBlog-text, .editor-styles-wrapper) h5:first-child,
:is(.neosBlog-text, .editor-styles-wrapper) h6:first-child {
  margin-top: 0;
}

/* paragraph */
:is(.neosBlog-text, .editor-styles-wrapper) p {
  display: block;
  margin: 0 0 32px;
  line-height: 1.9;
}

:is(.neosBlog-text, .editor-styles-wrapper) p:last-child {
  margin-bottom: 0;
}

/* image / figure */
:is(.neosBlog-text, .editor-styles-wrapper) figure {
  margin: 1.6em 0;
}

:is(.neosBlog-text, .editor-styles-wrapper) img,
:is(.neosBlog-text, .editor-styles-wrapper) .wp-block-image img {
  max-width: 100%;
  height: auto;
}

:is(.neosBlog-text, .editor-styles-wrapper) .wp-block-image {
  margin: 1.6em 0;
}

:is(.neosBlog-text, .editor-styles-wrapper) .wp-block-image figcaption,
:is(.neosBlog-text, .editor-styles-wrapper) figcaption {
  font-size: 12px;
  color: #666;
  text-align: center;
  margin-top: 0.6em;
}

:is(.neosBlog-text, .editor-styles-wrapper) .wp-block-image.aligncenter,
:is(.neosBlog-text, .editor-styles-wrapper) figure.aligncenter {
  text-align: center;
}

:is(.neosBlog-text, .editor-styles-wrapper) .wp-block-image.alignleft,
:is(.neosBlog-text, .editor-styles-wrapper) figure.alignleft {
  float: left;
  margin-right: 1.6em;
}

:is(.neosBlog-text, .editor-styles-wrapper) .wp-block-image.alignright,
:is(.neosBlog-text, .editor-styles-wrapper) figure.alignright {
  float: right;
  margin-left: 1.6em;
}

/* blockquote */
:is(.neosBlog-text, .editor-styles-wrapper) blockquote,
:is(.neosBlog-text, .editor-styles-wrapper) .wp-block-quote {
  margin: 1.6em 0;
  padding: 12px 16px;
  border-left: 4px solid #ffa534;
  background-color: rgba(255, 165, 52, 0.05);
  color: #4a4a4a;
  font-style: italic;
  font-size: inherit !important;
}

:is(.neosBlog-text, .editor-styles-wrapper) blockquote p,
:is(.neosBlog-text, .editor-styles-wrapper) .wp-block-quote p {
  margin-bottom: 0.6em;
  font-size: inherit !important;
}

:is(.neosBlog-text, .editor-styles-wrapper) blockquote cite,
:is(.neosBlog-text, .editor-styles-wrapper) .wp-block-quote cite {
  display: block;
  margin-top: 0.6em;
  font-size: 12px;
  color: #666;
  font-style: normal;
}

/* table */
:is(.neosBlog-text, .editor-styles-wrapper) table,
:is(.neosBlog-text, .editor-styles-wrapper) .wp-block-table table {
  width: 100%;
  margin: 1.6em 0;
  border-collapse: collapse;
  font-size: inherit !important;
}

:is(.neosBlog-text, .editor-styles-wrapper) th,
:is(.neosBlog-text, .editor-styles-wrapper) td {
  padding: 8px 12px;
  border: 1px solid #ccc;
  text-align: left;
  font-size: inherit !important;
}

:is(.neosBlog-text, .editor-styles-wrapper) th {
  background-color: #f5f5f5;
  font-weight: 600;
}

/* separator */
:is(.neosBlog-text, .editor-styles-wrapper) hr,
:is(.neosBlog-text, .editor-styles-wrapper) .wp-block-separator {
  margin: 2.4em auto;
  border: 0;
  border-top: 1px solid #ccc;
}

/* code */
:is(.neosBlog-text, .editor-styles-wrapper) code {
  padding: 2px 4px;
  background-color: #f5f5f5;
  border-radius: 3px;
  font-family: monospace;
  font-size: 0.95em;
}

:is(.neosBlog-text, .editor-styles-wrapper) pre,
:is(.neosBlog-text, .editor-styles-wrapper) .wp-block-code {
  margin: 1.6em 0;
  padding: 12px;
  background-color: #f5f5f5;
  border-radius: 4px;
  overflow-x: auto;
}

:is(.neosBlog-text, .editor-styles-wrapper) pre code {
  padding: 0;
  background: transparent;
}

/* link */
:is(.neosBlog-text, .editor-styles-wrapper) a,
:is(.neosBlog-text, .editor-styles-wrapper) a:visited {
  color: inherit;
  text-decoration: underline;
}

:is(.neosBlog-text, .editor-styles-wrapper) a:hover {
  opacity: 0.85;
}

/* mark / highlight */
:is(.neosBlog-text, .editor-styles-wrapper) mark,
:is(.neosBlog-text, .editor-styles-wrapper) .mark {
  padding: 0;
  background-color: #ff0;
  color: inherit;
}

/* alignment classes */
:is(.neosBlog-text, .editor-styles-wrapper) .has-text-align-center { text-align: center; }
:is(.neosBlog-text, .editor-styles-wrapper) .has-text-align-right  { text-align: right; }
:is(.neosBlog-text, .editor-styles-wrapper) .has-text-align-left   { text-align: left; }

/* button block */
:is(.neosBlog-text, .editor-styles-wrapper) .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em 0.5em;
  margin: 1.6em 0;
  justify-content: flex-start;
}

:is(.neosBlog-text, .editor-styles-wrapper) .wp-block-buttons.is-content-justification-center {
  justify-content: center;
}
:is(.neosBlog-text, .editor-styles-wrapper) .wp-block-buttons.is-content-justification-right {
  justify-content: flex-end;
}

:is(.neosBlog-text, .editor-styles-wrapper) .wp-block-button {
  display: inline-block;
}

:is(.neosBlog-text, .editor-styles-wrapper) .wp-block-button.wp-block-button__width-100,
:is(.neosBlog-text, .editor-styles-wrapper) .wp-block-button.has-custom-width.wp-block-button__width-100 {
  width: 100%;
}
:is(.neosBlog-text, .editor-styles-wrapper) .wp-block-button.wp-block-button__width-100 .wp-block-button__link {
  width: 100%;
}

:is(.neosBlog-text, .editor-styles-wrapper) .wp-block-button__link,
:is(.neosBlog-text, .editor-styles-wrapper) .wp-element-button {
  display: inline-block;
  padding: 0.667em 1.333em;
  border: none;
  border-radius: 9999px;
  background-color: #32373c;
  color: #fff;
  text-decoration: none;
  font-size: inherit;
  line-height: 1.5;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-break: break-word;
}

:is(.neosBlog-text, .editor-styles-wrapper) .wp-block-button__link:hover,
:is(.neosBlog-text, .editor-styles-wrapper) .wp-block-button__link:focus,
:is(.neosBlog-text, .editor-styles-wrapper) .wp-block-button__link:active {
  text-decoration: none;
  opacity: 0.9;
}

/* has-{color}-color classes */
:is(.neosBlog-text, .editor-styles-wrapper) .has-white-color    { color: #fff !important; }
:is(.neosBlog-text, .editor-styles-wrapper) .has-black-color    { color: #000 !important; }

/* .container collision guard */
:is(.neosBlog-text, .editor-styles-wrapper) .wp-block-button.container,
:is(.neosBlog-text, .editor-styles-wrapper) .wp-block-buttons.container,
:is(.neosBlog-text, .editor-styles-wrapper) .wp-block-image.container,
:is(.neosBlog-text, .editor-styles-wrapper) .wp-block-group.container {
  width: auto;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  margin-right: 0;
}
