body {
  font-family:"Noto Sans JP", "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
  padding-bottom: 70px;
  text-align: justify;
}
.header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 30px 30px;
  max-width: calc((300px + 60px) * 4);
  margin: 0 auto;
}
@media (max-width: 680px) {
 .header{
  padding: 10px 5px 35px;
 } 
}

.header img {
  height: 135px;
}
@media (max-width: 680px) {
.header img {
  height: 90px;
}
  
}

.header .icons {
  display: flex;
  align-items: center;
  position: relative;
}

.header .icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: 15px;
  cursor: pointer;
}

.header .icon img {
  width: 65px;
  height: 70px;
}
@media (max-width: 680px) {
  .header .icon img {
    width: 50px;
    height: 50px;
  }
  
}
.header .icon span {
  font-size: 14px;
}
.menu-toggle{
  display: flex;
  flex-direction: column;
  align-items: center;
}
.menu-list {
  display: none;
  position: absolute;
  top: 110px;
  left: 0px;
  background: white;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 10px;
  width: 90px;
  text-align: left;
  z-index: 1;
}

.menu-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-list li {
  cursor: pointer;
  padding: 5px 10px;
}

.menu-list li:hover {
  background-color: rgba(0, 0, 0, 0.1);
}
.filters {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 20px;
}
.sort_button{
  width: 100%;
  border: none;
  background: none;
  box-shadow: none;
  cursor: pointer;
  padding: 6px 0;
  position: relative;
  text-align: left;
  left: 5px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 5px;
  width: 95%;
  max-width: calc((300px + 30px) * 4);
  margin: 0 auto;
  opacity: 0;
  transition: opacity 0.5s ease-in;
}


.grid.loaded {
  opacity: 1;
}

/* For smaller screens, show 2 items per row */
@media (max-width: 767px) {
  .grid {
    width: calc((46vw) * 2);
    margin-top: 20px;
  }
}


.grid-item {
  min-width: 100px;
  max-width: calc(24.5% - 20px);
}
@media (max-width: 1200px) {
  .grid-item {
    max-width: calc(49% - 30px);
  }
}
@media (max-width: 680px) {
  .grid-item {
    max-width: calc(98% - 20px);
    padding: 5px 15px !important;
  }
}


.grid-item h3{
  margin-bottom: 5px;
  font-size: 16px;
  font-size: clamp(20px, 1.5vw, 24px);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

@media (max-width:680px){
  .grid-item h3{
    font-size: 16px;
    margin-bottom: 0;
    margin-top: 5px;
  }
}

.grid-item img{
  width: 100%;
}
.grid_txt{
  position: absolute;
  left: 0;
  top: -50px;
}@media (max-width: 767px) {
  .grid_txt {
    top: -85px;
    left: 50%;
    transform: translateX(-50%);
  }
}
@media (max-width: 680px) {
 .grid_txt{
  /* left: 57%; */
  width: 100%;
  text-align: center;
 } 
}
.tag-filters {
  display: flex;
}

.tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 10px;
  cursor: pointer;
}
.tag img{
  width: 70px;
  border-radius: 8px;
  box-sizing: border-box;
  border: 3px solid transparent; 
}
@media (max-width: 680px) {
  .tag img{
    width: 43px;
  }
}
.tag img:hover,
.tag.selected img {
  transform: scale(1.1);
}

.tag.selected img{
  background-color: #fff7e6;
  border-color: #fa0;
}


/* モーダル関連 */
#searchModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

#searchModal.visible {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

#searchModal .modal-content {
  background-color: white;
  width: 40%;
  /* height: 60%; */
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 60px 40px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
  display: none;
}
@media (max-width: 680px) {
#searchModal .modal-content {
  padding: 20px 10px;
  width: 90%;
}
}

#searchModal.visible .modal-content{
  display: flex;
}

#searchModal h2 {
  margin: 20px 0;
}
@media (max-width: 680px) {
#searchModal h2 {
  font-size: 16px;
  /* text-align: center; */
}
}

#searchModal input {
  width: 60%;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #707070;
}
@media (max-width: 680px) {
  #searchModal input{
    /* margin: 0 auto; */
  }
 }


#searchModal button {
  width: 30%;
  padding: 10px;
  margin: 0 auto;
  background-color: #FF5513;
  color: white;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 3px;
  border: none;
  cursor: pointer;
  max-width: 200px;
  min-width: 100px;
  margin-top: 30px;
}
@media (max-width: 680px) {
  #searchModal button{
    width: 43%;

  }
}


#searchModal .close-btn {
  position: absolute;
  top: 60px;
  right: 20px;
  cursor: pointer;
}
@media (max-width: 680px) {
#searchModal .close-btn {
  right: -12px;
  top: 30px;
  width: 20%;
  max-width: 70px;
  } 
}


#videoContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  max-width: 80%;
  margin: 0 auto;
}

h1{
  padding: 5px 0 0;
  margin: 0 auto;
  width: 95%;
  max-width: calc((300px + 30px) * 4);;
}
@media (max-width: 680px) {
  h1{
    font-size: 20px;
    width: 100%;
    text-align: center;
}
  }
.video {
  padding: 0;
  border-radius: 5px;
  margin-bottom: 25px;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.video img {
  width: 100%;
  transition: transform 0.3s ease; 
}
.video img:hover{
  transform: scale(0.95); 
}
.play-button {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgb(136 124 124 / 68%);
  pointer-events: none;
}
@media (max-width: 680px) {
  .play-button {
    top: 57%;
  }
}

.play-button::before {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: 58%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-color: transparent transparent transparent #ffffff;
  border-width: 15px 0 15px 25px;
}







.video_date {
  text-align: right;
}
.video-container {
  width: 100%;
  max-width: 800px; 
  margin: 0 auto;
}
.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; 
  height: 100%;
  overflow: hidden;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
#orderIcon {
  position: relative;
}

.video_title {
  font-size: 18px;
  font-weight: normal;
  margin-top: 3px;
  text-align: right;

}

.image-container {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.image-item {
  text-align: center;
  /* margin-right: 15px; */
  min-width: 90px;
}
@media (max-width: 680px) {
  .image-item{
    min-width: 40px;
  }
}

.image-item p {
  margin-top: 5px;
}
@media (max-width: 680px) {
.image-item p {
  font-size: 12px;
}
}
.menu-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  position: relative;
  margin: 8% auto;
  padding: 20px;
  width: 80%;
  max-width: 800px;
  z-index: 2;
}
@media (max-width: 680px) {
  .modal-content {
    margin: 80px auto;
  }
}
.modal-content-bl{
  display: flex;
  justify-content: center;
}

.modal-content-inner{
  display: flex;
  flex-direction: column;
  padding: 0 45px;
  letter-spacing: 2px;
}
@media (max-width: 680px) {
  .modal-content-inner{
    padding: 0 10px;

  }
}



.close-btn {
  position: absolute;
  top: -15px;
  right: 10px;
  display: inline-block;
  width: 70px;
  height: 24px;
  cursor: pointer;
}

search-close-btn {
  top: -35px;
  right: 10px;
}

.close-btn:before,
.close-btn:after {
  position: absolute;
  content: "";
  width: 80%;
  height: 1.7px;
  background-color: #707070;
}


.close-btn:before {
  transform: rotate(45deg);
}

.close-btn:after {
  transform: rotate(-45deg);
}

#modalBackground {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 1;
}

button[data-filter].active{
  font-weight: bold;
}
button[data-filter].active .checkmark::after {
  content: '';
  display: block;
  position: absolute;
  top: 10px;
  right: 3px;
  width: 10px;
  height: 5px;
  border-left: 3px solid #FF5513;
  border-bottom: 3px solid #FF5513;
  transform: rotate(-45deg);
  border-radius: 1px;
}
.release_date{
  text-align: right;
  font-size: clamp(12px, 1vw, 16px);
}
@media (max-width: 680px) {
.release_date{
  margin: 0;
}
}


/* パスワード */

#loadingScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#logo {
  opacity: 0;
  transition: opacity 2s;
  text-align: center;
}
#logo.hidden{
  opacity: 0;
  transition: opacity 0s;
}

.visible {
  opacity: 1;
  transition: opacity 2s ease-in-out;
}

.hidden {
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

#passwordScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

#passwordScreen.hidden {
  display: none;
}

#loadingScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
}

#logo {
  opacity: 1;
  position: absolute;
  width: 250px;
  transition: opacity 2s;
  clip-path: polygon(0 0, 0 100%, 0 100%, 0 0); 
  animation: reveal 1.3s 1.3s forwards, hide 1.3s 3.5s forwards; 
}

#logo img {
  max-width: 250px;
  width: 80%;
}
@media (max-width: 680px) {
  #logo img {
    width: 55%;
  }
  }
@keyframes reveal {
  0% {
    clip-path: polygon(0 0, 0 100%, 0 100%, 0 0); 
  }
  100% {
    clip-path: polygon(0 0, 0 100%, 100% 100%, 100% 0); 
  }
}

@keyframes hide {
  0% {
    clip-path: polygon(0 0, 0 100%, 100% 100%, 100% 0);
  }
  100% {
    clip-path: polygon(100% 0, 100% 100%, 100% 100%, 100% 0);
  }
}



#passwordScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 99999999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 2s, visibility 2s;
}

#passwordScreen.visible{
  opacity: 1;
  visibility: visible;
}

#passwordInput {
  height: 2em;
  width: 220px;
  border-radius: 5px;
  margin-bottom: 15px;
  padding-right: 60px;
  border: solid 1px #707070;
  font-size: 24px;
}
@media (max-width: 680px) {
  #passwordInput {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 0px;
    padding-right: 0px; 
    border: solid 1px #707070;
    font-size: 16px;
  }
}

#passwordSubmit {
  position: absolute;
  right: 6px;
  top: 28.5%;
  transform: translateY(-25%);
  height: calc(3em * 0.75);
  width: calc(4em * 0.75);
  border-radius: 50%;
  background-color: #ffffff00;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
}
@media (max-width: 680px) {
  #passwordSubmit {
    right: 3px;
    top: 34%;
    height: 32px;
    width: 32px;
  }
}
@media (max-width: 680px) {
::-webkit-full-page-media, :future, :root #passwordSubmit{
    width: 45px;
    right: -5px;
}
}
.passwordform{
  position: relative;
  border-color: #707070;
}


#passwordPrompt {
  font-size: 1.2em;
  margin-bottom: 15px;
  color: #000000;
}
@media (max-width: 680px) {
  #passwordPrompt{
    font-size: 14px;
  }
}
.sp_only{
  display: none;
}
@media (max-width: 767px) {
  .sp_only{
    display: block;
  }
}
svg path{
  fill: #FF4136;
  stroke: #FF4136;
  stroke-width: 40;
}
@media (max-width: 680px) {
  svg path{
    fill: #FF4136;
    stroke: #FF4136;
    stroke-width: 25;
  }
}
.grid p{
  margin: 0;
  padding: 0 1px;
  font-size: 18px;
}
p.video-comment {
  margin-top: 8px;
  margin-bottom: 15px; /* コメントの下に1行分のスペースを作る */
  font-weight: bold;

}
p.video-comment mark{
    background: -webkit-gradient(linear, left top, left bottom, color-stop(60%, transparent), color-stop(0%, yellow));
    background: linear-gradient(transparent 60%, yellow 0%);
}

p.list_st {
  margin-top: 8px;
  margin-bottom: 15px;
  text-indent: -1em;
    padding-left: 1em;
}

.list_detail:last-of-type{
  margin-bottom: 18px;
}
p.list_detail {
  font-size: 16px;
  margin-bottom: 8px;
  text-indent: -0.65em;
    padding-left: 0.65em;
    margin-left: 5%;
}


p.point {
    font-size: 14px;
    background: -webkit-gradient(linear, left top, left bottom, color-stop(60%, transparent), color-stop(0%, yellow));
    background: linear-gradient(transparent 60%, yellow 0%);
    display: inline;
}

.grid p.annotation {
  font-size: 14px;
  margin-top: 10px;
}
img.video-line-image{
  width: 70%;
  margin: 20px auto 0;
  padding: 10px;
  pointer-events: none;
  display: block;
}
.thumbnail{
  cursor: pointer;
}
.inline_bl{
  display: inline-block;
}
@media (max-width: 680px) {
  .grid p{
    font-size: 16px;
  }
  p.point {
      font-size: 14px;
  }
 }