/* 基本設定 */
body {
  margin: 0;
  font-family: 'Roboto', 'Noto Serif JP', serif;
  line-height: 1.6;
  background: #f9f9f9;
  color: #333;
}

/* --- ヒーローテキスト アニメーション --- */
.hero .overlay {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- フッター アニメーション --- */
.footer {
  background: #222;
  color: #aaa;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;

  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.footer.visible {
  opacity: 1;
  transform: translateY(0);
}
/* ナビゲーション */
.navbar {
  background: #222;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
}
.menu-toggle {
  display: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}
.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list li {
  
  margin: 0 1rem;
  display: flex;           /* 高さを揃えるためにflexを使用 */
  align-items: center;     /* 垂直中央揃え */
}
.nav-list a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
  display: block;
  padding: 0.8rem 0;       /* 上下の余白を統一 */
  line-height: 1.5;        /* 高さを安定させる */
}
.nav-list a:hover {
  color: #ffcc66;
}

/* --- モバイル対応（アニメーション付き） --- */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .nav-list {
    flex-direction: column;
    width: 100%;
    background: #333;

    /* アニメーション用 */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }
  .nav-list.active {
    max-height: 500px; /* メニュー数に応じて十分な高さを指定 */
  }
  .nav-list li {
    margin: 1rem 0;
    text-align: center;
  }
}


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

/* カードレイアウト */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 18px rgba(0,0,0,0.15);
}
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card-content {
  padding: 1rem;
}
.card-content h2 {
  margin: 0.5rem 0;
  font-size: 1.3rem;
  color: #222;
}
.card-content p {
  color: #666;
  font-size: 0.95rem;
}

/* フッター */
.footer {
  background: #222;
  color: #aaa;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}
/* --- スクロールアニメーション（交互スライドイン） --- */
.card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 左からスライド */
.card.slide-left {
  transform: translateX(-60px);
}
.card.slide-left.visible {
  transform: translateX(0);
}

/* 右からスライド */
.card.slide-right {
  transform: translateX(60px);
}
.card.slide-right.visible {
  transform: translateX(0);
}
/* ロゴのサイズ調整 */
.site-logo {
  max-width: 200px;  /* PC表示の最大幅 */
  height: auto;
  display: block;
  margin: 0 auto;
}

/* スマホ用調整 */
@media (max-width: 768px) {
  .site-logo {
    max-width: 120px; /* スマホ時の最大幅 */
  }
}
/* --- スマホ向け調整 --- */
@media (max-width: 768px) {

  /* カード部分の可読性向上 */
  .card-content h2 {
    font-size: 1.1rem;   /* 見出しを少し小さめに */
    line-height: 1.4;    /* 行間を広めに */
    text-align: center;  /* 中央寄せで読みやすく */
  }

  .card-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
  }

  /* ヒーローセクションの文字 */
  .hero .overlay h1 {
    font-size: 1.8rem;   /* タイトル少し小さめに調整 */
    text-align: center;
    margin-bottom: 0.5rem;
  }

  .hero .overlay .site-description {
    font-size: 1.1rem;   /* サブタイトルを少し大きめに */
    text-align: center;
  }
}

}
/* 基本設定 */
body {
  margin: 0;
  font-family: 'Noto Serif JP', 'Roboto', serif;
  line-height: 1.6;
  background-color: #fdfaf6;
  background-image: url("washi.png"); /* ← フリー素材の和紙画像を配置 */
  background-repeat: repeat;
  background-size: cover;
  color: #333;
}

/* ナビゲーション（和風調） */
.navbar {
  background: #1c2e4a; /* 濃紺 */
}
.nav-list a {
  color: #fdfaf6; /* 生成り */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}
.nav-list a:hover {
  color: #cfa349; /* 金色に変化 */
}

/* コンテナ（掛け軸風） */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 2rem 1rem;
  border-left: 6px solid #8b1c1c;  /* 臙脂の縦罫線 */
  border-right: 6px solid #8b1c1c;
  background-color: rgba(255, 255, 255, 0.9); /* 半透明で和紙を透かす */
}

/* 見出し（題字風） */
h1, h2 {
  font-family: "Noto Serif JP", serif;
  color: #1c2e4a; /* 濃紺 */
  border-bottom: 2px solid #8b1c1c; /* 臙脂の下線 */
  display: inline-block;
  padding-bottom: 0.2em;
}

/* フッター（和風調） */
.footer {
  background: #f5f0e6; /* 和紙風ベージュ */
  color: #1c2e4a;     /* 濃紺文字 */
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  border-top: 3px solid #8b1c1c; /* 臙脂のボーダー */
  font-family: "Noto Serif JP", serif;
}
/* --- ルビ（フリガナ）調整 --- */
ruby {
  ruby-position: over; /* 漢字の上に表示（標準だが念のため指定） */
}

rt {
  font-size: 0.6em;   /* 小さめにする */
  color: #555;        /* 少し落ち着いたグレー */
  font-weight: normal;
  letter-spacing: 0.05em;
}
