@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/* =============================================
   借金のきもち整理室 - カスタムCSS
   ============================================= */

/* ===== カラー変数 ===== */
:root {
  --lp-green: #2c6e49;
  --lp-green-dark: #1b4332;
  --lp-green-light: #e8f5e9;
  --lp-text: #333333;
  --lp-text-light: #666666;
  --lp-text-muted: #999999;
  --lp-border: #e0e0e0;
  --lp-bg: #fafaf7;
  --lp-white: #ffffff;
  --lp-accent: #f4a261;
  --lp-radius: 8px;
}

/* ===== 全体のベース ===== */
body {
  background-color: var(--lp-bg) !important;
  color: var(--lp-text);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

/* ===== ヘッダー（ロゴ左 + ナビ右の1行レイアウト） ===== */
.tagline {
  display: none !important;
}

.header-container {
  background: var(--lp-white) !important;
  border-bottom: 1px solid var(--lp-border) !important;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container-in {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  max-width: 1256px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
}

#header {
  background: none !important;
  border-bottom: none !important;
  flex-shrink: 0;
  width: auto !important;
}

#header-in {
  padding: 0 !important;
  width: auto !important;
}

.logo-header .site-name-text {
  font-family: "Noto Serif JP", "Yu Mincho", serif !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: var(--lp-green-dark) !important;
  letter-spacing: 0.02em;
}

/* ナビゲーション */
#navi {
  background: none !important;
  border: none !important;
  position: static !important;
  width: auto !important;
  flex-shrink: 1;
}

#navi-in {
  padding: 0 !important;
  width: auto !important;
}

#navi .menu-header {
  justify-content: flex-end !important;
  gap: 24px;
  flex-wrap: nowrap !important;
}

#navi .menu-header .menu-item {
  width: auto !important;
  flex: none !important;
}

#navi .menu-header .menu-item a {
  padding: 8px 0 !important;
  color: var(--lp-text-light) !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

#navi .menu-header .menu-item a:hover,
#navi .menu-header .current-menu-item a {
  color: var(--lp-green) !important;
  border-bottom-color: var(--lp-green) !important;
  opacity: 1 !important;
}

/* ===== 記事ページ全体の余白 ===== */
.single #main {
  padding: 48px 40px !important;
}

.single .entry-title {
  margin: 8px 0 32px !important;
}

.single .entry-content {
  margin-top: 32px !important;
}

/* ===== 記事ページの見出し（投稿のみ、固定ページには適用しない） ===== */
.single .article h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--lp-green-dark);
  margin: 64px 0 28px;
  padding: 16px 24px;
  background: var(--lp-green-light) !important;
  border-left: 4px solid var(--lp-green) !important;
  border-radius: 0 var(--lp-radius) var(--lp-radius) 0;
  line-height: 1.5;
  border-bottom: none !important;
  border-top: none !important;
  border-right: none !important;
}

.single .article h2::before {
  content: none !important;
  display: none !important;
}

.single .article h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--lp-text);
  margin: 48px 0 20px;
  padding: 0 0 0 16px !important;
  background: none !important;
  border-left: 3px solid var(--lp-accent) !important;
  border-bottom: none !important;
}

.single .article h3::before {
  content: none !important;
  display: none !important;
}

/* ===== 記事本文 ===== */
.article p {
  margin-bottom: 28px;
  font-size: 0.95rem;
  line-height: 2.1;
}

/* ===== リード文 ===== */
.article .lead {
  font-weight: 600;
  color: var(--lp-green-dark);
  background: var(--lp-bg);
  padding: 12px 16px;
  border-radius: var(--lp-radius);
  margin-bottom: 24px;
  font-size: 0.93rem;
  line-height: 1.8;
}

/* ===== 要約ボックス ===== */
.article .summary-box {
  background: var(--lp-green-light);
  border-left: 4px solid var(--lp-green);
  border-radius: 0 var(--lp-radius) var(--lp-radius) 0;
  padding: 24px 28px;
  margin-bottom: 40px;
}

.article .summary-box-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--lp-green);
  margin-bottom: 12px;
}

.article .summary-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article .summary-box li {
  padding: 4px 0 4px 20px;
  position: relative;
  font-size: 0.9rem;
  line-height: 1.7;
}

.article .summary-box li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--lp-green);
  font-weight: 700;
}

/* ===== 体験加筆プレースホルダー ===== */
.article .experience-placeholder {
  background: #fff8e1;
  border: 1px dashed #ffcc02;
  border-radius: var(--lp-radius);
  padding: 20px 24px;
  margin: 20px 0 28px;
  font-size: 0.88rem;
  color: #7a6c00;
  line-height: 1.8;
}

.article .experience-placeholder strong {
  display: block;
  margin-bottom: 8px;
  color: #5a4e00;
}

/* ===== テーブル ===== */
.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0 36px;
  font-size: 0.88rem;
}

.article th,
.article td {
  border: 1px solid var(--lp-border);
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
}

.article th {
  background: var(--lp-green-light);
  font-weight: 600;
  color: var(--lp-green-dark);
}

.article td {
  background: var(--lp-white);
}

/* ===== リスト ===== */
.article ul, .article ol {
  margin: 0 0 32px 0;
  padding-left: 24px;
}

.article li {
  margin-bottom: 10px;
  font-size: 0.93rem;
  line-height: 1.9;
}

/* ===== ブロック引用 ===== */
.article blockquote {
  background: var(--lp-green-light);
  border-left: 4px solid var(--lp-green);
  padding: 28px 32px;
  margin: 40px 0;
  border-radius: 0 var(--lp-radius) var(--lp-radius) 0;
  font-size: 0.93rem;
  color: var(--lp-text);
  line-height: 2.0;
}

/* ===== 固定ページのスタイル ===== */
.page .entry-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--lp-text);
  border: none !important;
  background: none !important;
  padding: 0 !important;
}

.page .entry-title::before {
  content: none !important;
}

/* ===== 目次 ===== */
.toc {
  background: var(--lp-white) !important;
  border: 1px solid var(--lp-border) !important;
  border-radius: var(--lp-radius) !important;
  padding: 20px 24px !important;
}

/* ===== サイドバー ===== */
.sidebar h3 {
  color: var(--lp-green-dark) !important;
  border-bottom: 2px solid var(--lp-green) !important;
  border-left: none !important;
  background: none !important;
  padding: 0 0 8px 0 !important;
  font-size: 0.95rem !important;
}

.sidebar h3::before {
  content: none !important;
}

/* ===== SNSシェア ===== */
.sns-share-message {
  color: var(--lp-text-muted) !important;
  font-size: 0.8rem !important;
}

/* 固定ページ: 上部SNSシェアボタン非表示 */
.page .ss-top {
  display: none !important;
}

/* ===== フッター ===== */
.footer {
  border-top: 1px solid var(--lp-border);
}

/* ===== リンク ===== */
a {
  color: var(--lp-green);
  transition: opacity 0.2s;
}
a:hover {
  opacity: 0.75;
}

/* ===== カード風ボックス（Cocoonボックス上書き） ===== */
.blank-box {
  border-radius: var(--lp-radius) !important;
}

/* ===== パンくずリスト ===== */
.breadcrumb {
  font-size: 0.8rem;
  color: var(--lp-text-muted);
}

/* ===== 固定ページ共通 ===== */
.page .entry-content {
  max-width: 700px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.9;
}

.page .entry-content p {
  margin-bottom: 20px;
}

.page .entry-content h2 {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: var(--lp-text) !important;
  margin: 32px 0 12px !important;
  padding: 0 0 8px 0 !important;
  border-bottom: 1px solid var(--lp-border) !important;
  border-left: none !important;
  background: none !important;
}

.page .entry-content h2::before {
  content: none !important;
  display: none !important;
}

.page .entry-content blockquote {
  background: var(--lp-green-light);
  border-left: 4px solid var(--lp-green);
  padding: 20px 24px;
  margin: 24px 0;
  border-radius: 0 var(--lp-radius) var(--lp-radius) 0;
  font-size: 0.93rem;
  color: var(--lp-text);
  line-height: 1.8;
}

.page .entry-content blockquote::before,
.page .entry-content blockquote::after {
  content: none !important;
  display: none !important;
}

/* 固定ページ: CTAブロック */
.page .cta-block {
  background: var(--lp-green-light);
  border-radius: var(--lp-radius);
  padding: 24px 28px;
  margin-top: 40px;
}

.page .cta-block h3 {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--lp-green-dark) !important;
  margin: 0 0 8px 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
}

.page .cta-block h3::before {
  content: none !important;
  display: none !important;
}

.page .cta-block p {
  font-size: 0.9rem;
  color: var(--lp-text-light);
  margin-bottom: 12px;
}

.page .cta-block a {
  font-weight: 600;
  color: var(--lp-green);
}

/* 固定ページ: 制定日 */
.page .entry-content .date-note {
  color: var(--lp-text-muted);
  font-size: 0.85rem;
  margin-top: 40px;
}

/* 固定ページ: お問い合わせフォーム */
.page .contact-note {
  background: var(--lp-green-light);
  border: 1px solid var(--lp-green);
  border-radius: var(--lp-radius);
  padding: 16px 20px;
  margin-bottom: 32px;
  font-size: 0.87rem;
  line-height: 1.8;
  color: var(--lp-green-dark);
}

.page .contact-form .form-group {
  margin-bottom: 20px;
}

.page .contact-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--lp-text);
}

.page .contact-form input,
.page .contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  font-size: 0.93rem;
  line-height: 1.6;
  background: var(--lp-white);
  transition: border-color 0.2s;
}

.page .contact-form input:focus,
.page .contact-form textarea:focus {
  outline: none;
  border-color: var(--lp-green);
}

.page .contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.page .contact-form .form-submit {
  background: var(--lp-green);
  color: #fff;
  border: none;
  padding: 12px 40px;
  border-radius: var(--lp-radius);
  font-size: 0.93rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.page .contact-form .form-submit:hover {
  background: var(--lp-green-dark);
}

.page .contact-form .form-note {
  font-size: 0.82rem;
  color: var(--lp-text-muted);
  margin-top: 16px;
}

/* ===== レスポンシブ ===== */
@media (max-width: 834px) {
  /* Cocoonモバイルメニューバーを非表示（カスタムヘッダーと重複するため） */
  .mobile-header-menu-buttons {
    display: none !important;
  }

  /* ヘッダー：縦積みレイアウト */
  .header-container-in {
    flex-direction: column !important;
    align-items: center !important;
    padding: 8px 16px !important;
    gap: 2px;
  }

  #header {
    width: 100% !important;
    text-align: center;
  }

  /* ロゴの余白を縮小 */
  .logo-header {
    padding: 8px 0 4px !important;
  }

  .logo-header .site-name-text {
    font-size: 1rem !important;
  }

  #navi {
    width: 100% !important;
  }

  #navi .menu-header,
  #navi .menu-mobile {
    justify-content: center !important;
    gap: 16px;
    flex-wrap: wrap !important;
  }

  #navi .menu-header .menu-item a,
  #navi .menu-mobile .menu-item a {
    font-size: 0.8rem !important;
    padding: 4px 0 !important;
  }

  /* 記事ページの余白を縮小 */
  .single #main {
    padding: 24px 16px !important;
  }

  .single .entry-title {
    margin: 4px 0 20px !important;
    font-size: 1.15rem !important;
  }

  .single .entry-content {
    margin-top: 20px !important;
  }

  .single .article h2 {
    font-size: 1.1rem;
    padding: 12px 16px;
    margin: 44px 0 20px;
  }

  .single .article h3 {
    margin: 32px 0 14px;
  }

  .article p {
    margin-bottom: 22px;
    line-height: 2.0;
  }

  .article table {
    font-size: 0.8rem;
    margin: 20px 0 24px;
  }

  .article th, .article td {
    padding: 8px 10px;
  }

  .article ul, .article ol {
    margin: 0 0 24px 0;
    padding-left: 20px;
  }

  .article blockquote {
    padding: 20px;
    margin: 28px 0;
  }

  /* 固定ページの余白 */
  .page .entry-content {
    padding: 0 4px;
  }
}
