/* =========================================================
   受講者の声ページ（/voices/）専用スタイル
   ブランドトークン（--navy 等）は front-page.css で定義済み（依存読み込み）。
   声カードは「報告書」と「現場のスケッチ」の中間。煽らず、誠実に。
   ========================================================= */

.voices-page {
  background: var(--pearl);
}

/* 本文集中用の狭めコンテナ */
.voices-narrow {
  width: min(100% - 48px, 760px);
}

/* --- ヒーロー --- */
.voices-hero {
  padding: clamp(44px, 6vw, 72px) 0 clamp(40px, 5vw, 64px);
  background: linear-gradient(180deg, var(--pearl) 0%, var(--pearl-2) 100%);
}

.voices-hero .eyebrow {
  text-align: center;
}

.voices-hero h1 {
  margin: 0 auto;
  max-width: 820px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: 0.02em;
  text-align: center;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.voices-hero h1 span {
  display: block;
}

.voices-hero-lead {
  max-width: 720px;
  margin: 26px auto 0;
  color: var(--navy-soft);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.95;
  text-align: center;
}

.voices-hero-note {
  max-width: 720px;
  margin: 28px auto 0;
  padding: 14px 20px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
}

.voices-hero-visual {
  max-width: 980px;
  margin: 42px auto 0;
}

.voices-hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
}

.voices-hero-visual figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

@media (min-width: 1080px) {
  .voices-hero {
    padding: clamp(28px, 4vw, 52px) 0;
  }

  .voices-hero .container {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(500px, 0.98fr);
    gap: clamp(28px, 3vw, 40px);
    align-items: center;
    min-height: min(760px, calc(100vh - 124px));
  }

  .voices-hero .eyebrow,
  .voices-hero h1,
  .voices-hero-lead,
  .voices-hero-note {
    grid-column: 1;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
  }

  .voices-hero .eyebrow {
    align-self: end;
    margin-bottom: 0;
  }

  .voices-hero h1 {
    align-self: center;
    font-size: clamp(28px, 2.4vw, 38px);
    line-height: 1.5;
    letter-spacing: 0.01em;
  }

  .voices-hero h1 span {
    white-space: nowrap;
  }

  .voices-hero-lead {
    align-self: start;
    margin-top: 22px;
    font-size: 16px;
    line-height: 1.85;
  }

  .voices-hero-note {
    align-self: start;
    margin-top: 20px;
  }

  .voices-hero-visual {
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: center;
    max-width: none;
    margin: 0;
  }

  .voices-hero-visual img {
    width: 100%;
  }

  .voices-hero-visual figcaption {
    text-align: left;
  }
}

/* --- テーマ共通 --- */
.voices-theme {
  background: var(--white);
}

.voices-theme-tint {
  background: var(--pearl);
}

.voices-theme-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  color: var(--navy);
  background: color-mix(in srgb, var(--cyan) 12%, white);
  border: 1px solid var(--stone-soft);
  border-radius: 999px;
}

.voices-theme-mark svg {
  width: 34px;
  height: 34px;
  overflow: visible;
}

.voices-theme-eyebrow {
  margin: 0 0 10px;
  color: var(--cyan-deep);
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
}

.voices-theme-title {
  margin: 0 0 16px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.voices-theme-desc {
  max-width: 620px;
  margin: 0 auto 44px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.95;
  text-align: center;
}

/* --- 声カードのグリッド --- */
.voices-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.voices-card-grid-quote {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 760px;
  margin-inline: auto;
}

.voice-card {
  margin: 0;
  padding: 26px 24px;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.voice-card blockquote {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.95;
  font-weight: 500;
}

/* 付箋風（テーマ01）: わずかな傾きと淡い色地。
   傾きは --tilt 変数に逃がし、フェードイン演出の transform と合成して保持する。 */
.voice-card-note {
  --tilt: 0deg;
  background: #fbf7ee;
  border-color: var(--stone-soft);
  transform: rotate(var(--tilt));
}
.voice-card-note:nth-child(3n + 1) { --tilt: -0.8deg; }
.voice-card-note:nth-child(3n + 2) { --tilt: 0.4deg; }
.voice-card-note:nth-child(3n) { --tilt: -0.3deg; }
.voice-card-note::before {
  content: "";
  display: block;
  width: 52px;
  height: 8px;
  margin: -34px auto 18px;
  background: rgba(201, 187, 163, 0.55);
  border-radius: 2px;
  transform: rotate(-2deg);
}

/* ルーズリーフ風（テーマ02）: 左に細い色罫 */
.voice-card-line {
  border-left: 4px solid var(--cyan);
}

/* 引用風（テーマ03）: 大きめ・引用符 */
.voice-card-quote {
  position: relative;
  padding-top: 34px;
  border-left: 6px solid var(--navy);
}
.voice-card-quote::before {
  content: "\201C";
  position: absolute;
  top: 6px;
  left: 18px;
  color: color-mix(in srgb, var(--navy) 28%, white);
  font-family: var(--font-en);
  font-size: 52px;
  line-height: 1;
}
.voice-card-quote blockquote {
  font-size: 16px;
}

/* 出典キャプション */
.voices-source {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.voices-source-center {
  text-align: center;
}

/* テーマ03の補足（協会の声） */
.voices-author-note {
  max-width: 620px;
  margin: 32px auto 0;
  padding: 18px 22px;
  color: var(--navy);
  background: color-mix(in srgb, var(--pink) 7%, white);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.85;
  text-align: center;
}

/* --- 研修写真 --- */
.voices-photo-report {
  background: var(--white);
}

.voices-photo-lead {
  max-width: 720px;
  margin: -18px auto 34px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.95;
  text-align: center;
}

.voices-photo-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 22px;
  align-items: stretch;
}

.voices-photo-card {
  margin: 0;
  overflow: hidden;
  background: var(--pearl);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.voices-photo-card img {
  display: block;
  width: 100%;
  height: 430px;
  object-fit: cover;
}

.voices-photo-card:first-child img {
  object-position: center 44%;
}

.voices-photo-card figcaption {
  margin: 0;
  padding: 16px 18px 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.75;
}

/* --- 中間の静止 --- */
.voices-interlude {
  padding: clamp(48px, 7vw, 84px) 0;
  background: var(--pearl);
}
.voices-interlude p {
  margin: 0;
  color: var(--navy-soft);
  font-family: var(--font-display);
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 2;
  text-align: center;
}

.voices-card-row {
  max-width: 860px;
  margin: clamp(24px, 3vw, 36px) auto 0;
  padding: clamp(12px, 2vw, 20px);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.voices-card-row img {
  width: 100%;
  height: auto;
}

/* --- データ --- */
.voices-data {
  background: var(--white);
}

.voices-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 920px;
  margin: 0 auto;
}

.voices-stat {
  padding: 36px 24px;
  background: var(--pearl);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  text-align: center;
}

.voices-stat-num {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-num);
  font-size: clamp(46px, 7vw, 64px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
}
.voices-stat-num span {
  font-size: 18px;
  font-weight: 700;
  margin-left: 4px;
  color: var(--navy-soft);
}

.voices-stat-label {
  margin: 16px 0 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}

.voices-stat-sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* --- 介護研究チームでの活用感想 --- */
.voices-case {
  background: var(--pearl);
}

.voices-case .section-title {
  max-width: 780px;
  margin-inline: auto;
}

.voices-case-lead {
  max-width: 720px;
  margin: -18px auto 36px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.95;
  text-align: center;
}

.voices-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
}

.voices-case-card {
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.voices-case-card h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.55;
}

.voices-case-card p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.9;
}

/* --- 誠実な開示 --- */
.voices-honest {
  background: var(--pearl);
}

.voices-honest-title {
  margin: 0 0 24px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
}

.voices-honest p {
  margin: 0 0 16px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.95;
}

.voices-honest-lead {
  margin-top: 24px !important;
  padding: 20px 24px;
  color: var(--navy) !important;
  background: var(--white);
  border-left: 4px solid var(--navy);
  border-radius: 0 10px 10px 0;
  font-weight: 700 !important;
}

/* --- 実施フォーマット（effect-card 流用、3カラム固定） --- */
.voices-format-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 920px;
  margin: 0 auto;
}
.voices-format .effect-card {
  min-height: 0;
}
.voices-format-note {
  max-width: 760px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* --- 最終CTA 補足文 --- */
.voices-cta-lead {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  line-height: 1.9;
  text-align: center;
}
.voices-cta-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
}

/* --- 関連ページ --- */
.voices-related {
  background: var(--pearl);
}

/* =========================================================
   スクロール演出（フェードイン）
   JSが付与する body.voices-anim-ready のときだけ初期非表示にする。
   JS無効・prefers-reduced-motion 時は常に表示（アクセシビリティ担保）。
   ========================================================= */
.voices-anim-ready .voices-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.voices-anim-ready .voices-reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* 付箋カードは傾き(--tilt)を保持したままフェードインさせる */
.voices-anim-ready .voice-card-note.voices-reveal {
  transform: translateY(20px) rotate(var(--tilt));
}
.voices-anim-ready .voice-card-note.voices-reveal.is-visible {
  transform: rotate(var(--tilt));
}

@media (prefers-reduced-motion: reduce) {
  .voices-anim-ready .voices-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- レスポンシブ --- */
@media (max-width: 820px) {
  .voices-card-grid {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin-inline: auto;
  }
  .voices-card-grid-quote {
    grid-template-columns: 1fr;
  }
  .voice-card-note { --tilt: 0deg !important; }
  .voices-photo-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-inline: auto;
  }
  .voices-photo-card img {
    height: auto;
    max-height: none;
    object-fit: contain;
  }
  .voices-stat-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
  .voices-case-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
  .voices-format-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}
