@charset "utf-8";
/* CSS Document */
.margin_top1 {
  margin-top: 1rem;
}
.margin_top3 {
  margin-top: 3rem;
}
.margin_top5 {
  margin-top: 5rem;
}
.margin_top8 {
  margin-top: 8rem;
}
.movie_box1 {
  max-width: 1000px;
  height: auto;
  margin-right: auto;
  margin-left: auto;
  margin-top: 0;
}


@media (max-width:1000px) {
  .movie_box1 {
    width: 94%;
  }
}
.center_wrapper {
  text-align: center; /* ← 親が中央寄せ */
}
h1 {
  padding: 0;
  margin-top: 5rem;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 0; /* ← 横方向中央揃え */
  font-size: 2.2rem;
  position: relative;
  display: inline-block; /* ← 文字幅にあわせる */
  width: 100%;
  text-align: center;
}
h1 img {
  margin-right: auto;
  margin-left: auto;
  display: block;
}
h1 p {
  width: 100%;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  margin-top: -1.2rem;
  margin-right: 0;
  margin-left: 0;
  margin-bottom: 0;
  height: auto;
  color: #FFFFFF;
  font-size: 3rem;
  font-family: "fot-udmarugo-large-pr6n", sans-serif;
  background-color: var(--main_color);
  z-index: 1;
  display: block;
  position: relative;
}
.txt {
  max-width: 1000px;
  margin-right: auto;
  margin-left: auto;
  margin-top: 2rem;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 1.2rem;
  line-height: 1.6;
}
@media (max-width:1000px) {
  .txt {
    width: 94%;
  }
}
#pickup {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem;
  background-color: #F4F4F4;
  display: flex;
  flex-wrap: wrap;
  gap: 0px; /* ← 新規追加 */
  border-radius: 5px;
  margin-top: 3rem;
  justify-content:space-between;
}
#pickup #title {
    width: 100%;
    text-align: center;
    font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    font-size: 2rem;
    padding-top: 0.5rem;
    padding-bottom: 1rem;
    color: #333;
    font-weight:500;
}
#pickup .video-item2 {
    width: calc((100% - 30px) / 4); /* ← gap考慮した新計算式 */
    border: 1px solid #ccc;
    padding-bottom: 0.5rem;
    margin: 0;
    background-color: #fff;
    box-sizing: border-box;
    transition: box-shadow 0.3s ease;
    height: auto;
    overflow: hidden; /* ← 追加：拡大時にはみ出させない */
    cursor: pointer;
}

@media (max-width:800px) {
  #pickup {
    flex-direction: column;
  }
  #pickup .video-item2 {
    width: 96%;
    margin-bottom: 3rem;
    margin-right: auto;
    margin-left: auto;
  }
}

.video-item2 img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease-in-out;
  object-fit: cover; /* 任意：縦横比維持のため */
	opacity: 0.8;
}
@media (max-width:800px) {
	.video-item2 img {
		  width: 100%;
		  height: 150px; /* ← 任意の高さを指定 */
		  object-fit: cover; /* アスペクト比維持＋はみ出しトリミング */
	}
}
@media (max-width:500px) {
	.video-item2 img {
		  height:80px; /* ← 任意の高さを指定 */
	}
}
.video-item2 img:hover {
  opacity: 1;
  transform: scale(1.1);
}

.movie_list {
  width: 100%;
  padding: 0;
  height: auto;
  display: flex;
  flex-wrap: wrap;
  column-gap: 15px;
  row-gap: 3rem;
  justify-content: flex-start;
}
@media (max-width:800px) {
  .movie_list {
    flex-direction: column;
    row-gap: 0rem;
  }
}
.movie_list div {
  width: calc((100% - 30px) / 3); /* gap考慮: 15px * 2 = 30px */
  height: auto;
  overflow: hidden;
}
@media (max-width:999px) {
  .movie_list div {
    width: calc(95% / 3);
    height: auto;
  }
}
@media (max-width:800px) {
  .movie_list div {
    width: 100%;
    margin-bottom: 4rem;
  }
}
.movie_list div a {
  width: 100%;
  height: auto;
  display: block;
  text-decoration: none;
  border: 1px solid #ccc;
  margin: 0;
  padding: 0;
  border-radius: 5px;
  overflow: hidden;
}
.movie_list div a img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 3px;
  transition: transform 0.3s ease-in-out;
}
.movie_list div a:hover img {
  transform: scale(1.1);
}
.movie_list div a:hover {
  border: 1px solid var(--main_color);
}
.movie_list div p {
  display: none;
  color: #333333;
  font-weight: 500;
  margin-top: 0.5rem;
  margin-right: 0;
  margin-left: 0;
  margin-bottom: 0;
  padding: 0;
  font-size: 1.1rem;
}
.movie_list div span {
  display: block;
  color: #7B7B7B;
  padding-top: 0.5rem;
  margin: 0;
  font-size: 0.8rem;
  text-align: right;
}
.search-box {
  text-align: center;
  margin-bottom: 1.5rem;
  margin-top: 5rem;
}
.search-box input {
  padding: 0.5rem;
  width: 92%;
  font-size: 1rem;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  /*gap: 0.5rem;*/
  justify-content: space-between;
  max-width: 1000px;
  margin-right: 0;
  margin-left: 0;
  padding: 0;
  margin-top: 0;
}
.tabs button {
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  margin: 0;
  cursor: pointer;
}
@media (max-width:1000px) {
  .tabs {
    justify-content: flex-start;
    gap: 1rem;
  }
}
.video-list {
  display: flex;
  flex-wrap: wrap;
  margin: 0 auto;
  padding: 0;
  max-width: 1000px;
  gap: 0px;
  justify-content: flex-start !important;
  width: 100%;
}
.video-item {
  box-sizing: border-box;
  width: calc((100% - 30px) / 3); /* ← 3列構成にきっちり揃える */
  border: 1px solid #E3E3E3;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin-top: 0;
  margin-right: 0;
  margin-left: 0;
  margin-bottom: 1rem;
  overflow: hidden;
	cursor: pointer;
}
.video-item:hover {
  border: 1px solid #999;
}
/*
    .video-item a {
  display: flex;              
  flex-direction: column;    
  height: 100%;              
  text-decoration: none;
  color: inherit;
    }
*/
.video-trigger {
  display: flex; /* ← 追加 */
  flex-direction: column; /* ← 追加 */
  height: 100%; /* ← 追加 */
  text-decoration: none;
  color: inherit;
}
/*
.video-item a img {
		width: 100%;
		  height:auto;
		padding: 0;
		margin: 0;
		display: block;
		opacity: 0.8;
	transition: transform 0.3s ease;
}
 .video-item a img:hover {
	opacity: 1;
	 transform: scale(1.1);
}
*/
.video-item .video-trigger img {
  width: 100%;
  height: auto;
  padding: 0;
  margin: 0;
  display: block;
  opacity: 0.8;
  transition: transform 0.3s ease;
}
@media (max-width:800px) {
	.video-item .video-trigger img {
		  width: 100%;
		  height: 150px; /* ← 任意の高さを指定 */
		  object-fit: cover; /* アスペクト比維持＋はみ出しトリミング */
	}
}
@media (max-width:500px) {
	.video-item .video-trigger img {
		  height:80px; /* ← 任意の高さを指定 */
	}
}
.video-item .video-trigger img:hover {
  opacity: 1;
  transform: scale(1.1);
}
.caption {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  flex: 1; /* ← 高さを残りのスペースに拡げる */
}
.caption p {
  font-size: 0.75rem;
  margin: 0;
  color: #666;
}
.caption h2 {
  font-size: 1.25rem;
  margin: 1.5rem 0;
  color: #333;
  flex-grow: 1;
  line-height: 1.4;
}
.caption .time {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #666;
}
.caption .time .date {
  text-align: right;
}
@media (max-width: 800px) {
  .video-item {
    width: 100%;
  }
}

.search-form-1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  border: 2px solid #1976cc;
  margin: 0;
  border-radius: 3px;
}
.search-form-1 input {
  width:500px;
  height: 45px;
  padding: 5px 15px;
  border: none;
  box-sizing: border-box;
  font-size: 1em;
  outline: none;
}
@media (max-width: 580px) {
	.search-form-1 input {
	  width:250px;
	}
}
.search-form-1 input::placeholder {
  color: #777777;
}
.search-form-1 button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 45px;
  border: none;
  background-color: #1976cc;
  cursor: pointer;
}
.search-form-1 button::after {
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z' fill='%23fff'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  content: '';
}
.button-3 {
  width: auto;
  margin: 0 auto;
  /*padding: .9em 2em;*/
  border: none;
  border-radius: 5px;
  box-shadow: 0 2px 3px rgb(0 0 0 / 25%), 0 2px 3px -2px rgb(0 0 0 / 15%);
  background-color: #1976cc;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
}
.button-3:hover {
  background-color: #0966bc;
}
.active {
  background-color: var(--ichiro_color);
  box-shadow: 0 2px 3px rgb(0 0 0 / 25%), 0 2px 3px -2px rgb(0 0 0 / 15%);
}
.video-container {
  max-width: 1000px;
  margin: 20px auto;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
}
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.video-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}
.video-thumb {
  width: 200px;
  cursor: pointer;
  text-align: center;
  font-size: 0.9em;
}
.video-thumb img {
  width: 100%;
  border: 1px solid #ccc;
}
.hidden {
  display: none !important;
}
.sort-controls {
  margin-bottom: 3rem;
}
.sort-controls {
  display: flex;
  flex-wrap: wrap;
  gap: .3em 2em;
  border: none;
}
@media (max-width:500px) {
  .sort-controls  {
	flex-direction: column;
  }
}
.sort-controls label {
  display: flex;
  align-items: center;
  gap: 0 .5em;
  position: relative;
  cursor: pointer;
}
@media (max-width:500px) {
  .sort-controls label   {
    margin-top: 0.6rem;
  }
}
.sort-controls label::before, .sort-controls label:has(:checked)::after {
  border-radius: 50%;
  content: '';
}
.sort-controls label::before {
  width: 19px;
  height: 19px;
  background-color: #e6edf3;
}
.sort-controls label:has(:checked)::after {
  position: absolute;
  top: 50%;
  left: 9px;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background-color: #1976cc;
  animation: anim-radio-1 .3s linear;
}
@keyframes anim-radio-1 {
  0% {
    box-shadow: 0 0 0 1px transparent;
  }
  50% {
    box-shadow: 0 0 0 10px #1976cc33;
  }
  100% {
    box-shadow: 0 0 0 10px transparent;
  }
}
.sort-controls input {
  display: none;
}
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
}
.modal-content {
  position: relative;
  width: 90%;
  max-width: 80%;
  margin: 5% auto;
  background: #fff;
  padding: 0;
  border-radius: 8px;
}
.video-frame-wrapper {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
}
.video-frame-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.close-button {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 24px;
  color: #000;
  cursor: pointer;
  z-index: 10;
}


.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}




.box_type5{
	display: flex;
  flex-wrap: wrap;
  gap: 10px; /* 各カード間に余白を */
  justify-content: space-between;
  max-width: 1000px;
  margin: 0 auto;
align-items: stretch;
	/*
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1000px;
    padding: 0;
    margin-left: auto;
    margin-right: auto;
    height: auto;
    justify-content: space-between;
*/
}
@media (max-width:730px) {
	.box_type5{
		/*margin-bottom: 20rem;*/
	}
}
.box_type5 div{
	/*
    height: auto;
    width: calc(99% / 3);
    word-break: break-all;
    margin-top: 0;
    font-size: 1.4rem;
    margin-bottom: 5px;
    display: flex;
	*/
	  flex: 1 1 calc(33.333% - 1rem); /* 3列で均等配置（gap分を引く） */
  min-width: 280px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.box_type5 div:nth-child(3n){
	margin-right: 0%;
}
.box_type5 div a{
	flex: 1;
    text-decoration: none;
    display: block;
    border: 1px solid #CCCCCC;
    border-radius: 3px;
    background-color: #FFFFFF;
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.box_type5 div a:hover{
    border: 1px dotted #BC4042;
    background-color: #F9EFEF;
}
.box_type5 div span{
    font-weight: bold;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    text-align: center;
    font-size: 1.5rem;
    color: #555555;
    margin-bottom: 0.6rem;
    font-family: "hiragino-kaku-gothic-pron", sans-serif;
}
.box_type5 div img{
    width: 100%;
    height: auto;
    display: block;
    max-width: 100px;
    margin-left: auto;
    margin-right: auto;

}
.box_type5 div p{
    font-family: "hiragino-kaku-gothic-pron", sans-serif;
    font-size: 1rem;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    display: block;
    color: #333333;
}

@media (max-width:730px) {
	.box_type5{
		display: flex;
		width: 100%;
		flex-flow: column;
	}
	.box_type5 div{
    width: 90%;
    margin-top: auto;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 2rem;
    display: block;
	}
	.box_type5 div:nth-child(3n){
    width: 90%;
    margin-top: auto;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 2rem;
	}
}

.margin-top1{
	margin-top: 1rem;
}
.margin-top2{
	margin-top: 2rem;
}
.margin-top5{
	margin-top: 5rem;
}
.margin-top10{
	margin-top: 10rem;
}

.margin-bottom2{
	margin-bottom: 2rem;
}
.margin-bottom5{
	margin-bottom: 5rem;
}
.margin-bottom10{
	margin-bottom: 10rem;
}
