/* ===========================================================================
 * /voice/ お客様の声 専用CSS
 * - archive-voice.php / single-voice.php で使用
 * - HOMEデザイントークン継承（#1a1a1a / #fff / #f4f5f6）
 * - ベイジWFv2 事例詳細型・事例一覧型準拠（ベイジ流シンプル化済 2026-05-15）
 * - ロード: functions.php で is_post_type_archive('voice') または is_singular('voice')
 * =========================================================================== */

/* ============ Lightning の main-section--col--two 問題を強制打ち消し
   memory: feedback_kanitax_lightning_col_class_trap.md ============ */
.archive-voice-fullwidth #main,
.archive-voice-fullwidth .main-section,
.single-voice-fullwidth #main,
.single-voice-fullwidth .main-section {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}
.archive-voice-fullwidth .sub-section,
.archive-voice-fullwidth #sub_section,
.single-voice-fullwidth .sub-section,
.single-voice-fullwidth #sub_section {
  display: none !important;
}
.archive-voice-fullwidth .site-body-container,
.single-voice-fullwidth .site-body-container {
  max-width: 100% !important;
  padding: 0 !important;
}

/* ============ Lightning h3::after 下線装飾の罠を打ち消し
   memory: feedback_kanitax_lightning_h3_after_trap.md ============ */
.kt-voice-archive-h1::after,
.kt-voice-archive-h1::before,
.kt-voice-card-title::after,
.kt-voice-card-title::before,
.kt-voice-cta-title::after,
.kt-voice-cta-title::before,
.kt-voice-single-h1::after,
.kt-voice-single-h1::before {
  content: none !important;
  display: none !important;
  border: none !important;
  border-bottom: none !important;
  background: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* ============ Lightning「li a {text-decoration: underline 点線}」打ち消し
   memory: feedback_kanitax_lightning_li_a_trap.md ============ */
.kt-voice-card-link,
.kt-voice-card-link:link,
.kt-voice-card-link:visited,
.kt-voice-card-link:hover,
.kt-voice-card-link:focus,
.kt-voice-card-link:focus-visible,
.kt-voice-card-link:active,
.kt-voice-card-link * {
  text-decoration: none !important;
  text-decoration-line: none !important;
  text-decoration-color: transparent !important;
}

/* ===== 共通リセット（kt-bg スコープ・既存 kt-bg-* と同一） ===== */
.kt-bg {
  font-family: var(--kt-font-base);
  color: var(--kt-c-text-strong);
  line-height: 1.8;
  margin: 0 calc(50% - 50vw);
}
.kt-bg *, .kt-bg *::before, .kt-bg *::after { box-sizing: border-box; }
.kt-bg h1, .kt-bg h2, .kt-bg h3 { border: 0; padding-top: 0; padding-bottom: 0; }

/* 改行最適化（/price/ /about/ と同じ） */
.kt-bg p, .kt-bg li, .kt-bg dd, .kt-bg .kt-bg-fv-sub, .kt-bg .kt-bg-section-lead {
  text-wrap: pretty;
  line-break: strict;
}
.kt-bg h1, .kt-bg h2, .kt-bg h3, .kt-bg .kt-bg-section-title, .kt-bg .kt-bg-fv-h1 {
  text-wrap: balance;
  line-break: strict;
}

/* ============================================================================
 * archive-voice.php / ヘッダー（ベイジ流: H1のみ・FVなし）
 * ============================================================================ */

.kt-voice-archive-header {
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(32px, 4vw, 48px);
  background: #fff;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
}

.kt-voice-archive-h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.04em;
  margin: 0;
  color: #1a1a1a;
}

/* ============================================================================
 * archive-voice.php / 信頼数字バー
 * ============================================================================ */

.kt-voice-trustbar {
  background: #fff;
  padding: 64px 24px;
  border-bottom: 1px solid var(--kt-c-border, #d9dde3);
}

.kt-voice-trustbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  align-items: center;
}

.kt-voice-trustbar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0 8px;
  min-height: 140px;
  justify-content: center;
}

/* 数字型（130社以上） */
.kt-voice-trustbar-item-num strong {
  font-size: clamp(32px, 5.5vw, 48px);
  font-weight: 800;
  color: var(--kt-c-text-strong, #1a1a1a);
  letter-spacing: 0.02em;
  line-height: 1;
  display: block;
}

.kt-voice-trustbar-unit {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--kt-c-text-strong, #1a1a1a) !important;
  margin-left: 4px;
}

/* 画像型（freee★5公式バッジ） */
.kt-voice-trustbar-item-image img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
}

/* テキスト強調型（bixider認定 / freee公式事例掲載） */
.kt-voice-trustbar-text {
  font-size: clamp(18px, 2.6vw, 22px);
  font-weight: 800;
  color: var(--kt-c-text-strong, #1a1a1a);
  letter-spacing: 0.04em;
  line-height: 1.35;
  display: block;
}

/* 共通ラベル（読みやすさ重視で 16px に拡大） */
.kt-voice-trustbar-label {
  font-size: 16px;
  font-weight: 500;
  color: var(--kt-c-text, #333);
  line-height: 1.65;
  letter-spacing: 0.02em;
}

/* Lightning 親テーマ・WP 標準リンク色（青）の侵食を防ぐため全状態で !important
   memory: feedback_kanitax_no_hover_color_change.md
   → hover時の color変化は禁止（リンクテキスト）。
     反応感は opacity / underline / transform で表現する。 */
.kt-voice-trustbar-label a,
.kt-voice-trustbar-label a:link,
.kt-voice-trustbar-label a:visited,
.kt-voice-trustbar-label a:hover,
.kt-voice-trustbar-label a:focus,
.kt-voice-trustbar-label a:active {
  color: var(--kt-c-text, #333) !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
  font-weight: 600;
  transition: opacity 0.15s ease;
}

/* hoverの反応感は color ではなく opacity で表現 */
.kt-voice-trustbar-label a:hover,
.kt-voice-trustbar-label a:focus {
  opacity: 0.7;
}

/* 単位（130「社以上」）も読みやすさ重視で拡大 */
.kt-voice-trustbar-unit {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--kt-c-text-strong, #1a1a1a) !important;
  margin-left: 4px;
}

@media (max-width: 700px) {
  .kt-voice-trustbar-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 16px;
  }
  .kt-voice-trustbar-item {
    min-height: auto;
  }
}

/* ============================================================================
 * archive-voice.php / カードグリッド一覧
 * ============================================================================ */

.kt-voice-list-section {
  background: #fff;
  padding: 96px 24px;
}

.kt-voice-list-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.kt-voice-list-section .kt-bg-section-title {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  color: var(--kt-c-text-strong, #1a1a1a);
  text-align: center;
  margin: 0 0 16px;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.kt-voice-list-section .kt-bg-section-lead {
  font-size: var(--kt-fs-body, 17px);
  color: var(--kt-c-text, #333);
  text-align: center;
  line-height: 1.85;
  margin: 0 auto 48px;
  max-width: 760px;
}

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

.kt-voice-card {
  background: #fff;
  border: 1px solid var(--kt-c-border, #e8eaed);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.kt-voice-card:hover {
  border-color: var(--kt-c-text-strong, #1a1a1a);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.kt-voice-card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: inherit !important;
  height: 100%;
}

.kt-voice-card-image {
  margin: 0;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--kt-c-bg-soft, #f4f5f6);
}

.kt-voice-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.kt-voice-card:hover .kt-voice-card-image img {
  transform: scale(1.04);
}

.kt-voice-card-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Hiragino Mincho ProN", serif;
  font-size: 24px;
  color: var(--kt-c-text-sub, #888);
  font-weight: 600;
  letter-spacing: 0.2em;
}

.kt-voice-card-body {
  padding: 24px 28px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kt-voice-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--kt-c-text-strong, #1a1a1a);
  line-height: 1.5;
  margin: 0;
  letter-spacing: 0.02em;
}

.kt-voice-card-excerpt {
  font-size: 14px;
  color: var(--kt-c-text, #444);
  line-height: 1.75;
  margin: 0;
  flex: 1;
}

.kt-voice-card-more {
  font-size: 14px;
  font-weight: 700;
  color: var(--kt-c-text-strong, #1a1a1a);
  margin-top: auto;
  padding-top: 8px;
  letter-spacing: 0.04em;
  display: inline-block;
}

@media (max-width: 900px) {
  .kt-voice-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 600px) {
  .kt-voice-grid { grid-template-columns: 1fr; }
}

/* ===== ページネーション ===== */

.kt-voice-pagination,
.kt-voice-list-section .navigation {
  margin-top: 56px;
  text-align: center;
}

.kt-voice-list-section .nav-links {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.kt-voice-list-section .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--kt-c-border, #d9dde3);
  border-radius: 4px;
  color: var(--kt-c-text-strong, #1a1a1a);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.15s ease;
}

.kt-voice-list-section .page-numbers:hover,
.kt-voice-list-section .page-numbers.current {
  background: var(--kt-c-text-strong, #1a1a1a);
  color: #fff;
  border-color: var(--kt-c-text-strong, #1a1a1a);
}

/* ============================================================================
 * archive 末尾CTA + single 末尾CTA 共通
 * 背景は白基調（HOMEデザイントークン統一・kt-home.css グローバルルールとの相性◎）
 * ============================================================================ */

/* CTA は /news/（kt-news-cta-*）と完全に同じ値で統一（2026-05-15所長指示） */
.kt-voice-cta {
  padding: clamp(56px, 8vw, 96px) 16px;
  background: #f4f5f6;
  text-align: center;
}

.kt-voice-cta-inner {
  max-width: 880px;
  margin: 0 auto;
}

.kt-voice-cta-title {
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  color: #1a1a1a !important;
}

.kt-voice-cta-lead {
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.9;
  color: #333 !important;
  margin-bottom: 32px;
}

.kt-voice-cta-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
/* CTAボタンは既存 .kt-bg-btn-main / .kt-bg-btn-outline をそのまま使う（黒塗り＋白枠ピル型）*/

/* ============================================================================
 * single-voice.php
 * ============================================================================ */

.kt-voice-single {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.kt-voice-single-header {
  text-align: center;
  padding: 24px 0 48px;
  border-bottom: 1px solid var(--kt-c-border, #e8eaed);
  margin-bottom: 48px;
}

.kt-voice-single-eyebrow {
  font-family: "Hiragino Mincho ProN", serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--kt-c-text-sub, #666);
  margin: 0 0 16px;
}

.kt-voice-single-title {
  font-size: clamp(24px, 4.5vw, 36px);
  font-weight: 800;
  color: var(--kt-c-text-strong, #1a1a1a);
  line-height: 1.45;
  margin: 0 0 20px;
  letter-spacing: 0.04em;
}

.kt-voice-single-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0;
}

.kt-voice-single-meta-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--kt-c-text, #444);
  background: var(--kt-c-bg-soft, #f4f5f6);
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.kt-voice-single-hero {
  margin: 0 0 48px;
  border-radius: 8px;
  overflow: hidden;
}

.kt-voice-single-hero img {
  width: 100%;
  height: auto;
  display: block;
}

.kt-voice-single-content {
  font-size: var(--kt-fs-body, 17px);
  color: var(--kt-c-text, #333);
  line-height: 1.95;
}

.kt-voice-single-content p {
  margin: 0 0 24px;
}

.kt-voice-single-content figure {
  margin: 32px 0;
}

.kt-voice-single-content blockquote {
  border-left: 4px solid var(--kt-c-text-strong, #1a1a1a);
  background: var(--kt-c-bg-soft, #f4f5f6);
  padding: 24px 28px;
  margin: 32px 0;
  font-style: normal;
}

.kt-voice-single-content blockquote p {
  margin: 0;
  font-size: 16px;
  line-height: 1.85;
}

/* ===== single 内 CTA（薄グレー背景・本文末に挿入する小型CTA） ===== */

.kt-voice-single-cta {
  background: var(--kt-c-bg-soft, #f4f5f6);
  border-left: 4px solid var(--kt-c-text-strong, #1a1a1a);
  padding: 40px 36px;
  margin: 64px 0 0;
  border-radius: 4px;
}

.kt-voice-single-cta-title {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  color: var(--kt-c-text-strong, #1a1a1a) !important;
  line-height: 1.5;
  margin: 0 0 16px;
  letter-spacing: 0.04em;
}

.kt-voice-single-cta-lead {
  font-size: 15px;
  color: var(--kt-c-text, #333) !important;
  line-height: 1.85;
  margin: 0 0 28px;
}

.kt-voice-single-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================================
 * single-voice.php / 関連事例
 * ============================================================================ */

.kt-voice-related {
  background: var(--kt-c-bg-soft, #f4f5f6);
  padding: 96px 24px;
}

.kt-voice-related-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.kt-voice-related .kt-bg-section-title {
  font-size: clamp(22px, 3.5vw, 28px);
  font-weight: 800;
  color: var(--kt-c-text-strong, #1a1a1a);
  text-align: center;
  margin: 0 0 16px;
  letter-spacing: 0.04em;
}

.kt-voice-related .kt-bg-section-lead {
  font-size: var(--kt-fs-body, 17px);
  color: var(--kt-c-text, #333);
  text-align: center;
  line-height: 1.85;
  margin: 0 auto 48px;
  max-width: 600px;
}

.kt-voice-related .kt-voice-card {
  background: #fff;
}
