/* CSS Document */

    body { font-family: sans-serif; margin: 0; padding: 0; }
.youtube-firstpart {
	text-align: center;
	max-width: 1200px;
	margin: 0 auto;
}
.youtube-firstpart h1 {
	margin-bottom: 0;
	color: #3d3d3d;
}
.youtube-firstpart img {
	width: 80%;
}
.youtube-firstpart p {
	font-size: 16px;
}
.youtube-firstpart .mini {
	font-size: 12px;
}
    .gallery {
      display: flex;
      flex-wrap: wrap;
      gap: 16px;
      justify-content: flex-start;
	  max-width: 1200px;
		margin: 2em auto 5em;
    }
    .thumbnail {
      cursor: pointer;
      position: relative;
      max-width: calc((100%/3) - 11px);
    }
    .thumbnail img {
      width: 100%;
      height: auto;
      display: block;
		transition: .4s;
    }
	.thumbnail img:hover {
		opacity: 0.5;
    }
    .modal {
      display: none;
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.8);
      justify-content: center;
      align-items: center;
      z-index: 1000;
    }
    .modal-content {
      background: #fff;
      width: 90%;
      max-width: 1000px;
      padding: 20px;
      display: flex;
      flex-direction: column;
      gap: 20px;
		max-height: 90vh;
		position: relative;
    }
.video-and-chapters {
	display: flex;
	column-gap: 10px;
}
.video-frame {
	width: 70%;
}
.chapter-list {
	width: 30%;
}
    .left-column {
      flex: 6;
      display: flex;
      flex-direction: column;
      gap: 20px;
    }
    .video-frame iframe {
      width: 100%;
      height: auto;
		aspect-ratio: 16/9;
    }
    .right-column {
      flex: 4;
      display: flex;
      flex-direction: column;
    }
.sil-youtube-h3 {
	margin: 0 0 10px 0;
}
#chapterList {
	display: flex;
    flex-direction: column;
	overflow-y: auto;
    max-height: 300px;
}
    #chapterList div {
      cursor: pointer;
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .chapter-list img {
      width: 40%;
      height: auto;
      flex-shrink: 0;
    }
    .product-list {
      display: flex;
      /*flex-wrap: wrap;*/
      gap: 16px;
		overflow-x: auto;
    }
    .product-list div {
      width: 300px;
		text-align: center;
		min-width: 220px;
		margin-bottom: 5px;
    }
.product-list div a {
	text-decoration: none;
}
.product-list p {
      margin: 0;
    }
    .product-list img {
      width: 35%;
      height: auto;
	　margin: 0 auto;
    }
    .hidden { display: none; }
.font-shuei {
	font-family: dnp-shuei-mgothic-std, sans-serif;
    font-style: normal;
    font-weight: 600;
}
.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
	width: 36px;
  cursor: pointer;
	background-color: #fff;
	border-radius: 50px;
}
@media screen and (max-width: 768px) {
	.youtube-firstpart h1 {
		font-size: 22px;
	}.youtube-firstpart p br{
		display: none;
	}
	.gallery {
      justify-content: space-between;
		margin: 2em 1rem 5em; 
    }
	.thumbnail {
      cursor: pointer;
      position: relative;
      max-width: calc(50% - 10px);
    }
	.modal-content {
		flex-direction: column;
		padding: 10px;
		gap: 0px;
		margin-top: 130px;
		max-height: calc(100vh - 90px);
	}
	.left-column, .right-column {
		flex: 1 1 100%;
	}
	.chapter-list {
		max-height: 200px;
	}
	.video-and-chapters {
		flex-direction: column;
	}
	.video-frame, .chapter-list {
		width: 100%;
	}
	#chapterList {
		flex-direction: row;
		overflow-x: auto;
		max-height: 300px;
		gap: 8px;
	}
	#chapterList div {
		flex-direction: column;
		flex: 0 0 120px;
		margin-bottom: 0;
	}
	#chapterList div p {
		font-size: 12px;
	}
	.chapter-list img {
		width: 100%;
	}
	.product-list {
		overflow-x: auto;
	}
	.product-list div {
		min-width: 150px;
		margin-bottom: 10px;
	}
	.product-list img {
		width: 50%;
	}
	.sil-youtube-h3 {
		font-size: 16px;
	}
	.product-list p {
		font-size: 12px;
	}
	.sil-youtube-h3-chapter {
		display: none;
	}
	.close-button {
		top: 120px;
		right: 10px;
		font-size: 24px;
	}
}









