/*
Template: jin
Theme Name: jin-child
Author: CrossPiece
Version: 1.00
*/

/* ============================================
   JIN子テーマ カスタムCSS
   ブログ「実践する資産形成」
   目的：モダン化 / モバイル最適化 / 回遊性向上
   ============================================ */


/* --------------------------------------------------
   1. カラー変数 & ベーススタイル
   （ネイビー・白・グレーの知的・誠実な配色）
-------------------------------------------------- */
:root {
  --color-navy:        #1c3557;
  --color-navy-light:  #2a4a7f;
  --color-accent:      #3d7ecf;
  --color-accent-hover:#2a62aa;
  --color-white:       #ffffff;
  --color-bg:          #f7f8fa;
  --color-bg-section:  #eef1f5;
  --color-border:      #dce1e9;
  --color-text:        #2d3748;
  --color-text-sub:    #5a6478;
  --color-text-light:  #8a94a6;
  --radius:            6px;
  --shadow-sm:         0 2px 8px rgba(28,53,87,0.08);
  --shadow-md:         0 4px 16px rgba(28,53,87,0.13);
  --transition:        0.22s ease;
}

/* ページ背景 */
body {
  background-color: var(--color-bg);
  color: var(--color-text);
}


/* --------------------------------------------------
   2. タイポグラフィ（黄金比ベース・日本語最適化）
   Base: 16px / 黄金比 φ = 1.618
-------------------------------------------------- */
body,
.entry-content {
  font-size: 16px;
  line-height: 1.85;        /* 日本語の長文に最適な行間 */
  letter-spacing: 0.02em;
}

/* 見出し（黄金比スケール） */
.entry-content h1 { font-size: 2.058em; }   /* 32.9px */
.entry-content h2 { font-size: 1.618em; }   /* 25.9px */
.entry-content h3 { font-size: 1.272em; }   /* 20.4px */
.entry-content h4 { font-size: 1.1em; }

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--color-navy);
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* 段落間余白（黄金比 × base） */
.entry-content p {
  margin-bottom: 1.618em;
}

/* リード文の視認性 */
.entry-content > p:first-of-type {
  font-size: 1.05em;
  color: var(--color-text-sub);
}


/* --------------------------------------------------
   3. ヘッダー・ナビゲーション
-------------------------------------------------- */
#header {
  background-color: var(--color-navy) !important;
  box-shadow: 0 2px 12px rgba(28,53,87,0.18);
}

/* ロゴ文字色 */
#header .logo a,
#header .site-name-text {
  color: var(--color-white) !important;
}

/* グローバルナビ */
#nav li a {
  color: rgba(255,255,255,0.88);
  font-size: 0.92em;
  letter-spacing: 0.05em;
  transition: color var(--transition);
}
#nav li a:hover {
  color: var(--color-white);
  opacity: 1;
}

/* ドロップダウン */
#nav ul {
  background-color: var(--color-navy-light);
  border-radius: var(--radius);
}


/* --------------------------------------------------
   4. 記事カード（一覧・関連記事）
-------------------------------------------------- */
.entry-card-wrap,
.related-entry-card-wrap {
  border-radius: var(--radius) !important;
  border: 1px solid var(--color-border) !important;
  box-shadow: var(--shadow-sm) !important;
  transition: transform var(--transition), box-shadow var(--transition) !important;
  overflow: hidden;
}

.entry-card-wrap:hover,
.related-entry-card-wrap:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md) !important;
}

/* 記事タイトル色 */
.entry-card-title,
.related-entry-card-title {
  color: var(--color-navy) !important;
  font-weight: 700;
  line-height: 1.5;
}


/* --------------------------------------------------
   5. パンくずリスト
-------------------------------------------------- */
.breadcrumb {
  font-size: 0.82em;
  color: var(--color-text-light);
  padding: 0.6em 0;
}

.breadcrumb a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}


/* --------------------------------------------------
   6. プロフィールカード
-------------------------------------------------- */
.author-card-wrap,
.profile-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.author-card-wrap:hover,
.profile-card:hover {
  box-shadow: var(--shadow-md);
}

.author-card-name {
  color: var(--color-navy);
  font-weight: 700;
}


/* --------------------------------------------------
   7. JIN標準ボタン・CTAボタン
-------------------------------------------------- */
/* JIN既存ボタンの上書き */
.btn-wrap a,
.jin-btn {
  border-radius: var(--radius) !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition) !important;
}

.btn-wrap a:hover,
.jin-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md) !important;
}

/* 「次のアクション」促進ボタン */
.next-action-box {
  margin: 2.4em 0;
  padding: 1.8em 2em;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.next-action-box p {
  color: rgba(255,255,255,0.85);
  font-size: 0.95em;
  margin-bottom: 1em;
}

.next-action-box a {
  display: inline-block;
  padding: 0.8em 2.2em;
  background: var(--color-white);
  color: var(--color-navy) !important;
  font-weight: 700;
  font-size: 1em;
  border-radius: 50px;
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.next-action-box a:hover {
  background: var(--color-accent);
  color: var(--color-white) !important;
  transform: translateY(-2px);
}


/* --------------------------------------------------
   8. サイドバー
-------------------------------------------------- */
.widget {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.618em;
}

.widget-title {
  color: var(--color-navy);
  font-weight: 700;
  border-left: 4px solid var(--color-accent);
  padding-left: 0.7em;
}


/* --------------------------------------------------
   9. フッター
-------------------------------------------------- */
#footer {
  background-color: var(--color-navy) !important;
  color: rgba(255,255,255,0.75) !important;
}

#footer a {
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
}

#footer a:hover {
  color: var(--color-white);
}


/* --------------------------------------------------
   10. モバイル最適化（〜767px）
-------------------------------------------------- */
@media screen and (max-width: 767px) {

  /* 本文フォント・余白 */
  body,
  .entry-content {
    font-size: 15px;
    line-height: 1.8;
  }

  .entry-content h2 { font-size: 1.35em; }
  .entry-content h3 { font-size: 1.15em; }

  /* コンテンツ横余白を確保 */
  .entry-content {
    padding: 0 4px;
  }

  /* 記事カードのサムネイル比率調整 */
  .entry-card-wrap,
  .related-entry-card-wrap {
    margin-bottom: 1em !important;
  }

  /* ナビメニュー タップ領域拡大 */
  #nav li a {
    padding: 14px 12px !important;
    font-size: 0.95em;
  }

  /* ハンバーガーメニューボタン 拡大 */
  #menu-btn {
    width: 48px !important;
    height: 48px !important;
  }

  /* ボタン スマホでフル幅 */
  .btn-wrap a {
    display: block !important;
    width: 100% !important;
    padding: 1em !important;
    box-sizing: border-box;
    text-align: center;
  }

  /* 次のアクションボックス */
  .next-action-box {
    padding: 1.4em 1.2em;
  }

  .next-action-box a {
    display: block;
    padding: 0.9em 1em;
  }

  /* プロフィールカード */
  .author-card-wrap {
    padding: 1em !important;
  }
}


/* --------------------------------------------------
   11. タブレット最適化（768px〜1024px）
-------------------------------------------------- */
@media screen and (min-width: 768px) and (max-width: 1024px) {

  body,
  .entry-content {
    font-size: 15.5px;
  }

  #nav li a {
    padding: 12px 10px !important;
  }
}
