@charset "UTF-8";
/* ==========================================================
   voice.css
   「お客様の声」トップページ内セクション ＋ 声一覧ページ(voice.html)共通スタイル
   ------------------------------------------------------------
   カラー・フォント・ブレークポイントは既存サイト(px-common.css / top.css)の
   トーン&マナーに合わせています。
   ========================================================== */

/* ---- 星川店カラー定義 ----
   売却：ネイビー(#1E2549) / 購入：グリーン(#007440) /
   住み替え（購入＆売却）：ブラウン(#8C6137) / その他（リフォーム・賃貸等）：ブラック(#1A1A1A)
   フォント：全体と合わせてゴシック（Noto Sans JP 等、bodyの既定フォントを継承） */
.sec-voice,
.sec-voiceList {
  --voice-navy: #1E2549;
  --voice-green: #007440;
  --voice-exchange: #8C6137;
  --voice-other: #1A1A1A;
  --voice-gray: #E4E4E4;
  --voice-star: #FFB800;
}

/* ==========================================================
   1. トップページ「お客様の声」セクション（index.html用）
   ========================================================== */
section.sec-voice {
  padding-right: 40px;
  padding-bottom: 40px;
}
@media only screen and (max-width: 1024px) {
  section.sec-voice {
    padding: 0 20px;
  }
}

section.sec-voice .voiceWrap .voiceList > li.voiceItem {
  display: flex;
  flex-direction: column;
  width: calc(25% - 12px);
  padding: 24px;
  background: #fff;
  border: 1px solid var(--voice-gray, #E4E4E4);
  border-radius: 8px;
}
@media only screen and (max-width: 1200px) {
  section.sec-voice .voiceWrap .voiceList > li.voiceItem {
    width: calc(50% - 8px);
  }
}
@media only screen and (max-width: 767px) {
  section.sec-voice .voiceWrap .voiceList > li.voiceItem {
    width: 100%;
    flex-shrink: 0;
  }
}

/* トップページのカードは、アイコン左＋名前・担当・評価を右側にまとめる
   以前の行レイアウトのまま（一覧ページ側のみ項目ごと改行のセンタリング表示） */
section.sec-voice .voiceUser {
  flex-direction: row;
  align-items: center;
  gap: 14px;
}
section.sec-voice .voiceUserInfo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
section.sec-voice .voiceName {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
section.sec-voice .voiceTagList {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
}
@media only screen and (max-width: 767px) {
  section.sec-voice .voiceUser {
    justify-content: center;
  }
  section.sec-voice .voiceTagList {
    justify-content: center;
  }
}

section.voiceListSlider {
  position: relative;
}
section.voiceListSlider .splide__arrows .splide__arrow {
  top: -130px;
  transform: none;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: #fff;
  opacity: 1;
  transition: all ease-out 0.3s;
}
@media only screen and (max-width: 1024px) {
  section.voiceListSlider .splide__arrows .splide__arrow {
    top: -84px;
    width: 36px;
    height: 36px;
    border-radius: 4px;
  }
}
section.voiceListSlider .splide__arrows .splide__arrow svg {
  fill: #007440;
  transition: all ease-out 0.3s;
}
@media (hover: hover) and (pointer: fine) {
  section.voiceListSlider .splide__arrows .splide__arrow:hover {
    background: #007440;
  }
  section.voiceListSlider .splide__arrows .splide__arrow:hover svg {
    fill: #fff;
  }
}
@media (-ms-high-contrast: none), (-ms-high-contrast: active) {
  section.voiceListSlider .splide__arrows .splide__arrow:hover {
    background: #007440;
  }
  section.voiceListSlider .splide__arrows .splide__arrow:hover svg {
    fill: #fff;
  }
}
section.voiceListSlider .splide__arrows .splide__arrow--prev {
  left: inherit;
  right: 119px;
}
@media only screen and (max-width: 1024px) {
  section.voiceListSlider .splide__arrows .splide__arrow--prev {
    right: 40px;
  }
}
section.voiceListSlider .splide__arrows .splide__arrow--next {
  right: 39px;
}
@media only screen and (max-width: 1024px) {
  section.voiceListSlider .splide__arrows .splide__arrow--next {
    right: 0;
  }
}
/* バッジ（売却／購入）：中央表示・高さを抑えたピル */
.voiceCardHead {
  display: flex;
  justify-content: center;
}
.voiceBadge {
  display: inline-flex;
  align-items: center;
  padding: 3px 20px;
  border-radius: 20px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.8;
}
.voiceBadge.is-sale {
  background: var(--voice-navy, #1E2549);
}
.voiceBadge.is-purchase {
  background: var(--voice-green, #007440);
}
.voiceBadge.is-exchange {
  background: var(--voice-exchange, #8C6137);
}
.voiceBadge.is-other {
  background: var(--voice-other, #1A1A1A);
}

/* 担当者アイコン・名前・担当タグ・評価：各項目を改行してセンタリング表示 */
.voiceUser {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.voiceIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 100%;
  flex-shrink: 0;
}
.voiceIcon svg {
  width: 46px;
  height: 46px;
}
.voiceIcon.is-sale {
  background: var(--voice-navy, #1E2549);
}
.voiceIcon.is-purchase {
  background: var(--voice-green, #007440);
}
.voiceIcon.is-exchange {
  background: var(--voice-exchange, #8C6137);
}
.voiceIcon.is-other {
  background: var(--voice-other, #1A1A1A);
}
.voiceName {
  font-size: 16px;
  font-weight: 700;
  color: var(--voice-navy, #1E2549);
}
.voiceStaff {
  display: inline-block;
  padding: 3px 10px;
  background: #F1F1F1;
  border-radius: 4px;
  color: #767676;
  font-size: 11px;
  font-weight: 500;
}

/* 評価（星） */
.voiceStar {
  color: var(--voice-star, #FFB800);
  font-size: 15px;
  letter-spacing: 2px;
}

/* タグ（年代・エリア）：各項目を改行してセンタリング表示 */
.voiceTagList {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--voice-gray, #E4E4E4);
}
.voiceTagList > li {
  padding: 4px 14px;
  border: 1px solid var(--voice-gray, #E4E4E4);
  border-radius: 20px;
  font-size: 12px;
  color: var(--voice-navy, #1E2549);
}

/* 口コミ本文（抜粋） */
.voiceText {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.8;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 詳しく見るリンク */
.voiceMore {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: auto;
  padding-top: 16px;
  color: var(--voice-green, #007440);
  font-size: 13px;
  font-weight: 700;
  transition: opacity ease-out 0.3s;
}
.voiceMore .arrow {
  font-size: 10px;
}
@media (hover: hover) and (pointer: fine) {
  .voiceMore:hover {
    opacity: 0.6;
  }
}

/* もっとみるボタン */
section.sec-voice .voiceWrap .voiceBtnWrap {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}
@media only screen and (max-width: 1024px) {
  section.sec-voice .voiceWrap .voiceBtnWrap {
    margin-top: 24px;
  }
}

/* ==========================================================
   2. 声一覧ページ（voice.html）：本文
   ------------------------------------------------------------
   ヘッダー／フッターは「お知らせ一覧」ページと同様、
   commonParts('./', 'header.html', 'top') で読み込む共通ヘッダーと、
   共通フッター（top.css）をそのまま使用します。
   本セクションは main 内のコンテンツ部分のみを対象としたスタイルです。
   ========================================================== */

.sec-voiceList .voiceCatch {
  margin-top: -32px;
  font-size: min(1.4285714286vw, 22px);
  font-weight: 700;
  line-height: 1.6;
  color: var(--voice-navy, #1E2549);
}
.sec-voiceList .voiceLead {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.9;
  color: #333;
}
@media only screen and (max-width: 1024px) {
  .sec-voiceList .voiceCatch {
    margin-top: -16px;
    font-size: 18px;
  }
}

/* 絞り込み */
.sec-voiceList .voiceFilterWrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--voice-gray, #E4E4E4);
}
.sec-voiceList .voiceFilter {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.sec-voiceList .voiceFilter label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid var(--voice-gray, #E4E4E4);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--voice-navy, #1E2549);
  cursor: pointer;
  transition: all ease-out 0.2s;
}
.sec-voiceList .voiceFilter input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--voice-green, #007440);
}
.sec-voiceList .voiceFilter label:has(input:checked) {
  background: var(--voice-green, #007440);
  border-color: var(--voice-green, #007440);
  color: #fff;
}
.sec-voiceList .voiceCount {
  font-size: 13px;
  color: #767676;
}
.sec-voiceList .voiceCount .num {
  margin: 0 2px;
  font-size: 20px;
  font-weight: 700;
  color: var(--voice-green, #007440);
}

/* 一覧カード（FAQ形式） */
.sec-voiceList .voiceDetailList {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}
.sec-voiceList .voiceDetailList > li {
  display: flex;
  flex-flow: row wrap;
  gap: 24px 32px;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--voice-gray, #E4E4E4);
  border-radius: 8px;
  scroll-margin-top: 100px;
}
.sec-voiceList .voiceDetailList > li.is-hidden {
  display: none;
}
.sec-voiceList .voiceDetailList > li:target {
  border-color: var(--voice-green, #007440);
  box-shadow: 0 0 0 3px rgba(0, 116, 64, 0.15);
}
@media only screen and (max-width: 767px) {
  .sec-voiceList .voiceDetailList > li {
    padding: 20px;
  }
}

.sec-voiceList .voiceDetailList .voiceProfile {
  width: 200px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.sec-voiceList .voiceDetailList .voiceProfile .voiceCardHead {
  width: 100%;
}
.sec-voiceList .voiceDetailList .voiceProfile .voiceUser {
  margin-top: 12px;
}
.sec-voiceList .voiceDetailList .voiceProfile .voiceTagList {
  border-bottom: none;
  padding-bottom: 0;
}
@media only screen and (max-width: 767px) {
  .sec-voiceList .voiceDetailList .voiceProfile {
    width: 100%;
  }
  /* モバイルはTOPページと同じく改行を減らし、アイコン＋名前・担当を1行、星評価をその下にまとめて中央表示 */
  .sec-voiceList .voiceDetailList .voiceProfile .voiceUser {
    display: grid;
    grid-template-columns: auto auto auto;
    grid-template-areas:
      "icon name staff"
      "icon star star";
    column-gap: 10px;
    row-gap: 4px;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
  }
  .sec-voiceList .voiceDetailList .voiceProfile .voiceIcon {
    grid-area: icon;
  }
  .sec-voiceList .voiceDetailList .voiceProfile .voiceName {
    grid-area: name;
    text-align: left;
  }
  .sec-voiceList .voiceDetailList .voiceProfile .voiceStaff {
    grid-area: staff;
    justify-self: start;
  }
  .sec-voiceList .voiceDetailList .voiceProfile .voiceStar {
    grid-area: star;
    text-align: left;
  }
  .sec-voiceList .voiceDetailList .voiceProfile .voiceTagList {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

.sec-voiceList .voiceDetailList .voiceQaList {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sec-voiceList .voiceDetailList .voiceQaList dt {
  font-size: 14px;
  font-weight: 700;
  color: var(--voice-green, #007440);
}
.sec-voiceList .voiceDetailList .voiceQaList dd {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.8;
  color: #333;
}

@media only screen and (max-width: 767px) {
  .sec-voiceList .voiceFilterWrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* 店舗ページに戻るボタン（お知らせ一覧の.newsFooterBtnと同様の役割） */
.voiceFooterBtn {
  text-align: center;
  margin-top: 56px;
}
@media only screen and (max-width: 1024px) {
  .voiceFooterBtn {
    margin-top: 40px;
  }
}
