/**
 * WordPress 単体記事ページ用（permalink 直表示）
 * Astro の blog/[slug].astro には載らないため、WP 側で本ファイルを読み込むこと。
 * 例: wp_enqueue_style( 'locus-autoblog', home_url( '/autoblog-wordpress.css' ), [], '2026-04-18-8' );
 *
 * セレクタは Snow Monkey の .p-entry-content より強くするためプレフィックス付き。
 */
/* 先頭だけ大きく空きすぎないよう控えめに。見出し前後は h2/h3/h4 の margin で揃える */
.p-entry-content .autoblog {
  margin-top: 0;
  padding-top: 2rem;
}
@media (min-width: 768px) {
  .p-entry-content .autoblog {
    padding-top: 3rem;
  }
}

.p-entry-content .autoblog p {
  font-size: 1.125rem;
  line-height: 2.05;
  margin-bottom: 1.5rem;
  color: #151c1b;
}

.p-entry-content .autoblog h2,
.p-entry-content .autoblog h2.wp-block-heading {
  font-size: 1.5rem;
  font-weight: 900;
  color: #121918;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.65;
  letter-spacing: 0.02em;
  padding: 0.5rem 0 0.5rem 0.75rem;
  border-left: 3px solid #ff6b35;
  border-bottom: 1px solid #e0e0e0;
  background: #f9f9f9;
}
@media (min-width: 768px) {
  .p-entry-content .autoblog h2,
  .p-entry-content .autoblog h2.wp-block-heading {
    margin-top: 3.5rem;
    margin-bottom: 1.75rem;
  }
}

/* 先頭 h2: 上はラッパー padding のみ。下は本文との間をやや広めに */
.p-entry-content .autoblog h2:first-of-type,
.p-entry-content .autoblog h2.wp-block-heading:first-of-type {
  margin-top: 0;
  margin-bottom: 2.25rem;
  padding: 0.5rem 0 0.5rem 0.75rem;
}
@media (min-width: 768px) {
  .p-entry-content .autoblog h2:first-of-type,
  .p-entry-content .autoblog h2.wp-block-heading:first-of-type {
    margin-bottom: 2.75rem;
  }
}

.p-entry-content .autoblog ul,
.p-entry-content .autoblog ol {
  margin: 1.25rem 0 1.75rem 1.5rem;
  line-height: 2.05;
  font-size: 1.0625rem;
}

.p-entry-content .autoblog li {
  margin-bottom: 0.5rem;
  color: #151c1b;
}

.p-entry-content .autoblog h3,
.p-entry-content .autoblog h3.wp-block-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f1413;
  margin-top: 2.75rem;
  margin-bottom: 1.125rem;
  line-height: 1.75;
  letter-spacing: 0.015em;
  padding-left: 0.75rem;
  border-left: 3px solid #ff6b35;
}
@media (min-width: 768px) {
  .p-entry-content .autoblog h3,
  .p-entry-content .autoblog h3.wp-block-heading {
    margin-top: 3.25rem;
    margin-bottom: 1.25rem;
  }
}

.p-entry-content .autoblog h4,
.p-entry-content .autoblog h4.wp-block-heading {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #151c1b;
  line-height: 1.75;
  margin-top: 2.25rem;
  margin-bottom: 0.875rem;
}
@media (min-width: 768px) {
  .p-entry-content .autoblog h4,
  .p-entry-content .autoblog h4.wp-block-heading {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
  }
}

.p-entry-content .autoblog a {
  color: #ff6b35;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.p-entry-content .autoblog a:hover {
  opacity: 0.75;
}

.p-entry-content .autoblog table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.p-entry-content .autoblog th {
  background: #f5f5f5;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 700;
  border: 1px solid #e0e0e0;
}

.p-entry-content .autoblog td {
  padding: 0.75rem 1rem;
  border: 1px solid #e0e0e0;
  vertical-align: top;
  color: #151c1b;
  line-height: 1.85;
}

.p-entry-content .autoblog tr:nth-child(even) td {
  background: #fafafa;
}

.p-entry-content .autoblog blockquote {
  border-left: 4px solid #ff6b35;
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: #fff8f5;
  color: #3a4240;
  font-style: italic;
  font-size: 1.0625rem;
  line-height: 2;
}

.p-entry-content .autoblog code {
  background: #f5f5f5;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-size: 0.875rem;
  font-family: monospace;
}

.p-entry-content .autoblog img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.p-entry-content .autoblog hr {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 2rem 0;
}

@media (prefers-reduced-motion: reduce) {
  .p-entry-content .autoblog a:hover {
    opacity: 1;
  }
}
