/**
 * グローバルスタイル
 * サイト全体で共通のスタイルを定義
 */

/* リセット & 基本設定 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

/* コンテナ */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ヘッダー */
.site-header {
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.site-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.site-title a {
  color: #333;
  text-decoration: none;
}

.site-title a:hover {
  color: #0066cc;
}

/* ナビゲーション */
nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
}

nav a:hover {
  color: #0066cc;
}

/* メインコンテンツ */
.main-content {
  min-height: calc(100vh - 200px);
  background-color: #fff;
  padding: 2rem 0;
  margin-bottom: 2rem;
}

/* フッター */
.site-footer {
  background-color: #333;
  color: #fff;
  padding: 1.5rem 0;
  text-align: center;
}

.site-footer p {
  font-size: 0.9rem;
}

/* 記事一覧 */
.post-list {
  list-style: none;
}

.post-item {
  border-bottom: 1px solid #e0e0e0;
  padding: 1.5rem 0;
}

.post-item:last-child {
  border-bottom: none;
}

.post-item h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.post-item h2 a {
  color: #333;
  text-decoration: none;
}

.post-item h2 a:hover {
  color: #0066cc;
}

.post-meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.post-excerpt {
  color: #555;
  line-height: 1.6;
}

/* 記事本文 */
.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e0e0e0;
}

.article-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #222;
}

.article-content {
  line-height: 1.8;
  font-size: 1.05rem;
}

.article-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #222;
}

.article-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  color: #333;
}

.article-content p {
  margin-bottom: 1rem;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content code {
  background-color: #f4f4f4;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

.article-content pre {
  background-color: #f4f4f4;
  padding: 1rem;
  border-radius: 5px;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.article-content pre code {
  background-color: transparent;
  padding: 0;
}

.article-content blockquote {
  border-left: 4px solid #0066cc;
  padding-left: 1rem;
  margin: 1rem 0;
  color: #555;
  font-style: italic;
}

.article-content a {
  color: #0066cc;
  text-decoration: none;
}

.article-content a:hover {
  text-decoration: underline;
}

/* ボタン */
.button {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #0066cc;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.button:hover {
  background-color: #0052a3;
}

/* ユーティリティ */
.text-center {
  text-align: center;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}
