/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

/* 
body.home .ct-container {
display: none;
}
*/








/* 物件一覧 */
img.wp-image-128 {
 border: 20px solid #333;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.apartment {

  border: 8px solid #ccc;
  padding: 10px;
  background: linear-gradient(135deg, #f9f9f9, #e0e0e0);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  border-radius: 12px;


}

/* マンション画像アニメーション */

.image-item {


  

}



/* マンション画像ホバーキャプション */

.image-item {
  position: relative;
  display: inline-block;
  max-width: 100%;



}

.image-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;

}


.image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  backdrop-filter: blur(6px);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 16px;
  padding: 12px;
  transform: scale(0.95);
  opacity: 0;
  transition: all 0.3s ease;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.image-item:hover .image-caption {
  transform: scale(1);
  opacity: 1;
}





/* 登場アニメーション（派手めバウンス） */
@keyframes bounceFadeIn {
  0%   { opacity: 0; transform: translateY(50px) scale(0.8); }
  40%  { opacity: 1; transform: translateY(-25px) scale(1.1); }
  65%  { transform: translateY(12px) scale(0.95); }
  80%  { transform: translateY(-6px) scale(1.03); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* 初期状態 */
.fade-in {
  opacity: 0;
  transform: translateY(30px) scale(0.9);
}

/* 表示されたときに派手にアニメーション */
.fade-in.visible {
  animation: bounceFadeIn 1s ease-out forwards;
}










/* 動画埋め込み系 */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  justify-items: center;
}

.video-item {
  position: relative;
  width: 100%;
  max-width: 680px;
}

.video-item iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(197, 0, 0, 0.6);
  color: #fff;
  padding: 20px 30px;
  font-size: 20px;
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.video-item:hover .video-caption {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.05);
}















/* Youtube動画サムネ */

.wp-image-273:hover {
  
  transform: scale(1.1);
  transition: all .3s ease-in-out;
}



