.entry-content,
.wp-block-post-content,
main,
main.wp-block-group {
  max-width: 900px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
}

body,
.wp-site-blocks,
.wp-site-blocks p,
.wp-site-blocks li,
.wp-block-site-title a,
.wp-block-navigation,
.wp-block-post-title,
.wp-block-post-content,
.entry-content {
  font-weight: 500;
}

.wp-block-post-title,
.wp-block-site-title,
.wp-block-site-title a {
  font-weight: 700;
}

.wp-block-post-content,
.entry-content {
  font-size: 1.0625rem;
  line-height: 1.9;
  color: #1f2937;
  font-weight: 500;
}

.wp-block-post-content p,
.entry-content p,
.wp-block-post-content li,
.entry-content li,
.wp-block-post-content td,
.entry-content td {
  font-weight: 500;
}

.wp-block-post-content p,
.entry-content p {
  margin: 0 0 1.2em;
}

.wp-block-post-content strong,
.entry-content strong {
  color: #0b1220;
  font-weight: 700;
}

.wp-block-post-featured-image {
  aspect-ratio: auto !important;
  max-width: 100%;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.single .wp-block-post-featured-image img,
.single .wp-post-image {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center;
}

.wp-block-post-content h2,
.entry-content h2,
article .entry-content h2,
.article-content h2,
.article-body h2 {
  margin-top: 1.5em;
  margin-bottom: 0.8em;
  padding: 0.45em 0.85em;
  color: #f8fafc !important;
  background: #0b1220 !important;
  /* テーマの青 border-left と金 inset が二重になるのを防ぐ */
  border: none !important;
  border-left: 0 !important;
  border-radius: 8px;
  box-shadow: inset 6px 0 0 #d4a017 !important;
  font-size: 1.15em;
  line-height: 1.45;
  font-weight: 700;
}

.wp-block-post-content h2::before,
.entry-content h2::before,
.wp-block-post-content h2::after,
.entry-content h2::after,
article .entry-content h2::before,
article .entry-content h2::after {
  content: none !important;
  display: none !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  width: 0 !important;
}

.wp-block-post-content h3,
.entry-content h3 {
  margin-top: 1.35em;
  margin-bottom: 0.65em;
  padding: 0.2em 0 0.2em 0.75em;
  color: #0b1220;
  background: transparent;
  border: none;
  border-left: 4px solid #0b1220;
  border-radius: 0;
  box-shadow: none;
  font-size: 1.05em;
  line-height: 1.5;
  font-weight: 700;
}

/* テーマ側の ::before 帯と二重にならないようにする */
.wp-block-post-content h3::before,
.entry-content h3::before,
.wp-block-post-content h3::after,
.entry-content h3::after {
  content: none !important;
  display: none !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

.wp-block-post-content ul,
.wp-block-post-content ol,
.entry-content ul,
.entry-content ol {
  margin: 0 0 1.3em;
  padding-left: 1.35em;
}

.wp-block-post-content li,
.entry-content li {
  margin: 0.4em 0;
  line-height: 1.75;
}

.wp-block-post-content table,
.entry-content table,
.wp-block-table table {
  border-collapse: collapse;
  width: 100%;
  margin: 0.4em 0 1.4em;
  font-size: 0.98em;
}

.wp-block-post-content th,
.wp-block-post-content td,
.entry-content th,
.entry-content td {
  border: 1px solid #e5e7eb;
  padding: 0.6em 0.75em;
}

.wp-block-post-content th,
.entry-content th {
  background: #0b1220;
  color: #f8fafc;
  font-weight: 700;
}

.wp-block-post-content .wp-block-table,
.entry-content .wp-block-table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pseo-note {
  margin: 1.6em 0 !important;
  padding: 0.95em 1.1em;
  background: #f8fafc;
  border-left: 4px solid #d4a017;
  border-radius: 0 8px 8px 0;
  color: #0b1220;
  font-weight: 600;
  line-height: 1.7;
}

.entry-content img,
.wp-block-post-content img,
.pseo-inline-image img {
  max-width: 100%;
  max-height: 400px;
  object-fit: cover;
  margin: 1.5em auto;
  display: block;
  border-radius: 8px;
}

.pseo-inline-image {
  margin: 1.5em auto;
}

.pr-notice,
.pseo-stealth-disclosure,
.pseo-stealth-disclosure p {
  font-size: 11px;
  color: #888;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0 0 0.75rem;
}

/* AdSense プレースホルダ枠は隠す。ソフト CTA は表示する。 */
.pseo-ad-frame {
  display: none !important;
}

.pseo-soft-cta {
  display: block;
  margin: 2em 0 1.4em;
  padding: 1.15em 1.2em 1.3em;
  background: var(--n9-card, #ffffff);
  border: 1px solid var(--n9-line, #e5e7eb);
  border-left: 6px solid var(--pseo-cta-line, var(--n9-accent, #d4a017));
  border-radius: 10px;
}

.pseo-soft-cta .pseo-ad-label {
  display: inline-block;
  margin: 0 0 0.55rem;
  font-size: 11px;
  color: #888;
}

.pseo-soft-cta-blurb {
  margin: 0 0 0.9em !important;
  color: #1f2937;
  font-weight: 500;
  line-height: 1.75;
}

.pseo-soft-cta-action {
  margin: 0 !important;
}

.pseo-soft-cta .pseo-cta-button {
  display: block !important;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  padding: 0.95em 1.15em;
  background: var(--pseo-cta, var(--n9-accent, #0b1220));
  color: #fff !important;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.35;
}

.pseo-soft-cta .pseo-cta-button:hover {
  background: var(--pseo-cta-2, var(--n9-accent2, #111827));
  opacity: 1;
}

.wp-block-post-author,
.wp-block-post-author-name,
.wp-block-post-date {
  display: none !important;
}

.archive-title,
.page-title,
.wp-block-query-title,
.pseo-list-heading {
  font-size: 20px !important;
  margin: 0 0 20px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  color: #0b1220;
}

.pseo-site-lede {
  margin: 0 0 1.4rem !important;
  color: #475569;
  font-size: 0.98rem;
  line-height: 1.75;
  font-weight: 500;
}

.wp-block-query .wp-block-post-content,
.wp-block-query .wp-block-post-excerpt {
  display: none !important;
}

.pseo-card {
  height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.wp-block-query .wp-block-post-template {
  gap: 1.25rem !important;
}

.wp-block-query .wp-block-post-featured-image {
  margin: 0;
}

.wp-block-query .wp-block-post-featured-image img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: cover !important;
  border-radius: 0;
}

.wp-block-query .wp-block-post-title {
  font-size: 1.05rem !important;
  line-height: 1.45 !important;
  margin: 0.75rem 0.9rem 1rem !important;
}

.wp-block-query .wp-block-post-title a {
  color: #0b1220;
  text-decoration: none;
}

@media (max-width: 781px) {
  .wp-block-post-template.is-layout-grid {
    grid-template-columns: 1fr !important;
  }
}

details.n9-toc-wrap {
  float: none !important;
  position: static !important;
  display: block;
  width: auto;
  max-width: 100%;
  margin: 0.5rem 0 1.25rem;
  padding: 0.55rem 0.9rem;
  font-size: 14px;
  line-height: 1.5;
  background: var(--n9-card, #fff);
  border: 1px solid var(--n9-line, #e5e5e5);
  border-radius: 12px;
}
details.n9-toc-wrap summary {
  cursor: pointer;
  font-weight: 700;
}
details.n9-toc-wrap ol {
  margin: 0.4rem 0 0;
  padding-left: 1.3rem;
}
details.n9-toc-wrap a {
  text-decoration: none;
  color: inherit;
}
body.home details.n9-toc-wrap,
body.page details.n9-toc-wrap {
  display: none !important;
}
