/* ==========================================
   安町スタイルシート20260220 代替bgカラー#f4f8f2
   ========================================== */

:root{
  --main:#6FAF6A;
  --sub:#A8D5A2;
  --bg:#F4F8F2;
  --accent:#F7EFE3;
  --text:#333;
}

/* ===============================
   リセット
   =============================== */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:'Kosugi Maru', sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.8;
  overflow-x:hidden;
}

/* ===============================
   共通レイアウト
   =============================== */

section{
  padding:100px 10%;
  text-align:center;
}

.section-title{
  font-size:28px;
  color:var(--main);
  margin-bottom:40px;
  position:relative;
}

.section-title::after{
  content:"";
  width:60px;
  height:3px;
  background:var(--sub);
  display:block;
  margin:15px auto 0;
  border-radius:5px;
}

/* ===============================
   ヘッダー
   =============================== */

header{
  position:fixed;
  top:0;
  width:100%;
  background:white;
  padding:15px 5%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  z-index:1000;
  box-shadow:0 2px 10px rgba(0,0,0,0.05);
}

header h1{
  color:var(--main);
  font-size:20px;
}

nav a{
  text-decoration:none;
  margin-left:20px;
  color:var(--text);
  font-size:14px;
  transition:0.3s;
}

nav a:hover{
  color:var(--main);
}

/* ===============================
   ボタン
   =============================== */

.btn{
  background:var(--accent);
  padding:12px 30px;
  border-radius:30px;
  text-decoration:none;
  color:var(--text);
  display:inline-block;
  transition:0.3s;
  font-weight:bold;
}

.btn:hover{
  background:white;
  transform:scale(1.05);
}

/* ===============================
   動画ヒーロー
   =============================== */

.hero{
  position:relative;
  height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:white;
  overflow:hidden;
}

.hero video{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  object-fit:cover;
}

.hero::after{
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(111,175,106,0);
  /*background:rgba(111,175,106,0.6);*/
}

.hero-content{
  position:relative;
  z-index:2;
}

.hero h2{
  font-size:42px;
  margin-bottom:20px;
}

/* ===============================
   画像
   =============================== */

.image-section img{
  width:100%;
  max-width:900px;
  border-radius:20px;
  margin-top:20px;
  box-shadow:0 10px 30px rgba(0,0,0,0.1);
}

/* ===============================
   年間テーマスライダー
   =============================== */

.slider{
  max-width:600px;
  margin:40px auto;
  font-size:22px;
  font-weight:bold;
  background:white;
  padding:40px;
  border-radius:20px;
  box-shadow:0 5px 20px rgba(0,0,0,0.05);
}

.slide{
  display:none;
}

.slide.active{
  display:block;
  animation:fadeIn 1s ease;
}

/* ===============================
   FAQ アコーディオン
   =============================== */

.faq-container{
  max-width:800px;
  margin:0 auto;
  text-align:left;
}

.faq-item{
  margin-bottom:15px;
  border-radius:15px;
  overflow:hidden;
  box-shadow:0 5px 15px rgba(0,0,0,0.05);
}

.faq-question{
  width:100%;
  padding:20px;
  background:white;
  border:none;
  outline:none;
  text-align:left;
  font-size:16px;
  font-weight:bold;
  cursor:pointer;
  position:relative;
  transition:0.3s;
}

.faq-question::after{
  content:"+";
  position:absolute;
  right:20px;
  font-size:20px;
  transition:0.3s;
}

.faq-item.active .faq-question{
  background:var(--sub);
}

.faq-item.active .faq-question::after{
  content:"−";
}

.faq-answer{
  max-height:0;
  overflow:hidden;
  background:white;
  transition:max-height 0.4s ease;
  padding:0 20px;
}

.faq-answer p{
  padding:20px 0;
}

/* ===============================
   固定CTA
   =============================== */

.fixed-cta{
  position:fixed;
  bottom:0;
  left:0;
  width:100%;
  background:var(--main);
  color:white;
  text-align:center;
  padding:15px;
  z-index:9999;
  box-shadow:0 -3px 15px rgba(0,0,0,0.1);
}

.fixed-cta a{
  color:white;
  font-weight:bold;
  text-decoration:none;
  font-size:16px;
}

/* ===============================
   CTAセクション
   =============================== */

.cta{
  background:linear-gradient(135deg,var(--main),var(--sub));
  color:white;
  padding:100px 10%;
}

/* ===============================
   Googleマップ
   =============================== */

iframe{
  margin-top:20px;
  border-radius:20px;
  width:100%;
}

/* ===============================
   入園案内ページ
   =============================== */

ol{
  text-align:left;
  max-width:600px;
  margin:0 auto;
  padding-left:20px;
}

ol li{
  margin-bottom:10px;
}

/* ===============================
   スクロールふわっと
   =============================== */

.fade{
  opacity:0;
  transform:translateY(40px);
  transition:all 1s ease;
}

.fade.show{
  opacity:1;
  transform:translateY(0);
}

@keyframes fadeIn{
  from{opacity:0;}
  to{opacity:1;}
}

/* ===============================
   スマホ対応
   =============================== */

@media(max-width:768px){

  section{
    padding:40px 6%;
  }

  .hero h2{
    font-size:26px;
  }

  nav{
    display:none; /* ハンバーガー化する場合はJS追加 */
  }

  .slider{
    font-size:18px;
    padding:25px;
  }

  .fixed-cta{
    font-size:14px;
    padding:12px;
  }

}

/* ===============================
   スクロール時ヘッダー縮小
   =============================== */

header{
  transition:all 0.3s ease;
}

header.scrolled{
  padding:8px 5%;
  box-shadow:0 4px 15px rgba(0,0,0,0.1);
}

header.scrolled h1{
  font-size:16px;
}

/* ===============================
   無限ループ横スクロールカルーセル（大サイズ）
   =============================== */

.carousel-wrapper{
  overflow:hidden;
  width:100%;
  margin:50px 0;
  position:relative;
}

.carousel-track{
  display:flex;
  gap:30px; /* 画像間の余白を少し広く */
  animation:scroll 25s linear infinite; /* 少しゆっくり */
}

.carousel-track img{
  width:500px;        /* ★画像サイズ大幅UP */
  flex-shrink:0;
  border-radius:20px;
  box-shadow:0 10px 40px rgba(0,0,0,0.15);
  transition:transform 0.3s;
}

.carousel-track img:hover{
  transform:scale(1.05);
}

/* キーフレーム（無限スクロール） */
@keyframes scroll{
  0%{ transform: translateX(0); }
  100%{ transform: translateX(-50%); }
}

/* スマホ対応 */
@media(max-width:768px){
  .carousel-track img{
    width:300px; /* スマホでは少し小さめ */
  }
  .carousel-track{
    gap:20px;
  }
}

 /* ===============================
   セクション
   =============================== */
  section { padding:5rem 2rem; max-width:1200px; margin:0 auto; position:relative; }

  h2 { font-size:2rem; color:#4caf50; margin-bottom:2rem; text-align:center; font-family:'Comic Sans MS', cursive, sans-serif; }

  /* 特徴カード */
  .features { display:flex; flex-wrap:wrap; gap:2rem; justify-content:center; perspective:1000px; }
  .feature { background:#ffffff; padding:2rem; border-radius:25px; width:300px; text-align:center; box-shadow:0 6px 8px rgba(0,0,0,0.1); transition:0.3s transform; border:2px dashed #4caf50; }
  .feature:hover { transform:translateY(-8px) rotateY(3deg); }
  .feature img { width:180px; margin-bottom:1rem; }

  /* 年齢別クラス */
  .classes { display:flex; flex-wrap:wrap; gap:2rem; justify-content:center; }
  .class-card { background:#fffbe6; padding:2rem; border-radius:25px; width:220px; text-align:center; box-shadow:0 6px 8px rgba(0,0,0,0.1); border:2px solid #a8d5ba;
}
/* ===============================
   フッターサイトマップ
   =============================== */

.site-footer{
  background:#2f6f4f;
  color:white;
  padding:60px 10% 20px;
}

.footer-inner{
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:40px;
}

.footer-column{
  flex:1;
  min-width:220px;
}

.footer-column h3{
  margin-bottom:20px;
  font-size:18px;
}

.footer-column ul{
  list-style:none;
  padding:0;
}

.footer-column li{
  margin-bottom:10px;
}

.footer-column a{
  color:white;
  text-decoration:none;
  font-size:14px;
  transition:opacity 0.3s;
}

.footer-column a:hover{
  opacity:0.7;
}

.footer-bottom{
  text-align:center;
  margin-top:40px;
  border-top:1px solid rgba(255,255,255,0.3);
  padding-top:20px;
  font-size:13px;
}

/* スマホ対応 */
@media(max-width:768px){
  .footer-inner{
    flex-direction:column;
  }
}


