/* =========================================================
   藻類バイオビジネス ブログ固有スタイル (blog.css)
   ※ ヘッダー/フッター/ナビは ../styles.css を利用（ここには書かない）
   ========================================================= */

.blog-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* ===== Blog index hero ===== */
.blog-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}
.blog-header .kicker {
  display: inline-block;
  color: var(--emerald-deep);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  margin-bottom: 0.7rem;
}
.blog-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0.8rem;
}
.blog-header p { color: var(--text-muted); }

/* ===== Blog card grid (2 columns) ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-strong); }
.blog-card > a { display: block; aspect-ratio: 16/9; overflow: hidden; }
.blog-thumbnail { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.blog-card:hover .blog-thumbnail { transform: scale(1.05); }
.blog-content { padding: 1.4rem 1.5rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.blog-content h2 { font-size: 1.2rem; margin-bottom: 0.5rem; line-height: 1.5; }
.blog-content h2 a { color: var(--text-dark); }
.blog-content h2 a:hover { color: var(--emerald-deep); }
.blog-content time { font-size: 0.8rem; color: var(--emerald-deep); font-weight: 700; }
.article-summary { font-size: 0.9rem; color: var(--text-muted); margin: 0.7rem 0 1rem; flex: 1; }
.read-more { font-weight: 700; color: var(--emerald-deep); font-size: 0.9rem; align-self: flex-start; }
.read-more:hover { color: var(--teal); }

/* ===== Article (single post) 2-column ===== */
.blog-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2.5rem;
  align-items: start;
}
.blog-main { min-width: 0; }
.blog-breadcrumb { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1rem; }
.blog-breadcrumb a { color: var(--text-muted); }
.blog-breadcrumb a:hover { color: var(--emerald-deep); }

.blog-hero-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.6rem;
}
.article-content { background: transparent; }
.article-title {
  font-size: clamp(1.6rem, 3.8vw, 2.3rem);
  margin-bottom: 0.6rem;
  line-height: 1.4;
}
.article-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.8rem;
  padding-bottom: 1.2rem;
  border-bottom: 2px solid var(--bg-alt);
}
.article-meta time { color: var(--emerald-deep); font-weight: 700; }
.reading-time {
  background: var(--bg-alt);
  color: #047857;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  font-weight: 700;
}

.article-content h2 {
  font-size: 1.5rem;
  margin: 2.4rem 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--border);
  position: relative;
  padding-left: 1.4rem;
}
.article-content h2::before {
  content: "";
  position: absolute;
  left: 0; top: 0.3rem;
  width: 0.95rem; height: 0.95rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--emerald-light), var(--emerald));
}
.article-content h3 { font-size: 1.18rem; margin: 1.7rem 0 0.7rem; color: var(--emerald-deep); }
.article-content p { margin-bottom: 1.2rem; }
.article-content ul, .article-content ol { margin: 0 0 1.3rem 1.4rem; }
.article-content li { margin-bottom: 0.5rem; }
.article-content strong { color: var(--ocean-mid); }
.article-content a { color: var(--emerald-deep); text-decoration: underline; }

.article-callout {
  background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(14,116,144,0.08));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.3rem 1.5rem;
  margin: 1.8rem 0;
}
.article-callout h4 { color: var(--emerald-deep); margin-bottom: 0.5rem; }

.inline-ad { text-align: center; margin: 1.8rem 0; overflow: hidden; }
.inline-ad img { margin: 0 auto; max-width: 100%; height: auto; }

/* ===== Share links ===== */
.share-links {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--bg-alt);
}
.share-links h3 { font-size: 1.05rem; margin-bottom: 1rem; }
.article-content .share-button,
.share-button {
  display: inline-block;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.85rem;
  margin: 0 0.5rem 0.5rem 0;
}
.share-button:hover { color: #fff; opacity: 0.9; }
.share-button.twitter { background: #1d9bf0; }
.share-button.facebook { background: #1877f2; }
.share-button.line { background: #06c755; }

/* ===== Sidebar (shared look with parent) ===== */
.blog-sidebar { display: flex; flex-direction: column; gap: 1.5rem; position: sticky; top: 90px; }
.blog-sidebar .sidebar-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.blog-sidebar .sidebar-box h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--bg-alt);
  position: relative;
  padding-left: 1.2rem;
}
.blog-sidebar .sidebar-box h3::before {
  content: "";
  position: absolute;
  left: 0; top: 0.15rem;
  width: 0.8rem; height: 0.8rem;
  border-radius: 50%;
  background: var(--emerald);
}
.blog-sidebar .toc-list { list-style: none; }
.blog-sidebar .toc-list li { margin-bottom: 0.5rem; }
.blog-sidebar .toc-list a { font-size: 0.88rem; color: var(--text-body); display: block; padding: 0.3rem 0.5rem; border-radius: 8px; }
.blog-sidebar .toc-list a:hover, .blog-sidebar .toc-list a.active { background: var(--bg-alt); color: var(--emerald-deep); }
.blog-sidebar .related-list { list-style: none; }
.blog-sidebar .related-list li { margin-bottom: 0.6rem; padding-left: 1rem; position: relative; }
.blog-sidebar .related-list li::before { content: "\203A"; position: absolute; left: 0; color: var(--emerald); font-weight: 700; }
.blog-sidebar .sidebar-ad { text-align: center; overflow: hidden; }
.blog-sidebar .sidebar-ad img { margin: 0 auto; max-width: 100%; height: auto; }
.blog-sidebar .amazon-banner a {
  display: block;
  background: linear-gradient(135deg, var(--emerald-deep), var(--teal));
  color: #fff;
  padding: 1rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
}
.blog-sidebar .amazon-banner a:hover { color: #fff; opacity: 0.92; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; order: 2; }
}
@media (max-width: 680px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* 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; }
}
