/* base */
body.body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  color: #1a202c;
  background: linear-gradient(
    to bottom,
    #e0f2fe,
    #c7d2fe
  ); /* sky-100 to indigo-200 */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* レイアウト全体 */
.layout {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ヘッダー */
.header {
  background: transparent;
  padding: 16px 0;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  font-size: 20px;
  font-weight: bold;
  color: #1a1a1a;
  text-decoration: none;
}

.site-title:hover {
  color: #e2e8f0;
}

/* ナビゲーション */
.menu {
  display: flex;
  gap: 24px;
}

.menu-link {
  color: #1a1a1a;
  text-decoration: none;
  font-size: 14px;
  padding: 8px;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.menu-link:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* 中央寄せ + 左揃えの本文ラッパー */
.content-wrapper {
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* パンくずリスト */
.breadcrumb {
  font-size: 14px;
  color: #475569;
  margin-top: 40px;
  margin-bottom: 36px;
  text-align: left;
}

.breadcrumb-link {
  color: #475569;
  text-decoration: none;
}

.breadcrumb-link:hover {
  color: #e2e8f0;
  text-decoration: underline;
}

/* 投稿日 */
.post-date {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 12px;
}

/* タイトル */
.post-title {
  font-size: 32px;
  font-weight: bold;
  line-height: 1.25;
  margin-bottom: 32px;
  text-align: left;
}

/* 本文 */
.post-content {
  font-size: 16px;
  line-height: 1.75;
  text-align: left;
}

/* Markdown 見出し */
.post-content h1 {
  font-size: 2rem;
  font-weight: bold;
  margin: 2rem 0 1rem;
}

.post-content h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 1.75rem 0 1rem;
}

.post-content h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin: 1.5rem 0 1rem;
}

/* 段落 */
.post-content p {
  margin-bottom: 1.25rem;
}

/* リスト */
.post-content ul,
.post-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.post-content li {
  list-style: disc;
  margin-bottom: 0.5rem;
}

/* 引用 */
.post-content blockquote {
  border-left: 4px solid #cbd5e1;
  background-color: #f8fafc;
  padding: 0.75rem 1rem;
  margin: 1.5rem 0;
  color: #475569;
  font-style: italic;
}

/* コードブロック */
.post-content pre {
  background-color: #f3f4f6;
  padding: 1rem;
  overflow-x: auto;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 1.5rem;
}

.post-content code {
  font-family: monospace;
  background-color: #f3f4f6;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-size: 90%;
}

/* テーブル */
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 15px;
}

.post-content th,
.post-content td {
  border: 1px solid #cbd5e1;
  padding: 0.5rem 0.75rem;
  text-align: left;
}

.post-content th {
  background-color: #f1f5f9;
  font-weight: bold;
}

/* 水平線 */
.post-content hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 2rem 0;
}

/* リンク */
.post-content a {
  color: #2563eb;
  text-decoration: underline;
}

.post-content a:hover {
  text-decoration: none;
}

/* フッター */
.footer {
  margin-top: auto;
  padding: 32px;
  text-align: center;
  font-size: 14px;
  color: #64748b;
  border-top: 1px solid #e5e7eb;
  background-color: transparent;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .header-inner,
  .content-wrapper {
    padding: 0 16px;
  }

  .post-title {
    font-size: 28px;
  }

  .post-content h2 {
    font-size: 20px;
  }

  .post-content h3 {
    font-size: 18px;
  }
}

.eyecatch-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 32px;
}
