@charset "UTF-8";
/*
Theme Name: 債務整理コンパス Cocoon Child
Theme URI: https://example.com/
Description: Cocoon child theme for a YMYL media site about debt settlement (saimuseiri-compass.com).
Author: 編集部
Template: cocoon-master
Version: 1.0.0
Text Domain: cocoon-saimuseiricompass-child
*/

:root {
  /* テキスト・基調 */
  --sc-ink: #1c2530;
  --sc-text: #303a44;
  --sc-sub: #67727d;
  --sc-line: #dde2e7;
  --sc-paper: #ffffff;
  --sc-base: #f6f8f9;

  /* ブランドカラー（信頼・落ち着き） */
  --sc-trust: #1e4d6b;
  --sc-trust-2: #2c6b8f;

  /* CTA専用色（絶対に赤を使わない） */
  --sc-safe: #2f7d5c;
  --sc-safe-2: #256349;

  /* 注意書き（警告ではなく「お知らせ」トーン） */
  --sc-notice: #a67c34;
  --sc-notice-bg: #fffdf7;

  --sc-radius: 4px;

  /* カテゴリ別カラー（疑似アイキャッチ用） */
  --sc-cat-basic: #3d6b7a;
  --sc-cat-selfpay: #4f7a5c;
  --sc-cat-nini: #1e4d6b;
  --sc-cat-saisei: #3a5a8a;
  --sc-cat-hasan: #5a4a7a;
  --sc-cat-chotei: #7a5a3a;
  --sc-cat-shinyo: #3a6a6a;
  --sc-cat-tokusoku: #6a5a3a;
  --sc-cat-jokyo: #5a6a3a;
  --sc-cat-soudan: #2f7d5c;
  --sc-cat-taiken: #7a4a5a;
}

/* ============================================================
   基本・スマホ右切れ対策
   ============================================================ */
html,
body {
  overflow-x: hidden;
}

body {
  color: var(--sc-text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", Meiryo, sans-serif;
  line-height: 1.8;
  background: var(--sc-paper);
  letter-spacing: .01em;
}

a {
  color: inherit;
}

.wrap,
.container,
.content,
.main,
.sidebar,
.entry-content {
  min-width: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content p,
.entry-content li,
.entry-title,
.site-name-text,
.site-description,
.breadcrumb,
.cat-label,
.sc-wrap * {
  overflow-wrap: anywhere;
}

/* ============================================================
   ヘッダー・ナビ・フッター（6章）
   ============================================================ */
.header-container,
.navi,
.article,
.sidebar,
.footer {
  box-shadow: none;
}

.header-container {
  border-bottom: 1px solid var(--sc-line);
  background: var(--sc-paper);
}

.site-name-text {
  color: var(--sc-trust);
  font-weight: 800;
  letter-spacing: 0;
}

/* ヘッダーロゴ画像のサイズを、従来のテキストロゴと同程度に固定する */
.header-site-logo-image {
  height: 64px !important;
  width: auto !important;
  max-width: 100%;
}

@media (max-width: 520px) {
  .header-site-logo-image {
    height: 40px !important;
  }
}

.site-description {
  color: var(--sc-sub);
  font-size: 13px;
}

.navi {
  border-top: 1px solid var(--sc-line);
  border-bottom: 1px solid var(--sc-line);
  background: var(--sc-paper);
}

.navi-in > ul > li > a {
  color: #314454;
  font-weight: 700;
}

.navi-in > ul > li > a:hover {
  color: var(--sc-trust);
  background: var(--sc-base);
}

.footer {
  background: #1f2d38;
  color: rgba(255, 255, 255, .78);
}

.footer a {
  color: rgba(255, 255, 255, .86);
}

/* ============================================================
   記事ページ（3章）
   ============================================================ */
.content {
  margin-top: 24px;
}

.article {
  border: 1px solid var(--sc-line);
  background: var(--sc-paper);
}

.entry-title,
.archive-title {
  color: var(--sc-ink);
  line-height: 1.45;
  letter-spacing: 0;
}

/* 3.1 見出し */
.entry-content h2 {
  padding: 12px 16px;
  border-left: 5px solid var(--sc-trust);
  border-bottom: 1px solid var(--sc-line);
  background: var(--sc-base);
  color: var(--sc-ink);
}

.entry-content h3 {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--sc-line);
  color: var(--sc-ink);
}

/* 3.2 既存インライン装飾の保護（黄=mark／赤=span） */
.entry-content mark[data-oneroom-emphasis="yellow"] {
  padding: 0 3px;
  border-radius: 2px;
}

.entry-content span[data-oneroom-emphasis="red"] {
  font-weight: 700;
}

/* 3.3 構造ブロックの自動整形（functions.phpのthe_contentフィルターと対） */
.sc-tldr {
  margin: 20px 0;
  padding: 16px 18px;
  border: 1px solid var(--sc-line);
  border-left: 4px solid var(--sc-trust);
  background: var(--sc-base);
}
.sc-tldr-label {
  margin: 0 0 8px;
  color: var(--sc-trust);
  font-weight: 700;
}
.sc-tldr p { margin: 4px 0; }

.sc-author {
  margin: 32px 0 16px;
  padding: 18px;
  border: 1px solid var(--sc-line);
  background: var(--sc-paper);
}
.sc-author-label {
  margin: 0 0 8px;
  color: var(--sc-ink);
  font-weight: 700;
}
/* 顔写真・アイコンは置かない（無名運用のため） */

.sc-citation,
.sc-disclaimer {
  margin: 12px 0;
  padding: 14px 16px;
  border: 1px solid #decaa5;
  border-left: 4px solid var(--sc-notice);
  background: var(--sc-notice-bg);
  color: #655947;
  font-size: 14px;
}
.sc-citation-label,
.sc-disclaimer-label {
  margin: 0 0 6px;
  color: #6d4d1b;
  font-weight: 700;
}

/* 3.4 hr */
.entry-content hr {
  margin: 28px 0;
  border: 0;
  border-top: 1px solid var(--sc-line);
}

/* ============================================================
   4章：アイキャッチ非設定前提の設計
   ============================================================ */

/* 4.3 疑似アイキャッチ */
.sc-pseudo-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  /* --sc-cat-image が未指定なら下のbackground-colorが透けるだけで、見た目は従来どおりの単色グラデーション。
     --sc-cat-image を指定すると、同じ色味を半透明ティントとして写真の上に重ねる（0.2節の赤運用とは無関係）。 */
  background:
    linear-gradient(
      155deg,
      color-mix(in srgb, var(--sc-cat-color, var(--sc-trust)) 65%, transparent) 0%,
      color-mix(in srgb, color-mix(in srgb, var(--sc-cat-color, var(--sc-trust)) 78%, black) 78%, transparent) 100%
    ),
    var(--sc-cat-image, none) center / cover no-repeat;
  background-color: var(--sc-cat-color, var(--sc-trust));
}

.sc-pseudo-thumb::after {
  content: attr(data-glyph);
  position: absolute;
  right: -0.1em;
  bottom: -0.28em;
  color: rgba(255, 255, 255, 0.22);
  font-size: 5.5em;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.sc-pseudo-thumb-label {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 3px 9px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--sc-cat-color, var(--sc-trust));
  font-size: 12px;
  font-weight: 700;
}

/* 4.5 単一記事ページの「文字の壁」対策 */
.entry-content {
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}

.toc {
  border: 1px solid var(--sc-line);
  background: var(--sc-base);
}
.toc-title {
  color: var(--sc-trust);
}

.entry-content {
  counter-reset: sc-section;
}
.entry-content h2 {
  counter-increment: sc-section;
  position: relative;
  padding-left: 52px;
}
.entry-content h2::before {
  content: counter(sc-section, decimal-leading-zero);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sc-trust-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
}

.entry-content p {
  margin: 0 0 1.4em;
  line-height: 1.95;
}

/* 4.6 一覧・カードのレイアウト */
.sc-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--sc-line);
  background: var(--sc-paper);
}
.sc-card-title {
  display: -webkit-box;
  overflow: hidden;
  margin: 12px 14px 6px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--sc-ink);
  font-size: 15px;
  line-height: 1.5;
}
.sc-card-excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 14px 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--sc-sub);
  font-size: 13px;
}

/* ============================================================
   7章：CTAボタン（赤・オレンジ・黄は使用不可）
   ============================================================ */
.sc-cta-button {
  display: inline-block;
  padding: 14px 28px;
  border: 0;
  border-radius: var(--sc-radius);
  background: var(--sc-safe);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.sc-cta-button:hover {
  background: var(--sc-safe-2);
}

/* ============================================================
   フロントページ（5章）
   ============================================================ */
.home .content,
.front-page .content,
.page-template-front-page .content,
body:has(.sc-front) .content {
  margin-top: 0;
}

.home .content-in,
.front-page .content-in,
.page-template-front-page .content-in,
body:has(.sc-front) .content-in {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
}

.home .main,
.front-page .main,
.page-template-front-page .main,
body:has(.sc-front) .main {
  float: none;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.home .article,
.front-page .article,
.page-template-front-page .article,
body:has(.sc-front) .article {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.home .entry-content,
.front-page .entry-content,
.page-template-front-page .entry-content,
body:has(.sc-front) .entry-content {
  margin: 0;
  padding: 0;
  max-width: none;
}

.home .sidebar,
.home #sidebar,
.home .sidebar-scroll,
.home .widget-area,
.front-page .sidebar,
.front-page #sidebar,
.front-page .sidebar-scroll,
.front-page .widget-area,
.page-template-front-page .sidebar,
.page-template-front-page #sidebar,
.page-template-front-page .sidebar-scroll,
.page-template-front-page .widget-area,
body:has(.sc-front) .sidebar,
body:has(.sc-front) #sidebar,
body:has(.sc-front) .sidebar-scroll,
body:has(.sc-front) .widget-area {
  display: none !important;
}

.sc-front {
  width: 100vw;
  margin: 0 calc(50% - 50vw);
  color: var(--sc-text);
  background: var(--sc-paper);
}

.sc-front,
.sc-front * {
  box-sizing: border-box;
}

.sc-top-line {
  border-bottom: 1px solid var(--sc-line);
  background: var(--sc-base);
  color: var(--sc-sub);
  font-size: 12px;
}

.sc-inner {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.sc-top-line .sc-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 7px 0;
}

.sc-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--sc-line);
  /* --sc-hero-image が未指定なら従来どおりの紺色グラデーションのみ。
     指定すると同じ紺色を半透明ティントとして写真の上に重ねる（文字の可読性を保つため）。 */
  background:
    linear-gradient(155deg, color-mix(in srgb, var(--sc-trust) 88%, transparent) 0%, color-mix(in srgb, #12303f 88%, transparent) 100%),
    var(--sc-hero-image, none) center 42% / cover no-repeat;
  background-color: var(--sc-trust);
}

.sc-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 36px;
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0;
}

.sc-hero-grid > *,
.sc-content-layout > *,
.sc-article-row > * {
  min-width: 0;
}

.sc-hero-kicker {
  display: inline-block;
  margin-bottom: 14px;
  padding: 3px 10px;
  border-left: 4px solid var(--sc-trust-2);
  background: rgba(255, 255, 255, .14);
  color: #cfe3ee;
  font-size: 13px;
  font-weight: 700;
}

.sc-hero h1 {
  max-width: 720px;
  margin: 0 0 18px;
  color: #fff;
  font-size: 36px;
  line-height: 1.5;
  letter-spacing: 0;
}

.sc-lead {
  max-width: 740px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, .88);
  font-size: 16px;
}

/* CVハブ3本の導線（ヒーロー内） */
.sc-hero-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, .26);
  background: rgba(255, 255, 255, .96);
}

.sc-hero-links a {
  padding: 16px;
  border-right: 1px solid var(--sc-line);
}

.sc-hero-links a:last-child {
  border-right: 0;
}

.sc-hero-links strong {
  display: block;
  color: var(--sc-safe);
  font-size: 14px;
}

.sc-hero-links span {
  display: block;
  margin-top: 4px;
  color: var(--sc-sub);
  font-size: 12px;
}

.sc-summary-box {
  border: 1px solid rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .16);
}

.sc-summary-box h2 {
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--sc-line);
  background: var(--sc-trust);
  color: #fff;
  font-size: 16px;
}

.sc-summary-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sc-summary-list li {
  padding: 13px 16px;
  border-bottom: 1px solid var(--sc-line);
  font-size: 14px;
}

.sc-summary-list li:last-child {
  border-bottom: 0;
}

.sc-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--sc-line);
}

.sc-section-muted {
  background: var(--sc-base);
}

.sc-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.sc-section-title h2 {
  margin: 0;
  color: var(--sc-ink);
  font-size: 24px;
  line-height: 1.4;
}

.sc-section-title p {
  max-width: 500px;
  margin: 0;
  color: var(--sc-sub);
  font-size: 14px;
}

.sc-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.sc-category-card {
  display: flex;
  min-width: 0;
  min-height: 170px;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--sc-line);
  background: var(--sc-paper);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.sc-category-card:hover {
  border-color: #bdd0dc;
  box-shadow: 0 16px 34px rgba(30, 77, 107, .12);
  transform: translateY(-2px);
}

.sc-category-card b {
  display: block;
  margin: 16px 18px 8px;
  color: var(--sc-trust);
  font-size: 18px;
}

.sc-category-card p {
  margin: 0 18px 14px;
  color: var(--sc-sub);
  font-size: 13px;
}

.sc-category-card > span:last-child {
  display: inline-block;
  margin: auto 18px 18px;
  color: var(--sc-trust);
  font-size: 13px;
  font-weight: 700;
}

.sc-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.sc-article-list {
  border: 1px solid var(--sc-line);
  background: var(--sc-paper);
}

.sc-article-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid var(--sc-line);
}

.sc-article-row:last-child {
  border-bottom: 0;
}

.sc-article-meta {
  color: var(--sc-sub);
  font-size: 12px;
  font-weight: 700;
}

.sc-article-cat {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border: 1px solid #c8d6df;
  color: var(--sc-trust);
  font-size: 12px;
}

.sc-article-row h3 {
  margin: 0 0 8px;
  color: var(--sc-ink);
  font-size: 18px;
  line-height: 1.55;
}

.sc-article-row p {
  margin: 0;
  color: var(--sc-sub);
  font-size: 14px;
}

.sc-side-box {
  border: 1px solid var(--sc-line);
  background: var(--sc-paper);
}

.sc-side-box + .sc-side-box {
  margin-top: 16px;
}

.sc-side-box h3 {
  margin: 0;
  padding: 13px 15px;
  border-bottom: 1px solid var(--sc-line);
  background: var(--sc-base);
  color: var(--sc-ink);
  font-size: 15px;
}

.sc-side-box ul {
  margin: 0;
  padding: 8px 15px 12px;
  list-style: none;
}

.sc-side-box li {
  padding: 8px 0;
  border-bottom: 1px solid #edf0f2;
  color: #40505d;
  font-size: 13px;
}

.sc-side-box li:last-child {
  border-bottom: 0;
}

.sc-disclaimer-box {
  padding: 20px;
  border: 1px solid #decaa5;
  border-left: 5px solid var(--sc-notice);
  background: var(--sc-notice-bg);
}

.sc-disclaimer-box h2 {
  margin: 0 0 6px;
  color: #6d4d1b;
  font-size: 18px;
}

.sc-disclaimer-box p {
  margin: 0;
  color: #655947;
  font-size: 13px;
}

/* ============================================================
   5.2 / レスポンシブ（860px・520px）
   ============================================================ */
@media (max-width: 860px) {
  .sc-top-line .sc-inner,
  .sc-section-title {
    display: block;
  }

  .sc-hero-grid,
  .sc-content-layout {
    grid-template-columns: 1fr;
  }

  .sc-hero h1 {
    font-size: 29px;
  }

  .sc-hero-links,
  .sc-category-grid {
    grid-template-columns: 1fr;
  }

  .sc-hero-links a {
    border-right: 0;
    border-bottom: 1px solid var(--sc-line);
  }

  .sc-hero-links a:last-child {
    border-bottom: 0;
  }

  .sc-article-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 520px) {
  .sc-inner,
  .sc-hero-grid {
    width: min(100% - 28px, 1080px);
  }

  .sc-top-line .sc-inner span:last-child {
    display: none;
  }

  .sc-hero h1 {
    font-size: 24px;
    line-height: 1.5;
  }

  .sc-lead {
    font-size: 15px;
  }

  .sc-section {
    padding: 38px 0;
  }

  .entry-content h2 {
    padding: 10px 12px;
    padding-left: 46px;
    font-size: 20px;
  }
}
