/* =========================================================
   2026-06-18 子ページ共通調整
   - TOPページと同系統のネイビー / ゴールド / クリームへ統一
   - パンくずを「ホーム ＞ カテゴリ ＞ 記事タイトル」で1行表示
   - TOP以外の投稿・カテゴリ・固定ページ・アーカイブ全体に適用
   ========================================================= */

:root {
  --osaka-navy: #0a065d;
  --osaka-deep: #050836;
  --osaka-gold: #a3816a;
  --osaka-gold-light: #c2a78f;
  --osaka-cream: #fdf7f2;
  --osaka-cream-2: #fbf7f5;
  --osaka-border: #d6cccc;
  --osaka-text: #1a1830;
  --osaka-muted: rgba(26, 24, 48, 0.68);
  --osaka-wrap: 1120px;
}

/* body背景はmain.cssで#050836に設定 - ここでは上書きしない */
body:not(.home):not(.front-page) #main,
body:not(.home):not(.front-page) .site-main,
body:not(.home):not(.front-page) .archive-page,
body:not(.home):not(.front-page) .single-wrap,
body:not(.home):not(.front-page) .single-page-wrap,
body:not(.home):not(.front-page) .lower-page,
body:not(.home):not(.front-page) .page-content {
  background: var(--osaka-cream) !important;
}

/* ----- パンくず：テンプレートパーツ版 ----- */
body:not(.home):not(.front-page) .breadcrumb {
  width: 100%;
  background: var(--osaka-cream);
  border-bottom: 1px solid rgba(214, 204, 204, 0.55);
  margin: 0;
  padding: 10px 0;
  overflow: hidden;
}

body:not(.home):not(.front-page) .breadcrumb .container {
  max-width: var(--osaka-wrap) !important;
  width: min(var(--osaka-wrap), calc(100% - 48px)) !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

body:not(.home):not(.front-page) .breadcrumb ol {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 0 !important;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap !important;
  scrollbar-width: none;
}

body:not(.home):not(.front-page) .breadcrumb ol::-webkit-scrollbar {
  display: none;
}

body:not(.home):not(.front-page) .breadcrumb li {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--osaka-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.05em;
  white-space: nowrap !important;
}

body:not(.home):not(.front-page) .breadcrumb li + li::before {
  content: "＞";
  display: inline-block;
  margin: 0 9px;
  color: var(--osaka-gold);
  font-size: 11px;
}

body:not(.home):not(.front-page) .breadcrumb a {
  color: rgba(10, 6, 93, 0.78) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

body:not(.home):not(.front-page) .breadcrumb a:hover {
  color: var(--osaka-gold) !important;
}

/* ----- パンくず：single.php 直書き版 ----- */
body:not(.home):not(.front-page) .single-breadcrumb {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  max-width: var(--osaka-wrap) !important;
  width: min(var(--osaka-wrap), calc(100% - 48px)) !important;
  margin: 0 auto !important;
  padding: 10px 0 !important;
  color: var(--osaka-muted) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.6 !important;
  letter-spacing: 0.05em !important;
  white-space: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  text-overflow: clip !important;
  scrollbar-width: none;
  background: var(--osaka-cream);
}

body:not(.home):not(.front-page) .single-breadcrumb::-webkit-scrollbar {
  display: none;
}

body:not(.home):not(.front-page) .single-breadcrumb a,
body:not(.home):not(.front-page) .single-breadcrumb span {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  color: rgba(10, 6, 93, 0.78) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

body:not(.home):not(.front-page) .single-breadcrumb > span:not(.single-breadcrumb__current) {
  color: var(--osaka-gold) !important;
  font-size: 11px !important;
}

body:not(.home):not(.front-page) .single-breadcrumb__current {
  max-width: min(720px, 58vw);
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  color: rgba(26, 24, 48, 0.7) !important;
}

/* ----- 子ページ共通ヘッダー / タイトル ----- */
body:not(.home):not(.front-page) .archive-header {
  background: var(--osaka-cream) !important;
  border-bottom: 1px solid var(--osaka-border) !important;
  padding: 56px 0 46px !important;
}

body:not(.home):not(.front-page) .archive-header-inner,
body:not(.home):not(.front-page) .archive-layout,
body:not(.home):not(.front-page) .single-wrap,
body:not(.home):not(.front-page) .container {
  max-width: var(--osaka-wrap) !important;
}

body:not(.home):not(.front-page) .archive-label,
body:not(.home):not(.front-page) .article-header__meta,
body:not(.home):not(.front-page) .post-list-category,
body:not(.home):not(.front-page) .toc-title,
body:not(.home):not(.front-page) .sidebar-widget-title {
  color: var(--osaka-gold) !important;
}

body:not(.home):not(.front-page) .archive-label {
  display: inline-block;
  margin-bottom: 12px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.8 !important;
  letter-spacing: 0.26em !important;
  text-transform: uppercase;
}

body:not(.home):not(.front-page) .archive-title,
body:not(.home):not(.front-page) .article-header__title,
body:not(.home):not(.front-page) .post-list-title,
body:not(.home):not(.front-page) .post-list-title a,
body:not(.home):not(.front-page) .article-body h2,
body:not(.home):not(.front-page) .article-body h3,
body:not(.home):not(.front-page) .article-body h4 {
  color: var(--osaka-navy) !important;
}

body:not(.home):not(.front-page) .archive-title,
body:not(.home):not(.front-page) .article-header__title {
  font-family: "Noto Serif JP", "Shippori Mincho", serif !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
}

body:not(.home):not(.front-page) .archive-description,
body:not(.home):not(.front-page) .post-list-excerpt,
body:not(.home):not(.front-page) .article-body,
body:not(.home):not(.front-page) .article-body p {
  color: var(--osaka-text) !important;
}

/* ----- カード / リスト / サイドバー ----- */
body:not(.home):not(.front-page) .post-list-item {
  background: rgba(255, 255, 255, 0.6);
  border-color: var(--osaka-border) !important;
}

body:not(.home):not(.front-page) .post-list-thumbnail {
  background: #ece4e4 !important;
  border-radius: 0 !important;
}

body:not(.home):not(.front-page) .post-list-meta {
  color: var(--osaka-muted) !important;
}

body:not(.home):not(.front-page) .post-list-more,
body:not(.home):not(.front-page) .pagination .page-numbers.current,
body:not(.home):not(.front-page) .article-header__meta .cat-item a {
  background: var(--osaka-navy) !important;
  color: #fff !important;
  border-color: var(--osaka-navy) !important;
}

body:not(.home):not(.front-page) .pagination .page-numbers,
body:not(.home):not(.front-page) .toc-box,
body:not(.home):not(.front-page) .sidebar-widget,
body:not(.home):not(.front-page) .article-eyecatch,
body:not(.home):not(.front-page) .related-posts,
body:not(.home):not(.front-page) .company-profile-box {
  border-color: var(--osaka-border) !important;
  background: #fff !important;
  box-shadow: none !important;
}

body:not(.home):not(.front-page) .article-body h2 {
  background: #ece4e4 !important;
  border-left-color: var(--osaka-gold) !important;
}

body:not(.home):not(.front-page) .article-body h3 {
  border-bottom-color: var(--osaka-border) !important;
}

body:not(.home):not(.front-page) .article-body h3::before,
body:not(.home):not(.front-page) .article-body h4::before {
  background: var(--osaka-gold) !important;
}

body:not(.home):not(.front-page) .article-body blockquote {
  background: #fff !important;
  border-left-color: var(--osaka-gold) !important;
}

body:not(.home):not(.front-page) .archive-page {
  padding-top: 48px !important;
}

/* ----- 子ページの横はみ出し防止 ----- */
body:not(.home):not(.front-page) img,
body:not(.home):not(.front-page) iframe,
body:not(.home):not(.front-page) table {
  max-width: 100% !important;
}

body:not(.home):not(.front-page) .article-body,
body:not(.home):not(.front-page) .post-list-body,
body:not(.home):not(.front-page) .archive-main,
body:not(.home):not(.front-page) .single-main {
  min-width: 0 !important;
  word-break: normal;
  overflow-wrap: anywhere;
}

/* ----- モバイル ----- */
@media (max-width: 768px) {
  body:not(.home):not(.front-page) .breadcrumb .container,
  body:not(.home):not(.front-page) .single-breadcrumb {
    width: calc(100% - 32px) !important;
  }

  body:not(.home):not(.front-page) .archive-header {
    padding: 42px 0 34px !important;
  }

  body:not(.home):not(.front-page) .archive-page {
    padding: 36px 0 56px !important;
  }

  body:not(.home):not(.front-page) .archive-layout,
  body:not(.home):not(.front-page) .single-wrap {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  body:not(.home):not(.front-page) .post-list-item {
    display: grid !important;
    grid-template-columns: 112px minmax(0, 1fr) !important;
    gap: 16px !important;
    padding: 20px 0 !important;
  }

  body:not(.home):not(.front-page) .post-list-thumbnail {
    width: 112px !important;
    height: 84px !important;
    margin-right: 0 !important;
  }

  body:not(.home):not(.front-page) .archive-title,
  body:not(.home):not(.front-page) .article-header__title {
    font-size: clamp(22px, 6vw, 28px) !important;
    line-height: 1.55 !important;
  }

  body:not(.home):not(.front-page) .single-breadcrumb__current {
    max-width: 58vw;
  }
}

@media (max-width: 480px) {
  body:not(.home):not(.front-page) .breadcrumb .container,
  body:not(.home):not(.front-page) .single-breadcrumb {
    width: calc(100% - 24px) !important;
    font-size: 11px !important;
  }

  body:not(.home):not(.front-page) .post-list-item {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  body:not(.home):not(.front-page) .post-list-thumbnail {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
  }

  body:not(.home):not(.front-page) .single-breadcrumb__current {
    max-width: 52vw;
  }
}

/* =========================================================
   2026-06-18 子ページ全体追加調整 v2
   - 固定ページ lower-page 系もTOP配色へ統一
   - サイト情報設定のPRバーは header.php の get_option('hikaku_pr_bar_text') で表示
   ========================================================= */
body:not(.home):not(.front-page) .lower-page {
  background: var(--osaka-cream) !important;
  color: var(--osaka-text) !important;
}
body:not(.home):not(.front-page) .lower-hero {
  background: var(--osaka-cream) !important;
  border-bottom: 1px solid var(--osaka-border) !important;
  padding: 56px 0 44px !important;
}
body:not(.home):not(.front-page) .section-label,
body:not(.home):not(.front-page) .lower-page .section-label {
  color: var(--osaka-gold) !important;
  font-family: "Cormorant Garamond", Georgia, serif !important;
  letter-spacing: 0.26em !important;
}
body:not(.home):not(.front-page) .lower-title,
body:not(.home):not(.front-page) .lower-content h1,
body:not(.home):not(.front-page) .lower-content h2,
body:not(.home):not(.front-page) .lower-content h3,
body:not(.home):not(.front-page) .lower-content h4 {
  color: var(--osaka-navy) !important;
}
body:not(.home):not(.front-page) .title-bar,
body:not(.home):not(.front-page) .lower-content h2::before,
body:not(.home):not(.front-page) .lower-content h3::before {
  background: var(--osaka-gold) !important;
}
body:not(.home):not(.front-page) .lower-content-section {
  background: var(--osaka-cream) !important;
  padding: 56px 0 72px !important;
}
body:not(.home):not(.front-page) .lower-content {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  max-width: 100% !important;
}
body:not(.home):not(.front-page) .profile-table,
body:not(.home):not(.front-page) .lower-content table {
  border-color: var(--osaka-border) !important;
}
body:not(.home):not(.front-page) .profile-table th,
body:not(.home):not(.front-page) .lower-content table th {
  background: rgba(10,6,93,0.06) !important;
  color: var(--osaka-navy) !important;
  border-color: var(--osaka-border) !important;
}
body:not(.home):not(.front-page) .profile-table td,
body:not(.home):not(.front-page) .lower-content table td {
  color: var(--osaka-text) !important;
  border-color: var(--osaka-border) !important;
}
body:not(.home):not(.front-page) .lower-content a {
  color: var(--osaka-navy) !important;
  text-decoration-color: var(--osaka-gold) !important;
}
@media (max-width: 768px) {
  body:not(.home):not(.front-page) .lower-hero {
    padding: 42px 0 34px !important;
  }
  body:not(.home):not(.front-page) .lower-content-section {
    padding: 36px 0 56px !important;
  }
  body:not(.home):not(.front-page) .lower-content {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}
