

/* 全体設定 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #dcdcdc; /* 画像の灰色背景を再現 */
    font-family: "Hiragino Kaku Gothic ProN", "Inter", sans-serif;
    color: #000000;
    line-height: 1.4;
}

/* ヘッダー */
.site-header {
    background-color: #4688be; /* 青系ヘッダー */
    color: #ffffff;
    padding: 12px 20px;
    font-weight: bold;
    font-size: 16px;
}

.header-inner {
    max-width: 900px;
    margin: 0 auto;
}

/* メインコンテナ */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* 見出し */
h1 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 25px;
}

h2 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 12px;
}

/* セクション */
.category-section {
    margin-bottom: 25px;
}

/* カードグリッド構造 */
.card-grid {
    display: grid;
    /* パソコン版：横に最大4列並べる */
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

/* リンクと画像 */
.card-link {
    display: block;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* クリック感（ホバー・タップ時の挙動） */
.card-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.4);
}

.card-link img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* スマホ対応（画面幅600px以下の調整） */
@media (max-width: 600px) {
    .container {
        padding: 15px;
    }

    h1 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    h2 {
        font-size: 18px;
    }

    /* スマホ画面では2列でキレイに並べる */
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}


  /* 1. ページ全体の余白を消して左右端まで広げるための必須設定 */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
}

/* 2. フッター外枠（背景色を画面の左端から右端まで100%広げる） */
.site-footer {
  width: 100%;
  background-color: #4289B9; /* 画像のきれいな青色 */
  color: #ffffff;
  padding: 50px 0 40px 0;
  box-sizing: border-box;
}

/* 3. 内側のレイアウト領域（左右の配置バランス調整） */
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end; /* 下揃えで配置 */
  box-sizing: border-box;
}

/* 4. サイトマップエリア */
.sitemap-title {
  font-size: 24px;
  font-weight: bold;
  margin: 0 0 20px 0;
  letter-spacing: 1px;
}
/* サイトマップのリスト表示設定 */
.sitemap-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sitemap-list li {
  margin-bottom: 12px;
}

/* 通常（未選択）のリンク表示：少し色を薄くする */
.sitemap-list a {
  color: rgba(255, 255, 255, 0.65); /* 未選択ページは少し透けさせて薄く表示 */
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  display: inline-block;
  
  /* 💡 フェードアニメーションの設定（0.25秒かけて滑らかに色を変化させる） */
  transition: color 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

/* マウスカーソルが重なったとき（ホバー時）：白くして少し右に動かすフェード演出 */
.sitemap-list a:hover {
  color: #ffffff; /* くっきりした白に変化 */
  opacity: 1;
  transform: translateX(4px); /* 4pxだけ右に滑らかにズレる動きを追加 */
}

/* 🌟 今開いているページ（カレントページ）の表示：最初からクッキリした白 */
.sitemap-list li.active a,
.sitemap-list a.active {
  color: #ffffff;
  opacity: 1;
  position: relative;
}

/* （任意）今開いているページの横に小さな点（インジケーター）をつける演出 */
.sitemap-list li.active a::before,
.sitemap-list a.active::before {
  content: "・";
  position: absolute;
  left: -14px;
  color: #ffffff;
}

/* 5. 右側ブランド・ロゴエリア */
.footer-brand {
  text-align: right;
}

/* HAKURYO画像ロゴ */
.footer-logo {
  width: 320px; /* ロゴ画像の表示幅（必要に応じて調整してください） */
  height: auto;
  display: block;
  margin-left: auto;
  margin-bottom: 12px;
}

.copyright {
  font-size: 13px;
  margin: 0;
  opacity: 0.9;
  white-space: nowrap;
}

/* 6. スマホ表示（画面幅が狭い端末）への最適化 */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 25px;
    gap: 40px;
  }

  .footer-brand {
    text-align: left;
    width: 100%;
  }

  .footer-logo {
    margin-left: 0;
    width: 240px; /* スマホ用に少し小さく調整 */
  }

  .sitemap-list a {
    font-size: 16px;
  }

  @view-transition {
  navigation: auto;
}
}

