/* グローバルなボックスサイズの設定 */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 全体のフォント設定 */
body {
  font-family: 'Open Sans', sans-serif;
  background-color: #f5f5f5; /* 背景色を薄いグレーに設定 */
  color: #333; /* 文字色をダークグレーに設定 */
  margin: 8px;
  padding: 10px;
}

/* コンテナ全体のスタイル */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 80px; /* 左右に80pxのパディングを追加 */
  background-color: #ffffff; /* 背景色を白に設定 */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 軽いシャドウを追加 */
  border-radius: 8px; /* 角を少し丸くする */
}

/* ヘッダーのスタイル */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #eaeaea;
  padding: 20px 80px; /* 左右に80pxのパディングを追加 */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* サイトタイトルのスタイル */
.site-title {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  font-size: 1.8em;
  padding-left: 20px; /* 左に20pxのパディングを追加 */
}

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

/* ページタイトルのスタイル */
.page-title {
  margin: 20px 0;
  padding-left: 20px; /* 左側に20pxのパディングを追加 */
  font-size: 2em;
  color: #333;
  font-weight: bold;
}

/* ナビゲーションのスタイル */
.site-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
}

.site-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: color 0.3s;
}

.site-nav a:hover {
  color: #007BFF; /* ホバー時に青色に変更 */
}

/* フッターのスタイル */
.site-footer {
  background-color: #ffffff;
  border-top: 1px solid #eaeaea;
  padding: 20px 80px; /* 左右に80pxのパディングを追加 */
  text-align: center;
  margin-top: 40px;
}

.site-footer p {
  margin: 0;
  color: #777;
  font-size: 0.9em;
}

/* ページ説明のスタイル */
.page-description {
  font-family: 'Roboto', sans-serif;
  font-size: 1.2em;
  color: #555;
  margin-bottom: 30px;
  text-align: center;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px; /* 左右に20pxのパディングを追加 */
}

/* 記事リストのスタイル */
.article-list {
  width: 100%;
}

.topic-section {
  margin-bottom: 50px;
}

.topic-title {
  font-size: 1.6em;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
  padding-left: 20px; /* 左に20pxのパディングを追加 */
}

/* 縦方向レイアウトのスタイル */
.articles-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 記事カードのスタイル */
.article-card {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

/* サムネイル画像のスタイル */
.thumbnail {
  width: 100%;
  max-width: 512px; /* サムネイルの最大幅を512pxに設定 */
  height: auto;
  display: block;
  margin: 20px auto 0 auto; /* 上部に20pxのマージンを追加 */
  border-bottom: 1px solid #ddd;
}

/* 記事コンテンツのスタイル */
.article-content {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* 記事タイトルのスタイル */
.article-title {
  font-family: 'Roboto', sans-serif;
  font-size: 1.1em;
  margin: 10px 0 0 0;
  color: #333;
  transition: color 0.3s;
}

.article-title:hover {
  color: #007BFF; /* ホバー時に青色に変更 */
}

/* 公開日のスタイル */
.published-date {
  font-size: 0.85em;
  color: #999;
  margin: 0;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
  .container {
    padding: 20px 60px; /* 左右のパディングを80pxから60pxに減少 */
  }

  .site-header {
    padding: 20px 60px; /* 左右に60pxのパディングを維持 */
  }

  .articles-grid {
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 20px 40px; /* 左右のパディングを60pxから40pxに調整 */
  }

  .site-header {
    padding: 20px 40px; /* 左右に40pxのパディングを追加 */
  }

  .articles-grid {
    gap: 10px;
  }

  .thumbnail {
    max-width: 300px; /* サムネイルのサイズを調整 */
  }
}

@media (max-width: 480px) {
  .container {
    padding: 10px 20px; /* モバイルデバイス向けにパディングを調整 */
  }

  .site-header {
    padding: 10px 20px; /* 左右に20pxのパディングを追加 */
  }

  .articles-grid {
    gap: 10px;
  }

  .thumbnail {
    max-width: 250px; /* サムネイルのサイズを調整 */
  }
}

/* その他の基本スタイル */
h1, h2, h3 {
  font-family: 'Roboto', sans-serif;
  margin-top: 20px;
  margin-bottom: 10px;
  font-weight: 700;
  line-height: 1.3em;
}

h1 {
  font-size: 2.5em;
  color: #333;
}

h2 {
  font-size: 2em;
  color: #333;
}

h3 {
  font-size: 1.5em;
  color: #333;
}
