/*―――――――――――――――――――――*
  1. 雪エフェクト
*―――――――――――――――――――――*/
canvas#snowCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1000;
  pointer-events: none;
}

/*―――――――――――――――――――――*
  2. 最新のお知らせセクション
*―――――――――――――――――――――*/
.l-news-list1 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (max-width: 600px) {
  .l-news-list1 {
    grid-template-columns: repeat(2, 1fr);
  }
}
.l-news-list__item1 {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 5px;
  box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.post-thumbnail1 {
  position: relative;
  aspect-ratio: 13 / 9;
  overflow: hidden;
}
.post-thumbnail1 img,
.post-thumbnail1 video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category-label {
  position: absolute;
  top: 0; left: 0;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 3px;
  font-size: 0.65em;
  border-radius: 6px;
  z-index: 1;
}
.l-news-list__item__ttl {
  font-size: 0.95em;
  font-weight: bold;
  margin: 0.5em 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  line-height: 1.2;
}
.l-news-list__item__date-overlay1 {
  position: absolute;
  bottom: 0; right: 0;
  background: #fff;
  color: #000;
  padding: 1px 4px;
  font-size: 0.9em;
  z-index: 2;
}
.l-news-list__item1 a {
  display: block;
  padding: 8px;
  color: inherit;
  text-decoration: none;
}
.u-tac1 {
  text-align: center;
  margin-top: 2em;
}
.c-button-type2 {
  display: inline-block;
  padding: 0.75em 1.5em;
  background-color: #007bff;
  color: #fff;
  border-radius: 500px;
  text-decoration: none;
}
.c-button-type2:hover {
  background-color: #0056b3;
}
.c-button-type3s {
  display: inline-block;
  padding: 0.75em 1.5em;
  background-color: #616263;
  color: #fff;
  text-decoration: none;
  margin-bottom: 20px;
}
.c-button-type3s:hover {
  background-color: #616263;
}
/* ————————————————
   全ての p-home-heading--type1-1 / type1-2 見出しを中央寄せ
   ———————————————— */
h2.p-home-heading--type1-1,
h2.p-home-heading--type1-2 {
  display: block;
  width: auto;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
  background: none !important;
  /* 必要に応じて色もリセット */
  color: inherit !important;
}

/* ルビ用スタイルはそのまま */
rt {
  font-size: 1.5rem; /* ルビのフォントサイズを調整 */
  color: #1e56a3;
}
ruby {
  font-size: 3rem;
  align-content: center;
}
ruby2 {
  color: #F4FCFF;
  font-size: 3rem;
}

/*―――――――――――――――――――――*
  3. ヒーロー & サムネイル切り替え
*―――――――――――――――――――――*/
#hero-visual {
  position: relative;
  height: 80vh;
  overflow: hidden;
  font-family: 'Noto Sans', sans-serif;
}
.hero-background {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: background-image 0.6s ease-in-out;
  z-index: 0;
}
.hero-content {
  position: absolute;
  bottom: 10%;
  left: 10%;
  z-index: 1;
  color: #fff;
}
.hero-content h1 { font-size: 3rem; margin-bottom: .5em; }
.hero-content p  { font-size: 1.25rem; margin-bottom: 1em; }
.hero-content .btn {
  display: inline-block;
  margin-right: 8px;
  padding: 10px 20px;
  background: #e60012;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
	  background: #000;     /* 黒 */
  color: #fff;          /* 文字は白のまま */
}
.btn:hover,
.hero-content .btn:hover {
  background: #333;     /* ボタンホバー時を濃いグレーに */
}

/* サムネイル行 */
.thumbnails {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.thumb {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.thumb img {
  display: block;
  width: 150px; /* サイズ調整は自由に */
  height: auto;
  border-radius: 8px;
}


/* アクティブ時だけさらにサイズアップ */
.thumb.active img {
  width: 180px;    /* ←150px→180pxに */
  height: auto;
  border-color: #E60012;
  border: 2px solid transparent;
}
.thumbnail-carousel {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
  z-index: 20;
  position: relative;
}


/* タイムバー */
.thumb .progress {
  position: absolute;
  bottom: -6px; /* 画像のすぐ下に */
  left: 0;
  height: 4px;
  background-color: red;
  width: 0%;
  transition: none;
}
.thumb.active .progress {
  animation: progressAnim 5s linear forwards;
}

@keyframes progressAnim {
  from { width: 0%; }
  to { width: 100%; }
}

/*―――――――――――――――――――――*
  4. ピックアップカルーセル
*―――――――――――――――――――――*/
.pickup-carousel-container {
  position: relative;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
}
.pickup-carousel-slider {
  display: flex;
  gap: 20px;
  padding: 18px 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.pickup-carousel-slider::-webkit-scrollbar {
  display: none;
}
.carousel-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 240px;
  box-sizing: border-box;
  transition: transform 0.3s;
}
.carousel-item:hover {
  transform: translateY(-5px);
}
.carousel-item img {
  width: 100%;
  border-radius: 12px;
  display: block;
}
.carousel-caption {
  text-align: center;
  font-size: 1.2rem;
  padding: 0.5rem;
  font-weight: bold;
  color: #333;
}
.badge-new {
  position: absolute;
  top: -12px; right: -12px;
  background: #ff4081;
  color: #fff;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 0.4em 0.8em;
  border-radius: 999px;
  z-index: 10;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  width: 40px; height: 40px;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 20;
}
.carousel-arrow.left {
  left: 10px;
}
.carousel-arrow.right {
  right: 10px;
}
@media (max-width: 768px) {
  .pickup-carousel-container {
    padding: 0 30px;
  }
  .carousel-item {
    width: 75vw;
  }
  .carousel-arrow {
    top: 55%;
    width: 36px; height: 36px;
    font-size: 1.2rem;
  }
  .carousel-arrow.left { left: 5px; }
  .carousel-arrow.right{ right: 5px; }
}

/*―――――――――――――――――――――*
  5. YouTube／Instagram スライダー
*―――――――――――――――――――――*/
.p-home-youtube {
  background-color: #EBFEFF;
  padding: 20px 0;
}
.c-container {
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 20px;
}
.video-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  margin-bottom: 100px;
}
.video-container {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  white-space: nowrap;
  padding: 10px;
  scrollbar-width: thick;
  scrollbar-color: #007bff #f0f0f0;
  overflow-y: hidden;
}
.video-container .video-wrapper {
  flex: 0 0 auto;
  width: 200px; height: 356px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  background: #000;
}
.video-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.play-button {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60px; height: 60px;
  background: rgba(0, 123, 255, 0.7);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 36px;
  color: #fff;
  pointer-events: none;
}
.video-wrapper iframe {
  width: 100%; height: 100%;
  border: none;
}
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  cursor: pointer; opacity: 0.8; z-index: 2;
}
.arrow img {
  width: 30px; height: auto;
}
.left-arrow { left: 10px; }
.right-arrow{ right: 10px; }
@media (min-width: 768px) {
  .video-container { height: 400px; }
}
/* 追加 */  
.hero-banner-spacer {
  /* 重なりを浅めに */
  margin-top: -20px;   /* 以前より overlap を半分に */
  padding-top: 60px;   /* 上の余白をちょっと広く */
}
.hero-banner-spacer .thumbnails {
  position: static;     /* 絶対位置解除 */
  transform: none;      /* translateXもしない */
  display: flex;
  justify-content: center;  
  gap: 12px;            /* サムネ間のスペース */
  margin: 0;            /* 余白リセット */
}

.hero-banner-spacer .thumb img {
  width: 180px;       /* 適度な幅。任意で調整可 */
  height: auto;       /* 高さを自動にして比率を保つ */
  border-radius: 6px;
  object-fit: cover;  /* オプション：枠に切り取って表示 */
}
/*―――――――――――――――――――――*
  6. 右下固定ビデオ
*―――――――――――――――――――――*/
#floatingVideo {
  position: fixed;
  bottom: 20px; right: 90px;
  cursor: pointer;
  z-index: 1000;
}
.video-thumbnail2 {
  width: 150px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
@media (min-width: 768px) {
  .video-thumbnail2 { width: 300px; }
}

/*―――――――――――――――――――――*
  7. モーダル
*―――――――――――――――――――――*/
.modal2 {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  overflow: auto;
}
.modal-content2 {
  position: relative;
  margin: auto;
  padding: 0;
  width: 90%;
  max-width: 800px;
  border-radius: 10px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-wrapper2 {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}
.video-wrapper2 iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.close2 {
  position: absolute;
  top: -10px; right: -10px;
  background: #000;
  color: #fff;
  font-size: 30px;
  border-radius: 50%;
  padding: 5px 10px;
  cursor: pointer;

}

/*―――――――――――――――――――――*
  8. メディアクエリ（予備）
*―――――――――――――――――――――*/
@media (max-width: 768px) {
  /* スマホ共通調整が必要ならここへ */
}
@media (min-width: 1024px) {
  /* 大画面向け調整が必要ならここへ */
}


