/* 投稿のみ。本文データ、画像、広告、リンク、トップページは変更しない。 */
body.single-post {
  background: #f7f5ee !important;
  color: #393e39;
}
body.single-post #main {
  background: #fff !important;
  border: 1px solid #e3e8e2;
  border-radius: 18px;
  min-width: 0;
}
body.single-post #sidebar {
  background: #fff !important;
  border-radius: 16px;
}
body.single-post #header-container,
body.single-post #navi {
  background: #fff !important;
  color: #1b4f46;
}
body.single-post #header-container .tagline {
  background: #1b4f46 !important;
  color: #fff !important;
}
body.single-post #main .entry-title {
  color: #1b4f46;
  font-weight: 700;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
body.single-post #main .entry-content {
  color: #393e39;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
body.single-post #main .entry-content h2 {
  color: #1b4f46 !important;
  background: #f1f6f2 !important;
  border: 0 !important;
  border-bottom: 2px solid #8eb6a5 !important;
  border-radius: 9px 9px 0 0;
  padding: 16px 18px !important;
  line-height: 1.6;
  scroll-margin-top: 80px;
}
body.single-post #main .entry-content h3 {
  color: #1b4f46 !important;
  background: transparent !important;
  border: 0 !important;
  border-left: 4px solid #8eb6a5 !important;
  padding: 5px 0 5px 14px !important;
  line-height: 1.6;
  scroll-margin-top: 80px;
}
body.single-post #main .entry-content .toc {
  background: #f7faf7 !important;
  border: 1px solid #dce7df !important;
  border-radius: 12px;
  max-width: 100%;
}
body.single-post #main .entry-content .toc a {
  color: #1b4f46 !important;
}
body.single-post #main .entry-content table {
  border-collapse: collapse;
  background: #fff;
  color: #393e39;
  line-height: 1.7;
}
body.single-post #main .entry-content table th {
  background: #eaf2ed !important;
  color: #1b4f46 !important;
  font-weight: 700;
}
body.single-post #main .entry-content table th,
body.single-post #main .entry-content table td {
  border: 1px solid #dce4de !important;
  padding: 12px 14px !important;
  vertical-align: top;
}
body.single-post #main .entry-content table tbody tr:nth-child(even) td {
  background: #f7faf7;
}
/* 既存の記事別テーブルラッパーを利用。表のHTML構造は維持。 */
body.single-post #main .entry-content [class$="-table-wrap"],
body.single-post #main .entry-content .wp-block-table {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
body.single-post #sidebar h3,
body.single-post #sidebar .widget-title {
  color: #1b4f46 !important;
  background: #f1f6f2 !important;
  border-color: #8eb6a5 !important;
}
body.single-post #main a:focus-visible {
  outline: 3px solid #1b4f46;
  outline-offset: 3px;
}
@media (max-width: 600px) {
  body.single-post #main {
    padding: 20px 16px;
    border-radius: 12px;
  }
  body.single-post #main .entry-title { font-size: 24px; }
  body.single-post #main .entry-content { font-size: 16px; }
  body.single-post #main .entry-content h2 { padding: 13px 12px !important; }
  body.single-post #main .entry-content table th,
  body.single-post #main .entry-content table td {
    padding: 10px !important;
    font-size: 14px;
  }
}

/* v1.0.1: Cocoonスキン・記事内CSSとの競合を解消 */
body.single-post #main .entry-content h2::after {
  content: none !important;
}
body.single-post #main .entry-content .toc-list > li::before,
body.single-post .cat-label,
body.single-post .go-to-top-button {
  background-color: #1b4f46 !important;
  color: #fff !important;
}
body.single-post #sidebar h2 {
  color: #1b4f46 !important;
  background: #f1f6f2 !important;
  border-color: #8eb6a5 !important;
}
body.single-post #main .entry-content .akmg26-label,
body.single-post #main .entry-content .knm-label {
  background: #1b4f46 !important;
  color: #fff !important;
}
body.single-post #main .entry-content .akmg26-title,
body.single-post #main .entry-content .knm-title,
body.single-post #main .entry-content .ogah-hero-title {
  color: #1b4f46 !important;
}
body.single-post #main .entry-content .akmg26-hero,
body.single-post #main .entry-content .knm-hero,
body.single-post #main .entry-content .ogah-hero {
  background: linear-gradient(135deg, #fbf8ef, #f1f6f2) !important;
  border-color: #dce4de !important;
}
/* 確認済み記事の内側の余白を抑え、スマホの本文幅を確保する */
@media (max-width: 600px) {
  body.single-post #main .entry-content .akmg26-wrap,
  body.single-post #main .entry-content .knm-wrap {
    padding-left: 0 !important;
    padding-right: 0 !important;
    font-size: 16px !important;
  }
  body.single-post #main .entry-content .akmg26-hero,
  body.single-post #main .entry-content .knm-hero {
    padding: 20px 14px !important;
  }
}
/* 既存ラッパーがある表だけに最小幅を指定。単独表は強制拡張しない */
body.single-post #main .entry-content [class$="-table-wrap"] > table,
body.single-post #main .entry-content .wp-block-table > table {
  min-width: 560px;
  width: 100%;
}
