


.marquee-pinterest-container {
  width: 100vw;
  overflow: hidden;
  position: relative;
}

.marquee-pinterest-track {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, auto);
  gap: 16px;
  animation: scrollLeft 40s linear infinite;
  width: max-content;
}

.marquee-item {
  width: 240px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.marquee-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.marquee-item .info {
  padding: 10px;
}

.marquee-item .info h5 {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

@keyframes scrollLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ランダム風の高さに */
.marquee-item {
  height: auto;
}

.marquee-item:nth-child(3n) img { height: 160px; }
.marquee-item:nth-child(4n) img { height: 220px; }
.marquee-item:nth-child(5n) img { height: 140px; }




.event-carousel {
    width: 100vw;
    overflow: hidden;
    background: #f8f9fa;
    margin: 0 auto 32px auto;
    padding: 10px 0;
  }
  .event-carousel-track {
    display: flex;
    gap: 20px;
    cursor: grab;
    user-select: none;
    width: max-content;
  }
  .event-card {
    flex: 0 0 200px;
    height: 160px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px #0001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    font-size: 1.04rem;
    overflow: hidden;
    transition: box-shadow 0.18s;
  }
  .event-card img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
  }
  .event-card-title {
    padding: 6px 10px 0 10px;
    width: 100%;
    text-align: center;
    font-weight: 600;
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .event-card-date {
    font-size: 0.93rem;
    color: #666;
    text-align: center;
    padding-bottom: 4px;
  }
  @media (max-width: 600px) {
    .event-card { 
      flex-basis: 76vw; 
      height: 140px;
      width: 200px;
    }
  }
  
  #news .badge {
    font-size: 0.85rem;
    background-color: #ffeaa7;
    color: #2d3436;
    font-weight: 600;
    border-radius: 12px;
  }
  
  #news ul li {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  .features-section {
    padding-top: 100px;
    padding-bottom: 100px;
    background: #fdfdfd;
  }
  
  .features-section .card {
    padding-top: 30px;
    padding-bottom: 30px;
    transition: transform 0.3s ease;
    border-radius: 20px;
  }
  
  .features-section .card:hover {
    transform: translateY(-5px);
  }
  
  .features-section .card-body {
    padding: 2rem 1rem;
  }
  
  .features-section img {
    width: 10rem;
    margin-bottom: 1rem;
  }
  
  .event-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  /* background-color: #ccff99; ★ 削除：カード全体の背景色設定 */
  border-radius: 10px; /* ★ 追加：カード全体の丸み */
  overflow: hidden;
  box-shadow: 0 2px 6px #0002;
}

.event-card img {
  width: 100%;
  height: 200px; /* ★ 変更：高さを 200px に固定 */
  object-fit: cover;
  display: block;
  border-top-left-radius: 10px; /* ★ 上側の丸み */
  border-top-right-radius: 10px; /* ★ 上側の丸み */
}

.event-card-title {
  padding: 8px 12px 4px;
  font-size: 0.9rem; /* タイトルを少し小さく */
  font-weight: bold;
  text-align: center;
  color: #333;
  background-color: #dcffb866; /* ★ 追加：タイトルの背景を黄緑に */
  border-radius: 5px; /* ★ タイトル部分の丸み */
}

.event-card-date {
  font-size: 0.8rem; /* 日付をさらに小さく */
  color: #666;
  text-align: center;
}



  /* ------------------------------
     loopSlider
  ------------------------------ */
  .loopSliderWrap {
      top: 0;
      left: 0;
      height: 240px; /* loopSliderWrapの高さを調整 */
      overflow: hidden;
      position: absolute;
  }

  .loopSliderWrap:after {
      content: "";
      display: block;
      clear: both;
  }

  .loopSlider {
      margin: 1rem auto; /* 上部のmarginと下部のmarginを設定 */
      width: 100%;
      height: 240px; /* loopSliderの高さを調整 */
      text-align: left;
      position: relative;
      overflow: hidden;
      visibility: hidden;
  }

  .loopSlider ul {
      height: 240px; /* ulの高さを調整 */
      float: left;
      overflow: hidden;
      /* gap: 30px;  ★ 削除：Flexbox を使わない */
  }

  .loopSlider ul li {
  width: 280px; /* カードの幅を調整 */
  height: 260px; /* カードの高さを調整 */
  float: left;
  overflow: hidden;
  margin-right: 30px; /* ★ 追加：右マージンで間隔を作る */
  display: block; /* ★ 維持：Loop Slider のスクリプトが block 要素を想定している可能性 */
}

  /* 最後の要素の右マージンを削除 */
  .loopSlider ul li:last-child {
    margin-right: 0;
  }


  .loopSlider ul li img {
      width: 100%;
      height: 100%;
      object-fit: cover; /* 画像がliのサイズに合わせてカバー */
      max-height: 200px; /* ★ 追加：最大高さを設定 (必要に応じて値を変更) */
  }

  @media only screen and (max-width: 768px) {
      .loopSliderWrap,
      .loopSlider,
      .loopSlider ul {
          height: 140px; /* SP時の高さを調整 */
      }

      .loopSlider ul li {
          width: 200px; /* SP時の幅を調整 */
          height: 140px; /* SP時の高さを調整 */
          margin-right: 20px; /* SP時の右マージンを調整 */
      }

      .loopSlider ul li:last-child {
        margin-right: 0; /* SP時も最後の要素の右マージンを削除 */
      }

      .event-card img {
          height: 80px; /* SP時の画像の高さを調整 */
      }
  }

.hero-section {
position: relative;
width: 100%;
height: 70vh;
overflow: hidden;
}

.hero-section video {
position: absolute;
top: 0; left: 0;
width: 100%; height: 100%;
object-fit: cover;
z-index: -2; /* 背景にする */
}

/* 薄グレーのオーバーレイ */
.hero-section::before {
content: "";
position: absolute;
top: 0; left: 0;
width: 100%; height: 100%;
background-color: rgb(24 30 66 / 47%);
z-index: -1; /* 動画より上、テキストより下 */
}

.hero-section .text-center {
position: relative;
z-index: 1; /* テキストは一番前面 */
}


.hero-section .text-center h1 {
font-size: 3rem; /* 大きめフォント */
font-weight: 800; /* 極太 */
}

.hero-section .text-center p {
font-size: 1.25rem; /* 少し大きめ */
font-weight: 600;
}
@keyframes fadeIn {
0% {
  opacity: 0;
  transform: scale(0.95);
}
100% {
  opacity: 1;
  transform: scale(1);
}
}

.fade-in-image {
opacity: 0;
animation: fadeIn 1.2s ease forwards;
/* 必要に応じて遅延や繰り返し */
}

/* PC用（デフォルト） */
#search-form {
  display: flex;
  /* flex-wrap: wrap; を削除、または nowrap に変更 */
  flex-wrap: nowrap; /* これで要素が強制的に横並びになります */
  justify-content: center;
  align-items: center;
  gap: 1rem; /* 要素間の間隔 */
}

#search-form .btn-group {
  /* ここはそのまま nowrap で問題ないことが多いです */
  flex-wrap: nowrap;
}

#search-form .input-wrapper {
  display: flex;
  gap: 0.5rem;
  max-width: 300px;
  /* width: 100%; は残してOKですが、flex-growと合わせて調整されるので必須ではありません */
  width: 100%;
}

#search-form .input-text {
  flex-grow: 1;
}


@media only screen and (max-width: 768px) {
  .hero-section {
    height: 92vh;
    }
    
  .hero-section .text-center img {
    width: 100%;
    height: auto;
    margin-bottom: 0.8rem;
  }
  .hero-section .text-center p {
    font-size: 1rem;
  }

  #search-form {
    flex-direction: column; /* 縦方向に要素を並べる */
    align-items: center; /* 中央揃え */
  }

  #search-form .btn-group {
    width: 100%; /* 横幅いっぱいに広げる */
    display: flex; /* ボタンを横並びにするためにflexを維持 */
    justify-content: center; /* ボタン群を中央揃え */
    margin-bottom: 1rem; /* ボタン群の下に間隔を空ける */
  }

  #search-form .btn-group button {
    flex-grow: 1; /* 各ボタンが均等にスペースを占めるようにする */
  }

  /* 入力と検索ボタンをまとめるための新しいflexコンテナ */
  #search-form .input-wrapper {
    display: flex;
    width: 100%; /* 横幅いっぱいに広げる */
    max-width: 300px; /* PC版のmax-widthを維持 */
    gap: 0.5rem; /* 入力とボタンの間の間隔 */
  }

  #search-form .input-text {
    flex-grow: 1; /* 入力欄が残りのスペースを占める */
    width: auto; /* flex-growとの併用のためautoに設定 */
  }
}


.badge-type {
  background-color: #191d69ab; /* カテゴリバッジ色：赤系 */
  color: white;
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
}

.badge-title {
  background-color: rgba(0,0,0,0.6); /* タイトルバッジ色：半透明黒 */
  color: white;
  font-size: 0.85rem;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
}
