
body * div {
  border: 0px solid #761a1a;
}

/* 背景 */
.modal {
  position: relative;
  z-index: 1;
  background-color: rgba(0,0,0,0.5);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;

}

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

  display: flex;
  flex-direction: column;

}

#sound-test-modal-head{
  display: flex;
  padding: 0px 0px 0px 0px;
  justify-content: space-between; /* 余白で配置 */
  align-items: center;
  gap: 1rem;
  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);
}



/* サウンドテスト: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: 100%;
  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: 200px;
  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;
}
.sound-test-track-item.selected {
  background-color: #8ec5fc;
  color: #000;
  font-weight: bold;
}
