/**
 * お客様の声セクション（michishirube-customer-voice）
 * ペットセレモニー道しるべ 北九州 - SWELL子テーマ対応版
 *
 * CSS詳細度: [0,1,0]〜[0,2,0]（独自クラスのみ）
 * 上書き対象: .post_content blockquote のSWELLデフォルトをリセット
 * アプデ耐性: ★★★
 * ブレークポイント: SWELL標準（600px / 960px）に準拠
 */

/* --- セクション全体 --- */
.michishirube-customer-voice {
  --voice-bg: #fdf8f2;
  --voice-card-bg: #fff;
  --voice-text: #2c2c2c;
  --voice-meta: #555;
  --voice-border: rgba(252, 136, 0, 0.35);
  --voice-accent: var(--color_main, #FC8800);
  margin: 2.5rem 0;
  padding: 2rem 0;
  background: var(--voice-bg);
  border-radius: 12px;
}


.post_content blockquote.michishirube-customer-voice__text::before{
  content: none;
}

/* --- 見出し --- */
.michishirube-customer-voice__title {
  font-family: "ZenMaruGothic", "ヒラギノ丸ゴ Pro W4", "Hiragino Maru Gothic Pro", sans-serif;
  font-size: 5.12vw;
  font-weight: bold;
  text-align: center;
  color: var(--color_text, #333);
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
}
@media (min-width: 600px) {
  .michishirube-customer-voice__title {
    font-size: 24px;
  }
}

/* --- リード文 --- */
.michishirube-customer-voice__lead {
  text-align: center;
  font-size: 3.58vw;
  color: var(--voice-meta);
  line-height: 1.65;
  max-width: 42rem;
  margin: 0 auto 2rem;
  padding: 0 1rem;
}
@media (min-width: 600px) {
  .michishirube-customer-voice__lead {
    font-size: 15px;
  }
}

/* --- 横スライド（水平スクロール）--- */
.michishirube-customer-voice__grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.25rem;
  max-width: 100%;
  margin: 0;
  padding: 0 1rem 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

/* スクロールバー（Webkit）を細く */
.michishirube-customer-voice__grid::-webkit-scrollbar {
  height: 6px;
}
.michishirube-customer-voice__grid::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.06);
  border-radius: 3px;
}
.michishirube-customer-voice__grid::-webkit-scrollbar-thumb {
  background: var(--voice-accent);
  border-radius: 3px;
}

/* --- カード（横スライド用）--- */
.michishirube-customer-voice__card {
  margin: 0;
  flex: 0 0 auto;
  min-width: 85vw;
  max-width: 85vw;
  scroll-snap-align: start;
}
@media (min-width: 600px) {
  .michishirube-customer-voice__card {
    min-width: 380px;
    max-width: 380px;
  }
}
@media (min-width: 960px) {
  .michishirube-customer-voice__card {
    min-width: 340px;
    max-width: 340px;
  }
}

.michishirube-customer-voice__card-inner {
  background: var(--voice-card-bg);
  border: 1px solid var(--voice-border);
  border-left: 4px solid var(--voice-accent);
  border-radius: 0 10px 10px 0;
  padding: 1.25rem 1.25rem 1rem;
  height: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

/* --- 星評価 --- */
.michishirube-customer-voice__rating {
  font-size: 1rem;
  color: var(--voice-accent);
  margin: 0 0 0.5rem;
  letter-spacing: 0.1em;
}

/* --- レビュー本文（blockquote）--- */
/* SWELLの .post_content blockquote デフォルトスタイルをリセット */
.michishirube-customer-voice__text {
  font-size: 3.58vw;
  line-height: 1.75;
  color: var(--voice-text);
  margin: 0 0 0.75rem;
  flex-grow: 1;
  /* SWELLのblockquoteスタイルをリセット */
  padding: 0;
  background: transparent;
  border: none;
  border-left: none;
  font-style: normal;
  position: relative;
  quotes: none;
}
@media (min-width: 600px) {
  .michishirube-customer-voice__text {
    font-size: 15px;
  }
}

/* SWELLが blockquote::before / ::after でアイコンを出力するのを無効化 */
.michishirube-customer-voice__text::before,
.michishirube-customer-voice__text::after {
  content: none;
  display: none;
}

/* --- メタ情報 --- */
.michishirube-customer-voice__meta {
  font-size: 13px;
  color: var(--voice-meta);
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.michishirube-customer-voice__pet,
.michishirube-customer-voice__author {
  display: block;
}

/* --- CTA --- */
.michishirube-customer-voice__cta {
  text-align: center;
  margin-top: 2rem;
  padding: 0 1rem;
}

.michishirube-customer-voice__cta-text {
  font-size: 15px;
  color: var(--voice-meta);
  margin: 0 0 0.5rem;
}

/* ボタンスタイル: サイト統一 border-radius: 80px, SWELL変数使用 */
.michishirube-customer-voice__cta-link {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--voice-accent);
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 80px;
  font-size: 15px;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.michishirube-customer-voice__cta-link:hover {
  opacity: 0.85;
  transform: translateY(-1px);
  color: #fff;
}

/* --- .post_content 内での余白調整 --- */
/* 詳細度 [0,2,0]: SWELLの .post_content blockquote [0,1,1] に勝つ */
.post_content .michishirube-customer-voice {
  margin: 2.5rem auto;
}

.post_content .michishirube-customer-voice:first-child {
  margin-top: 0;
}

/* .post_content 内の blockquote リセット強化 */
.post_content .michishirube-customer-voice__text {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
