/*
Theme Name: Kaga Ninja Theme
Author: あなたの名前
Description: 加賀忍軍の最低限動くテーマ
Version: 1.0
*/

body{margin:0;font-family:sans-serif;background:#f7f7f7;color:#333;}
a{text-decoration:none;color:inherit;}
h1,h2,h3,h4,h5,h6{margin:0 0 10px;}
.site-content{max-width:1100px;margin:0 auto;padding:0 18px;}
.hero{position:relative;background-size:cover;background-position:center;color:#fff;padding:60px 0;}
.hero .overlay{position:absolute;inset:0;background:rgba(0,0,0,0.45);}
.program-grid{display:grid;grid-template-columns:1fr;gap:18px;margin-top:24px;}
@media(min-width:768px){ .program-grid{grid-template-columns:repeat(3,1fr);} }
.card{background:#fff;padding:18px;border-radius:8px;box-shadow:0 6px 16px rgba(0,0,0,0.06);}
.button{display:inline-block;padding:10px 16px;border-radius:999px;text-decoration:none;}
.btn-red{background:#d33;color:#fff;}
.btn-indigo{background:#4f46e5;color:#fff;}
/* ===== レスポンシブ対応 ===== */
@media (max-width: 767px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .program-grid {
    grid-template-columns: 1fr; /* 1列にする */
    gap: 16px;
  }
  .card {
    padding: 12px;
  }
  .button {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
}

/* ===== セクション間の余白 ===== */
section {
  margin-top: 60px;
  margin-bottom: 60px;
}

/* ===== ヒーローセクション調整 ===== */
.hero .container {
  padding: 40px 16px;
}

/* ===== プログラムカード ===== */
.card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.card p {
  font-size: 0.95rem;
  color: #555;
}

/* ===== お問い合わせ ===== */
#contact h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
#contact p {
  margin-bottom: 16px;
  font-size: 1rem;
}
/* ===== ヒーロー文字アニメーション ===== */
.hero .container h1 {
  font-size: 3rem;
  font-weight: 900;
  animation: fadeInUp 1s ease-out forwards;
  opacity: 0;
}
.hero .container p {
  font-size: 1.2rem;
  margin-top: 16px;
  animation: fadeInUp 1.3s ease-out forwards;
  opacity: 0;
}

/* ===== ボタンスタイル ===== */
.button {
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* 赤ボタン */
.btn-red {
  background: linear-gradient(45deg,#e3342f,#c53030);
  color: #fff;
  font-weight: bold;
}
.btn-red:hover {
  background: linear-gradient(45deg,#c53030,#e3342f);
}

/* インディゴボタン */
.btn-indigo {
  background: linear-gradient(45deg,#4f46e5,#3b82f6);
  color: #fff;
  font-weight: bold;
}
.btn-indigo:hover {
  background: linear-gradient(45deg,#3b82f6,#4f46e5);
}

/* ===== アニメーションキー ===== */
@keyframes fad
@media (max-width: 767px) {

  /* ===== ヒーロー文字 ===== */
  .hero .container h1 {
    font-size: 2rem; /* 小さくして画面幅に収める */
    animation: fadeInUp 1s ease-out forwards;
  }
  .hero .container p {
    font-size: 1rem;
    animation: fadeInUp 1.2s ease-out forwards;
  }

  /* ===== ボタン ===== */
  .button {
    padding: 8px 14px;
    font-size: 0.9rem;
  }

  /* ヒーローの上下パディングを調整 */
  .hero .container {
    padding: 30px 12px;
  }

  /* プログラムカードを1列表示 */
  .program-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* お問い合わせセクションの文字サイズ */
  #contact h2 {
    font-size: 1.4rem;
  }
  #contact p {
    font-size: 0.95rem;
  }
}
/* ===== 基本スタイル ===== */
body {
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  color: #333;
  background-color: #f9f9f9;
}

/* ===== ヒーローセクション ===== */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  transition: background 0.3s ease;
}
.hero:hover .overlay {
  background: rgba(0,0,0,0.45);
}
.hero .container {
  position: relative;
  text-align: center;
  color: #fff;
  padding: 60px 20px;
}
.hero .container h1 {
  font-size: 3rem;
  font-weight: 900;
  margin: 0;
  animation: fadeInUp 1s ease-out forwards;
  opacity: 0;
}
.hero .container p {
  font-size: 1.2rem;
  margin-top: 16px;
  animation: fadeInUp 1.3s ease-out forwards;
  opacity: 0;
}

/* ===== ボタン ===== */
.button {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.btn-red {
  background: linear-gradient(45deg,#e3342f,#c53030);
  color: #fff;
}
.btn-red:hover {
  background: linear-gradient(45deg,#c53030,#e3342f);
}
.btn-indigo {
  background: linear-gradient(45deg,#4f46e5,#3b82f6);
  color: #fff;
}
.btn-indigo:hover {
  background: linear-gradient(45deg,#3b82f6,#4f46e5);
}

/* ===== プログラムカード ===== */
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 24px;
  margin-top: 60px;
}
.card {
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.card p {
  font-size: 0.95rem;
  color: #555;
}

/* ===== お問い合わせ ===== */
#contact {
  text-align: center;
  margin-top: 60px;
}
#contact h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
#contact p {
  font-size: 1rem;
  margin-bottom: 16px;
}

/* ===== セクション全体の余白 ===== */
section {
  margin-top: 60px;
  margin-bottom: 60px;
}

/* ===== アニメーションキー ===== */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ===== レスポンシブ ===== */
@media (max-width: 767px) {
  .hero .container h1 {
    font-size: 2rem;
  }
  .hero .container p {
    font-size: 1rem;
  }
  .hero .container {
    padding: 30px 12px;
  }
  .button {
    padding: 8px 14px;
    font-size: 0.9rem;
  }
  .program-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  #contact h2 {
    font-size: 1.4rem;
  }
  #contact p {
    font-size: 0.95rem;
  }
}
