.voice-list-wrap {
  position: relative;
}

.voice-list-wrap.is-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.voice-list-wrap.is-loading::before {
  content: '•••';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 2em;
  letter-spacing: 0.25em;
  z-index: 3;
  animation: voice-dot 1s infinite;
}

@keyframes voice-dot {
  0% {
    opacity: 0.2;
    transform: translate(-50%, -50%) scale(0.8);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
  100% {
    opacity: 0.2;
    transform: translate(-50%, -50%) scale(0.8);
  }
}


.voice-list-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.voice-refresh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  width: 38px;
  height: 38px;

  background: transparent;
  border: 1px solid rgba(255,255,255,0.6);
  color: #fff;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.voice-refresh-btn span {
  font-size: 1.5em;
  padding: 0 0 3px 5px;
}

.voice-refresh-btn:hover {
  background: rgba(255,255,255,0.2);
}

.voice-list {
  margin: 0 auto;
}

/* --- テープ 1枚ごとの overlay（text/audio） --- */
#sec3 li.voice-item {
  position: relative;
}

/* setup.html 等で「2枠目だけ確保したい」ためのダミー */
#sec3 li.voice-item.voice-item--ghost {
  visibility: hidden;
  pointer-events: none;
}

#sec3 li.voice-item > img {
  cursor: pointer;
}

#sec3 li.voice-item .voice-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* overlay 表示 */
#sec3 li.voice-item.is-overlay-open .voice-overlay {
  opacity: 1;
  pointer-events: auto;
}

#sec3 li.voice-item .voice-overlay-inner {
  width: 90%;
  max-width: 320px;
  color: #fff;
  text-align: center;
}

#sec3 li.voice-item .voice-overlay-text {
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: 0.8em;
  line-height: 1.6;
  text-align: left;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* 丸い再生ボタン（▶/▷） */
#sec3 li.voice-item .voice-audio-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.1);
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#sec3 li.voice-item .voice-audio-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

#sec3 li.voice-item .voice-audio-btn-icon {
  color: #fff;
  font-size: 28px;
  line-height: 1;
  transform: translateX(2px); /* ▶を少し中央寄せ */
}

#sec3 li.voice-item .voice-audio-btn.is-playing .voice-audio-btn-icon {
  transform: none;
}

.voice-search {
  margin: 30px auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Noto Serif JP', "YakuHanJP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  width: auto;
}

.voice-search input,
.voice-search button {
  font-family: inherit;
  font-size: 1em;
  line-height: 1;
  height: 42px;
  border: 1px solid #fff;
  border-radius: 4px;
}

.voice-search input {
  text-align: center;
  width: 10em;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 0 1em;
}

.voice-search input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.voice-search button {
  padding: 0 1.3em;
  background: #fff;
  color: #000;
  cursor: pointer;
}

.voice-search button:hover {
  opacity: 0.85;
}
