/* リセットCSS & 基本設定 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  line-height: 1.6;
  color: #333;

  /* --- 背景画像の設定 --- */
  background-image: url("bg-image.jpg");   /* 画像のファイル名 */
  background-size: cover;                  /* 画面全体に隙間なく拡大・縮小表示 */
  background-position: center center;      /* 画像の中心を画面の中央に配置 */
  background-repeat: no-repeat;            /* 画像の繰り返し表示（タイリング）を防止 */
  background-attachment: fixed;            /* スクロールしても背景画像を固定 */
/* カードや各種セクションの背景を半透明の白にして文字を読みやすくする */
}
.hero,
.section,
.card,
.header {
  background-color: rgba(255, 255, 255, 0.85); /* 最後の数値(0.85)で透明度を調整 */
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* レイアウトの幅指定 */
.container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
}

/* ヘッダー */
.header {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2b6cb0;
}

.nav ul {
  display: flex;
  gap: 20px;
}

.nav a:hover {
  color: #2b6cb0;
}

/* メインビジュアル */
.hero {
  background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 100%);
  padding: 100px 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #2d3748;
}

.hero p {
  font-size: 1.1rem;
  color: #4a5568;
  margin-bottom: 30px;
}

/* ボタン */
.btn {
  display: inline-block;
  background-color: #2b6cb0;
  color: #ffffff;
  padding: 12px 30px;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.btn:hover {
  background-color: #2c5282;
}

/* セクション共通 */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: #2b6cb0;
  margin: 10px auto 0;
}

.section-desc {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  color: #4a5568;
}

.bg-light {
  background-color: #f7fafc;
}

.text-center {
  text-align: center;
}

/* カード型レイアウト（グリッド） */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: #2b6cb0;
}

.card p {
  color: #718096;
  font-size: 0.95rem;
}

/* フッター */
.footer {
  background-color: #2d3748;
  color: #a0aec0;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
}

/* スマホ対応（レスポンシブ調整） */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .header-container {
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    height: auto;
    padding: 15px 0;
  }
}

/* 記事一覧グリッド */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* 記事カード全体 */
.article-card {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #e2e8f0;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.article-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* サムネイル画像 */
.article-image-wrapper {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.article-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card:hover .article-image {
  transform: scale(1.05);
}

/* カードテキスト部分 */
.article-content {
  padding: 20px;
}

.article-date {
  font-size: 0.85rem;
  color: #a0aec0;
  margin-right: 10px;
}

.article-category {
  display: inline-block;
  font-size: 0.75rem;
  background-color: #ebf8ff;
  color: #2b6cb0;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: bold;
}

.article-title {
  font-size: 1.2rem;
  margin: 10px 0;
  color: #2d3748;
  line-height: 1.4;
}

.article-excerpt {
  font-size: 0.9rem;
  color: #718096;
  line-height: 1.5;
}
.eyecatch img {
  max-width: 100%; /* 親要素の幅を超えないようにする */
  height: auto;     /* 縦横比（アスペクト比）を維持する */
}
/* アイキャッチ画像の囲み枠のサイズを制限する */
.article-eyecatch {
  max-width: 800px; /* 画像の最大の横幅（600px〜800pxなどでお好みに調整してください） */
  margin: 0 auto;   /* 中央寄せにする */
}

/* 画像自体を枠内にきれいに収める */
.article-eyecatch img {
  width: 100%;
  height: 500px;
  display: block;   /* 下部にできるわずかな隙間をなくす */
  object-fit: cover;   /* 縦横比を崩さず、指定した枠いっぱいにトリミング表示 */
}
.mute-text {
  color: #888888; /* グレー系の薄い色を指定 */
}