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

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.6;
}

/* コンテナ共通 */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

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

.site-title {
  font-size: 28px;
  color: #333;
  text-align: center;
}

.main-nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  margin-top: 10px;
}

.main-nav li {
  margin: 0 15px;
}

.main-nav a {
  text-decoration: none;
  color: #555;
  font-weight: 500;
}

.main-nav a:hover {
  color: #007acc;
}

/* メインコンテンツ */
.main-content {
  display: flex;
  flex-wrap: wrap;
  margin-top: 30px;
}

.content {
  flex: 0 0 70%;
  padding-right: 30px;
}

.sidebar {
  flex: 0 0 30%;
}

/* 記事カード */
.article-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.article-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease;
}

.article-card:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.article-card img {
  width: 100%;
  height: auto;
  display: block;
}

.article-content {
  padding: 15px;
}

.article-title {
  font-size: 20px;
  margin-bottom: 10px;
}

.article-title a {
  color: #007acc;
  text-decoration: none;
}

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

.article-excerpt {
  color: #555;
}

/* サイドバー */
.widget {
  background: #fff;
  border: 1px solid #ddd;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 6px;
}

.widget-title {
  font-size: 18px;
  margin-bottom: 10px;
}

/* フッター */
.site-footer {
  background-color: #f1f1f1;
  padding: 20px 0;
  margin-top: 40px;
  text-align: center;
  font-size: 14px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
  }

  .content, .sidebar {
    flex: 0 0 100%;
    padding-right: 0;
  }
}
