/*
Theme Name: なたりーテーマ
Theme URI: https://debt-to-savings.com
Author: なたりー
Description: とあるwomanの仕事とお金の話 カスタムWordPressテーマ
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Private
Text Domain: natalie-theme
*/

/* ================================================================
   CSS変数
================================================================ */
:root {
  --navy:      #1A237E;
  --kakei:     #2E7D32;
  --career:    #1565C0;
  --invest:    #E65100;
  --border:    #EEE;
  --text-main: #222;
  --text-sub:  #555;
  --text-muted:#999;
  --bg-soft:   #FAFAFA;
  --max-w:     1160px;
  --sidebar-w: 280px;
}

/* ================================================================
   リセット・ベース
================================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  background: #fff;
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.82; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.5em; }
h1,h2,h3,h4,h5,h6 { line-height: 1.4; }
input, button { font-family: inherit; }

/* ================================================================
   レイアウト
================================================================ */
.l-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

.l-main-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 28px 64px;
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: 40px;
  align-items: start;
}

/* ================================================================
   ヘッダー
================================================================ */
.site-header {
  background: #fff;
  border-bottom: 1px solid #E5E5E5;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-header__logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.site-header__site-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.site-nav {
  margin-left: auto;
  display: flex;
  gap: 2px;
  align-items: center;
}
.site-nav a {
  padding: 8px 14px;
  font-size: 13px;
  color: #333;
  font-weight: 500;
}
.site-nav a:hover { color: var(--navy); }
.site-nav .nav--kakei   { color: var(--kakei);  font-weight: 600; }
.site-nav .nav--career  { color: var(--career); font-weight: 600; }
.site-nav .nav--invest  { color: var(--invest); font-weight: 600; }

.site-header__search {
  display: flex;
  align-items: center;
  background: #F5F5F7;
  padding: 6px 12px;
  border-radius: 4px;
  gap: 6px;
}
.site-header__search input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 12px;
  width: 120px;
  color: #333;
}

/* ================================================================
   ヒーロー
================================================================ */
.hero {
  background: #fff;
  padding: 64px 28px 56px;
  border-bottom: 1px solid #F0F0F0;
}
.hero__inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.hero__lead {
  font-size: 17px;
  color: var(--text-sub);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin: 0 0 16px;
}
.hero__lead strong { color: var(--navy); font-weight: 700; }

.hero__title {
  font-size: 40px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.4;
  margin: 0;
  letter-spacing: 0.02em;
}
.hero__title .woman-text {
  font-family: 'Shippori Mincho B1', serif;
  font-weight: 600;
  color: var(--navy);
  font-size: 35px;
  padding: 0 2px;
}
.hero__title .accent { color: var(--navy); }

/* マイルストーンタイムライン */
.hero__timeline {
  position: relative;
  display: flex;
  justify-content: space-between;
  max-width: 720px;
  margin: 44px auto 0;
  align-items: flex-start;
}
.hero__timeline-line {
  position: absolute;
  top: 28px;
  left: 28px;
  right: 28px;
  height: 1px;
  background: #D5D5D5;
  z-index: 0;
}
.milestone {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  min-width: 80px;
}
.milestone__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.milestone__icon--hl {
  background: var(--navy);
  color: #fff;
}
.milestone__label {
  margin-top: 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  line-height: 1.5;
  white-space: pre-line;
}

/* ================================================================
   共通セクション見出し
================================================================ */
.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 20px;
  padding-left: 12px;
  border-left: 4px solid var(--navy);
  line-height: 1.4;
}
.section-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-title-row .section-title { margin: 0; }
.section-title-row a {
  font-size: 12px;
  color: var(--navy);
}

/* ================================================================
   カテゴリタグ
================================================================ */
.cat-tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 2px;
  letter-spacing: 0.02em;
  color: #fff;
}
.cat-tag--kakei  { background: var(--kakei);  }
.cat-tag--career { background: var(--career); }
.cat-tag--invest { background: var(--invest); }

/* ================================================================
   記事カードグリッド
================================================================ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.article-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  display: block;
  color: inherit;
  transition: box-shadow 0.15s, transform 0.15s;
}
.article-card:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
  opacity: 1;
}
.article-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #F4F1EB;
}
.article-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-card__body {
  padding: 18px 20px 20px;
}
.article-card__meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.article-card__date {
  font-size: 11px;
  color: var(--text-muted);
}
.article-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.55;
  margin: 0;
}
.article-card__excerpt {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-sub);
  margin: 10px 0 0;
}

/* ================================================================
   カテゴリグリッド
================================================================ */
.category-grid { margin-top: 56px; }
.category-grid__items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.category-grid__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  text-align: center;
  transition: background 0.15s;
}
.category-grid__item:hover { background: var(--bg-soft); opacity: 1; }
.category-grid__item--kakei  { border-top: 4px solid var(--kakei);  }
.category-grid__item--career { border-top: 4px solid var(--career); }
.category-grid__item--invest { border-top: 4px solid var(--invest); }

.category-grid__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.category-grid__icon--kakei  { background: rgba(46,125,50,0.08); }
.category-grid__icon--career { background: rgba(21,101,192,0.08); }
.category-grid__icon--invest { background: rgba(230,81,0,0.08);   }

.category-grid__name {
  font-size: 16px;
  font-weight: 700;
}
.category-grid__name--kakei  { color: var(--kakei);  }
.category-grid__name--career { color: var(--career); }
.category-grid__name--invest { color: var(--invest); }

/* ================================================================
   サイドバー
================================================================ */
.l-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 22px;
}
.sidebar-box__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--navy);
  margin: 0 0 14px;
}

/* プロフィール */
.profile-box { text-align: center; }
.profile-box__avatar {
  width: 84px;
  height: 84px;
  object-fit: contain;
  margin: 0 auto 10px;
}
.profile-box__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 2px;
}
.profile-box__sub {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0 0 14px;
}
.profile-box__bio {
  font-size: 12px;
  line-height: 1.85;
  color: var(--text-sub);
  text-align: left;
  margin: 0 0 12px;
}
.profile-box__btn {
  display: inline-block;
  padding: 6px 16px;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 3px;
}
.profile-box__btn:hover { opacity: 0.85; }

/* 人気記事ランキング */
.popular-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.popular-list__item {
  padding: 10px 0;
  border-top: 1px solid #F0F0F0;
}
.popular-list__link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
}
.popular-list__rank {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.popular-list__rank--kakei   { background: var(--kakei);  }
.popular-list__rank--career  { background: var(--career); }
.popular-list__rank--invest  { background: var(--invest); }
.popular-list__rank--default { background: var(--navy);   }
.popular-list__thumb {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 4px;
  overflow: hidden;
  background: #F4F1EB;
}
.popular-list__thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
}
.popular-list__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.popular-list__title {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-main);
  flex: 1;
}

/* おすすめ記事 */
.recommend-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.recommend-list__item {
  border-top: 1px solid #F0F0F0;
}
.recommend-list__item:first-child { border-top: none; }
.recommend-list__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  color: inherit;
}
.recommend-list__thumb {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  background: #F4F1EB;
}
.recommend-list__thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
}
.recommend-list__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.recommend-list__title {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-main);
  flex: 1;
}

/* カテゴリ一覧 */
.cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cat-list li {
  padding: 7px 0;
  border-bottom: 1px solid #F0F0F0;
}
.cat-list a {
  font-size: 13px;
  color: #333;
  display: flex;
  justify-content: space-between;
}
.cat-list__count {
  font-size: 11px;
  color: var(--text-muted);
}

/* 検索ウィジェット */
.sidebar-search__inner {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #F5F5F7;
  border-radius: 4px;
  padding: 4px 8px 4px 12px;
}
.sidebar-search__input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  color: #333;
  padding: 6px 0;
  font-family: inherit;
}
.sidebar-search__btn {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--navy);
  padding: 4px;
  display: flex;
  align-items: center;
}
.sidebar-search__btn:hover { opacity: 0.7; }

/* SNS */
.sns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.sns-grid__link {
  display: block;
  padding: 10px 8px;
  border: 1px solid #E0E0E0;
  border-radius: 4px;
  font-size: 11px;
  color: #333;
  text-align: center;
  font-weight: 500;
  transition: background 0.15s;
}
.sns-grid__link:hover { background: #F5F5F7; opacity: 1; }

/* ================================================================
   記事ページ — パンくず・ヘッダー
================================================================ */
.entry-breadcrumb {
  background: var(--bg-soft);
  border-bottom: 1px solid #F0F0F0;
}
.entry-breadcrumb__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 10px 28px;
  font-size: 12px;
  color: #666;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}
.entry-breadcrumb__inner a { color: #666; }
.entry-breadcrumb__inner a:hover { color: var(--navy); }
.entry-breadcrumb__sep { margin: 0 6px; color: #BBB; }
.entry-breadcrumb__current {
  color: var(--navy);
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 300px;
}

.entry-hero {
  background: #fff;
  padding: 40px 28px 0;
  border-bottom: 1px solid #F0F0F0;
}
.entry-hero__inner {
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 36px;
}

/* メタ行（カテゴリ・日付） */
.entry-meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 12.5px;
}
.entry-meta-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.entry-meta-date svg { flex-shrink: 0; }

/* タイトル */
.entry-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.5;
  margin: 0 0 16px;
}

/* タグ */
.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.entry-tag {
  display: inline-block;
  padding: 4px 10px;
  background: #F4F5FB;
  color: var(--navy);
  border-radius: 2px;
  font-size: 11.5px;
  font-weight: 600;
}
.entry-tag:hover { background: #E8EAF6; opacity: 1; }

/* 広告開示バー */
.ad-disclosure {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-soft);
  border: 1px solid #E5E5E5;
  border-radius: 4px;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.5;
  margin-bottom: 20px;
}
.ad-disclosure svg { flex-shrink: 0; color: #888; }

/* アイキャッチ */
.entry-eyecatch {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.entry-eyecatch__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================================================================
   記事本文
================================================================ */
.entry-content {
  font-size: 15px;
  line-height: 2.05;
  margin-top: 40px;
}

/* 画像はコンテナ幅に必ず収める */
.entry-content img,
.entry-content figure img,
.entry-content .wp-block-image img {
  max-width: 100%;
  height: auto;
  display: block;
}
.entry-content figure {
  margin: 24px 0;
}
.entry-content figure.aligncenter,
.entry-content .wp-block-image.aligncenter {
  text-align: center;
}
.entry-content figure.aligncenter img,
.entry-content .wp-block-image.aligncenter img {
  margin-left: auto;
  margin-right: auto;
}

/* H2 */
.entry-content h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  background: #F4F5FB;
  border-left: 6px solid var(--navy);
  border-radius: 2px;
  padding: 14px 18px;
  margin: 48px 0 20px;
  line-height: 1.5;
}

/* H3: 細い下線 + ネイビー太線オーバーレイ */
.entry-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  margin: 36px 0 14px;
  padding: 0 0 10px;
  border-bottom: 1px solid #E5E5E5;
  position: relative;
  line-height: 1.5;
}
.entry-content h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 220px;
  height: 3px;
  background: var(--navy);
}

/* H4: 点線 */
.entry-content h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin: 28px 0 10px;
  padding: 0 0 6px;
  border-bottom: 2px dotted var(--navy);
  line-height: 1.5;
}

.entry-content p { margin: 0 0 1.5em; }
.entry-content a { color: var(--navy); text-decoration: underline; }
.entry-content a:hover { opacity: 0.75; }

/* 太字 */
.entry-content strong {
  font-weight: 700;
}

/* 黄色マーカー（Gutenbergのハイライト色指定を強制的に上書き） */
.entry-content mark,
.entry-content mark[style] {
  background-image: linear-gradient(transparent 60%, #FFF3A8 60%) !important;
  background-color: transparent !important;
  color: inherit !important;
  padding: 0 2px;
}

/* ================================================================
   リスト（記事本文）
================================================================ */
/* 通常リスト（・ネイビー） */
.entry-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5em;
}
.entry-content ul li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 2.0;
  margin-bottom: 0;
}
.entry-content ul li::before {
  content: '•';
  position: absolute;
  left: 4px;
  top: 0;
  color: var(--navy);
  font-weight: 700;
}

/* チェックリスト（.wp-block-list.is-check または ul.check） */
.entry-content ul.check li,
.entry-content ul.wp-check li {
  display: flex;
  align-items: center;
  padding-left: 28px;
}
.entry-content ul.check li::before,
.entry-content ul.wp-check li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 50%;
  width: 12px;
  height: 6px;
  border-left: 2.5px solid var(--navy);
  border-bottom: 2.5px solid var(--navy);
  transform: translateY(-70%) rotate(-45deg);
}

.entry-content ol {
  padding-left: 1.6em;
  margin: 0 0 1.5em;
}
.entry-content ol li { line-height: 2.0; margin-bottom: 0.3em; }

/* ================================================================
   コールアウト（情報・注意・ポイント）
================================================================ */
.callout {
  border-radius: 4px;
  padding: 18px 22px 18px 56px;
  position: relative;
  font-size: 14px;
  line-height: 1.95;
  margin: 24px 0;
}
.callout::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 18px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: #fff;
}
.callout-title {
  font-weight: 700;
  font-size: 13px;
  color: var(--navy);
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}

/* INFO */
.callout.info {
  background: #F4F5FB;
  border: 1px solid #D8DCEC;
}
.callout.info::before {
  content: 'i';
  background: var(--navy);
  font-family: 'Shippori Mincho B1', serif;
  font-style: italic;
}

/* WARN — 三角 + !マーク */
.callout.warn {
  background: #FFF8E1;
  border: 1px solid #F1E2A8;
}
.callout.warn::before {
  content: '';
  background: transparent;
  width: 0;
  height: 0;
  border-radius: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 20px solid #B88A00;
  top: 20px;
}
.callout.warn::after {
  content: '!';
  position: absolute;
  left: 18px;
  top: 22px;
  width: 24px;
  text-align: center;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
}
.callout.warn .callout-title { color: #8B6500; }

/* POINT */
.callout.point {
  background: #E8F5E9;
  border: 1px solid #BFD9C2;
}
.callout.point::before {
  content: '✓';
  background: var(--kakei);
  font-size: 12px;
}
.callout.point .callout-title { color: var(--kakei); }

/* ================================================================
   吹き出し
================================================================ */
.speech {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 24px 0;
}
.speech.right { flex-direction: row-reverse; }

.speech .avatar {
  flex-shrink: 0;
  width: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.speech .avatar .av-circle {
  width: 64px;
  height: 64px;
  background: #FAF8F4;
  border-radius: 50%;
  border: 2px solid var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.speech .avatar .av-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.speech .avatar .name {
  font-size: 11px;
  color: var(--navy);
  font-weight: 700;
  text-align: center;
}
.speech.right .avatar .name { color: #8B6500; }

.speech .bubble {
  position: relative;
  flex: 1;
  background: #F4F5FB;
  border: 1px solid #D8DCEC;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.9;
}
/* 左向き尻尾 */
.speech .bubble::before {
  content: '';
  position: absolute;
  top: 22px;
  left: -12px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 12px solid #D8DCEC;
}
.speech .bubble::after {
  content: '';
  position: absolute;
  top: 22px;
  left: -10px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 12px solid #F4F5FB;
}
/* 右向き（他者） */
.speech.right .bubble {
  background: #FFF8E8;
  border-color: #EFE0B8;
}
.speech.right .bubble::before {
  left: auto;
  right: -12px;
  border-right: none;
  border-left: 12px solid #EFE0B8;
}
.speech.right .bubble::after {
  left: auto;
  right: -10px;
  border-right: none;
  border-left: 12px solid #FFF8E8;
}
.speech .bubble p { margin: 0; }

/* ================================================================
   引用（blockquote）
================================================================ */
/* 引用ブロック（blockquote）*/
.entry-content blockquote:not(.wp-block-quote),
.wp-quote {
  padding: 20px 26px 18px;
  background: #F2F2F0;
  border: 1px solid #E0E0DC;
  border-radius: 4px;
  font-size: 14.5px;
  color: #444;
  line-height: 2;
  font-family: 'Shippori Mincho B1', serif;
  position: relative;
  margin: 24px 0;
}
.entry-content blockquote:not(.wp-block-quote)::before,
.wp-quote::before {
  content: '\201C';
  font-size: 34px;
  color: #999;
  line-height: 1;
  position: absolute;
  top: 8px;
  left: 14px;
  font-family: 'Cormorant Garamond', serif;
}
.entry-content blockquote:not(.wp-block-quote) p,
.wp-quote p {
  margin: 0 0 8px;
  padding-left: 22px;
}
.entry-content blockquote:not(.wp-block-quote) cite,
.wp-quote cite {
  display: block;
  margin-top: 10px;
  padding-left: 22px;
  font-style: normal;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
}
.entry-content blockquote:not(.wp-block-quote) cite::before,
.wp-quote cite::before {
  content: '— ';
  color: #AAA;
}

/* Gutenberg引用ブロック（wp-block-quote）はシンプルに */
.entry-content .wp-block-quote {
  border-left: 3px solid var(--navy);
  padding: 4px 0 4px 16px;
  margin: 20px 0;
  background: none;
  border-radius: 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  color: var(--text-sub);
}
.entry-content .wp-block-quote::before { display: none; }
.entry-content .wp-block-quote p { margin: 0; padding-left: 0; }

/* ================================================================
   関連記事ボックス
================================================================ */
.related-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 0.5px solid var(--navy);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 24px 0;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}
.related-box:hover { background: #EEF0F8; }

.related-box__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #f5f0e8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.related-box__icon svg {
  width: 18px;
  height: 18px;
  color: #8a7a4a;
  stroke: #8a7a4a;
}

.related-box__body {
  flex: 1;
  min-width: 0;
}
.related-box__label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #8a7a4a;
  letter-spacing: 0.05em;
  margin: 0 0 4px;
}
.related-box__title {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.5;
  text-decoration: none;
  margin: 0;
}

.related-box__arrow {
  flex-shrink: 0;
  font-size: 16px;
  color: var(--navy);
  font-weight: 400;
  line-height: 1;
}

/* ================================================================
   比較カード（BEFORE / AFTER）
================================================================ */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}
.compare .card {
  border-radius: 4px;
  padding: 20px 22px;
  font-size: 14px;
  line-height: 1.85;
}
.compare .card.bad  { background: #FFF1F0; border: 1px solid #F1C9C5; }
.compare .card.good { background: #E8F5E9; border: 1px solid #BFD9C2; }
.compare .card .h   { font-size: 13px; font-weight: 700; margin-bottom: 8px; letter-spacing: 0.05em; }
.compare .card.bad  .h { color: #C62828; }
.compare .card.good .h { color: var(--kakei); }
.compare .card ul  { margin: 8px 0 0; padding-left: 20px; list-style: disc; }
.compare .card ul li::before { display: none; }

/* ================================================================
   関連記事カード（インライン）
================================================================ */
.checkbox-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--navy);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  margin: 28px 0;
}
.checkbox-card::before {
  content: '関連記事';
  position: absolute;
  top: 0;
  left: 0;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 5px 14px 5px 12px;
  border-bottom-right-radius: 4px;
  z-index: 1;
}
.checkbox-card:hover { opacity: 1; box-shadow: 0 4px 12px rgba(26,35,126,0.1); }
.checkbox-card-inner {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 36px 20px 18px;
}
.checkbox-card .thumb {
  flex-shrink: 0;
  width: 130px;
  aspect-ratio: 4 / 3;
  border-radius: 3px;
  overflow: hidden;
  background: #F4F1EB;
}
.checkbox-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.checkbox-card .body { flex: 1; min-width: 0; }
.checkbox-card .body h4 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.55;
  border-bottom: none;
  padding: 0;
}
.checkbox-card .body p { margin: 0; font-size: 12.5px; line-height: 1.85; color: var(--text-sub); }
.checkbox-card .arrow { align-self: center; flex-shrink: 0; color: var(--navy); }

/* ================================================================
   CTAボタン（シンプル版 v3）
================================================================ */
.cta-v3 {
  text-align: center;
  margin: 32px 0;
}
.cta-v3 .lede {
  font-size: 13.5px;
  color: var(--text-sub);
  line-height: 1.9;
  margin: 0 0 14px;
}
.cta-v3 .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 280px;
  padding: 16px 32px;
  background: var(--navy);
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 3px 0 #14195e;
}
.cta-v3 .btn:hover {
  background: #14195e;
  box-shadow: 0 1px 0 #14195e;
  transform: translateY(2px);
  opacity: 1;
}
.cta-v3 .sub {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.7;
}
.cta-v3.outline .btn {
  background: #fff;
  color: var(--navy);
  border: 2px solid var(--navy);
  box-shadow: none;
}
.cta-v3.outline .btn:hover {
  background: #F4F5FB;
  transform: none;
}
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid var(--navy);
  padding-bottom: 2px;
}
.cta-link:hover { color: #14195e; border-color: #14195e; opacity: 1; }

/* ================================================================
   目次（TOC）
================================================================ */
.wp-block-natalie-toc,
.toc {
  background: var(--bg-soft);
  border: 1px solid #EEEEEE;
  border-radius: 4px;
  padding: 22px 26px;
  margin: 32px 0;
}
.toc-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toc ol {
  padding-left: 22px;
  margin: 0;
  list-style: decimal;
}
.toc ol li::before { display: none; }
.toc ol li { font-size: 13.5px; line-height: 2.2; }
.toc ol li ol { padding-left: 22px; }
.toc ol li ol li { font-size: 13px; color: var(--text-sub); }
.toc a { color: var(--text-main); text-decoration: none; }
.toc a:hover { color: var(--navy); }

/* ================================================================
   テーブル
================================================================ */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin: 24px 0;
}
.entry-content table th,
.entry-content table td {
  border: 1px solid #E5E5E5;
  padding: 10px 14px;
  text-align: left;
  line-height: 1.7;
}
.entry-content table th {
  background: #F4F5FB;
  color: var(--navy);
  font-weight: 700;
}
.entry-content table tr:nth-child(even) td { background: var(--bg-soft); }

/* ================================================================
   同カテゴリ記事（記事末尾）
================================================================ */
.same-cat-section {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid #EEEEEE;
}
.same-cat-section__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 20px;
  padding-left: 12px;
  border-left: 4px solid var(--navy);
  line-height: 1.4;
}
.same-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.same-cat-card {
  display: block;
  background: #fff;
  border: 1px solid #EEEEEE;
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, transform 0.15s;
}
.same-cat-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); transform: translateY(-2px); opacity: 1; }
.same-cat-card__thumb {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  background: #F4F1EB;
}
.same-cat-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.same-cat-card__fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1A237E, #3F51B5);
}
.same-cat-card__fallback--kakei  { background: linear-gradient(135deg, #2E7D32, #66BB6A); }
.same-cat-card__fallback--career { background: linear-gradient(135deg, #1565C0, #5E92F3); }
.same-cat-card__fallback--invest { background: linear-gradient(135deg, #E65100, #FFA040); }
.same-cat-card__fallback span {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Shippori Mincho B1', serif;
}
.same-cat-card__pill {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 9px !important;
  padding: 2px 6px !important;
}
.same-cat-card__body { padding: 10px 12px 14px; }
.same-cat-card__title { font-size: 13px; font-weight: 700; color: #222; line-height: 1.55; margin: 0 0 6px; }
.same-cat-card__date  { font-size: 10px; color: var(--text-muted); margin: 0; }

/* ================================================================
   レスポンシブ（記事ページ追加分）
================================================================ */
@media (max-width: 900px) {
  .entry-hero { padding: 32px 16px 0; }
  .entry-title { font-size: 24px; }
  .same-cat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .entry-hero { padding: 24px 16px 0; }
  .entry-title { font-size: 20px; }
  .entry-content h2 { font-size: 18px; padding: 12px 14px; }
  .entry-content h3 { font-size: 16px; }
  .entry-content h3::after { width: 120px; }
  .compare { grid-template-columns: 1fr; }
  .same-cat-grid { grid-template-columns: 1fr; }
  .checkbox-card-inner { flex-direction: column; }
  .checkbox-card .thumb { width: 100%; aspect-ratio: 16 / 9; }
  .cta-v3 .btn { min-width: 0; width: 100%; padding: 14px 22px; font-size: 14px; }
  .entry-breadcrumb__inner { padding: 8px 16px; }
}

/* ================================================================
   アーカイブ
================================================================ */
.archive-header {
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.archive-header__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

/* ================================================================
   ページネーション
================================================================ */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 40px;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}
.pagination .current {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* ================================================================
   フッター
================================================================ */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid #E5E5E5;
  padding: 32px 28px;
}
.site-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  font-size: 13px;
  color: var(--text-sub);
  font-weight: 500;
}
.footer-nav a:hover { color: var(--navy); opacity: 1; }
.site-footer__copy {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0;
}

/* ================================================================
   固定ページ（page.php）
================================================================ */
.entry-page-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}

/* ================================================================
   お問い合わせページ（page-contact.php）
================================================================ */

/* パンくずリスト */
.contact-breadcrumb {
  background: #FAFAFA;
  border-bottom: 1px solid #F0F0F0;
}
.contact-breadcrumb__inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 12px 28px;
  font-size: 12px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 0;
}
.contact-breadcrumb__inner a { color: #666; }
.contact-breadcrumb__inner a:hover { color: var(--navy); }
.contact-breadcrumb__sep { margin: 0 8px; color: #BBB; }
.contact-breadcrumb__current { color: var(--navy); font-weight: 600; }

/* ページヒーロー */
.contact-hero {
  background: #fff;
  padding: 56px 28px 40px;
  text-align: center;
  border-bottom: 1px solid #F0F0F0;
}
.contact-hero__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.24em;
  margin-bottom: 14px;
}
.contact-hero__line {
  width: 18px;
  height: 1px;
  background: var(--navy);
  display: inline-block;
}
.contact-hero__title {
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

/* メインエリア */
.contact-main {
  background: #FAFAFA;
  padding: 40px 28px 80px;
}
.contact-main__inner {
  max-width: 720px;
  margin: 0 auto;
}

/* フォームカード */
.contact-card {
  background: #fff;
  border: 1px solid #E5E5E5;
  border-radius: 6px;
  padding: 36px 36px 32px;
}

/* CF7フィールド */
.cf7-field {
  margin-bottom: 26px;
}
.cf7-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}
.cf7-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
  letter-spacing: 0.05em;
}
.cf7-badge--req { background: #C62828; color: #fff; }
.cf7-badge--opt { background: #F0F0F0; color: #888; }
.cf7-hint {
  display: block;
  font-size: 11px;
  color: #888;
  margin-top: 6px;
}

/* 入力欄 */
.cf7-field input[type="text"],
.cf7-field input[type="email"],
.cf7-field textarea,
.contact-card .wpcf7-form-control.wpcf7-text,
.contact-card .wpcf7-form-control.wpcf7-email,
.contact-card .wpcf7-form-control.wpcf7-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #DDD;
  border-radius: 4px;
  font-size: 14px;
  font-family: 'Noto Sans JP', sans-serif;
  color: #333;
  background: #fff;
  box-sizing: border-box;
  line-height: 1.7;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.cf7-field input:focus,
.cf7-field textarea:focus,
.contact-card .wpcf7-form-control:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,35,126,0.10);
}
.contact-card .wpcf7-not-valid {
  border-color: #C62828 !important;
  box-shadow: 0 0 0 3px rgba(198,40,40,0.08) !important;
}
.cf7-field textarea,
.contact-card .wpcf7-form-control.wpcf7-textarea {
  resize: vertical;
  min-height: 200px;
}

/* 送信ボタン行 */
.cf7-submit-row {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}
.cf7-submit-row input[type="submit"],
.contact-card .wpcf7-submit {
  padding: 14px 56px;
  min-width: 240px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  transition: background 0.15s;
}
.cf7-submit-row input[type="submit"]:hover,
.contact-card .wpcf7-submit:hover { background: #0F1862; }
.cf7-submit-row input[type="submit"]:disabled { opacity: 0.5; cursor: not-allowed; }

/* CF7 応答メッセージ */
.contact-card .wpcf7-response-output {
  margin: 16px 0 0 !important;
  padding: 12px 16px !important;
  border-radius: 4px !important;
  font-size: 13px !important;
  border: none !important;
}
.contact-card .wpcf7-mail-sent-ok {
  background: #E8F5E9 !important;
  color: #2E7D32 !important;
}
.contact-card .wpcf7-mail-sent-ng,
.contact-card .wpcf7-spam-blocked,
.contact-card .wpcf7-validation-errors {
  background: #FDECEA !important;
  color: #C62828 !important;
}
.contact-card .wpcf7-not-valid-tip {
  font-size: 11px;
  color: #C62828;
  font-weight: 600;
  margin-top: 6px;
  display: block;
}

/* FAQ */
.contact-faq { margin-top: 56px; }
.contact-faq__title {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 20px;
  padding-left: 12px;
  border-left: 4px solid var(--navy);
}
.contact-faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: #fff;
  border: 1px solid #EEE;
  border-radius: 4px;
  padding: 16px 20px;
}
.faq-item__q {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__qlabel {
  font-family: 'Shippori Mincho B1', serif;
  color: var(--navy);
  font-size: 18px;
  font-weight: 600;
  flex-shrink: 0;
}
.faq-item__a {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #EEE;
  font-size: 13px;
  line-height: 2;
  color: #555;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.faq-item__alabel {
  font-family: 'Shippori Mincho B1', serif;
  color: #C0A062;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  flex-shrink: 0;
}

/* レスポンシブ（contact） */
@media (max-width: 640px) {
  .contact-main { padding: 24px 16px 60px; }
  .contact-card { padding: 24px 20px 20px; }
  .contact-hero { padding: 40px 16px 28px; }
  .contact-hero__title { font-size: 24px; }
  .cf7-submit-row input[type="submit"] { min-width: 0; width: 100%; }
}

/* ================================================================
   レスポンシブ
================================================================ */
@media (max-width: 900px) {
  .l-main-grid {
    grid-template-columns: 1fr;
    padding: 24px 16px 48px;
  }
  .l-sidebar { position: static; }
}

@media (max-width: 640px) {
  .hero { padding: 40px 16px 32px; }
  .hero__lead { font-size: 12px; }
  .hero__title { font-size: 20px; letter-spacing: 0; }
  .hero__title .woman-text { font-size: 17px; }
  .hero__timeline { overflow-x: auto; padding-bottom: 8px; }
  .milestone { min-width: 56px; }
  .milestone__icon { width: 44px; height: 44px; }
  .articles-grid { grid-template-columns: 1fr; }
  .category-grid__items { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .category-grid__item { padding: 14px 8px; gap: 8px; }
  .category-grid__icon { width: 40px; height: 40px; }
  .category-grid__icon svg { width: 20px; height: 20px; }
  .category-grid__name { font-size: 12px; }
  .site-header__inner { padding: 12px 16px; }
  .site-header__site-name { font-size: 13px; }
  .site-nav { display: none; }
  .site-header__search { display: none; }
}
