/* =========================
 * 全体レイアウト・ベース
 * ========================= */
main {
  background-color: #f5f5f7; /* 背景を少しだけグレーにして本文カードを浮かせる */
  padding: 3rem 1.5rem;
}

article {
  max-width: 840px;
  margin: 0 auto 4rem;
  padding: 3rem 3.5rem;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  font-size: 16px;
  line-height: 1.8;
  color: #222;
}

/* =========================
 * 日付・タイトル・メタ情報
 * ========================= */
.article-date {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--base-gray);
}

.article-date p {
  color: inherit;
  margin: 0;
}

.article-title {
  text-align: left;
  margin: 0 0 1.5rem;
  font-size: 2.1rem;
  line-height: 1.3;
  font-weight: 700;
}

/* 既存の .article-content との整合性 */
.article-content {
  padding: 0;
}

/* =========================
 * 本文・見出し
 * ========================= */
.entry-content {
  font-size: 1rem;
  line-height: 1.9;
}

.entry-content p {
  margin: 0 0 1.5rem;
}

/* 見出しの階層感（Zenn / Qiita っぽく） */
.entry-content h2 {
  margin: 3rem 0 1.25rem;
  font-size: 1.6rem;
  font-weight: 700;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.4rem;
}

.entry-content h3 {
  margin: 2.2rem 0 0.8rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.entry-content h4 {
  margin: 1.8rem 0 0.6rem;
  font-size: 1.1rem;
  font-weight: 600;
}

/* リスト */
.entry-content ul,
.entry-content ol {
  margin: 0 0 1.5rem 1.5rem;
  padding-left: 1rem;
}

.entry-content li {
  margin-bottom: 0.4rem;
}

/* 画像 */
.entry-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
}

/* 引用 */
.entry-content blockquote {
  margin: 1.5rem 0;
  padding: 0.75rem 1.25rem;
  border-left: 4px solid #d1d5db;
  background-color: #f9fafb;
  color: #374151;
}

/* テーブル */
.wp-block-table,
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  font-size: 0.95rem;
}

.entry-content th,
.entry-content td,
.wp-block-table th,
.wp-block-table td {
  border: 1px solid #e5e7eb;
  padding: 0.6rem 0.75rem;
}

.entry-content th,
.wp-block-table th {
  background-color: #f3f4f6;
  font-weight: 600;
}

/* =========================
 * コード（インライン・ブロック）
 * ========================= */
code {
  background-color: #f3f4f6;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9em;
  color: #b91c1c;
}

pre {
  margin: 1.5rem 0 2rem;
  padding: 1rem 1.25rem;
  background-color: #0b1120;
  color: #e5e7eb;
  border-radius: 0.5rem;
  overflow-x: auto;
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9rem;
}

pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* =========================
 * アイキャッチ画像
 * ========================= */
.post-thumbnail img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}

/* =========================
 * 記事情報・サマリ・目次
 * ========================= */
.post-information p {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: #4b5563;
}

#article-index,
#article-summary {
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  background-color: var(--light-gray);
  margin: 2.5rem 0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  border: 1px solid #e5e7eb;
}

#article-index h2,
#article-summary h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
}

/* =========================
 * パンくずリスト（大枠維持）
 * ========================= */
.breadcrumb {
  max-width: 840px;
  margin: 0 auto 1.25rem;
  padding: 0 0.5rem;
  font-size: 0.85rem;
  color: #6b7280;
}

.breadcrumb a {
  color: #2563eb;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: #6b7280;
}

/* =========================
 * 関連リンクプラグインなど
 * ========================= */
.vlp-block-0 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 3rem;
}

.vlp-link-summary {
  font-size: 0.95rem;
}

/* =========================
 * レスポンシブ
 * ========================= */
@media (max-width: 1024px) {
  article {
    padding: 2.5rem 2rem;
  }
}

@media (max-width: 768px) {
  main {
    padding: 1.5rem 1rem;
  }

  article {
    padding: 1.75rem 1.25rem;
    border-radius: 0;
    box-shadow: none;
  }

  .article-title {
    font-size: 1.7rem;
  }

  .article-date {
    font-size: 0.8rem;
  }

  .breadcrumb {
    padding: 0 0.25rem;
    margin-bottom: 0.75rem;
  }
}
