/* ============================================================
   DTxレポート ブログ固有スタイル
   ※ヘッダー/フッター/ナビのスタイルは ../styles.css を使用
   ============================================================ */

/* 記事ページ 2カラム */
.blog-layout {
  max-width: 1160px;
  margin: 0 auto;
  padding: 44px 20px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}

.blog-main {
  min-width: 0;
}

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

.article-header .article-category {
  display: inline-block;
  background: var(--teal-50);
  color: var(--teal-700);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.article-header h1 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  line-height: 1.5;
  margin-bottom: 12px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.article-meta time {
  font-weight: 700;
  color: var(--teal-700);
}

.article-hero {
  margin: 20px 0 28px;
}

.article-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  display: block;
}

/* 記事本文 */
.article-content {
  font-size: 1rem;
}

.article-content h2 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.3rem;
  line-height: 1.5;
  padding: 10px 18px;
  background: linear-gradient(90deg, var(--teal-50), rgba(238, 250, 248, 0));
  border-left: 6px solid var(--teal-600);
  border-radius: var(--radius-sm);
  margin: 40px 0 18px;
}

.article-content h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--teal-700);
  margin: 26px 0 12px;
}

.article-content p {
  margin-bottom: 16px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 16px;
  padding-left: 4px;
}

.article-content li {
  margin-bottom: 6px;
}

.article-content blockquote {
  border-left: 4px solid var(--teal-200);
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 0 0 16px;
  color: var(--ink-soft);
}

/* シェアボタン */
.share-box {
  margin-top: 40px;
  padding: 20px 22px;
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-radius: var(--radius-lg);
}

.share-box p {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--teal-700);
  margin-bottom: 12px;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.share-buttons a {
  display: inline-block;
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  transition: var(--transition);
}

.share-buttons a:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.share-buttons .share-x {
  background: #101419;
}

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

.share-buttons .share-line {
  background: #06c755;
}

/* 記事下ナビ */
.article-back {
  margin-top: 28px;
  text-align: center;
}

.article-back a {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 999px;
  border: 2px solid var(--teal-600);
  color: var(--teal-700);
  font-weight: 700;
  font-size: 0.9rem;
}

.article-back a:hover {
  background: var(--teal-600);
  color: #fff;
}

/* ブログ一覧 */
.blog-index-header {
  background: linear-gradient(160deg, var(--teal-50), #ffffff);
  border-bottom: 1px solid var(--line);
  padding: 52px 20px 40px;
  text-align: center;
}

.blog-index-header h1 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  margin-bottom: 10px;
}

.blog-index-header p {
  color: var(--ink-soft);
  max-width: 720px;
  margin: 0 auto;
  font-size: 0.95rem;
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

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

.blog-card .blog-content {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.blog-card h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.55;
}

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

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

.blog-card time {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal-700);
}

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

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

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

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