/* ===================================================
   ブログ記事ページ共通スタイル
=================================================== */

/* 記事ヒーロー */
.post-hero {
  background-size: cover;
  background-position: center;
  position: relative;
}
.post-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8,145,178,0.72) 0%, rgba(5,150,105,0.55) 100%);
}
.post-hero .page-hero-inner { position: relative; z-index: 2; }
.post-hero-title { font-size: clamp(1.3rem, 3vw, 2rem) !important; }
.post-meta-bar { color: rgba(255,255,255,0.88); font-size: 0.9rem; margin-top: 10px; }
.post-meta-bar span { margin-right: 14px; }

/* 記事レイアウト（本文 + サイドバー） */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  padding-top: 40px;
  padding-bottom: 60px;
  align-items: start;
}
@media (max-width: 900px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { order: 2; }
}

/* 記事本文 */
.post-body h2 {
  font-size: 1.4rem;
  color: #0c4a6e;
  border-left: 5px solid #0891b2;
  padding: 8px 14px;
  margin: 36px 0 16px;
  background: linear-gradient(90deg, #e0f7fa 0%, transparent 100%);
  border-radius: 0 6px 6px 0;
}
.post-body h3 {
  font-size: 1.1rem;
  color: #164e63;
  margin: 24px 0 10px;
  padding-bottom: 4px;
  border-bottom: 2px solid #bae6fd;
}
.post-body p { line-height: 1.9; margin-bottom: 14px; color: #374151; }
.post-body a { color: #0891b2; text-decoration: underline; }

/* リード文ボックス */
.post-lead-box {
  background: linear-gradient(135deg, #e0f7fa, #f0fdf4);
  border-left: 5px solid #0891b2;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 32px;
}
.post-lead-box p { margin: 0; font-size: 1.02rem; line-height: 1.85; color: #1e3a5f; }

/* ポイントボックス */
.post-point-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 20px 24px;
  margin: 20px 0;
}
.post-point-box h3 { margin-top: 0; color: #059669; border-bottom: none; }
.post-point-box ul { margin: 0; padding-left: 20px; }
.post-point-box ul li { margin-bottom: 8px; line-height: 1.7; color: #374151; }

/* まとめボックス */
.post-summary-box {
  background: linear-gradient(135deg, #0891b2, #059669);
  color: #fff;
  border-radius: 12px;
  padding: 28px 32px;
  margin-top: 40px;
  text-align: center;
}
.post-summary-box h3 { color: #fff; border: none; font-size: 1.3rem; margin: 0 0 14px; }
.post-summary-box p { color: rgba(255,255,255,0.93); margin-bottom: 12px; }
.post-summary-box .btn { margin-top: 10px; display: inline-block; }
/* まとめボックス内ボタン：明るい黄色＋濃いグレー文字 */
.post-summary-box .btn-primary {
  background: #ffe033 !important;
  color: #2d2d2d !important;
  border: none !important;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
.post-summary-box .btn-primary:hover {
  background: #ffd000 !important;
  color: #1a1a1a !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.22);
}

/* 記事内カードグリッド */
.post-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin: 20px 0;
}
.post-card {
  background: #fff;
  border: 1px solid #e0f2fe;
  border-radius: 10px;
  padding: 18px 16px;
  box-shadow: 0 2px 8px rgba(8,145,178,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(8,145,178,0.13); }
.post-card h3 { font-size: 1rem; color: #0c4a6e; margin: 0 0 8px; border: none; padding: 0; }
.post-card p { font-size: 0.9rem; margin: 0; color: #4b5563; }
.post-card-icon { width: 40px; height: 40px; margin-bottom: 12px; }
.post-card-icon svg { width: 40px; height: 40px; }

/* ステップリスト */
.post-steps { margin: 20px 0; }
.post-step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
  background: #fff;
  border: 1px solid #e0f2fe;
  border-radius: 10px;
  padding: 16px 20px;
}
.post-step-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: linear-gradient(135deg, #0891b2, #059669);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
}
.post-step-body h3 { margin: 0 0 6px; font-size: 1rem; color: #0c4a6e; border: none; padding: 0; }
.post-step-body p { margin: 0; font-size: 0.9rem; color: #4b5563; line-height: 1.7; }

/* ソフト紹介リスト */
.post-software-list { margin: 20px 0; }
.post-software-item {
  background: #fff;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 16px;
}
.post-software-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.post-software-head h3 { margin: 0; border: none; padding: 0; font-size: 1.05rem; color: #0c4a6e; }
.post-software-badge {
  display: inline-block;
  color: #fff;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.post-software-item p { margin: 0 0 8px; font-size: 0.9rem; line-height: 1.75; color: #374151; }

/* 比較テーブル */
.post-compare-table { margin: 20px 0; overflow-x: auto; }
.post-compare-table table { width: 100%; border-collapse: collapse; }
.post-compare-table th {
  background: linear-gradient(135deg, #0891b2, #0c4a6e);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-size: 0.9rem;
}
.post-compare-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #e0f2fe;
  font-size: 0.9rem;
  color: #374151;
}
.post-compare-table tr:nth-child(even) td { background: #f0f9ff; }

/* サイドバー */
.post-sidebar { position: sticky; top: 90px; }
.sidebar-widget {
  background: #fff;
  border: 1px solid #e0f2fe;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 20px;
}
.sidebar-widget-title {
  font-size: 1rem;
  color: #0c4a6e;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #bae6fd;
}
.sidebar-post-list { list-style: none; padding: 0; margin: 0; }
.sidebar-post-list li { margin-bottom: 12px; }
.sidebar-post-list a {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-decoration: none;
  color: #1e3a5f;
  font-size: 0.85rem;
  line-height: 1.5;
  transition: color 0.2s;
}
.sidebar-post-list a:hover { color: #0891b2; }
.sidebar-post-list img {
  width: 60px; height: 45px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

/* サイドバーCTAボックス */
.sidebar-cta-box {
  background: linear-gradient(135deg, #0891b2, #059669) !important;
  border: none !important;
}
.sidebar-cta-box h3 { color: #fff; margin: 0 0 10px; font-size: 1rem; }
.sidebar-cta-box p { color: rgba(255,255,255,0.9); font-size: 0.88rem; margin-bottom: 14px; }
/* CTA内の全リンク・ボタン文字を白に統一 */
.sidebar-cta-box a,
.sidebar-cta-box .btn {
  color: #fff !important;
}
.btn-block { display: block; text-align: center; width: 100%; box-sizing: border-box; }
.btn-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}
.btn-outline:hover { background: rgba(255,255,255,0.15); }

/* ===================================================
   ブログ一覧・トップのカード共通スタイル追加分
=================================================== */

/* ブログ一覧グリッド */
.blog-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}
.blog-list-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(8,145,178,0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s, box-shadow 0.25s;
}
.blog-list-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(8,145,178,0.16);
}
.blog-list-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #e0f2fe;
}
.blog-list-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.blog-list-card:hover .blog-list-card-img img { transform: scale(1.05); }
.blog-list-card-body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.blog-list-card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.blog-list-card-cat {
  font-size: 0.72rem; font-weight: 700; padding: 3px 10px;
  background: linear-gradient(135deg, #0891b2, #059669);
  color: #fff; border-radius: 20px; white-space: nowrap;
}
.blog-list-card-date { font-size: 0.78rem; color: #9ca3af; }
.blog-list-card h3 { font-size: 0.95rem; color: #0c4a6e; line-height: 1.55; margin: 0 0 8px; }
.blog-list-card-desc { font-size: 0.82rem; color: #6b7280; line-height: 1.6; margin: 0; flex: 1; }

/* カテゴリ見出し */
.blog-list-cat { margin: 30px 0 12px; }
.blog-list-cat-title {
  font-size: 1.1rem; color: #0c4a6e;
  padding: 6px 16px;
  border-left: 4px solid #0891b2;
  background: linear-gradient(90deg, #e0f7fa 0%, transparent 100%);
  border-radius: 0 6px 6px 0;
}

/* フィルターボタン */
.blog-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.blog-filter-item {
  display: inline-block; padding: 7px 18px;
  border-radius: 50px; border: 2px solid #0891b2;
  color: #0891b2; background: #fff;
  font-size: 0.88rem; font-weight: 600;
  text-decoration: none; transition: all 0.2s;
}
.blog-filter-item:hover, .blog-filter-item.active {
  background: #0891b2; color: #fff;
}
.blog-filter-section { padding-bottom: 0 !important; }

/* トップページ ブログカード */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
  margin-bottom: 32px;
}
.blog-card {
  display: flex; flex-direction: column;
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(8,145,178,0.08);
  text-decoration: none; color: inherit;
  transition: transform 0.25s, box-shadow 0.25s;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(8,145,178,0.16); }
.blog-card-img {
  width: 100%; aspect-ratio: 16/9; overflow: hidden; background: #e0f2fe;
}
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 14px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.blog-card-cat {
  font-size: 0.7rem; font-weight: 700; padding: 2px 9px;
  background: linear-gradient(135deg, #0891b2, #059669);
  color: #fff; border-radius: 20px;
}
.blog-card-date { font-size: 0.75rem; color: #9ca3af; }
.blog-card h3 { font-size: 0.9rem; color: #0c4a6e; line-height: 1.5; margin: 0 0 6px; }
.blog-card-desc { font-size: 0.8rem; color: #6b7280; line-height: 1.55; margin: 0; }

/* もっと見るボタン */
.btn-outline-dark {
  display: inline-block; padding: 12px 36px;
  border: 2px solid #0891b2; border-radius: 50px;
  color: #0891b2; font-weight: 700; font-size: 0.95rem;
  text-decoration: none; transition: all 0.2s;
  background: #fff;
}
.btn-outline-dark:hover { background: #0891b2; color: #fff; }
