.container259 {
	display: flex;
	justify-content: center; /* カード全体を中央揃え */
	padding: 0px 10px 10px 0px;
	flex-wrap: nowrap; /* 折り返しを防ぐ */
	width: 100%;
	gap: 1%;
  }

.arrow {
  flex: 0 0 4%;
  font-size: 28px;
  font-weight: bold;
  font-family: "Comic Sans MS", "Chalkboard", "Balsamiq Sans", sans-serif;
  color: #ff6f61; /* 明るいオレンジ系 */
  text-shadow: 2px 2px 5px rgba(255, 182, 193, 0.8);
  display: inline-block; /* インライン要素として扱う */
align-self: center; /* 親要素内で上下中央に配置 */
}
	
.card {
  background-color: #ffefa3;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  flex: 0 0 23%;
  text-align: center;
  padding: 10px;
  flex-shrink:  1;
  box-sizing: border-box;
  min-width: 0;
}

.image-container {
  position: relative; /* 再生ボタンの基準点を設定 */
}

.image-container img {
  width: 100%;
  border-radius: 4px;
  display: block;
}

/* ホバー時に画像を少し光らせる */
.card:hover {
  filter: brightness(1.05); /* 明るさを20%増加 */
}

.video_play {
  display: inline-block;
  position: absolute; /* 画像を基準に絶対位置 */
  top: 50%; /* 縦方向中央 */
  left: 50%; /* 横方向中央 */
  transform: translate(-50%, -50%); /* 完全に中央揃え */
  width: 1em;
  height: 1em;
  border: 0.08em solid currentColor;
  border-radius: 50%;
  color: #fff;
  font-size: 60px;
	  background-color: rgba(0, 0, 0, 0.5); /* 背景色を半透明で追加 */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* 影を追加 */
}

.video_play::before {
  position: absolute;
  top: 50%;
  left: 30%;
  transform: translateY(-50%);
  width: 0px;
  height: 0px;
  border: 0.25em solid transparent;
  border-left: 0.4em solid currentColor;
  box-sizing: border-box;
  content: "";
}

.card h3 {
  background-color: #ffad3d;
  color: white;
  padding: 5px 0;
  margin: 10px 0;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
}

.card p {
  font-size: 14px;
  color: #333;
  margin: 5px 10px;
  text-align: left;
}

 /* iframeスタイル */
 .video-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* 半透明の黒背景 */
  display: none; /* 初期状態では非表示 */
  justify-content: center;
  align-items: center;
  z-index: 9999; /* 他のコンテンツより上に表示 */
}
.video-container iframe {
  width: 960px;
  height: 540px;
}
.video-container.active {
  display: flex; /* activeクラスがついたときに表示 */
}

.close-btn {
  position: absolute;
  top: 15vh; /* 画面の高さの10% */
  right: 10vw; /* 画面の幅の5% */
  background-color: transparent;
  border: none;
  font-size: 5vw; /* 画面幅に対して可変 */
  color: white;
  cursor: pointer;
  z-index: 10000;
}

.close-btn:hover {
  color: red;
}

.container258 {
  flex: 0 0 9%;
  flex-shrink: 0; /* 縮まないようにする */
  display: flex;
  align-items: center;
  justify-content: center;
}

.container258 img {
  width: 100%; /* 画像の幅を container258 に合わせる */
  height: auto; /* アスペクト比を保持 */
}

/* iPad（タブレット）サイズで動画を小さくする */
@media screen and (min-width: 768px) and (max-width: 1200px) {
.card h3 {
  font-size: 11px;
}
.card p {
  font-size: 10px;
}
	
  .video-container iframe {
    width: 720px;
    height: 405px;
  }
}

/* スマホ用にサイズを小さくするメディアクエリ */
@media screen and (max-width: 767px)  {
	 .container259 {
    flex-wrap: wrap;
    gap: 12px; 
	padding: 0px 10px 0px 0px;
  }

  .video-container iframe {
    width: 480px;
    height: 210px;
  }
	.close-btn {
  position: absolute;
  top: 100px; /* iframeの上に配置 */
  right: 0px; /* iframeの右に配置 */
  background-color: transparent;
  border: none;
  font-size: 100px;
  color: white;
  cursor: pointer;
  z-index: 10000; /* バツボタンを最前面に表示 */
}
  .container258 img {
    display: none; /* 画像を非表示 */
  }
  .arrow {
    display: none; /* 画像を非表示 */
  }
  .card {
  flex: 0 0 100%;
  max-width: 100%;
  }
}
