/* CPT pages common styles (artist, discography, audition, schedule) */

/* === Filter Section === */
.cpt-filter {
  margin: 1.5rem 0 2rem;
}

.cpt-filter form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 15px;
}

.cpt-filter .filters {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  flex-grow: 1;
  flex-basis: 100%;
}

.cpt-filter .filters label {
  display: inline-flex;
  gap: .35rem;
  align-items: center;
  font-size: 14px;
  cursor: pointer;
  padding: .5rem 1rem;
  border: 1px solid #ddd;
  border-radius: 20px;
  background: #fff;
  transition: all 0.3s;
}

.cpt-filter select {
  padding: .4rem .8rem;
  border: 1px solid #ddd;
  border-radius: 0;
  font-size: .9rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath stroke='%231FA2FF' stroke-width='1' stroke-linecap='round' stroke-linejoin='round' fill='none' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .5rem center;
  background-size: 12px;
  padding-right: 2rem;
  color: #333;
}

.cpt-filter input[type="checkbox"],
.cpt-filter input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.cpt-filter input[type="checkbox"]:checked+*,
.cpt-filter input[type="radio"]:checked+* {
  background: var(--main-color);
  color: #fff;
  border-color: var(--main-color);
}

.cpt-filter label:has(input[type="checkbox"]:checked),
.cpt-filter label:has(input[type="radio"]:checked) {
  background: #00a0e9;
  color: #fff;
  border-color: #00a0e9;
}

.cpt-filter .submit {
  margin-left: auto;
}

.cpt-filter button[type="submit"],.cpt-filter button#reset-filter-btn {
  background: #00a0e9;
  color: #fff;
  border: none;
  padding: .5rem 1.5rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: .9rem;
}

/* === Archive Grid Layout === */
.cpt-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 2rem;
}


/* Artist archive only: 2 columns */
.post-type-archive-artist .cpt-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));

  .title {
    text-align: center;
  }
}



.cpt-grid .box {
  text-decoration: none;
  display: block;
  transition: opacity 0.3s;
  padding: 0;
  padding-bottom: 15px;
  /* border-bottom: 1px solid #CDCDCD; */
  position: relative;
}

.cpt-grid .box:hover {
  opacity: 0.7;
}

.cpt-grid .thumbnail {
  margin-bottom: 10px;
  line-height: 0;
  aspect-ratio: 1/1 !important;
  border-radius: 0;
}

.cpt-grid .thumbnail img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.cpt-grid .title {
  font-weight: 700;
  margin: 0 0 .25rem;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}


.cpt-grid1fr .title {
  text-align: left;
}



.cpt-grid .meta {
  display: flex;
  gap: .75rem;
  font-size: .85rem;
  color: #666;
  margin-top: .5rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cpt-grid .date {
  font-size: .8rem;
  color: #666;
/*  margin-bottom: .25rem; */
}

.cpt-grid .category {
  display: inline-block;
  background: #707070;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  padding: .2rem .6rem;
  border-radius: 20px;
  /* margin-bottom: .5rem; */
}

.cpt-grid .excerpt {
  font-size: .9rem;
  line-height: 1.6;
  color: #333;
  margin-top: .5rem;
}

/* === Single Page Detail === */
.cpt-detail {
  margin: 2rem 0;
}

.cpt-detail .main-image {
  margin-bottom: 1.5rem;
  text-align: center;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.cpt-detail .main-image img {
  width: 100%;
  height: auto;
  display: block;
}

.cpt-detail .title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.cpt-detail .meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  margin-bottom: 1.5rem;
  font-size: .9rem;
  color: #666;
}

.cpt-detail .meta .date {
  font-size: .9rem;
}

.cpt-detail .meta .category {
  display: inline-block;
  background: #333;
  color: #fff;
  font-size: .75rem;
  padding: .2rem .6rem;
  border-radius: 3px;
}

.cpt-detail .content {
  line-height: 1.8;
  margin-bottom: 2rem;
}

.cpt-detail .content p {
  margin-bottom: 1rem;
}

/* === SNS Box === */
.sns-box {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin: 1rem auto 1.5rem;
}

.sns-box a {
  line-height: 0;
  transition: opacity 0.3s;
}

.sns-box a:hover {
  opacity: 0.7;
}

.sns-box img {
  width: 32px;
  height: 32px;
  display: block;
}

/* === Member List === */
.cpt-section {
  margin-top: 6rem;
}

.cpt-section h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 0;
  text-align: center;
  background: linear-gradient(90deg, var(--main-color) 0, #12d8fa 50%, #e4ffef 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: "M PLUS 1p", sans-serif;
  line-height: 1;
}

.cpt-section h2+p {
  text-align: center;
  font-size: 13px;
  margin-bottom: 20px;
  font-weight: bold;
}

.cpt-section .section-subtitle {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.cpt-section .sns-box {
  margin-top: 20px;
  gap: 0px;

  img {
    width: 24px;
    height: 24px;
  }
}



.member-list {
  display: grid;
  /* grid-template-columns: repeat(2, minmax(0,1fr)); */
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 2rem;
}

.member {
  /* border: 1px solid #eee; */
  /* padding: 1rem; */
}

.member .photo {
  margin-bottom: .75rem;
  line-height: 0;
}

.member .photo img {
  width: 100%;
  height: auto;
  display: block;
}

.member .name {
  font-weight: 700;
  margin: .5rem 0;
  font-size: 18px;
  text-align: center;
}

.member .profile {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: .75rem;
}

/* === Related Content Grid === */
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 1.5rem;
}

.related-grid .item {
  text-decoration: none;
  display: block;
}

.related-grid .item:hover {
  opacity: 0.7;
}

.related-grid .item img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: .5rem;
}

.related-grid .item .title {
  font-size: .9rem;
  line-height: 1.5;
  color: #333;
}

/* === Buttons === */
.btn-style01 {
  display: block;
  padding: .8rem 2rem;
  background: #fff;
  color: #333;
  text-decoration: none;
  border: 1px solid #333;
  border-radius: 25px;
  text-align: center;
  transition: all 0.3s;
  /* margin: 0 auto !important; */
}

.btn-style01:hover {
  background: var(--main-color);
  color: #fff;
}

/* Detail button style (no background, blue text) */
.cpt-grid .btn-style01 {
  background: transparent;
  color: var(--main-color);
  border: none;
}

.cpt-grid .btn-style01:hover {
  opacity: 0.7;
}

.btn-primary {
  display: inline-block;
  padding: .8rem 2rem;
  background: #00a0e9;
  color: #fff;
  text-decoration: none;
  border-radius: 25px;
  text-align: center;
  font-weight: 700;
  transition: opacity 0.3s;
}

.btn-primary:hover {
  opacity: 0.8;
}

.btn-center {
  text-align: center;
  margin: 2rem 0;
}

/* === Labels & Badges === */
.label {
  /* display: inline-block;
  font-size: .75rem;
  padding: .2rem .5rem;
  border: 1px solid #ccc;
  border-radius: 3px; */
  position: absolute;
  top: -10px;
  left: 0;
}

.label.chumoku {
  /* border-color: #e00;
  color: #e00;
  display: inline-flex;
  gap: .25rem;
  align-items: center;
  font-weight: 700; */
}

.label.chumoku::before {
  /* content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background: url('../../../img/common/chumoku.png') no-repeat center;
  background-size: contain; */
}

/* === Pagination === */
.pagination, .pagenavi {
  margin: 2rem 0;
  text-align: center;
}

/* === Utilities === */
.excerpt-2lines {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === Responsive === */
/* @media (max-width: 768px) {
  .cpt-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cpt-grid1fr {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .post-type-archive-artist .cpt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }

  .member-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .cpt-filter form {
    flex-direction: column;
    align-items: stretch;
  }

  .cpt-filter .submit {
    margin-left: 0;
  }
} */









.single-artist {
  .groupinfo {
    .title {
      font-size: 20px;
    }
    .wrap {
      p {
        margin-bottom: 10px;
      }
    }
  }

  .wrap {
    font-size: 16px;
    line-height: 29px;
  }
  .thumbnail {
    max-width: 85%;
    margin: 0 auto 4px;
  }
  .btn-style01.return-archive {
    max-width: 160px;
    margin-top: 60px;
  }

  .single-box .sns-box {
    margin-top: 30px;
  }

  .gotodetail {
    color: #1FA2FF;
    font-size: 13px;
    text-align: right;
    width: 100%;
    display: block;
  }


            .group-names {
                line-height: 1.5;
                margin-top: 8px;
                font-size: 13px;
            }

  .profile {
    p {
      margin-bottom: 10px;
    }
  }
}

.groupinfo {
  .title {
    text-align: center;
  }

}





.bg-tilt {
  position: relative;
}

.bg-tilt::after {
  background: #f2f2f2;
  content: "";
  display: block;
  position: absolute;
  transform: rotate(-10deg);
  top: -10px;
  left: -5em;
  width: 800px;
  height: 90%;
  z-index: -1;
}

.discography-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 30px;
}

.schedule-section {
  margin-top: 85px;

  h2+p {
    margin-bottom: 0px;
    line-height: 1;
    margin-top: 15px;
  }

  .cpt-filter {
    margin: 30px 0 20px;
  }

  .cpt-grid .box {
    border-bottom: 1px solid #CDCDCD;
  }
}

.news-section {
  .cpt-grid .box {
    border-bottom: 1px solid #CDCDCD;
  }
}


.discograpy {
  h2+p {
    margin-top: 5px;
  }

  .discography-list {
    .thumbnail {
      max-width: 100%;
    }

    .title {
      font-weight: normal;
      text-align: left;
      margin-bottom: 10px;
    }

    .box_bottom {
      font-size: 14px;
      line-height: 1.3;

      .box_bottom_group {
        font-weight: bold;
        margin-bottom: 1px;
      }

      .box_bottom_date {
        font-size: 13px;
      }
    }
  }




}



.cpt-filter .filters label {
  padding: 5px 10px;
  line-height: 1.3;
  border: 1px solid var(--main-color);
  color: var(--main-color);
  font-weight: bold;
}

.btn-style01 {
  padding: 8px 0;
  width: 88%;
  letter-spacing: 0px;
}
.btn-style01.blue {
  background-color: var(--main-color);
  color: white;
  border: 1px solid var(--main-color);
  height: 60px;
  border-radius: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 50px;
}



.single-discography {
  .txt {
    margin-bottom: 30px;
    .title {
      text-align: center;
      margin-bottom: 10px;
    }

    .meta {
      line-height: 1.3;
      text-align: center;
      .release {
        font-size: 0.8em;
      }

      .group {
        font-weight: bold;
      }
    }
  }
  .btn-style01 {
    max-width: 160px;
    margin-top: 60px;
  }
}

.post-type-archive-post,
.post-type-archive-discography,
.post-type-archive-schedule {
  .hgroup {
    margin-bottom: 10px;
  }

  .cpt-filter select {
    max-width: 200px;
    border: 1px solid var(--main-color);
  }

  .cpt-filter button[type="submit"] {
    max-width: 80px;
    padding: 7px 13px 7px;
    border: 1px solid var(--main-color);
    background-color: white;
    color: var(--main-color);
    line-height: 1;
    /* margin-left: 10px; */
    font-weight: bold;
  }

    .cpt-filter button#reset-filter-btn {
    max-width: 80px;
    padding: 7px 13px 7px;
    border: 1px solid #fff;
    background-color: var(--main-color);
    color: #fff;
    line-height: 1;
    border-radius: 40px;
    font-weight: bold;
  }

  .cpt-filter a {
    display: block;
    max-width: 50px;
    background-color: var(--main-color);
    color: white;
    border-radius: 50px;
    padding: 7px 13px;
    line-height: 1;
  }
}

.single,
.single-audition,
.single-schedule {
  .return-btn {
    width: 160px;
    margin: 40px auto 0;
    text-align: center;
  }
  .date {
    float: none;
  }
}


.post-type-archive-schedule {
  .gotodetail {
    color: var(--main-color);
    font-size: 13px;
    text-align: right;
    width: 100%;
    display: block;
  }

  .cpt-grid {
    gap: 0;
  }

  .cpt-grid .box {
    border-bottom: 1px solid #cdcdcd;
    .title {
      font-size: 0.8em;
      margin-bottom: 5px;
    }
    .excerpt-2lines {
      font-size: 14px;
      line-height: 20px;
    }
  }
}

.post-type-archive-audition {
  .cpt-grid {
    .box {
      padding-bottom: 0;

      .thumbnail {
        border-top-left-radius: 40px;
        border-top-right-radius: 40px;
        aspect-ratio: auto !important;
        width: 100%;
        margin-bottom: 0;
        padding-bottom: 0;

        img {
          object-fit: cover;
          height: 220px;
        }
      }

      .txt {
        border-right: 1px solid #cdcdcd;
        border-left: 1px solid #cdcdcd;
        border-bottom: 1px solid #cdcdcd;
      }

      .date {
        float: none;
        line-height: 1.5;
      }
    }
  }

}

.post-type-archive-discography {
  .cpt-grid {
    gap: 0;
  }
  .box {
    margin-bottom: 0;
    a {
      padding: 10px 10px;
      display: block;
    }

    .txt {
      padding: 0;
    /*  margin-top: 20px; */
      .title {
        font-weight: normal;
        font-size: 15px;
      }
      .meta {
        flex-direction: column;
        gap: 0;
        line-height: 1.4;
        align-items: flex-start;
        .group {
          font-size: 14px;
          font-weight: bold;
        }
        .release {
          font-size: 13px;
        }
      }
    }
  }

  .label.chumoku {
    width: 60px;
  }
}





.post-type-archive-post {

  .cpt-grid {
    gap: 5px;
    .box {
      border-bottom: 1px solid #cdcdcd;
      padding-bottom: 5px;
      margin-bottom: 0;
      .group-names {
        line-height: 1.5;
        margin-top: 8px;
      }
    }
  }

  .content-wrapper {
    .meta {
      margin-bottom: 0;
      margin-top: 0;
    }
    .title {
      margin-top: 0;
    }
  }

}







.post-type-archive-artist {
  .cpt-grid {
    .box {
      padding-bottom: 0;
      .thumbnail {
        border: 1px solid #E5E5E5;
      }
    }
  }
  .sub-main-box::after {
    height: 200px;
  }

}




.single-post {
  .txt.head {
    .info1 {
      display: flex;
      justify-content: space-between;

      .category {
        line-height: 1;
        display: flex;
        font-size: 12px;
        font-weight: bold;
        align-items: center;
        height: 23px;
      }
    }

    .title {
      margin: 10px 0;
    }

  }

  .metagroup {
    font-size: 13px;
    margin-top: 10px;
  }

  .txt {
    figure {
      margin: 20px 0;  
    }
    p {
      margin-bottom: 10px;
    }
  }
}





.single-schedule {

  .head {
    .info1 {
      display: flex;
      justify-content: space-between;
      align-items: center;

      .category {
        line-height: 1;
        display: flex;
        font-size: 12px;
        font-weight: bold;
        align-items: center;
        height: 23px;
      }
    }
    .title {
      margin-top: 10px;
      font-size: 18px;
    }

    .info2 {
      .group {
        font-weight: bold;
        font-size: 16px;
      }
    }
  }

  .wrap {
    .txt {
      p {
        margin-bottom: 10px;
      }
      img {
        margin: 20px 0;
      }
    }
  }

  .btn-style01 {
    margin-top: 60px;
  }
}

.single-audition {
  .single-box .title {
    margin-top: 20px;
  }
  .single-box .btn-style01 {
    margin-top: 40px;
    margin-bottom: 70px;
  }
}