/* ============================================================
   ツグビズ ブログ 固有スタイル
   ヘッダー/フッター/ナビ/2カラム土台は ../styles.css を併読
   ここではブログ記事装飾と一覧カードのみを定義
   ============================================================ */

/* ---------------- Article hero label ---------------- */

.blog-article-hero {
  min-height: 260px;
  background-image: linear-gradient(120deg, #0e1729 0%, #26385c 60%, #3a4f7a 100%);
}

.blog-article-hero .hero-label {
  margin-bottom: 1rem;
}

.blog-article-hero .page-title {
  -webkit-text-stroke: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* ---------------- Article post ---------------- */

.blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.9rem;
  padding-bottom: 1rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.blog-post-meta time {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  font-size: 0.92rem;
}

.blog-post-cat {
  background: var(--navy);
  color: #fff8ec;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.18rem 0.7rem;
  border-radius: 3px;
}

.blog-post-readtime {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.blog-eyecatch {
  margin: 0 0 1.6rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

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

/* article body headings inherit from .main-col in ../styles.css.
   The first h2 inside the post gets a little top spacing. */
.blog-post h2 {
  scroll-margin-top: 120px;
  margin-top: 2rem;
}

.blog-post h2:first-of-type {
  margin-top: 0;
}

/* ---------------- Share / back ---------------- */

.share-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.8rem;
  margin: 2rem 0 1.4rem;
  padding: 1.1rem 1.2rem;
  background: var(--gold-pale);
  border-radius: var(--radius);
}

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

.share-btn {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
}

.share-btn.share-x {
  background: #14171a;
}

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

.share-btn:hover {
  opacity: 0.85;
  color: #ffffff;
}

.back-to-list {
  display: inline-block;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.9rem;
}

.back-to-list:hover {
  color: var(--gold);
}

/* ---------------- Blog index (一覧) ---------------- */

.blog-intro {
  margin-bottom: 1.8rem;
}

.blog-intro h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

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

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

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

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

.blog-card .blog-thumb-link {
  display: block;
  overflow: hidden;
}

.blog-thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-thumbnail {
  transform: scale(1.04);
}

.blog-card-body {
  padding: 1.1rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-body time {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.blog-card-body h3 {
  font-family: var(--font-head);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
  margin: 0.35rem 0 0.5rem;
}

.blog-card-body h3 a {
  color: var(--navy);
}

.blog-card-body h3 a:hover {
  color: var(--gold);
}

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

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

.read-more::after {
  content: " →";
  color: var(--gold);
}

.read-more:hover {
  color: var(--gold);
}

/* ---------------- Responsive ---------------- */

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

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

  .blog-article-hero {
    min-height: 200px;
  }
}

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