body * div {
  /*border: 1px solid red;*/

}



/* サウンドテストモーダル(main) */
#sound-test-modal {
  position: absolute;
  z-index: 2;
  top:50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 10px;/*角丸*/
  /* padding: 1rem 4rem 1.5rem 4rem;*/
  margin-top: 0px;
  padding: 18px 30px 18px 30px ;
  background: linear-gradient(to bottom, rgba(28, 28, 28, 0.9), rgba(66, 63, 63, 0.8));
  box-shadow: 6px 6px 10px 0px rgba(0, 0, 0, 0.4);
  width: 80%;
  height: 100%;
  max-height: 380px; /* ← これはOK */

  display: flex;
  flex-direction: column;
  gap: 0rem;

}


#sound-test-modal-head{
  display: flex;
  padding: 0px 0px 0px 0px;
  justify-content: space-between; /* 余白で配置 */
  align-items: center;
  gap: 0rem;
  width: 100%;
}
/* サウンドテスト:Titel */
#sound-test-title{
  text-align: center;
  color: white;
  text-align: left;
  padding: 2px 0px 8px 10px;
  flex: 4;
  font-size: 3vw;
  text-shadow: 2px 3px 3px rgba(102, 60, 255, 0.4);
  background: linear-gradient(to bottom, rgba(24, 94, 200, 0.9), rgba(69, 126, 212, 0.5));
  border-radius: 10px;/*角丸*/
  box-shadow: 6px 6px 10px 0px rgba(0, 0, 0, 0.4);
  font-weight: bold;
  font-family: 'Orbitron', sans-serif;
  display: flex;
  align-items: center;
}
/* カテゴリ */
#sound-test-category {
  flex: 6;
  text-align: center;
  color:white;
  font-size: 2.5vw;
  font-family: 'Orbitron', sans-serif;
  text-shadow: 2px 3px 3px rgba(102, 60, 255, 0.4);
}
#sound-test-category-list {
  background: linear-gradient(to bottom, #1c1c1c, #2a2a2a);
  color: #fff;
  font-family: "CustomFont", sans-serif;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border: 1px solid #555;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  appearance: none; /* ネイティブUIを無効にする（カスタムスタイルに） */
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

/* フォーカス時の強調 */
#sound-test-category-list:focus {
  outline: none;
  border-color: #68aaff;
  box-shadow: 0 0 5px rgba(100, 160, 255, 0.6);
}

/* optionメニュー（ブラウザ依存なのでスタイル制限あり） */
#sound-test-category-list option {
  background-color: #1f1f1f;
  color: #ffffff;
}
/* 閉じるボタン */
#sound-test-close {
  /*flex: 1;*/
  text-align: right;
}
#sound-test-close-bt{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background-color: #2589d0;
    box-shadow: 6px 6px 10px 0px rgba(0, 0, 0, 0.4);
}
#sound-test-close-bt:hover {
    background-color: #4050c4;
    box-shadow: 6px 6px 10px 0px rgba(0, 0, 0, 0.4);
}
#sound-test-close-bt:hover path {
    fill: #2589d0;
    box-shadow: 6px 6px 10px 0px rgba(0, 0, 0, 0.4);
}

/* サウンドテスト:メディア情報 */
#sound-test-modal-media-info{
  font-family: 'Orbitron', sans-serif;
  display: flex;
  gap: 0rem;
  padding: 15px 0px 0px 0px ;
  margin: 0px 0px 0px 0px ;
  width: 100%;
  align-items: flex-end;
  text-align: center;
  text-decoration:none;
}



#sound-test-modal-media-info-composer{
  display: flex;
  width: 77%;
  padding-left: 10px;
  padding-right: 0px;
  font-size: 2.3vw;
  text-shadow: 1px 1px 2px rgb(56, 14, 194);
  color: #ffffff;
  border-bottom:solid white;
}
#sound-test-modal-media-info-url{
  display: flex;
  width: 23%;
  padding: 5px 15px 0px 15px ;
  margin: 3px 3px 0px 0px ;
  font-size: 1.8vw;
  border-bottom: none;
  align-items: center; /*flex-end;*/
  text-align: center;
  text-shadow: 1px 1px 2px rgb(0, 0, 0);
}
/* 003 */
#sound-test-modal-media-info-url a {
    background: #3e1ce6;
    color: white;
    border-radius: 50px;
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 0 auto;
    max-width: 90%;
    padding: 2% 10px;
    transition: 0.3s ease-in-out;
    font-weight: 500;
}
#sound-test-modal-media-info-url a:hover {
    background: #6454d7;
    color: white;

}
#sound-test-modal-media-info-url a:after {
    width: 5px;
    height: 5px;


    transform: rotate(45deg) translateY(-50%);
    position: absolute;
    top: 50%;
    right: 20px;
    border-radius: 1px;
    transition: 0.3s ease-in-out;
}
#sound-test-modal-media-info-url a:hover:after {
    border-color: #0f0808;
}

/* informationボックス */
#sound-test-modal-track-info-box{
  position:  absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: linear-gradient(to bottom, rgba(110, 143, 213, 0.9), rgba(209, 136, 183, 0.8));
  border-radius: 10px;/*角丸*/
  font-size: 2.0vw;
  line-height: 0.9;
  padding-top: 18px;
}
/* 外部サイト確認ダイアログ */
#external-confirm{
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 52%;
  border-radius: 10px;/*角丸*/
  background: linear-gradient(to bottom, rgba(18, 15, 15, 0.9), rgba(38, 37, 37, 0.8));
  font-family: 'Orbitron', sans-serif;
  font-size: 2vw;
  line-height: 1.5;
  transform: translate(-50%, -50%);
  transition: transform 0.5s ease, opacity 0.5s ease;
}
@keyframes slideInFromLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutToRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

#external-url{
  color: rgb(227, 99, 202);
}

#external-confirm-title{
  margin-bottom: 5px;
}


/* サウンドテスト:BODY */
#sound-test-modal-body{
  display: flex;
  width: 100%;
  height: 100%;
  color:white;
  padding: 0px 0px 0px 0px;
  justify-content: space-between; /* 余白で配置 */
  align-items: center;
  gap: 1.5rem;

}

#sound-test-button{
  width: 120px;
  height: 120px;
  display: grid;
  grid-template-columns: 50px 50px;
  text-align: center;
  align-items: center;
  font-size: 30px;
  border-radius: 10px;/*角丸*/
  /* padding: 1rem 4rem 1.5rem 4rem;*/
  padding: 7px 10px 7px 10px ;
  background: linear-gradient(to bottom, rgba(92, 122, 177, 0.9), rgba(21, 67, 152, 0.5));
  box-shadow: 6px 6px 10px 0px rgba(0, 0, 0, 0.4);
}
#sound-test-button-item{
  padding: 4px 0px 4px 0px;
}
#sound-test-button-item a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background: linear-gradient(to bottom, #4a90e2, #357ab8);
  border-radius: 8px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.3);
  color: white;
  font-size: 1.5rem;
  text-decoration: none;
  transition: all 0.2s ease;
  user-select: none;
}

#sound-test-button-item a:hover {
  background: linear-gradient(to bottom, #5aa0f2, #4083c0);
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

#sound-test-button-item a:active {
  transform: scale(0.95);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
}



#sound-test-scroll-list{
  font-family: 'Orbitron', sans-serif;
  width: 100%;
  height: 100%;
  max-height: 170px;
  overflow-y: auto;
  background: rgba(255,255,255,0.05);
  padding: 0.5rem;
  border-radius: 6px;
  box-shadow: 6px 6px 10px 0px rgba(0, 0, 0, 0.4);
}
.sound-test-track-item {
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 4px;
  padding: 0.3rem 0.5rem;
  text-align: left;
  font-size: clamp(1rem, 1.8vw, 1.4rem); /* ←レスポンシブ範囲で再調整 */
}
.sound-test-track-item.selected {
  background-color: #8ec5fc;
  color: #000;
  font-weight: bold;
}


.note-icon {
  margin-right: 0.4em;
  display: inline-block;
  width: 1.2em;
  /*font-size: 20px;*/
}
