/* ============================================================
   竹資源ビジネスレポート bamboo-business ブログ固有スタイル
   ../styles.css と併読。ヘッダー/フッター/ナビのスタイルは書かない。
   2カラムレイアウトの土台（.layout / .sidebar 等）は ../styles.css を利用。
   ============================================================ */

/* ------------------------------------------------------------
   パンくず
   ------------------------------------------------------------ */
.blog-breadcrumb {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
}

.blog-breadcrumb a {
  color: var(--green-mid);
}

/* ------------------------------------------------------------
   記事ヘッダー（タイトル・メタ情報）
   ------------------------------------------------------------ */
.article-head {
  margin-bottom: 1.6rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.9rem;
  margin-bottom: 1rem;
}

.article-date {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--green-deep);
  font-size: 0.92rem;
}

.article-category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fffdf8;
  background: var(--green-mid);
  border-radius: 4px;
  padding: 0.12rem 0.7rem;
}

.article-readtime {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.article-head h1 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--green-dark);
}

/* アイキャッチ */
.article-eyecatch {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 2.2rem;
}

.article-eyecatch img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ------------------------------------------------------------
   シェアボックス・記事下ナビ
   ------------------------------------------------------------ */
.share-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin: 2.8rem 0 1rem;
  padding: 1.1rem 1.3rem;
  background: var(--green-pale);
  border: 1px solid var(--green-bamboo);
  border-radius: var(--radius);
}

.share-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--green-dark);
}

.share-btn {
  display: inline-block;
  padding: 0.45rem 1.3rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fffdf8;
  transition: transform 0.2s ease;
}

.share-btn:hover {
  transform: translateY(-2px);
  opacity: 1;
}

.share-btn.share-x {
  background: #0f1419;
}

.share-btn.share-facebook {
  background: #1877f2;
}

.back-to-list {
  display: inline-block;
  margin-top: 1.6rem;
  font-weight: 700;
  color: var(--green-mid);
}

.back-to-list::before {
  content: "← ";
}

/* ------------------------------------------------------------
   ブログ一覧（intro）
   ------------------------------------------------------------ */
.blog-intro {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.6rem 1.5rem 0;
}

.blog-intro h1 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  color: var(--green-dark);
  margin-bottom: 0.5rem;
}

.blog-intro h1::before {
  content: '― ';
  color: var(--gold);
}

.blog-intro p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 720px;
}

/* ------------------------------------------------------------
   ブログ一覧カードグリッド
   ------------------------------------------------------------ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(30, 77, 56, 0.22);
}

.blog-card-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.blog-card-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.1rem 1.2rem 1.4rem;
  gap: 0.5rem;
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.7rem;
}

.blog-card h2 {
  font-family: var(--font-head);
  font-size: 1.08rem;
  line-height: 1.5;
  color: var(--green-dark);
  margin: 0;
}

.blog-card h2 a {
  color: var(--green-dark);
}

.blog-card h2 a:hover {
  color: var(--green-mid);
}

.blog-card .card-summary {
  font-size: 0.85rem;
  color: var(--ink-soft);
  flex: 1;
  margin: 0;
}

.blog-card .read-more {
  align-self: flex-start;
  margin-top: auto;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--green-mid);
}

.blog-card .read-more::after {
  content: ' →';
}

/* ------------------------------------------------------------
   レスポンシブ
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .article-head h1 {
    font-size: 1.4rem;
  }
}


/* News commentary quality guard: mobile-safe media and sidebar layout */
.blog-page header .header-inner { flex-direction: row; align-items: center; width: 100%; }
.blog-page header nav { margin-left: auto; }
.blog-main, .article-main, .blog-article, .article-content, .blog-article-content { min-width: 0; max-width: 100%; }
.article-header { display: block; min-width: 0; }
body.blog-page { overflow-x: hidden; }
.blog-article-hero, .article-hero-image, .article-header figure { max-width: 100%; overflow: hidden; }
.blog-article-hero img, .article-hero-image, .article-header figure img { display: block; width: 100%; max-width: 100%; height: auto; object-fit: cover; }
.blog-article-content img, .article-content img, .blog-main img { max-width: 100%; height: auto; }
.related-articles ul, .related-posts ul, .toc ul, .sidebar-widget ul { margin: 0; padding-left: 1.2rem; }
.related-articles li, .related-posts li, .toc li, .sidebar-widget li { margin: .45rem 0; line-height: 1.55; }
.sitenavi-slot { display: none !important; }
@media (max-width: 900px) {
  /* 右側へ退避した開閉式ナビが横スクロール幅を作らない */
  html,
  body {
    overflow-x: hidden;
  }
}

@media (max-width: 768px) {
  .blog-layout, .article-layout { grid-template-columns: minmax(0, 1fr) !important; width: min(calc(100% - 24px), 1120px); }
  .blog-sidebar { position: static !important; width: 100%; }
  .blog-main, .article-main { width: 100%; }
  .blog-article-hero { margin-left: 0; margin-right: 0; }
  .blog-article-hero img, .article-hero-image { width: 100% !important; max-width: 100% !important; }
}

/* Mobile news-commentary readability baseline (shared site-local rule). */
@media (max-width: 768px) {
  .blog-main, .blog-container, .two-col-layout { min-width: 0; }
  .article-detail, .blog-article, .article-body { min-width: 0; }
  .article-detail .article-body, .blog-article { padding-inline: 16px; }
  .article-content {
    font-size: 1rem;
    line-height: 1.85;
    overflow-wrap: anywhere;
  }
  .article-content h2 { font-size: clamp(1.25rem, 6vw, 1.45rem); line-height: 1.4; }
  .article-content h3 { font-size: clamp(1.12rem, 5vw, 1.25rem); line-height: 1.45; }
  .article-content :is(img, iframe, video) { max-width: 100%; height: auto; }
  .article-content table { display: block; max-width: 100%; overflow-x: auto; }
  .sidebar, .blog-sidebar { position: static; order: 2; }
}
/* Mobile article reading width: keep outer page gutters, remove duplicated inner gutters. */
@media (max-width: 768px) {
  .article-content,
  .article-detail .article-body,
  .blog-article,
  .main-content > article.main-content {
    padding-left: 0;
    padding-right: 0;
  }
  /* Cap article-panel padding without removing deliberate card framing. */
  .article-panel,
  .article-main,
  .post-content,
  .article-detail {
    padding-left: min(16px, 4vw);
    padding-right: min(16px, 4vw);
  }
  .article-body { padding-left: 0; padding-right: 0; }
}
