canvas#snowCanvas { /* 雪エフェクト */

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    z-index: 1000; /* 最前面に表示 */

    pointer-events: none; /* ユーザー操作をブロックしない */

}





.l-news-list1 {

    display: grid;

    grid-template-columns: repeat(4, 1fr); /* 横4列 */

    gap: 1.0em;

    list-style: none;

    padding: 0;

    margin: 0;

}

.l-news-list__item1 {

    background: #fff;

    border: 0.2px solid #ECECEC;

    border-radius: 5px;

    overflow: hidden;

    box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.1);

}

.post-thumbnail1 {

    position: relative;

    aspect-ratio: 13 / 9; /* 希望の比率を設定 */

    overflow: hidden;

}

.post-thumbnail1 img, .post-thumbnail1 video {

    width: 100%;

    height: 100%;

    object-fit: cover; /* 画像と動画のアスペクト比を保ちながら表示 */

}

.post-thumbnail1 img {

    width: 100%;

    height: auto;

    aspect-ratio: 277/192;

    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 0.5em;

    display: flex;

    flex-wrap: wrap;

    flex-direction: row; /* 左から右に変更 */

    align-items: center;

    line-height: 1.2; /* 行間を調整 */

    justify-content: flex-start; /* 左寄せにする */

}

.l-news-list__item__date1 {

    font-size: 0.875em; /* 小さめにする */

    color: #777;

    margin-left: 10px; /* タイトルと日付の間隔を設定 */

    display: inline-block;

}

.l-news-list__item__ttl1 .l-news-list__item__date1 {

    font-size: 0.875em;

    margin-left: 10px; /* タイトルと日付を分ける */

    color: #777;

}

.l-news-list__item__date-overlay1 {

    position: absolute;

    bottom: 0;

    right: 0;

    background-color: #fff; /* 半透明の背景 */

    color: #000;

    padding: 1px 4px;

    font-size: 0.9em;

    border-radius: 0;

    z-index: 2; /* カテゴリラベルの上に表示 */

}

.l-news-list__item1 a {

    text-decoration: none;

    color: inherit;

    display: block;

    padding: 8px 8px;

}

.u-tac1 {

    text-align: center;

    margin-top: 2em;

}

.c-button-type2 {

    display: inline-block;

    padding: 0.75em 1.5em;

    background-color: #007bff;

    color: #fff;

    text-decoration: none;

    border-radius: 500px;

}

.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;

    border-radius: 0;

    margin-bottom: 20px;

}

.c-button-type3s:hover {

    background-color: #616263;

}



@media (max-width: 600px) {

.l-news-list1 {

    grid-template-columns: repeat(2, 1fr); /* スマホでは2カラムに設定 */

}

}

.p-home-heading--type1-1 {

    font-family: 'Arial', sans-serif; /* Arialフォントに変更 */

    font-size: 3rem;

    font-weight: bold;

    color: #333;

    letter-spacing: 2px;

    text-transform: uppercase;

    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);

    margin-bottom: 5px;

	margin-top: 8px;

    text-align: center; /* 見出しを中央揃えに */

    padding-top: 0px;

}

.p-home-heading--type1-2 {

    font-family: 'Arial', sans-serif;

    font-size: 3rem;

    font-weight: bold;

    color: #FFFFFF;

    letter-spacing: 2px;

    text-transform: uppercase;

    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);

    margin-bottom: 20px;

    text-align: center;

    padding-top: 30px;

}

/* 既読テキストを追加するためのCSS */

.l-news-list__item1.read .post-thumbnail1::before {

    content: "✔";

    position: absolute;

    bottom: 0px;

    left: 0px;

    background-color: rgba(37,1,20,0.16);

    color: #fff;

    padding: 2px 2px;

    font-size: 0.75em;

    border-radius: 5px;

    z-index: 3;

    font-weight: bold;

}

rt {

    font-size: 1.5rem; /* ルビのフォントサイズを調整 */

    color: #1e56a3;

}

ruby {

    font-size: 3rem;

    align-content: center;

}

ruby2 {

    color: #F4FCFF;

    font-size: 3rem;

}





/* 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;

  height: auto;

  overflow-y: hidden; /* 縦スクロールを無効化 */

}



/* 動画1つのラッパー */

.video-wrapper .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%);

  font-size: 36px;

  color: white;

  background: rgba(0, 123, 255, 0.7); /* 半透明の青色 */

  border-radius: 50%;

  width: 60px;

  height: 60px;

  display: flex;

  justify-content: center;

  align-items: center;

  pointer-events: none;

}



/* 動画埋め込み */

.video-wrapper iframe {

  width: 100%;

  height: 100%;

  border: none;

}



/* 矢印ボタンのスタイル */

.arrow {

  position: absolute;

  top: 50%;

  transform: translateY(-50%);

  z-index: 2;

  background: none;

  border: none;

  cursor: pointer;

  opacity: 0.8;

}



.arrow img {

  width: 30px;

  height: auto;

}



.arrow:hover {

  opacity: 1;

}



.left-arrow {

  left: 10px;

}



.right-arrow {

  right: 10px;

}



@media (min-width: 768px) {

  .video-container {

    height: 400px;

  }

}

/* トップbannerカルーセル */

.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;

  min-width: 240px;

  max-width: 240px;

  box-sizing: border-box;

  position: relative;

  transition: transform 0.3s;

}



.carousel-item:hover {

  transform: translateY(-5px);

}



.carousel-item img {

  width: 100%;

  height: auto;

  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: #000000;

  color: white;

  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: white;

  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;

    min-width: 75vw;

  }



  .carousel-arrow {

    top: 55%;

    width: 36px;

    height: 36px;

    font-size: 1.2rem;

  }



  .carousel-arrow.left {

    left: 5px;

  }



  .carousel-arrow.right {

    right: 5px;

  }

}



/* 動画を右下に固定 */

#floatingVideo {

  position: fixed;

  bottom: 20px; /* 画面下から20px */

  right: 90px; /* 画面右から90px */

  cursor: pointer;

  z-index: 1000;

}



.video-thumbnail2 {

  width: 150px; /* スマホの場合のデフォルト横幅 */

  height: auto; /* アスペクト比を維持 */

  aspect-ratio: 16 / 9;

  object-fit: cover;

  border-radius: 10px;

  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);

}



/* PC向けのスタイル（動画を少し大きめに） */

@media (min-width: 768px) {

  .video-thumbnail {

    width: 300px; /* PCでは動画を大きめに */

  }

}



/* モーダル背景 */

.modal2 {

  display: none;

  position: fixed;

  z-index: 2000;

  left: 0;

  top: 0;

  width: 100%;

  height: 100%;

  overflow: auto;

  background-color: rgba(0, 0, 0, 0.8);

}



/* モーダルコンテンツ */

.modal-content2 {

  position: relative;

  margin: auto;

  padding: 0;

  width: 90%;

  max-width: 800px; /* 最大幅を設定 */

  border-radius: 10px;

  background-color: transparent;

  text-align: center;

  display: flex;

  justify-content: center;

  align-items: center;

}



/* YouTube動画のラッパー */

.video-wrapper2 {

  position: relative;

  width: 100%;

  padding-top: 56.25%; /* 16:9のアスペクト比 */

}



.video-wrapper2 iframe {

  position: absolute;

  top: 0;

  left: 0;

  width: 100%;

  height: 100%;

}



/* 閉じるボタン */

.close2 {

  position: absolute;

  top: -10px;

  right: -10px;

  color: white;

  font-size: 30px;

  font-weight: bold;

  cursor: pointer;

  background: black;

  border-radius: 50%;

  padding: 5px 10px;

}



#hero-visual {

  position: relative;

  height: 100vh;

  color: white;

  font-family: 'Noto Sans', sans-serif;

  overflow: hidden;

}

.hero-display {

  position: relative;

  height: 100%;

}

.hero-background {

  position: absolute;

  top: 0; left: 0;

  width: 100%; height: 100%;

  background-size: cover;

  background-position: center;

  z-index: 0;

  transition: background-image 0.5s ease-in-out;

}

.hero-content {

  position: absolute;

  bottom: 10%;

  left: 10%;

  z-index: 1;

}

.hero-content h1 {

  font-size: 2.8rem;

  margin: 0;

}

.hero-content p {

  font-size: 1.2rem;

  margin: 10px 0 20px;

}

.btn {

  display: inline-block;

  margin-right: 10px;

  padding: 10px 20px;

  background: red;

  color: white;

  text-decoration: none;

  border-radius: 4px;

}



/* バナー */

.thumbnails {

  position: absolute;

  bottom: 20px;

  left: 50%;

  transform: translateX(-50%);

  display: flex;

  z-index: 2;

}

.thumb {

  margin: 0 6px;

  cursor: pointer;

  position: relative;

}

.thumb img {

  width: 100px;

  height: 56px;

  object-fit: cover;

  border: 2px solid transparent;

  border-radius: 6px;

}

.thumb.active img {

  border-color: red;

}

.progress {

  position: absolute;

  bottom: 0;

  left: 0;

  height: 4px;

  background: red;

  width: 0%;

  transition: none;

}

.p-top-join-banner{

  background: #d9d9d9; /* スクショのグレー帯っぽい色 */

  padding: 16px 0;

}



.p-top-join-banner__link{

  display: block;

}



.p-top-join-banner__img{

  display: block;

  width: 100%;

  height: auto;

  max-width: 1100px;   

  margin: 0 auto;

}





@media (max-width: 768px){

  .p-top-join-banner{

    padding: 12px 0;

  }

}

/* 併願プラン：ヒーローに重ねて下も詰める */

.p-top-join-banner{

  background: transparent;         

  margin-top: -70px;               

  margin-bottom: -20px;       

  padding: 0;

  position: relative;

  z-index: 10;                     

}





.p-top-join-banner__link{

  display: block;

}



.p-top-join-banner__img{

  display: block;

  width: 100%;

  height: auto;

  max-width: 1100px;

  margin: 0 auto;

  border-radius: 12px;



}





@media (max-width: 768px){

  .p-top-join-banner{

    margin-top: -30px;

    margin-bottom: -10px;

  }

  .p-top-join-banner__img{

    border-radius: 10px;

  }

}





/* =========================

   固定記事・注目記事

========================= */

/* 固定記事 */

.l-news-list__item1.is-pinned {

    position: relative;

    overflow: hidden;

}



/* 固定記事の帯 */

.l-news-list__item1.is-pinned::before {

    content: "⚑  お知らせ";

    display: block;



    background: #e91e63;

    color: #fff;



    font-size: 11px;

    font-weight: 700;

    letter-spacing: .05em;



    padding: 7px 12px;

    line-height: 1.2;

}



/* 変な特別感を消す */

.l-news-list__item1.is-pinned {

    position: relative;

    background: #fff;

    border: 2px solid #f09abb;

    border-radius: 6px;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);

    overflow: hidden;

}



/* ========================================

   入試フローティングバナー

======================================== */



.hb-admission-float {

  position: fixed;



  left: 14px;

  bottom: 14px;



  /* PC：少し小さく */

  width: 230px;



  z-index: 9999;



  border-radius: 5px;

  overflow: visible;



  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.20);



  transition:

    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),

    box-shadow 0.3s ease;



  touch-action: pan-y;



  user-select: none;

  -webkit-user-select: none;

}





/* 画像 */

.hb-admission-float img {

  display: block;



  width: 100%;

  height: auto;



  border-radius: 5px;



  pointer-events: none;



  user-select: none;

  -webkit-user-select: none;

  -webkit-user-drag: none;

}





/* ========================================

   小さい ◀ ▶ タブ

======================================== */



.hb-admission-float__handle {

  position: absolute;



  top: 50%;

  right: -18px;



  transform: translateY(-50%);



  width: 18px;

  height: 32px;



  padding: 0;

  margin: 0;



  border: none;



  border-radius: 0 4px 4px 0;



  background: rgba(32, 73, 154, 0.82);

  color: #fff;



  font-size: 10px;

  line-height: 1;



  display: flex;

  align-items: center;

  justify-content: center;



  cursor: pointer;



  z-index: 2;



  box-shadow: 2px 1px 5px rgba(0,0,0,0.12);

}





.hb-admission-float__handle:hover {

  background: rgba(32, 73, 154, 1);

}





/* ========================================

   左側へ収納

======================================== */



.hb-admission-float.is-hidden {

  /*

   画像は完全に画面外へ。

   小さい矢印タブだけ残す。

  */

  transform: translateX(calc(-100% - 14px));



  box-shadow: none;

}





/* ========================================

   スマートフォン

======================================== */



@media screen and (max-width: 767px) {



  .hb-admission-float {

    left: 8px;

    bottom: 8px;



    /* スマホも少し小さめ */

    width: 44vw;

    max-width: 170px;

  }





  .hb-admission-float__handle {

    right: -17px;



    width: 17px;

    height: 30px;



    font-size: 9px;



    border-radius: 0 4px 4px 0;

  }





  .hb-admission-float.is-hidden {

    transform: translateX(calc(-100% - 8px));

  }



}