@charset "utf-8";

/* header */

header {
  margin-top: 5rem;
}

.home {
  display: block;
  width: fit-content;
  padding: .6rem;
}

.main-title {
  font-size: 1.5rem;
  line-height: 1.4;
}

.sub-title {
  font-size: 1rem;
}

/* main */

.detail-container {
  margin-top: 0.5rem;
  padding: 6rem 0 0;
  border-top: 1px solid #888;
  display: flex;
  justify-content: space-evenly;
}

.img-title-date {
  display: flex;
  flex-direction: column;
  width: 640px;
}

.img-frame {
  width: 640px;
  height: 360px;
  flex-shrink: 0;
}

.detail-container .image-source {
  font-size: .8rem;
  padding-right: .4rem;
}

.detail-text {
  margin-top: 2rem;
}

.title {
  font-size: 1.6rem;
  line-height: 1.5;
  text-align: center;
}

.detail-text .date {
  margin-top: .4rem;
  text-align: center;
}

.toggle-setlist {
  font-size: 1.3rem;
  font-weight: bold;
  background-color: #fff;
  margin-top: 1rem;
  padding: .4rem .4rem .2rem 0;
  border: none;
  cursor: pointer;
  background-image: linear-gradient(#333, #333);
  background-size: 0 2px;
  background-position: left bottom;
  background-repeat: no-repeat;
  transition: background-size .2s;
}

.toggle-setlist:hover {
  background-size: 100% 2px;
}

.setlist {
  margin-top: 1rem;
  margin-bottom: .5rem;
  padding-left: .5rem;
  border-left: 1px solid #333;
  max-height: 0;
  overflow: hidden;
  transition: margin-bottom .4s ease-out, max-height .4s ease-out;
}

.setlist.is-open {
  max-height: 100vh;
  margin-bottom: 2.5rem;
}

.setlist ul {
  margin-top: .4rem;
}

.setlist.is-open li {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .4s, transform .4s ease-out;
}

.setlist:not(.is-open) li {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0s, transform 0s;
}

.youtube-url {
  width: 16rem;
  margin-top: 1rem;
}

.related-movies-area {
  margin-top: 6rem;
  padding-bottom: 3rem;
}

.related-movies-area h2 {
  font-size: 1.5rem;
  margin-top: 3rem;
  border-bottom: 1px solid #888;
}

#contents-list {
  margin-top: 2.5rem;
}

@media (max-width: 1024px) {

  .detail-container {
    margin-top: 0;
    padding-top: 3rem;
    flex-direction: column;
    align-items: center;
  }

  .img-title-date {
    width: 100%;
    max-width: 70vw;
  }

  .img-frame {
    width: 100%;
    height: auto;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
  }

  .detail-text {
    margin-top: 2.5rem;
  }

  .title {
    font-size: clamp(1rem, 5vw, 1.6rem);
    text-align: center;
  }

  .detail-text .date {
    font-size: clamp(.8rem, 3vw, 1.5rem);
    text-align: center;
  }

  .setlist-and-link {
    width: 100%;
    margin: 2rem auto 0;
  }

  .toggle-setlist {
    font-size: clamp(1rem, 3.5vw, 1.3rem);
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: .4rem;
  }

  .setlist {
    font-size: clamp(.8rem, 2vw, 1rem);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }

  .youtube-url {
    font-size: clamp(.8rem, 2.5vw, 1rem);
    max-width: 60%;
    margin: 1rem auto 0;
  }

  .related-movies-area {
    max-width: 70vw;
    margin: 6rem auto 0;
  }

  .related-movies-area h2 {
    font-size: clamp(1rem, 3vw, 1.6rem);
    margin-top: 3.5rem;
  }

  #contents-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

}

@media (max-width: 768px) {

  .container {
    padding: 0 5%;
  }

  .image-source {
    font-size: .7rem;
  }

  .main-title {
    font-size: 1rem;
  }

  .sub-title {
    font-size: .8rem;
  }

  .img-title-date {
    max-width: 85vw;
  }

  .related-movies-area {
    max-width: 85vw;
  }

  #contents-list {
    grid-template-columns: 1fr;
    margin-top: 2rem;
    gap: 1.4em 1.2rem;
  }

  .content h3 {
    font-size: 1rem;
    margin-top: .6rem;
  }

}

@media (max-width: 450px) {

  .detail-container {
    padding-top: 1.5rem;
  }

  .img-frame {
    padding: .4rem;
  }

  .image-source {
    font-size: .6rem;
  }

  #contents-list {
    margin-top: 1.6rem;
  }

}