@charset "UTF-8";
/*!
Theme Name: Cocoon Child
Description: おとなの関係相談室 - AI Lab風リデザイン
Template: cocoon-master
Version: 6.0.0-otona
*/

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

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

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

/* ==========================================================================
   1. Header — White background, text logo (matches TOP page design)
   ========================================================================== */
#header-container {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #e8e4de;
  padding: 0;
}
#header-container-in { max-width: 1200px; margin: 0 auto; }/* hlt-top-menu対応: ロゴとナビを横並び */#header-container-in.hlt-top-menu,#header-container-in.hlt-top-menu.hlt-tm-right {  display: flex !important;  align-items: center !important;  justify-content: space-between !important;  padding: 0 24px;  height: 72px;}#header-container-in.hlt-top-menu .header {  background-image: none !important;  flex-shrink: 0;}#header-container-in.hlt-top-menu #navi,#header-container-in.hlt-top-menu .navi {  margin-left: auto;  width: auto !important;}
#header-in, .header-in {
  display: flex !important;
  align-items: center !important;
  padding: 12px 24px !important;
  gap: 24px;
  height: 72px;
}
.logo-header { margin: 0 !important; padding: 0 !important; flex-shrink: 0; }
/* サイト名テキスト（ヘッダー内） */
.logo-header a,
.site-name-text,
.site-name-text-link,
#header .header-in .logo-header a {
  color: #2D3748 !important;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}
/* サイト説明文（タグライン） */
.tagline {
  color: #888 !important;
  font-size: 11px !important;
}
.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: 13px;
  font-weight: 600;
  color: #555;
  opacity: 1;
  padding: 8px 0;
  white-space: nowrap;
  transition: color 0.2s;
}
.navi-in > ul > li > a:hover { color: #C4A87C; opacity: 1; }
/* ヘッダー右端のメール相談ボタン */
.header-cta-btn, .navi-in .menu-item a[href*="contact"] {
  background: #C4A87C !important;
  border: none !important;
  color: #fff !important;
  border-radius: 6px !important;
  padding: 8px 16px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  transition: background 0.2s;
}
.header-cta-btn:hover, .navi-in .menu-item a[href*="contact"]:hover {
  background: #b89a6e !important;
}
/* 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; height: 56px; }
  .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, #FAF8F5 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: #1f2f4a;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #b39355;
}
.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: #b39355; color: #fff; border-color: #b39355; }
.latest-section { margin-bottom: 40px; }
.about-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 32px;
  border-radius: 16px;
  margin-bottom: 40px;
}
.text-link { color: #b39355; 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: #b39355 !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: #1f2f4a;
  font-family: "Noto Serif JP", "Noto Sans JP", serif;
}
/* 見出し */
.article h2 {
  font-size: 1.4em;
  font-weight: 700;
  color: #1f2f4a;
  font-family: "Noto Serif JP", "Noto Sans JP", serif;
  padding: 0 0 12px;
  margin: 48px 0 24px;
  border-bottom: 2px solid #b39355;
  background: none !important;
}
.article h3 {
  font-size: 1.15em;
  font-weight: 700;
  color: #1f2f4a;
  padding: 10px 0 10px 16px;
  margin: 36px 0 20px;
  border-left: 4px solid #b39355;
  background: none !important;
}
.article h4 {
  font-size: 1.05em;
  font-weight: 700;
  color: #1f2f4a;
  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: #b39355 !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: #faf6ee;
  border: 2px solid #b39355;
  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: #1f2f4a; }
.cta-box .btn {
  display: inline-block;
  padding: 12px 32px;
  background: linear-gradient(180deg, #c7a265, #a88447);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  margin-top: 12px;
}
.cta-box .btn:hover { background: linear-gradient(180deg, #a88447, #8f6e35); color: #fff; }

/* ==========================================================================
   8. Service Card
   ========================================================================== */
.service-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
}
.service-rank {
  background: #b39355;
  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: 10px 24px;
  background: linear-gradient(180deg, #c7a265, #a88447);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  margin-top: 12px;
}

/* ==========================================================================
   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;
  color: #1f2f4a;
  border-bottom: 2px solid #b39355;
  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 — TOPページ統一デザイン
   ========================================================================== */
#footer {
  background: #1a263c !important;
  color: #c9d0de;
}
#footer a { color: #a8b3c6; }
#footer a:hover { color: #fff; }
.footer-bottom {
  font-size: 13px;
  background: #141e30 !important;
  color: #6f7b91;
}
.footer-bottom a { color: #6f7b91; }
/* フッター見出し */
#footer .widget-title,
#footer h3,
#footer h4 {
  color: #fff !important;
  border-bottom-color: rgba(179,147,85,.3) !important;
}
/* フッターウィジェット */
#footer .widget {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
/* Cocoonフッターナビ */
.navi-footer-in > ul > li > a,
.footer-bottom-content a {
  color: #a8b3c6 !important;
}
.navi-footer-in > ul > li > a:hover {
  color: #e6d3a3 !important;
}
/* コピーライト */
.copyright,
.footer-bottom-logo,
.source-org {
  color: #6f7b91 !important;
}

/* ==========================================================================
   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: #1f2f4a;
  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; }

@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;
  }
}

.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;
}

.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;
}

/* 記事ページ・固定ページは白背景を維持 */
.single .article,
.page:not(.front-top-page) .article {
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
  border-radius: 16px !important;
  padding: 40px !important;
}
@media screen and (max-width: 768px) {
  .single .article,
  .page:not(.front-top-page) .article {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 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;
}

.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;
}
.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;
}

/* ==========================================================================
   v6.3 — 記事装飾CSS（治療家サイトから移植・カラー変更）
   ========================================================================== */

/* === 横スクロールテーブル === */
.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: #FAF6F0 !important;
}
.recommend-badge {
  display: inline-block;
  background: #b39355;
  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: linear-gradient(180deg, #c7a265, #a88447);
  color: #fff !important;
  font-weight: bold;
  font-size: 1.1em;
  border-radius: 8px;
  text-decoration: none !important;
  transition: background 0.2s;
}
.cta-button-wrap a:hover {
  background: linear-gradient(180deg, #a88447, #8f6e35);
}
.cta-button-wrap .cta-sub {
  font-size: 0.85em;
  color: #6B7280;
  margin-top: 8px;
}

/* === まとめボックス === */
.summary-box {
  background: #faf6ee;
  border-left: 4px solid #b39355;
  padding: 20px 24px;
  margin: 24px 0;
  border-radius: 0 8px 8px 0;
}
.summary-box h4 {
  color: #8B6914;
  margin: 0 0 12px 0;
  font-size: 1.1em;
}

/* === ポイントボックス（この記事でわかること） === */
.point-box {
  background: #faf6ee;
  border: 1px solid #b39355;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 24px 0;
}
.point-box h4 {
  color: #8B6914;
  margin: 0 0 12px 0;
}

/* === 赤マーカー・太字赤 === */
.marker-red {
  background: linear-gradient(transparent 60%, #FEE2E2 60%);
  font-weight: 700;
}
.bold-red {
  color: #DC2626;
  font-weight: 700;
}

/* === PR表記 === */
.pr-label {
  display: inline-block;
  background: #6B7280;
  color: #fff;
  font-size: 0.75em;
  padding: 2px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-weight: 600;
}

/* ==========================================================================
   FRONT PAGE REDESIGN (2026-04-22)
   このセクション以降がフロントページ専用CSS。
   削除すればフロントページのスタイルだけが消える。
   ========================================================================== */

/* --- Reset for front page (Cocoon defaults override) --- */
body.fp-otona #container,
body.fp-otona #content,
body.fp-otona #content-in,
body.fp-otona .wrap,
body.fp-otona #main,
body.fp-otona #sidebar,
body.fp-otona .content-in,
body.fp-otona #header-container,
body.fp-otona #header,
body.fp-otona .appeal,
body.fp-otona #footer,
body.fp-otona .go-to-top,
body.fp-otona .breadcrumb,
body.fp-otona .mobile-menu-buttons,
body.fp-otona .navi-footer-in,
body.fp-otona .footer-bottom,
body.fp-otona .footer-bottom-content,
body.fp-otona .sns-share,
body.fp-otona .sns-follow,
body.fp-otona .under-entry-content,
body.fp-otona .pager-links {
  display: none !important;
}

body.fp-otona {
  margin: 0;
  padding: 0;
  background: #fff;
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
  color: #333;
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body.fp-otona * { box-sizing: border-box; }

/* --- Container --- */
.fp-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- SP only / PC only --- */
.fp-sp-only { display: none; }
@media (max-width: 768px) {
  .fp-sp-only { display: inline; }
  .fp-pc-only { display: none; }
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.fp-header {
  background: #fff;
  border-bottom: 1px solid #e8e4de;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.fp-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 72px;
  gap: 24px;
}
.fp-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.fp-logo-img {
  height: 40px;
  width: auto;
}
.fp-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #2D3748;
  letter-spacing: 0.02em;
}
.fp-nav {
  margin-left: auto;
}
.fp-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.fp-nav a {
  font-size: 14px;
  font-weight: 600;
  color: #555;
  text-decoration: none;
  transition: color 0.2s;
}
.fp-nav a:hover { color: #C4A87C; }

.fp-header-phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}
.fp-phone-label {
  font-size: 11px;
  color: #888;
}
.fp-header-phone .fp-phone-number {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  font-weight: 700;
  color: #C4A87C;
  text-decoration: none;
}
.fp-menu-toggle { display: none; }

/* Mobile header */
@media (max-width: 768px) {
  .fp-header-inner { height: 56px; padding: 0 16px; }
  .fp-nav {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #e8e4de;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    z-index: 999;
  }
  .fp-nav.is-open { display: block; }
  .fp-nav ul { flex-direction: column; gap: 0; }
  .fp-nav li { border-bottom: 1px solid #f0f0f0; }
  .fp-nav a { display: block; padding: 14px 0; font-size: 15px; }
  .fp-header-phone { display: none; }
  .fp-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
  }
  .fp-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #333;
    transition: 0.3s;
  }
  .fp-menu-toggle.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .fp-menu-toggle.is-open span:nth-child(2) { opacity: 0; }
  .fp-menu-toggle.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
}

/* ==========================================================================
   HERO — full-bleed background image with text overlay
   ========================================================================== */
.fp-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  overflow: hidden;
}
.fp-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(250, 248, 245, 0.95) 0%,
    rgba(250, 248, 245, 0.85) 40%,
    rgba(250, 248, 245, 0.4) 70%,
    rgba(250, 248, 245, 0.1) 100%
  );
  z-index: 1;
}
.fp-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
  width: 100%;
}
.fp-hero-text {
  max-width: 520px;
}
.fp-hero-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.5;
  color: #2D3748;
  margin: 0 0 20px;
  text-shadow: 0 1px 3px rgba(255,255,255,0.5);
}
.fp-hero-accent {
  color: #C4A87C;
  position: relative;
}
.fp-hero-sub {
  font-size: 16px;
  color: #555;
  margin: 0;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .fp-hero { min-height: 380px; }
  .fp-hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(250, 248, 245, 0.92) 0%,
      rgba(250, 248, 245, 0.75) 60%,
      rgba(250, 248, 245, 0.5) 100%
    );
  }
  .fp-hero-inner { padding: 56px 20px; }
  .fp-hero-text { max-width: 100%; }
  .fp-hero-title { font-size: 26px; }
  .fp-hero-sub { font-size: 14px; }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.fp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  border-radius: 8px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.fp-btn-primary {
  background: #4a7c59;
  color: #fff;
  padding: 14px 32px;
  font-size: 20px;
  border-radius: 50px;
}
.fp-btn-primary:hover {
  background: #3d6a4b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74,124,89,0.3);
}
.fp-btn-cta {
  background: #C4A87C;
  color: #fff;
  padding: 16px 40px;
  font-size: 22px;
  border-radius: 50px;
}
.fp-btn-cta:hover {
  background: #b89a6e;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(196,168,124,0.4);
}
.fp-btn-outline {
  background: transparent;
  color: #C4A87C;
  border: 2px solid #C4A87C;
  padding: 12px 32px;
  font-size: 15px;
  border-radius: 50px;
}
.fp-btn-outline:hover {
  background: #C4A87C;
  color: #fff;
}

/* ==========================================================================
   WORRIES SECTION
   ========================================================================== */
.fp-worries {
  padding: 72px 0;
  background: #fff;
}
.fp-section-title {
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  color: #2D3748;
  margin: 0 0 40px;
  line-height: 1.5;
}
.fp-worry-list {
  max-width: 640px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.fp-worry-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  color: #444;
  padding: 16px 20px;
  background: #faf8f5;
  border-radius: 10px;
  border-left: 4px solid #C4A87C;
}
.fp-check {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .fp-worries { padding: 48px 0; }
  .fp-section-title { font-size: 22px; margin-bottom: 28px; }
  .fp-worry-list li { font-size: 14px; padding: 14px 16px; }
}

/* ==========================================================================
   REASONS SECTION
   ========================================================================== */
.fp-reasons {
  padding: 72px 0;
  background: #faf8f5;
}
.fp-reason-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.fp-reason-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}
.fp-reason-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.fp-reason-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: #faf8f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fp-reason-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #2D3748;
  margin: 0 0 12px;
}
.fp-reason-card p {
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .fp-reasons { padding: 48px 0; }
  .fp-reason-cards { grid-template-columns: 1fr; gap: 16px; }
  .fp-reason-card { padding: 28px 20px; }
}

/* ==========================================================================
   FLOW SECTION
   ========================================================================== */
.fp-flow {
  padding: 72px 0;
  background: #fff;
}
.fp-flow-steps {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.fp-flow-step {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  position: relative;
}
.fp-flow-step:not(:last-child) {
  border-bottom: 1px dashed #e0dbd3;
}
.fp-step-num {
  width: 52px;
  height: 52px;
  background: #C4A87C;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fp-step-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: #2D3748;
  margin: 0 0 8px;
}
.fp-step-body p {
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .fp-flow { padding: 48px 0; }
  .fp-flow-step { gap: 16px; padding: 20px 0; }
  .fp-step-num { width: 44px; height: 44px; font-size: 16px; }
}

/* ==========================================================================
   CTA BAND
   ========================================================================== */
.fp-cta-band {
  padding: 48px 0;
  background: #2D3748;
  text-align: center;
}
.fp-cta-text {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 20px;
}
.fp-cta-hours {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  margin: 12px 0 0;
}

/* ==========================================================================
   ARTICLES SECTION
   ========================================================================== */
.fp-articles {
  padding: 72px 0;
  background: #faf8f5;
}
.fp-article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}
.fp-article-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}
.fp-article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.fp-article-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #e8e4de;
}
.fp-article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fp-article-nothumb {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8e4de, #d4cfc6);
}
.fp-article-body {
  padding: 16px 18px 20px;
}
.fp-article-date {
  font-size: 12px;
  color: #999;
  display: block;
  margin-bottom: 6px;
}
.fp-article-title {
  font-size: 15px;
  font-weight: 600;
  color: #2D3748;
  margin: 0;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fp-article-more {
  text-align: center;
}

@media (max-width: 768px) {
  .fp-articles { padding: 48px 0; }
  .fp-article-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .fp-article-title { font-size: 13px; }
  .fp-article-body { padding: 12px 14px 16px; }
}
@media (max-width: 480px) {
  .fp-article-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.fp-footer {
  background: #2D3748;
  color: #ccc;
  padding: 0;
}
.fp-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.fp-footer-top {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  padding: 48px 0 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.fp-footer-brand { flex: 1; }
.fp-footer-logo {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  display: block;
  margin-bottom: 8px;
}
.fp-footer-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin: 0;
  line-height: 1.7;
}
.fp-footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fp-footer-nav a {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.fp-footer-nav a:hover { color: #C4A87C; }

.fp-footer-phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.fp-footer-phone .fp-phone-number {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 20px;
  font-weight: 700;
  color: #C4A87C;
  text-decoration: none;
}
.fp-footer-hours {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.fp-footer-bottom {
  padding: 20px 0;
  text-align: center;
}
.fp-footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

@media (max-width: 768px) {
  .fp-footer-top {
    flex-direction: column;
    gap: 28px;
    padding: 36px 0 28px;
  }
  .fp-footer-nav ul { flex-direction: row; flex-wrap: wrap; gap: 12px 20px; }
  .fp-footer-phone { align-items: flex-start; }
}

/* ==========================================================================
   HEADER/FOOTER OVERRIDE - Match static-top.html design (2026-04-26)
   ========================================================================== */

/* --- HEADER --- */
#header.header {
  background: #1f2f4a !important;
  border: none !important;
  box-shadow: none !important;
}
#header-in.header-in {
  display: grid !important;
  grid-template-columns: auto 1fr auto !important;
  align-items: center !important;
  gap: 24px !important;
  padding: 10px 28px !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
}
#header .tagline {
  display: none !important;
}
#header .logo-header a,
#header .site-name-text {
  font-family: "Noto Serif JP", serif !important;
  font-size: 18px !important;
  letter-spacing: .08em !important;
  font-weight: 500 !important;
  color: #fff !important;
}
#header .logo-header {
  display: flex !important;
  flex-direction: column !important;
}
#header .logo-header::after {
  content: "浮気調査・探偵事務所の情報メディア" !important;
  font-family: "Noto Sans JP", sans-serif !important;
  font-size: 10px !important;
  color: #d7ccb2 !important;
  margin-top: 3px !important;
  letter-spacing: .04em !important;
  font-weight: 400 !important;
}

/* Cocoon navi */
#navi .navi-in > ul {
  display: flex !important;
  gap: 26px !important;
  justify-content: center !important;
}
#navi .navi-in > ul > li > a {
  font-size: 12.5px !important;
  color: #fff !important;
  letter-spacing: .04em !important;
  opacity: .9 !important;
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  height: auto !important;
  line-height: 1.4 !important;
}
#navi .navi-in > ul > li > a:hover {
  color: #e6d3a3 !important;
  opacity: 1 !important;
  background: transparent !important;
}
#navi .navi-in > ul > li {
  padding: 0 !important;
  margin: 0 !important;
}
#navi {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.navi-in {
  max-width: none !important;
  padding: 0 !important;
}

/* Header CTA (injected via functions.php) */
.otona-header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.otona-header-cta .btn-mail-sm {
  background: #334560;
  border: 1px solid #4a5d7a;
  color: #fff;
  font-size: 10.5px;
  line-height: 1.25;
  padding: 7px 12px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: left;
  text-decoration: none;
  transition: background .2s;
}
.otona-header-cta .btn-mail-sm:hover { background: #3f547a; }

/* --- FOOTER --- */
#footer.footer {
  background: #1a263c !important;
  color: #c9d0de !important;
  padding-top: 50px !important;
  border: none !important;
}
#footer-in.footer-in {
  display: grid !important;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr !important;
  gap: 32px !important;
  max-width: 1120px !important;
  margin: 0 auto !important;
  padding: 0 24px 40px !important;
}
#footer .footer-bottom {
  padding: 0 !important;
  margin: 0 !important;
  text-align: left !important;
}
#footer .footer-bottom-logo {
  margin-bottom: 14px !important;
}
#footer .footer-bottom-logo .site-name-text {
  font-family: "Noto Serif JP", serif !important;
  color: #fff !important;
  font-size: 17px !important;
  font-weight: 500 !important;
  letter-spacing: .06em !important;
}
#footer .footer-bottom-logo .logo-footer::after {
  content: "浮気調査・探偵事務所の情報メディア" !important;
  display: block !important;
  font-family: "Noto Sans JP", sans-serif !important;
  font-size: 10.5px !important;
  color: #8fa0b8 !important;
  margin-top: 3px !important;
  letter-spacing: .04em !important;
  font-weight: 400 !important;
}
#footer .navi-footer {
  margin: 0 !important;
  padding: 0 !important;
}
#footer .navi-footer-in {
  padding: 0 !important;
}
#footer .navi-footer ul {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}
#footer .navi-footer ul li a {
  font-size: 11.5px !important;
  color: #a8b3c6 !important;
  transition: color .2s !important;
}
#footer .navi-footer ul li a:hover { color: #fff !important; }

#footer .copyright {
  background: #141e30 !important;
  color: #6f7b91 !important;
  font-size: 11px !important;
  padding: 14px 0 !important;
  text-align: center !important;
  letter-spacing: .04em !important;
  margin: 0 !important;
}

/* Hide Cocoon footer widgets we don't need */
#footer .footer-bottom-content {
  grid-column: 2 / -1;
}

/* Responsive */
@media (max-width: 1060px) {
  #header-in.header-in {
    grid-template-columns: 1fr auto !important;
    gap: 12px !important;
    padding: 10px 16px !important;
  }
  #navi { display: none !important; }
}
@media (max-width: 780px) {
  #footer-in.footer-in {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }
  #header .logo-header a,
  #header .site-name-text {
    font-size: 15px !important;
  }
  #header .logo-header::after {
    display: none !important;
  }
}

/* ==========================================================================
   AFFILIATE RICH CARD (for article content)
   ========================================================================== */
.aff-rich-card {
  background: #fff;
  border: 1px solid #e5dccb;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 24px 0;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.aff-rich-card .aff-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-width: 52px;
  height: 52px;
  border-radius: 6px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.aff-rich-card .aff-rank span {
  font-family: "Noto Serif JP", serif;
  font-size: 22px;
  line-height: 1;
}
.aff-rank-1 { background: linear-gradient(180deg, #d4a54a, #b8922f); }
.aff-rank-2 { background: linear-gradient(180deg, #a8a8a8, #8a8a8a); }
.aff-rank-3 { background: linear-gradient(180deg, #c08850, #a07040); }
.aff-rank-4 { background: linear-gradient(180deg, #6b7b94, #536178); }
.aff-rich-card .aff-body { flex: 1; }
.aff-rich-card .aff-name {
  font-family: "Noto Serif JP", serif;
  font-size: 17px;
  color: #1f2f4a;
  font-weight: 500;
  margin-bottom: 6px;
}
.aff-rich-card .aff-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.aff-rich-card .aff-tag {
  display: inline-block;
  background: #f3ecde;
  color: #7a6840;
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 999px;
}
.aff-rich-card .aff-desc {
  font-size: 13px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 12px;
}
.aff-rich-card .aff-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #c7a265, #a88447);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: 4px;
  text-decoration: none;
  transition: filter .2s;
}
.aff-rich-card .aff-btn:hover { filter: brightness(1.08); }
@media (max-width: 600px) {
  .aff-rich-card { flex-direction: column; gap: 12px; }
  .aff-rich-card .aff-rank { flex-direction: row; gap: 6px; width: auto; height: auto; padding: 6px 12px; }
}

/* ==========================================================================
   FIX 2026-04-26: Article-level improvements
   ========================================================================== */

/* --- Affiliate Rich Card: larger, more prominent --- */
.aff-rich-card {
  padding: 28px 28px !important;
  margin: 32px 0 !important;
  border: 2px solid #e5dccb !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
}
.aff-rich-card .aff-name {
  font-size: 20px !important;
  margin-bottom: 10px !important;
}
.aff-rich-card .aff-desc {
  font-size: 14px !important;
  margin-bottom: 16px !important;
}
.aff-rich-card .aff-btn {
  font-size: 15px !important;
  padding: 14px 32px !important;
  border-radius: 50px !important;
  background: linear-gradient(180deg, #c7a265, #a88447) !important;
}
.aff-rich-card .aff-btn:hover {
  filter: brightness(1.1) !important;
  box-shadow: 0 4px 12px rgba(196,168,124,0.4) !important;
}
.aff-rich-card .aff-rank {
  min-width: 60px !important;
  height: 60px !important;
}
.aff-rich-card .aff-rank span {
  font-size: 26px !important;
}

/* --- Hide ranking badge before TOC (目次前のランキングバッジ非表示) --- */
.toc + .aff-rich-card .aff-rank,
.article > .aff-rich-card:first-of-type .aff-rank,
h2 ~ .aff-rich-card:first-of-type .aff-rank {
  /* Keep visible in proper context */
}
/* Target ranking badges that appear before the first H2 (= before TOC context) */
.article > p + .aff-rich-card .aff-rank,
.point-box + .aff-rich-card .aff-rank {
  display: none !important;
}

/* --- Q&A (FAQ) style unification: match old articles --- */
/* Cocoon's built-in FAQ block */
.wp-block-cocoon-blocks-faq .faq-question,
.wp-block-cocoon-blocks-faq .faq-answer,
.faq-wrap .faq-question,
.faq-wrap .faq-answer {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  padding: 20px !important;
  float: none !important;
  width: 100% !important;
}
.wp-block-cocoon-blocks-faq .faq-question,
.faq-wrap .faq-question {
  background: #f9fafb !important;
  font-weight: 700 !important;
  border-bottom: 1px solid #e5e7eb !important;
}
.wp-block-cocoon-blocks-faq .faq-answer,
.faq-wrap .faq-answer {
  background: #fff !important;
}
.wp-block-cocoon-blocks-faq,
.faq-wrap {
  margin-bottom: 24px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}
/* Hide default Cocoon Q/A icons if conflicting */
.faq-question .faq-question-label,
.faq-answer .faq-answer-label {
  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-question-label {
  background: #b39355 !important;
  color: #fff !important;
}
.faq-answer .faq-answer-label {
  background: #F59E0B !important;
  color: #fff !important;
}

/* --- CTA box override for dark style --- */
.cta-box[style*="background:#2D3748"] {
  border: none !important;
}
.cta-box[style*="background:#2D3748"] h3 {
  color: #fff !important;
}
.cta-box[style*="background:#2D3748"] p {
  color: rgba(255,255,255,0.8) !important;
}

/* ==========================================================================
   カスタムヘッダー/フッター統一 (2026-04-26)
   非フロントページ: Cocoonデフォルトを非表示にしてカスタムHTMLを表示
   ========================================================================== */

/* Cocoonデフォルトのヘッダーを非フロントページで非表示 */
body #header-container,
#navi-container {
  display: none !important;
}

/* Cocoonデフォルトのフッターを非フロントページで非表示 */
body #footer {
  display: none !important;
}

/* ========================================================
   カスタムヘッダー (.otona-site-header)
   ======================================================== */
.otona-site-header {
  background: #1f2f4a;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
}
.otona-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 10px 28px;
  max-width: 1400px;
  margin: 0 auto;
}
.otona-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-decoration: none;
  color: #fff;
}
.otona-brand-name {
  font-family: "Noto Serif JP", "Noto Sans JP", serif;
  font-size: 18px;
  letter-spacing: .08em;
  font-weight: 500;
  color: #fff;
}
.otona-brand-sub {
  font-size: 10px;
  color: #d7ccb2;
  margin-top: 3px;
  letter-spacing: .04em;
}
.otona-nav-primary ul {
  display: flex;
  gap: 26px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.otona-nav-primary a {
  font-size: 12.5px;
  color: #fff;
  letter-spacing: .04em;
  opacity: .9;
  transition: color .2s;
  text-decoration: none;
}
.otona-nav-primary a:hover {
  color: #e6d3a3;
  opacity: 1;
}
.otona-header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.otona-btn-mail-sm {
  background: #334560;
  border: 1px solid #4a5d7a;
  color: #fff !important;
  font-size: 10.5px;
  line-height: 1.25;
  padding: 7px 12px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: left;
  transition: background .2s;
  text-decoration: none;
}
.otona-btn-mail-sm:hover {
  background: #3f547a;
  opacity: 1;
}
.otona-btn-mail-sm svg {
  flex-shrink: 0;
}

/* ========================================================
   カスタムフッター (.otona-site-footer)
   ======================================================== */
.otona-site-footer {
  background: #1a263c;
  color: #c9d0de;
  padding-top: 50px;
  margin-top: 60px;
}
.otona-footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}
.otona-f-name {
  font-family: "Noto Serif JP", "Noto Sans JP", serif;
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .06em;
  margin: 0 0 4px 0;
}
.otona-f-sub {
  font-size: 10.5px;
  color: #8fa0b8;
  margin-top: 3px;
  margin-bottom: 14px;
  letter-spacing: .04em;
}
.otona-f-desc {
  font-size: 11.5px;
  line-height: 1.9;
  color: #a8b3c6;
  margin: 0;
}
.otona-f-head {
  font-size: 12px;
  color: #fff;
  font-weight: 500;
  letter-spacing: .06em;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(179,147,85,.3);
}
.otona-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.otona-footer-col ul li {
  margin-bottom: 8px;
}
.otona-footer-col a {
  font-size: 11.5px;
  color: #a8b3c6;
  transition: color .2s;
  text-decoration: none;
}
.otona-footer-col a:hover {
  color: #fff;
  opacity: 1;
}
.otona-footer-mail-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #2a4870;
  color: #fff !important;
  font-size: 12px;
  padding: 10px 14px;
  border-radius: 3px;
  text-decoration: none;
  margin-bottom: 16px;
}
.otona-footer-mail-btn:hover {
  background: #3a5880;
  opacity: 1;
}
.otona-footer-links-extra {
  list-style: none;
  margin: 0;
  padding: 0;
}
.otona-footer-links-extra li {
  margin-bottom: 6px;
}
.otona-footer-links-extra a {
  font-size: 11px;
  color: #8fa0b8;
  text-decoration: none;
  transition: color .2s;
}
.otona-footer-links-extra a:hover {
  color: #fff;
  opacity: 1;
}
.otona-footer-copy {
  background: #141e30;
  color: #6f7b91;
  font-size: 11px;
  padding: 14px 0;
  text-align: center;
  letter-spacing: .04em;
}
.otona-footer-copy .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* レスポンシブ */
@media (max-width: 1060px) {
  .otona-header-inner {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 10px 16px;
  }
  .otona-nav-primary {
    display: none;
  }
}
@media (max-width: 780px) {
  .otona-footer-inner {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-left: 18px;
    padding-right: 18px;
  }
  .otona-brand-sub {
    display: none;
  }
  .otona-brand-name {
    font-size: 15px;
  }
}
