@charset "UTF-8";
.sample2 {
    overflow: hidden;
    margin: 10px 8px 10px 16px;
    position: relative;
    display: inline-block; /* 追加：サイズを内容に合わせるため */
}

.sample2 img {
    width: 100%; /* 画像が親要素に対して100%の幅を持つように */
    height: auto; /* アスペクト比を維持 */
}

.sample2 .caption {
    text-align: center;
    position: absolute;
    color: #fff;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.sample2 .mask {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    background-color: rgba(0, 0, 0, 0.6);
    transition: all 0.6s ease;
}

.sample2:hover .mask {
    opacity: 1;
    padding-top: 80px;
}





/*==================================================
ふわっ
===================================*/




.line-height-center {
    height: 100px;
    line-height: 100px;
}




/* フルワイド背景 */
.bg-img {
  position: absolute;
  background-size: cover;
  left: 50%;
  right: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  min-height: 300px; 
  text-align: center;
}


@media screen and (max-width: 480px) {
  .bg-img {
    height: auto;
    min-height: 200px;
  }
}


.bg-img1 {
  background-image: url("./img/bg001.jpg");
  background-size: cover;
  z-index: 0;
}

.bg-img2 {
  background-image: url("./img/23435675.jpg");
  background-size: cover;
  z-index: 0;
}

.bg-img:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: white;
  opacity: 0.7;
  z-index: -1;
}


.bg-img p {
  position: absolute;
  font-size: 14px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
}