.movie_text {
  font-family: serif;          
  color: #fff;
  font-size: 400%;
  position: absolute;
  left: 30%;
  top: 200px;
  z-index: 1;
}

div.vid_contents {
width: 100%;/*背景色を横幅いっぱいに広げる*/
text-align: center;
margin: auto;
padding: 0% 0% 0% 0%;/*ここで動画の周りの余白を調整*/
background: #ffffff;/*余白の背景色*/
  /* 20241228 */
  height: calc(100vw * 9 / 16); /* 画面幅に基づいて高さを16:9比率で固定 */
  position: relative; /* 必要に応じて動画の位置を調整 */
  overflow: hidden; /* 動画の切り替え時に溢れる部分を隠す */
}
video.vid_main {
width: 100%;
max-width: 100%;/*PC版での最大幅*/
  /* 20241228 */
  position: absolute;
  top: 0;
  left: 0;
  height: 100%; /* 親要素に合わせて高さを固定 */
  object-fit: cover; /* 動画をコンテナいっぱいに表示しつつ、アスペクト比を維持 */
}

.ytbox{
    position: relative;
    width: 100%;
  margin-top:3em;
}
.ytbox:before {
    content:"";
    display: block;
    padding-top: 56.25%; /* 高さと幅の比を16:9に固定。9/16*100=56.25 */
}
.ytbox iframe{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.bnrbox{
    margin:5em auto 0;
 text-align:center; 
}

.bnrflex{
  padding:1.5em 20%;
  display:flex;
  justify-content:space-around;
}

.bnrflexpotion{
  padding:0.5em 10%;
  display:flex;
  justify-content:space-around;
}

@media screen and (max-width:768px){
  .bnrflex{
  padding:1.5em 0px;
  }
}

.bnrflex a{
 display:inline-block;
  flex:0 0 40%;
}

.bnrflex a img{
 width:100%; 
  border:1px solid #999;
}

/*モーダル 2021-11*/
.overlay {
width: 100%;
height: 100vh;
background: rgba(0,0,0,0.5);
position: fixed;
z-index: 1001;
  top:0;
}

.btn_area {
position: fixed;
  top:50%;
  left:50%;
  transform: translate(-50%, -50%);
  width:90%;
    max-width:600px;
}

.img-pop{
  position: relative;
  margin: 0 auto;
  padding:1rem;
  text-align:center;
}

.img-pop .img-pop-a:hover{
  opacity:1;
}

.img-pop img{
  width:100%;
box-shadow: 0px 0px 33px 7px rgba(0,0,0,0.6);
}

.button-x{
  display:inline-block;
  position: absolute;
  top: 5%;
  right: 5%;
  z-index: 10001;
}

.button-x:hover{
  cursor: pointer;
}
  
.round_btn {
  display: inline-block;
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;  /* 丸みの度合い */
  background: #333; /* ボタンの背景色 */
}

.round_btn::before, .round_btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 15px;
  background: #fff; /* バツ印の色 */
}

.round_btn::before {
  transform: translate(-50%,-50%) rotate(45deg);
}

.round_btn::after {
  transform: translate(-50%,-50%) rotate(-45deg);
}

/* 20241226 */

.video-card-container {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 24px !important;
  padding: 16px 16px 0px 16px !important;
}

@media (min-width: 768px) {
  .video-card-container {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

.video-card {
  background: #fff !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
  overflow: hidden !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.video-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2) !important;
}

.video-iframe-wrapper {
  position: relative !important;
  padding-top: 56.25% !important; /* 16:9アスペクト比を維持 */
  overflow: hidden !important;
}

.video-iframe-wrapper iframe {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.video-title {
  font-size: 1.2em !important;
  margin: 8px 16px 4px !important;
  line-height: 120%;
}

.video-description {
  font-size: 0.9em !important;
  color: #555 !important;
  margin: 4px 16px 16px !important;
  line-height: 120%;
}

/* 20241226topMovie */
/* 通常のリンクホバー時の透明度効果 */
a:hover {
  opacity: 0.7; /* 通常は透明度を下げる */
  transition: opacity 0.3s ease;
}

/* no-hover-effect クラスを持つリンクにはホバー効果を適用しない */
a.no-hover-effect:hover {
  opacity: 1; /* ホバー時も透明度をそのまま維持 */
  transition: none; /* アニメーションを無効化（必要に応じて） */
}

/* 動画自体のスタイルが透明化される場合に備える */
.no-hover-effect video:hover {
  opacity: 1; /* 動画の透明度もそのまま維持 */
  transition: none; /* 必要に応じてアニメーションを無効化 */
}

/*20250415*/
.responsive-banners {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 2em auto;
}

.responsive-banners .banner-link {
  flex: 1;
  display: block;
  overflow: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.responsive-banners .banner-link:hover {
  opacity: 0.9;
  transform: translateY(-4px);
}

.responsive-banners .banner-link img {
  width: 100%;
  height: auto;
  display: block;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .responsive-banners {
    flex-direction: column;
    gap: 15px;
  }
}
