/* ======================================
   お客様の声 共通スタイル
====================================== */

/* 一覧ページのヘッダー */
.post-type-archive-voice .page-header {
  padding: 100px 0;
  background: url(https://www.okamura-home.co.jp/reform/wp-content/uploads/2024/03/22137624_m.webp)
    no-repeat center center/cover;
}

.post-type-archive-voice .page-header-title {
  font-size: 32px;
  text-shadow: 1px 3px 4px #808080;
  color: #fff;
  text-align: center;
}

/* 詳細ページのヘッダー */
.single-voice .page-header {
  padding: 100px 0;
  background: url(https://www.okamura-home.co.jp/reform/wp-content/uploads/2024/03/22137624_m.webp)
    no-repeat center center/cover;
}

.single-voice .page-header-title {
  font-size: 32px;
  text-shadow: 1px 3px 4px #808080;
  color: #fff;
  text-align: center;
}

@media (max-width: 767px) {
  .post-type-archive-voice .page-header-title,
  .single-voice .page-header-title {
    font-size: 22px;
  }
}

/* ======================================
   お客様の声 一覧ページ
====================================== */

.voice-section {
  padding: 40px 0 80px;
}

.voice-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.voice-item {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #ddd;
}

.voice-item__link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.voice-item__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.voice-item__image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #f5f5f5;
  position: relative;
}

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

.voice-item__content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.voice-item__title {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0 0 15px;
  color: #a91a48;
  line-height: 1.5;
}

.voice-item__excerpt {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #666;
  margin-bottom: 15px;
  flex: 1;
}

.voice-item__more {
  color: #a91a48;
  font-weight: 600;
  align-self: flex-end;
}

.no-posts {
  text-align: center;
  padding: 60px 20px;
  font-size: 1.1rem;
  color: #666;
}

/* ======================================
   お客様の声 詳細ページ
====================================== */

.voice-single-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.voice-single__title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.voice-single__title .the_title {
  font-size: 2.2rem;
  font-weight: bold;
  color: #a91a48;
  margin: 0;
  padding: 0 0 20px;
  position: relative;
  display: inline-block;
}

.voice-single__title .the_title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #a91a48;
}

/* 上部セクション */
.voice-single__top-section {
  margin-bottom: 80px;
}

.voice-single__content-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  align-items: center;
}

.voice-single__textarea {
  background: #fff;
}

.voice-single__section-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: #a91a48;
  margin: 0 0 25px;
  padding-left: 15px;
  border-left: 4px solid #a91a48;
}

.voice-single__text {
  font-size: 1.05rem;
  line-height: 2;
  color: #333;
}

.voice-single__image {
  /* border-radius: 4px; */
  overflow: hidden;
  border: 1px solid #666;
}

.voice-single__image img {
  width: 100%;
  height: auto;
  display: block;
}

/* 中部セクション - 評価 */
.voice-single__evaluation-section {
  margin-bottom: 80px;
  background: #fafafa;
  padding: 60px 40px;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
}

.voice-single__section-title-center {
  font-size: 2rem;
  font-weight: bold;
  color: #a91a48;
  text-align: center;
  margin: 0 0 50px;
  padding-bottom: 20px;
  position: relative;
}

.voice-single__section-title-center::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #a91a48;
}

.voice-single__evaluation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.voice-single__evaluation-item {
  background: #fff;
  padding: 40px 25px;
  border-radius: 4px;
  text-align: center;
  border: 1px solid #a91a48;
}

.voice-single__evaluation-toptext {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
}

.voice-single__evaluation-rating {
  font-size: 2.2rem;
  color: #a91a48;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1;
}

.voice-single__evaluation-bottomtext {
  font-size: 1.2rem;
  color: #a91a48;

  font-weight: 600;
}

/* 下部セクション - ボタン */
.voice-single__bottom-section {
  margin-bottom: 60px;
}

.voice-single__buttons {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.voice-single__btn {
  display: inline-block;
  padding: 18px 45px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
  text-align: center;
  min-width: 280px;
  transition: all 0.3s ease;
}

.voice-single__btn--primary {
  background: #a91a48;
  color: #fff;
  border: 1px solid #a91a48;
}

.voice-single__btn--primary:hover {
  background: #a91a48;
  border-color: #a91a48;
  color: #fff;
  opacity: 0.8;
}

.voice-single__btn--secondary {
  background: #fff;
  color: #a91a48;
  border: 1px solid #a91a48;
}

.voice-single__btn--secondary:hover {
  background: #a91a48;
  color: #fff;
  opacity: 1;
}

/* 共有セクション */
.voice-single__share {
  text-align: center;
  padding-top: 50px;
  border-top: 1px solid rgba(169, 26, 72, 0.1);
}

/* ======================================
   レスポンシブデザイン
====================================== */

@media (max-width: 768px) {
  .voice-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .voice-single-container {
    padding: 20px 15px 60px;
  }

  .voice-single__title {
    margin-bottom: 40px;
  }

  .voice-single__title .the_title {
    font-size: 1.6rem;
  }

  .voice-single__top-section {
    margin-bottom: 50px;
  }

  .voice-single__content-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .voice-single__textarea {
    padding: 25px;
  }

  .voice-single__section-title {
    font-size: 1.2rem;
  }

  .voice-single__evaluation-section {
    padding: 40px 20px;
    margin-bottom: 50px;
  }

  .voice-single__section-title-center {
    font-size: 1.5rem;
    margin-bottom: 35px;
  }

  .voice-single__evaluation-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .voice-single__evaluation-item {
    padding: 30px 20px;
  }

  .voice-single__buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .voice-single__btn {
    min-width: auto;
    width: 100%;
    padding: 18px 30px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .voice-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .voice-single__title .the_title {
    font-size: 1.8rem;
  }

  .voice-single__textarea {
    padding: 35px;
  }

  .voice-single__evaluation-section {
    padding: 50px 30px;
  }

  .voice-single__evaluation-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .voice-single__btn {
    min-width: 260px;
  }
}
