/* ========== 一覧（archive-voice.php） ========== */

.voice-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  margin: 30px auto;
  max-width: 980px;
  padding: 0 20px;
}

.voice-item {
  flex: 1 1 calc(33.333% - 20px);
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: #333;
  transition: box-shadow 0.3s ease;
}

.voice-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.voice-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.voice-text {
  padding: 15px;
}

.voice-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
}

.voice-excerpt {
  font-size: 14px;
  color: #666;
}

@media screen and (max-width: 768px) {
  .voice-item {
    flex: 1 1 100%;
  }
}


/* ========== 詳細ページ（single-voice.php） ========== */

#singleVoice .voice-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.voice-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.4;
}

.voice-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.voice-comment,
.voice-message {
  margin-bottom: 30px;
}

.voice-comment h2,
.voice-message h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.voice-comment p,
.voice-message p {
  font-size: 16px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.voice-link {
  margin-bottom: 20px;
}

.voice-link .button {
  display: inline-block;
  padding: 10px 20px;
  background: #0073aa;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 15px;
}

.voice-date {
  font-size: 13px;
  color: #777;
  margin-top: 20px;
  text-align: right;
}

/* ✅ モバイル対応 */
@media screen and (max-width: 768px) {
  #singleVoice .voice-container {
    padding: 30px 15px;
  }

  .voice-title {
    font-size: 22px;
  }

  .voice-comment h2,
  .voice-message h2 {
    font-size: 18px;
  }

  .voice-comment p,
  .voice-message p {
    font-size: 15px;
  }

  .voice-link .button {
    font-size: 14px;
    padding: 8px 16px;
  }
}