/* ============================================
   希望の種プロジェクト - ブログ共通CSS
   ============================================ */

:root {
  --pink-primary: #e91e63;
  --pink-dark: #ad1457;
  --pink-light: #fce4ec;
  --pink-bg: #ffeef8;
  --text-dark: #2d2d2d;
  --text-mid: #4a4a4a;
  --text-light: #777;
  --border-light: #f0d0e0;
  --shadow-sm: 0 2px 8px rgba(233,30,99,0.08);
  --shadow-md: 0 5px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 35px rgba(0,0,0,0.12);
  --radius: 14px;
  --font-body: 'Hiragino Sans', 'ヒラギノ角ゴシック', 'Yu Gothic', '游ゴシック', 'Meiryo', 'メイリオ', sans-serif;
}

/* ── BODY & BASE ── */
body {
  font-family: var(--font-body);
  background: linear-gradient(160deg, #fff5fb 0%, #fce4ec 100%);
  color: var(--text-mid);
  line-height: 1.8;
}

/* ── NAVBAR ── */
.navbar {
  background: linear-gradient(135deg, var(--pink-primary) 0%, var(--pink-dark) 100%) !important;
  box-shadow: 0 2px 12px rgba(233,30,99,0.25);
  padding: 10px 0;
}

.navbar-brand {
  font-weight: 700;
  color: #fff !important;
  letter-spacing: 0.5px;
}

.nav-link {
  color: rgba(255,255,255,0.9) !important;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: #fff !important;
}

/* ── READING PROGRESS BAR ── */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--pink-primary), #ff6090);
  z-index: 9999;
  transition: width 0.1s ease;
}

/* ── BLOG INDEX PAGE ── */

/* Hero */
.blog-hero {
  background: linear-gradient(135deg, #fce4ec 0%, #fde7f3 50%, #f8bbd9 100%);
  padding: 55px 0 45px;
  margin-bottom: 40px;
  border-radius: 0 0 30px 30px;
  text-align: center;
}

.blog-hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: #3d2b35;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.blog-hero h1::after {
  display: none;
}

.blog-hero p {
  color: #7a5a68;
  font-size: 1.05rem;
  margin: 0;
}

/* Search Box */
.blog-search {
  max-width: 480px;
  margin: 22px auto 0;
  position: relative;
}

.blog-search input {
  width: 100%;
  padding: 13px 50px 13px 20px;
  border: 2px solid var(--border-light);
  border-radius: 30px;
  font-size: 0.95rem;
  background: white;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.blog-search input:focus {
  border-color: var(--pink-primary);
  box-shadow: 0 0 0 3px rgba(233,30,99,0.12);
}

.blog-search button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--pink-primary);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Category Filter */
.category-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 35px;
}

.filter-btn {
  padding: 8px 20px;
  border: 2px solid var(--border-light);
  border-radius: 25px;
  background: white;
  color: var(--text-mid);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}

.filter-btn:hover {
  border-color: var(--pink-primary);
  color: var(--pink-primary);
}

.filter-btn.active {
  background: var(--pink-primary);
  border-color: var(--pink-primary);
  color: white;
}

/* Article Cards Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 50px;
}

@media (max-width: 991px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
  .articles-grid { grid-template-columns: 1fr; }
}

/* Article Card */
.article-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.article-card.coming-soon {
  opacity: 0.72;
  pointer-events: none;
}

.card-thumb {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
}

.card-thumb .coming-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.5);
  color: white;
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 600;
}

.card-body-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.card-title-text {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: 10px;
  flex: 1;
}

.card-excerpt {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #aaa;
  margin-bottom: 14px;
}

.card-read-btn {
  display: inline-block;
  padding: 9px 18px;
  background: linear-gradient(135deg, var(--pink-primary), var(--pink-dark));
  color: white;
  border-radius: 20px;
  font-size: 0.83rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s;
  border: none;
}

.card-read-btn:hover {
  opacity: 0.88;
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
}

/* Featured Card */
.featured-article {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  margin-bottom: 40px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.featured-article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.featured-thumb {
  width: 380px;
  min-height: 240px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

.featured-content {
  padding: 30px 35px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ff6090, var(--pink-primary));
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 12px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.featured-content h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: 12px;
  background: none;
  padding: 0;
}

.featured-content h2::after {
  display: none;
}

.featured-content p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 18px;
  line-height: 1.7;
}

@media (max-width: 767px) {
  .featured-article { flex-direction: column; }
  .featured-thumb { width: 100%; min-height: 180px; }
  .featured-content { padding: 22px; }
}

/* ── ARTICLE PAGE STYLES ── */

/* Breadcrumb */
.breadcrumb-nav {
  padding: 14px 0;
  margin-bottom: 0;
  font-size: 0.82rem;
  color: var(--text-light);
}

.breadcrumb-nav a {
  color: var(--pink-primary);
  text-decoration: none;
}

.breadcrumb-nav a:hover { text-decoration: underline; }

.breadcrumb-nav span { margin: 0 6px; }

/* Article Header */
.article-header {
  background: linear-gradient(135deg, #fce4ec 0%, #fef0f6 100%);
  padding: 45px 0 35px;
  margin-bottom: 40px;
  border-radius: 0 0 24px 24px;
}

.article-header .category-tag {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  color: white;
}

.article-header h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #2d1c25;
  line-height: 1.45;
  margin-bottom: 18px;
}

.article-header h1::after {
  display: none;
}

.article-meta-row {
  display: flex;
  gap: 20px;
  font-size: 0.82rem;
  color: #9a7a88;
  align-items: center;
  flex-wrap: wrap;
}

.article-meta-row span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Layout */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 35px;
  align-items: start;
}

@media (max-width: 991px) {
  .article-layout { grid-template-columns: 1fr; }
  /* サイドバーはコンテンツの下に表示 */
  .sidebar, .article-layout > aside { order: 2; }
  .article-layout > main { order: 1; }
}

/* TOC */
.toc-box {
  background: linear-gradient(135deg, #fef5f9 0%, #fce4ec 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 36px;
}

.toc-box h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--pink-primary);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc-counter;
}

.toc-list li {
  counter-increment: toc-counter;
  margin-bottom: 7px;
}

.toc-list a {
  color: var(--text-mid);
  font-size: 0.87rem;
  text-decoration: none;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
  transition: color 0.2s;
}

.toc-list a::before {
  content: counter(toc-counter);
  background: var(--pink-primary);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.toc-list a:hover { color: var(--pink-primary); }

/* Article Body Typography */
.article-body {
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.95;
}

.article-body h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #2d1c25;
  margin: 48px 0 18px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #fce4ec, #fef5f9);
  border-left: 5px solid var(--pink-primary);
  border-radius: 0 10px 10px 0;
}

.article-body h2::after { display: none; }

.article-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--pink-dark);
  margin: 32px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-light);
}

.article-body p {
  margin-bottom: 1.4em;
}

.article-body ul, .article-body ol {
  padding-left: 1.6em;
  margin-bottom: 1.4em;
}

.article-body li {
  margin-bottom: 0.5em;
}

/* Info Boxes */
.info-box {
  border-radius: 12px;
  padding: 20px 24px;
  margin: 28px 0;
  position: relative;
}

.info-box.tip {
  background: linear-gradient(135deg, #e3f2fd, #e8f4fd);
  border-left: 4px solid #1976d2;
}

.info-box.warning {
  background: linear-gradient(135deg, #fff8e1, #fff3cd);
  border-left: 4px solid #f57c00;
}

.info-box.important {
  background: linear-gradient(135deg, #fce4ec, #fef0f6);
  border-left: 4px solid var(--pink-primary);
}

.info-box.success {
  background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
  border-left: 4px solid #388e3c;
}

.info-box-label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.info-box.tip .info-box-label { color: #1565c0; }
.info-box.warning .info-box-label { color: #e65100; }
.info-box.important .info-box-label { color: var(--pink-primary); }
.info-box.success .info-box-label { color: #2e7d32; }

.info-box p:last-child { margin-bottom: 0; }

/* Stats Highlight */
.stat-highlight {
  background: white;
  border: 2px solid var(--border-light);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin: 20px 0;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--pink-primary);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}

@media (max-width: 575px) {
  .stats-row { grid-template-columns: 1fr; }
}

/* Quote Block */
.article-quote {
  border-left: 5px solid var(--pink-primary);
  padding: 18px 22px;
  margin: 28px 0;
  background: white;
  border-radius: 0 12px 12px 0;
  box-shadow: var(--shadow-sm);
  font-style: italic;
  font-size: 1.05rem;
  color: #4a3045;
  line-height: 1.8;
}

/* Table Styles */
.article-body table {
  display: block;          /* ブロック化してoverflow-xを有効化 */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9rem;
}

.article-body th {
  background: linear-gradient(135deg, var(--pink-primary), var(--pink-dark));
  color: white;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

.article-body td {
  padding: 11px 16px;
  border-bottom: 1px solid #f0e0e8;
  vertical-align: top;
}

.article-body tr:nth-child(even) td { background: #fef5f9; }
.article-body tr:last-child td { border-bottom: none; }

@media (max-width: 767px) {
  .article-body table { font-size: 0.82rem; }
  .article-body th, .article-body td { padding: 9px 11px; }
}

/* Check List */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4em;
}

.check-list li {
  padding: 8px 0 8px 32px;
  position: relative;
  border-bottom: 1px solid #f5e8ef;
  font-size: 0.95rem;
}

.check-list li:last-child { border-bottom: none; }

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 6px;
  top: 8px;
  color: var(--pink-primary);
  font-weight: 700;
  font-size: 1rem;
}

/* Step Box */
.step-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 18px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.step-number {
  min-width: 40px;
  padding: 6px 12px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--pink-primary), var(--pink-dark));
  color: white;
  font-weight: 800;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-align: center;
  line-height: 1.3;
  white-space: nowrap;
}

.step-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

/* Comparison Table（tableタグに付ける場合） */
table.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.compare-table th {
  padding: 14px 16px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.compare-table td {
  padding: 12px 16px;
  text-align: center;
  font-size: 0.88rem;
  border-bottom: 1px solid #f0e0e8;
}

.compare-table .row-header {
  text-align: left;
  font-weight: 600;
  background: #fef5f9;
  color: var(--text-dark);
}

/* セルのカラーユーティリティ（複数のパターンに対応） */
.compare-table .good,
.compare-table.good,
.article-body td.good,
.article-body td.cell-good { color: #2e7d32; font-weight: 600; }

.compare-table .bad,
.compare-table.bad,
.article-body td.bad,
.article-body td.cell-bad  { color: #c62828; font-weight: 600; }

.compare-table .neutral,
.compare-table.neutral,
.article-body td.neutral,
.article-body td.cell-neutral { color: #f57c00; font-weight: 600; }

/* FAQ */
.faq-item {
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid #f0e0e8;
}

.faq-question {
  padding: 18px 20px;
  background: white;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  /* justify-content は使わない。arrow/toggleのmargin-left:autoで右寄せ */
  transition: background 0.2s;
}

.faq-question:hover { background: #fef5f9; }

/* Q アイコン（固定サイズ、伸縮しない） */
.faq-q-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-primary), var(--pink-dark));
  color: white;
  font-size: 0.82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* 質問テキストを包む <span>（faq-q-icon/faq-arrow/faq-toggle 以外のspan） */
.faq-question > span:not(.faq-q-icon):not(.faq-arrow):not(.faq-toggle) {
  flex: 1;
  line-height: 1.55;
  min-width: 0; /* テキストが長くても折り返す */
}

/* +/- トグルアイコン */
.faq-toggle {
  margin-left: auto;
  color: var(--pink-primary);
  font-weight: 700;
  font-size: 1.3rem;
  flex-shrink: 0;
  line-height: 1;
}

/* ▼ 矢印アイコン */
.faq-arrow {
  margin-left: auto;
  color: var(--pink-primary);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-question.open .faq-arrow { transform: rotate(180deg); }

.faq-answer {
  padding: 0 20px;
  background: #fef9fb;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-answer.open {
  max-height: 500px;
  padding: 18px 20px;
}

.faq-answer p { margin: 0; font-size: 0.93rem; color: var(--text-mid); }

/* Related Articles */
.related-section,
.related-articles {
  margin-top: 55px;
  padding-top: 35px;
  border-top: 2px solid var(--border-light);
}

.related-section h3,
.related-articles h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 767px) {
  .related-grid { grid-template-columns: 1fr; }
}

.related-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  display: flex;
  align-items: stretch;
  transition: transform 0.2s, box-shadow 0.2s;
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.related-thumb {
  width: 70px;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

/* thumb-cat-X を .related-card 内で使用したとき */
.related-card > [class*="thumb-cat"] {
  width: 70px;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: rgba(0,0,0,0.35);
  flex-shrink: 0;
}

.related-info {
  padding: 12px 14px;
}

.related-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.related-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.5;
}

/* CTA Section */
.article-cta {
  background: linear-gradient(135deg, var(--pink-primary) 0%, var(--pink-dark) 100%);
  border-radius: var(--radius);
  padding: 40px 35px;
  text-align: center;
  color: white;
  margin-top: 50px;
}

.article-cta h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.article-cta p {
  opacity: 0.9;
  margin-bottom: 22px;
  font-size: 0.95rem;
}

/* 記事CTA・サイドバーCTAボタン（複数の命名をサポート） */
.cta-btn-white,
.btn-cta-white {
  display: inline-block;
  padding: 13px 32px;
  background: white;
  color: var(--pink-primary);
  border-radius: 30px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  margin: 5px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-btn-white:hover,
.btn-cta-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  color: var(--pink-primary);
  text-decoration: none;
}

.cta-btn-outline {
  display: inline-block;
  padding: 13px 32px;
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  margin: 5px;
  transition: all 0.2s;
}

.cta-btn-outline:hover {
  background: rgba(255,255,255,0.15);
  color: white;
  text-decoration: none;
}

/* サイドバーのピンクボタン */
.btn-cta-pink {
  display: inline-block;
  padding: 10px 22px;
  background: white;
  color: var(--pink-primary);
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-cta-pink:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  color: var(--pink-primary);
  text-decoration: none;
}

/* ── SIDEBAR ── */
.sidebar,
.article-layout > aside {
  position: sticky;
  top: 20px;
}

@media (max-width: 991px) {
  .sidebar,
  .article-layout > aside {
    position: static; /* モバイルではstickyを解除 */
  }
}

.sidebar-widget {
  background: white;
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.sidebar-widget h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-light);
}

.sidebar-article-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f5eef2;
  text-decoration: none;
  transition: opacity 0.2s;
}

.sidebar-article-item:last-child { border-bottom: none; }
.sidebar-article-item:hover { opacity: 0.8; text-decoration: none; }

.sidebar-article-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.sidebar-article-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.5;
}

.sidebar-cta {
  background: linear-gradient(135deg, var(--pink-primary), var(--pink-dark));
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 22px;
  text-align: center;
  color: white;
}

.sidebar-cta h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.sidebar-cta p {
  font-size: 0.83rem;
  opacity: 0.9;
  margin-bottom: 14px;
}

.sidebar-cta a {
  display: inline-block;
  padding: 10px 22px;
  background: white;
  color: var(--pink-primary);
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: transform 0.2s;
}

.sidebar-cta a:hover { transform: translateY(-2px); text-decoration: none; }

.category-chip {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 14px;
  font-size: 0.78rem;
  font-weight: 600;
  margin: 3px;
  text-decoration: none;
  transition: opacity 0.2s;
  color: white;
}

.category-chip:hover { opacity: 0.85; text-decoration: none; color: white; }

/* ── FOOTER ── */
.site-footer {
  background: linear-gradient(135deg, #ad1457, #880e4f);
  color: white;
  padding: 45px 0 25px;
  margin-top: 70px;
}

.site-footer h5 { font-weight: 700; margin-bottom: 10px; }
.site-footer p { opacity: 0.85; font-size: 0.88rem; margin-bottom: 6px; }
.site-footer a { color: rgba(255,255,255,0.8); text-decoration: none; }
.site-footer a:hover { color: white; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 6px; font-size: 0.88rem; }

/* フッターグリッド（3カラム） */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 10px;
}

@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 25px;
  padding-top: 18px;
  font-size: 0.82rem;
  opacity: 0.7;
  text-align: center;
}

/* ── UTILITIES ── */
.tag-badge {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin: 2px;
  color: white;
}

.bg-cat-a { background: #e91e63; }
.bg-cat-b { background: #9c27b0; }
.bg-cat-c { background: #f44336; }
.bg-cat-d { background: #ff9800; }
.bg-cat-e { background: #2196f3; }
.bg-cat-f { background: #009688; }
.bg-cat-g { background: #795548; }

.thumb-cat-a { background: linear-gradient(135deg, #fce4ec, #f8bbd0); }
.thumb-cat-b { background: linear-gradient(135deg, #f3e5f5, #e1bee7); }
.thumb-cat-c { background: linear-gradient(135deg, #ffebee, #ffcdd2); }
.thumb-cat-d { background: linear-gradient(135deg, #fff3e0, #ffe0b2); }
.thumb-cat-e { background: linear-gradient(135deg, #e3f2fd, #bbdefb); }
.thumb-cat-f { background: linear-gradient(135deg, #e0f2f1, #b2dfdb); }
.thumb-cat-g { background: linear-gradient(135deg, #efebe9, #d7ccc8); }

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* ── RESPONSIVE TWEAKS ── */
@media (max-width: 768px) {
  .article-header { padding: 30px 0 22px; }
  .article-header h1 { font-size: 1.4rem; line-height: 1.4; }
  .article-body h2 { font-size: 1.15rem; padding: 12px 16px; margin: 36px 0 14px; }
  .article-body h3 { font-size: 1.05rem; }
  .toc-box { padding: 16px 18px; }
  .article-meta-row { gap: 10px; font-size: 0.78rem; }
  .article-cta { padding: 28px 20px; }
  .article-cta h3 { font-size: 1.2rem; }
  .step-box { padding: 14px; gap: 12px; }
  .step-number { font-size: 0.75rem; padding: 5px 10px; }
  .info-box { padding: 16px 18px; }
  .sidebar-widget, .sidebar-cta { margin-bottom: 16px; }
  .blog-hero h1 { font-size: 1.7rem; }
}
