/*
 * お客様の声 関連ページ用スタイル
 * 対象: archive-customer_voice.php, single-customer_voice.php, taxonomy-*.php
 */

/* -------------------------------------------
 *  アーカイブフィルター
 * ------------------------------------------- */
.archive-filter {
  margin-bottom: 40px; /* フィルターと投稿リストの間の余白 */
}

.archive-filter-nav {
  display: flex;
  align-items: center; /* アイテムを垂直方向中央に揃える */
  gap: 16px; /* アイテム間の余白 */
  flex-wrap: wrap; /* 画面幅が狭い場合に折り返す */
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

/* 「すべて見る」リンクと「商品で選ぶ」プルダウン共通のスタイル */
.archive-filter-nav__item a,
.archive-filter-nav__dropdown select {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #fff;
  font-size: 16px;
  color: #333;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s;
  cursor: pointer;
}

/* ホバー時のスタイル */
.archive-filter-nav__item a:hover,
.archive-filter-nav__dropdown select:hover {
  background-color: #f5f5f5;
  border-color: #aaa;
}

/* 現在表示中のフィルター（「すべて見る」がアクティブな時など） */
.archive-filter-nav__item.is-active a {
  background-color: #337ab7; /* テーマに合わせた色に変更してください */
  color: #fff;
  border-color: #2e6da4; /* テーマに合わせた色に変更してください */
}

/* プルダウンメニューのスタイル調整 */
.archive-filter-nav__dropdown select {
  -webkit-appearance: none; /* 標準のプルダウン矢印を消す (Safari, Chrome) */
  -moz-appearance: none; /* 標準のプルダウン矢印を消す (Firefox) */
  appearance: none; /* 標準のプルダウン矢印を消す */
  /* カスタム矢印 (SVG) */
  background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M5%208l5%205%205-5z%22%20fill%3D%22%23555%22/%3E%3C/svg%3E');
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 40px; /* 矢印のスペースを確保 */
}

/* IE11用のフォールバック */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  .archive-filter-nav__dropdown select {
    background-image: none; /* IEではカスタム矢印を非表示 */
    padding-right: 20px;
  }
}

/* ==========================================================================
   お客様の声 詳細ページ (single-customer_voice.php)
   ========================================================================== */

/* --------------------------------------------------
   メインコンテンツラッパー (カード全体)
   -------------------------------------------------- */
.customer-voice-content-wrapper {
  background-color: #fff; /* カード全体の背景色 */
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 30px;
}

/* --------------------------------------------------
   ページヘッダー (タイトルなど)
   -------------------------------------------------- */
.single-customer_voice .page-main__ttl {
  /* 詳細ページ用にセレクタを特定 */
  font-size: 24px; /* 例: 少し小さくする場合 */
  font-weight: bold;
  margin-bottom: 20px; /* 画像や詳細情報との間隔 */
  color: #333;
}

/* お客様の声 - 詳細情報スタイル */
.customer-voice-details-column {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* --------------------------------------------------
   2カラムレイアウト (画像と詳細情報)
   -------------------------------------------------- */
/* .customer-voice-two-column-layout のスタイルは single-customer_voice.php のHTML構造に依存します。
   必要に応じてここにFlexboxやGridのスタイルを追加してください。 */
.customer-voice-image-column {
  margin-bottom: 20px; /* 画像と詳細情報の間に余白 (SP表示時など) */
}

.customer-voice-detail-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #dee2e6;
}

.customer-voice-detail-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.customer-voice-detail-item strong {
  color: #495057;
  font-weight: 600;
  min-width: 100px;
  margin-right: 12px;
  font-size: 14px;
  flex-shrink: 0;
}

.customer-voice-detail-item span {
  color: #212529;
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
}
.customer-voice-featured-image img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* 追加情報セクション */
.customer-voice-additional-info {
  margin-top: 32px;
}

.customer-voice-additional-item {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease;
}

.customer-voice-additional-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.customer-voice-additional-item:last-child {
  margin-bottom: 0;
}

.customer-voice-additional-item h4 {
  color: #2c5aa0;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #e3f2fd;
  position: relative;
}

.customer-voice-additional-item h4::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: #2c5aa0;
}
/* 「導入のきっかけ」のタイトルは h4 を使用 */
.customer-voice-additional-item.reason-item h4 {
  font-size: 18px; /* 他のh4と合わせるか、個別に調整 */
  margin-bottom: 10px;
}

.customer-voice-additional-item p {
  color: #495057;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  text-align: justify;
}

/* 各項目の個別スタイル */
.reason-item h4 {
  color: #28a745;
  border-bottom-color: #d4edda;
}

.reason-item h4::before {
  background: #28a745;
}

.effect-item h4 {
  color: #fd7e14;
  border-bottom-color: #fff3cd;
}

.effect-item h4::before {
  background: #fd7e14;
}

.sales-impression-item h4 {
  color: #6f42c1;
  border-bottom-color: #e2e3f3;
}

.sales-impression-item h4::before {
  background: #6f42c1;
}

/* 施工写真セクション */
.customer-voice-main-text-content {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease;
}

.customer-voice-main-text-content:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.customer-voice-main-text-content h4 {
  color: #dc3545;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #f8d7da;
  position: relative;
}

.customer-voice-main-text-content h4::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: #dc3545;
}

.customer-voice-main-text-content p {
  color: #495057;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
  text-align: justify;
}

.customer-voice-main-text-content p:last-child {
  margin-bottom: 0;
}

/* 写真ギャラリー対応 */
.customer-voice-main-text-content .wp-block-gallery,
.customer-voice-main-text-content .gallery {
  margin: 16px 0;
}

.customer-voice-main-text-content .wp-block-image,
.customer-voice-main-text-content .gallery-item {
  margin-bottom: 16px;
}

.customer-voice-main-text-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.customer-voice-main-text-content img:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ギャラリーグリッド */
.customer-voice-main-text-content .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 16px 0;
}

.customer-voice-main-text-content .gallery-item {
  margin: 0;
}

.customer-voice-main-text-content .gallery-caption {
  color: #6c757d;
  font-size: 12px;
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

/* お客様の声 記事下部ナビゲーション
-------------------------------------------------- */
.post-footer-navigation {
  margin-top: 40px;
  padding-top: 20px;
}

/* タグのスタイル */
.post-tags {
  margin-top: 30px;
  margin-bottom: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.post-tags__list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 10px;
}

.post-tags__item a {
  display: inline-block;
  padding: 5px 15px;
  border: 1px solid #ccc;
  border-radius: 20px;
  text-decoration: none;
  color: #333;
  font-size: 0.9em;
  transition: all 0.3s ease;
  background-color: #f0f0f0;
}

.post-tags__item a:hover {
  background-color: #e0e0e0;
  color: #000;
  border-color: #ccc;
}

.post-tags__item .fa {
  margin-right: 5px;
}

/* 投稿ナビゲーションのスタイル */
.post-navigation {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}
.post-navigation__links {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-navigation__prev a,
.post-navigation__next a,
.post-navigation__archive a {
  padding: 8px 15px;
  border: 1px solid #007bff;
  color: #007bff;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.post-navigation__prev a:hover,
.post-navigation__next a:hover,
.post-navigation__archive a:hover {
  background-color: #007bff;
  color: #fff;
}

.post-navigation__archive a {
  border-color: #6c757d;
  color: #6c757d;
}

.post-navigation__archive a:hover {
  background-color: #6c757d;
  color: #fff;
  text-decoration: none;
}

/* ==========================================================================
   レスポンシブデザイン
   ========================================================================== */
@media (max-width: 768px) {
  .single-customer_voice .page-main__ttl {
    font-size: 20px;
  }
  .customer-voice-details-column {
    padding: 16px;
    margin-bottom: 20px;
  }

  .customer-voice-detail-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .customer-voice-detail-item strong {
    min-width: auto;
    margin-right: 0;
    margin-bottom: 4px;
  }

  .customer-voice-additional-item {
    padding: 16px;
    margin-bottom: 16px;
  }

  .customer-voice-additional-item h4 {
    font-size: 15px;
  }

  .customer-voice-additional-item p {
    font-size: 13px;
  }

  .post-navigation__links {
    flex-direction: column;
    gap: 15px;
  }
  .post-navigation__prev,
  .post-navigation__next,
  .post-navigation__archive {
    width: 100%;
    text-align: center;
  }
  .post-navigation__prev a,
  .post-navigation__next a,
  .post-navigation__archive a {
    display: block;
  }
}

@media (max-width: 480px) {
  .customer-voice-details-column {
    padding: 12px; /* SP時のパディング調整 */
  }

  .customer-voice-additional-item {
    padding: 12px; /* SP時のパディング調整 */
  }

  .single-customer_voice .page-main__ttl {
    font-size: 18px; /* SP時のタイトルサイズ調整 */
  }

  /* 施工写真セクションのSP調整 */
  .customer-voice-main-text-content {
    padding: 16px;
    margin: 16px 0;
  }

  .customer-voice-main-text-content h4 {
    font-size: 15px;
  }

  .customer-voice-main-text-content p {
    font-size: 13px;
  }

  .customer-voice-main-text-content .gallery {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
  }
}
/* ==================================================
 * アーカイブページ レイアウト (archive-customer_voice.php, taxonomy-*.php)
 * ================================================== */
article.page-main {
	max-width: 100%;
}


/* ==================================================
 * アーカイブページ カードレイアウト (archive-customer_voice.php, taxonomy-*.php)
 * ================================================== */

/* カードリスト */
.customer-voice-archive-list {
    display: grid;
    /* 3カラムレイアウト */
    grid-template-columns: repeat(3, 1fr);
    gap: 24px; /* カード間の余白 */
    margin-top: 30px;
}

/* 各カード */
.customer-voice-card {
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    overflow: hidden; /* 角丸を有効にするため */
    display: flex;
    flex-direction: column;
}

/*.customer-voice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08);
	z-index: 9999;
}*/

/* カード全体を囲むリンク */
.customer-voice-card__link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    /*height: 100%;  親の高さに合わせる */
}

/* サムネイル画像 (画像) */
.customer-voice-card__thumbnail {
    width: 100%;
    height: 200px; /* 高さを固定 */
    overflow: hidden;
    background-color: #f8f9fa;
}

.customer-voice-card__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像をコンテナに合わせてトリミング */
    transition: transform 0.4s ease;
}

.customer-voice-card:hover .customer-voice-card__thumbnail img {
    transform: scale(1.05);
}

/* カードボディ (テキスト部分) */
.customer-voice-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* 残りのスペースを埋める */
}

/* タイトル (件名) */
h2.customer-voice-card__title {
	font-size: 2.1rem;
    margin: 0 0 15px 0;
    line-height: 1.4;
    color: #1e293b;
}

/* 導入のきっかけ */
div.customer-voice-card__reason p {
    font-size: 1.3rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1; /* この要素が伸びてタグを下に押しやる */
}

/* タグコンテナ */
.customer-voice-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    margin-top: auto; /* ボディの下端に配置 */
}

/* 各タグ */
.customer-voice-card__tag {
    background-color: #eef2ff;
    color: #4338ca;
	padding: 4px 10px;
    border-radius: 9999px; /* 楕円形にする */
	font-size: 1rem;
    font-weight: 600;
}

/* ==========================================================================
   お客様の声 アーカイブ (archive-customer_voice.php)
   ========================================================================== */
Unchanged lines    gap: 12px;
  }
}

@media (max-width: 992px) {
  /* カードリスト: タブレットでは2カラム */
  .customer-voice-archive-list {
      grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  /* カードリスト: スマホでは1カラム */
  .customer-voice-archive-list {
      grid-template-columns: 1fr;
      gap: 20px;
  }
  .customer-voice-card__body {
    padding: 16px;
  }
}