@charset "UTF-8";
/*!
Theme Name: Cocoon Child
Description: 治療家キャリアLab - AI Lab風リデザイン
Template: cocoon-master
Version: 6.0.0
*/

/* ==========================================================================
   0. Reset & Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
  color: #333;
  line-height: 1.8;
  font-size: 16px;
  background: #f8f8f8;
  margin: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: #2E7D32; text-decoration: none; }
a:hover { opacity: 0.8; }
img { max-width: 100%; height: auto; }

/* ==========================================================================
   1. Header — AI Lab style (pill shape, clean)
   ========================================================================== */
#header-container {
  position: static;
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 0;
}
#header-container-in { max-width: 1200px; margin: 0 auto; }
#header-in, .header-in {
  display: flex !important;
  align-items: center !important;
  padding: 12px 24px !important;
  gap: 24px;
}
.logo-header { margin: 0 !important; padding: 0 !important; flex-shrink: 0; }
.logo-image img,
.header-site-logo-image,
.site-logo-image {
  max-height: 60px !important;
  width: auto !important;
  height: auto !important;
}
/* ナビ */
#navi { margin-left: auto; }
.navi-in > ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.navi-in > ul > li > a {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  padding: 8px 0;
  white-space: nowrap;
}
.navi-in > ul > li > a:hover { color: #2E7D32; }
/* feedlyとRSS非表示 */
a[class*="feedly"], a[class*="rss-button"],
.sns-follow, .sns-follow-buttons, .follow-button-area, .sns-follow-message {
  display: none !important;
}
/* スマホ */
@media screen and (max-width: 834px) {
  #header-in, .header-in { padding: 10px 16px !important; }
  .logo-image img, .header-site-logo-image, .site-logo-image {
    max-height: 40px !important;
  }
  #navi, .navi-in { display: none !important; }
  #header-container { position: static !important; }
}

/* ==========================================================================
   2. Layout — 2 Column
   ========================================================================== */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; overflow: hidden; }
.content-in {
  display: flex !important;
  gap: 40px;
}
#main {
  flex: 1;
  min-width: 0;
  padding: 0 !important;
}
#sidebar {
  width: 300px;
  flex-shrink: 0;
}
@media screen and (max-width: 1023px) {
  .content-in { flex-direction: column !important; }
  #sidebar { width: 100%; }
  .wrap { padding: 0 16px; }
}

/* ==========================================================================
   3. Front Page
   ========================================================================== */
/* タイトル・日付・目次・SNS — 全非表示 */
.front-top-page .entry-title,
.front-top-page .date-tags,
.front-top-page .post-date,
.front-top-page .post-update,
.front-top-page .toc,
.front-top-page #toc,
.page .toc,
.page .table-of-contents,
.sns-share, .sns-share-buttons {
  display: none !important;
}

.hero-section {
  text-align: center;
  padding: 40px 24px;
  background: linear-gradient(135deg, #F1F8F2 0%, #F9FAFB 100%);
  border-radius: 16px;
  margin-bottom: 40px;
}
.hero-catch {
  font-size: 1.05em;
  color: #555;
  line-height: 2;
  margin: 0;
}
.section-heading {
  font-size: 1.2em;
  font-weight: 700;
  color: #333;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #2E7D32;
}
.category-section { margin-bottom: 40px; }
.category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.category-card {
  padding: 10px 20px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #333;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
}
.category-card:hover { background: #2E7D32; color: #fff; border-color: #2E7D32; }
.latest-section { margin-bottom: 40px; }
.about-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 32px;
  border-radius: 16px;
  margin-bottom: 40px;
}
.text-link { color: #2E7D32; font-weight: 600; }
.text-link:hover { text-decoration: underline; }

/* ==========================================================================
   4. Article Cards — AI Lab style grid
   ========================================================================== */
/* トップページの[new_list]出力 */
.new-entry-cards.widget-entry-cards {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
}
@media screen and (max-width: 834px) {
  .new-entry-cards.widget-entry-cards {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media screen and (max-width: 480px) {
  .new-entry-cards.widget-entry-cards {
    grid-template-columns: 1fr !important;
  }
}
.new-entry-card.widget-entry-card,
.widget-entry-card {
  display: flex !important;
  flex-direction: column !important;
  background: #fff !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
  border: 1px solid #eee !important;
  transition: box-shadow 0.2s, transform 0.2s !important;
  margin-bottom: 0 !important;
}
.widget-entry-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12) !important;
  transform: translateY(-3px) !important;
}
/* サムネイル */
.widget-entry-card .entry-card-thumb,
.new-entry-card .entry-card-thumb {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  aspect-ratio: 3/2 !important;
  overflow: hidden !important;
  position: relative !important;
}
.widget-entry-card .entry-card-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
/* カテゴリバッジ */
.widget-entry-card .cat-label,
.entry-card .cat-label {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  font-size: 11px !important;
  padding: 3px 10px !important;
  border-radius: 4px !important;
  background: #2E7D32 !important;
  color: #fff !important;
  font-weight: 700 !important;
  z-index: 1 !important;
}
/* コンテンツ */
.new-entry-card-content.card-content,
.widget-entry-card-content {
  padding: 16px !important;
  flex: 1 !important;
}
.new-entry-card-title.card-title,
.widget-entry-card-title {
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.6 !important;
  color: #333 !important;
  margin-bottom: 8px !important;
}
/* 日付表示 */
.widget-entry-card-date,
.new-entry-card-date {
  display: block !important;
  font-size: 12px !important;
  color: #999 !important;
}

/* カテゴリ・アーカイブページのカード */
.ect-entry-card .entry-card-wrap,
.entry-card-wrap {
  margin-bottom: 20px !important;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #eee;
}
.entry-card {
  background: #fff !important;
}
.entry-card-thumb {
  position: relative;
}

/* ==========================================================================
   5. Single Article Page
   ========================================================================== */
.article {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin-bottom: 32px;
}
@media screen and (max-width: 768px) {
  .article { padding: 20px 16px; }
}
.entry-title {
  font-size: 1.6em;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 16px;
  color: #111;
}
/* 見出し */
.article h2 {
  font-size: 1.4em;
  font-weight: 700;
  color: #111;
  padding: 0 0 12px;
  margin: 48px 0 24px;
  border-bottom: 2px solid #2E7D32;
  background: none !important;
}
.article h3 {
  font-size: 1.15em;
  font-weight: 700;
  color: #222;
  padding: 10px 0 10px 16px;
  margin: 36px 0 20px;
  border-left: 4px solid #2E7D32;
  background: none !important;
}
.article h4 {
  font-size: 1.05em;
  font-weight: 700;
  color: #333;
  margin: 28px 0 16px;
}

/* ==========================================================================
   6. FAQ — Q上 A下 縦並び
   ========================================================================== */
.faq-item {
  margin-bottom: 24px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  display: block !important;
}
.faq-question {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  padding: 20px !important;
  background: #f9fafb !important;
  font-weight: 700 !important;
  border-bottom: 1px solid #e5e7eb !important;
  float: none !important;
  width: 100% !important;
}
.faq-answer {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  padding: 20px !important;
  background: #fff !important;
  float: none !important;
  width: 100% !important;
}
.faq-badge {
  flex-shrink: 0 !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  font-weight: 800 !important;
  font-size: 15px !important;
}
.faq-question .faq-badge { background: #2E7D32 !important; color: #fff !important; }
.faq-answer .faq-badge { background: #F59E0B !important; color: #fff !important; }
.faq-text { flex: 1 !important; line-height: 1.8 !important; }
.faq-question::before, .faq-answer::before,
.faq-question::after, .faq-answer::after {
  display: none !important; content: none !important;
}

/* ==========================================================================
   7. CTA Box
   ========================================================================== */
.cta-box {
  background: #F1F8F2;
  border: 2px solid #2E7D32;
  border-radius: 12px;
  padding: 28px;
  margin: 32px 0;
  text-align: center;
}
.cta-box h3 { font-size: 1.1em; border: none; margin: 0 0 12px; padding: 0; color: #266B2A; }
.cta-box .btn {
  display: inline-block;
  padding: 14px 32px;
  background: #F57C00 !important;
  color: #fff !important;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  margin-top: 12px;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(245,124,0,0.3);
  transition: background 0.2s;
}
.cta-box .btn:hover { background: #EF6C00 !important; color: #fff !important; }

/* ==========================================================================
   8. Service Card
   ========================================================================== */
.service-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
}
.service-rank {
  background: #2E7D32;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  padding: 4px 12px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 8px;
}
.service-name { font-size: 1.1em; font-weight: 700; margin-bottom: 8px; }
.service-btn {
  display: inline-block;
  padding: 12px 28px;
  background: #F57C00 !important;
  color: #fff !important;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  margin-top: 12px;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(245,124,0,0.3);
  transition: background 0.2s;
}
.service-btn:hover {
  background: #EF6C00 !important;
  color: #fff !important;
}

/* ==========================================================================
   9. Author Box
   ========================================================================== */
.author-profile-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  background: #f9fafb;
  border-radius: 12px;
  margin: 32px 0;
  border: 1px solid #eee;
}
.author-avatar img { width: 72px; height: 72px; border-radius: 50%; }
.author-label { font-size: 12px; color: #999; margin-bottom: 4px; }
.author-name { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.author-bio { font-size: 13px; color: #666; line-height: 1.7; }

/* ==========================================================================
   10. Sidebar
   ========================================================================== */
.sidebar { background: transparent; }
.widget {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border: 1px solid #eee;
  padding: 20px;
  margin-bottom: 20px;
}
.widget-title {
  font-size: 14px;
  font-weight: 700;
  border-bottom: 2px solid #2E7D32;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

/* ==========================================================================
   11. Text Decoration
   ========================================================================== */
.highlight-positive {
  background: linear-gradient(transparent 60%, #FEF08A 60%);
  font-weight: 700;
  padding: 0 2px;
}
.highlight-negative {
  color: #DC2626;
  font-weight: 700;
}

/* ==========================================================================
   12. Hide Unwanted Elements
   ========================================================================== */
.related-list > p { display: none !important; }
.no-related-entries, .related-entry-none { display: none !important; }
.widget_recent_comments, .wp-block-latest-comments { display: none !important; }
.sns-share, .sns-share-buttons { display: none !important; }

/* ==========================================================================
   13. Footer
   ========================================================================== */
#footer {
  background: #222;
  color: #ccc;
}
#footer a { color: #ccc; }
.footer-bottom { font-size: 13px; }

/* ==========================================================================
   14. Responsive
   ========================================================================== */
@media screen and (max-width: 768px) {
  .article h2 { font-size: 1.2em; }
  .article h3 { font-size: 1.05em; }
  .entry-title { font-size: 1.3em; }
}

/* ==========================================================================
   15. Table
   ========================================================================== */
.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.article th {
  background: #333;
  color: #fff;
  padding: 12px 16px;
  font-weight: 700;
  text-align: left;
}
.article td {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
}
.article tr:nth-child(even) td { background: #fafafa; }

/* ==========================================================================
   v6.1 — スマホ修正 + 目次アコーディオン + カード強制縦型
   ========================================================================== */

/* スマホで白カード背景を解除（二重パディング防止） */
@media screen and (max-width: 768px) {
  .article {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }
  #main {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* カードを強制的に縦型（サムネ上+テキスト下） */
.entry-card-wrap .entry-card,
.ect-entry-card .entry-card,
.ect-vertical-card .entry-card-wrap .entry-card,
.widget-entry-card {
  display: flex !important;
  flex-direction: column !important;
}
.entry-card-thumb,
.widget-entry-card-thumb,
.new-entry-card-thumb {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}
.entry-card-content,
.widget-entry-card-content,
.new-entry-card-content {
  margin-left: 0 !important;
  padding: 16px !important;
}

/* 目次をデフォルトで閉じる（アコーディオン） */
.toc-content {
  display: none;
}
.toc-checkbox:checked ~ .toc-content {
  display: block;
}
.toc-title {
  cursor: pointer;
}

/* スマホ: 全面白背景、カードの浮きなし */
@media screen and (max-width: 768px) {
  body {
    background: #fff !important;
  }
  .entry-card-wrap,
  .widget-entry-card,
  .new-entry-card.widget-entry-card,
  .widget,
  .about-section,
  .hero-section {
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
  }
  .content-in, .wrap, #content {
    padding: 0 !important;
  }
}

/* ==========================================================================
   v6.2 — プロフィール画像・関連記事バッファ・段差修正
   ========================================================================== */

/* ライタープロフィール画像を正方形に固定 */
.author-profile-box .author-avatar img,
.author-box .author-photo img,
.author-thumb img {
  width: 72px !important;
  height: 72px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}

/* 関連記事セクションのバッファと段差修正 */
.related-entries {
  padding: 20px !important;
  margin-top: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.related-entry-heading {
  padding-left: 0 !important;
  margin-bottom: 16px !important;
}
/* 関連記事の前後のナビ（前の記事/次の記事）も段差なし */
.pager-post-navi {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
/* 記事下の余計な区切り線・段差を消す */
.under-entry-content {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* アーカイブウィジェット非表示 */
.widget_archive, .wp-block-archives {
  display: none !important;
}

/* カテゴリページのバッファ */
.archive .entry-header,
.archive .archive-title {
  padding-left: 20px !important;
}
.archive #main .entry-card-wrap {
  margin-left: 20px !important;
  margin-right: 20px !important;
}

/* サイドバー: アーカイブ完全非表示 + 重複カテゴリの2つ目を非表示 */
.widget_archive,
.wp-block-archives,
.widget_categories + .widget_categories {
  display: none !important;
}

/* サイドバー最新記事の各項目に区切り線 */
.widget_recent_entries ul li,
.widget.widget_recent_entries li {
  padding-bottom: 12px !important;
  margin-bottom: 12px !important;
  border-bottom: 1px solid #eee !important;
}
.widget_recent_entries ul li:last-child {
  border-bottom: none !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}


/* フロントページだけ段差を消す（記事ページ・固定ページは白背景維持） */
}

.front-top-page .article {
  margin-bottom: 0 !important;
  border-bottom: none !important;
}
.front-top-page .under-entry-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* 記事ページの段差修正：articleの影を消して、全体を1つの白背景に統合 */
.single .article {
  box-shadow: none !important;
  border-radius: 16px 16px 0 0 !important;
  margin-bottom: 0 !important;
}
.single .under-entry-content {
  background: #fff !important;
  padding: 20px 40px 40px !important;
  border-radius: 0 0 16px 16px !important;
  box-shadow: none !important;
}
/* 全体を包むmainに影をつける */
.single #main > .article-container {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-radius: 16px;
}
@media screen and (max-width: 768px) {
  .single .under-entry-content {
    padding: 16px !important;
  }
}

/* サイドバーカテゴリの区切り線 */
.widget_categories ul li {
  padding-bottom: 12px !important;
  margin-bottom: 12px !important;
  border-bottom: 1px solid #eee !important;
}
.widget_categories ul li:last-child {
  border-bottom: none !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* アバター画像を正円に強制 */
.author-profile-box .author-avatar img,
.author-box img.avatar,
img.avatar,
img.local-avatar {
  width: 72px !important;
  height: 72px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  aspect-ratio: 1/1 !important;
}

/* アバター正円 — 最強セレクタ */
body .author-profile-box .author-avatar img.avatar,
body .author-profile-box .author-avatar img.local-avatar,
body .author-profile-box .author-avatar img,
body .author-box .author-photo img,
body img.avatar.local-avatar {
  width: 72px !important;
  height: 72px !important;
  max-width: 72px !important;
  max-height: 72px !important;
  min-width: 72px !important;
  min-height: 72px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  clip-path: circle(50%) !important;
}

/* === 横スクロールテーブル === */
.scrollable-table {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 24px;
}
.scrollable-table table {
  min-width: 700px;
  white-space: nowrap;
}
.scrollable-table td, .scrollable-table th {
  padding: 12px 16px !important;
}
/* イチオシ行 */
.recommend-row {
  background-color: #F1F8F2 !important;
}
.recommend-badge {
  display: inline-block;
  background: #2E7D32;
  color: #fff;
  font-size: 0.75em;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  font-weight: bold;
}
/* CTAボタン */
.cta-button-wrap {
  text-align: center;
  margin: 24px 0;
}
.cta-button-wrap a {
  display: inline-block;
  padding: 16px 48px;
  background: #F57C00 !important;
  color: #fff !important;
  font-weight: bold;
  font-size: 1.1em;
  border-radius: 8px;
  text-decoration: none !important;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(245,124,0,0.3);
}
.cta-button-wrap a:hover {
  background: #EF6C00 !important;
  color: #fff !important;
}
.cta-button-wrap .cta-sub {
  font-size: 0.85em;
  color: #6B7280;
  margin-top: 8px;
}
/* まとめボックス */
.summary-box {
  background: #F1F8F2;
  border-left: 4px solid #2E7D32;
  padding: 20px 24px;
  margin: 24px 0;
  border-radius: 0 8px 8px 0;
}
.summary-box h4 {
  color: #1F5723;
  margin: 0 0 12px 0;
  font-size: 1.1em;
}
/* ポイントボックス */
.point-box {
  background: #F0FDF4;
  border: 1px solid #86EFAC;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 24px 0;
}
.point-box h4 {
  color: #166534;
  margin: 0 0 12px 0;
}

/* ==========================================================================

/* ==========================================================================
   NEW DESIGN ALIGNMENT (2026-04-26)
   トップページの新デザインに合わせたヘッダー・フッタースタイル
   ========================================================================== */

/* --- Header Override: sticky glass effect --- */
.header-container,
#header-container,
div.header-container {
  position: sticky !important;
  top: 0 !important;
  z-index: 40 !important;
  background: rgba(255,255,255,0.95) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border-bottom: 1px solid #F3F4F6 !important;
  box-shadow: none !important;
}

/* Logo size */
.header-site-logo-image,
img.site-logo-image.header-site-logo-image {
  max-height: 36px !important;
  width: auto !important;
}

/* Global nav styling */
#navi, .navi, .navi-in {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
#navi .navi-in > ul > li > a,
.navi-in > ul > li > a {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #374151 !important;
  padding: 8px 14px !important;
  transition: color 0.2s !important;
  background: transparent !important;
}
#navi .navi-in > ul > li > a:hover,
.navi-in > ul > li > a:hover {
  color: #2E7D32 !important;
  opacity: 1 !important;
  background: transparent !important;
}
#navi .navi-in > ul > li.current-menu-item > a,
#navi .navi-in > ul > li.current_page_item > a {
  color: #2E7D32 !important;
}

/* --- Footer Override: dark theme --- */
.footer,
.footer-container,
div.footer,
div.footer-container,
footer.footer {
  background: #1F2937 !important;
  color: #D1D5DB !important;
  padding-top: 48px !important;
  padding-bottom: 32px !important;
  border-top: none !important;
}
.footer a,
.footer-container a,
.footer-in a {
  color: #D1D5DB !important;
}
.footer a:hover,
.footer-container a:hover,
.footer-in a:hover {
  color: #fff !important;
  opacity: 1 !important;
}
/* Footer logo */
.footer-site-logo-image,
img.site-logo-image.footer-site-logo-image {
  max-height: 30px !important;
  width: auto !important;
  filter: brightness(10) !important;
}
.logo-footer .site-name-text-link {
  color: #fff !important;
}
/* Footer bottom */
.footer-bottom,
.footer-bottom-content,
.copyright,
.source-org,
.nwa .footer-bottom-logo,
.footer-bottom-content p {
  color: #9CA3AF !important;
  font-size: 11px !important;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1) !important;
  margin-top: 32px !important;
  padding-top: 24px !important;
}
/* Footer widget */
.footer .widgettitle,
.footer-container .widgettitle {
  color: #fff !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  margin-bottom: 12px !important;
  border-bottom: 1px solid rgba(255,255,255,0.15) !important;
  padding-bottom: 8px !important;
}
.footer .widget_nav_menu li a,
.footer .widget_categories li a,
.footer .widget_meta li a,
.footer .widget_recent_entries li a {
  font-size: 11.5px !important;
  padding: 4px 0 !important;
  color: #D1D5DB !important;
}
/* Footer menu links */
.footer-bottom-menu li a,
.nwa .footer-bottom-menu li a {
  color: #9CA3AF !important;
  font-size: 11px !important;
}
.footer-bottom-menu li a:hover {
  color: #fff !important;
}

/* --- Breadcrumb --- */
.breadcrumb,
div.breadcrumb {
  background: #F9FAFB !important;
  border-bottom: 1px solid #F3F4F6 !important;
  padding: 8px 0 !important;
  font-size: 12px !important;
  color: #6B7280 !important;
}
.breadcrumb a { color: #6B7280 !important; }
.breadcrumb a:hover { color: #2E7D32 !important; }

/* --- Archive / Category page headings --- */
.archive-title,
.list-title,
h1.archive-title,
h1.list-title {
  font-size: 22px !important;
  font-weight: 900 !important;
  color: #1F2937 !important;
  letter-spacing: -0.02em !important;
  padding: 24px 0 16px !important;
}

/* --- Brand green accent for category labels --- */
.cat-label { background: #2E7D32 !important; color: #fff !important; font-size: 9.5px !important; font-weight: 700 !important; padding: 2px 6px !important; border-radius: 3px !important; }

/* --- Entry card --- */
.entry-card-wrap,
a.entry-card-wrap {
  border: 1px solid #E5E7EB !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  transition: all 0.2s !important;
}
.entry-card-wrap:hover,
a.entry-card-wrap:hover {
  box-shadow: 0 2px 8px rgba(15,23,42,0.08) !important;
  border-color: #2E7D32 !important;
}

/* --- Article page entry title --- */
.entry-title,
h1.entry-title {
  font-size: 26px !important;
  font-weight: 900 !important;
  color: #1F2937 !important;
  line-height: 1.4 !important;
  letter-spacing: -0.02em !important;
}

/* --- Sidebar --- */
.sidebar .widgettitle,
aside .widgettitle {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #1F2937 !important;
  border-bottom: 2px solid #1F2937 !important;
  padding-bottom: 8px !important;
  margin-bottom: 12px !important;
}

/* --- Mobile menu --- */
.menu-drawer-content { background: #fff !important; }
.menu-drawer-content a { color: #374151 !important; font-size: 14px !important; }

/* --- Links in article (green accent, but not buttons) --- */
/* 記事内リンク色（ボタン系は全て除外） */
.article .entry-content a { color: #2E7D32 !important; }
.article .entry-content a:hover { color: #1F5723 !important; opacity: 1 !important; }

/* ボタン系は全て白文字 — 上記を確実に上書き */
.article .entry-content .cta-button-wrap a,
.article .entry-content .cta-box a,
.article .entry-content .cta-box .btn,
.article .entry-content a.btn,
.article .entry-content .service-btn,
.article .entry-content .service-card a.service-btn,
body .cta-button-wrap a,
body .cta-box a.btn,
body .cta-box .btn,
body a.service-btn,
body .service-card .service-btn {
  color: #fff !important;
  background: #F57C00 !important;
  text-decoration: none !important;
}
body .cta-button-wrap a:hover,
body .cta-box a.btn:hover,
body a.service-btn:hover {
  color: #fff !important;
  background: #EF6C00 !important;
  opacity: 1 !important;
}

/* ALL buttons in article must have white text — highest specificity */
.article .btn,
.article a.btn,
.article .cta-box .btn,
.article .cta-box a.btn,
.article .cta-button-wrap a,
.article .service-btn,
.article .service-card .service-btn,
.entry-content .btn,
.entry-content a.btn,
.entry-content .cta-box .btn,
.entry-content .cta-button-wrap a,
.entry-content .service-btn,
body .article .btn,
body .article .service-btn,
body .article .cta-button-wrap a,
body .entry-content .btn,
body .entry-content .service-btn,
body .entry-content .cta-button-wrap a {
  color: #fff !important;
  text-decoration: none !important;
}

/* --- Page body background --- */
body { background: #F9FAFB !important; }

/* --- Content area white card --- */
.main,
.content,
.article {
  background: #fff !important;
  border-radius: 8px !important;
}
.sidebar .widget {
  background: #fff !important;
  border-radius: 8px !important;
  padding: 16px !important;
  margin-bottom: 16px !important;
  border: 1px solid #E5E7EB !important;
}

/* ==========================================================================
   MOBILE OVERFLOW FIX + CTA REDESIGN (2026-04-26)
   ========================================================================== */

/* Prevent horizontal scroll on all pages */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

/* Header/footer inner containers must not exceed viewport */
.ck-header-inner,
.ck-footer-inner,
.ck-util-inner,
.ck-footer-bottom {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Mobile fix for custom header */
@media (max-width: 767px) {
  .ck-header-inner {
    padding: 0 16px !important;
    gap: 8px !important;
  }
  .ck-logo-text {
    font-size: 16px !important;
  }
  .ck-util-inner {
    padding: 0 16px !important;
    font-size: 11px !important;
  }
  .ck-footer-inner {
    padding: 0 16px !important;
  }
  .ck-footer-bottom {
    padding: 24px 16px 0 !important;
  }
}

/* Cocoon wrap/main/sidebar must not overflow */
.wrap, .content, .main, .sidebar {
  max-width: 100% !important;
  box-sizing: border-box !important;
}
@media (max-width: 834px) {
  .wrap { padding: 0 16px !important; }
  .main, .sidebar { width: 100% !important; float: none !important; margin: 0 !important; }
}

/* --- CTA Box Redesign --- */
.cta-box {
  background: #F1F8F2 !important;
  border: 2px solid #2E7D32 !important;
  border-radius: 12px !important;
  padding: 28px 24px !important;
  text-align: center !important;
}
.cta-box h3 {
  color: #1F2937 !important;
  font-size: 1.15em !important;
  font-weight: 800 !important;
  border: none !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
}
.cta-box p {
  color: #374151 !important;
  font-size: 14px !important;
  margin: 0 0 16px !important;
}
.cta-box .btn {
  display: inline-block !important;
  padding: 14px 32px !important;
  background: #F57C00 !important;
  color: #fff !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  text-decoration: none !important;
  transition: background 0.2s !important;
  box-shadow: 0 2px 8px rgba(245,124,0,0.3) !important;
}
.cta-box .btn:hover {
  background: #EF6C00 !important;
  color: #fff !important;
}

/* ==========================================================================
   FAQ HTML直書き型 スタイル（Cocoon親テーマを完全上書き）
   12記事で使用。Cocoon親テーマの CSS変数・色指定を全て !important で上書き
   ========================================================================== */

/* Cocoon CSS変数をリセット */
.faq-wrap,
body .faq-wrap,
.article .faq-wrap,
.entry-content .faq-wrap {
  --cocoon-custom-question-color: #2E7D32 !important;
  --cocoon-custom-answer-color: #F57C00 !important;
  --cocoon-custom-border-color: #E5E7EB !important;
  --cocoon-custom-background-color: transparent !important;
  margin: 24px 0 !important;
}

/* FAQカード */
body .faq-wrap .faq,
.article .faq-wrap .faq,
.entry-content .faq-wrap .faq {
  margin-bottom: 20px !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  display: block !important;
}

/* Q行 — block + float でstrongが分断されない */
body .faq-wrap .faq-question,
.article .faq-wrap .faq-question,
.entry-content .faq-wrap .faq-question {
  display: block !important;
  padding: 16px 20px !important;
  background: #F9FAFB !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  color: #1F2937 !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  overflow: hidden !important;
}

/* A行 — block + float でstrongが分断されない */
body .faq-wrap .faq-answer,
.article .faq-wrap .faq-answer,
.entry-content .faq-wrap .faq-answer {
  display: block !important;
  padding: 16px 20px !important;
  font-size: 14px !important;
  color: #374151 !important;
  line-height: 1.8 !important;
  border-top: 1px solid #F3F4F6 !important;
  background: #fff !important;
  margin: 0 !important;
  overflow: hidden !important;
}

/* Q/Aラベルバッジ — float left で配置 */
body .faq-question-label,
body .faq-answer-label,
.article .faq-question-label,
.article .faq-answer-label,
.entry-content .faq-question-label,
.entry-content .faq-answer-label,
.faq-wrap .faq-question-label,
.faq-wrap .faq-answer-label {
  float: left !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  margin-right: 10px !important;
  margin-top: 2px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  line-height: 28px !important;
  text-align: center !important;
}
body .faq-question-label,
.article .faq-question-label,
.entry-content .faq-question-label,
.faq-wrap .faq-question-label {
  background: #2E7D32 !important;
  color: #fff !important;
}
body .faq-answer-label,
.article .faq-answer-label,
.entry-content .faq-answer-label,
.faq-wrap .faq-answer-label {
  background: #F57C00 !important;
  color: #fff !important;
}
