body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

header {
    background-color: #333;
    color: white;
    padding: 1rem;
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 1rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
}

main {
    padding: 1rem;
}

.video-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.video-item {
    background-color: white;
    border: 1px solid #ddd;
    padding: 1rem;
    width: calc(33.333% - 2rem);
    box-sizing: border-box;
    text-align: center;
}

.video-item img {
    max-width: 100%;
    height: auto;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem;
    position: fixed;
    width: 100%;
    bottom: 0;
}
p {
    display: flex;
    text-align: left;
    
}
.tag {
    margin-left: 32px;
    margin-bottom: 30px;
    
   
}
iframe {
   margin-left: 15px;
}








body {
    font-family: Arial, sans-serif;
}

.video-thumbnail {
    display: flex;
    align-items: center;
    margin: 20px;
}

.video-thumbnail img {
    width: 200px;
    height: auto;
    margin-right: 20px;
}

.video-info {
    max-width: 600px;
}

.video-info h3 {
    margin: 0;
    font-size: 1.5em;
}

.video-info p {
    margin: 5px 0 0;
}

/* ポップアップのスタイル */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
}

.popup-close {
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: #333;
}


.ad-top {
  border: solid 3px #000;
  width: 100%;
  height: 100%;
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  opacity: 0;
  animation: fadein 5s 4s forwards; /* 3秒後に1秒かけてアニメーション */
}

@keyframes fadein{
    from {
        opacity: 0;
        transform: translateY(300px);
    }
    to {
        opacity: 1;
    }
    
}



