/* ============================================================
   URBAN RACKET REPORT — ブログ固有スタイル
   2カラムレイアウト/記事装飾のみ。
   ヘッダー/フッター/ナビのスタイルは ../styles.css を参照。
   ============================================================ */

/* ---------------- ブログ トップ見出し ---------------- */
.blog-head {
  background: linear-gradient(135deg, var(--navy) 0%, var(--court-blue-dark) 100%);
  border-bottom: 4px solid var(--lime);
  color: #ffffff;
  padding: 2.6rem 1.5rem 2.4rem;
}

.blog-head-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.blog-head .blog-label {
  display: inline-block;
  background: var(--lime);
  color: var(--navy-deep);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  padding: 0.25rem 1rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.blog-head h1 {
  color: #ffffff;
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.blog-head p {
  margin-top: 0.8rem;
  color: #dbe6cf;
  font-size: 0.98rem;
  max-width: 760px;
}

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

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

.article-date {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  color: var(--court-blue-dark);
}

.article-category {
  background: var(--lime);
  color: var(--navy-deep);
  font-weight: 700;
  padding: 0.14rem 0.7rem;
  border-radius: 999px;
}

.article-readtime {
  color: var(--text-light);
}

.article-header h1 {
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

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

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

.article-eyecatch figcaption {
  font-size: 0.78rem;
  color: var(--text-light);
  padding: 0.6rem 0.9rem;
  background: var(--bg-alt);
  text-align: center;
}

/* ---------------- シェア ---------------- */
.share-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin: 2.4rem 0 1.6rem;
  padding: 1.3rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
}

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

.share-btn {
  display: inline-block;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  transition: var(--transition);
}

.share-btn:hover {
  opacity: 0.88;
}

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

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

/* ---------------- 一覧へ戻る ---------------- */
.back-to-list {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--court-blue);
}

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

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

.blog-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

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

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

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

.blog-card-body h2 {
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.5;
  margin-bottom: 0.6rem;
}

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

.blog-card-body h2 a:hover {
  color: var(--court-blue);
  opacity: 1;
}

.blog-card-date {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--court-blue-dark);
  margin-bottom: 0.6rem;
}

.blog-card .article-summary {
  font-size: 0.86rem;
  color: var(--text-light);
  flex: 1;
  margin-bottom: 0.9rem;
}

.blog-card .read-more {
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--court-blue);
}

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

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

@media (max-width: 860px) {
  .blog-head h1 {
    font-size: 1.5rem;
  }

  .article-header h1 {
    font-size: 1.5rem;
  }
}

@media (max-width: 600px) {
  .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; }
}
