/* ==========================================================
   Cocoonとの調整CSS
   Cocoonのクラス名はバージョンで変わることがあるので、
   効かないところは開発者ツールで実際のクラス名を確認して直す
   ========================================================== */

/* ---------- Cocoon本体のヘッダー・フッター・固定ボタンを隠す ----------
   （自分たちのヘッダー・フッターを inc/trs-cocoon.php で出しているため） */
.trs-site #header-container,
.trs-site #footer,
.trs-site .mobile-menu-buttons,
.trs-site .mobile-footer-menu-buttons,
.trs-site .mobile-header-menu-buttons,
.trs-site #go-to-top,
.trs-site .go-to-top {
  display: none !important;
}

/* Cocoonの自動目次は、このサイトでは使わない（Cocoon設定 → 目次 でもオフにする） */
.trs-site .toc {
  display: none !important;
}

/* Cocoonがスマホの固定ボタン用に付ける下の余白を消す */
.trs-site { padding-bottom: 0 !important; }

/* ---------- 固定ページ（4ページ）：本文の枠を消して全幅で見せる ---------- */
.trs-site.page #content,
.trs-site.page .content,
.trs-site.page #content-in,
.trs-site.page .content-in {
  margin-top: 0 !important;
  padding: 0 !important;
}
.trs-site.page .main {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
}
.trs-site.page .article,
.trs-site.page .entry-content {
  margin: 0 !important;
  padding: 0 !important;
}

/* 固定ページでは、Cocoonのタイトル・パンくず・日付などを出さない
   （見出しは本文のHTML側で出している） */
.trs-site.page .entry-title,
.trs-site.page .article-header,
.trs-site.page .breadcrumb,
.trs-site.page .date-tags,
.trs-site.page .sns-share,
.trs-site.page .sns-follow,
.trs-site.page .author-info,
.trs-site.page .article-footer {
  display: none !important;
}

/* ---------- 施工事例（投稿ページ） ---------- */
.trs-site.single .main {
  max-width: 880px;
  margin: 40px auto !important;
}
.trs-site.single .entry-title {
  font-size: clamp(22px, 3vw, 28px);
  color: #1d3f5e;
}
.trs-site.single .breadcrumb,
.trs-site.single .date-tags,
.trs-site.single .sns-share,
.trs-site.single .sns-follow,
.trs-site.single .author-info,
.trs-site.single .under-entry-content,
.trs-site.single .related-entries,
.trs-site.single .pager-post-navi,
.trs-site.single #comment-area {
  display: none !important;
}

/* Cocoonの本文の見出し装飾（左線・背景など）が .trs の中に出ないようにする */
.trs h1,
.trs h2,
.trs h3 {
  margin-top: 0;
  padding: 0;
  border: 0;
  background: none;
}
.trs h2::before,
.trs h2::after,
.trs h3::before,
.trs h3::after {
  content: none;
}
.trs ul,
.trs ol {
  padding-left: 0;
}
.trs li {
  margin: 0;
}
