.section-title {
  padding: 30px 0 10px;
  @media (max-width: 768px) {
    margin: 0;
  }
}
.section-subtitle {
  padding-top: 20px;
  @media (max-width: 768px) {
    font-size: 16px;
    padding-bottom: 5px;
  }
  @media (max-width: 640px) {
    font-size: 14px;
  }
}
.contestants-heading-wrap {
  display: flex;
  align-items: center;
  gap: 30px;
  @media (max-width: 768px) {
    padding-top: 60px;
  }
  @media (max-width: 480px) {
    gap: 15px;
  }
}

.contestants-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  @media (max-width: 480px) {
    gap: 5px;
  }
}
.contestants-heading .text-body-300 {
  @media (max-width: 480px) {
    letter-spacing: 0px;
  }
}
.semifinal-bar {
  display: inline-block;
  width: 32px;
  height: 7px;
  background: linear-gradient(
    to right,
    #000000 0%,
    #4b283a 19%,
    #8b365b 60%,
    #c092a6 87%,
    #d3b3c1 100%
  );
  @media (max-width: 768px) {
    width: 42px;
  }
  @media (max-width: 480px) {
    width: 32px;
  }
  @media (max-width: 375px) {
    width: 28px;
  }
}

.final-bar {
  display: inline-block;
  width: 32px;
  height: 7px;
  background: linear-gradient(
    to right,
    #efcc7d 0%,
    #e7c37e 19%,
    #c78903 60%,
    #e2b65e 79%,
    #eec983 87%,
    #f3e7ce 100%
  );
  @media (max-width: 768px) {
    width: 42px;
  }
  @media (max-width: 480px) {
    width: 32px;
  }
  @media (max-width: 375px) {
    width: 28px;
  }
}
.badge {
  position: absolute;
  left: 0px;
  width: 28px;
  height: 7px;
  @media (max-width: 768px) {
    position: absolute;
    left: 3px;
    width: 28px;
  }
  @media (max-width: 480px) {
    left: 0px;
    width: 26px;
  }
}
.semifinal {
  top: 60%;
  transform: translateY(-50%);
  background: linear-gradient(
    to right,
    #000000 0%,
    #4b283a 19%,
    #8b365b 60%,
    #c092a6 87%,
    #d3b3c1 100%
  );
  @media (max-width: 768px) {
    top: 60px;
  }
}

.final {
  transform: translateY(-50%);
  background: linear-gradient(
    to right,
    #efcc7d 0%,
    #e7c37e 19%,
    #c78903 60%,
    #e2b65e 79%,
    #eec983 87%,
    #f3e7ce 100%
  );
  top: 50px;
  @media (max-width: 768px) {
    top: 75px;
  }
}

.performance-music-number .badge {
  width: 53px;
  @media (max-width: 1280px) {
    width: 47px;
  }
  @media (max-width: 768px) {
    width: 44px;
  }
  @media (max-width: 480px) {
    width: 47px;
  }
}
.performance-music-number .final {
  top: 52%;
  @media (max-width: 768px) {
    top: 73px;
  }
}

.performance-music-number .semifinal {
  top: 42%;
  @media (max-width: 768px) {
    top: 60px;
  }
}

.contestants-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  padding: 20px 0 0;
  @media (max-width: 768px) {
    display: none;
  }
}

.contestants-list li {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contestants-list li.loaded {
  opacity: 1;
}
.contestant-card {
  display: flex;
  align-items: stretch;
  background: #f0ebf4;
  overflow: hidden;
  min-height: 64px;
}
.number {
  position: relative;
  width: 32px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  padding: 5px 0 0 3px;
  z-index: 1;
  letter-spacing: 0.01em;
  @media (max-width: 1280px) {
    width: 38px;
  }
}
.number::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(117deg, #b47c94 50%, transparent 50%);
  z-index: -1;
}
.contestant-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4px;
  color: #4d4d4d;
}
.name-ja {
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap; /* 追加 */
}
.name-em {
  white-space: nowrap; /* 追加 */
  font-weight: 500;
  font-size: 11px;
}
.country {
  font-weight: 400;
  font-size: 11px;
}
.performance-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 40px 0;
}
.performance-card {
  display: flex;
  align-items: stretch;
  border: 1px solid #d8cfd3;
  padding: 20px;
  background-color: #fff;
}
.performance-number {
  font-size: 22px;
  font-weight: bold;
  color: #8b365b;
  margin-right: 20px;
  min-width: 40px;
}
.performance-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.performance-music-list {
  padding: 30px 0 20px;
}
.performance-music-item {
  padding: 60px 0 40px;
}
.performance-music-item:first-child .performance-music-card {
  margin-top: 20px;
}
.performance-music-card {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  border-top: 1px solid #8b365b;
  border-bottom: 1px solid #8b365b;
  /* margin: 80px 0 20px; */
  height: auto;
}
.performance-music-info-wrap {
  display: flex;
  min-height: 170px;
  align-items: stretch;
  position: relative;
  @media (max-width: 1280px) {
    min-height: 150px;
  }
  @media (max-width: 768px) {
    min-height: 230px;
  }
  @media (max-width: 640px) {
    min-height: 230px;
  }
  /* @media (max-width: 375px) {
    min-height: 250px;
  } */
}
.performance-music-details {
  display: flex;
  flex: 1;
  @media (max-width: 768px) {
    flex-direction: column;
  }
}
.performance-music-number {
  font-size: 35px;
  color: #8b365b;
  border-right: 1px solid #8b365b;
  line-height: 1;
  padding: 10px 0 0 3px;
  width: 54px;
  @media (max-width: 1280px) {
    font-size: 28px;
    padding: 10px 12px 0 3px;
    width: 48px;
  }
  /* @media (max-width: 768px) {
    position: relative;
  } */
  @media (max-width: 480px) {
    font-size: 22px;
    padding: 10px 3px 0 3px;
    width: 37px;
  }
}
.performance-music-name-info {
  display: flex;
  flex-direction: column;
  color: #4d4d4d;
  padding: 20px 10px 0 25px;
  width: 450px;
  letter-spacing: 0px;
  @media (max-width: 1280px) {
    padding: 20px 10px 0 15px;
  }
  @media (max-width: 768px) {
    padding: 15px 10px 0 20px;
    width: calc(100% - 150px);
  }
  @media (max-width: 640px) {
    padding: 10px 0 0 15px;
  }
  @media (max-width: 480px) {
    width: calc(100% - 125px);
    padding: 10px 0 0 10px;
  }
  @media (max-width: 375px) {
    width: calc(100% - 105px);
  }
}
.performance-music-name-ja {
  white-space: nowrap; /* 追加 */
  font-size: 24px;
  letter-spacing: -1px;
  @media (max-width: 1440px) {
    font-size: 23px;
  }
  @media (max-width: 1280px) {
    font-size: 19px;
  }
  @media (max-width: 768px) {
    font-size: clamp(16px, 3.6vw, 18px);
  }
  @media (max-width: 375px) {
    font-size: 15px;
  }
}
.performance-music-name-em {
  font-size: 18px;
  @media (max-width: 1280px) {
    font-size: clamp(12px, 3vw, 16px);
  }
}
.performance-music-meta {
  color: #4d4d4d;
  padding: 30px 0 0 0;
  font-size: 15px;
  width: calc(65% - 210px);
  @media (max-width: 1280px) {
    font-size: 13px;
    width: calc(78% - 170px);
  }
  @media (max-width: 768px) {
    padding: 25px 0 0 20px;
    width: calc(100% - 170px);
  }
  @media (max-width: 640px) {
    padding: 25px 0 0 15px;
    width: 100%;
  }
  @media (max-width: 480px) {
    padding: 25px 0 0 13px;
  }
}
.performance-img-spacer {
  width: 220px;
  flex-shrink: 0;
  @media (max-width: 1280px) {
    width: 170px;
  }
}
.performance-music-image {
  width: 200px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: -30px;
  z-index: 1;
  @media (max-width: 1280px) {
    width: 165px;
    top: -15px;
  }
  @media (max-width: 768px) {
    width: 150px;
    top: -30px;
  }
  @media (max-width: 640px) {
    width: 135px;
  }
  @media (max-width: 480px) {
    width: 120px;
  }
  @media (max-width: 375px) {
    width: 100px;
  }
}

.performance-music-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.performance-music-toggle {
  font-family: "Noto Sans JP", sans-serif;
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 100;
  background: #8b365b;
  color: #ffffff;
  width: 140px;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  letter-spacing: 0.1em;
  @media (max-width: 768px) {
    font-size: 14px;
    padding: 8px 0;
  }
}
.performance-music-toggle:hover {
  background: #b16989;
}
.performance-music-toggle::before {
  content: "";
  display: inline-block;
  margin-right: 6px;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 13px solid #ffffff;
  vertical-align: middle;
}
.performance-music-card.opened .performance-music-toggle::before {
  transform: rotate(180deg);
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
/* .performance-music-card.opened {
  padding-bottom: 20px;
} */
.performance-music-content {
  @media (max-width: 768px) {
    padding-left: 20px;
  }
  @media (max-width: 640px) {
    padding-left: 15px;
  }
  @media (max-width: 480px) {
    padding-left: 13px;
  }
}
.performance-music-content .text-body-300 {
  @media (max-width: 768px) {
    font-size: 13px;
  }
}
.performance-music-content li {
  padding-left: 2.5em;
  text-indent: -2.5em;
}
.performance-music-content ul:last-child li:last-child {
  padding-bottom: 20px;
  @media (max-width: 768px) {
    padding-bottom: 70px;
  }
}

.md-block {
  display: none;
}
.md-none {
  display: block;
}

@media (min-width: 768px) {
  .md-block {
    display: block;
  }
  .md-none {
    display: none;
  }
}
