/* トップページのスタイル */
@charset "UTF-8";

/*=========================================================================================
メインビジュアル
==========================================================================================*/
#input:checked ~ #content {
  transform: translateX(0px);
}


.headline {
  background: url(images/video.jpeg) no-repeat 0 0;
  background-size: 100% 100%; 
  background-color: rgba(246, 248, 249, 0.801);
  background-position: center;
  background-blend-mode: lighten;
  font-size: 2.75rem;
  font-weight: bold;
  margin: auto;
  text-align: center;
  animation: fadein 3s forwards;
}

@keyframes fadein {
  0% {opacity: 0}
  100% {opacity: 1}
} 

.headlinesp{
  display: none;
}

@media screen and (max-width: 768px){
  .headline {display: none;
  }
}

@media screen and (max-width: 768px){
  .headlinesp {
    display: block;
    background: url(images/video.jpeg) no-repeat 0 0;
    background-size: 100% 100%; 
  background-color: rgba(246, 248, 249, 0.801);
  background-position: center;
  background-blend-mode:lighten ;
  font-size: 1.75rem;
  font-weight: bold;
  margin: auto;
  text-align: center;
}
}

@media screen and (max-width: 480px){
  .headlinesp {
    font-size: 1.25rem;
  }}

 
  .youtube {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    opacity: 0; 
    transform: translateY(20px); 
    transition: opacity 1s ease-out, transform 1s ease-out; 
  }
  
  .youtube.visible {
    opacity: 1; 
    transform: translateY(0); 
  }
  
  .youtube iframe {
    width: 315px;
    height: 180px;
    border: 2px solid #3498db;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    opacity: 0.8; 
    transform: translate(-15px, 15px);
    transition: transform 0.3s ease-out, opacity 0.3s ease-out; 
  }
  
  .youtube iframe:hover {
    transform: translate(0, 0); 
    opacity: 1; 
  }