/* ==========================================================
   陸上養殖インサイト blog.css
   ブログ固有スタイル（2カラム記事装飾・一覧カード）
   ヘッダー/フッター/ナビのスタイルは ../styles.css を併読
   ========================================================== */

/* ---------- 記事本体カード ---------- */
.article-body {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 36px 40px;
  box-shadow: 0 4px 14px rgba(7, 41, 59, 0.05);
}

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

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

.blog-breadcrumb span {
  margin: 0 6px;
  color: var(--line);
}

/* ---------- 記事ヘッダー ---------- */
.article-header {
  margin-bottom: 22px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.article-date {
  background: var(--deep);
  color: var(--aqua);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 8px;
  letter-spacing: 0.04em;
}

.article-category {
  background: var(--aqua-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.76rem;
  padding: 5px 12px;
  border-radius: 999px;
}

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

.article-header h1 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 800;
  color: var(--deep);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* ---------- アイキャッチ ---------- */
.article-eyecatch {
  margin: 22px 0 8px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(7, 41, 59, 0.12);
}

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

/* ---------- 本文 ---------- */
.article-content {
  margin-top: 26px;
}

.article-content h2 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--deep);
  border-bottom: 2px solid var(--aqua);
  padding-bottom: 10px;
  margin: 36px 0 18px;
  line-height: 1.5;
  scroll-margin-top: 120px;
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content h3 {
  font-size: 1.08rem;
  color: var(--primary);
  margin: 24px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--aqua);
  line-height: 1.6;
}

.article-content p {
  margin-bottom: 1.2em;
}

.article-content ul,
.article-content ol {
  margin: 0 0 1.3em;
  padding-left: 1.4em;
}

.article-content li {
  margin-bottom: 0.4em;
}

.article-content strong {
  color: var(--primary);
}

.article-content a {
  color: var(--teal);
  text-decoration: underline;
}

/* ---------- 記事内SVG図解 ---------- */
.svg-figure {
  margin: 26px 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  overflow-x: auto;
}

.svg-figure svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 660px;
  margin: 0 auto;
}

.svg-figure figcaption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 12px;
}

/* ---------- シェア ---------- */
.share-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 34px 0 6px;
  padding: 16px 20px;
  background: var(--aqua-light);
  border: 1px solid var(--line);
  border-radius: 12px;
}

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

.share-btn {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
}

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

.share-btn.share-x:hover {
  background: #333;
  color: #fff;
}

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

.share-btn.share-facebook:hover {
  background: #0f5ec7;
  color: #fff;
}

/* ---------- 一覧へ戻る ---------- */
.back-to-list {
  display: inline-block;
  margin-top: 20px;
  font-weight: 700;
  color: var(--primary);
}

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

/* ---------- サイドバー広告 ---------- */
.sidebar-ad {
  text-align: center;
  overflow: hidden;
}

.sidebar-ad img {
  display: inline-block;
  max-width: 100%;
  height: auto;
}

.sidebar-ad .amazon-banner {
  display: block;
}

.sidebar-ad .amazon-banner + .amazon-banner {
  margin-top: 12px;
}

/* ==========================================================
   ブログ一覧ページ
   ========================================================== */
.blog-list-hero {
  background: linear-gradient(120deg, var(--deep) 0%, var(--primary) 60%, var(--teal) 100%);
  color: #eafffb;
  padding: 54px 0 46px;
}

.blog-list-hero .container {
  text-align: center;
}

.blog-list-hero .hero-tag {
  background: var(--aqua);
  color: var(--deep);
  margin-bottom: 16px;
  box-shadow: none;
}

.blog-list-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.blog-list-hero p {
  margin-top: 14px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.98rem;
  color: #d9f2ef;
}

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

.blog-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(7, 41, 59, 0.06);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

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

.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-thumb img {
  transform: scale(1.05);
}

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

.blog-card time {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.blog-card h2 {
  font-family: var(--font-head);
  font-size: 1.06rem;
  line-height: 1.55;
  margin-bottom: 8px;
}

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

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

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

.blog-card .read-more {
  align-self: flex-start;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal);
}

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

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

@media (max-width: 768px) {
  .article-body {
    padding: 24px 20px 30px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .share-box {
    gap: 8px;
  }
}


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